/* ============================================================
   England Fencing — main.css v1.0
   ============================================================ */

:root {
    --ef-red:        #C8102E;
    --ef-red-dark:   #9A0C23;
    --ef-red-tint:   #FCEBEB;
    --ef-red-mid:    #F09595;
    --ef-ink:        #161F29;
    --ef-ink-2:      #1F2A36;
    --ef-slate:      #64758B;
    --ef-slate-lt:   #8B99AB;
    --ef-paper:      #FFFFFF;
    --ef-panel:      #F3F5F7;
    --ef-line:       #E3E7EB;
    --ef-green:      #1D6A3A;
    --ef-green-tint: #E8F5EE;
    --ef-amber:      #854F0B;
    --ef-amber-tint: #FEF3C7;
    --ef-blue:       #185FA5;
    --ef-blue-tint:  #E6F1FB;
    --ef-display:    'Archivo', sans-serif;
    --ef-body:       'Public Sans', sans-serif;
    --ef-radius:     12px;
    --ef-radius-sm:  8px;
    --ef-shadow:     0 8px 32px rgba(22,31,41,.10);
    --ef-shadow-lg:  0 16px 48px rgba(22,31,41,.14);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ef-body); color: var(--ef-ink); background: var(--ef-paper); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--ef-body); cursor: pointer; border: none; }
ul, ol { list-style: none; }

