/* British Coach — site styles */
:root {
  --emerald-deep: #0B3D2E;
  --emerald: #146B4A;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --ivory: #FAF8F0;
  --ink: #172822;
  --line: #DDE7E0;

  --emerald-tint: #E8F1EC;
  --gold-tint: #FBF5E1;
  --muted: #4A5D55;
  --danger: #A12C2C;
  --danger-tint: #FBECEC;
  --warn-tint: #FFF6DD;
  --info-tint: #E7F0F7;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 61, 46, .06), 0 6px 20px rgba(11, 61, 46, .07);
  --container: 1180px;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--emerald);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); text-underline-offset: 3px; }
a:hover { color: var(--emerald-deep); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--emerald-deep); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--emerald-deep); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius); z-index: 1000; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: var(--radius); border: 2px solid transparent; font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; min-height: 44px; }
.btn-primary { background: var(--emerald-deep); color: var(--white); }
.btn-primary:hover { background: var(--emerald); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--emerald-deep); }
.btn-gold:hover { background: #c49f2a; color: var(--emerald-deep); }
.btn-outline { background: transparent; border-color: var(--emerald-deep); color: var(--emerald-deep); }
.btn-outline:hover { background: var(--emerald-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--emerald-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-light { background: var(--white); color: var(--emerald-deep); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: .45rem .85rem; font-size: .9rem; min-height: 38px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.linkish { background: none; border: 0; padding: 0; color: var(--emerald); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- Header ---------- */
.promo-banner { background: var(--gold); color: var(--emerald-deep); text-align: center; padding: .5rem 1rem; font-size: .95rem; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.promo-code { background: var(--emerald-deep); color: var(--gold); padding: .05rem .5rem; border-radius: 4px; letter-spacing: .05em; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand-logo { height: 60px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.site-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .25rem; }
.site-nav > ul > li { position: relative; }
.site-nav a { display: block; padding: .55rem .7rem; color: var(--emerald-deep); text-decoration: none; font-weight: 600; font-size: .97rem; border-radius: 6px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--emerald); background: var(--emerald-tint); }
.site-nav .sub { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); list-style: none; margin: 0; padding: .5rem; min-width: 270px; z-index: 60; }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: block; }
.site-nav .sub a { font-weight: 500; }
.nav-actions { display: flex; gap: .5rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--emerald-deep); margin: auto; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -7px; } .nav-toggle .bars::after { position: absolute; top: 7px; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .brand-logo { height: 52px; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.25rem; gap: 1rem; max-height: calc(100vh - 80px); overflow: auto; }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; }
  .site-nav .sub { display: block; position: static; box-shadow: none; border: 0; border-left: 3px solid var(--gold); border-radius: 0; padding: 0 0 0 .5rem; margin: .25rem 0 .5rem .7rem; min-width: 0; }
  .site-nav .sub a { padding: .35rem .5rem; font-size: .93rem; }
  .nav-actions .btn { flex: 1; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-ivory { background: var(--ivory); }
.section-green { background: var(--emerald-deep); color: var(--white); }
.section-green h2, .section-green h3 { color: var(--white); }
.section-green a:not(.btn) { color: var(--gold); }
.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.eyebrow { display: inline-block; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--emerald); margin-bottom: .6rem; }
.section-green .eyebrow { color: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); }
.gold-rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 1rem 0 1.5rem; }
.center .gold-rule, .section-head .gold-rule { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--ivory), var(--white)); padding: 4.5rem 0 4rem; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero-crest { justify-self: center; max-width: 260px; filter: drop-shadow(0 18px 30px rgba(11,61,46,.18)); }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .5rem; }
.hero-points li { padding-left: 1.8rem; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230B3D2E' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5.3-5.3L12.8 4.8z'/%3E%3C/svg%3E") center/80% no-repeat; }
.page-hero { background: var(--ivory); padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 760px; }
.breadcrumbs { font-size: .9rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; }

/* Cards and grids */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; height: 100%; }
.card-link:hover { transform: translateY(-2px); border-color: var(--emerald); color: inherit; }
.card-link .more { margin-top: auto; color: var(--emerald); font-weight: 600; }
.icon-dot { width: 46px; height: 46px; border-radius: 12px; background: var(--emerald-deep); color: var(--gold); display: grid; place-items: center; margin-bottom: 1rem; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.steps { counter-reset: step; }
.step { position: relative; padding-top: .5rem; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--emerald-deep); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; margin-bottom: .9rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { padding: .35rem 0 .35rem 1.9rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .3rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--emerald-tint); color: var(--emerald); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.x-list li::before { content: "✕"; background: var(--danger-tint); color: var(--danger); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.tag-list a, .tag-list span { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: var(--emerald-tint); color: var(--emerald-deep); text-decoration: none; font-size: .92rem; font-weight: 600; }
.tag-list a:hover { background: var(--emerald); color: var(--white); }
.notice { border-left: 4px solid var(--gold); background: var(--gold-tint); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.notice-green { border-left-color: var(--emerald); background: var(--emerald-tint); }
.notice-danger { border-left-color: var(--danger); background: var(--danger-tint); }
.cta-band { background: var(--emerald-deep); color: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #d6e5dd; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.sticky-side { position: sticky; top: 100px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose table, .table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .97rem; }
.prose th, .prose td, .table th, .table td { border-bottom: 1px solid var(--line); padding: .65rem .6rem; text-align: left; vertical-align: top; }
.prose th, .table th { background: var(--ivory); color: var(--emerald-deep); font-weight: 700; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 1.5rem 0; padding: .5rem 1.25rem; background: var(--ivory); }
mark.owner-confirm { background: #FFE58A; color: #4A3B00; padding: 0 .2em; border-radius: 3px; font-size: .92em; }
.price-figure { font-family: var(--font-head); font-size: 3rem; color: var(--emerald-deep); line-height: 1; }
.price-figure small { font-size: 1rem; color: var(--muted); font-family: var(--font-body); }
.price-card { text-align: center; border-top: 5px solid var(--emerald-deep); }
.price-card.urgent { border-top-color: var(--gold); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; background: var(--white); }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; color: var(--emerald-deep); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 1.25rem 1rem; }

/* Reviews */
.stars { color: var(--gold); letter-spacing: .1em; font-size: 1.1rem; }
.review-card blockquote { margin: 0 0 1rem; }
.empty-state { text-align: center; padding: 3rem 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius-lg); background: var(--ivory); }
.empty-state img { width: 72px; margin: 0 auto 1rem; opacity: .9; }

/* Blog */
.post-card img { border-radius: var(--radius); margin-bottom: 1rem; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-thumb-fallback { aspect-ratio: 16/9; border-radius: var(--radius); margin-bottom: 1rem; background: linear-gradient(135deg, var(--emerald-deep), var(--emerald)); display: grid; place-items: center; }
.post-thumb-fallback img { width: 64px; aspect-ratio: auto; margin: 0; }
.post-meta { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.article-hero img { border-radius: var(--radius-lg); margin: 1.5rem 0; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--ivory); border-radius: var(--radius-lg); padding: 1.25rem; margin: 2rem 0; }
.author-box .avatar { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--emerald-deep); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.rating-form { display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }
.rating-form button { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: .35rem .65rem; cursor: pointer; color: var(--emerald-deep); font-weight: 700; }
.rating-form button:hover { background: var(--gold); border-color: var(--gold); }
.comment { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.preview-banner { background: var(--gold); color: var(--emerald-deep); padding: .75rem 1rem; text-align: center; font-weight: 700; }
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pagination [aria-current] { background: var(--emerald-deep); color: var(--white); border-color: var(--emerald-deep); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .35rem; }
label, .label { font-weight: 600; color: var(--ink); font-size: .97rem; }
.hint { font-size: .87rem; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=datetime-local], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid #B9CCC1; border-radius: 8px; font: inherit; color: var(--ink); background: var(--white); min-height: 46px; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(20,107,74,.25); }
input[type=file] { font: inherit; padding: .6rem; border: 1.5px dashed #B9CCC1; border-radius: 8px; width: 100%; background: var(--ivory); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--emerald); flex: 0 0 auto; }
.radio-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-pill { border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem 1rem; display: flex; gap: .6rem; align-items: center; cursor: pointer; font-weight: 600; flex: 1; min-width: 180px; }
.radio-pill:has(input:checked) { border-color: var(--emerald); background: var(--emerald-tint); }
.radio-pill input { accent-color: var(--emerald); width: 18px; height: 18px; }
.field-error { color: var(--danger); font-size: .9rem; margin: 0; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.estimate { background: var(--emerald-deep); color: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; }
.estimate h3 { color: var(--white); }
.estimate dl { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin: 0 0 1rem; }
.estimate dt { color: #cfe0d7; }
.estimate dd { margin: 0; text-align: right; font-weight: 600; }
.estimate .total { border-top: 1px solid rgba(255,255,255,.2); padding-top: .6rem; font-size: 1.35rem; color: var(--gold); }
.estimate .note { font-size: .85rem; color: #cfe0d7; margin: 0; }
.otp-input { font-size: 2rem !important; letter-spacing: .5em; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Flash messages and badges */
.flashes { max-width: var(--container); margin: 1rem auto 0; padding: 0 1.25rem; }
.portal-main .flashes, .auth-card .flashes { padding: 0; margin: 0 0 1rem; }
.flash { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: .5rem; border: 1px solid; font-weight: 500; }
.flash-success { background: var(--emerald-tint); border-color: #b5d3c3; color: var(--emerald-deep); }
.flash-error { background: var(--danger-tint); border-color: #eab9b9; color: #7a1f1f; }
.flash-info { background: var(--info-tint); border-color: #c2d6e6; color: #1c3e57; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--emerald-tint); color: var(--emerald-deep); }
.badge-warn { background: var(--warn-tint); color: #6b4f00; }
.badge-bad { background: var(--danger-tint); color: #7a1f1f; }
.badge-info { background: var(--info-tint); color: #1c3e57; }
.badge-neutral { background: #EEF2EF; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--emerald-deep); color: #d6e5dd; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-h { color: var(--gold); font-size: 1rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-logo { display: inline-block; background: var(--white); border-radius: 12px; padding: .5rem .9rem; margin-bottom: 1rem; }
.footer-logo img { height: 64px; width: auto; }
.footer-contact { margin-top: 1rem !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .88rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; max-width: 640px; }
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; width: 58px; height: 58px; border-radius: 50%; background: var(--emerald); color: var(--white); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 70; border: 3px solid var(--gold); }
.wa-float:hover { background: var(--emerald-deep); color: var(--white); }
.cookie-notice { position: fixed; left: 1rem; bottom: 1rem; max-width: 420px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: center; z-index: 80; font-size: .93rem; }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; }

/* ---------- Auth ---------- */
.auth-body { background: var(--ivory); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 460px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--emerald-deep); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.auth-logo img { height: 72px; width: auto; margin: 0 auto 1.25rem; }
.auth-card h1 { font-size: 1.6rem; text-align: center; }
.auth-card form { display: grid; gap: 1rem; }
.auth-foot { margin-top: 1.25rem; font-size: .9rem; }

/* ---------- Portals ---------- */
.portal-body { background: var(--ivory); }
.portal-top { background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: .6rem 1.25rem; gap: 1rem; flex-wrap: wrap; position: sticky; top: 0; z-index: 40; }
.portal-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.portal-logo img { height: 48px; width: auto; }
.admin-tag { background: var(--emerald-deep); color: var(--gold); padding: .2rem .6rem; border-radius: 6px; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.portal-user { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.portal-user form { margin: 0; }
.portal-hello { font-size: .92rem; color: var(--muted); }
.portal { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 66px); }
.portal-nav { background: var(--emerald-deep); padding: 1.25rem .75rem; }
.portal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; position: sticky; top: 85px; }
.portal-nav a { display: flex; justify-content: space-between; align-items: center; color: #d6e5dd; text-decoration: none; padding: .65rem .9rem; border-radius: 8px; font-weight: 600; font-size: .96rem; }
.portal-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.portal-nav a[aria-current="page"] { background: var(--emerald); color: var(--white); box-shadow: inset 3px 0 0 var(--gold); }
.portal-nav .count { background: var(--gold); color: var(--emerald-deep); border-radius: 999px; font-size: .75rem; padding: .05rem .5rem; }
.portal-nav-sep { border-top: 1px solid rgba(255,255,255,.15); margin-top: .75rem; padding-top: .75rem; }
.portal-main { padding: 2rem; min-width: 0; }
.portal-h1 { font-size: 1.8rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.25rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.panel-head h2 { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; text-decoration: none; color: inherit; display: block; border-left: 5px solid var(--emerald); }
.stat.gold { border-left-color: var(--gold); }
.stat .n { font-family: var(--font-head); font-size: 2rem; color: var(--emerald-deep); line-height: 1.1; }
.stat .l { color: var(--muted); font-size: .9rem; }
a.stat:hover { border-color: var(--emerald); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { margin: 0; background: var(--white); }
.table td .sub { display: block; font-size: .85rem; color: var(--muted); }
.table tr:hover td { background: #FCFCF8; }
.dl { display: grid; grid-template-columns: 180px 1fr; gap: .55rem 1rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { min-width: 160px; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.faq-rows .faq-row { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; background: var(--ivory); }
.status-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.status-check .ok::before { content: "● "; color: var(--emerald); }
.status-check .no::before { content: "● "; color: var(--danger); }
code.key { display: block; padding: .75rem; background: var(--ivory); border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; word-break: break-all; font-size: .82rem; }
.paypal-box { min-height: 50px; }
.pay-option { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; background: var(--white); }
.bank-details { background: var(--ivory); border-radius: var(--radius); padding: 1rem 1.25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-crest { max-width: 170px; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sticky-side { position: static; }
  .portal { grid-template-columns: 1fr; }
  .portal-nav { padding: .5rem; overflow-x: auto; }
  .portal-nav ul { display: flex; position: static; gap: .25rem; white-space: nowrap; }
  .portal-nav-sep { border: 0; margin: 0; padding: 0; }
  .portal-main { padding: 1.25rem; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 3rem 0; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card, .card { padding: 1.25rem; }
  .cta-band { padding: 1.75rem; }
  .dl { grid-template-columns: 1fr; gap: .1rem; }
  .dl dd { margin-bottom: .6rem; }
  .brand-logo { height: 46px; }
  .portal-logo img { height: 40px; }
  .portal-hello { display: none; }
  .cookie-notice { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; }
  .wa-float { bottom: 5.5rem; }
}
@media print { .site-header, .site-footer, .wa-float, .cookie-notice, .portal-nav { display: none; } }
