/* Theme C — Refined: A's calm, text-first layout with a modern sans, a light hero band and a single menu bar (PODS is one menu) */
:root {
  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --tint: #f3f6fb;
  --accent: #1f4fa3;
  --accent-soft: #e9effa;
  --pods: #9a3412;
  --pods-soft: #fdf1ea;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}
.is-pods { --accent: var(--pods); --accent-soft: var(--pods-soft); }

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--body); font: 16px/1.65 var(--sans); }
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 100; }
.ext { font-size: .85em; opacity: .6; }

/* header */
.hdr { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 40; }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-tag { font-size: 12.5px; line-height: 1.3; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.mnav { list-style: none; display: flex; margin: 0; padding: 0; gap: 2px; }
.mnav-item { position: relative; }
.mnav-top { display: block; white-space: nowrap; padding: 24px 13px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.mnav-item:hover .mnav-top { color: #1f4fa3; }
.mnav-item.active .mnav-top { color: #1f4fa3; box-shadow: inset 0 -2px 0 #1f4fa3; }
.mnav-pods .mnav-top { color: var(--pods) !important; }
.mnav-pods.active .mnav-top { box-shadow: inset 0 -2px 0 var(--pods); }
.mnav-pods { margin: 0 8px; padding: 0 10px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.drop { display: none; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(17,24,39,.2); padding: 10px; z-index: 30; }
.mnav-item:hover .drop, .mnav-item:focus-within .drop { display: block; }
.drop ul { list-style: none; margin: 0; padding: 0; }
.drop a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--body); text-decoration: none; font-size: 14.5px; }
.drop a:hover { background: var(--tint); color: var(--ink); }
.drop-wide { left: auto; right: 0; width: 520px; display: none; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 16px; }
.drop-wide.drop-left { left: 0; right: auto; }
.drop-all { grid-column: 1 / -1; order: 0; padding-bottom: 6px !important; margin-bottom: 4px !important; border-bottom: 1px solid var(--line) !important; }
.drop-all a { font-weight: 600; }
.drop-col .drop-group + .drop-group { margin-top: 10px; } /* a title sits closer to its own items than to the group above */
.drop-col + .drop-col .drop-group + .drop-group { margin-top: 31px; } /* one empty menu row, right column only */
.mnav-item:hover .drop-wide, .mnav-item:focus-within .drop-wide { display: grid; }
.drop-group p { margin: 0 10px 2px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #1f4fa3; }
.mnav-pods .drop-group p { color: var(--pods); }
.mnav-pods .drop-group a:hover { background: var(--pods-soft); }
.burger { display: none; }

/* home */
.hero { background: var(--tint); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center; padding: 64px 24px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #1f4fa3; margin: 0; }
.hero h1 { font: 500 clamp(34px, 4.2vw, 50px)/1.12 var(--serif); margin: 12px 0 16px; letter-spacing: -.01em; }
.hero-lead { font-size: 18px; max-width: 640px; margin: 0; }
.conf { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-top: 4px solid #1f4fa3; border-radius: 10px; padding: 24px; text-decoration: none; color: var(--body); box-shadow: 0 10px 30px -18px rgba(17,24,39,.35); }
.conf:hover { border-color: #c7d4ea; border-top-color: #1f4fa3; }
.conf-k { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.conf-n { font: 600 26px var(--serif); color: var(--ink); margin-top: 4px; }
.conf-go { margin-top: 12px; font-weight: 600; color: #1f4fa3; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 40px; padding-bottom: 8px; }
.feature { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--body); transition: border-color .15s; }
.feature:hover { border-color: #1f4fa3; }
.feature h2 { font: 600 22px var(--serif); margin: 0 0 6px; color: #1f4fa3; }
.feature p { margin: 0; font-size: 15px; }
.feature-pods h2 { color: var(--pods); }
.feature-pods:hover { border-color: var(--pods); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 40px; padding-bottom: 72px; }
.h-section { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
aside .h-section + .links { margin-bottom: 32px; }
.links { list-style: none; padding: 0; margin: 0; }
.links a { display: block; padding: 7px 0; border-bottom: 1px solid #f1f2f4; color: var(--ink); text-decoration: none; }
.links a:hover { color: #1f4fa3; }
.links b { color: #1f4fa3; font-weight: 600; margin-right: 6px; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f1f2f4; }
.news-list time { color: var(--muted); font-size: 14px; padding-top: 1px; }
.news-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.news-list a:hover { color: #1f4fa3; text-decoration: underline; }
.news-list .tag { grid-column: 2; justify-self: start; }
.tag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; background: var(--pods-soft); color: var(--pods); }
.more a { font-weight: 600; text-decoration: none; }

/* inner pages */
.page-head { background: var(--tint); border-bottom: 1px solid var(--line); padding: 36px 0 30px; }
.is-pods .page-head { background: var(--pods-soft); }
.crumbs { margin: 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; opacity: .5; }
.page-head h1 { font: 500 clamp(30px, 3.6vw, 42px)/1.15 var(--serif); margin: 8px 0 0; max-width: 860px; }
.page-date { color: var(--muted); margin: 8px 0 0; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; padding-top: 36px; padding-bottom: 72px; }
.page-grid.no-side { grid-template-columns: minmax(0, 820px); }
.prose { max-width: 820px; font-size: 16.5px; }
.prose h2 { font: 600 26px var(--serif); margin: 36px 0 10px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 22px 0; display: block; overflow-x: auto; }
.prose td, .prose th { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose th { background: var(--tint); color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 22px 0; padding: 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); }
.side { align-self: start; position: sticky; top: 96px; }
.side-title { display: block; font-weight: 600; color: var(--ink); text-decoration: none; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.side-group { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 14px 0 4px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav ul a { display: block; padding: 5px 10px; margin: 0 -10px; border-radius: 6px; color: var(--body); text-decoration: none; font-size: 14.5px; }
.side-nav ul a:hover { background: var(--tint); }
.side-nav ul a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.page-meta { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 1360px) { .logo-tag { display: none; } }
@media (max-width: 1060px) {
  .btn-join { margin-left: auto; } .burger { order: 3; }
  .burger { display: block; font: 600 14px var(--sans); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; }
  #nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; max-height: calc(100vh - 72px); overflow: auto; }
  .nav-open #nav { display: block; }
  .mnav { flex-direction: column; }
  .mnav-pods { margin: 0; padding: 0; border: 0; }
  .mnav-top { padding: 12px 0; font-weight: 600; box-shadow: none !important; }
  .drop, .drop-wide { display: block !important; position: static; width: auto; border: 0; box-shadow: none; padding: 0 0 8px; }
  .drop-wide:has(.drop-col) { display: flex !important; flex-direction: column; gap: 6px; }
  .drop-col { display: contents; }
  .drop-col .drop-group + .drop-group { margin-top: 0; }
  .hero-in, .home-grid, .page-grid { grid-template-columns: 1fr; gap: 32px; }
  .side { position: static; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  #nav { padding: 8px 16px 20px; }
  .hero-in { padding: 40px 16px; }
  .features { grid-template-columns: 1fr; }
  .news-list li { grid-template-columns: 1fr; gap: 0; }
  .logo-tag { display: none; }
}
