/*
 * site.css — Wrestling Aide (TendTech Base theme)
 * Source of truth: C:\dev\wrestling-connect-website\wordpress\theme\assets\css\site.css
 * Design system: deep teal (PLAN.md §6). Mockups: mockups/*.html
 *
 * Sections:
 *   0. Fonts
 *   1. Tokens (design system + theme aliases)
 *   2. Web Awesome token overrides
 *   3. Base
 *   4. Layout
 *   5. Navigation (partials/nav.html)
 *   6. Buttons
 *   7. Typography utilities
 *   8. Hero + page hero
 *   9. App mockups (event rows, messages, email, season)
 *  10. Content components (strip, before/after, audience, features, cards, steps, story)
 *  11. CTA bands
 *  12. Forms + FAQ
 *  13. For Coaches page
 *  14. Footer (partials/footer.html)
 *  15. Mobile nav
 *  16. Subscribe modal
 *  17. Single post (News) + archive
 *  18. Responsive
 *
 * AI editors: use the custom properties below for every color. Never hardcode hex values in page HTML.
 */

/* 0. Fonts */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap");

/* 1. Tokens */
:root {
  /* Surfaces and text */
  --surface: #ffffff;
  --surface-wash: #f4f7f7;
  --surface-raised: #ffffff;
  --ink: #15181d;
  --ink-muted: #5a6573;
  --line: #dfe4e8;
  --line-strong: #c9d1d6;
  /* Brand: deep teal */
  --brand: #00787a;
  --brand-strong: #005c5e;
  --on-brand: #ffffff;
  --brand-text: #00787a;
  --brand-tint: #e5f8f8;
  --brand-on-tint: #005c5e;
  --brand-deep: #024445;
  --highlight: #a4ddde;
  --teal-90: #ccf0f0;
  --focus: #00787a;
  /* Event status */
  --ok: #35731f;    --ok-bg: #ebf4e4;
  --near: #8a5a06;  --near-bg: #fbf0dc;
  --full: #b43d0b;  --full-bg: #fdece4;
  --cancel: #b42318; --cancel-bg: #fde8e7;
  /* Type, shape, layout */
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;
  --shadow: 0 1px 2px rgba(21, 24, 29, .06), 0 4px 12px rgba(21, 24, 29, .06);
  --max: 1180px;
  --nav-height: 72px;

  /* Theme aliases (used by single.php, home.php, 404.php and the README) */
  --color-primary: var(--brand);
  --color-dark: var(--ink);
  --color-bg: var(--surface);
  --color-bg-alt: var(--surface-wash);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-muted);
  --font-base: var(--font-body);
  --radius-sm: var(--radius-s);
  --radius-md: var(--radius);
  --container-width: var(--max);
  --content-width: 760px;
}

/* 2. Web Awesome token overrides */
:root {
  --wa-color-brand-50: var(--brand);
  --wa-color-brand-60: var(--brand-strong);
  --wa-font-family-body: var(--font-body);
  --wa-font-family-heading: var(--font-display);
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--surface);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; line-height: .95; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.55rem; font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wp-block-html { display: contents; }

/* 4. Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-content { max-width: var(--content-width); margin: 0 auto; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.wash { background: var(--surface-wash); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
section:not([class]) { padding: 96px 24px; } /* bare sections in theme templates */
/* Let grid columns shrink below their content's width (otherwise the app mockups push text off-screen on phones). */
.hero .container > *, .feature > *, .two-col > *, .grid-2 > *, .story > *, .wa-cta > * { min-width: 0; }

/* 5. Navigation */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); z-index: 1000;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 28px; padding: 0 max(24px, calc((100vw - var(--max)) / 2 + 24px));
}
body.admin-bar .site-nav { top: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 38px; height: 38px; }
.nav-logo span { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; }
.nav-logo span b { color: var(--brand-text); font-weight: 800; }
.nav-links { display: flex; gap: 22px; margin: 0 0 0 8px; padding: 0; list-style: none; }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: .96rem; padding-bottom: 4px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a[aria-current] { box-shadow: inset 0 -2px 0 var(--brand); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-login { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 9px 8px; }
.nav-cta {
  display: inline-flex; align-items: center; background: var(--brand); color: var(--on-brand); text-decoration: none;
  font-weight: 600; font-size: .92rem; padding: 9px 16px; border-radius: var(--radius-s); transition: background .15s; white-space: nowrap;
}
.nav-cta:hover { background: var(--brand-strong); color: var(--on-brand); }
.nav-hamburger { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; padding: 8px; cursor: pointer; }

/* 6. Buttons (.btn-primary and .btn-ghost also work alone — theme templates use them that way) */
.btn, .btn-primary, .btn-ghost, .btn-secondary, .btn-light, .btn-ghost-light, .btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body);
  font-weight: 600; font-size: 1rem; line-height: 1.2; padding: 14px 22px; border-radius: var(--radius-s);
  text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-secondary { background: var(--brand-tint); color: var(--brand-on-tint); }
