/*
 * ExamVillage – Homepage Styles  (v5 — 300px hero with full-height photo, refined type/spacing/icons, mobile UX)
 * File: assets/css/ev-homepage.css
 *
 * Depends on ev-global.css (tokens, reset, .ev-container, fonts) and is loaded
 * only on the front page. Everything is scoped with the `evh-` prefix.
 *
 * Token policy: colours, radii, shadows, motion and fonts come from ev-global.css
 * (--teal-*, --navy*, --midnight, --royal, --amber*, --green*, --border, --r*, --sh*,
 * --dur-*, --font-*). The only values defined here are the blue + purple hues that
 * ev-global has no token for, plus the spacing / type scale used by this page.
 *
 * Sections
 *   0. Local tokens, spacing + type scale, page rhythm
 *   1. Shared: section head, icon tiles, card, list rows, pills, buttons, logos
 *   2. Hero
 *   3. Latest Exam Events | Latest Jobs | Notifications (list rows)
 *   4. Education News
 *   5. Daily Study Resources
 *   6. CTA banners
 *   7. Browse by Exam Board
 *   8. Popular Resources + Newsletter
 *   9. Responsive (1100 / 900 / compact hero ≥901 / 700 / 600 / 380) + touch + reduced motion
 */


/* ══════════════════════════════════════════════════════════
   0. LOCAL TOKENS, SPACING + TYPE SCALE, PAGE RHYTHM
   ══════════════════════════════════════════════════════════ */
.ev-home-wrapper {
    /* hues ev-global has no token for */
    --evh-blue:        #1f63d6;
    --evh-blue-text:   #1d4ed8;
    --evh-blue-soft:   #e7efff;
    --evh-purple:      #6d33e0;
    --evh-purple-soft: #f1eafe;
    --evh-accent:      var(--teal-deep);

    /* spacing scale (4px base) */
    --evh-s1: 4px;
    --evh-s2: 8px;
    --evh-s3: 12px;
    --evh-s4: 16px;
    --evh-s5: 20px;
    --evh-s6: 24px;
    --evh-s8: 32px;

    --evh-gap:  40px;   /* between page sections */
    --evh-edge: 24px;   /* side gutter shared by hero + card stack */
    --evh-col:  24px;   /* gap between side-by-side columns */
    --evh-pad:  16px;   /* list-row padding */
    --evh-list-indent: .4em;                /* small left indent for plain ul/ol (parent theme uses 3em) */

    /* desktop hero geometry: one 300px box, the photo fills all of it, nothing overlaps it */
    --evh-hero-photo-h: 300px;
    --evh-hero-overlap: 0px;

    /* type scale */
    --evh-fs-h1:    3.1rem;
    --evh-fs-h2:    1.42rem;
    --evh-fs-h3:    1.3rem;
    --evh-fs-body:  .94rem;
    --evh-fs-small: .82rem;
    --evh-fs-tiny:  .74rem;

    overflow-x: hidden;
    background: var(--off-white);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.ev-home-main { padding-bottom: 12px; }

/* Parent-theme neutraliser: GeneratePress gives ol/ul `margin: 0 0 1.5em 3em`, headings
   and paragraphs a bottom margin, and inputs a filled box. Scoped to the homepage and placed
   before every component rule so any `.evh-*` margin set later still wins. */
.ev-home-wrapper :where(ul, ol) { margin: 0 0 0 var(--evh-list-indent); padding: 0; list-style: none; }
.ev-home-wrapper :where(li)     { margin: 0; padding: 0; }
.ev-home-wrapper :is(.evh-list, .evh-boards, .evh-resources, .evh-perks, .evh-stats, .evh-chips__list) { margin-left: 0; }
.ev-home-wrapper :where(h1, h2, h3, h4, h5, h6, p, figure) { margin: 0; }
.ev-home-wrapper :where(h1, h2, h3) { text-wrap: balance; }
.ev-home-wrapper :where(p) { text-wrap: pretty; }
.ev-home-wrapper a { text-decoration: none; }

.ev-home-wrapper .evh-stack.ev-container { padding-left: var(--evh-edge); padding-right: var(--evh-edge); }
.evh-stack {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--evh-gap);
    margin-top: calc(var(--evh-hero-overlap) * -1);   /* first row (banners) overlaps the hero's bottom strip */
    padding-top: 28px;
    padding-bottom: 60px;
}

.evh-row { display: grid; gap: var(--evh-col); align-items: stretch; }
.evh-row--lists     { grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); }
.evh-row--resources { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }


/* ══════════════════════════════════════════════════════════
   1. SHARED
   ══════════════════════════════════════════════════════════ */
.evh-sec { display: flex; flex-direction: column; min-width: 0; }

.evh-sec__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--evh-s3) var(--evh-s4);
    margin-bottom: var(--evh-s4);
}
.evh-sec__title {
    display: flex;
    align-items: center;
    gap: var(--evh-s3);
    min-width: 0;
    font-family: var(--font-display);
    font-size: var(--evh-fs-h2);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
    color: var(--navy);
}

/* icon tile — one tinted rounded square per section */
.evh-sec__icon {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--evh-blue);
    background: var(--evh-blue-soft);
    border-radius: 12px;
}
.evh-sec__icon svg { width: 22px; height: 22px; stroke-width: 2; }
.evh-tone--blue   { color: var(--evh-blue);    background: var(--evh-blue-soft); }
.evh-tone--teal   { color: var(--teal-deep);   background: var(--teal-pale); }
.evh-tone--purple { color: var(--evh-purple);  background: var(--evh-purple-soft); }
.evh-tone--amber  { color: var(--amber-text);  background: var(--amber-pale); box-shadow: inset 0 0 0 1px rgba(245,166,35,.25); }
.evh-tone--green  { color: var(--green-dark);  background: var(--green-pale); }
.evh-tone--navy   { color: var(--royal);       background: var(--navy-pale); }

