/* =============================================================
   FEC §3 INDUSTRY SCOPE — V8C "BRAND-ALIGNED EDITORIAL"
   2026-05-04 critique pass:
     • Cream paper → Cool-white #f5f7fb (brand palette parity)
     • Eyebrow Avenir 300 warm grey → Rubik 600 Cyan-light per system
     • H2 weight 500 + size cap (no longer dominates §2 H2)
     • Lede Fraunces body → Avenir per token boundary
     • Category names italic Fraunces → Rubik 600 (italic reserved for H2)
     • 1px hairline grid → 28px gutter, white cards float on Cool-white
     • Section bottom radius 100 → 60 (matches §2)
     • Number Navy → Cyan-light editorial accent
   Palette: #283582 Navy · #3ca3dd Cyan · #5fb8e8 Cyan-light · #f5f7fb Cool-white
   Fonts: Rubik (eyebrow, names, num) · Avenir (body, lede, hint) · Fraunces (display H2 only)
   ============================================================= */

/* -------------------------------------------------------------
   1. Fraunces — display only (H2)
   ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&display=swap');

/* -------------------------------------------------------------
   2. Local Avenir + Rubik (already on Divi-child)
   ------------------------------------------------------------- */
@font-face {
    font-family: 'Avenir';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local(''),
         url('fonts/Avenir-Light.woff2') format('woff2'),
         url('fonts/Avenir-Light.woff') format('woff');
}
@font-face {
    font-family: 'Avenir';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local(''),
         url('fonts/Avenir-Black.woff2') format('woff2'),
         url('fonts/Avenir-Black.woff') format('woff');
}
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local(''),
         url('fonts/rubik-v26-latin-500.woff2') format('woff2'),
         url('fonts/rubik-v26-latin-500.woff') format('woff');
}
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local(''),
         url('fonts/rubik-v26-latin-600.woff2') format('woff2'),
         url('fonts/rubik-v26-latin-600.woff') format('woff');
}

/* -------------------------------------------------------------
   3. Page-scoped tokens — brand palette aligned
   ------------------------------------------------------------- */
body.page-id-333930 {
    --fec-ed-navy: #283582;
    --fec-ed-cyan: #3ca3dd;
    --fec-ed-cyan-light: #5fb8e8;
    --fec-ed-ink: #2a2e3f;
    --fec-ed-ink-soft: #5a6072;
    --fec-ed-ink-faint: #9aa0b2;
    --fec-ed-cool: #f5f7fb;
    --fec-ed-card: #ffffff;
    --fec-ed-rule: #e1e6ef;
    --fec-ed-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------
   4. SECTION — Cool-white canvas, bottom-radius matched to §2
   ------------------------------------------------------------- */
body.page-id-333930 .fec-scope-ed.et_pb_section {
    background-color: var(--fec-ed-cool) !important;
    border-radius: 0 0 60px 60px !important;
    border-top: 1px solid var(--fec-ed-rule);
    position: relative;
    /* Higher z-index than §4 so when §4 slides up under §3's curved
       bottom (margin-top: -60px), §3's content stays painted on top. */
    z-index: 2;
}
body.page-id-333930 .fec-scope-ed.et_pb_section::after {
    /* hairline at section foot — kept as editorial closing rule */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--fec-ed-rule);
}

/* -------------------------------------------------------------
   5. HEAD — 2-col editorial head (eyebrow + H2 left | lede deck right)
       Redesigned 2026-05-04: previous single-col stack left the right
       half empty. Now the lede sits in the right column and the two
       columns align to the H2's bottom baseline so they read as a
       title + deck pair, not as two unrelated blocks.
   ------------------------------------------------------------- */
