:root {
  --bg: #ffffff; --surface: #ffffff; --alt: #f7f7f4;
  --text: #111418; --muted: #6b6f76; --border: #e3e3de;
  --accent: #e0742c; --link: #0b5aa2;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1200px;
}
:root[data-theme="dark"] {
  --bg: #14161a; --surface: #191c22; --alt: #1f232b;
  --text: #eceef2; --muted: #9aa0ab; --border: #2b303a;
  --accent: #f2954e; --link: #5fa2e6;
}
* { box-sizing: border-box; }
/* overflow-x: clip (on the root, which drives the viewport scrollbar) stops the nav
   hover-dropdowns — which extend past the right edge — from creating horizontal scroll
   / empty space, without breaking sticky positioning or vertical dropdown overflow. */
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text);
  line-height: 1.55; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* Utility bar */
.utilbar { background: var(--alt); border-bottom: 1px solid var(--border); }
.util-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between;
  align-items: center; padding: 0.4rem 1.25rem; font-size: 0.74rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); }
.util-left { display: flex; gap: 0.7rem; align-items: center; }
.util-left .updated { text-transform: none; letter-spacing: 0; color: var(--muted); }
.util-left .updated::before { content: "·"; margin-right: 0.6rem; opacity: 0.6; }
.util-left .updated:empty { display: none; }
.util-right { display: flex; gap: 1.1rem; align-items: center; }
.util-link { background: none; border: none; cursor: pointer; color: var(--muted);
  font: inherit; letter-spacing: 0.04em; text-transform: uppercase; padding: 0; }
.util-link:hover { color: var(--accent); }
/* Mobile: the util bar can't fit every item on one line without cramping —
   drop the redundant "Updated"/"sources" bits and keep date · saved · theme. */
@media (max-width: 600px) {
  .util-inner { padding: 0.4rem 0.9rem; font-size: 0.66rem; gap: 0.6rem; }
  .util-left { gap: 0.5rem; }
  .util-right { gap: 0.9rem; }
  .util-left .updated, .util-right .src-count { display: none; }
}

/* Masthead — brand left, search right */
.masthead { max-width: var(--max); margin: 0 auto; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem; padding: 1.3rem 1.25rem 1.1rem; }
.brand { display: inline-flex; align-items: center; }
/* Mobile menu icon, sits inline with the logo (hidden on desktop). */
.menu-btn { display: none; }
.brand-logo { width: clamp(210px, 44vw, 340px); height: auto; }
.wm-red { color: var(--accent); }

/* Light/dark logo swap (site toggles data-theme on <html>).
   These set display, so .brand-logo/.foot-logo must NOT declare display. */
.logo-light { display: block; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* Main nav */
.mainnav { position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-top: 2px solid var(--text); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border); }
.mainnav.stuck { box-shadow: 0 6px 18px rgba(0,0,0,.10); border-bottom-color: transparent; }
.nav-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: stretch; gap: 0.5rem; padding: 0 0.5rem; }
.nav-mini { display: none; align-items: center; font-family: var(--serif); font-weight: 800;
  font-size: 1rem; padding: 0 0.7rem; color: var(--text); white-space: nowrap; }