.evh-pill-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 14px;
    font-size: var(--evh-fs-tiny);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    color: var(--evh-accent);
    background: var(--white);
    border: 1.5px solid var(--teal-tint);
    border-radius: 100px;
    transition: background var(--dur-fast), border-color var(--dur-fast), gap var(--dur-fast), color var(--dur-fast);
}
.evh-pill-link:hover,
.evh-pill-link:focus-visible { gap: 9px; color: var(--white); background: var(--evh-accent); border-color: var(--evh-accent); }

.evh-card {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh-xs);
    overflow: hidden;
}
.evh-empty { padding: 32px 16px; text-align: center; font-size: .9rem; color: var(--text-light); }

/* Logo wrapper: sized by --evh-logo (set inline per use) */
.evh-logo {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: var(--evh-logo, 52px);
    height: var(--evh-logo, 52px);
    border-radius: 50%;
    overflow: hidden;
    line-height: 1;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--border);
}
.evh-logo img,
.evh-logo svg,
.evh-logo .ev-term-icon-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.evh-logo .ev-term-icon-glyph { font-size: calc(var(--evh-logo, 52px) * .62); }
.evh-logo .dashicons { width: auto; height: auto; font-size: calc(var(--evh-logo, 52px) * .62); }

/* Status + "New" pills */
.evh-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: var(--evh-fs-tiny);
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    border-radius: 100px;
}
.evh-status--upcoming { background: var(--green-pale); color: var(--green-text); box-shadow: inset 0 0 0 1px var(--green-tint); }
.evh-status--open     { background: var(--evh-blue-soft); color: var(--evh-blue-text); box-shadow: inset 0 0 0 1px rgba(31,99,214,.18); }
.evh-status--closed   { background: var(--g100); color: var(--text-mid); }

.evh-badge-new {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .02em;
    color: var(--white);
    background: var(--rose-deep);
    border-radius: 100px;
}

/* Solid action button (daily cards) */
.evh-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 18px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    background: var(--evh-accent);
    border-radius: var(--r-sm);
    box-shadow: 0 6px 14px rgba(0,122,135,.22);
    white-space: nowrap;
    transition: background var(--dur-fast), transform var(--dur-fast), gap var(--dur-fast);
}
.evh-btn:hover { color: var(--white); background: var(--teal-dark); gap: 12px; transform: translateY(-1px); }

/* one focus ring for every interactive element on the page */
.ev-home-wrapper :is(a, button, input):focus-visible { outline: 3px solid var(--teal-tint); outline-offset: 2px; }
.evh-hero :is(a, button):focus-visible { outline-color: var(--amber-light); }


/* ══════════════════════════════════════════════════════════
   2. HERO
      Full-bleed navy → teal band, the uploaded photo fades in from the right,
      glass stat cards, floating perks card. Works with any photo:
      focal point via the `evh_hero_focus` filter.

      Base rules below are the stacked (tablet / phone) layout. The compact fixed-height
      desktop layout (300px box, 250px photo, seamless edges) is in section 9,
      "COMPACT HERO ≥ 901".
   ══════════════════════════════════════════════════════════ */
.evh-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 0;
    padding-bottom: 0;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(760px 360px at 90% -12%, color-mix(in srgb, var(--teal) 34%, transparent), transparent 62%),
        radial-gradient(620px 320px at -4% 112%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 64%),
        linear-gradient(115deg, var(--midnight) 0%, var(--navy-mid) 34%, var(--teal-deep) 100%);
}
/* faint dot grid on the copy side (texture, not noise) */
.evh-hero::before {
    content: '';
    position: absolute;
    z-index: -3;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.6px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 62%);
            mask-image: linear-gradient(90deg, #000 0%, transparent 62%);
}
/* content box: photo, tint, copy and perks share the width of the sections below */
.evh-hero__box {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: min(100% - 2 * var(--evh-edge), var(--ev-page-max, 1200px) - 2 * var(--evh-edge));
    min-height: 400px;
    margin: 0 auto;
    /* bottom padding includes the strip the banner row overlaps, so photo + tint run to the hero edge */
    padding: 44px 0 98px;
}
.evh-hero__box > .ev-container { position: relative; z-index: 1; width: 100%; padding-left: 0; padding-right: 0; }

/* whole-hero background image */
.evh-hero__img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: var(--evh-hero-pos, 70% 22%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 92%, transparent 100%);
}
/* colour grade: deep navy behind the copy easing to the natural photo, bottom vignette for depth */
.evh-hero__box::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(0deg, rgba(11,21,53,.38) 0%, transparent 38%),
        linear-gradient(90deg,
            rgba(11,21,53,.97) 0%, rgba(14,36,66,.94) 28%, rgba(0,92,110,.82) 44%,
            rgba(0,122,135,.52) 58%, rgba(0,122,135,.22) 74%, rgba(0,122,135,.05) 100%);
    background:
        linear-gradient(0deg, color-mix(in srgb, var(--midnight) 38%, transparent) 0%, transparent 38%),
        linear-gradient(90deg,
            color-mix(in srgb, var(--midnight) 97%, transparent) 0%,
            color-mix(in srgb, var(--navy-mid) 94%, transparent) 28%,
            color-mix(in srgb, var(--teal-deep) 82%, var(--midnight)) 44%,
            color-mix(in srgb, var(--teal-deep) 52%, transparent) 58%,
            color-mix(in srgb, var(--teal-deep) 22%, transparent) 74%,
            color-mix(in srgb, var(--teal-deep) 5%, transparent) 100%);
}

.evh-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 216px;
    align-items: center;
    column-gap: var(--evh-s6);
}
.evh-hero__copy { max-width: 760px; }

.evh-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--evh-s2);
    margin-bottom: var(--evh-s3);
    padding: 5px 12px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal-tint);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 100px;
}
.evh-hero__kicker i { font-style: normal; font-size: .6rem; color: var(--amber-light); }