body.page-id-333930 .fec-scope-ed-head.et_pb_row {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    border: 0 !important;
    /* head→cards rhythm matches §2 (H2→body = 40px). The shortcode's
       inline padding-bottom 40px stays; margin-bottom kept tight so the
       total gap reads ~40px instead of the previous 112px. */
    padding-bottom: 0 !important;
    margin-bottom: 40px !important;
    gap: 48px;
}
body.page-id-333930 .fec-scope-ed-head.et_pb_row > .et_pb_column {
    margin: 0 !important;
    float: none !important;
    align-self: end;
}
/* Module-level spacing rhythm matching §2 (eyebrow→H2 24px) */
body.page-id-333930 .fec-scope-ed-eyebrow.et_pb_module {
    margin-bottom: 24px !important;
}
body.page-id-333930 .fec-scope-ed-h2.et_pb_module {
    margin-bottom: 0 !important;
}
body.page-id-333930 .fec-scope-ed-lede.et_pb_module {
    margin: 0 0 8px !important;  /* 8px nudge so lede first line aligns
                                     to the H2's last italic descender */
}

/* Eyebrow — system token: Rubik 600 13px Cyan-light, 3px tracking, uppercase
   The markup already carries "§ 03 — Industry Scope"; uppercase transform
   gives the editorial section-marker treatment used across §2-§9. */
body.page-id-333930 .fec-scope-ed-eyebrow p {
    font-family: 'Rubik', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fec-ed-cyan-light);
    margin: 0 0 24px;
    line-height: 1.2;
}

/* H2 display — Fraunces 500 (matched to §2), capped at 56px to keep §3
   subordinate to the Intro headline. Italic <em> on second line stays as
   the visual hook for "in six categories." */
body.page-id-333930 .fec-scope-ed-h2 h2 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "opsz" 144, "SOFT" 30;
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.018em;
    color: var(--fec-ed-navy);
    margin: 0;
    text-wrap: balance;
}
body.page-id-333930 .fec-scope-ed-h2 h2 em {
    font-style: italic;
    font-weight: 400;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
    color: var(--fec-ed-navy);
    font-size: 1.04em;
    letter-spacing: -0.012em;
}

/* Lede / deck — Avenir per token boundary. Reads as deck under the H2. */
body.page-id-333930 .fec-scope-ed-lede p {
    font-family: 'Avenir', 'Avenir Next', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.18vw, 18px);
    line-height: 1.65;
    color: var(--fec-ed-ink);
    max-width: 38ch;
    margin: 0;
    letter-spacing: 0;
}

/* -------------------------------------------------------------
   6. CARDS GRID — tight magazine-spread, hairline cool-white seams
       (David spec 2026-05-04: gap 2px, row1 margin-bottom 1px,
       sharp corners. Cards form a near-continuous panel with the
       Cool-white section bg showing through at the seams.)
   ------------------------------------------------------------- */
