/* ThreatIntels Journal — light editorial theme */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #102838;
  --muted: #516778;
  --stroke: #dfe9ed;
  --teal: #087c7b;
  --teal-deep: #075e62;
  --soft: #f5faf9;
  --code-surface: #f4f7f9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: #03494c; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #45bfb0;
  outline-offset: 3px;
}
header {
  background: #ffffff;
  border-bottom: 1px solid var(--stroke);
}
.nav {
  max-width: 1140px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 20px 24px;
  min-height: 76px;
  flex-wrap: wrap;
}
.logo {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.14rem;
  font-weight: 850;
  letter-spacing: -.035em;
}
.logo b { color: var(--teal); }
.nav .navlinks {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.navlinks a {
  color: #405568;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}
.navlinks a:hover { color: var(--teal); }

.hero {
  background:
    radial-gradient(circle at 91% 8%, rgba(8,124,123,.08), transparent 34%),
    linear-gradient(100deg, #ffffff 30%, #f8fcfb 100%);
  border-bottom: 1px solid var(--stroke);
  padding: 85px max(24px, calc((100vw - 1100px)/2)) 88px;
}
.kicker {
  color: var(--teal-deep);
  font-size: .77rem;
  letter-spacing: .13em;
  font-weight: 850;
  text-transform: uppercase;
}
.hero h1 {
  color: #122d3b;
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  line-height: 1.13;
  letter-spacing: -.055em;
  max-width: 930px;
  margin: 18px 0 24px;
  text-wrap: balance;
}
.hero p {
  color: #3e596b;
  max-width: 800px;
  font-size: 1.16rem;
  line-height: 1.85;
}
.byline { color: #607584; font-size: .88rem; margin-top: 24px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 50px 24px; }
.wrap > h2 { color: #143042; font-size: 1.85rem; letter-spacing: -.035em; margin: 21px 0 23px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 20px; }
.card {
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(23, 53, 70, .035);
}
.card h2 { font-size: 1.4rem; line-height: 1.34; letter-spacing: -.025em; margin: 18px 0; }
.card h2 a { color: #163545; text-decoration: none; }
.card h2 a:hover { color: var(--teal); }
.card p { color: var(--muted); }
.card > a:last-child { font-weight: 750; }
.pill {
  display: inline-block;
  color: #086f6a;
  background: #eef9f6;
  border: 1px solid #c5e8e1;
  border-radius: 99px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 700;
}
.small { font-size: .85rem; color: #6d7e8a !important; }

.site {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 26px;
  align-items: start;
  padding: 44px 24px;
}
.article {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 48px);
}
.article h2 {
  color: #123044;
  font-size: 1.52rem;
  line-height: 1.28;
  letter-spacing: -.025em;
  margin: 38px 0 15px;
}
.article h3 { color: #183647; font-size: 1.14rem; margin: 25px 0 10px; }
.article p, .article li { color: #314a5d; }
.article li + li { margin-top: 7px; }
.article ol, .article ul { padding-left: 25px; }
.article strong { color: #142f3f; }
.article code {
  color: #075e62;
  background: #eef6f6;
  padding: 2px 5px;
  border-radius: 4px;
  font: .91em SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.code-box {
  overflow: hidden;
  border: 1px solid #d9e5e9;
  border-radius: 9px;
  margin: 24px 0;
}
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eaf1f4;
  padding: 9px 14px;
  color: #385468;
  font-size: .78rem;
  font-weight: 750;
}
.copy {
  color: #086f6a;
  background: #ffffff;
  border: 1px solid #bad6d3;
  border-radius: 5px;
  padding: 4px 11px;
  cursor: pointer;
  font: inherit;
}
.copy:hover { background: #e9f8f4; }
pre {
  background: var(--code-surface);
  color: #223d4d;
  padding: 19px;
  margin: 0;
  overflow: auto;
  font-size: .91rem;
  line-height: 1.65;
}
pre code { color: inherit !important; background: none !important; padding: 0 !important; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; }
th, td { border-bottom: 1px solid #e0e8ec; padding: 12px 10px; text-align: left; vertical-align: top; }
th { background: #f0f7f7; color: #15595a; font-weight: 750; }
td { color: #344c5c; }

.aside {
  background: #f9fcfb;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 22px;
  position: sticky;
  top: 22px;
}
.aside > strong { color: #17374a; font-size: .81rem; letter-spacing: .08em; }
.aside p { font-size: .79rem; color: #687e8a; }
.aside a {
  display: block;
  color: #486172;
  padding: 8px 0;
  border-bottom: 1px solid #e4edf0;
  text-decoration: none;
  font-size: .87rem;
  line-height: 1.5;
}
.aside a:hover { color: var(--teal); }
.notice {
  background: #eff9f7;
  border-left: 4px solid var(--teal);
  border-radius: 7px;
  padding: 16px 20px;
  margin: 0 0 30px;
  color: #325663;
}
.notice strong { color: #16494b; }
footer {
  background: #f9fbfb;
  border-top: 1px solid var(--stroke);
  padding: 30px 16px;
  margin-top: 40px;
  text-align: center;
  color: #697e89;
  font-size: .85rem;
}
@media (max-width: 780px) {
  .site { grid-template-columns: 1fr; gap: 20px; }
  .aside { position: static; order: -1; }
  .hero { padding: 54px 24px 60px; }
  .nav { gap: 10px; }
  .nav .navlinks { gap: 13px; }
  .article { padding: 24px; }
  .wrap { padding: 42px 24px; }
  .hero h1 { font-size: clamp(2.3rem, 9vw, 3.35rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* Magazine-style journal homepage and article typography */
.logo span { color: #526a78; font-weight: 650; letter-spacing: -.015em; }
.hero.home-hero { padding-top: 68px; padding-bottom: 70px; }
.home-hero h1 { font-size: clamp(2.65rem, 5.9vw, 4.65rem); max-width: 870px; }
.home-hero p { max-width: 810px; margin: 0; }
.hero-inner { width: 100%; max-width: 1100px; margin: 0 auto; }
.hero-author {
  margin-top: 34px; padding-top: 24px;
  border-top: 1px solid #dbe9e8;
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}
.author-credit { display: inline-flex; align-items: center; gap: 12px; }
.author-mark {
  width: 43px; height: 43px;
  flex: 0 0 auto; display: inline-grid; place-items: center;
  border-radius: 50%;
  background: #e2f3ef; border: 1px solid #b6d8d1;
  color: #066b68; font-size: .92rem; font-weight: 850; letter-spacing: -.03em;
}
.author-details { display: flex; flex-direction: column; line-height: 1.4; }
.author-details strong { font-size: .99rem; color: #193746; font-weight: 800; }
.author-details small { color: #5a7181; font-size: .78rem; margin-top: 2px; }
.hero-areas { display: flex; flex-direction: column; gap: 3px; }
.hero-areas small { font-size: .7rem; font-weight: 800; letter-spacing: .09em; color: #087c7b; }
.hero-areas span { color: #516c7a; font-size: .91rem; }
.journal-wrap { padding-top: 55px; padding-bottom: 68px; }
.journal-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.journal-head h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); letter-spacing: -.04em; color: #133244; margin: 10px 0 8px; line-height: 1.2; }
.journal-head p { margin: 0; color: #587080; max-width: 640px; }
.search-box {
  border: 1px solid #d3e0e6; background: #fbfdfd;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; border-radius: 8px;
  min-width: min(100%, 290px); color: #627988;
}
.search-box:focus-within { outline: 2px solid #8dcfc5; outline-offset: 2px; }
.search-box svg { width: 18px; height: 18px; flex: 0 0 auto; }
.search-box input { border: 0; background: transparent; font: inherit; min-width: 0; width: 100%; color: #173647; outline: 0; font-size: .92rem; }
.search-box input::placeholder { color: #82939e; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.post-group { margin-top: 50px; }
.post-group[hidden], .article-card[hidden] { display: none !important; }
.section-title { border-bottom: 1px solid #e3ebee; padding-bottom: 17px; margin-bottom: 22px; }
.section-title h2 { font-size: 1.55rem; letter-spacing: -.03em; color: #173b4e; margin: 10px 0 4px; }
.section-title p { color: #5e7582; margin: 0; }
.journal-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.article-card { display: flex; flex-direction: column; min-height: 305px; padding: 29px; transition: transform .15s ease, box-shadow .15s ease; }
.article-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(24, 55, 66, .09); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-readtime { color: #6e8290; font-size: .79rem; }
.article-card h3 { color: #17394b; font-size: 1.39rem; line-height: 1.32; letter-spacing: -.028em; margin: 19px 0 11px; }
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h3 a:hover { color: #076f70; }
.article-card p { margin: 0 0 22px; line-height: 1.65; font-size: .94rem; flex: 1; }
.card-bottom { display: flex; flex-wrap: wrap; gap: 2px 16px; border-top: 1px solid #e9eff1; padding-top: 15px; color: #6b8090; font-size: .78rem; line-height: 1.5; }
.card-cta { display: inline-block; align-self: flex-start; margin-top: 16px; color: #06716d; font-size: .9rem; font-weight: 800; text-decoration: none; }
.card-cta:hover { text-decoration: underline; }
.featured-article { background: linear-gradient(140deg, #f5fbf9 0%, #fff 72%); border-color: #cde8e1; }
.archive-note { margin-top: 48px; border-radius: 9px; padding: 23px 26px; background: #f3faf9; border: 1px solid #d5e9e5; }
.archive-note strong { color: #155658; }
.archive-note p { margin: 5px 0 0; color: #4c6875; }
.no-results { color: #4c6875; background: #f7faf9; border-radius: 8px; padding: 20px; }
footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-left: max(24px, calc((100vw - 1100px)/2)); padding-right: max(24px, calc((100vw - 1100px)/2)); }
.footer-split { color: #637986; }
.article-hero { padding-top: 48px; padding-bottom: 54px; }
.backlink { display: inline-flex; text-decoration: none; font-size: .85rem; font-weight: 750; color: #0b7773; margin-bottom: 20px; }
.article-hero h1 { font-size: clamp(2.2rem, 4.9vw, 3.7rem); max-width: 1040px; line-height: 1.16; }
.article-hero p { font-size: 1.06rem; line-height: 1.75; }
.article-author-row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 27px; padding-top: 20px; border-top: 1px solid #deebe9; }
.article-dates { display: flex; gap: 6px 18px; flex-wrap: wrap; color: #597281; font-size: .8rem; }
.article-dates span:not(:last-child)::after { content: "·"; padding-left: 18px; color: #8a9ca4; }
.article { line-height: 1.83; }
.article p + p { margin-top: 18px; }
.article h2 { scroll-margin-top: 18px; }
.article h3 { scroll-margin-top: 18px; }
.history-notice { margin-bottom: 30px; background: #f1f9f8; border-left: 4px solid #188d84; border-radius: 8px; padding: 16px 19px; }
.history-notice strong { color: #145e5b; font-size: .87rem; }
.history-notice p { color: #44646c; margin: 5px 0 0; font-size: .87rem; line-height: 1.6; }
.publication-note { color: #5e7583 !important; border-top: 1px solid #e1ebed; margin-top: 40px !important; padding-top: 17px; font-size: .82rem; }
.end-nav { border-top: 1px solid #e3eaee; padding-top: 22px; margin-top: 32px; font-size: .93rem; font-weight: 750; }
.aside { max-height: calc(100vh - 42px); overflow-y: auto; }
@media (max-width: 780px) {
  .journal-card-grid { grid-template-columns: 1fr; }
  .hero.home-hero { padding-top: 52px; padding-bottom: 48px; }
  .hero-author { gap: 18px; margin-top: 23px; }
  .hero-areas { width: 100%; }
  .article-hero { padding-top: 36px; padding-bottom: 40px; }
  .article-dates span:not(:last-child)::after { padding-left: 10px; }
  .article-dates { gap: 6px 10px; }
  .article-card { min-height: auto; }
  .site .aside { max-height: unset; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .article-card { transition: none; } .article-card:hover { transform: none; } }

/* Source screenshots: cropped and irreversibly redacted before publication. */
.evidence-shot {
  margin: 29px 0 32px;
  max-width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e9ed;
  background: #fbfdfd;
}
.evidence-shot a:has(img) { display: block; }
.evidence-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 660px;
  object-fit: contain;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  background: #fff;
}
.evidence-shot figcaption {
  margin: 11px 6px 3px;
  color: #566e7b;
  font-size: .83rem;
  line-height: 1.6;
}
.evidence-shot figcaption strong { color: #1d4352; }
.evidence-shot figcaption a { margin-left: 8px; white-space: nowrap; }
@media(max-width: 780px) {
  .evidence-shot { padding: 7px; margin: 24px 0; }
  .evidence-shot img { max-height: 520px; }
}

/* Guide-first editorial structure: compact, neutral, readable at mobile widths. */
.guide-quickstart {
  margin: 0 0 34px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--stroke);
  color: var(--ink);
}
.guide-quickstart .guide-eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .11em;
  color: var(--muted);
  margin-bottom: 10px;
}
.guide-quickstart h2 {
  margin: 0 0 7px;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #173b4e;
}
.guide-quickstart > p { margin: 0 0 15px; line-height: 1.7; }
.guide-quickstart h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 16px 0 8px;
  color: #173b4e;
}
.guide-quickstart ul { margin: 0 0 16px; padding-left: 1.25rem; }
.guide-quickstart li { margin: 5px 0; line-height: 1.55; }
.guide-quickstart .guide-verify { margin-bottom: 0; }
.article p.evidence-context {
  border-left: 2px solid var(--stroke);
  padding-left: 14px;
  color: var(--muted);
  font-size: .87rem;
}
@media (max-width: 700px) {
  .guide-quickstart h2 { font-size: 1.27rem; }
  .guide-quickstart { margin-bottom: 26px; }
}

/* Chronological guide library: categories are filters, not separate sections. */
.guide-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 12px;
  padding: 0;
}
.guide-filter {
  appearance: none;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 9px 15px;
  font: inherit;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.guide-filter:hover {
  color: var(--teal-deep);
  border-color: #78aaa5;
  background: var(--soft);
}
.guide-filter[aria-pressed="true"],
.guide-filter[aria-pressed="true"]:hover {
  color: #fff;
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}
.guide-filter:focus-visible {
  outline: 3px solid #45bfb0;
  outline-offset: 3px;
}
.guide-library-meta {
  font-size: .84rem;
  color: var(--muted);
  margin: 0 0 20px;
}
.guide-list { align-items: stretch; }
/* Grid display properties may override the browser's default [hidden] rule. */
.guide-list .article-card[hidden] { display: none !important; }
@media (max-width: 700px) {
  .guide-topic-nav { gap: 7px; margin: 20px 0 10px; }
  .guide-filter { font-size: .78rem; padding: 8px 12px; }
  .guide-library-meta { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-filter { transition: none; }
}

/* Homepage: compact editorial intro and a usable featured-guide showcase. */
.home-hero.hero {
  padding: clamp(36px, 4vw, 55px) 24px clamp(40px, 4.5vw, 59px);
  background: linear-gradient(115deg, #f7fbfa 0%, #fff 59%, #f4faf9 100%);
  border-bottom: 1px solid #e0ebeb;
}
.home-hero .hero-inner { max-width: 1100px; }
.home-hero .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(330px, .86fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.home-hero .hero-copy { min-width: 0; }
.home-hero .hero-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #08716d;
  font-size: .72rem;
  letter-spacing: .1em;
}
.home-hero .hero-copy .kicker::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0f9d8c;
}
.home-hero .hero-copy h1 {
  max-width: 610px;
  margin: 15px 0 18px;
  color: #112e3b;
  font-size: clamp(2.6rem, 4.05vw, 3.65rem);
  letter-spacing: -.05em;
  line-height: 1.09;
}
.home-hero .hero-copy > p {
  max-width: 525px;
  margin: 0;
  color: #486473;
  font-size: 1rem;
  line-height: 1.75;
}
.home-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 19px;
  margin-top: 25px;
}
.home-hero .hero-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 44px;
  padding: 11px 18px;
  background: #087b78;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.45;
  transition: background-color .18s ease, transform .18s ease;
}
.home-hero .hero-primary-link:hover {
  background: #075d60;
  color: #fff;
  transform: translateY(-1px);
}
.home-hero .hero-topic-line {
  color: #6b808b;
  font-size: .79rem;
  font-weight: 650;
  letter-spacing: .005em;
}
.home-hero .hero-feature {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 302px;
  padding: 25px 28px 24px;
  overflow: hidden;
  border: 1px solid #144e54;
  border-radius: 15px;
  background: linear-gradient(140deg, #153c47 0%, #102b3c 72%, #123440 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(14, 44, 53, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-hero .hero-feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  right: -95px;
  top: -105px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 204, 188, .25), rgba(83, 204, 188, 0) 72%);
  pointer-events: none;
}
.home-hero .hero-feature:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(14, 44, 53, .18);
}
.home-hero .feature-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #a3e5da;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.home-hero .feature-symbol {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(190, 233, 229, .36);
  border-radius: 50%;
  color: #cceee9;
  font-size: 1.1rem;
  line-height: 1;
}
.home-hero .feature-category {
  display: block;
  margin-top: 28px;
  color: #9bbbc2;
  font-size: .66rem;
  letter-spacing: .075em;
  font-weight: 750;
}
.home-hero .feature-title {
  display: block;
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(1.25rem, 1.8vw, 1.54rem);
  letter-spacing: -.035em;
  line-height: 1.27;
  font-weight: 780;
}
.home-hero .feature-copy {
  display: block;
  color: #c0d6da;
  font-size: .85rem;
  line-height: 1.65;
}
.home-hero .feature-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 21px;
  padding: 16px 0 15px;
  border-top: 1px solid rgba(199, 229, 231, .19);
  color: #82c3be;
  font-size: .75rem;
  letter-spacing: .01em;
}
.home-hero .feature-sequence b {
  color: #e0f2f0;
  font-size: .78rem;
  font-weight: 650;
  margin-left: 3px;
}
.home-hero .feature-link {
  display: block;
  color: #a2e6d8;
  font-size: .88rem;
  font-weight: 750;
}
.home-hero .feature-link span { margin-left: 6px; }
#guide-library { scroll-margin-top: 22px; }
@media (max-width: 850px) {
  .home-hero .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-hero .hero-feature { min-height: auto; }
  .home-hero .hero-copy h1 { font-size: clamp(2.4rem, 6vw, 3.3rem); }
}
@media (max-width: 600px) {
  .home-hero.hero { padding: 33px 20px 35px; }
  .home-hero .hero-copy h1 {
    margin: 12px 0 15px;
    font-size: clamp(2.2rem, 9vw, 2.8rem);
  }
  .home-hero .hero-copy > p { font-size: .95rem; line-height: 1.65; }
  .home-hero .hero-actions { margin-top: 20px; gap: 10px 13px; }
  .home-hero .hero-feature { padding: 21px; border-radius: 12px; }
  .home-hero .feature-category { margin-top: 19px; }
  .home-hero .feature-sequence { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .hero-primary-link,
  .home-hero .hero-feature { transition: none; }
  .home-hero .hero-primary-link:hover,
  .home-hero .hero-feature:hover { transform: none; }
}


/* Midnight editorial theme — keep screenshots unfiltered and code readable. */
:root{color-scheme:dark;--bg:#0b111b;--surface:#111c29;--ink:#edf3f8;--muted:#a2b4c5;--stroke:#2a3a4c;--teal:#5ed7c7;--teal-deep:#80e3d6;--soft:#142434;--code-surface:#0a1420}
body{background:var(--bg);color:var(--ink)}
header,footer{background:#0d1622;border-color:var(--stroke)}
.nav{min-height:58px;padding-block:13px}
.logo,.logo:hover,.author-details strong{color:var(--ink)}
.logo span,.navlinks a,.author-details small,.hero-areas span,.byline,.article-dates,.card-readtime,.card-bottom,.footer-split,footer,.small{color:var(--muted)!important}
a,a:hover,.navlinks a:hover,.backlink,.card-cta,.article-card h3 a:hover{color:var(--teal-deep)}
.hero,.article-hero,.home-hero.hero{background:radial-gradient(ellipse at 85% 5%,#123b40 0%,transparent 52%),linear-gradient(115deg,#0e1825,#101c2b);border-color:var(--stroke);padding-block:30px}
.hero h1,.article-hero h1{color:var(--ink);font-size:clamp(1.85rem,3.4vw,2.85rem);margin:10px 0 12px;line-height:1.17}
.hero p,.article-hero p,.home-hero .hero-copy>p{color:#b5c5d3;line-height:1.65;margin:0;font-size:1rem}
.kicker,.home-hero .hero-copy .kicker,.hero-areas small{color:var(--teal)}
.backlink{margin-bottom:10px}.article-author-row{margin-top:17px;padding-top:12px;border-color:var(--stroke);gap:10px 20px}
.author-mark{background:#12353b;border-color:#2b5b60;color:var(--teal)}
.author-mark{width:36px;height:36px}
.site{padding-block:28px}.article{background:var(--surface);border-color:var(--stroke);box-shadow:0 10px 30px #0002}
.article h2,.article h3,.article strong,.guide-quickstart h2,.guide-quickstart h3,.wrap>h2,.section-title h2,.journal-head h2,.article-card h3,.card h2 a{color:var(--ink)}
.article p,.article li,.article td{color:#cad6e1}
.article code{background:#192b39;color:#9ae8dc}
.code-box{border-color:#2a4052}.code-head{background:#182837;color:#b8cad8}
.copy,.guide-filter{background:#152432;color:var(--teal-deep);border-color:#354c5b}
.copy:hover,.guide-filter:hover{background:#203a46;color:var(--teal-deep)}
pre{background:var(--code-surface);color:#d8e7ee}
th,td{border-color:var(--stroke)}th{background:#1a303d;color:#9ce6d8}
.aside{background:#111c29;border-color:var(--stroke)}.aside>strong{color:var(--ink)}.aside a,.aside p{color:var(--muted);border-color:var(--stroke)}
.aside a:hover{color:var(--teal)}
.card,.featured-article,.archive-note,.no-results,.journal-head{background:var(--surface);border-color:var(--stroke)}
.card{box-shadow:0 6px 18px #0002}.card p,.journal-head p,.section-title p,.archive-note p,.no-results{color:var(--muted)}
.article-card:hover{box-shadow:0 10px 30px #0005;border-color:#3b636d}.card-bottom,.section-title,.end-nav,.publication-note,.hero-author{border-color:var(--stroke)}
.pill{background:#16333a;color:#91e2d6;border-color:#28555b}
.search-box{background:#101a28;border-color:#304456;color:var(--muted)}.search-box input{color:var(--ink)}
.guide-filter[aria-pressed=true],.guide-filter[aria-pressed=true]:hover{background:#5ed7c7;color:#09272b;border-color:#5ed7c7}
.notice,.history-notice{background:#142c34;color:#cad6e1}.notice strong,.history-notice strong,.archive-note strong{color:var(--teal-deep)}.history-notice p{color:var(--muted)}
.evidence-shot{background:#0c1620;border-color:var(--stroke)}.evidence-shot img{background:#fff;border-color:#465563;filter:none}.evidence-shot figcaption,.evidence-shot figcaption strong{color:#b7c9d8}
.article input,.article textarea{background:#0d1824;color:var(--ink);border-color:#405466!important}
.risk-intro{border-left:3px solid var(--teal);padding:4px 0 4px 18px;margin:0 0 30px}
.article .risk-intro h2{color:var(--teal-deep);margin:0 0 9px;font-size:1.35rem}
.risk-intro p{margin:0 0 10px}.risk-intro p:last-child{margin-bottom:0}
.article [aria-label="Article discussion"] button{color:var(--teal-deep);background:#182c39;border:1px solid #3a5968}
.article [aria-label="Article discussion"] button[type=submit]{background:#53c8ba;color:#0a2426;border:0;font-weight:750}
.article [aria-label="Article discussion"] small{color:var(--muted)!important}
@media(max-width:780px){.hero,.article-hero{padding:22px 20px}.article{padding:22px}.site .aside{order:1}.site{padding:20px 16px}.nav{padding-inline:18px}.risk-intro{padding-left:13px}}
