/* ==========================================================================
   Conference Overview / What to Expect — 2027 redesign
   (template-overview-2027.php)
   Source: Figma "SMGLI | Design Devsite" → "Overview" (node 2197:10622,
   1440 × 4324, content column 1260 = 1440 − 90×2). Everything is scoped
   under .ov27 so nothing here reaches other templates. Colour and font
   tokens come from site.css; Figma values are noted where they differ.
   Positions are Figma's at 1440 and scale down with the viewport.
   ========================================================================== */

.ov27 {
    --ov27-cream: var(--stone);          /* #f2ebe4 page + panel */
    --ov27-card: #f2ebe3;                /* Figma card fill */
    --ov27-tan: var(--stone-dark);       /* #e4d9cb partners band */
    --ov27-ink: #2e2521;                 /* body copy */
    --ov27-charcoal: var(--charcoal);    /* #2b2621 hero lede */
    --ov27-plum: #47151e;                /* Figma plum (site --plum is #47141f) */
    --ov27-clay: var(--clay);            /* #ba4a29 */
    --ov27-clay-text: #b94928;           /* Figma "Clay" text style */
    --ov27-clay-line: #b24b22;           /* button borders */
    --ov27-ochre: var(--ochre);          /* #d68a1c */
    --ov27-teal: #065a62;
    --ov27-green: #3d611a;
    --ov27-serif: var(--font-accent);    /* Crimson Text */
    --ov27-mono: var(--font-label);      /* Inconsolata */
    --ov27-sans: var(--font-body);       /* Figtree */
    --ov27-content: 1260px;              /* Figma content column */
    color: var(--ov27-ink);
    overflow-x: clip;
}

.ov27-inner {
    position: relative;
    z-index: 2;
    width: min(100% - (var(--space-page) * 2), var(--ov27-content));
    margin-inline: auto;
}

/* ---- Shared type --------------------------------------------------------- */

.ov27-eyebrow {
    margin: 0;
    font-family: var(--ov27-mono);
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ov27-clay);
}
.ov27-eyebrow--small {
    font-size: 16px;
    letter-spacing: 0;
}
.ov27-eyebrow--ochre { color: var(--ov27-ochre); }

.ov27-h1 {
    margin: 0;
    font-family: var(--ov27-serif);
    font-weight: 600;
    font-size: clamp(34px, 3.33vw, 48px);
    line-height: 1.04;
    color: var(--ov27-plum);
}

.ov27-h2 {
    margin: 0;
    font-family: var(--ov27-serif);
    font-weight: 600;
    font-size: clamp(28px, 2.5vw, 36px);
    line-height: 1.33;
    text-align: center;
    color: var(--ov27-plum);
}
.ov27-h2--left  { text-align: left; line-height: 1.22; }
.ov27-h2--big   { font-size: clamp(34px, 3.33vw, 48px); line-height: 1.21; }
.ov27-h2--cream { color: var(--ov27-cream); }

/* Pill buttons (Figma: 999 radius, Inconsolata ExtraBold caps). */
.ov27-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 58px;
    padding: 15px 32px;
    border: 2px solid var(--ov27-clay-line);
    border-radius: 999px;
    font-family: var(--ov27-mono);
    font-weight: 800;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ov27-btn--outline {
    background: transparent;
    color: var(--ov27-cream);
}
.ov27-btn--outline:hover,
.ov27-btn--outline:focus-visible {
    background: var(--ov27-clay);
    color: #fbf9f5;
}
.ov27-btn--clay {
    background: var(--ov27-clay);
    color: #fbf9f5;
}
.ov27-btn--clay:hover,
.ov27-btn--clay:focus-visible {
    background: var(--clay-hover);
    border-color: var(--clay-hover);
}
.ov27-btn--plum {
    min-height: 54px;
    padding: 14px 18px;
    border-width: 1px;
    background: var(--ov27-plum);
    color: var(--ov27-cream);
    font-size: 13px;
}
.ov27-btn--plum:hover,
.ov27-btn--plum:focus-visible {
    background: var(--ov27-clay);
    border-color: var(--ov27-clay);
}
.ov27 a:focus-visible { outline: 2px solid var(--ov27-ochre); outline-offset: 3px; }

