/* ExpoBeacon app-level overrides. The bulk of the styling comes from css/style.css (ported from
   the design mockups). This file holds only: the brand custom property, a couple of WebView tweaks,
   and the Blazor error UI (kept from the template). */

:root {
    --app-max-width: 480px;  /* keep the event companion at a large-phone width on wider screens */

    /* Brand design tokens. These defaults reproduce the original ExpoBeacon look; js/theme.js overrides
       them at startup from config/app-config.json so each event/client can be re-skinned without code
       changes. The ported stylesheet (css/style.css) reads these instead of hard-coded hex values. */
    --brand: #FF035B;        /* primary: header, buttons, active tabs */
    --brand-dark: #cb003d;   /* hover / pressed primary */
    --brand-tint: #FFE6EF;   /* pale primary chips / highlights */
    --secondary: #190E4F;    /* workshop cards, secondary buttons */
    --accent: #C47D03;       /* headline sponsor badge */
    --ink: #0E0202;          /* brand text / near-black */
    --on-brand: #ffffff;     /* text on the primary colour */

    --font-heading: 'M PLUS 2';
    --font-body: 'M PLUS 2';
}

/* Headings use the configured heading font (Poppins for VentureFest); body text + inputs use the body
   font (Work Sans). Defaults keep both as M PLUS 2 so the original build is unchanged. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* The ported design is mobile-first and constrains content to ~935px via .wrap/.container. */
body {
    background: #fff;
}

/* The mockups padded the top with a fixed 41px faux status-bar strip. Real devices have a native status
   bar (and Android keeps content within it), so drop that and use the actual safe-area inset instead:
   flush header on desktop/Android, correct notch spacing on iOS. */
.container {
    padding-top: env(safe-area-inset-top, 0px);
    max-width: var(--app-max-width);
}

.wrap {
    max-width: var(--app-max-width);
}

/* Login screen sits on a clean white background. */
.login-page {
    background: #fff;
    min-height: 100vh;
}

/* Launch / loading splash fills the whole screen. */
.launch-page {
    min-height: 100vh;
}

/* ── Page transition: a fade applied to routed content on each navigation ───────────────────────
   NOTE: opacity only — deliberately no transform. A transformed ancestor becomes the containing
   block for position:fixed descendants, which would break the bottom-sheet popups (they'd anchor to
   the page instead of the viewport). Keep this transform-free. */
.page-transition {
    animation: eb-page-in 0.26s ease-out;
}

@keyframes eb-page-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Chat input in the message footer. */
.chat-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 17px;
    line-height: 22px;
    font-family: inherit;
    color: #292625;
}

/* Keep chat messages clear of the fixed input footer. */
.chat-wrap {
    padding-bottom: 130px;
}

/* ── Connection actions on the attendee profile (CONNECT / ACCEPT / DECLINE) ───────────────────── */
.conn-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.conn-btn,
.conn-btn-outline {
    border: 1px solid var(--brand);
    border-radius: 10px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.conn-btn {
    background-color: var(--brand);
    color: #fff;
}

.conn-btn-outline {
    background-color: #fff;
    color: var(--brand);
}

.conn-status {
    border: 1px solid var(--brand);
    border-radius: 10px;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--brand);
    white-space: nowrap;
}

/* ── Field edit popup (My Account) ──────────────────────────────────────────────────────────── */
.field-edit-input {
    width: 100%;
    box-sizing: border-box;
    background-color: #E8E8E8;
    border: none;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 17px;
    line-height: 22px;
    font-family: inherit;
    color: #292625;
    margin-bottom: 22px;
}

.field-edit-input:focus {
    outline: none;
    background-color: #f1f1f1;
}

textarea.field-edit-input {
    resize: none;
    min-height: 120px;
}

.field-edit-actions {
    display: flex;
    gap: 14px;
}

.field-edit-actions button {
    flex: 1 1 0;
    height: 54px;
    border: none;
    border-radius: 27px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}

.field-edit-actions .fe-save {
    background-color: var(--brand);
    color: #fff;
}