.evh-hero__h1 {
    margin-bottom: var(--evh-s3);
    font-family: var(--font-display);
    font-size: var(--evh-fs-h1);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    color: var(--white);
    text-shadow: 0 2px 18px rgba(11,21,53,.35);
}
.evh-hero__line   { display: block; }
.evh-hero__accent {
    color: var(--amber-light);   /* fallback */
    background: linear-gradient(90deg, var(--amber-light), var(--amber));
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

.evh-hero__lead {
    max-width: 580px;
    margin-bottom: var(--evh-s5);
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255,255,255,.9);
}

/* search */
.evh-search {
    display: flex;
    align-items: center;
    gap: var(--evh-s2);
    max-width: 560px;
    height: 56px;
    padding: 5px 5px 5px 22px;
    background: var(--white);
    border-radius: 100px;
    box-shadow: 0 14px 34px rgba(11,21,53,.32);
    transition: box-shadow var(--dur-fast);
}
.evh-search:focus-within { box-shadow: 0 14px 34px rgba(11,21,53,.32), 0 0 0 4px rgba(255,255,255,.35); }
.evh-search .evh-search__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--navy);
    text-overflow: ellipsis;
    box-shadow: none;
}
.evh-search .evh-search__input::placeholder { color: var(--text-light); }
.evh-search .evh-search__input:focus-visible { outline: 0; }
.evh-search__btn {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-mid), var(--teal-deep));
    box-shadow: 0 4px 12px rgba(0,122,135,.35);
    cursor: pointer;
    transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.evh-search__btn:hover { transform: scale(1.06); box-shadow: 0 6px 16px rgba(0,122,135,.45); }

/* popular-search chips */
.evh-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--evh-s2) var(--evh-s3); margin-top: var(--evh-s4); }
.evh-chips__label { font-size: var(--evh-fs-tiny); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.evh-chips__list { display: flex; flex-wrap: wrap; gap: 6px; }
.evh-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    font-size: var(--evh-fs-small);
    font-weight: 600;
    color: var(--white);
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 100px;
    transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.evh-chip:hover { color: var(--navy); background: var(--white); border-color: var(--white); }

/* stats — glass cards */
.evh-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--evh-s3);
    max-width: 700px;
    margin-top: var(--evh-s6);
}
.evh-stat__link {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 11px 13px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--r-sm);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.evh-stat__link:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); transform: translateY(-2px); }
.evh-stat__icon {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--teal-tint);
    background: rgba(255,255,255,.1);
    border-radius: 10px;
}
.evh-stat__icon svg { width: 20px; height: 20px; }
.evh-stat__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.evh-stat__text strong { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; color: var(--white); }
.evh-stat__text span   { font-size: var(--evh-fs-tiny); color: rgba(255,255,255,.82); }
.evh-stat__link:hover .evh-stat__text strong { color: var(--amber-light); }

/* script line + perks card */
.evh-hero__aside { display: flex; flex-direction: column; align-items: center; gap: var(--evh-s3); }
.evh-hero__script {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.22;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(11,21,53,.45);
}
.evh-hero__script svg { width: 46px; height: auto; margin-top: 2px; color: var(--amber-light); }

.evh-perks {
    width: 100%;
    padding: 4px 16px;
    background: var(--white);
    border-radius: var(--r);
    box-shadow: 0 16px 38px rgba(11,21,53,.3);
}
.evh-perk { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.evh-perk + .evh-perk { border-top: 1px solid var(--g100); }
.evh-perk__icon {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--teal-deep);
    background: var(--teal-pale);
    border-radius: 10px;
}
.evh-perk__icon svg { width: 20px; height: 20px; }
.evh-perk__text { display: flex; flex-direction: column; line-height: 1.2; }
.evh-perk__text strong { font-size: .84rem; font-weight: 700; color: var(--navy); }
.evh-perk__text span   { font-size: .82rem; color: var(--text-mid); }


/* ══════════════════════════════════════════════════════════
   3. LIST ROWS  (events · jobs · notifications)
   ══════════════════════════════════════════════════════════ */
.evh-list { display: flex; flex-direction: column; height: 100%; }
.evh-item { flex: 1; display: flex; }
.evh-item + .evh-item { border-top: 1px solid var(--border); }

.evh-item__link {
    flex: 1;
    display: grid;
    align-items: center;
    column-gap: var(--evh-s3);
    min-height: 64px;
    padding: var(--evh-pad);
    transition: background var(--dur-fast);
}
.evh-item__link:hover { background: var(--g50); }
.evh-item__link:focus-visible { outline-offset: -3px; background: var(--g50); }

.evh-item__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.evh-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.evh-item__head > .evh-badge-new,
.evh-item__head > .evh-status { flex: none; }
.evh-item__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    overflow-wrap: anywhere;
}
.evh-item__link:hover .evh-item__title { color: var(--evh-accent); }
.evh-item__chev {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--g300);
    background: var(--g50);
    border-radius: 50%;
    transition: transform var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.evh-item__chev svg { width: 16px; height: 16px; }
.evh-item__link:hover .evh-item__chev { color: var(--white); background: var(--evh-accent); transform: translateX(2px); }

/* events: logo | main | chev */
.evh-sec--events .evh-item__link { grid-template-columns: auto minmax(0, 1fr) auto; }
.evh-item__meta { display: flex; flex-wrap: wrap; font-size: var(--evh-fs-small); line-height: 1.55; color: var(--text-mid); }
.evh-item__meta span + span::before { content: '·'; margin: 0 8px; color: var(--g300); }