.btn-ghost { border-color: var(--line-strong); color: var(--brand-text); background: transparent; }
.btn-ghost:hover { border-color: var(--brand-text); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--brand-deep); }              /* main action on --brand-deep */
.btn-light:hover { background: var(--teal-90); }
.btn-ghost-light { background: transparent; color: #fff; border-color: var(--highlight); } /* second action on --brand-deep */
.btn-ghost-light:hover { background: rgba(164, 221, 222, .12); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* 7. Typography utilities */
.eyebrow, .section-label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
  font-size: .95rem; color: var(--brand-text); margin-bottom: .6rem; display: inline-block;
}
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin-bottom: 16px; }
.section-sub, .lead { font-size: 1.2rem; color: var(--ink-muted); max-width: 640px; }
.hl { color: var(--brand-text); }
.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.mt-auto { margin-top: auto; }

/* 8. Hero + page hero (mat-circle motif) */
.hero { position: relative; overflow: hidden; padding: 80px 0 96px; }
.hero::before {
  content: ""; position: absolute; right: -220px; top: -180px; width: 760px; height: 760px; border-radius: 50%;
  border: 46px solid var(--brand-tint);
}
.hero::after {
  content: ""; position: absolute; right: 40px; top: 120px; width: 300px; height: 300px; border-radius: 50%;
  border: 26px solid var(--brand-tint);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .lead { margin-bottom: 28px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--brand-tint); color: var(--brand-on-tint);
  border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; margin-bottom: 22px;
}
.live-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.hero-sub { margin-top: 18px; font-size: .9rem; color: var(--ink-muted); }
.page-hero { padding: 72px 0 64px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; right: -160px; top: -200px; width: 560px; height: 560px; border-radius: 50%;
  border: 36px solid var(--brand-tint);
}
.page-hero .container { position: relative; }
.page-hero .lead { max-width: 720px; }