/* ---- 1. Hero (Figma 1440 × 450) ----------------------------------------- */

.ov27-hero {
    position: relative;
    min-height: 450px;
    display: grid;
    place-items: center;
    padding: 80px var(--space-page) 80px;
    overflow: clip;
}
.ov27-hero__inner {
    position: relative;
    z-index: 2;
    width: min(100%, 665px);
    text-align: center;
}
.ov27-hero__eyebrow { margin-bottom: 36px; }
.ov27-hero__lede {
    margin-top: 8px;
    font-family: var(--ov27-sans);
    font-size: clamp(17px, 1.39vw, 20px);
    line-height: 1.6;
    color: var(--ov27-charcoal);
}
.ov27-hero__lede p { margin: 0; }
.ov27-hero__lede p + p { margin-top: 8px; }
.ov27-hero__date {
    margin: 0;
    padding-top: 28px;
    font-family: var(--ov27-mono);
    font-weight: 600;
    font-size: clamp(17px, 1.39vw, 20px);
    line-height: 32px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ov27-clay-text);
}

/* Collages: Figma exports placed where the Figma instances sit. */
.ov27-hero__art {
    position: absolute;
    z-index: 1;
    bottom: 0;
    height: auto;
    pointer-events: none;
    user-select: none;
}
/* Both scale with the viewport (Figma proportions at 1440), so the collages
   keep their place beside the copy down to tablet widths. */
.ov27-hero__art--left {
    left: 0;
    width: min(18.9vw, 272px);            /* Figma 272 × 413, x 0, bottom-anchored */
}
.ov27-hero__art--right {
    right: 0;
    width: min(32.3vw, 465px);            /* Figma 465 × 392, right 0, bottom 0 */
}

@media (max-width: 1100px) {
    /* Copy column narrows so it clears the paper's torn edge on the left. */
    .ov27-hero__inner { width: min(665px, 100% - 40vw); }
}
@media (max-width: 767px) {
    /* Phones: text first, unchanged; the collages shrink so they flank the
       date line instead of sitting in a strip under it (Laura, 17 Nov).
       --ov27-side = room on each side of the date (180px wide at 17px).
       Right collage (930 x 784, h = .843 w) sets the bottom padding so its top
       sits just above the date; the left one (544 x 826, h = 1.52 w) is capped
       so its top stays 8px under the lede. */
    .ov27-hero {
        --ov27-side: calc((100vw - 180px) / 2 - 14px);
        --ov27-art-r: min(var(--ov27-side), 200px);
        --ov27-art-l: min(var(--ov27-side), calc(var(--ov27-art-r) * .555 + 8px));
        min-height: 0;
        padding-top: 56px;
        padding-bottom: max(16px, calc(var(--ov27-art-r) * .843 - 40px));
    }
    .ov27-hero__inner { width: 100%; }
    .ov27-hero__eyebrow { margin-bottom: 24px; }
    .ov27-hero__art--left  { width: var(--ov27-art-l); }
    .ov27-hero__art--right { width: var(--ov27-art-r); }
}

/* ---- 2. Six experience cards (Figma 1440 × 1820) -------------------------- */

.ov27-exp {
    padding: 70px 0 135px;
    background: #ece5de;                  /* Laura, 3 Nov: flat colour, not the paper texture */
}
.ov27-exp__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.ov27-exp__head .ov27-eyebrow { margin-bottom: 11px; }
.ov27-exp__head .ov27-h2 { max-width: 940px; margin-bottom: 52px; }
.ov27-exp__intro {
    max-width: 780px;
    margin-bottom: 52px;
    font-family: var(--ov27-sans);
    font-size: 18px;
    line-height: 29px;
    color: var(--ov27-ink);
}
.ov27-exp__intro p { margin: 0; }

