/* ==================================================================
   WEBLUG — site style layer (loads last on every page)
   Carries the Weblug logo across the site:
   - a clean, light page with deep navy lettering, like "WEBLUG"
   - the logo's green → mint → cyan gradient for brand accents
   - panels drawn as browser windows: a teal title bar with three
     mint squares, like the window above the wordmark
   - the menu drawn as browser tabs; the current one joins the page
   - the green-to-cyan swoosh under the wordmark as an underline
   Section colors (section-themes.css) still drive each section.
   ================================================================== */

@font-face { font-family: "Russo One"; src: url("assets/fonts/russo-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  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; }
@font-face { font-family: "Russo One"; src: url("assets/fonts/russo-one-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --w-navy: #10294a;
  --w-navy-deep: #0a1b33;
  --w-green: #22dd33;
  --w-mint: #10e0a0;
  --w-cyan: #12dfe6;
  --w-tab: #a9c6de;                              /* the pale blue tabs in the logo */
  --brand: linear-gradient(90deg, #22dd33 0%, #10e0a0 55%, #12dfe6 100%);      /* the swoosh */
  --chrome: linear-gradient(100deg, #0b4f4f 0%, #1f8f7a 62%, #3fcf9a 100%);    /* the window's title bar */
  /* three mint squares, drawn on top of any title bar */
  --dots: linear-gradient(#35f29a, #35f29a) 14px 50% / 10px 10px no-repeat, linear-gradient(#35f29a, #35f29a) 30px 50% / 10px 10px no-repeat, linear-gradient(#35f29a, #35f29a) 46px 50% / 10px 10px no-repeat;
  --swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 40' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%2322dd33'/%3E%3Cstop offset='.55' stop-color='%2310e0a0'/%3E%3Cstop offset='1' stop-color='%2312dfe6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 40Q500 -14 1000 40Q500 18 0 40Z' fill='url(%23g)'/%3E%3C/svg%3E");
  --winmark: url("favicon.svg");

  --black: #0a1b33;                              /* dark bands are deep navy, not black */
  --char: #132a4a;
  --paper: #f2f7fa;                              /* page */
  --paper-2: #d7e3ec;                            /* rules, card borders */
  --ink: #10294a;
  --muted: #58697d;
  --head: "Russo One", "Anton", Impact, "Arial Narrow Bold", sans-serif;
}

/* ---------- page base ---------- */
body,
body[data-page="home"],
body[data-page="archive"],
body[data-page="info"] {
  background:
    linear-gradient(rgba(16, 41, 74, .035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(16, 41, 74, .035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #ffffff 0, #eef5f8 560px),
    var(--paper);
  color: var(--ink);
}
::selection { background: var(--w-mint); color: #06223a; }

/* --fill / --on-fill: label, tab and button color for the nearest section. --pop: its solid color. */
:root { --fill: var(--brand); --on-fill: #06223a; --pop: #10c98f; }
[data-theme][data-theme] { --fill: var(--red); --on-fill: var(--on); --pop: var(--red); }
[data-theme="breaking"][data-theme="breaking"] { --fill: var(--brand); --on-fill: #06223a; --pop: #10c98f; }

/* ---------- lettering: the squared face, in the logo's navy ---------- */
.mega, .label-bar, .section-head h2, .side-title h2, .side-item h3, .story h3, .story .side .big,
.gfx .g-label, .gfx .g-head, .gfx .g-words, .newsroom-bg .bg-words, .header-tag strong,
.showcase-heading h2, .showcase-lead h3, .showcase-placeholder, .site-footer h2,
.art-below h1, .art-below h2, .art-below h3, .art-below blockquote p, .art-below .timeline .what, .art-below .stat b,
.article-pagination-head h2, .article-page-link strong, .article-toc h2, .share-title, .selection-share-heading,
.prevnext strong, .aside-box h4 { font-weight: 400; font-style: normal; letter-spacing: 0; }
.label-bar { font-size: 14px; padding-top: 7px; padding-bottom: 6px; }
.label-bar.sm { font-size: 10.5px; padding-top: 5px; padding-bottom: 4px; }
.mega { line-height: 1.03; color: var(--ink); }
.hero-paper .mega, #hero .hero-paper .mega { font-size: min(56px, 9.4cqw); line-height: 1.03; }
.showcase-hero .hero-paper .mega { font-size: min(38px, 6.6cqw); line-height: 1.05; }
.article-top .mega, .article-top.has-story-art .mega { font-size: clamp(30px, 4.6vw, 62px); max-width: 20ch; line-height: 1.04; }
.article-top.has-story-art .mega { max-width: 57%; font-size: clamp(28px, 3.5vw, 48px); }
.side-title h2 { font-size: 21px; }
.side-item h3, #hero .side-item h3 { font-size: clamp(13px, 1.1vw, 15px); line-height: 1.17; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1; }
.story h3 { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.11; }
#stories .story h3 { font-size: clamp(16px, 1.55vw, 21px); }
.story .side .big, #stories .story .side .big { font-size: 15px; }
.gfx .g-label { font-size: 4cqw; }
.gfx .g-head { font-size: 6.6cqw; line-height: 1.05; max-width: 68%; }
.gfx .g-words { font-size: 10cqw; }
.gfx .g-mark { width: 30%; right: 3%; bottom: 5%; }
.newsroom-bg .bg-words { font-size: 84px; line-height: 1.06; }
.header-tag strong { font-size: 21px; }
.showcase-heading h2 { font-size: clamp(20px, 2.4vw, 28px); }
.showcase-lead h3 { font-size: clamp(15px, 1.5vw, 20px); line-height: 1.15; }
.showcase-placeholder { font-size: 16px; }
.site-footer h2 { font-size: 15px; }
.art-below h1, .art-below h2 { font-size: clamp(20px, 2.4vw, 29px); line-height: 1.13; }
.art-below h3 { font-size: 17px; }
.art-below blockquote p { font-size: clamp(17px, 1.8vw, 23px) !important; line-height: 1.25 !important; }
.art-below .timeline .what { font-size: 15px; }
.art-below .stat b { font-size: 22px; }
.art-below .chapters h3 { font-size: 16px; }
.article-pagination-head h2 { font-size: clamp(19px, 2.4vw, 27px); }
.article-page-link strong { font-size: 15px; line-height: 1.2; }
.article-toc h2 { font-size: 17px; }
.share-title, .selection-share-heading { font-size: 14px; }
.prevnext strong { font-size: 16px; }
.aside-box h4 { font-size: 18px; }
.prose > p:first-child::first-letter { font-size: 3.6em; }
@media (max-width: 760px) {
  .hero-paper .mega, #hero .hero-paper .mega { font-size: min(42px, 9.6cqw); line-height: 1.05; }
  .showcase-hero .hero-paper .mega { font-size: min(30px, 7.6cqw); }
  .article-top .mega, .article-top.has-story-art .mega { max-width: 100%; font-size: clamp(27px, 7.6vw, 44px); }
  .label-bar { font-size: 13px; }
  .site-header .header-tag strong { font-size: 13px; }
  .side-item h3, #hero .side-item h3 { font-size: 13.5px; }
  .newsroom-bg .bg-words { font-size: 58px; }
}

/* ---------- labels, chips, buttons: soft-cornered, flat ---------- */
.label-bar, .tabs button[aria-pressed="true"], .page-current { background: var(--fill); color: var(--on-fill); border-color: transparent; }
.label-bar { border-radius: 8px; box-shadow: 0 3px 0 rgba(16, 41, 74, .9); text-shadow: none; }
.label-bar.sm { border-radius: 6px; box-shadow: 0 2px 0 rgba(16, 41, 74, .9); }
.label-bar.dot::before { background: var(--on-fill); border-radius: 3px; }
.type-chip { background: var(--w-navy); border-radius: 5px; }
.type-chip.video { background: var(--w-mint); color: #06223a; }
.btn {
  background: var(--brand); color: #06223a; border-radius: 11px; box-shadow: 0 5px 0 var(--w-navy);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--w-navy); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--w-navy); }
.mega .accent { background: var(--fill); color: var(--on-fill); box-shadow: 0 .09em 0 var(--w-navy); border-radius: .14em; padding: .04em .18em .02em; }

/* ---------- top strip / ticker ---------- */
.topstrip { background: var(--w-navy-deep); }
.ticker-label { background: var(--brand); color: #06223a; }
.ticker-label::before { background: #06223a; border-radius: 3px; }
.ticker-track a:hover { color: var(--w-mint); }
.ticker-track a::after { content: "›"; color: var(--w-mint); }

/* ---------- header: a light page, section color glowing in from the right ---------- */
.site-header { position: relative; border-bottom: 0; color: var(--ink); }
.site-header.newsroom-bg {
  background:
    radial-gradient(ellipse 60% 140% at 100% 0, color-mix(in srgb, var(--red) 34%, transparent), transparent 62%),
    radial-gradient(ellipse 40% 120% at 62% 120%, rgba(18, 223, 230, .16), transparent 60%),
    linear-gradient(180deg, #ffffff, #e9f4f3);
}
.site-header.newsroom-bg::before { display: none; }           /* no halftone dots */
.site-header .bg-words { color: rgba(16, 41, 74, .045); }
.site-header::after {               /* a thin navy rule; the loading bar runs along it */
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px; z-index: 1; background: var(--w-navy); pointer-events: none; animation: none;
}
.site-header .wrap { padding-top: 16px; padding-bottom: 22px; }
.logo { transition: transform .2s; filter: none; }
.logo:hover { transform: translateY(-2px) scale(1.02); }
.logo img { height: 118px; clip-path: none; filter: none; }     /* no shadow behind the logo */
.site-header .header-tag { text-shadow: none; }
.header-tag strong { color: var(--ink); }
.site-header .header-tag span { color: var(--muted); }
/* the section symbol takes the section's color instead of white */
.site-header .section-motif {
  background: var(--red); opacity: .2; filter: none;
  -webkit-mask: var(--section-icon) center / contain no-repeat; mask: var(--section-icon) center / contain no-repeat;
}
@media (max-width: 760px) { .logo img { height: 70px; } .site-header .wrap { padding-top: 12px; padding-bottom: 18px; } }

/* ---------- navigation: browser tabs ---------- */
.navbar { background: var(--w-navy-deep); border-bottom: 0; }
.navbar .nav-links { align-items: flex-end; padding-top: 7px; gap: 3px; }
.navbar .nav-links a {
  background: rgba(169, 198, 222, .14); color: #d6e4f0; border-radius: 11px 11px 0 0; padding-top: 10px; padding-bottom: 10px;
  transition: background .15s, color .15s;
}
.navbar .nav-links a:hover { background: rgba(169, 198, 222, .3); color: #fff; }
.navbar a.active, .navbar .nav-links a.active {       /* the open tab joins the page below */
  background: #ffffff; color: var(--ink); box-shadow: inset 0 4px 0 var(--pop);
}
.section-picker { background: transparent; }
.section-picker select { border-radius: 9px; background-color: #132a4a; border: 2px solid #2c4a6e; }
.navbar.is-stuck .sticky-brand, .navbar.is-stuck .sticky-brand:hover { background: #fff; flex-basis: auto; padding: 3px 14px 3px 10px; border-radius: 0 0 12px 0; }
.navbar.is-stuck .sticky-brand img { height: 42px; clip-path: none; }
@media (max-width: 760px) { .navbar.is-stuck .sticky-brand img { max-height: 34px; } }

/* ---------- browser windows: the homepage lead, story cards, section blocks ---------- */
#hero.hero-grid {
  --hero-panel: #fff; background: #fff; border: 3px solid var(--w-navy); border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 0 -3px var(--w-tab), 0 26px 50px -30px rgba(16, 41, 74, .6);
}
#hero.hero-grid::before {           /* the window's title bar */
  content: ""; display: block; height: 34px; background: var(--dots), var(--chrome); border-bottom: 3px solid var(--w-navy);
}
#hero .hero-main { border-top: 0; }
.hero-paper, .hero-paper::before { background: #fff; }
#hero .has-art .hero-paper, .showcase-hero .has-art .hero-paper { background: none; }
#hero .hero-paper .mega a, .showcase-hero .hero-paper .mega a { text-decoration: none; transition: color .15s; }
#hero .hero-paper .mega a:hover, .showcase-hero .hero-paper .mega a:hover { color: var(--hl); text-decoration: none; }
.hero-paper .dek { color: #33475f; }
.media-card { border: 3px solid var(--w-navy); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 0 -2px var(--w-tab); background: var(--w-navy-deep); }
#hero .has-art .media-card, .showcase-hero .has-art .media-card { border: 0; border-radius: 0; box-shadow: none; overflow: visible; background: none; }
.media-card .card-bar { background: var(--dots), var(--chrome); padding-left: 68px; border-bottom-color: var(--w-navy); }
.hero-side, .hero-side::after, #hero .hero-side::before, #hero .hero-side::after { background: var(--w-navy-deep); }
.side-title h2 span { color: var(--w-mint); }
[data-theme]:not([data-theme="breaking"]) .side-title h2 span { color: var(--red-hot); }
#hero .side-title { border-bottom-color: #23405f; }
#hero .side-title h2::before { background: var(--brand); border-radius: 3px; }
.side-item, #hero .side-item { border-top-color: #23405f; }
.side-item:hover h3 { color: var(--w-mint); }
[data-theme]:not([data-theme="breaking"]) .side-item:hover h3 { color: var(--red-hot); }
.side-item .thumb, .story .thumb, .showcase-image { border-radius: 10px; }
.side-item .thumb { border: 2px solid #2c4a6e; transition: border-color .15s; }
.side-item:hover .thumb { border-color: var(--w-mint); }
.play { background: var(--brand); box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--w-navy), 0 12px 30px rgba(16, 41, 74, .5); }
.play svg { fill: #06223a; }
.side-item .thumb .play { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--w-navy); }
.story .thumb .play { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--w-navy); }

#stories .story {
  position: relative; background: #fff; border: 3px solid var(--w-navy); border-radius: 16px; overflow: hidden; padding-top: 48px;
  box-shadow: 0 8px 0 -3px var(--w-tab); transition: transform .16s, box-shadow .16s;
}
#stories .story::before {            /* title bar in the story's section color */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px; border-bottom: 3px solid var(--w-navy);
  background: linear-gradient(#fff, #fff) 14px 50% / 10px 10px no-repeat, linear-gradient(#fff, #fff) 30px 50% / 10px 10px no-repeat, linear-gradient(#fff, #fff) 46px 50% / 10px 10px no-repeat, var(--red);
}
#stories .story[data-theme="breaking"]::before, #stories .story:not([data-theme])::before { background: var(--dots), var(--chrome); }
#stories .story:hover { transform: translateY(-4px); box-shadow: 0 12px 0 -3px var(--pop); }
.story .thumb { box-shadow: none; border: 2px solid var(--w-navy); }
.story:hover .thumb { transform: none; box-shadow: none; }
.story:hover h3 { text-decoration: none; color: var(--hl); }
.story h3 { transition: color .15s; }
.story p { color: #3d5068; }
.story .side .big { color: var(--hl); }
.story .side .big::after { content: " →"; }
.empty { padding: 60px 0 56px; }
.empty::before { content: ""; display: block; width: 104px; height: 104px; margin: 0 auto 14px; background: var(--winmark) center / contain no-repeat; }
.gfx .g-label { border-radius: 5px; }

.showcase-heading {
  clip-path: none; border: 3px solid var(--w-navy); border-bottom: 0; border-radius: 16px 16px 0 0; padding: 16px 20px 13px 70px;
  background: linear-gradient(#fff, #fff) 16px 50% / 10px 10px no-repeat, linear-gradient(#fff, #fff) 32px 50% / 10px 10px no-repeat, linear-gradient(#fff, #fff) 48px 50% / 10px 10px no-repeat, var(--section-backdrop);
}
.showcase-heading::after { border-radius: 13px 13px 0 0; }
.showcase-content { border: 3px solid var(--w-navy); border-top: 0; border-radius: 0 0 16px 16px; box-shadow: 0 8px 0 -3px var(--w-tab); }
.showcase-hero { border: 3px solid var(--w-navy); border-top: 0; border-bottom: 0; background: #fff; }
.showcase-hero .hero-paper { background: #fff; }
.showcase-image { border: 2px solid var(--w-navy); transition: border-color .15s; }
.showcase-lead a:hover .showcase-image { border-color: var(--pop); }
.showcase-list a:hover, .showcase-lead a:hover h3 { text-decoration: none; }

/* ---------- headings: navy lettering, the window mark, the swoosh beneath ---------- */
.section-head { border-bottom: 0; position: relative; padding-bottom: 20px; }
.section-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13px; background: var(--swoosh) center / 100% 100% no-repeat;
}
.section-head h2 { display: inline-flex; align-items: center; gap: .22em; color: var(--ink); }
.section-head h2::before, .art-below .paper h2::before, .art-below .roe h2::before {
  content: ""; flex: none; width: 1em; height: 1em; background: var(--winmark) center / contain no-repeat;
}
.art-below .paper h2::before, .art-below .roe h2::before { display: inline-block; vertical-align: -.14em; margin-right: .26em; }
.section-head h2 span { background: var(--fill); color: var(--on-fill); border-radius: .16em; padding: .05em .2em .02em; box-shadow: 0 .09em 0 var(--w-navy); }

/* ---------- filter tabs, search, pagination ---------- */
.tabs { gap: 4px; }
.tabs button { border: 2px solid var(--w-navy); background: #fff; color: var(--ink); border-radius: 10px; }
.tabs button:hover { background: var(--w-navy); color: #fff; }
.tabs button[aria-pressed="true"] { box-shadow: 0 3px 0 var(--w-navy); border-color: var(--w-navy); }
.browse-tools input, .browse-tools select { background: #fff; border: 2px solid var(--w-navy); border-radius: 999px; padding-left: 16px; }   /* an address bar */
.browse-tools input:focus, .browse-tools select:focus { outline: 0; border-color: #10c98f; box-shadow: 0 0 0 3px rgba(16, 224, 160, .28); }
.page-links a, .page-current { border: 2px solid var(--w-navy); background: #fff; border-radius: 10px; color: var(--ink); }
.page-links a:hover, .page-links a:focus-visible { background: var(--w-navy); color: #fff; }
.page-current { background: var(--fill); color: var(--on-fill); box-shadow: 0 3px 0 var(--w-navy); }

/* ---------- footer ---------- */
.torn-top-dark { clip-path: none; height: 30px; margin-top: 70px; margin-bottom: 0; background: var(--swoosh) center bottom / 100% 100% no-repeat; }
.site-footer { margin-top: 0; background: var(--w-navy-deep); position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; right: -40px; bottom: -80px; width: 380px; height: 380px; opacity: .08; pointer-events: none;
  background: var(--winmark) center / contain no-repeat;
}
.site-footer .wrap { position: relative; }
.site-footer .footer-brand img { height: 96px; background: #fff; border-radius: 14px; padding: 8px 14px; }
.site-footer h2 { display: flex; align-items: center; gap: 9px; }
.site-footer h2::after { content: ""; flex: 0 0 34px; height: 5px; border-radius: 3px; background: var(--brand); }
.site-footer .footer-links a:hover { color: var(--w-mint); }
.site-footer .footer-site-link { border-radius: 12px; }
.site-footer .footer-site-link:hover { border-color: var(--w-mint); }
.site-footer .footer-site-link:hover .footer-site-copy strong { color: var(--w-mint); }
.footer-strip { height: 7px; background: var(--brand); }

/* ---------- article pages ---------- */
body[data-page="archive"] .article-top { background: linear-gradient(180deg, #ffffff, #eaf3f6); }
.byline .sep { background: var(--brand); }
.article-top .story-paper-art::after,
.article-top.has-thumbnail-background .story-paper-art::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .86) 44%, rgba(255, 255, 255, .1) 80%);
}
@media (max-width: 760px) { .article-top.has-thumbnail-background .story-paper-art::after { background: rgba(255, 255, 255, .84); } }
.art-below .paper, .art-below .roe,
body[data-page="info"] .art-below .paper,
body[data-page="archive"] .article-layout .art-below > .paper,
body[data-page="archive"] .article-layout .art-below > .roe {
  background: #fff; border: 3px solid var(--w-navy); border-top: 9px solid var(--pop); border-radius: 16px; box-shadow: 0 8px 0 -3px var(--w-tab);
}
body[data-page="archive"] .article-layout .art-below > .paper + .paper { margin-top: 22px; }
.art-below .paper a, .art-below .roe a { color: var(--hl); }
.art-below blockquote { border-left: 0; padding-left: 28px; position: relative; }
.art-below blockquote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; border-radius: 5px; background: var(--fill); }
.art-below figure img, .art-below .roe-photo img { border: 2px solid var(--w-navy); border-radius: 12px; }
.art-below .video-section { border: 3px solid var(--w-navy); border-radius: 16px; box-shadow: 0 8px 0 -3px var(--pop); overflow: hidden; background: var(--w-navy-deep); }
.art-below .stat { border: 2px solid var(--w-navy); border-radius: 12px; box-shadow: 0 4px 0 var(--pop); }
.art-below .stat b { color: var(--hl); }
body[data-page="archive"] .article-toc { background: var(--w-navy-deep); border: 3px solid var(--w-navy-deep); border-radius: 16px; box-shadow: 0 8px 0 -3px var(--w-tab); }
body[data-page="archive"] .article-toc nav ol a[aria-current="location"] { border-color: var(--pop); }
body[data-page="archive"] .article-pagination { background: #fff; border: 3px solid var(--w-navy); border-radius: 16px; padding: 24px; }
.article-page-link { border: 2px solid var(--w-navy); border-radius: 12px; box-shadow: 0 5px 0 -2px var(--w-tab); transition: transform .15s, box-shadow .15s; }
.article-page-link:hover { transform: translateY(-2px); box-shadow: 0 7px 0 -2px var(--pop); }
.aside-box { border: 3px solid var(--w-navy); border-radius: 16px; }
.prevnext a { border-radius: 12px; }
.selection-share { border-radius: 14px; border-top-color: #10c98f; }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #10c98f; outline-offset: 3px; }
.navbar a:focus-visible, .site-footer a:focus-visible, .hero-side a:focus-visible { outline-color: #fff; }

/* ==================================================================
   BROWSING — the header behaves like a page being used. A pointer
   glides between spots and clicks (a ring spreads at each click), a
   loading bar fills along the bottom rule, and a text cursor blinks
   after the section name. The markup is the .web-fx block in
   header.html.
   ================================================================== */
.web-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.web-fx::after {                            /* loading bar on the bottom rule */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 2; transform-origin: 0 50%;
  background: var(--brand); animation: w-load 5s cubic-bezier(.3, 0, .2, 1) infinite;
}
@keyframes w-load { 0% { transform: scaleX(0); opacity: 1; } 35% { transform: scaleX(.46); } 55% { transform: scaleX(.62); } 82% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.web-pointer {
  position: absolute; left: 0; top: 0; width: 26px; height: 36px; opacity: .92;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 36'%3E%3Cpath d='M3 3v25l6.800-6 4.400 10.500 4.600-1.900-4.400-10.300H23z' fill='%2310294a' stroke='%23fff' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: w-move 16s cubic-bezier(.5, 0, .25, 1) infinite;
}
@keyframes w-move {
  0%, 100% { transform: translate(40vw, 96px); }
  16%, 22% { transform: translate(48vw, 34px); }
  40%, 46% { transform: translate(66vw, 84px); }
  64%, 70% { transform: translate(84vw, 28px); }
  86% { transform: translate(58vw, 110px); }
}
.web-pointer::after {                       /* the click */
  content: ""; position: absolute; left: -17px; top: -17px; width: 40px; height: 40px; border-radius: 50%; opacity: 0;
  border: 3px solid #10c98f; animation: w-click 16s linear infinite;
}
@keyframes w-click {
  0%, 16.500% { transform: scale(.2); opacity: 0; } 17% { opacity: .95; } 21%, 40.500% { transform: scale(1.25); opacity: 0; }
  40.600% { transform: scale(.2); opacity: 0; } 41% { opacity: .95; } 45%, 64.500% { transform: scale(1.25); opacity: 0; }
  64.600% { transform: scale(.2); opacity: 0; } 65% { opacity: .95; } 69%, 100% { transform: scale(1.25); opacity: 0; }
}
.header-tag strong::after {                 /* text cursor */
  content: ""; display: inline-block; width: .12em; height: .95em; margin-left: .14em; vertical-align: -.1em; background: #10c98f;
  animation: w-caret 1.1s steps(2, jump-none) infinite;
}
@keyframes w-caret { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 760px) { .web-pointer { width: 20px; height: 28px; animation-name: w-move-sm; } }
@keyframes w-move-sm {
  0%, 100% { transform: translate(52vw, 64px); }
  16%, 22% { transform: translate(60vw, 18px); }
  40%, 46% { transform: translate(78vw, 58px); }
  64%, 70% { transform: translate(88vw, 16px); }
  86% { transform: translate(66vw, 74px); }
}
@media (prefers-reduced-motion: reduce) {
  .web-pointer, .web-fx::after { display: none; }
  .header-tag strong::after { animation: none; }
  .logo, #stories .story, .article-page-link, .btn { transition: none; }
  .logo:hover, #stories .story:hover, .btn:hover { transform: none; }
}
