/* ProvnHR v11: people-first site. Shared by index, news and forum. */
/* Layout: a people-first corporate site. Contact strip, uppercase nav, full-width
   photo hero, four alternating photo/text sections, four photo service cards,
   a photo band for a featured guide, testimonials, client grid, address footer. */
:root {
  --bg: #FFFFFF;
  --tint: #F3F6F9;
  --line: #E1E7ED;
  --ink: #2F3439;           /* body text */
  --ink-2: #5B636B;         /* secondary text, 6:1 on white */
  --head: #1E2A35;          /* headings */
  --blue: #337AB7;          /* links, icons */
  --blue-dark: #285F8E;     /* buttons: white text 6.6:1 */
  --blue-darker: #1F4C73;
  --blue-soft: #E6F0F8;
  --overlay: rgba(14, 26, 38, .62);
  --strip: #1E2A35; --strip-ink: #D6DEE6;
  --foot: #16222E; --foot-ink: #C9D3DC; --foot-ink-2: #8E9BA8;
  --f: "Open Sans", "Segoe UI", Arial, sans-serif;
  --r: 6px;
  --shadow: 0 2px 4px rgba(16, 32, 48, .06), 0 10px 28px rgba(16, 32, 48, .10);
}
:root[data-theme="dark"] {
  --bg: #11181F; --tint: #17212B; --line: #253240;
  --ink: #DCE3EA; --ink-2: #9FACB8; --head: #F0F4F8;
  --blue: #6FAEE3; --blue-dark: #2A6CA6; --blue-darker: #23598A; --blue-soft: #1A2B3B;
  --overlay: rgba(6, 12, 18, .7);
  --strip: #0B1117; --strip-ink: #B9C5D0; --foot: #0B1117; --foot-ink: #C9D3DC; --foot-ink-2: #7F8D9A;
  --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--f); }