/* jobs: logo | main | posted | chev */
.evh-sec--jobs .evh-item__link { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.evh-item__sub { font-size: .86rem; line-height: 1.35; color: var(--text-mid); }
.evh-item__loc { display: inline-flex; align-items: center; gap: 5px; font-size: var(--evh-fs-small); color: var(--text-mid); }
.evh-item__loc svg { flex: none; color: var(--teal-deep); }
.evh-item__posted { align-self: end; font-size: var(--evh-fs-tiny); white-space: nowrap; color: var(--text-light); }

/* notifications: logo | title | date | chev */
.evh-sec--notices .evh-item__link { grid-template-columns: auto minmax(0, 1fr) auto auto; min-height: 56px; }
.evh-item--notice .evh-item__title { font-size: .9rem; font-weight: 600; }
.evh-item__date { font-size: var(--evh-fs-small); white-space: nowrap; color: var(--text-light); }


/* ══════════════════════════════════════════════════════════
   4. EDUCATION NEWS
   ══════════════════════════════════════════════════════════ */
.evh-news-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--evh-s4); }

.evh-news {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh-xs);
    overflow: hidden;
    transition: box-shadow var(--dur-base), transform var(--dur-base) var(--ease-smooth), border-color var(--dur-base);
}
.evh-news:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--teal-tint); }

.evh-news__media { position: relative; display: block; flex: 1 1 auto; min-height: 120px; margin: 8px 8px 0; overflow: hidden; border-radius: var(--r-sm); background: var(--navy-pale); }
.evh-news__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-smooth); }
.evh-news:hover .evh-news__media img { transform: scale(1.05); }
.evh-news__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--teal-deep); background: linear-gradient(135deg, var(--navy-pale), var(--teal-pale)); }
.evh-news__ph svg { opacity: .7; }

.evh-news__body { display: flex; flex: none; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.evh-news__date { display: inline-flex; align-items: center; gap: 6px; font-size: var(--evh-fs-tiny); color: var(--text-light); }
.evh-news__title {
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--navy);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.evh-news__title a:hover { color: var(--evh-accent); }
.evh-news__more {
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--evh-fs-small);
    font-weight: 700;
    color: var(--evh-accent);
    transition: gap var(--dur-fast);
}
.evh-news__more:hover { gap: 9px; color: var(--teal-dark); }


/* ══════════════════════════════════════════════════════════
   5. DAILY STUDY RESOURCES
   ══════════════════════════════════════════════════════════ */
.evh-daily { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--evh-col); }

.evh-daily__card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--evh-s3);
    padding: 24px 18px 24px 24px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh-xs);
    transition: box-shadow var(--dur-base), transform var(--dur-base) var(--ease-smooth), border-color var(--dur-base);
}
/* soft tinted glow behind the illustration, a different hue per card */
.evh-daily__card::before {
    content: '';
    position: absolute;
    z-index: -1;
    right: -40px;
    top: -40px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--teal-pale) 0%, transparent 70%);
}
.evh-daily__card:nth-child(2)::before { background: radial-gradient(circle, var(--evh-blue-soft) 0%, transparent 70%); }
.evh-daily__card:nth-child(3)::before { background: radial-gradient(circle, var(--amber-pale) 0%, transparent 70%); }
.evh-daily__card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--teal-tint); }

.evh-daily__body { min-width: 0; }
.evh-daily__title { margin-bottom: var(--evh-s2); font-size: var(--evh-fs-h3); font-weight: 700; line-height: 1.18; letter-spacing: -.015em; color: var(--navy); }
.evh-daily__text  { max-width: 240px; margin-bottom: var(--evh-s4); font-size: .9rem; line-height: 1.5; color: var(--text-mid); }
.evh-daily__art   { flex: none; width: 96px; filter: drop-shadow(0 8px 12px rgba(11,29,58,.12)); }

/* illustration palette (all from ev-global tokens) */
.evh-ill { display: block; width: 100%; height: auto; overflow: visible; }
.evh-ill .i-blue    { fill: var(--evh-blue); stroke: var(--navy); stroke-width: 3; }
.evh-ill .i-green   { fill: var(--green); }
.evh-ill .i-red     { fill: var(--red); }
.evh-ill .i-paper   { fill: var(--white); stroke: var(--navy); stroke-width: 3; }
.evh-ill .i-line    { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; }
.evh-ill .i-dots    { fill: none; stroke: var(--g200); stroke-width: 3; stroke-linecap: round; }
.evh-ill .i-glass   { fill: rgba(0,194,203,.14); stroke: var(--teal-dark); stroke-width: 6; }
.evh-ill .i-handle  { fill: none; stroke: var(--teal-dark); stroke-width: 8; stroke-linecap: round; }
.evh-ill .i-amber   { fill: var(--amber); stroke: var(--navy); stroke-width: 3; }
.evh-ill .i-amber-dk{ fill: var(--amber-dark); }
.evh-ill .i-text    { fill: var(--navy); font-family: var(--font-display); font-size: 28px; font-weight: 800; }


/* ══════════════════════════════════════════════════════════
   6. CTA BANNERS
   ══════════════════════════════════════════════════════════ */
.evh-banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--evh-col); }

.evh-banner {
    --b1: var(--royal);
    --b2: var(--evh-blue);
    --b-ink: var(--evh-blue);
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: var(--evh-s5);
    min-height: 116px;
    padding: 20px 24px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(120deg, var(--b1), var(--b2));
    border-radius: var(--r);
    box-shadow: 0 14px 30px rgba(11,29,58,.2);
    transition: transform var(--dur-base) var(--ease-smooth), box-shadow var(--dur-base);
}
/* soft highlight along the top edge */
.evh-banner::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, transparent 46%);
}
.evh-banner:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(11,29,58,.26); }
.evh-banner--blue   { --b1: #1b4fc4; --b2: #2b7be8; --b-ink: #1b4fc4; }
.evh-banner--teal   { --b1: var(--teal-deep); --b2: var(--teal-mid); --b-ink: var(--teal-deep); }
.evh-banner--purple { --b1: #5428c9; --b2: #8a55ee; --b-ink: #5428c9; }

.evh-banner__tile {
    flex: none;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    color: var(--b-ink);
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(11,29,58,.2);
}
.evh-banner__tile svg { width: 32px; height: 32px; }
.evh-banner__body { min-width: 0; }
.evh-banner__title { margin-bottom: var(--evh-s3); font-size: 1.45rem; font-weight: 700; line-height: 1.12; letter-spacing: -.015em; color: var(--white); }
.evh-banner__title span { display: block; }
.evh-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--evh-s2);
    min-height: 38px;
    padding: 8px 16px;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--b-ink);
    background: var(--white);
    border-radius: 100px;
    transition: gap var(--dur-fast), box-shadow var(--dur-fast);
}
.evh-banner__btn:hover { gap: 11px; color: var(--b-ink); box-shadow: 0 6px 14px rgba(11,29,58,.22); }
.evh-banner__mark { position: absolute; z-index: -1; right: -14px; bottom: -24px; display: inline-flex; color: var(--white); opacity: .12; transform: rotate(-8deg); }