/* ── Utilities ── */
.ef-wrap    { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.ef-wrap-sm { max-width: 780px;  margin: 0 auto; padding: 0 24px; }
.ef-grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ef-grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ef-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ── */
.ef-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--ef-display); font-weight: 700; font-size: 15px;
    padding: 11px 22px; border-radius: var(--ef-radius-sm);
    border: 2px solid transparent; cursor: pointer;
    transition: all .15s ease; letter-spacing: .01em; line-height: 1;
}
.ef-btn:active { transform: scale(.97); }
.ef-btn-red   { background: var(--ef-red);   color: #fff; border-color: var(--ef-red); }
.ef-btn-red:hover { background: var(--ef-red-dark); border-color: var(--ef-red-dark); }
.ef-btn-outline { background: transparent; color: var(--ef-red); border-color: var(--ef-red); }
.ef-btn-outline:hover { background: var(--ef-red-tint); }
.ef-btn-white { background: #fff; color: var(--ef-red); }
.ef-btn-white:hover { background: var(--ef-red-tint); }
.ef-btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.ef-btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ── Badges ── */
.ef-badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap;
}
.ef-badge-red    { background: var(--ef-red-tint);   color: var(--ef-red-dark); }
.ef-badge-gray   { background: var(--ef-panel);       color: var(--ef-slate); }
.ef-badge-green  { background: var(--ef-green-tint);  color: var(--ef-green); }
.ef-badge-amber  { background: var(--ef-amber-tint);  color: var(--ef-amber); }
.ef-badge-blue   { background: var(--ef-blue-tint);   color: var(--ef-blue); }

/* ── Section headings ── */
.ef-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.ef-h2 { font-family: var(--ef-display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.01em; color: var(--ef-ink); }
.ef-h2::before { content: ""; display: inline-block; width: 26px; height: 5px; background: var(--ef-red); border-radius: 3px; margin-right: 12px; vertical-align: 5px; }
.ef-text-link { font-weight: 600; color: var(--ef-red); font-size: 15px; cursor: pointer; transition: text-decoration .1s; }
.ef-text-link:hover { text-decoration: underline; }

/* ── Info boxes ── */
.ef-info-box { border-radius: var(--ef-radius-sm); padding: 16px 18px; margin: 16px 0; }
.ef-info-box strong { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.ef-info-box p, .ef-info-box { font-size: 14px; line-height: 1.55; }
.ef-info-box.red    { background: var(--ef-red-tint);   border-left: 4px solid var(--ef-red); }
.ef-info-box.amber  { background: var(--ef-amber-tint); border-left: 4px solid var(--ef-amber); }
.ef-info-box.blue   { background: var(--ef-blue-tint);  border-left: 4px solid var(--ef-blue); }
.ef-info-box.green  { background: var(--ef-green-tint); border-left: 4px solid var(--ef-green); }

/* ── Utility bar ── */
.ef-utility { background: var(--ef-ink); padding: 0; height: 34px; display: flex; align-items: center; }
.ef-utility .ef-wrap { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.ef-utility span, .ef-utility a { font-size: 13px; color: #8B99AB; }
.ef-utility a:hover { color: #fff; }
.ef-utility-links { display: flex; gap: 16px; }
.ef-utility a { font-weight: 500; color: #B9C3CF; }

/* ── Site header ── */
.ef-site-header { background: #fff; border-bottom: 1px solid var(--ef-line); position: sticky; top: 0; z-index: 100; }
.ef-site-header .ef-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.ef-logo img { height: 42px; width: auto; }
.ef-logo:focus-visible { outline: 3px solid var(--ef-red); outline-offset: 3px; border-radius: 4px; }

/* ── Main nav ── */
.ef-main-nav { display: flex; gap: 4px; }
.ef-main-nav a {
    font-size: 14px; font-weight: 600; padding: 8px 12px;
    border-radius: var(--ef-radius-sm); color: var(--ef-ink);
    transition: background .15s, color .15s; white-space: nowrap;
}
.ef-main-nav a:hover,
.ef-main-nav a.current-menu-item,
.ef-main-nav a[aria-current="page"] { background: var(--ef-red-tint); color: var(--ef-red); }

/* Mobile menu toggle */
.ef-menu-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.ef-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ef-ink); margin: 5px 0; border-radius: 2px; transition: all .25s; }

/* ── Hero ── */
.ef-hero { background: var(--ef-ink); color: #fff; position: relative; overflow: hidden; padding: 88px 0 170px; }
.ef-hero-video-bg { position: absolute; inset: 0; z-index: 0; }
.ef-hero-video-bg video { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.ef-hero-video-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(22,31,41,.5) 0%, rgba(22,31,41,.75) 100%); }
.ef-hero-content { position: relative; z-index: 2; }
.ef-hero-kicker { font-family: var(--ef-display); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #F09595; margin-bottom: 18px; }
.ef-hero-h1 { font-family: var(--ef-display); font-weight: 900; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.02em; max-width: 14ch; }
.ef-hero-h1 .accent { color: #FF3B57; }
.ef-hero-lead { margin-top: 20px; font-size: 18px; color: #B9C3CF; max-width: 52ch; line-height: 1.6; }
.ef-persona-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ef-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: all .15s; text-decoration: none; }
.ef-chip:hover { border-color: var(--ef-red); background: rgba(200,16,46,.2); transform: translateY(-2px); color: #fff; }
.ef-chip .arr { color: #FF3B57; font-weight: 800; }

/* Piste SVG decoration */
.ef-piste { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; pointer-events: none; }

/* ── Rank card (homepage pull-up) ── */
.ef-rank-card-wrap { position: relative; z-index: 5; }
.ef-rank-card {
    background: #fff; border: 1px solid var(--ef-line); border-radius: 16px;
    box-shadow: var(--ef-shadow-lg); margin-top: -110px; overflow: hidden;
}
.ef-rank-card-head { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 26px 0; flex-wrap: wrap; gap: 12px; }
.ef-rank-card-head h2 { font-family: var(--ef-display); font-weight: 800; font-size: 22px; }
.ef-rank-card-head h2::before { content: ""; display: inline-block; width: 24px; height: 5px; background: var(--ef-red); border-radius: 3px; margin-right: 12px; vertical-align: 4px; }
.ef-rank-updated { font-size: 12px; color: var(--ef-slate); }
.ef-filter-row { display: flex; gap: 6px; padding: 16px 26px 8px; flex-wrap: wrap; align-items: center; }
.ef-pill { font-family: var(--ef-display); font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--ef-line); background: #fff; color: var(--ef-slate); cursor: pointer; transition: all .12s; }
.ef-pill:hover { border-color: var(--ef-slate); }
.ef-pill.on { background: var(--ef-red); border-color: var(--ef-red); color: #fff; }
.ef-pill-sep { width: 1px; background: var(--ef-line); margin: 0 4px; height: 28px; align-self: center; }

/* Rankings table */
.ef-rank-table { width: 100%; border-collapse: collapse; }
.ef-rank-table th { font-family: var(--ef-display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ef-slate); font-weight: 700; text-align: left; padding: 12px 26px; border-bottom: 1px solid var(--ef-line); }
.ef-rank-table th.r { text-align: right; }
.ef-rank-table td { padding: 12px 26px; border-bottom: 1px solid var(--ef-line); font-size: 15px; }
.ef-rank-table td.pos { font-family: var(--ef-display); font-weight: 800; color: var(--ef-red); width: 52px; }
.ef-rank-table td.pts { text-align: right; font-family: var(--ef-display); font-weight: 700; }
.ef-rank-table td .club { font-size: 13px; color: var(--ef-slate); display: block; }
.ef-rank-table td .move-up { color: var(--ef-green); font-size: 11px; margin-left: 4px; }
.ef-rank-table td .move-dn { color: var(--ef-red); font-size: 11px; margin-left: 4px; }
.ef-rank-table tr.expandable { cursor: pointer; }
.ef-rank-table tr.expandable:hover td { background: var(--ef-panel); }
.ef-rank-table tr.ef-result-row td { background: #F8F9FB; padding: 0 26px 16px; }
.ef-rank-table tr.ef-result-row.hidden { display: none; }
.ef-result-grid { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.ef-result-item { flex: 1; min-width: 150px; border: 1px solid var(--ef-line); border-radius: 6px; padding: 8px 12px; background: #fff; font-size: 12px; }
.ef-result-item .ri-comp { font-weight: 600; display: block; margin-bottom: 2px; }
.ef-result-item .ri-pts { color: var(--ef-slate); }
.ef-result-item.counting .ri-comp { color: var(--ef-green); }
.ef-result-item.counting::before { content: "✓ "; color: var(--ef-green); font-weight: 700; }
.ef-result-item.not-counting { opacity: .55; }
.ef-rank-card-foot { padding: 14px 26px 20px; }

/* ── Events section ── */
.ef-event-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ef-line); }
.ef-event-item:first-child { border-top: 1px solid var(--ef-line); }
.ef-event-date { text-align: center; min-width: 52px; }
.ef-event-date .day { font-family: var(--ef-display); font-weight: 900; font-size: 22px; line-height: 1; }
.ef-event-date .mon { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ef-slate); }
.ef-event-info { flex: 1; }
.ef-event-info strong { font-weight: 600; display: block; }
.ef-event-info span { font-size: 13px; color: var(--ef-slate); }
.ef-event-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.ef-event-deadline { font-size: 11px; font-weight: 700; color: var(--ef-amber); background: var(--ef-amber-tint); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

/* ── News cards ── */
.ef-news-card { border: 1px solid var(--ef-line); border-radius: var(--ef-radius); overflow: hidden; background: #fff; transition: transform .15s, box-shadow .15s; display: block; }
.ef-news-card:hover { transform: translateY(-3px); box-shadow: var(--ef-shadow); }
.ef-news-thumb { height: 140px; background: linear-gradient(140deg, var(--ef-ink-2), var(--ef-slate)); position: relative; }
.ef-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ef-news-thumb::after { content: ""; position: absolute; left: 20px; bottom: 14px; width: 36px; height: 3px; background: var(--ef-red); border-radius: 2px; }
.ef-news-body { padding: 16px; }
.ef-news-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ef-red); margin-bottom: 6px; }
.ef-news-body strong { font-size: 15px; font-weight: 600; line-height: 1.35; display: block; margin-bottom: 5px; color: var(--ef-ink); }
.ef-news-body span { font-size: 13px; color: var(--ef-slate); }

/* ── Pathway strip ── */
.ef-pathway-strip { background: var(--ef-panel); padding: 48px 0; border-top: 1px solid var(--ef-line); border-bottom: 1px solid var(--ef-line); }
.ef-pathway-steps { display: flex; align-items: flex-start; position: relative; margin-top: 28px; }
.ef-pathway-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 23px; height: 2px; background: var(--ef-line); }
.ef-pathway-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.ef-step-dot { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 3px solid var(--ef-line); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-family: var(--ef-display); font-weight: 800; font-size: 13px; color: var(--ef-slate); }
.ef-pathway-step.active .ef-step-dot { border-color: var(--ef-red); color: var(--ef-red); }
.ef-pathway-step strong { font-family: var(--ef-display); font-weight: 800; font-size: 14px; display: block; }
.ef-pathway-step span { font-size: 12px; color: var(--ef-slate); }

/* ── EYC Banner ── */
.ef-eyc-banner { background: var(--ef-red); border-radius: 16px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.ef-eyc-banner::before { content: ""; position: absolute; right: -50px; top: -50px; width: 240px; height: 240px; border: 3px solid rgba(255,255,255,.15); border-radius: 50%; }
.ef-eyc-banner::after  { content: ""; position: absolute; right: 30px; top: 30px; width: 140px; height: 140px; border: 3px solid rgba(255,255,255,.1); border-radius: 50%; }
.ef-eyc-banner h2 { font-family: var(--ef-display); font-weight: 900; color: #fff; font-size: clamp(22px, 3vw, 30px); position: relative; }
.ef-eyc-banner p { color: #F7C1C1; font-size: 15px; margin-top: 8px; max-width: 44ch; position: relative; }
.ef-eyc-banner .ef-hero-kicker { color: #F09595; position: relative; }
.ef-eyc-btns { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }

/* ── Athlete cards ── */
.ef-ath-card { border: 1px solid var(--ef-line); border-radius: var(--ef-radius); overflow: hidden; background: #fff; transition: transform .15s, box-shadow .15s; display: block; color: inherit; }
.ef-ath-card:hover { transform: translateY(-4px); box-shadow: var(--ef-shadow); }
.ef-ath-photo { height: 190px; background: linear-gradient(160deg, var(--ef-ink-2), var(--ef-slate)); position: relative; overflow: hidden; }
.ef-ath-photo img { width: 100%; height: 100%; object-fit: cover; }
.ef-ath-photo::after { content: ""; position: absolute; left: 20px; bottom: 14px; width: 36px; height: 4px; background: var(--ef-red); border-radius: 2px; }
.ef-ath-body { padding: 16px 20px 20px; }
.ef-ath-body strong { font-family: var(--ef-display); font-weight: 800; font-size: 17px; display: block; }
.ef-ath-body .weapon { font-size: 13px; color: var(--ef-slate); margin-top: 2px; }
.ef-ath-body .achievement { font-size: 13px; color: var(--ef-red); font-weight: 600; margin-top: 8px; }

/* ── Inner page hero ── */
.ef-inner-hero { background: var(--ef-ink); color: #fff; padding: 52px 0 60px; }
.ef-inner-hero .ef-hero-kicker { margin-bottom: 10px; }
.ef-inner-hero h1 { font-family: var(--ef-display); font-weight: 900; font-size: clamp(30px, 5vw, 48px); letter-spacing: -.02em; margin-top: 10px; }
.ef-inner-hero p { color: #B9C3CF; font-size: 16px; margin-top: 10px; max-width: 54ch; }
.ef-breadcrumb { font-size: 13px; color: #8B99AB; margin-bottom: 8px; }
.ef-breadcrumb a { color: var(--ef-red-mid); }
.ef-breadcrumb a:hover { color: var(--ef-red-tint); }
.ef-breadcrumb span { margin: 0 6px; color: #3A4757; }

/* ── Welfare strip ── */
.ef-welfare-cta { background: var(--ef-red); border-radius: var(--ef-radius); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ef-welfare-cta h3 { font-family: var(--ef-display); font-weight: 800; font-size: 20px; color: #fff; }
.ef-welfare-cta p { color: #F7C1C1; font-size: 14px; margin-top: 4px; }

/* ── Competition list items ── */
.ef-comp-item { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius-sm); margin-bottom: 8px; background: #fff; transition: border-color .12s; }
.ef-comp-item:hover { border-color: var(--ef-red-mid); }
.ef-comp-item.ranking { border-left: 4px solid var(--ef-red); }
.ef-comp-date { background: var(--ef-red-tint); border-radius: var(--ef-radius-sm); padding: 8px 14px; text-align: center; min-width: 64px; flex-shrink: 0; }
.ef-comp-date .d { font-family: var(--ef-display); font-weight: 900; font-size: 20px; color: var(--ef-red); line-height: 1; }
.ef-comp-date .m { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ef-red-dark); }
.ef-comp-info { flex: 1; }
.ef-comp-info strong { font-weight: 600; font-size: 15px; display: block; }
.ef-comp-info .meta { font-size: 13px; color: var(--ef-slate); margin-top: 2px; }
.ef-comp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ef-comp-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }
.ef-comp-entry { font-size: 12px; font-weight: 700; color: var(--ef-red); border: 1.5px solid var(--ef-red); padding: 7px 14px; border-radius: 6px; cursor: pointer; white-space: nowrap; background: transparent; transition: background .12s; }
.ef-comp-entry:hover { background: var(--ef-red-tint); }
.ef-comp-deadline { font-size: 11px; color: var(--ef-slate); white-space: nowrap; }
.ef-comp-deadline.soon { color: var(--ef-amber); font-weight: 600; }

/* ── Status pills ── */
.ef-status { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ef-status-upcoming  { background: var(--ef-blue-tint);  color: var(--ef-blue); }
.ef-status-selected  { background: var(--ef-green-tint); color: var(--ef-green); }
.ef-status-complete  { background: var(--ef-panel);      color: var(--ef-slate); }
.ef-status-open      { background: var(--ef-amber-tint); color: var(--ef-amber); }

/* ── Selection status table ── */
.ef-status-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ef-status-table th { font-family: var(--ef-display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ef-slate); font-weight: 700; text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--ef-line); }
.ef-status-table td { padding: 14px; border-bottom: 1px solid var(--ef-line); vertical-align: middle; }
.ef-status-table tr:last-child td { border-bottom: none; }
.ef-status-table tr:hover td { background: var(--ef-panel); }

/* ── Store / product cards ── */
.ef-product-card { border: 1px solid var(--ef-line); border-radius: var(--ef-radius); overflow: hidden; background: #fff; transition: transform .15s, box-shadow .15s; }
.ef-product-card:hover { transform: translateY(-3px); box-shadow: var(--ef-shadow); }
.ef-product-img { height: 200px; background: var(--ef-panel); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--ef-line); overflow: hidden; }
.ef-product-img img { width: 100%; height: 100%; object-fit: cover; }
.ef-product-body { padding: 16px 18px 20px; }
.ef-product-body strong { font-weight: 600; font-size: 15px; display: block; margin-bottom: 5px; }
.ef-product-body .desc { font-size: 13px; color: var(--ef-slate); margin-bottom: 10px; line-height: 1.5; }
.ef-product-price { font-family: var(--ef-display); font-weight: 800; font-size: 20px; color: var(--ef-red); margin-bottom: 12px; }

/* ── Footer ── */
.ef-footer { background: var(--ef-ink); color: #B9C3CF; padding: 52px 0 32px; font-size: 14px; }
.ef-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.ef-footer h4 { font-family: var(--ef-display); font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.ef-footer ul li { margin-bottom: 8px; }
.ef-footer a { color: #B9C3CF; transition: color .12s; }
.ef-footer a:hover { color: #fff; }
.ef-footer-safeguard { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ef-red); color: #fff; font-weight: 600; font-size: 13px; padding: 10px 16px; border-radius: 8px; margin-top: 6px; cursor: pointer; transition: background .15s; }
.ef-footer-safeguard:hover { background: var(--ef-red); color: #fff; }
.ef-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #8B99AB; }

/* ── Page sections ── */
.ef-section { padding: 68px 0; }
.ef-section.tight { padding: 48px 0; }
.ef-section.panel { background: var(--ef-panel); border-top: 1px solid var(--ef-line); border-bottom: 1px solid var(--ef-line); }

/* ── Accessibility ── */
:focus-visible { outline: 3px solid var(--ef-red); outline-offset: 2px; border-radius: 3px; }
.skip-link { position: absolute; top: -100px; left: 12px; background: var(--ef-red); color: #fff; padding: 8px 16px; border-radius: 0 0 6px 6px; font-weight: 600; transition: top .2s; z-index: 1000; }
.skip-link:focus { top: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .ef-main-nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--ef-line); padding: 12px; z-index: 99; box-shadow: var(--ef-shadow); }
    .ef-main-nav.open { display: flex; }
    .ef-main-nav a { padding: 10px 14px; }
    .ef-menu-toggle { display: block; }
    .ef-grid-2, .ef-grid-3, .ef-footer-cols { grid-template-columns: 1fr; }
    .ef-hero { padding: 60px 0 130px; }
    .ef-rank-card { margin-top: -80px; }
    .ef-pathway-steps { flex-wrap: wrap; gap: 20px; }
    .ef-pathway-steps::before { display: none; }
    .ef-pathway-step { flex: 1 1 40%; }
    .ef-eyc-banner { padding: 32px 28px; }
    .ef-section { padding: 48px 0; }
    .ef-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .ef-hero-h1 { font-size: 36px; }
    .ef-footer-cols { grid-template-columns: 1fr; }
    .ef-rank-card-head { flex-direction: column; }
    .ef-comp-item { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ── Inner page extras ── */
.ef-how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .ef-how-grid { grid-template-columns: 1fr; } }

/* Prose content from page editor */
.ef-prose h2 { font-family: var(--ef-display); font-weight: 800; font-size: 22px; margin: 28px 0 12px; }
.ef-prose p  { font-size: 15px; color: var(--ef-slate); line-height: 1.7; margin-bottom: 14px; }
.ef-prose ul { padding-left: 20px; margin-bottom: 14px; }
.ef-prose li { font-size: 15px; color: var(--ef-slate); line-height: 1.7; margin-bottom: 6px; }
.ef-prose a  { color: var(--ef-red); font-weight: 600; }
.ef-prose a:hover { text-decoration: underline; }

/* ── Hero with background image ── */
.ef-inner-hero[style*="background-image"] { background-color: var(--ef-ink); }
.ef-inner-hero[style*="background-image"] h1,
.ef-inner-hero[style*="background-image"] p,
.ef-inner-hero[style*="background-image"] .ef-hero-kicker { text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.ef-hero[style*="background-image"] { background-color: var(--ef-ink); }