.ov27-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 60px;
    row-gap: 55px;
}

.ov27-card {
    --ov27-accent: var(--ov27-clay);
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 0;                       /* Figma is a fixed 420; Patricia asked for less air under the text */
    margin: 0;
    padding: 36px 52px 40px 40px;
    background: var(--ov27-card);
    border: 2px solid var(--ov27-accent-border);   /* Figma: accent at 65% */
    border-radius: 18px;
    overflow: clip;
}
.ov27-card--clay  { --ov27-accent: var(--ov27-clay);  --ov27-accent-border: rgba(186, 74, 41, .65); }
.ov27-card--teal  { --ov27-accent: var(--ov27-teal);  --ov27-accent-border: rgba(6, 90, 98, .65); }
.ov27-card--ochre { --ov27-accent: var(--ov27-ochre); --ov27-accent-border: rgba(214, 138, 28, .65); }
.ov27-card--green { --ov27-accent: var(--ov27-green); --ov27-accent-border: rgba(61, 97, 26, .65); }
.ov27-card--plum  { --ov27-accent: var(--ov27-plum);  --ov27-accent-border: rgba(71, 21, 30, .65); }

/* "Brand Accent": 8px bar hugging the left edge, rounded like the Figma rect. */
.ov27-card::before {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: -2px;
    width: 8px;
    border-radius: 8px;
    background: var(--ov27-accent);
}

.ov27-card__head {
    display: flex;
    align-items: flex-start;
}
.ov27-card__number {
    flex: 0 0 83px;                      /* number at x 40, title at x 123 */
    font-family: var(--ov27-mono);
    font-weight: 800;
    font-size: 20px;
    line-height: 34px;
    color: var(--ov27-accent);
}
.ov27-card__title {
    margin: 4px 0 0;
    font-family: var(--ov27-serif);
    font-weight: 600;
    font-size: 24px;
    line-height: 34px;
    color: var(--ov27-plum);
}
.ov27-card__body {
    max-width: 510px;
    margin-top: 30px;
    font-family: var(--ov27-sans);
    font-size: 16px;
    line-height: 25px;
    color: var(--ov27-ink);
}
.ov27-card__body p { margin: 0; }
.ov27-card__body p + p { margin-top: 12px; }
.ov27-card__foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 28px;
    font-family: var(--ov27-mono);
    font-size: 14px;
    line-height: 22px;
    text-transform: uppercase;
}
.ov27-card__stat {
    margin: 0;
    font-weight: 600;
    color: var(--ov27-accent);
}
.ov27-card__link {
    flex: 0 0 auto;
    font-weight: 800;
    color: var(--ov27-plum);
    text-decoration: none;
    white-space: nowrap;
}
.ov27-card__link:hover,
.ov27-card__link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1023px) {
    .ov27-exp { padding: 56px 0 80px; }
    .ov27-exp__head .ov27-h2,
    .ov27-exp__intro { margin-bottom: 36px; }
    .ov27-cards { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
    .ov27-card { min-height: 0; padding: 30px 28px 36px 30px; }
    .ov27-card__number { flex-basis: 56px; }
    .ov27-card__body { margin-top: 20px; }
    .ov27-card__foot { padding-top: 26px; flex-wrap: wrap; }
}

/* ---- 3. Community partners band (Figma 1440 × 450) ------------------------ */

.ov27-partners {
    position: relative;
    padding: 70px 0;
    background: var(--ov27-tan);
    overflow: clip;
}
.ov27-partners__panel {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 970px);
    min-height: 310px;
    padding: 45px 55px 31px;
    background: var(--ov27-cream);
    border-radius: 20px;
}
.ov27-partners__panel .ov27-eyebrow { margin-bottom: 13px; }
.ov27-partners__panel .ov27-h2 { max-width: 600px; margin-bottom: 15px; }
.ov27-partners__text {
    max-width: 690px;
    font-family: var(--ov27-sans);
    font-size: 16px;
    line-height: 27px;
    color: var(--ov27-ink);
}
.ov27-partners__text p { margin: 0; }
.ov27-partners__btn {
    position: absolute;
    right: 50px;
    bottom: 31px;
    min-width: 230px;
}