/* ══════════════════════════════════════════════════════════
   7. BROWSE BY EXAM BOARD
   ══════════════════════════════════════════════════════════ */
.evh-boards { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--evh-s3); }
.evh-boards > li { display: flex; }

.evh-board {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 16px 8px 14px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh-xs);
    transition: transform var(--dur-base) var(--ease-smooth), box-shadow var(--dur-base), border-color var(--dur-base);
}
.evh-board:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--teal); }
.evh-board .evh-logo { margin-bottom: 6px; }
.evh-board__name { font-size: .95rem; font-weight: 800; line-height: 1.2; letter-spacing: .01em; color: var(--navy); }
.evh-board:hover .evh-board__name { color: var(--evh-accent); }
.evh-board__full {
    font-size: .72rem;
    line-height: 1.3;
    color: var(--text-mid);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}


/* ══════════════════════════════════════════════════════════
   8. POPULAR RESOURCES + NEWSLETTER
   ══════════════════════════════════════════════════════════ */
.evh-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--evh-s4); flex: 1; }
.evh-resources > li { display: flex; }

.evh-resource {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--evh-s4);
    min-height: 84px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh-xs);
    transition: box-shadow var(--dur-base), transform var(--dur-base) var(--ease-smooth), border-color var(--dur-base);
}
.evh-resource:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--teal-tint); }
.evh-resource__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: var(--evh-purple);
    background: var(--evh-purple-soft);
}
.evh-resource--mint .evh-resource__icon { color: var(--green-dark); background: var(--green-pale); }
.evh-resource__text { display: flex; flex-direction: column; min-width: 0; gap: 2px; line-height: 1.3; }
.evh-resource__text strong { font-size: 1rem; font-weight: 700; color: var(--navy); }
.evh-resource__text span   { font-size: var(--evh-fs-small); color: var(--text-mid); }

.evh-newsletter { display: flex; min-width: 0; }
.evh-nl {
    flex: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    column-gap: var(--evh-s4);
    row-gap: var(--evh-s3);
    padding: 20px 22px;
    background: linear-gradient(135deg, var(--teal-pale) 0%, var(--white) 62%);
    border: 1px solid var(--teal-tint);
    border-radius: var(--r);
    box-shadow: var(--sh-xs);
}
.evh-nl__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-mid), var(--teal-deep));
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(0,122,135,.3);
}
.evh-nl__body { align-self: center; }
.evh-nl__title { font-size: 1.2rem; font-weight: 700; line-height: 1.2; color: var(--navy); }
.evh-nl__text  { font-size: var(--evh-fs-small); line-height: 1.45; color: var(--text-mid); }

.evh-nl__form,
.evh-nl__custom,
.evh-nl__msg { grid-column: 1 / -1; }

.evh-nl__form { position: relative; display: flex; }
.evh-nl__form .evh-nl__input {
    margin: 0;
    box-shadow: none;
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--g200);
    border-right: 0;
    border-radius: var(--r-sm) 0 0 var(--r-sm);
    outline: 0;
}
.evh-nl__form .evh-nl__input::placeholder { color: var(--text-light); }
.evh-nl__form .evh-nl__input:focus { border-color: var(--teal-dark); box-shadow: 0 0 0 3px var(--teal-tint); }
.evh-nl__btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: var(--evh-s2);
    height: 46px;
    padding: 0 20px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--white);
    background: var(--evh-accent);
    border: 0;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    cursor: pointer;
    transition: background var(--dur-fast), gap var(--dur-fast);
}
.evh-nl__btn:hover { background: var(--teal-dark); gap: 11px; }
.evh-nl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.evh-nl__msg { font-size: var(--evh-fs-small); font-weight: 600; }
.evh-nl__msg--ok  { color: var(--green-text); }
.evh-nl__msg--bad { color: var(--red-text); }


/* ══════════════════════════════════════════════════════════
   9. RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* ≤ 1100 — small laptop / large tablet */
@media (max-width: 1100px) {
    .ev-home-wrapper { --evh-gap: 34px; --evh-col: 20px; --evh-fs-h1: 2.6rem; --evh-fs-h2: 1.32rem; --evh-fs-h3: 1.2rem; }
    .ev-home-wrapper .evh-stack { padding-bottom: 52px; }
    .evh-hero__box { min-height: 360px; padding: 36px 0 94px; }
    .evh-hero__lead { font-size: 1rem; }
    .evh-banner__title { font-size: 1.35rem; }
    .evh-hero__grid { grid-template-columns: minmax(0, 1fr) 200px; }
    .evh-stats { max-width: 620px; }
    .evh-stat__link { padding: 10px; gap: 8px; }
    .evh-boards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .evh-banner { padding: 18px; gap: var(--evh-s3); }
    .evh-banner__tile { width: 58px; height: 58px; border-radius: 15px; }
    .evh-daily__art { width: 80px; }
}