h1, h2, h3, h4 { margin: 0; color: var(--head); text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }   /* height attributes are for layout hints; CSS sets the size */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
svg.lucide { width: 18px; height: 18px; stroke-width: 2; flex: none; }
.wrap { max-width: 1170px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.rule { width: 56px; height: 3px; background: var(--blue); margin-top: 14px; }
.center .rule { margin-inline: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: var(--r); border: 0; font: 700 14px/1 var(--f); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-blue { background: var(--blue-dark); color: #FFFFFF; }
.btn-blue:hover { background: var(--blue-darker); }
.btn-line { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.btn-line:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost { background: transparent; color: var(--blue-dark); box-shadow: inset 0 0 0 2px var(--blue-dark); }
:root[data-theme="dark"] .btn-ghost { color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); }

/* Mockup note and contact strip */
.mock { background: var(--blue-soft); color: var(--ink); font-size: 13px; padding: 7px 0; }
.mock .wrap { display: flex; gap: 8px; align-items: center; }
.mock svg.lucide { width: 15px; height: 15px; color: var(--blue); }
.strip { background: var(--strip); color: var(--strip-ink); font-size: 13.5px; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; padding-block: 8px; }
.strip a, .strip span { color: var(--strip-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.strip a:hover { color: #FFFFFF; }
.strip svg.lucide { width: 15px; height: 15px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 30; background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(16, 32, 48, .05); }
header.site .wrap { display: flex; align-items: center; gap: 10px; min-height: 78px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--head); font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.logo .mark { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-dark); color: #FFFFFF; display: grid; place-items: center; }
.logo .mark svg.lucide { width: 20px; height: 20px; stroke-width: 3; }
.logo small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); line-height: 1; margin-top: 2px; }
nav.main { margin-left: auto; display: flex; align-items: center; gap: 2px; }
nav.main a { color: var(--head); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 10px 11px; border-bottom: 2px solid transparent; }
nav.main a:hover { color: var(--blue); border-bottom-color: var(--blue); }
/* Buttons in the nav keep button colours: nav.main a would otherwise give them navy text on blue (2.2:1) */
nav.main a.btn { padding: 0 22px; border-bottom: 0; letter-spacing: .08em; }
nav.main a.btn-blue, nav.main a.btn-blue:hover, nav.main a.btn-blue:focus-visible { color: #FFFFFF; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--head); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--tint); }
:root[data-theme="dark"] .when-light, :root:not([data-theme="dark"]) .when-dark { display: none; }
.menu-btn { display: none; }
@media (max-width: 1060px) {
  nav.main .link { display: none; }
  .menu-btn { display: inline-grid; }
  nav.main.open .link { display: block; }
  nav.main.open { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(16, 32, 48, .12); }
  nav.main.open .icon-btn, nav.main.open .btn { display: none; }
}
@media (max-width: 520px) { header.site .btn { display: none; } }

/* Hero */
.hero { position: relative; min-height: 560px; display: grid; align-items: center; color: #FFFFFF; isolation: isolate; }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 26, 38, .86) 0%, rgba(14, 26, 38, .62) 48%, rgba(14, 26, 38, .2) 100%); }
.hero .wrap { width: 100%; padding-block: 72px; }
.hero .inner { max-width: 620px; }
.hero .kicker { color: #A9D1F2; }
.hero h1 { color: #FFFFFF; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin-top: 14px; }
.hero p.sub { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.6; margin-top: 18px; color: #E6EDF3; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: 15px; color: #E6EDF3; }
/* Hero background video: muted loop, with a pause button (WCAG 2.2.2). Reduced motion shows the poster only. */
.hero-pause { position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(14, 26, 38, .6); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; }
.hero-pause:hover { background: rgba(14, 26, 38, .85); }
.hero-pause svg.lucide { width: 18px; height: 18px; }
.hero-pause .when-paused, .hero-pause.paused .when-playing { display: none; }
.hero-pause.paused .when-paused { display: block; }
.hero-pause::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); right: 0; background: #FFFFFF; color: #16222E; font: 600 12px/1.2 var(--f); padding: 5px 9px; border-radius: 4px; white-space: nowrap; pointer-events: none; display: none; }
.hero-pause:hover::after, .hero-pause:focus-visible::after { display: block; }
.hero .facts span { display: inline-flex; gap: 8px; align-items: center; }
.hero .facts svg.lucide { color: #A9D1F2; }
@media (max-width: 760px) { .hero { min-height: 0; } .hero::before { background: rgba(14, 26, 38, .72); } .hero .wrap { padding-block: 56px; } }

/* Alternating sections */
.alt { padding-block: 80px; }
.alt:nth-of-type(even) { background: var(--tint); }
.alt .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .alt .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } .alt.flip .photo { order: 2; } }
@media (max-width: 760px) { .alt { padding-block: 56px; } }
.alt .photo { position: relative; }
.alt .photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.alt .photo::after { content: ""; position: absolute; z-index: -1; width: 60%; height: 70%; right: -18px; bottom: -18px; background: var(--blue-soft); border-radius: var(--r); }
.alt.flip .photo::after { right: auto; left: -18px; }
.alt .photo { isolation: isolate; }
@media (max-width: 600px) { .alt .photo::after { display: none; } }
.alt h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.18; font-weight: 800; letter-spacing: -0.01em; margin-top: 10px; }
.alt p.body { margin-top: 20px; color: var(--ink-2); font-size: 17px; max-width: 58ch; }
.alt ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.alt li { display: flex; gap: 12px; align-items: flex-start; }
.alt li svg.lucide { color: var(--blue); margin-top: 4px; }

/* Service cards */
.services { padding-block: 84px; }
.sec-head { max-width: 680px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.2; font-weight: 800; margin-top: 10px; }
.sec-head p { color: var(--ink-2); font-size: 17px; margin-top: 16px; }
.cards { display: grid; gap: 24px; margin-top: 44px; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .img { position: relative; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card .ic { position: absolute; left: 20px; bottom: -22px; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-dark); color: #FFFFFF; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg); }
.card .ic svg.lucide { width: 22px; height: 22px; }
.card .body { padding: 34px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.card .go { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.card:hover .go svg.lucide { transform: translateX(3px); }
.card .go svg.lucide { transition: transform .15s; width: 16px; height: 16px; }

/* Featured guide band */
.band { position: relative; isolation: isolate; color: #FFFFFF; padding-block: 88px; }
.band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 52, 82, .84); }
.band .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.band .kicker { color: #A9D1F2; display: inline-flex; gap: 8px; align-items: center; }
.band h2 { color: #FFFFFF; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.18; font-weight: 800; margin-top: 12px; }
.band p { color: #E1EAF2; font-size: 17px; margin-top: 16px; max-width: 56ch; }
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.band .btn-blue { background: #FFFFFF; color: #1F4C73; }
.band .btn-blue:hover { background: #E6F0F8; }
.toc { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r); padding: 22px 24px; }
.toc h3 { color: #FFFFFF; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.toc ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; color: #E1EAF2; font-size: 15.5px; }

/* Testimonials */
.stories { padding-block: 84px; background: var(--tint); }
.quotes { display: grid; gap: 24px; margin-top: 44px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { background: var(--bg); border-radius: var(--r); padding: 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; position: relative; }
.quote .mark { position: absolute; top: 18px; right: 22px; color: var(--blue-soft); }
.quote .mark svg.lucide { width: 44px; height: 44px; stroke-width: 1.5; }
.quote blockquote { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote .who img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--blue-soft); }
.quote .who b { display: block; color: var(--head); font-size: 15.5px; }
.quote .who span { font-size: 14px; color: var(--ink-2); }
.eg { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.stories .more, #news-more { text-align: center; margin-top: 36px; }

/* Clients */
.clients { padding-block: 72px; }
.grid-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 640px) { .grid-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.grid-logos span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 96px; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 16px; text-align: center; filter: grayscale(1); transition: color .2s; }
.grid-logos span:hover { color: var(--blue); }
.grid-logos svg.lucide { width: 24px; height: 24px; }

/* Footer */
footer.site { background: var(--foot); color: var(--foot-ink); padding-block: 60px 28px; }
.fgrid { display: grid; gap: 36px; }
@media (min-width: 800px) { .fgrid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
footer.site .logo { color: #FFFFFF; }
footer.site .logo small { color: var(--foot-ink-2); }
footer.site h4 { color: #FFFFFF; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
footer.site a { color: var(--foot-ink); text-decoration: none; }
footer.site a:hover { color: #FFFFFF; text-decoration: underline; }
footer.site address { font-style: normal; font-size: 15px; display: grid; gap: 8px; margin-top: 18px; }
footer.site address span, footer.site address a { display: flex; gap: 10px; align-items: flex-start; }
footer.site address svg.lucide { margin-top: 4px; color: #8FC3EC; }
.fbottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; font-size: 13.5px; color: var(--foot-ink-2); }
@media (prefers-reduced-motion: reduce) { .card, .card .go svg.lucide { transition: none; } .card:hover { transform: none; } }

/* ── Shared: current page in nav, inner-page banner ───────── */
nav.main a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.page-hero { position: relative; isolation: isolate; color: #FFFFFF; padding-block: 64px 56px; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 26, 38, .88), rgba(14, 26, 38, .55)); }
.page-hero .kicker { color: #A9D1F2; }
.page-hero h1 { color: #FFFFFF; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; font-weight: 800; margin-top: 10px; }
.page-hero p { color: #E6EDF3; font-size: 18px; margin-top: 12px; max-width: 60ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: #C9D6E2; margin-bottom: 14px; }
.crumbs a { color: #C9D6E2; }
.crumbs svg.lucide { width: 14px; height: 14px; }
.section { padding-block: 64px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 14px/1 var(--f); cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue-dark); border-color: var(--blue-dark); color: #FFFFFF; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.meta { font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.meta svg.lucide { width: 15px; height: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; color: var(--head); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 15.5px/1.5 var(--f); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue-dark); flex: none; }
.searchbox { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.searchbox:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 16px/1 var(--f); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Footer: follow us ─────────────────────────────────────── */
/* One footer line: copyright left, follow label and icons right */
.follow { display: flex; align-items: center; gap: 14px; }
.follow-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--foot-ink); white-space: nowrap; }
/* footer.site prefix outranks the footer's generic `ul { display: grid }`, which stacked the icons */
footer.site .socials { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
footer.site .socials li { display: block; margin: 0; }
@media (max-width: 520px) { .fbottom { justify-content: center; text-align: center; } .follow { flex-wrap: wrap; justify-content: center; } footer.site .socials { gap: 6px; } footer.site .socials a { width: 36px; height: 36px; } }
.socials a { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #FFFFFF; text-decoration: none !important; transition: background-color .15s, transform .15s; }
.socials a:hover, .socials a:focus-visible { transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.socials .instagram:hover, .socials .instagram:focus-visible { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); }
.socials .tiktok:hover, .socials .tiktok:focus-visible { background: #FE2C55; }
.socials .linkedin:hover, .socials .linkedin:focus-visible { background: #0A66C2; }
.socials .facebook:hover, .socials .facebook:focus-visible { background: #0866FF; }
.socials .youtube:hover, .socials .youtube:focus-visible { background: #FF0000; }
.socials .x:hover, .socials .threads:hover, .socials .x:focus-visible, .socials .threads:focus-visible { background: #FFFFFF; color: #000000; }
.socials a::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #FFFFFF; color: #16222E; font: 600 12px/1.2 var(--f); padding: 5px 9px; border-radius: 4px; white-space: nowrap; pointer-events: none; display: none; }
.socials a:hover::after, .socials a:focus-visible::after { display: block; }
@media (prefers-reduced-motion: reduce) { .socials a { transition: none; } .socials a:hover { transform: none; } }

/* ── News ─────────────────────────────────────────────────── */
.news-top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.featured { display: grid; gap: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
@media (min-width: 900px) { .featured { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.featured img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.featured .ph { min-height: 260px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.featured .ph svg.lucide { width: 56px; height: 56px; stroke-width: 1.5; }
.featured .body { padding: 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.featured h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; font-weight: 800; }
.featured:hover h2 { color: var(--blue); }
.featured p { color: var(--ink-2); font-size: 17px; }
.news-layout { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 1000px) { .news-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.articles { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 640px) { .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.article { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.article:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.article:hover h3 { color: var(--blue); }
.article img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article .ph { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.article .ph svg.lucide { width: 44px; height: 44px; stroke-width: 1.5; }
.article .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article h3 { font-size: 19px; line-height: 1.35; font-weight: 700; }
.article p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.article .meta { margin-top: auto; padding-top: 6px; font-size: 13px; }
.aside { display: flex; flex-direction: column; gap: 24px; }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--bg); }
.box.tint { background: var(--tint); border-color: transparent; }
.box h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.box form { display: grid; gap: 12px; }
.credits p { font-size: 15px; color: var(--ink-2); }
.credits ul { margin-top: 14px; }
.credits small { display: block; font-size: 13px; color: var(--ink-2); }
.article .by, .featured .by { font-size: 13px; color: var(--ink-2); }
.box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.box li { display: flex; gap: 10px; align-items: flex-start; }
.box li svg.lucide { color: var(--blue); margin-top: 4px; }
.ok-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; padding: 12px; border-radius: var(--r); background: var(--blue-soft); }
.empty { padding: 40px 16px; text-align: center; color: var(--ink-2); grid-column: 1 / -1; }

/* ── Forum ────────────────────────────────────────────────── */
.forum-bar { display: grid; gap: 12px; margin-bottom: 20px; }
@media (min-width: 760px) { .forum-bar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.forum-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .forum-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 12px 14px; font: 700 14px/1 var(--f); color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }
:root[data-theme="dark"] .tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.threads { list-style: none; margin: 0; padding: 0; }
.thread { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .thread { grid-template-columns: 44px minmax(0, 1fr) 76px 76px 120px; align-items: center; } }
.thread .av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font: 700 14px/1 var(--f); color: #FFFFFF; background: var(--blue-dark); }
.thread .av.anon { background: var(--line); color: var(--ink-2); }
.thread .av svg.lucide { width: 20px; height: 20px; }
.thread h3 { font-size: 16.5px; line-height: 1.35; font-weight: 700; }
.thread h3 a { color: var(--head); text-decoration: none; }
.thread h3 a:hover { color: var(--blue); text-decoration: underline; }
.thread .sub { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.thread .pin { color: var(--blue); display: inline-flex; gap: 4px; align-items: center; font-weight: 700; }
.thread .pin svg.lucide, .thread .solved svg.lucide { width: 14px; height: 14px; }
.thread .solved { display: inline-flex; gap: 4px; align-items: center; color: var(--blue-dark); font-weight: 700; }
:root[data-theme="dark"] .thread .solved { color: var(--blue); }
.cat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.cat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--blue)); }
.num { text-align: center; font-variant-numeric: tabular-nums; }
.num b { display: block; font-size: 17px; color: var(--head); }
.num span { font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.when { font-size: 13.5px; color: var(--ink-2); text-align: right; }
@media (max-width: 699px) { .thread .num, .thread .when { display: none; } }
@media (min-width: 700px) { .thread .sub .m { display: none; } }
.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cats button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); font: 600 15px/1.2 var(--f); cursor: pointer; text-align: left; }
.cats button:hover { background: var(--tint); }
.cats button[aria-pressed="true"] { background: var(--blue-soft); color: var(--head); }
.cats .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; }
.cats .n { margin-left: auto; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.people li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.people img, .people .ini { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.people .ini { display: grid; place-items: center; background: var(--blue-dark); color: #FFFFFF; font: 700 13px/1 var(--f); }
.people b { display: block; color: var(--head); }
.people small { color: var(--ink-2); font-size: 13px; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.stats3 b { display: block; font-size: 22px; font-weight: 800; color: var(--head); font-variant-numeric: tabular-nums; }
.stats3 span { font-size: 12.5px; color: var(--ink-2); }
dialog.compose { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 10px; padding: 0; background: var(--bg); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
dialog.compose::backdrop { background: rgba(14, 26, 38, .6); }
dialog.compose form { padding: 26px; display: grid; gap: 16px; }
dialog.compose .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
dialog.compose h2 { font-size: 22px; font-weight: 800; }
dialog.compose .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.err { font-size: 13.5px; color: #B42318; display: flex; gap: 6px; align-items: center; }
:root[data-theme="dark"] .err { color: #F28B82; }
.err svg.lucide { width: 15px; height: 15px; }
.new-flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--blue-soft); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .new-flash { animation: none; } .article, .article:hover { transition: none; transform: none; } }
