/* ForfeitureUSA preview: hand-written, no framework. Brand from the live Enfold theme:
   near-black header, teal primary #4ecac2, magenta secondary #c94e8e, Raleway headings. */
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("fonts/raleway-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0d1320;
  --ink-2: #141c2c;
  --ink-3: #1d2738;
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --line: #dfe3e8;
  --text: #1b2230;
  --muted: #586273;
  --teal: #4ecac2;
  --teal-ink: #0b6b65;
  --magenta: #c94e8e;
  --on-dark: #e9edf3;
  --on-dark-muted: #a9b3c2;
  /* theme values (light) */
  --heading: #0d1320;
  --surface: #ffffff;
  --link: #0b6b65;
  --link-hover: #0d1320;
  --accent-text: #0b6b65;
  --card-dark: #0d1320;
  --card-dark-line: transparent;
  --chip-on-bg: #0d1320;
  --chip-on-text: #ffffff;
  --shadow: rgba(13,19,32,.08);
  color-scheme: light;
  --radius: 10px;
  --wrap: 1180px;
  --head: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Dark theme: same layout, darker canvas. Set by <html data-theme="dark"> (THEME in build.py). */
:root[data-theme="dark"] {
  --paper: #0f1627;
  --paper-2: #131d31;
  --surface: #18233a;
  --line: #283550;
  --text: #d5dce7;
  --muted: #9ca8ba;
  --heading: #f3f6fa;
  --link: #4ecac2;
  --link-hover: #92e7e1;
  --accent-text: #4ecac2;
  --card-dark: #18243c;
  --card-dark-line: #2c3b5a;
  --chip-on-bg: #4ecac2;
  --chip-on-text: #0d1320;
  --shadow: rgba(0,0,0,.35);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4, h5 { font-family: var(--head); line-height: 1.2; color: var(--heading); margin: 1.6em 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); font-weight: 800; margin-top: .2em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4, h5, h6 { font-size: 1.05rem; font-weight: 700; margin: 1.5em 0 .4em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: var(--ink); padding: .6em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 920px; }

/* buttons */
.btn { display: inline-block; background: var(--teal); color: var(--ink); font: 700 1rem/1 var(--head); padding: .9em 1.3em; border-radius: 999px; text-decoration: none; border: 2px solid var(--teal); white-space: nowrap; }
.btn:hover { background: #79ddd7; border-color: #79ddd7; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }

/* header */
.site-header { background: var(--ink); color: var(--on-dark); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { display: block; width: 140px; height: auto; }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--on-dark); text-decoration: none; font: 600 .98rem/1 var(--head); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--teal); }
.site-nav .btn-call { color: var(--ink); }
.nav-toggle { background: none; border: 0; padding: 10px; cursor: pointer; display: grid; gap: 5px; }
.nav-toggle span:not(.vh) { display: block; width: 26px; height: 2px; background: var(--on-dark); transition: transform .2s; }
.nav-open .site-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); padding: 8px 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-open .site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-open .site-nav .btn-call { margin-top: 16px; display: inline-block; }
@media (min-width: 900px) {
  .brand img { width: 170px; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 28px; }
  .site-nav ul { display: flex; gap: 26px; }
}

/* hero */
.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; border-bottom: 3px solid var(--teal); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(13,19,32,.97) 0%, rgba(13,19,32,.88) 45%, rgba(13,19,32,.55) 100%), var(--hero-img, none); background-size: cover; background-position: center; }
.hero-grid { position: relative; display: grid; gap: 24px; padding-top: 48px; }
.hero h1 { color: #fff; max-width: 18ch; }
.eyebrow { color: var(--teal); font: 700 .82rem/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .6em; }
.hero-sub { font-size: 1.12rem; color: var(--on-dark); margin: 0 0 1.4em; }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 8px; }
.hero-photo { align-self: end; justify-self: center; max-width: 300px; }
.hero-photo img { display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; align-items: end; padding-top: 72px; }
  .hero-copy { padding-bottom: 72px; }
  .hero-photo { max-width: 380px; justify-self: end; }
}