.mainnav.stuck .nav-mini { display: flex; }
.nav-burger { display: none; }
/* overflow:visible so category dropdowns can escape the nav bar (no clipping) */
.nav-scroll { display: flex; align-items: stretch; flex: 1; overflow: visible; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-item { position: relative; display: flex; }
.nav-link { display: flex; align-items: center; padding: 0.75rem 0.85rem; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
  border-bottom: 3px solid transparent; color: var(--text); }
.nav-link:hover { color: var(--cc, var(--accent)); border-bottom-color: var(--cc, var(--accent)); }
.home-link { color: var(--accent); }

.dropdown { position: absolute; top: 100%; left: 0; min-width: 330px; background: var(--surface);
  border: 1px solid var(--border); border-top: 3px solid var(--cc, var(--text));
  box-shadow: 0 18px 44px rgba(0,0,0,.18); opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: .16s; z-index: 60; }
.dropdown.flip { left: auto; right: 0; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-inner { padding: 0.75rem; }
.menu-head { display: block; font-family: var(--serif); font-weight: 700; font-size: 1rem;
  padding: 0.2rem 0.4rem 0.55rem; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.05rem 0.4rem; }
.menu-sub { display: flex; align-items: center; gap: 0.45rem; padding: 0.34rem 0.4rem;
  font-size: 0.82rem; color: var(--muted); border-radius: 5px; }
.menu-sub:hover { background: var(--alt); color: var(--text); }

/* Source monogram logo */
.logo-chip { display: inline-grid; place-items: center; border-radius: 50%; background: var(--lc, #555);
  color: #fff; font-family: var(--sans); font-weight: 800; flex: 0 0 auto; letter-spacing: 0; line-height: 1;
  vertical-align: middle; }

/* Search box (in masthead) */
.nav-search { display: flex; align-items: center; flex: 0 0 auto; }
.nav-search input { border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.88rem; padding: 0.55rem 0.8rem; border-radius: 6px 0 0 6px; width: 220px; outline: none; }
.nav-search input:focus { border-color: var(--accent); }
.nav-search button { border: 1px solid var(--border); border-left: none; background: var(--alt);
  cursor: pointer; padding: 0.42rem 0.65rem; border-radius: 0 6px 6px 0; color: var(--text); }
.nav-search button:hover { background: var(--accent); }

/* Bookmark button on cards */
.thumb .bm-btn { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px;
  border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 1.05rem;
  cursor: pointer; display: grid; place-items: center; line-height: 1; opacity: 0; transition: .15s; z-index: 2; }
.card:hover .thumb .bm-btn, .thumb .bm-btn.on { opacity: 1; }
.thumb .bm-btn.on { background: var(--accent); }
.thumb .bm-btn:hover { transform: scale(1.1); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 0.65rem 1.1rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.25); opacity: 0;
  pointer-events: none; transition: .2s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

main { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 2rem; }
.status { color: var(--muted); font-size: 0.78rem; margin-bottom: 1rem; min-height: 1rem;
  text-transform: uppercase; letter-spacing: 0.05em; }

/* Section rule */
.section-rule { display: flex; align-items: center; justify-content: space-between;
  border-top: 2px solid var(--text); margin: 1.75rem 0 1.1rem; }
.section-rule span { display: inline-block; background: var(--text); color: #fff;
  font-weight: 800; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.32rem 0.85rem; transform: translateY(-1px); }
.viewall { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--link); }
.viewall:hover { color: var(--accent); }

/* Trending */
.trending { margin-bottom: 1.25rem; }
.trend-label { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem; }
.trend-row { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.35rem; scrollbar-width: thin; }
.trend-chip { flex: 0 0 auto; display: flex; flex-direction: column; border: 1px solid var(--border);
  border-left: 3px solid var(--accent); background: var(--alt); border-radius: 6px; padding: 0.4rem 0.7rem; }
.trend-chip:hover { background: var(--surface); border-color: var(--accent); }
.trend-term { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.trend-count { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* "New stories" banner */
.new-banner { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(30px);
  background: var(--accent); color: #fff; border: none; cursor: pointer; font: inherit; font-weight: 700;
  font-size: 0.88rem; padding: 0.7rem 1.3rem; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: .25s; z-index: 150; }
.new-banner.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.new-banner:hover { filter: brightness(1.08); }

/* Byline logo alignment */
.byline { display: flex; align-items: center; gap: 0.4rem; }
.article-meta .logo-chip { margin-right: 0.15rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.lead { display: flex; flex-direction: column; }
.lead .lead-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--alt); margin-bottom: 0.9rem; }
.kicker { font-weight: 800; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; }
.lead h2 { font-family: var(--serif); font-weight: 800; line-height: 1.12;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 0.55rem; }
.lead:hover h2 { color: var(--accent); }
.lead .dek { font-size: 1rem; color: var(--muted); margin: 0 0 0.55rem; }
.byline { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.byline b { color: var(--text); }
.byline .ago { text-transform: none; letter-spacing: 0; white-space: nowrap; }
.byline .ago::before { content: "·"; margin: 0 0.35rem; opacity: 0.6; }

.secondary { display: flex; flex-direction: column; border-left: 1px solid var(--border); padding-left: 2rem; }
.sec-item { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.sec-item:first-child { padding-top: 0; } .sec-item:last-child { border-bottom: none; }
.sec-item .kicker { font-size: 0.64rem; }
.sec-item h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; font-size: 1.05rem; margin: 0.15rem 0 0.25rem; }
.sec-item:hover h3 { color: var(--accent); }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.6rem; }
.card { display: flex; flex-direction: column; }
.card .thumb { position: relative; margin-bottom: 0.55rem; }
.card .card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--alt); display: block; }
.card .kicker { font-size: 0.64rem; }
.card h3 { font-family: var(--serif); font-weight: 700; line-height: 1.24; font-size: 1.08rem; margin: 0.1rem 0 0.4rem; }
.card:hover h3 { color: var(--accent); }
.card .dek { font-size: 0.84rem; color: var(--muted); margin: 0 0 0.5rem; }
.card .byline { margin-top: auto; }
.card .play, .vcard .play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px;
  display: grid; place-items: center; background: rgba(177,18,38,.9); color: #fff; border-radius: 50%;
  font-size: 1.1rem; }