/* ≤ 900 — tablet */
@media (max-width: 900px) {
    .evh-row--lists,
    .evh-row--resources { grid-template-columns: minmax(0, 1fr); }

    .ev-home-wrapper { --evh-gap: 30px; --evh-edge: 20px; --evh-col: 18px; --evh-pad: 14px; --evh-fs-h1: 2.2rem; --evh-fs-h2: 1.25rem; --evh-fs-h3: 1.15rem; }
    .ev-home-wrapper .evh-stack { padding-bottom: 48px; }
    .evh-banner__title { font-size: 1.3rem; }

    /* stacked hero: natural height, overlap strip is smaller */
    .ev-home-wrapper { --evh-hero-overlap: 0px; }
    .ev-home-wrapper .evh-stack { padding-top: 22px; }
    .evh-hero__box { width: 100%; height: auto; min-height: 0; padding: 28px var(--evh-edge) 30px; }
    .evh-hero__box > .ev-container { padding-left: 0; padding-right: 0; }
    .evh-hero__img { -webkit-mask-image: none; mask-image: none; }
    .evh-hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--evh-s4); }
    /* photo shows through at the bottom, text stays on solid navy */
    .evh-hero__box::after {
        background: linear-gradient(180deg, rgba(11,21,53,.96) 0%, rgba(14,36,66,.9) 55%, rgba(0,122,135,.62) 100%);
        background: linear-gradient(180deg,
            color-mix(in srgb, var(--midnight) 96%, transparent) 0%,
            color-mix(in srgb, var(--navy-mid) 90%, transparent) 55%,
            color-mix(in srgb, var(--teal-deep) 62%, transparent) 100%);
    }
    .evh-hero__aside { align-items: stretch; }
    .evh-hero__script { display: none; }
    .evh-perks { display: flex; padding: 4px 6px; }
    .evh-perk { flex: 1; padding: 8px 8px; }
    .evh-perk + .evh-perk { border-top: 0; border-left: 1px solid var(--g100); }

    .evh-daily { grid-template-columns: minmax(0, 1fr); }
    .evh-daily__art { width: 104px; }
    /* tablet: banners stay three across, icon tile stacked above the text */
    .evh-banner { flex-direction: column; align-items: flex-start; gap: var(--evh-s3); min-height: 0; }
}


/* ══════════════════════════════════════════════════════════
   COMPACT HERO ≥ 901  (desktop / tablet landscape)
   Hero box = 300px: 250px photo area, and the banner row overlaps the bottom 10px.
   Photo = 250px tall. Everything in the copy column is tightened to fit.

   Seamless edges: the photo AND the colour-grade tint are both faded to transparent at the
   left/right ends of the box, so they melt into the full-bleed hero band behind them. Before,
   only the photo was faded; the tint ended in a hard vertical edge that read as a line on
   both sides of the hero.

   Sits after the ≤900 block so it never touches the stacked layout, and before ≤700 / ≤600
   (which are narrower and don't overlap this range).
   ══════════════════════════════════════════════════════════ */
@media (min-width: 901px) {

    .evh-hero__box {
        height: var(--evh-hero-h);
        min-height: 0;
        padding: 20px 0;                 /* copy is vertically centred in the 300px box */
    }

    /* photo: fills the whole 300px box; only the left/right ends melt into the full-width band */
    .evh-hero__img {
        inset: 0;
        height: 100%;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 92%, transparent 100%);
                mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 92%, transparent 100%);
    }

    /* tint: same box, same side fade, so no hard edge */
    .evh-hero__box::after {
        inset: 0;
        height: 100%;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
                mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    }

    /* copy: tighter spacing + smaller type */
    .evh-hero__kicker { margin-bottom: 10px; padding: 4px 11px; font-size: .64rem; }
    .evh-hero__h1     { margin-bottom: 12px; font-size: 2rem; line-height: 1.1; }
    .evh-hero__lead   { display: block; }          /* no room for the paragraph; H1 + search carry the message */

    .evh-search { height: 48px; padding: 4px 4px 4px 18px; max-width: 520px; }
    .evh-search .evh-search__input { font-size: .95rem; }
    .evh-search__btn { width: 40px; height: 40px; }

    .evh-chips { display: none; }       /* 300px hero has no room for the chip row */

    .evh-stats { margin-top: 14px; gap: var(--evh-s2); max-width: 660px; }
    .evh-stat__link { padding: 6px 10px; gap: 8px; }
    .evh-stat__icon { width: 28px; height: 28px; border-radius: 8px; }
    .evh-stat__icon svg { width: 16px; height: 16px; }
    .evh-stat__text strong { font-size: 1rem; }
    .evh-stat__text span   { font-size: .7rem; }

    /* aside (script line + perks card) */
    .evh-hero__aside { gap: 6px; }
    .evh-hero__script { font-size: .9rem; }
    .evh-hero__script svg { width: 38px; }
    .evh-perks { padding: 2px 14px; }
    .evh-perk  { padding: 6px 0; }
    .evh-perk__icon { width: 30px; height: 30px; }
}

/* compact hero headline, narrower desktop widths (901–1100) */
@media (min-width: 901px) and (max-width: 1100px) {
    .evh-hero__h1 { font-size: 1.65rem; }
}

/* ≤ 700 — large phone */
@media (max-width: 700px) {
    .ev-home-wrapper { --evh-gap: 26px; }

    /* news → swipeable row with a peek of the next card */
    .evh-news-grid {
        display: flex;
        overflow-x: auto;
        gap: var(--evh-s3);
        margin: 0 calc(var(--evh-edge) * -1);
        padding: 2px var(--evh-edge) 12px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--evh-edge);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .evh-news-grid::-webkit-scrollbar { display: none; }
    .evh-news { flex: 0 0 78%; scroll-snap-align: start; }

    .evh-resources { grid-template-columns: minmax(0, 1fr); }
}