/* bands and layout */
.band { padding: 44px 0; }
.band-alt { background: var(--paper-2); border-top: 1px solid var(--line); }
.band-dark { background: var(--ink-2); color: var(--on-dark); }
.band-dark h2 { color: #fff; }
.band-dark a { color: var(--teal); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.more { font: 700 .95rem/1 var(--head); text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }
.with-aside { display: grid; gap: 32px; }
@media (min-width: 960px) { .with-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } }
.aside-stack { display: grid; gap: 20px; align-content: start; }
@media (min-width: 960px) { .aside-stack { position: sticky; top: 96px; } }

/* page heads */
/* Every page opens the same way: dark title band under the header, teal rule, light content below. */
.page-head { background: var(--ink-2); color: var(--on-dark); padding: 34px 0 30px; border-bottom: 3px solid var(--teal); }
.page-head h1 { color: #fff; font-size: clamp(1.7rem, 1.15rem + 1.9vw, 2.45rem); max-width: 34ch; margin: .1em 0 .25em; }
.page-head a { color: var(--teal); }
.crumbs { font-size: .86rem; color: var(--on-dark-muted); margin: 0 0 .5em; }
.lede { font-size: 1.08rem; color: var(--on-dark-muted); max-width: 62ch; margin: .2em 0 0; }
.pmeta { color: var(--muted); font-size: .92rem; margin: 0; }
.page-head .pmeta { color: var(--on-dark-muted); }

/* prose */
.prose { min-width: 0; max-width: 72ch; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: 8px; display: block; margin: 1.2em 0; }
.prose blockquote { margin: 1.4em 0; padding: .4em 0 .4em 1.1em; border-left: 4px solid var(--teal); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5em .7em; text-align: left; vertical-align: top; }
.prose .yt { margin: 1.4em 0; }
.home .prose h3 { margin-top: 1.4em; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { font-size: 1.15rem; }
.prose strong { color: var(--heading); }
.prose a { overflow-wrap: anywhere; }
/* card grids placed inside page text keep the grid's own spacing, not list indents */
.prose .pgrid, .prose .vgrid { padding-left: 0; margin: 0 0 1.2em; }
.prose .pgrid li, .prose .vgrid li { margin: 0; }

/* cards */
.cta-card, .side-card { border-radius: var(--radius); padding: 22px; }
.cta-card { background: var(--card-dark); color: var(--on-dark); border: 1px solid var(--card-dark-line); }
.cta-card h2 { color: #fff; font-size: 1.25rem; margin: 0 0 .3em; }
.cta-card p { margin: 0 0 1em; }
.cta-card .small { font-size: .9rem; margin: 1em 0 0; }
.cta-card a:not(.btn) { color: var(--teal); }
.side-card { background: var(--paper-2); border: 1px solid var(--line); }
.side-card h2 { font-size: 1.1rem; margin: 0 0 .5em; }
.side-card p { margin: 0 0 .8em; font-size: .96rem; }

/* video grid */
.vgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.vcard a { display: block; text-decoration: none; color: inherit; }
.vcard .thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #000; }
.vcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.vcard .play { position: absolute; left: 50%; top: 50%; width: 52px; height: 36px; transform: translate(-50%, -50%); background: rgba(13,19,32,.8); border-radius: 10px; }
.vcard .play::after { content: ""; position: absolute; left: 21px; top: 10px; border-left: 14px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.vcard a:hover .thumb img { transform: scale(1.04); }
.vcard a:hover .play { background: var(--magenta); }
.vtitle { display: block; font: 700 1rem/1.3 var(--head); margin-top: .6em; color: var(--heading); }
.vcard a:hover .vtitle { color: var(--accent-text); }
.vsub { display: block; font-size: .85rem; color: var(--muted); margin-top: .25em; }
.band-dark .vtitle, .page-head.dark .vtitle { color: #fff; }
.band-dark .vsub { color: var(--on-dark-muted); }
.band-dark .vcard a:hover .vtitle { color: var(--teal); }
.sub-h { font-size: 1rem; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); }
.library .vgrid + .filter-bar, .library .sub-h + .vgrid { margin-bottom: 40px; }
.mini-v { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 14px; }
.mini-v .vcard a { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: start; }
.mini-v .vtitle { margin: 0; font-size: .9rem; }
.mini-v .vsub { display: none; }
.mini-v .play { transform: translate(-50%, -50%) scale(.6); }

/* lite YouTube */
.yt { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; inset: 0; width: 100%; height: 100%; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.yt-play svg { width: 72px; height: 51px; }
.yt-play .yt-bg { fill: #212121; fill-opacity: .85; transition: fill .15s; }
.yt-play:hover .yt-bg, .yt-play:focus-visible .yt-bg { fill: #f00; fill-opacity: 1; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-head .yt { margin: 18px 0 12px; }
.vmeta { color: var(--on-dark-muted); font-size: .92rem; margin: 0; }
.video-head .wrap.narrow { max-width: 980px; }
.prevnext { display: grid; gap: 12px; margin-top: 8px; }
.prevnext a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--heading); font-weight: 600; }
.prevnext a span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.prevnext a:hover { border-color: var(--teal); }
@media (min-width: 700px) { .prevnext { grid-template-columns: 1fr 1fr; } .prevnext .next { text-align: right; grid-column: 2; } }

/* article grid */
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pcard a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.pcard a:hover { border-color: var(--teal); box-shadow: 0 6px 22px var(--shadow); }
.pcard .pmeta { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); font-weight: 700; }
.ptitle { display: block; font: 700 1.08rem/1.3 var(--head); color: var(--heading); margin: .4em 0; }
.pexcerpt { display: block; font-size: .93rem; color: var(--muted); }

/* filters */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.filter-bar input { flex: 1 1 320px; min-width: 0; font: inherit; padding: .8em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.band-dark .filter-bar input { background: var(--ink-3); border-color: #33405a; color: #fff; }
.band-dark .filter-bar input::placeholder { color: var(--on-dark-muted); }
.count { margin: 0; color: var(--muted); font-size: .92rem; }
.band-dark .count { color: var(--on-dark-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { font: 600 .85rem/1 var(--body); padding: .6em .9em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.chip span { color: var(--muted); font-weight: 400; }
.chip[aria-pressed="true"] { background: var(--chip-on-bg); border-color: var(--chip-on-bg); color: var(--chip-on-text); }
.chip[aria-pressed="true"] span { color: inherit; opacity: .75; }
.empty { color: var(--muted); }
[hidden] { display: none !important; }

/* contact */
.contact-grid { display: grid; gap: 32px; align-items: center; }
.contact-card { border: 1px solid var(--card-dark-line); background: var(--card-dark); color: var(--on-dark); border-radius: var(--radius); padding: 28px; font-size: 1.08rem; }
.contact-card h2 { color: #fff; margin-top: 0; }
.contact-card a:not(.btn) { color: var(--teal); }
.contact-photo { max-width: 340px; justify-self: center; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: var(--heading); }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: .75em .9em; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 9em; }
.contact-form .btn { justify-self: start; cursor: pointer; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 700px) { .form-row { grid-template-columns: repeat(3, 1fr); } }
.form-note { margin: 0; padding: .8em 1em; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.form-note.ok { border-color: var(--teal); }
.form-note.err { border-color: var(--magenta); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 44px 0 0; font-size: .95rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.foot-h { color: #fff; font-size: 1rem; margin: 0 0 .6em; text-transform: uppercase; letter-spacing: .06em; }
.foot-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 16px; padding-bottom: 18px; font-size: .82rem; }
.demo-note { opacity: .7; }

/* captioned image galleries (bar certificates) */
.prose figure { margin: 0 0 1.2em; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: .4em; }
.gallery { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: 1.6em 0; }
.gallery figure { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.gallery img { margin: 0; width: 100%; height: 190px; object-fit: contain; background: #fff; border-radius: 4px; }
.gallery a { display: block; }