/* "Collage Accent / Architecture Color 03": 302 × 403 at x 1149, y 56 (1440). */
.ov27-partners__art {
    position: absolute;
    z-index: 1;
    top: 56px;
    right: calc(50% - 731px);              /* 1440 − 1149 − 302 = −11 from the right at 1440 */
    width: 302px;
    height: auto;
    pointer-events: none;
    user-select: none;
}
@media (max-width: 1460px) {
    .ov27-partners__art { right: -11px; }
}
@media (max-width: 1280px) {
    .ov27-partners__art { width: clamp(180px, 21vw, 302px); top: auto; bottom: -8%; }
}
@media (max-width: 1023px) {
    .ov27-partners { padding: 56px 0; }
    .ov27-partners__panel { min-height: 0; padding: 36px 32px 36px; }
    .ov27-partners__btn { position: static; margin-top: 28px; }
    .ov27-partners__art { display: none; }
}

/* ---- 4. Registration prompt (Figma 1440 × 480) ---------------------------- */

.ov27-register {
    position: relative;
    background: var(--ov27-plum);
    color: var(--ov27-cream);
}
/* Seam with the shared Join band below: its torn top is transparent and
   showed the body paper texture as a strip (same fix as site.css, 20 Oct:
   the section above the band runs its background 64px under the tear). */
.ov27-register::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 64px;
    background: var(--ov27-plum);
    pointer-events: none;
}
.ov27-register__inner {
    max-width: 1200px;                    /* Figma text at x 120 */
    min-height: 480px;
    box-sizing: border-box;
    padding: 88px 0 97px;
    overflow: clip;                       /* keeps the heart inside the band */
}
.ov27-register__copy { max-width: 820px; }
.ov27-register__copy .ov27-eyebrow { margin-bottom: 16px; }
.ov27-register__copy .ov27-h2 { margin-bottom: 27px; }
.ov27-register__text {
    max-width: 720px;
    margin-bottom: 52px;
    font-family: var(--ov27-sans);
    font-size: 18px;
    line-height: 29px;
    color: var(--ov27-cream);
}
.ov27-register__text p { margin: 0; }
.ov27-register__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.ov27-register__actions .ov27-btn { min-width: 210px; }

/* "Heart_03": 284 × 338 box at x 1020, y 49; the heart (250 × 311) rotated 6.7°. */
.ov27-register__art {
    position: absolute;
    top: 49px;
    right: 16px;                          /* 1320 − 1304 at 1440 */
    width: 284px;
    height: 338px;
    display: grid;
    place-items: center;
    pointer-events: none;
    user-select: none;
}
.ov27-register__art img {
    width: 250px;
    height: auto;
    transform: rotate(6.7deg);
}
@media (max-width: 1200px) {
    .ov27-register__art { width: 220px; height: 262px; right: 0; top: 70px; }
    .ov27-register__art img { width: 194px; }
    .ov27-register__copy { max-width: min(820px, 100% - 240px); }
}
@media (max-width: 900px) {
    .ov27-register__inner { min-height: 0; padding: 64px 0 72px; }
    .ov27-register__copy { max-width: none; }
    .ov27-register__text { margin-bottom: 36px; }
    .ov27-register__art {
        position: static;
        width: 170px;
        height: auto;
        margin: 40px 0 0 auto;
    }
    .ov27-register__art img { width: 150px; }
}
@media (max-width: 480px) {
    .ov27-register__actions { flex-direction: column; }
    .ov27-register__actions .ov27-btn { width: 100%; }
}