/* 9. App mockups */
.mock-wrap { position: relative; }
.app-window {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 48px rgba(21, 24, 29, .14);
  overflow: hidden; color: var(--ink); font-size: 14px; line-height: 1.45;
}
.app-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef1f2; border-bottom: 1px solid var(--line); }
.app-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #cfd6da; }
.app-chrome .url { margin-left: 12px; flex: 1; background: #fff; border-radius: 6px; padding: 3px 10px; font-size: 12px; color: var(--ink-muted); }
.app-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--brand-deep); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
.app-top img { width: 22px; height: 22px; }
.app-top .tabs { display: flex; gap: 14px; margin-left: 14px; font-weight: 500; color: var(--teal-90); font-size: 12.5px; overflow: hidden; white-space: nowrap; min-width: 0; }
.app-top .tabs b { color: #fff; }
.app-body { padding: 14px 16px 16px; background: var(--surface-wash); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--ink); white-space: nowrap; }
.chip.on { background: var(--brand-tint); border-color: var(--highlight); color: var(--brand-on-tint); font-weight: 600; }
.ev { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px; margin-bottom: 8px; display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.ev .date { text-align: center; border-radius: var(--radius-s); background: var(--brand-tint); color: var(--brand-on-tint); padding: 5px 0; }
.ev .date b { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1; }
.ev .date small { font-size: 11px; text-transform: uppercase; font-weight: 700; }
.ev h5 { margin: 0 0 2px; font-size: 14px; font-family: var(--font-body); }
.ev .meta { color: var(--ink-muted); font-size: 12px; }
.ev .right { text-align: right; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-open { background: var(--ok-bg); color: var(--ok); }
.b-near { background: var(--near-bg); color: var(--near); }
.b-full { background: var(--full-bg); color: var(--full); }
.b-cancel { background: var(--cancel-bg); color: var(--cancel); }
.spots { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 3px; }
.drive { font-size: 12px; color: var(--brand-text); font-weight: 600; }
.drive i, .float-card i { margin-right: 4px; }
.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 12px 14px; font-size: 13px; width: 240px;
}
.mock-wrap .float-card.a { left: -40px; bottom: -34px; }
.mock-wrap .float-card.b { right: -26px; top: -26px; width: 210px; }
.float-card .t { font-weight: 700; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.msg .who { font-weight: 700; font-size: 13px; }
.msg .who small { font-weight: 500; color: var(--ink-muted); margin-left: 6px; }
.msg.me { background: var(--brand-tint); border-color: var(--highlight); margin-left: 40px; }
.email { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 18px; }
.email .subj { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.email .btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.email .btns span { border-radius: var(--radius-s); padding: 7px 10px; font-weight: 700; font-size: 12px; }
.season-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 12.5px; }
.checks { display: flex; gap: 4px; }
.checks i { width: 16px; height: 16px; border-radius: 4px; background: var(--ok-bg); border: 1px solid #c4dfb5; display: grid; place-items: center; font-style: normal; font-size: 10px; color: var(--ok); }
.checks i.no { background: #fff; border-color: var(--line); color: transparent; }

/* 10. Content components */
.strip { padding: 26px 0; border-bottom: 1px solid var(--line); }
.strip .container { display: flex; gap: 14px 36px; align-items: center; justify-content: center; flex-wrap: wrap; color: var(--ink-muted); font-weight: 600; font-size: .95rem; }
.strip strong { color: var(--ink); }
.strip a { color: var(--ink); text-decoration: none; font-weight: 700; }
.strip a:hover { color: var(--brand-text); }
.subnav { position: sticky; top: var(--nav-height); background: #fff; z-index: 40; }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.vs-col { border-radius: var(--radius); padding: 32px; }
.vs-col.old { background: #fff; border: 1px solid var(--line); }
.vs-col.new { background: var(--brand-tint); border: 1px solid var(--highlight); }
.vs-col ul { list-style: none; padding: 0; margin: 0; }
.vs-col li { padding: 10px 0 10px 34px; position: relative; border-top: 1px solid var(--line); }
.vs-col.new li { border-top-color: var(--highlight); }
.vs-col li:first-child { border-top: 0; }
.vs-col.old li::before { content: "\2715"; position: absolute; left: 4px; color: var(--cancel); font-weight: 800; }
.vs-col.new li::before { content: "\2713"; position: absolute; left: 4px; color: var(--brand-on-tint); font-weight: 800; }

.aud { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; margin-top: 44px; }
.aud-card {
  border-radius: var(--radius); padding: 30px; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .2s, background .2s;
}
.aud-card:hover { border-color: var(--brand-text); }
.aud-card.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.aud-card.primary:hover { background: var(--brand-strong); }
.aud-card.primary h3 { color: #fff; }
.aud-card .tag { font: 700 .78rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--brand-text); margin-bottom: 14px; }
.aud-card.primary .tag, .aud-card.primary .more { color: #fff; }
.aud-card ul { padding-left: 18px; margin: 6px 0 20px; }
.aud-card .more { margin-top: auto; font-weight: 700; color: var(--brand-text); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.feature.flip .f-text { order: 2; }
.feature .f-text ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.feature .f-text li { padding: 6px 0 6px 30px; position: relative; }
.feature .f-text li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--brand);
}
.f-visual { background: var(--brand-tint); border-radius: var(--radius-l); padding: 36px; position: relative; }
.f-visual .app-window { box-shadow: var(--shadow); }

.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ico {
  width: 46px; height: 46px; border-radius: var(--radius); background: var(--brand-tint); color: var(--brand-on-tint);
  display: grid; place-items: center; font-size: 20px; margin-bottom: 14px;
}
.card p { color: var(--ink-muted); margin: 0; font-size: .97rem; }
.card h4 { margin-bottom: 6px; }
a.card { transition: border-color .2s; }
a.card:hover { border-color: var(--brand-text); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; margin-top: 44px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 28px 26px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s); font-family: var(--font-display); font-weight: 800; font-size: 2.2rem;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--on-brand);
  background: var(--brand); margin-bottom: 14px;
}
.step p { color: var(--ink-muted); margin: 0; }

.works { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.works span { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 20px; font-weight: 700; color: var(--ink); }

.story { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.story-lg { grid-template-columns: 260px 1fr; }
.avatar {
  width: 220px; height: 220px; border-radius: 50%; overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--brand-tint), var(--brand-tint) 10px, var(--teal-90) 10px, var(--teal-90) 20px);
  display: grid; place-items: center; color: var(--brand-on-tint); font-size: .85rem; text-align: center; border: 6px solid var(--brand);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-lg .avatar { width: 260px; height: 260px; }
blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; font-weight: 600; color: var(--ink); }
.cite { margin-top: 16px; color: var(--ink-muted); font-weight: 600; }

/* 11. CTA bands */
/* Page CTA band: the page's one dark band */
.wa-cta { background: var(--brand-deep); color: #fff; border-radius: var(--radius-l); padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.wa-cta::after { content: ""; position: absolute; right: -90px; bottom: -150px; width: 380px; height: 380px; border-radius: 50%; border: 30px solid rgba(164, 221, 222, .16); }
.wa-cta h2 { color: #fff; }
.wa-cta p { color: var(--teal-90); margin: 0; }
.wa-cta .btn-row { justify-content: flex-end; position: relative; z-index: 1; }
/* Blog post CTA band (single.php) */
.cta-band { background: var(--brand-deep); color: #fff; text-align: center; padding: 80px 24px; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: var(--teal-90); margin-bottom: 36px; }

/* 12. Forms + FAQ */
.form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label, .form-group label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 4px; }
.form input, .form select, .form textarea,
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--line-strong); font: inherit; background: #fff; color: var(--ink);
}
.form input[type="checkbox"] { width: auto; }
.form input:focus, .form select:focus, .form textarea:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.form-group { margin-bottom: 18px; }
.form .check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.form-note { font-size: .85rem; color: var(--ink-muted); margin: 0; }
.form-status { font-size: .92rem; font-weight: 600; margin: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--cancel); }
.form button[disabled] { opacity: .7; cursor: progress; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success i { font-size: 2.4rem; color: var(--ok); margin-bottom: 12px; }
.form-success h4 { margin-bottom: 6px; }
.form-success p { color: var(--ink-muted); margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--brand-text); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-muted); padding-right: 40px; }

/* 13. For Coaches page */
.seg { display: inline-flex; background: var(--surface-wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.seg a { color: var(--ink-muted); text-decoration: none; padding: 10px 18px; border-radius: var(--radius-s); font-weight: 700; }
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--brand); color: var(--on-brand); }
.aud-section { padding: 88px 0; border-top: 1px solid var(--line); }
.aud-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.prio { font: 700 .75rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; background: var(--brand-tint); color: var(--brand-on-tint); padding: 6px 10px; border-radius: 999px; }
.scenario { background: var(--brand-tint); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.scenario b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--brand-on-tint); display: block; margin-bottom: 4px; }

/* 14. Footer */
.site-footer { background: var(--brand-deep); color: var(--teal-90); padding: 64px 0 32px; font-size: .95rem; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.site-footer .footer-brand img { width: 38px; height: 38px; }
.site-footer .footer-brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; }
.site-footer .footer-brand span b { color: var(--highlight); font-weight: 800; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h5 { color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; margin: 0 0 12px; }
.site-footer a { color: var(--teal-90); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(164, 221, 222, .2); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.site-footer .legal a { display: inline; }

/* 15. Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; z-index: 999; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 16px 24px 24px; flex-direction: column; gap: 4px;
}
body.admin-bar .mobile-nav { top: calc(var(--nav-height) + 46px); }
.mobile-nav.open { display: flex; }
.mobile-nav a { display: block; padding: 11px 14px; font-size: 1rem; font-weight: 600; color: var(--ink-muted); text-decoration: none; border-radius: var(--radius-s); }
.mobile-nav a:hover, .mobile-nav a[aria-current] { background: var(--surface-wash); color: var(--ink); }
.mobile-nav .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.mobile-nav .mobile-actions a { text-align: center; border: 1px solid var(--line-strong); color: var(--ink); }
.mobile-nav .mobile-actions .mobile-cta { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* 16. Subscribe modal */
#tt-subscribe-modal .modal-label { font-family: var(--font-display); font-size: .9rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 10px; display: block; }
#tt-subscribe-modal .modal-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; line-height: 1.05; }
#tt-subscribe-modal .modal-desc { font-size: 15px; color: var(--ink-muted); margin-bottom: 24px; line-height: 1.65; }
#tt-modal-form input[type="text"], #tt-modal-form input[type="email"] { width: 100% !important; padding: 12px 14px !important; border: 1px solid var(--line-strong) !important; border-radius: var(--radius-s) !important; font-family: var(--font-body) !important; font-size: 15px !important; color: var(--ink) !important; background: #fff !important; box-shadow: none !important; margin-bottom: 12px !important; }
#tt-modal-form input[type="text"]:focus, #tt-modal-form input[type="email"]:focus { border-color: var(--focus) !important; outline: 2px solid var(--focus) !important; }
#tt-modal-form input[type="submit"], #tt-modal-form button[type="submit"] { background: var(--brand) !important; color: var(--on-brand) !important; border: none !important; border-radius: var(--radius-s) !important; font-family: var(--font-body) !important; font-size: 15px !important; font-weight: 600 !important; padding: 14px 32px !important; cursor: pointer !important; width: 100% !important; margin-top: 4px !important; }
#tt-modal-form input[type="submit"]:hover, #tt-modal-form button[type="submit"]:hover { background: var(--brand-strong) !important; }
#tt-modal-form label { display: block !important; font-size: 13px !important; font-weight: 600 !important; color: var(--ink) !important; margin-bottom: 6px !important; }

/* 17. Single post (News) + archive */
.post-hero { background: var(--brand-deep); padding: 80px 0 64px; }
.post-hero-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.post-meta-date { font-size: 13px; font-weight: 600; color: var(--teal-90); letter-spacing: .04em; }
.post-meta-cat { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--brand); color: #fff; padding: 3px 10px; border-radius: 999px; }
.post-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; margin-bottom: 20px; }
.post-excerpt-lede { font-size: 18px; color: var(--teal-90); line-height: 1.65; }
.post-body { background: var(--surface); padding: 72px 0; }
.post-body-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.post-body-inner p { font-size: 17px; line-height: 1.75; color: var(--ink); margin-bottom: 20px; }
.post-body-inner h2 { font-size: 2rem; margin: 40px 0 12px; padding-top: 16px; border-top: 2px solid var(--brand-tint); }
.post-body-inner h3 { font-size: 1.5rem; margin: 28px 0 8px; }
.post-body-inner ul, .post-body-inner ol { margin: 0 0 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.post-body-inner ul li { position: relative; padding-left: 18px; line-height: 1.65; }
.post-body-inner ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--brand); border-radius: 50%; }
.post-body-inner ol { counter-reset: post-ol; }
.post-body-inner ol li { position: relative; padding-left: 32px; line-height: 1.65; counter-increment: post-ol; }
.post-body-inner ol li::before { content: counter(post-ol); position: absolute; left: 0; top: 2px; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.post-body-inner strong { font-weight: 700; }
.post-body-inner a:not([class*="btn"]) { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.post-body-inner blockquote { border-left: 3px solid var(--brand); padding: 12px 0 12px 24px; margin: 28px 0; font-size: 1.6rem; }
.post-body-inner img { width: 100%; border-radius: var(--radius); margin: 8px 0 20px; }
.post-nav { background: var(--surface-wash); padding: 40px 0; }
.post-nav-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 24px; }
.post-nav-item { display: flex; flex-direction: column; max-width: 45%; }
.post-nav-item.next { align-items: flex-end; text-align: right; }
.post-nav-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.post-nav-item a { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.4; }
.post-nav-item a:hover { color: var(--brand-text); }

/* 18. Responsive */
@media (max-width: 960px) {
  .nav-links, .nav-login { display: none; }
  .nav-hamburger { display: block; }
  .nav-actions { margin-left: auto; }
  .site-nav { gap: 12px; }
  .hero .container, .feature, .story, .story-lg, .wa-cta, .two-col { grid-template-columns: 1fr; }
  .feature.flip .f-text { order: 0; }
  .feature { gap: 32px; padding: 40px 0; }
  .aud, .grid-3, .grid-2, .steps, .steps-4, .vs { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .wa-cta { padding: 36px 28px; }
  .wa-cta .btn-row { justify-content: flex-start; }
  .mock-wrap .float-card { display: none; }
  .section { padding: 56px 0; }
  .aud-section { padding: 56px 0; }
  .story { justify-items: start; }
  .avatar, .story-lg .avatar { width: 140px; height: 140px; }
  .subnav .container { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; white-space: nowrap; }
  section:not([class]) { padding: 56px 16px; }
}
@media (max-width: 782px) {
  body.admin-bar .site-nav { top: 46px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .site-footer .cols, .form-row { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 44px 1fr; }
  .ev .right { grid-column: 2; text-align: left; }
  .f-visual { padding: 18px; }
  .nav-logo span { font-size: 1.25rem; }
  .nav-cta { padding: 8px 12px; }
}