body.page-id-333930 .fec-scope-ed-cards.et_pb_row {
    background: transparent;
    border: 0;
    margin-bottom: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
body.page-id-333930 .fec-scope-ed-cards--row1.et_pb_row {
    margin-bottom: 1px !important;
}
/* Columns fill their grid cell — kill Divi's width / margin / float so the
   grid sizes the cell exactly. Cell's own padding (28 28 24) stays intact. */
body.page-id-333930 .fec-scope-ed-cards.et_pb_row .et_pb_column {
    margin: 0 !important;
    border: 0 !important;
    box-sizing: border-box;
    width: auto !important;
    max-width: none !important;
    float: none !important;
}

/* -------------------------------------------------------------
   7. CELL (column = card) — white panel
   ------------------------------------------------------------- */
body.page-id-333930 .fec-scope-ed-cell.et_pb_column {
    background: var(--fec-ed-card);
    padding: 28px 28px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
}
/* No hover bg-shift — David spec 2026-05-04, cards stay white at all times. */
/* Corner number ::before removed 2026-05-04 — was clipping at the top of the
   cell because Divi's flex/inline-block layout on .et_pb_column conflicted
   with the absolute positioning. The number is already shown in the meta
   row (".fec-scope-ed-num"), so the corner version was redundant editorial
   decoration. Removing it cleans up the bug + simplifies the card. */

/* -------------------------------------------------------------
   8. PLATE — uniform 4:3 image area, capped scale for visual parity
       Photos vary in source crop; capping max-height 80% + max-width 88%
       keeps every product at a consistent visual weight inside the plate.
   ------------------------------------------------------------- */
body.page-id-333930 .fec-scope-ed-plate.et_pb_module {
    margin: 0 0 20px !important;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    background: var(--fec-ed-card);
}
body.page-id-333930 .fec-scope-ed-plate .et_pb_image_wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.page-id-333930 .fec-scope-ed-plate img {
    max-height: 84%;
    max-width: 88%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.7s var(--fec-ed-ease);
}
body.page-id-333930 .fec-scope-ed-cell.et_pb_column:hover .fec-scope-ed-plate img {
    transform: scale(1.05);
}

/* -------------------------------------------------------------
   9. META ROW — Rubik category name, Cyan-light num, Avenir hint
   ------------------------------------------------------------- */
body.page-id-333930 .fec-scope-ed-meta.et_pb_module {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding-top: 16px;
    border-top: 1px solid var(--fec-ed-rule);
}
body.page-id-333930 .fec-scope-ed-meta-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: baseline;
}
/* Meta-row numerals — Fraunces Display italic, echoes the H2 italic
   ("in six categories.") instead of the previous generic Rubik 11px
   tracked sans. Reads as a magazine page-number marker, harmonized
   with the editorial voice (2026-05-04 David). */
body.page-id-333930 .fec-scope-ed-num {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
    font-feature-settings: "tnum" 1;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--fec-ed-cyan-light);
}
/* Category names — Rubik 600 Navy, no italic. Italic is reserved for H2. */
body.page-id-333930 .fec-scope-ed-name {
    font-family: 'Rubik', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--fec-ed-navy);
}
/* Hint — Avenir per body system, cool grey */
body.page-id-333930 .fec-scope-ed-hint {
    font-family: 'Avenir', 'Avenir Next', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    color: var(--fec-ed-ink-soft);
    text-align: right;
    line-height: 1.4;
    white-space: nowrap;
}

/* -------------------------------------------------------------
   10. RESPONSIVE
   ------------------------------------------------------------- */
@media (max-width: 980px) {
    body.page-id-333930 .fec-scope-ed-head.et_pb_row { display: block !important; }
    body.page-id-333930 .fec-scope-ed-head.et_pb_row > .et_pb_column { margin-bottom: 32px !important; width: 100% !important; }
    body.page-id-333930 .fec-scope-ed-h2 h2 { font-size: clamp(30px, 5vw, 44px); }
    body.page-id-333930 .fec-scope-ed-cards.et_pb_row .et_pb_column { padding-right: 20px; }
    body.page-id-333930 .fec-scope-ed-cards--row1.et_pb_row { margin-bottom: 20px !important; }
}

@media (max-width: 767px) {
    body.page-id-333930 .fec-scope-ed-cards.et_pb_row { display: block !important; }
    body.page-id-333930 .fec-scope-ed-cards.et_pb_row .et_pb_column {
        padding-right: 0;
        margin-bottom: 16px !important;
    }
    body.page-id-333930 .fec-scope-ed-cards--row1.et_pb_row { margin-bottom: 16px !important; }
    body.page-id-333930 .fec-scope-ed-cell.et_pb_column { padding: 22px 20px 18px; }
    body.page-id-333930 .fec-scope-ed-hint { white-space: normal; }
    body.page-id-333930 .fec-scope-ed.et_pb_section {
        border-radius: 0 0 36px 36px !important;
    }
}

/* -------------------------------------------------------------
   11. Reduce motion
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    body.page-id-333930 .fec-scope-ed-plate img,
    body.page-id-333930 .fec-scope-ed-cell.et_pb_column { transition: none !important; }
    body.page-id-333930 .fec-scope-ed-cell.et_pb_column:hover { transform: none; }
}