/* Video strip */
.video-strip { margin-top: 0.5rem; }
.vrow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; }
.vcard { display: flex; flex-direction: column; }
.vcard .thumb { position: relative; }
.vcard .vthumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--alt); display: block; }
.vcard .vmeta { padding: 0.4rem 0; font-size: 0.82rem; display: flex; flex-direction: column; }
.vcard .vmeta b { color: var(--accent); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; }
.vcard:hover .vmeta span { color: var(--accent); }

.cat-block { }
.sentinel { height: 1px; }
.loadmore { text-align: center; color: var(--muted); padding: 1.5rem; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.05em; }
.empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 3rem 1rem;
  font-family: var(--serif); font-style: italic; }

/* Article detail page */
.article { max-width: 760px; margin: 0 auto; }
.back { display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--link); margin-bottom: 1rem; }
.back:hover { color: var(--accent); }
.article-title { font-family: var(--serif); font-weight: 800; line-height: 1.12;
  font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0.3rem 0 0.8rem; }
.article-meta { font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding-bottom: 1rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.article-meta b { color: var(--text); }
.article-tools { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.tool { border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  font: inherit; font-size: 0.82rem; font-weight: 600; padding: 0.4rem 0.75rem; border-radius: 6px; }
.tool:hover { border-color: var(--accent); color: var(--accent); }
.tool.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.fontsize { display: inline-flex; gap: 0.25rem; margin-left: auto; }
.article-hero .article-img { width: 100%; max-height: 460px; object-fit: cover; background: var(--alt); margin-bottom: 1.4rem; }
.video-embed { position: relative; padding-top: 56.25%; margin-bottom: 1.4rem; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-body { font-family: var(--serif); font-size: 1.16rem; line-height: 1.7; }
.article-body p { margin: 0 0 1.1rem; }
/* Extracted full-text content */
.article-body img { max-width: 100%; height: auto; display: block; margin: 1.2rem auto; border-radius: 4px; }
.article-body figure { margin: 1.2rem 0; }
.article-body figcaption { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }
.article-body h2, .article-body h3 { font-family: var(--serif); line-height: 1.25; margin: 1.6rem 0 0.6rem; }
.article-body a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.2rem; }
.article-body blockquote { margin: 1.2rem 0; padding: 0.4rem 0 0.4rem 1.1rem; border-left: 3px solid var(--accent);
  font-style: italic; color: var(--muted); }
.article-body figure.image, .article-body div { max-width: 100%; }
.read-source { display: inline-block; margin: 1rem 0 0.5rem; background: var(--accent); color: #fff;
  font-weight: 700; padding: 0.8rem 1.3rem; border-radius: 6px; font-size: 0.95rem; }
.read-source:hover { filter: brightness(1.08); }
.disclaimer { font-size: 0.78rem; color: var(--muted); font-style: italic; margin-top: 1rem; }
.related { max-width: var(--max); margin: 2rem auto 0; }

/* Skeletons */
.skeleton .sk { background: linear-gradient(90deg, var(--alt) 25%, var(--border) 50%, var(--alt) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 3px; }
.skeleton .sk.img { aspect-ratio: 16/10; margin-bottom: 0.6rem; }
.skeleton .sk.line { height: 14px; margin: 6px 0; }
.skeleton .sk.line.short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Scroll-to-top button */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 44px; height: 44px;
  border: none; border-radius: 50%; background: var(--link); color: #fff; font-size: 1.3rem;
  line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.to-top.show { opacity: 0.92; visibility: visible; transform: translateY(0); }
.to-top:hover { opacity: 1; background: var(--accent); }
@media (max-width: 520px) { .to-top { right: 12px; bottom: 12px; width: 40px; height: 40px; } }

/* Ads */
.ad-top { display: flex; justify-content: center; padding: 0.6rem 1rem; }
.ad-top:empty { display: none; }
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 1rem auto; }
.ad-slot .ad-label { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); opacity: 0.75; }
.ad-slot iframe { max-width: 100%; }
.ad-infeed { grid-column: 1 / -1; }         /* native banner spans the full grid row */
.ad-cell { margin: 0; overflow: hidden; min-height: 250px; justify-content: center; }  /* fills one grid cell */
.ad-article { margin: 1.5rem auto; }
.ad-mobile { display: none; }
@media (max-width: 767px) { .ad-desktop { display: none; } .ad-mobile { display: flex; } }
/* Fixed side rails (skyscrapers), pinned in the side gutters. JS keeps them
   visible only while scrolling through the content — hidden over the header
   (page top) and over the footer (page bottom). `display` is width-gated so
   they never overlap the main content; `visibility` is scroll-gated by JS. */
.ad-rail { position: fixed; top: 88px; z-index: 40; display: none; visibility: hidden; }
.ad-rail-left { left: 6px; }
.ad-rail-right { right: 6px; }
.ad-rail .ad-slot { margin: 0; }
/* Listing/home use the full 1200px grid → need wide gutters. */
@media (min-width: 1560px) { .ad-rail { display: block; } }
/* Article & policy pages have a ~760px reading column, so rails fit sooner. */
@media (min-width: 1300px) {
  body:has(#article) .ad-rail,
  body:has(#policy) .ad-rail { display: block; }
}

/* Footer — single bottom bar: copyright · policies · powered-by */
.site-footer { max-width: var(--max); margin: 2rem auto 0; padding: 1.3rem 1rem;
  border-top: 2px solid var(--text); color: var(--muted); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.site-footer p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem; }
.foot-links a { color: var(--link); font-weight: 600; text-decoration: none; white-space: nowrap; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; }
.foot-meta { text-align: right; }
.foot-meta a { color: var(--link); font-weight: 700; text-decoration: none; }
.foot-meta a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 720px) { .site-footer { flex-direction: column; text-align: center; justify-content: center; gap: 0.8rem; }
  .foot-links { justify-content: center; gap: 0.5rem 1rem; }
  .foot-meta { text-align: center; } }

/* Policy pages */
.policy { max-width: 820px; margin: 0 auto; padding: 1rem 0 2rem; }
.policy h1 { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--text);
  margin: 0 0 0.4rem; }
.policy h2 { font-family: var(--serif); font-size: 1.3rem; color: var(--text); margin: 1.8rem 0 0.5rem; }
.policy p, .policy li { color: var(--text); line-height: 1.7; font-size: 1rem; }
.policy ul { padding-left: 1.2rem; margin: 0.5rem 0; }
.policy li { margin: 0.3rem 0; }
.policy a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.policy a:hover { color: var(--accent); }
.policy-updated { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.6rem; font-style: italic; }
.policy .back { display: inline-block; margin-bottom: 1.2rem; color: var(--link);
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.policy .back:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 1.25rem; }
  .secondary { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 0.5rem; }
  /* Logo left, menu icon at the right end, search on its own row below. */
  .masthead { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; }
  .brand { flex: 1 1 auto; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 44px; height: 44px; font-size: 1.4rem; line-height: 1; background: none; cursor: pointer;
    border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
  .menu-btn:hover { border-color: var(--accent); color: var(--accent); }
  .nav-search { flex: 1 1 100%; width: 100%; order: 3; }
  .nav-search input { flex: 1; width: auto; }
  /* Menu container collapses to just the rule when closed; the sticky bar
     brings back the compact logo + menu icon once the masthead scrolls away. */
  .nav-inner { flex-wrap: wrap; padding: 0 0.75rem; gap: 0.4rem; }
  .nav-burger { display: none; align-items: center; justify-content: center; margin-left: auto;
    width: 40px; height: 40px; font-size: 1.2rem; line-height: 1; background: none; cursor: pointer;
    border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
  .nav-burger:hover { border-color: var(--accent); color: var(--accent); }
  .nav-mini { display: none; }
  .mainnav.stuck .nav-inner { padding: 0.4rem 0.75rem; }
  .mainnav.stuck .nav-mini { display: flex; }
  .mainnav.stuck .nav-burger { display: inline-flex; }
  .nav-scroll { display: none; order: 4; flex: 1 1 100%; flex-direction: column; align-items: stretch;
    max-height: 70vh; overflow-y: auto; border-top: 1px solid var(--border); }
  .nav-scroll.open { display: flex; }
  .nav-item { border-bottom: 1px solid var(--border); display: block; }
  .nav-link { border-bottom: none; justify-content: space-between; padding: 0.75rem 0.5rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-top: none; display: none; background: var(--alt); min-width: 0; }
  .dropdown.flip { right: auto; }
  .nav-item.open .dropdown { display: block; }
}
@media (max-width: 520px) { main { padding: 1rem; } .tagline { font-size: 0.8rem; } }