.field-edit-actions .fe-cancel {
    background-color: #E8E8E8;
    color: #292625;
}

/* ── Workshop attendance (session detail sheet) ─────────────────────────────────────────────────
   A header row carrying the session type on the left and the Attend / Attending control on the
   right; a small availability chip below the meta line. Reuses the .conn-* button styles. */
.ws-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ws-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ws-cancel {
    background: none;
    border: none;
    color: var(--brand);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 2px;
}

.ws-full {
    opacity: 0.6;
}

.ws-spaces {
    display: inline-block;
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    padding: 5px 11px;
    margin-bottom: 16px;
}

/* ── Calendar day-view (What's On / Schedule / Team) ────────────────────────────────────────────
   Sessions are absolutely positioned on a vertical time axis (top = start, height = duration) with
   overlapping sessions split into columns. `.cal` is position:relative ONLY (no transform), so it is a
   safe containing block for these absolute children and does NOT break the fixed-position bottom sheet. */
.cal {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.cal-ruler {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
}

.cal-hour-label {
    position: absolute;
    left: 0;
    padding-top: 2px;            /* sit just below the hour line */
    font-size: 12px;
    line-height: 12px;
    color: #0E0202;
}

.cal-body {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    /* left set inline = ruler width */
    border-left: #E8E8E8 solid 1px;
    /* When the columns don't fit, scroll them horizontally (the time ruler stays put). overflow-y is
       hidden — the body is sized to the tallest slot so nothing is clipped — and overflow doesn't create
       a containing block, so the fixed bottom sheets still anchor to the viewport. */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;                 /* click-and-drag to scroll (js/dragscroll.js) */
}

/* While dragging, show the grabbing cursor everywhere (even over the pointer-cursor cards). */
.cal-body.eb-dragging,
.cal-body.eb-dragging * {
    cursor: grabbing !important;
    scroll-behavior: auto;        /* no smooth-scroll fighting the drag */
}

/* The (possibly wider-than-viewport) columns area the slots are positioned within. */
.cal-track {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* ── Agenda filters (What's On) ─────────────────────────────────────────────────────────────────
   Both rows can scroll horizontally. Zone buttons override the custom properties with the exact
   colour used by their timetable cards; the type row keeps the event's primary brand colour. */
.agenda-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 6px 0;
    scrollbar-width: none;
}

.agenda-filter::-webkit-scrollbar {
    display: none;
}

.zf-pill {
    flex: 0 0 auto;
    --filter-color: var(--brand);
    --filter-on-color: var(--on-brand);
    border: 2px solid var(--filter-color);
    background-color: #fff;
    color: var(--filter-color);
    font-size: 13px;
    font-weight: bold;
    line-height: 18px;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
}

.zf-pill.active {
    background-color: var(--filter-color);
    color: var(--filter-on-color);
}

.agenda-filter-empty {
    margin: 24px 0 96px;
    padding: 28px 20px;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: #f7f7f7;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.cal-gridline {
    position: absolute;
    left: 0;
    right: 0;
    border-top: #E8E8E8 solid 1px;
    pointer-events: none;
}

/* Each session is the full .agenda-box card (photo, name, title, company, time, type pill), placed
   into a positioned slot. overflow:hidden clips a card that is taller than a short session's slot. */
.cal-slot {
    position: absolute;
    overflow: hidden;
    box-sizing: border-box;
}

.cal-slot .agenda-box {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* The time + type pill are a fixed-size bottom row that is ALWAYS visible (never shrinks/clips). A flex
   row lets the time truncate with an ellipsis while the pill keeps its full width on the right. */
.cal-slot .ab-bottom {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cal-slot .ab-time {
    float: none;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 0;
}

.cal-slot .ab-type {
    float: none;
    flex: 0 0 auto;
    margin-left: auto;
}

/* Shrink the avatar a touch and reserve clearance so it never sits on top of the text in narrow cards. */
.cal-slot .dp-wrapper {
    top: 8px;
    right: 8px;
}

.cal-slot .ab-dp {
    width: 32px;
    height: 32px;
}

/* The text area takes the remaining height and may shrink below its content size; its content is
   truncated (see below) so it never pushes the time/pill row out of the card. The right padding keeps
   every line clear of the absolutely-positioned avatar. */
.cal-slot .ab-top {
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 46px;
    padding-bottom: 6px;
    overflow: hidden;
}

/* Cards without an avatar (e.g. the zone agenda) have no photo to clear, so let the text use the full
   width — this is what makes a lot more of each session's title readable. */
.cal-slot .agenda-box.ab-no-avatar .ab-top {
    padding-right: 12px;
}

/* Show as much of the title as the card's height allows: wrap it over several lines (clamped so it
   never pushes the always-visible time/pill row out of the card) rather than a single ellipsis line. */
.cal-slot .ab-top h5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-slot .ab-top p {
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-slot .ab-top p:first-of-type {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.cal-slot .ab-top p:last-of-type {
    white-space: nowrap;
}

/* Workshops keep the dark .blue-box colour (defined in style.css); talks/meetings stay brand pink. */

/* ── Floor Plan (pinch/scroll zoom + drag pan, see js/panzoom.js) ───────────────────────────────── */
.floorplan-screen {
    background-color: #fff;
    min-height: 100vh;
    padding: 16px 10px 0 10px;
    box-sizing: border-box;
}

.fp-tabs ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.fp-tabs ul::-webkit-scrollbar {
    display: none;
}

.fp-tabs ul li {
    flex: 0 0 auto;
}

/* The pannable window: fixed height (leaves room for header, tabs and footer), clips the zoomed image.
   touch-action:none lets us own the pinch/drag gestures. */
.fp-viewport {
    position: relative;
    width: 100%;
    height: calc(100vh - 240px);
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    touch-action: none;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.fp-viewport.grabbing {
    cursor: grabbing;
}

/* The transformed wrapper holds the image + the hotspot overlay so they pan/zoom together. It shrink-
   wraps the natural-size image, so hotspot percentages map directly to the image. */
.fp-content {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    transform-origin: 0 0;
    will-change: transform;
}

.fp-img {
    display: block;
    /* Render at natural size so the JS scale math is exact (overrides the global img{max-width:100%}). */
    width: auto;
    max-width: none;
    height: auto;
    -webkit-user-drag: none;
    user-drag: none;
}

/* Overlay fills the image box; only the hotspot rectangles are hit-testable so empty areas still pan. */
.fp-hotspots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fp-hotspot {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    border: 0;
    padding: 0;
    border-radius: 4px;
    background: transparent;
}

.fp-hotspot:hover,
.fp-hotspot:focus-visible {
    outline: none;
    background: rgba(255, 3, 91, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 3, 91, 0.55);
}

.fp-legend-hotspot:hover,
.fp-legend-hotspot:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 3, 91, 0.45);
}

.fp-hint {
    text-align: center;
    color: #9a9a9a;
    font-size: 12px;
    padding: 10px 0 6px 0;
}

/* Let the agenda content fill the screen height even when its list is short. */
.agenda-screen {
    min-height: 100vh;
    box-sizing: border-box;
}

/* Keep the header pinned to the top of every in-event screen while the content scrolls under it. */
.header-section {
    position: sticky;
    top: 0;
    z-index: 9990;
}

/* Same for the profile preview's top bar. */
.ppp-top {
    position: sticky;
    top: 0;
    z-index: 9990;
    background: #fff;
}

/* The "coming up next" cards scroll horizontally; show a grab cursor and support mouse drag-to-swipe
   (wired by js/dragscroll.js). Touch/trackpad swipe works natively via overflow-x. */
.scrolling-wrapper {
    cursor: grab;
}

.scrolling-wrapper.eb-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* Session-detail bottom sheet content (reuses the .appointment-request sheet styling). */
.session-topic {
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
    color: #0E0202;
    padding: 6px 0 14px 0;
}

.session-meta {
    color: var(--brand);
    font-weight: 600;
    padding-bottom: 16px;
}

.session-desc {
    color: #292625;
    line-height: 22px;
}

.exhibitor-detail-logo {
    height: 90px;
    display: flex;
    align-items: center;
    padding: 6px 0 14px 0;
}

.exhibitor-detail-logo img {
    max-height: 80px;
    max-width: 60%;
    object-fit: contain;
}

/* Smooth horizontal scrolling for the expo sub-nav (replaces the old jQuery .animate behaviour;
   the arrow buttons call scrollBy({behavior:'smooth'}) from js/subnav.js). */
.sub-nav {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Animate the launch progress bar filling up while the splash "loads". */
.lpl-progress {
    transition: width 80ms linear;
}

/* Keep the splash logo a sensible size on the branded loading screen regardless of the source logo's
   dimensions (a tall square mark or a wide wordmark both fit centred). */
.lp-logo img {
    max-width: 220px;
    max-height: 70px;
    object-fit: contain;
}

/* ── Appointment request: bottom-sheet that slides up, drag-down to dismiss ─────────────────────
   The mockup positioned these absolutely inside the agenda screen; we promote them to a fixed,
   viewport-anchored bottom sheet so it slides up over everything and aligns to the app column. */
.popup-bg {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100000; /* above the fixed footer-nav (99999) so the sheet covers everything */
    animation: eb-overlay-fade 0.25s ease;
}

.appointment-request {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: var(--app-max-width);
    width: 100%;
    touch-action: none; /* let us own the vertical drag gesture */
    will-change: transform;
}

@keyframes eb-overlay-fade {
    from { background-color: rgba(0, 0, 0, 0); }
    to { background-color: rgba(0, 0, 0, 0.7); }
}

/* Make the whole agenda/attendee/exhibitor rows feel tappable. */
.agenda-box,
.attendee-item,
.exhibitors-item {
    cursor: pointer;
}


/* Expo listing card polish: keep ported cards aligned inside the content gutter and give logos a stable box. */
.expo-wrap > .exhibitors-item,
.expo-wrap > .sw-item {
    margin-left: 0;
    margin-right: 0;
    border-radius: 10px;
}

.exhibitors-item {
    box-sizing: border-box;
    min-height: 104px;
    align-items: stretch;
}

.exi-image {
    height: auto;
    min-height: 104px;
    background: #fff;
    border-right: 1px solid #f0edf0;
}

.exi-image img {
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
}

.exi-text {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 8px 11px 0;
    box-sizing: border-box;
}

.exi-text h4,
.exi-text h5,
.exi-text p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.exi-text h4,
.exi-text h5,
.exi-text p {
    -webkit-line-clamp: 2;
}

/* Keep every directory-card family readable without allowing unusually long source text to crowd
   the bottom edge. The complete values remain in the DOM and in their detail sheets. */
.ai-text {
    flex: 1 1 auto;
    min-width: 0;
    padding-bottom: 5px;
}

.ai-text h4,
.ai-text h5,
.ai-text p,
.swi-text h2,
.swi-text h3,
.swi-text p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.ai-text h4,
.ai-text h5,
.swi-text h2,
.swi-text h3 {
    -webkit-line-clamp: 2;
}

.ai-text p {
    -webkit-line-clamp: 1;
}

.sw-item {
    min-height: 204px;
    align-items: stretch;
}

.swi-image {
    height: auto;
    min-height: 204px;
}

.swi-text {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.swi-text p {
    -webkit-line-clamp: 3;
}

.swi-text h4 {
    margin-top: auto;
}

/* ── Blazor framework UI (from template) ───────────────────────────────────────────────────── */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* Keep the fixed footer's buttons clear of an on-screen navigation bar (safe-area inset). Harmless on
   desktop/where there's no inset; on Android the content is also kept within the bars natively. */
.footer-nav {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    left: 50%;
    max-width: var(--app-max-width);
    transform: translateX(-50%);
}

.status-bar-safe-area {
    display: none;
}

/* ── Content-led dark shell (VentureFest South) ─────────────────────────────────────────────────
   Opt-in via BrandingConfig.ShellVariant. The standard ExpoBeacon shell remains unchanged. */
.shell-dark-stacked .header-section {
    position: sticky;
    top: 0;
    z-index: 9990;
    padding: 0;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.header-dark-stacked .hs-brand-lockup {
    min-height: 94px;
    padding: 18px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.header-dark-stacked .hs-brand-lockup img {
    width: auto;
    height: 64px;
    max-width: min(320px, 86vw);
    object-fit: contain;
}

.footer-nav.footer-dark {
    background: #000;
}

.footer-dark .footer-nav-wrap {
    padding: 9px 0 8px;
}

.footer-dark .footer-nav-wrap ul li {
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-heading);
    font-size: 9px;
    line-height: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-dark .footer-nav-wrap ul li a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-dark .footer-nav-wrap ul li a::before {
    height: 20px;
    margin-bottom: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
}

.footer-dark .footer-nav-wrap ul li.active a {
    color: var(--accent);
}

.footer-dark .footer-nav-wrap ul li.active a::before {
    background-color: var(--accent);
}

/* VentureFest campaign home. All content remains XML-driven; these classes provide the reference skin. */
.campaign-home {
    min-height: 100vh;
    padding: 22px 21px 88px;
    box-sizing: border-box;
    background: #f5f5f5;
    color: #222;
    font-family: var(--font-heading);
}

.campaign-story-card,
.campaign-countdown,
.campaign-partners,
.campaign-community,
.campaign-now-next,
.campaign-shortcuts {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.campaign-story-card {
    padding: 20px;
    border: 1px solid rgba(204, 204, 204, 0.25);
    border-radius: 14px;
    background: #fff;
}

.campaign-story-logo {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 16px;
}

.campaign-story-card h1 {
    margin: 0;
    color: #000;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 1.12;
    font-weight: 800;
}

.campaign-story-card h1 span {
    display: block;
    color: var(--accent);
}

.campaign-story-description {
    margin: 20px 0 0;
    color: #555;
    text-align: center;
    font-size: 14px;
    line-height: 1.65;
}

.campaign-divider {
    height: 1px;
    margin: 18px 0 16px;
    background: rgba(0, 0, 0, 0.07);
}

.campaign-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.campaign-stat {
    min-height: 76px;
    padding: 14px 12px;
    box-sizing: border-box;
    border-radius: 10px;
}

.campaign-stat strong,
.campaign-stat span {
    display: block;
}

.campaign-stat strong {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}

.campaign-stat strong sup {
    font-size: 13px;
    font-weight: 600;
}

.campaign-stat span {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.campaign-stat.tone-olive { color: #7d894d; background: rgba(200, 205, 73, 0.14); }
.campaign-stat.tone-plum { color: #831b54; background: rgba(131, 27, 84, 0.08); }
.campaign-stat.tone-teal { color: #2c7172; background: rgba(44, 113, 114, 0.09); }
.campaign-stat.tone-orange { color: #c05a2a; background: rgba(217, 104, 56, 0.09); }

.campaign-festival-callout {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 10px;
    background: #000;
    text-align: center;
}

.campaign-festival-callout strong {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.campaign-festival-callout p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.7;
}

.campaign-countdown {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.campaign-countdown > div > span,
.campaign-days {
    display: block;
    font-weight: 700;
}

.campaign-days {
    font-size: 56px;
    line-height: 1;
}

.campaign-countdown > div > span {
    margin-top: 2px;
    font-size: 18px;
}

.campaign-countdown p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 18px;
}

.campaign-pill {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 99px;
    background: var(--accent);
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.campaign-partners {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: #111;
}

.campaign-panel-intro {
    padding: 14px;
}

.campaign-panel-intro h2,
.campaign-community h2,
.campaign-now-next h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 24px;
    font-weight: 700;
}

.campaign-panel-intro p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.6;
}

.campaign-partner-grid {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.campaign-partner-logo {
    height: 44px;
    padding: 4px;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-partner-logo img {
    display: block;
    width: auto;
    max-width: 90%;
    height: 26px;
    object-fit: contain;
}

.campaign-panel-action {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.campaign-pill-wide {
    width: 100%;
    gap: 8px;
    font-size: 12px;
}

.campaign-pill-wide svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.campaign-community {
    margin-top: 20px;
    padding: 16px;
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    box-sizing: border-box;
    background: #000;
    color: #fff;
}

.campaign-community-top {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.campaign-community-top img {
    width: auto;
    max-width: 64%;
    height: 40px;
    object-fit: contain;
    object-position: left;
}

.campaign-community-top span {
    padding: 4px 10px;
    border: 1px solid rgba(200, 205, 73, 0.3);
    border-radius: 80px;
    background: rgba(200, 205, 73, 0.15);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.campaign-community > p {
    margin: 8px 0 14px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 20px;
}

.campaign-community ul {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campaign-community li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.campaign-community li span {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(200, 205, 73, 0.25);
    border-radius: 50%;
    background: rgba(200, 205, 73, 0.15);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
}

.campaign-community-action {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.campaign-now-next,
.campaign-shortcuts {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 10px;
    background: #fff;
}

.campaign-now-next h2 {
    color: #222;
}

.campaign-empty {
    margin: 12px 0 0;
    color: #444;
    font-size: 14px;
}

.campaign-session-group {
    margin-top: 12px;
}

.campaign-session-group h3 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.campaign-session-group h3.is-happening { color: #831b54; }
.campaign-session-group h3.is-next { color: #2c7172; }

.campaign-session-card {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: 1px solid rgba(204, 204, 204, 0.25);
    border-left: 4px solid #2c7172;
    border-radius: 5px;
    background: #fff;
    color: #222;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    cursor: pointer;
}

.campaign-session-card.highlighted { border: 2px solid #831b54; border-left-width: 4px; }
.campaign-session-title { font-size: 14px; line-height: 20px; font-weight: 600; }
.campaign-session-meta { color: #555; font-size: 12px; }

.campaign-shortcuts h2 {
    margin: 0 0 10px;
    color: #888;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.campaign-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.campaign-shortcut-grid a {
    padding: 12px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #222;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
}

.campaign-shortcut-grid img { width: 24px; height: 24px; }
.campaign-shortcut-grid strong { font-size: 13px; font-weight: 500; }
.campaign-shortcut-grid span { color: #888; font-size: 11px; }

@media (max-width: 380px) {
    .campaign-home { padding-left: 14px; padding-right: 14px; }
    .campaign-story-card { padding: 16px; }
    .campaign-countdown { align-items: flex-start; flex-direction: column; }
    .campaign-countdown .campaign-pill { width: 100%; }
    .campaign-partner-grid { grid-template-columns: repeat(2, 1fr); }
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }
}

/* More screen: use the active brand palette instead of the pink gradient baked into the ported template. */
.more-wrap {
    background: linear-gradient(0deg, #fff 0%, var(--brand) 50%, var(--brand-dark) 100%);
}
/* Agenda header: reduce the gap between the tab filters and the selected date. */
.agenda-screen > .main-nav ul li {
    margin-bottom: 8px;
}
/* More rich-text content pages. */
.more-content-page {
    min-height: 100vh;
    box-sizing: border-box;
    background: #fff;
    padding: 24px 18px 96px 18px;
    color: var(--ink);
}

.more-back {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.more-content-page h1 {
    color: var(--brand);
    font-size: 30px;
    line-height: 34px;
    margin: 0 0 18px 0;
}

.rich-text h2 {
    color: var(--brand-dark);
    font-size: 19px;
    line-height: 24px;
    margin: 24px 0 8px 0;
}

.rich-text p,
.rich-text li {
    font-size: 15px;
    line-height: 23px;
}

.rich-text p {
    margin: 0 0 14px 0;
}

.rich-text ul {
    margin: 0 0 16px 20px;
    padding: 0;
}