/* ≤ 600 — phone */
@media (max-width: 600px) {
    .ev-home-wrapper { --evh-edge: 16px; --evh-col: 16px; --evh-pad: 12px; --evh-fs-h1: 1.9rem; --evh-fs-h2: 1.15rem; --evh-fs-h3: 1.08rem; }
    .ev-home-wrapper .evh-stack { padding-bottom: 36px; }
    .evh-banner__title { font-size: 1.2rem; }
    .evh-hero__box { padding: 22px var(--evh-edge) 24px; }
    .evh-hero__kicker { margin-bottom: 10px; font-size: .66rem; padding: 4px 10px; }
    .evh-hero__h1 { font-size: 1.9rem; }
    .evh-hero__accent { display: block; }
    .evh-hero__lead { margin-bottom: var(--evh-s4); font-size: .9rem; line-height: 1.5; }
    .evh-search { height: 52px; padding-left: 16px; }
    .evh-search .evh-search__input { font-size: 16px; }              /* stops iOS zoom on focus */
    .evh-search__btn { width: 42px; height: 42px; }

    /* popular chips: one swipeable line instead of wrapping to three */
    .evh-chips { flex-wrap: nowrap; margin-top: var(--evh-s3); margin-right: calc(var(--evh-edge) * -1); }
    .evh-chips__label { flex: none; }
    .evh-chips__list { flex-wrap: nowrap; overflow-x: auto; padding: 2px var(--evh-edge) 2px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .evh-chips__list::-webkit-scrollbar { display: none; }
    .evh-chip { flex: none; min-height: 34px; padding: 4px 14px; }

    .evh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--evh-s2); margin-top: var(--evh-s4); }
    .evh-stat__link { padding: 9px 10px; }
    .evh-stat__icon { width: 32px; height: 32px; }
    .evh-stat__text strong { font-size: 1.05rem; }

    /* the perks card repeats the headline benefits — hide it on phones to keep the hero short */
    .evh-hero__aside { display: none; }

    /* section heads: title + pill stay on one row; the title wraps instead of the pill dropping down */
    .evh-sec__hd { flex-wrap: nowrap; gap: var(--evh-s2); margin-bottom: var(--evh-s3); }
    .evh-sec__title { gap: 10px; line-height: 1.18; }
    .evh-sec__icon { width: 36px; height: 36px; border-radius: 10px; }
    .evh-sec__icon svg { width: 20px; height: 20px; }
    .evh-pill-link { min-height: 36px; padding: 6px 11px; gap: 5px; font-size: .72rem; }

    .evh-item__link { padding: 12px 12px; column-gap: 11px; }
    .evh-sec--events .evh-logo,
    .evh-sec--jobs .evh-logo { --evh-logo: 40px !important; }
    .evh-item__title { font-size: .96rem; }
    .evh-item__meta { flex-direction: column; gap: 1px; }
    .evh-item__meta span + span::before { content: none; }
    .evh-news__media { min-height: 130px; }

    .evh-sec--jobs .evh-item__link {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "logo main chev" "logo posted chev";
        row-gap: 4px;
    }
    .evh-sec--jobs .evh-logo        { grid-area: logo; align-self: start; }
    .evh-sec--jobs .evh-item__main  { grid-area: main; }
    .evh-sec--jobs .evh-item__posted{ grid-area: posted; align-self: start; }
    .evh-sec--jobs .evh-item__chev  { grid-area: chev; }

    .evh-sec--notices .evh-item__link {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "logo main chev" "logo date chev";
        row-gap: 2px;
    }
    .evh-sec--notices .evh-logo       { grid-area: logo; }
    .evh-sec--notices .evh-item__main { grid-area: main; }
    .evh-sec--notices .evh-item__date { grid-area: date; font-size: .76rem; }
    .evh-sec--notices .evh-item__chev { grid-area: chev; }

    .evh-daily__card { padding: 18px 14px 18px 18px; }

    /* boards: compact horizontal cards, two per row (logo left, name + full name right) */
    .evh-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--evh-s2); }
    .evh-board {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-content: center;
        align-items: center;
        column-gap: 10px;
        row-gap: 1px;
        padding: 10px 12px;
        text-align: left;
    }
    .evh-board .evh-logo { --evh-logo: 40px !important; grid-row: 1 / 3; margin: 0; }
    .evh-board__name { align-self: end; font-size: .92rem; }
    .evh-board__full { align-self: start; -webkit-line-clamp: 2; }

    .evh-banners { grid-template-columns: minmax(0, 1fr); gap: var(--evh-s3); }
    .evh-banner { flex-direction: row; align-items: center; min-height: 92px; padding: 14px 16px; gap: var(--evh-s3); }
    .evh-banner__title { margin-bottom: var(--evh-s2); }
    .evh-banner__tile { width: 52px; height: 52px; border-radius: 14px; }
    .evh-banner__tile svg { width: 26px; height: 26px; }

    .evh-resource { padding: 12px 14px; min-height: 76px; }
    .evh-nl { padding: 18px 16px; }
    .evh-nl__form .evh-nl__input { font-size: 16px; }
}

/* ≤ 380 — small phone */
@media (max-width: 380px) {
    .evh-hero__h1 { font-size: 1.6rem; }
    .evh-news { flex-basis: 86%; }
    .evh-stat__text span { font-size: .7rem; }
    .evh-nl__btn span { display: none; }
    .evh-nl__btn { padding: 0 16px; }
}

/* ≥ 1180 — wide screens: pin the script line + perks card to the right edge of the (1200px-wide)
   hero, over the right-hand background, so the portrait in the photo is never covered.
   `top` centres the card on the 250px photo area (box is 300px, the last 50px is the banner overlap). */
@media (min-width: 1180px) {
    .evh-hero__box > .ev-container { position: static; }    /* lets the aside anchor to the box edge */
    .evh-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .evh-hero__copy { max-width: min(1000px, calc(100% - 300px)); }
    .evh-hero__aside {
        position: absolute;
        z-index: 1;
        right: 24px;
        top: 50%;
        width: 216px;
        transform: translateY(-50%);
    }
}

/* touch devices: no sticky hover lift */
@media (hover: none) {
    .evh-news:hover, .evh-daily__card:hover, .evh-banner:hover, .evh-board:hover, .evh-resource:hover,
    .evh-stat__link:hover, .evh-btn:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .evh-news, .evh-daily__card, .evh-banner, .evh-board, .evh-resource, .evh-stat__link,
    .evh-news__media img, .evh-btn, .evh-item__chev, .evh-search__btn { transition: none !important; }
    .evh-news:hover, .evh-daily__card:hover, .evh-banner:hover, .evh-board:hover, .evh-resource:hover,
    .evh-stat__link:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════
   10. DESIGN POLISH (v5)
       Consistent elevation, refined icon tiles, calmer banners, firmer type,
       better phone ergonomics (44px touch targets, tidy hero).
   ══════════════════════════════════════════════════════════ */

/* — hero finish — */
.evh-hero { box-shadow: inset 0 -1px 0 rgba(255,255,255,.06); }
.evh-hero__kicker { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.evh-hero__h1 { text-shadow: 0 2px 20px rgba(6,14,36,.45); }
.evh-search { box-shadow: 0 10px 28px rgba(6,14,36,.35), 0 0 0 1px rgba(255,255,255,.5) inset; }
.evh-search__btn { background: linear-gradient(135deg, var(--teal-mid), var(--teal-deep)); }
.evh-stat__link { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); box-shadow: 0 6px 16px rgba(6,14,36,.18); }
.evh-stat__icon { color: var(--amber-light); background: rgba(255,255,255,.12); }
.evh-stat__text strong { font-size: 1.05rem; }
.evh-perks { box-shadow: 0 18px 40px rgba(6,14,36,.38); border: 1px solid rgba(255,255,255,.6); }
.evh-perk__icon { color: var(--teal-deep); background: var(--teal-pale); box-shadow: inset 0 0 0 1px var(--teal-tint); }

/* — section heads: tile + title + pill read as one unit — */
.evh-sec__hd { padding-bottom: 0; }
.evh-sec__title { font-size: var(--evh-fs-h2); letter-spacing: -.02em; }
.evh-sec__icon { box-shadow: inset 0 0 0 1px rgba(31,99,214,.12); }
.evh-sec--jobs .evh-sec__icon,
.evh-sec--notices .evh-sec__icon { color: var(--teal-deep); background: var(--teal-pale); box-shadow: inset 0 0 0 1px var(--teal-tint); }
.evh-pill-link { min-height: 36px; padding: 7px 15px; border-color: var(--teal-tint); box-shadow: var(--sh-xs); }

/* — cards: one elevation language — */
.evh-card { box-shadow: 0 1px 2px rgba(11,29,58,.04), 0 6px 18px rgba(11,29,58,.05); }
.evh-item__link:hover { background: linear-gradient(90deg, var(--teal-pale), transparent 70%); }
.evh-item__title { letter-spacing: -.005em; }
.evh-status { letter-spacing: .01em; }

/* — banners: calmer shadow, tighter tile, clear hit area — */
.evh-banner { min-height: 108px; box-shadow: 0 10px 24px rgba(11,29,58,.16); }
.evh-banner:hover { box-shadow: 0 16px 32px rgba(11,29,58,.22); }
.evh-banner__tile { box-shadow: 0 6px 14px rgba(11,29,58,.18); }
.evh-banner__btn { min-height: 40px; }

/* — boards + resources — */
.evh-board { padding: 18px 8px 16px; }
.evh-board .evh-logo { box-shadow: 0 0 0 1px var(--border), 0 4px 10px rgba(11,29,58,.08); }
.evh-resource__icon { box-shadow: inset 0 0 0 1px rgba(11,29,58,.05); }
.evh-nl { box-shadow: 0 1px 2px rgba(11,29,58,.04), 0 8px 22px rgba(0,122,135,.08); }

/* — keyboard focus on dark hero + links inside cards — */
.evh-item__link:focus-visible,
.evh-board:focus-visible,
.evh-resource:focus-visible,
.evh-banner:focus-visible { outline-offset: -3px; }

/* — touch screens: 44px targets — */
@media (pointer: coarse) {
    .evh-pill-link { min-height: 40px; }
    .evh-banner__btn { min-height: 44px; }
    .evh-btn { min-height: 44px; }
    .evh-item__link { min-height: 64px; }
    .evh-item__chev { width: 32px; height: 32px; }
    .evh-nl__btn,
    .evh-nl__form .evh-nl__input { height: 48px; }
}

/* — phones — */
@media (max-width: 600px) {
    .evh-hero__box { padding-top: 24px; }
    .evh-hero__h1 { font-size: 1.75rem; line-height: 1.12; }
    .evh-hero__lead { display: block; }                       /* headline + search say it all */
    .evh-search { height: 54px; box-shadow: 0 10px 24px rgba(6,14,36,.38); }
    .evh-search__btn { width: 44px; height: 44px; }
    .evh-stats { gap: 8px; }
    .evh-stat__link { padding: 10px 11px; }
    .evh-stat__text strong { font-size: 1.1rem; }
    .evh-hero__box::after {
        background: linear-gradient(180deg, rgba(8,18,46,.93) 0%, rgba(11,32,62,.86) 55%, rgba(0,92,110,.55) 100%);
        background: linear-gradient(180deg,
            color-mix(in srgb, var(--midnight) 93%, transparent) 0%,
            color-mix(in srgb, var(--navy-mid) 86%, transparent) 55%,
            color-mix(in srgb, var(--teal-deep) 55%, transparent) 100%);
    }
    .evh-sec__title { font-size: 1.12rem; }
    .evh-pill-link { min-height: 40px; }
    .evh-banner { min-height: 88px; }
    .evh-board { padding: 12px; }
    .ev-home-wrapper .evh-stack { padding-top: 20px; }
}