/* ============================================================
   ZeroDayFeed — "Terminal"
   Light security-news editorial theme (navy + signal orange)
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #f6f8fa;
  --bg-2:      #eef2f6;
  --surface:   #ffffff;
  --surface-2: #f1f5f9;
  --border:    rgba(15, 23, 42, 0.12);
  --border-2:  rgba(15, 23, 42, 0.24);

  /* Ink */
  --text:   #0f172a;
  --text-2: #334155;
  --muted:  #64748b;

  /* Accent — navy ink + signal orange */
  --accent:      #C2410C;
  --accent-soft: #9A3412;
  --accent-deep: #0f172a;
  --accent-2:      #C2410C;
  --accent-2-deep: #9A3412;
  --accent-tint:   #FFEDD5;
  --glow: 0 0 0 1px rgba(234,88,12,.35), 0 0 18px -6px rgba(234,88,12,.45);

  /* Category spectrum */
  --c-breaches:   #b91c1c;
  --c-zero-days:  #be123c;
  --c-ransomware: #7c3aed;
  --c-patches:    #15803d;
  --c-policy:     #1d4ed8;
  --c-industry:   #0f766e;

  /* Type */
  --font-display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1180px;
  --radius: 10px;
  --shadow: 0 14px 38px -22px rgba(15, 23, 42, .35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Faint blueprint grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }

::selection { background: rgba(234,88,12,.3); color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  padding: .68rem 1.25rem; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(234,88,12,.7);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-2-deep); color: #fff; box-shadow: 0 12px 28px -10px rgba(234,88,12,.85); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 2px solid var(--accent-deep);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  height: 80px;
}
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); white-space: nowrap; flex: none; }
.logo-img { display: block; height: 60px; width: auto; }
@media (max-width: 520px) { .logo-img { height: 46px; } }

.site-nav { display: flex; gap: .2rem; margin-left: .75rem; }
.site-nav a {
  white-space: nowrap;
  color: var(--text-2); font-weight: 600; font-size: .88rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1rem;
  padding: .45rem .65rem; border-radius: 6px; transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--accent-deep); background: rgba(15,23,42,.08); }

.header-search {
  margin-left: auto; display: flex; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 0 .35rem 0 .6rem; height: 40px;
  transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within { border-color: var(--border-2); box-shadow: var(--glow); }
.header-search-btn { background: none; border: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0 .25rem; }
.header-search input {
  background: none; border: none; outline: none; color: var(--text);
  font-family: var(--font-body); font-size: .88rem; width: 130px; padding: 0 .4rem;
}
.header-search input::placeholder { color: var(--muted); }

.nav-cta { font-size: .85rem; padding: .55rem 1.05rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; padding: 1rem 24px 1.5rem; gap: .25rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.mobile-menu a { color: var(--text-2); padding: .65rem .25rem; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu-cta { color: var(--accent-2) !important; font-weight: 600; }
.mobile-search { display: flex; gap: .5rem; margin-bottom: .75rem; }
.mobile-search input { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: .6rem .8rem; outline: none; }

/* ---------- Flash ---------- */
.flash-wrap { max-width: var(--maxw); margin: 1rem auto 0; padding: 0 24px; }
.flash { padding: .8rem 1.1rem; border-radius: 10px; margin-bottom: .5rem; font-size: .92rem; border: 1px solid var(--border-2); }
.flash-success { background: rgba(234,88,12,.08); border-color: rgba(234,88,12,.4); color: #1f5c23; }
.flash-error { background: rgba(179,50,46,.08); border-color: rgba(179,50,46,.4); color: #8f2723; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -200px; top: -260px; width: 740px; height: 740px;
  background: radial-gradient(circle, rgba(234,88,12,.12), rgba(15,23,42,.07) 45%, transparent 70%);
  filter: blur(10px); pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 3.5rem; align-items: center; }
.kicker {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2-deep); display: inline-block; margin-bottom: 1.1rem;
  padding: .35rem .7rem; border: 1px solid rgba(234,88,12,.4); border-radius: 4px;
  background: rgba(234,88,12,.07);
}
.hero-left h1 {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(2.8rem, 6.5vw, 4.8rem); line-height: .98;
  letter-spacing: -.01em; margin: 0 0 1.2rem; text-transform: uppercase;
  color: var(--accent-deep);
}
.lede { font-size: 1.18rem; color: var(--text-2); max-width: 38ch; margin: 0 0 1.8rem; line-height: 1.6; }

.signup-form { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 440px; }
.signup-form input[type=email] {
  flex: 1 1 220px; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 6px; color: var(--text); padding: .72rem 1.1rem; font-size: .95rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.signup-form input[type=email]:focus { border-color: var(--accent-soft); box-shadow: var(--glow); }
.signup-form input::placeholder { color: var(--muted); }
.hero-meta { font-size: .85rem; margin: .9rem 0 1.6rem; font-family: var(--font-mono); letter-spacing: .02em; }

.hero-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  font-size: .82rem; color: var(--text-2); padding: .4rem .85rem; border-radius: 4px;
  border: 1px solid var(--border); background: var(--surface); transition: .2s;
}
.pill:hover { color: var(--accent-deep); border-color: var(--border-2); transform: translateY(-1px); }

/* Hero latest panel */
.hero-right { position: relative; z-index: 1; }
.hero-latest-panel {
  background: var(--surface);
  border: 1px solid var(--border); border-top: 3px solid var(--accent-2);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}
.hero-latest-label {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-2-deep); display: flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem;
}
.hero-latest-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.3 } }
.hero-latest-list { list-style: none; margin: 0; padding: 0; }
.hero-latest-item { padding: .85rem 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .25rem; }
.hero-latest-item:first-child { border-top: none; padding-top: 0; }
.hero-latest-cat { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft); }
.hero-latest-title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.22; color: var(--text); font-weight: 600; }
.hero-latest-title:hover { color: var(--accent-soft); }
.hero-latest-time { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.hero-latest-more { display: inline-block; margin-top: 1rem; font-size: .85rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-eyebrow {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2-deep); display: block; margin-bottom: 1.25rem;
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: .01em; text-transform: uppercase; margin: 0; color: var(--accent-deep); }
.section-head h2::before { content: "// "; color: var(--accent-2); }
.link-arrow { font-size: .88rem; font-weight: 600; color: var(--accent); white-space: nowrap; transition: transform .2s; }
.link-arrow:hover { transform: translateX(3px); }

/* ---------- Featured ---------- */
.featured-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); transition: border-color .3s, transform .3s;
}
.featured-card:hover { border-color: var(--border-2); }
.featured-image-link, .featured-art { display: block; min-height: 340px; position: relative; overflow: hidden; }
.featured-image { width: 100%; height: 100%; object-fit: cover; }
.featured-content { padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; }
.featured-headline { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.04; letter-spacing: 0; margin: 1rem 0 .85rem; font-weight: 700; }
.featured-headline a { color: var(--text); }
.featured-headline a:hover { color: var(--accent-soft); }
.featured-summary { color: var(--text-2); font-size: 1.05rem; margin: 0 0 1.5rem; }
.featured-cta { align-self: flex-start; margin-top: auto; }

/* Category chip */
.card-cat, .article-cat {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; padding: .32rem .65rem; border-radius: 4px;
  color: var(--cat, var(--accent));
  border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 45%, transparent);
  background: color-mix(in srgb, var(--cat, var(--accent)) 9%, transparent);
}
.card-cat::before, .article-cat::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--cat, var(--accent)); }

.card-meta, .article-meta { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-meta .dot, .article-meta .dot { color: var(--border-2); }

/* ---------- Card grid ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--cat, var(--accent)) 55%, var(--border)); box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--cat, var(--accent)) 55%, rgba(15,23,42,.4)); }
.card-image-link, .card-art { display: block; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-image { transform: scale(1.05); }
.card > .card-cat { margin: 1.1rem 1.2rem 0; }
.card h3 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; letter-spacing: 0; margin: .7rem 1.2rem .55rem; font-weight: 600; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--cat, var(--accent-soft)); }
.card-summary { color: var(--text-2); font-size: .92rem; margin: 0 1.2rem 1rem; flex: 1; }
.card .card-meta { margin: 0 1.2rem 1.2rem; }

/* Generated "code grid" art for image-less cards (pure CSS) */
.cosmic-art {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, color-mix(in srgb, var(--cat, var(--accent-2)) 22%, transparent), transparent 60%),
    linear-gradient(135deg, #0f172a, #13233f 85%);
}
.cosmic-art::before {
  /* faint "lines of code": staggered horizontal dashes */
  content: ""; position: absolute; inset: 14% 40% 14% 8%;
  background-image:
    repeating-linear-gradient(180deg, rgba(250,90,10,.38) 0 3px, transparent 3px 14px),
    repeating-linear-gradient(180deg, rgba(209,250,229,.16) 0 3px, transparent 3px 21px);
  background-size: 62% 100%, 92% 100%;
  background-repeat: no-repeat;
  background-position: 18% 0, 0 7px;
}
.cosmic-art::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(250,90,10,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,90,10,.10) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px;
}
.cosmic-art .planet {
  /* blinking cursor block */
  position: absolute; right: 14%; bottom: 18%; width: 10px; height: 18px; border-radius: 1px;
  background: #FA5A0A; box-shadow: 0 0 14px rgba(250,90,10,.7);
  animation: zdfBlink 1.1s steps(1) infinite;
}
@keyframes zdfBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cosmic-art .planet { animation: none; } }

/* ---------- CTA ---------- */
.section-cta .cta-card {
  text-align: center; background: linear-gradient(135deg, var(--accent-deep), #13233f);
  border: 1px solid var(--accent-deep); border-radius: 14px; padding: clamp(2rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
}
.cta-card h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: .01em; text-transform: uppercase; margin: 0 0 .6rem; color: #fff; }
.cta-card p { color: #cbd5e1; margin: 0 auto 1.5rem; max-width: 46ch; }
.cta-card .signup-form input[type=email] { background: rgba(255,255,255,.96); }
.signup-form-inline { justify-content: center; margin: 0 auto; }

/* ---------- Article page ---------- */
.article-page { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.article-header { margin-bottom: 1.5rem; }
.article-header h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -.005em; margin: 1.1rem 0 .9rem; font-weight: 700; color: var(--accent-deep); }
.article-summary { font-size: 1.25rem; line-height: 1.55; color: var(--text-2); margin: 0 0 1.25rem; font-weight: 400; }
.article-meta { margin-bottom: 1rem; }
.article-meta a { color: var(--accent-soft); }
.article-hero-image { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin: 1rem 0 .4rem; }
.article-hero-art { width: 100%; aspect-ratio: 21/9; position: relative; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin: 1rem 0 1.5rem; }
.article-image-credit { font-size: .76rem; color: var(--muted); font-family: var(--font-mono); }

.share-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: 1.25rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 1.5rem 0; }
.share-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: .25rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 500;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: .42rem .85rem; cursor: pointer; transition: .2s;
}
.share-btn:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-1px); }
.share-btn.copied { color: var(--accent-2); border-color: rgba(234,88,12,.4); }

.article-body { font-size: 1.1rem; line-height: 1.78; color: #1e293b; }
.article-body { color: #1e293b; }
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display); float: left; font-size: 3.6rem; line-height: .82; font-weight: 700;
  padding: .35rem .55rem 0 0; color: var(--accent-2);
}
.article-body p { margin: 0 0 1.4rem; }
.article-body h2 { font-family: var(--font-display); color: var(--accent-deep); font-size: 1.7rem; letter-spacing: 0; text-transform: uppercase; margin: 2.4rem 0 .9rem; font-weight: 700; }
.article-body h3 { font-family: var(--font-display); color: var(--text); font-size: 1.3rem; margin: 2rem 0 .8rem; font-weight: 600; }
.article-body a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(234,88,12,.4); }
.article-body a:hover { text-decoration-color: var(--accent-soft); }
.article-body ul, .article-body ol { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: .6rem; }
.article-body li::marker { color: var(--accent-2); }
.article-body blockquote {
  margin: 1.8rem 0; padding: .5rem 0 .5rem 1.4rem; border-left: 3px solid var(--accent-2);
  font-size: 1.25rem; line-height: 1.5; color: var(--text); font-style: italic;
}

.article-signup {
  margin: 2.5rem 0; padding: 1.75rem; text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border-2); border-radius: var(--radius);
}
.article-signup h3 { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; margin: 0 0 .4rem; color: var(--accent-deep); }
.article-signup p { color: var(--text-2); margin: 0 0 1.1rem; }

.related { margin: 2.5rem 0; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.related h3 { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; margin: 0 0 1rem; color: var(--accent-deep); }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.related-list a { color: var(--text); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.related-list a:hover { color: var(--accent-soft); }
.related-list .muted { font-family: var(--font-mono); font-size: .74rem; white-space: nowrap; }

/* ---------- Archive / category / search shared ---------- */
.page-head { padding: clamp(2.5rem,6vw,4rem) 0 1rem; text-align: center; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(2.2rem,5vw,3.2rem); letter-spacing: 0; text-transform: uppercase; margin: 0 0 .5rem; color: var(--accent-deep); }
.page-head p { color: var(--text-2); margin: 0; }
.pagination { display: flex; justify-content: center; gap: .5rem; margin: 2.5rem 0; }
.pagination a, .pagination span { padding: .5rem .9rem; border-radius: 6px; border: 1px solid var(--border); color: var(--text-2); font-size: .9rem; background: var(--surface); }
.pagination a:hover { border-color: var(--border-2); color: var(--text); }
.pagination .current { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); font-weight: 600; }

/* Static content pages (about/privacy/terms/etc.) */
.prose { max-width: 760px; margin: 0 auto; padding: clamp(2rem,5vw,3.5rem) 24px; }
.prose h1 { font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3rem); letter-spacing: 0; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 1rem; }
.prose h2 { font-family: var(--font-display); color: var(--accent-deep); margin: 2rem 0 .8rem; }
.prose p, .prose li { color: var(--text-2); line-height: 1.75; }
.prose a { color: var(--accent-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 3px solid #FA5A0A; margin-top: 4rem; background: var(--accent-deep); color: #cbd5e1; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; padding: 3rem 24px 2rem; max-width: var(--maxw); margin: 0 auto; }
.footer-brand .logo { margin-bottom: .9rem; }
.footer-brand .muted { font-size: .9rem; max-width: 30ch; color: #94a3b8; }
.footer-links h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #FA5A0A; margin: 0 0 1rem; }
.footer-links a { display: block; color: #cbd5e1; font-size: .9rem; padding: .25rem 0; }
.footer-links a:hover { color: #fff; }
.signup-mini { display: flex; gap: .4rem; }
.signup-mini input { flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; color: #fff; padding: .5rem .7rem; outline: none; font-size: .85rem; }
.signup-mini input::placeholder { color: #94a3b8; }
.signup-mini input:focus { border-color: var(--accent-2); }
.signup-mini .btn { padding: .5rem .9rem; font-size: .85rem; }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 24px; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom .muted { font-size: .8rem; color: #94a3b8; }

/* ---------- Entrance animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-left > * { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) backwards; }
.hero-left > *:nth-child(1) { animation-delay: .05s; }
.hero-left > *:nth-child(2) { animation-delay: .12s; }
.hero-left > *:nth-child(3) { animation-delay: .19s; }
.hero-left > *:nth-child(4) { animation-delay: .26s; }
.hero-left > *:nth-child(5) { animation-delay: .33s; }
.hero-left > *:nth-child(6) { animation-delay: .40s; }
.hero-right { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) .3s backwards; }
.card { animation: fadeUp .6s cubic-bezier(.2,.7,.2,1) backwards; }
.article-grid .card:nth-child(2) { animation-delay: .06s; }
.article-grid .card:nth-child(3) { animation-delay: .12s; }
.article-grid .card:nth-child(4) { animation-delay: .18s; }
.article-grid .card:nth-child(5) { animation-delay: .24s; }
.article-grid .card:nth-child(6) { animation-delay: .30s; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-right { order: -1; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-image-link, .featured-art { min-height: 220px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .article-body > p:first-of-type::first-letter { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Archive / category list ---------- */
.article-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.article-list-item { display: flex; gap: 1rem; align-items: flex-start; padding: .85rem .9rem; border-radius: 8px; border: 1px solid var(--border); background: linear-gradient(160deg, var(--bg-2), var(--surface)); transition: border-color .2s ease, transform .2s ease; }
.article-list-item:hover { border-color: color-mix(in srgb, var(--cat, var(--accent)) 55%, var(--border)); transform: translateX(3px); }
.ali-thumb-link { flex-shrink: 0; display: block; width: 110px; aspect-ratio: 3/2; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.ali-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.article-list-item:hover .ali-thumb { transform: scale(1.06); }
.ali-thumb-art { width: 100%; height: 100%; display: block; background: linear-gradient(135deg, #13233f 0%, #9A3412 60%, #FA5A0A 100%); }
.ali-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.ali-body h3 { font-size: 1.02rem; line-height: 1.28; margin: .1rem 0 0; font-weight: 600; }
.ali-body h3 a { color: var(--text); text-decoration: none; }
.ali-body h3 a:hover { color: var(--cat, var(--accent-soft)); }
.ali-body .card-summary { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 500px) { .article-list-item { flex-direction: column; } .ali-thumb-link { width: 100%; aspect-ratio: 16/9; } }

.page-btn {
  padding: .5rem .9rem; border-radius: 6px; border: 1px solid var(--border);
  color: var(--text-2); font-size: .9rem; background: var(--surface);
}
a.page-btn:hover { border-color: var(--border-2); color: var(--text); }
.page-current { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); font-weight: 600; }
.page-disabled { opacity: .4; }
.pagination-summary { text-align: center; font-size: .8rem; }

.empty { text-align: center; padding: 3rem 0; }
.empty h3 { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 .4rem; }

/* ---------- Affiliate buyer's-guide components ---------- */
.affiliate-disclosure {
  font-family: var(--font-mono); font-size: .78rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 11px 15px; margin: 0 0 26px;
}
.affiliate-disclosure strong { color: var(--text); }
.product-box {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 12px; padding: 18px 20px; margin: 22px 0;
  position: relative; overflow: hidden;
}
.product-box::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; bottom: 0; background: var(--accent); }
.product-rank {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--accent);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.product-info { min-width: 0; }
.product-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--text); margin: 0 0 2px; letter-spacing: -.01em; }
.product-tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.product-why { color: var(--muted); font-size: .92rem; margin: 6px 0 12px; }
.product-specs { font-family: var(--font-mono); font-size: .76rem; color: var(--text-2); margin: 4px 0 0; letter-spacing: .01em; }
.product-cta {
  display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .02em; color: var(--accent); background: transparent;
  padding: 7px 14px; border-radius: 7px; border: 1px solid var(--border-2); text-decoration: none;
}
.product-cta:hover { border-color: var(--accent); color: var(--text); }
.product-box.has-img { grid-template-columns: auto 110px 1fr; }
.product-box .product-img { width: 110px; height: 110px; object-fit: contain; background: #fff; border-radius: 9px; border: 1px solid var(--border-2); padding: 6px; flex-shrink: 0; }
.product-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.product-price { font-family: var(--font-mono); font-weight: 600; color: var(--text-2); font-size: .95rem; }
@media (max-width: 560px) {
  .product-box, .product-box.has-img { grid-template-columns: 1fr; }
  .product-rank { width: 44px; height: 44px; font-size: 1.2rem; }
  .product-box .product-img { width: 100%; height: 200px; }
}

/* ── Network bar & contextual CTA ─────────────────────────────── */
.network-bar {
  background: #eef2f6;
  border-top: 1px solid #cbd5e1;
  padding: 0.85rem 0;
}
.network-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.network-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  white-space: nowrap;
  flex-shrink: 0;
}
.network-sites {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.network-site {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.81rem;
  font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.network-site:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,23,42,0.07);
  text-decoration: none;
  color: #0f172a;
}
.network-site-tag {
  font-size: 0.74rem;
  font-weight: 400;
  color: #6b7280;
}
.network-cta {
  margin: 1.5rem 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid #cbd5e1;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: #f6f8fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.network-cta-text {
  font-size: 0.88rem;
  color: #374151;
  margin: 0;
}
.network-cta-text strong { color: #111827; }
.network-cta-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.network-cta-link:hover { text-decoration: underline; }

/* ---------- Entity hub pages (/company/<slug>, /agency/<slug>) ---------- */
.ent-container { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
.ent-crumbs { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); margin-bottom: 1.4rem; }
.ent-crumbs a { color: var(--muted); }
.ent-crumbs a:hover { color: var(--accent); }
.ent-crumbs span { color: var(--text); font-weight: 500; }
.ent-head { display: flex; gap: 1.2rem; align-items: flex-start; padding-bottom: 1.4rem; border-bottom: 3px solid var(--accent-deep); }
.ent-head-main { flex: 1; min-width: 0; }
.ent-head .kicker { margin-bottom: .7rem; }
.ent-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 .3em; font-weight: 700; }
.ent-dossier { margin: 0; max-width: 62ch; color: var(--text-2); font-size: .95rem; }
.ent-follow { display: flex; flex-direction: column; gap: .5rem; flex-shrink: 0; }
.ent-follow .btn { font-size: .85rem; padding: .5rem 1rem; text-align: center; white-space: nowrap; }
.ent-btn-ghost { border: 1.5px solid var(--accent-deep); color: var(--accent-deep); border-radius: 6px; font-weight: 600; }
.ent-btn-ghost:hover { background: var(--accent-deep); color: #fff; text-decoration: none; }
.ent-stats { display: flex; flex-wrap: wrap; row-gap: .2rem; border-bottom: 1px solid var(--border); margin-bottom: 1.6rem; }
.ent-stat { padding: .9rem 1.4rem .9rem 0; margin-right: 1.4rem; }
.ent-stat + .ent-stat { border-left: 1px solid var(--border); padding-left: 1.4rem; }
.ent-stat b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--accent-deep); font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.ent-stat span { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.ent-cols { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 2.4rem; }
@media (max-width: 760px) { .ent-cols { grid-template-columns: 1fr; } .ent-follow { display: none; } }
.ent-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.ent-chip { font-size: .78rem; font-weight: 600; padding: .3rem .85rem; border-radius: 99px; border: 1px solid var(--border); color: var(--text-2); background: var(--surface); }
.ent-chip:hover { text-decoration: none; border-color: var(--accent-deep); color: var(--accent-deep); }
.ent-chip-on { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.ent-chip-on:hover { color: #fff; border-color: var(--accent-deep); }
.ent-featured { grid-template-columns: 1fr; margin-bottom: 1.4rem; }
.ent-featured .featured-image-link { min-height: 0; aspect-ratio: 16/7.5; }
.ent-featured .featured-content { padding: 1.4rem 1.6rem 1.6rem; }
.ent-featured .featured-headline { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.ent-featured .featured-summary { font-size: .98rem; }
.ent-side section { margin-bottom: 1.8rem; }
.ent-side-h { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border-bottom: 2px solid var(--accent-2); padding-bottom: .45rem; margin: 0 0 .7rem; }
.ent-links { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.ent-links li { display: flex; justify-content: space-between; gap: .6rem; padding: .38rem 0; border-bottom: 1px solid var(--border); }
.ent-links a { font-weight: 500; color: var(--text); }
.ent-links a:hover { color: var(--accent-2-deep); text-decoration: none; }
.ent-n { color: var(--muted); font-family: var(--font-mono); font-size: .76rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ent-index { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; }
@media (max-width: 600px) { .ent-index { columns: 1; } }
.ent-index li { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--border); break-inside: avoid; }
.ent-index a { font-weight: 500; }
.article-entity-tags { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 1.6rem 0; }
.article-entity-label { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Header fit — 8 nav items (Companies/Agencies added 2026-07-15).
   Hamburger now kicks in at 1150px instead of 880px. */
@media (max-width: 1300px) {
  .header-inner { gap: .9rem; }
  .site-nav a { font-size: .9rem; padding: .45rem .45rem; }
  .header-search input { width: 100px; }
}
@media (max-width: 1150px) {
  .site-nav, .header-search, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .mobile-menu[hidden] { display: none; }
}

/* Sidebar-sized signup box (entity + category pages) — stack everything vertically */
.ent-side .article-signup { margin: 0; padding: 1.1rem 1.2rem 1.3rem; text-align: left; }
.ent-side .article-signup h3 { font-size: 1.15rem; }
.ent-side .article-signup p { font-size: .82rem; }
.ent-side .signup-form { flex-direction: column; align-items: stretch; max-width: none; }
.ent-side .signup-form input[type="email"] { width: 100%; min-width: 0; box-sizing: border-box; }
.ent-side .signup-form .btn { width: 100%; white-space: normal; }
.ent-side .cf-turnstile { max-width: 100%; }

/* ---------- Front page: signup strip + lead story / latest list ---------- */
.front-strip, .front, .pref-source {
  --f-strip-bg: var(--bg-2); --f-surface: var(--surface); --f-border: var(--border); --f-head: var(--text); --f-head-hover: var(--accent-soft);
  --f-text2: var(--text-2); --f-muted: var(--muted); --f-rule: var(--accent-2); --f-display: var(--font-display);
  --f-meta: var(--font-mono); --f-radius: var(--radius); --f-thumb-radius: 6px; --f-head-weight: 700; --f-head-spacing: 0; --f-head-lh: 1.04;
}
.front-strip { border-bottom: 1px solid var(--f-border); background: var(--f-strip-bg); }
.front-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.front-strip-copy { display: flex; align-items: baseline; gap: .9rem; min-width: 0; }
.front-tagline { font-family: var(--f-display); font-weight: var(--f-head-weight); font-size: 1.12rem; line-height: 1.3; letter-spacing: var(--f-head-spacing); color: var(--f-head); margin: 0; white-space: nowrap; }
.front-strip-sub { margin: 0; font-size: .86rem; line-height: 1.3; color: var(--f-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.signup-form.front-strip-form { display: flex; flex: 0 1 430px; flex-direction: row; flex-wrap: nowrap; align-items: center; max-width: none; gap: .5rem; margin: 0; scroll-margin-top: 90px; }
.signup-form.front-strip-form input[type=email] { flex: 1 1 0; min-width: 0; width: auto; padding: .55rem 1rem; font-size: .9rem; }
.signup-form.front-strip-form .btn { width: auto; padding: .55rem 1.05rem; font-size: .86rem; white-space: nowrap; flex: 0 0 auto; }

.front { padding: 1.8rem 0 1.6rem; }
.front-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.front-lead-media { display: block; border-radius: var(--f-radius); overflow: hidden; border: 1px solid var(--f-border); margin-bottom: 1rem; aspect-ratio: 16 / 9; background: var(--f-surface); position: relative; }
.front-lead-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.front-lead-headline { font-family: var(--f-display); font-weight: var(--f-head-weight); font-size: clamp(1.9rem, 3.1vw, 2.8rem); line-height: var(--f-head-lh); letter-spacing: var(--f-head-spacing); margin: .55rem 0 .7rem; }
.front-lead-headline a { color: var(--f-head); text-decoration: none; }
.front-lead-headline a:hover { color: var(--f-head-hover); text-decoration: none; }
.front-lead-summary { color: var(--f-text2); font-size: 1.05rem; line-height: 1.6; margin: 0 0 .8rem; max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.front-latest-heading { font-family: var(--f-display); font-weight: var(--f-head-weight); font-size: 1.25rem; line-height: 1.2; color: var(--f-head); margin: 0 0 .2rem; padding-bottom: .7rem; border-bottom: 2px solid var(--f-rule); }
.front-latest-list { list-style: none; margin: 0; padding: 0; }
.front-latest-item { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: .95rem 0; border-bottom: 1px solid var(--f-border); align-items: start; margin: 0; }
.front-latest-thumb { display: block; aspect-ratio: 3 / 2; border-radius: var(--f-thumb-radius); overflow: hidden; border: 1px solid var(--f-border); background: var(--f-surface); position: relative; }
.front-latest-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.front-latest-text { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.front-latest-title { font-family: var(--f-display); font-weight: var(--f-head-weight); font-size: 1.02rem; line-height: 1.28; color: var(--f-head); text-decoration: none; }
.front-latest-title:hover { color: var(--f-head-hover); text-decoration: none; }
.front-latest-time { font-family: var(--f-meta); font-size: .7rem; color: var(--f-muted); }
.front-latest-more { display: inline-block; margin-top: .9rem; }

@media (max-width: 980px) {
  .front-strip-sub { display: none; }
  .front-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 640px) {
  .front-strip-inner { flex-direction: column; align-items: stretch; gap: .55rem; padding-top: .8rem; padding-bottom: .85rem; }
  .signup-form.front-strip-form { flex: 0 0 auto; }
  .front { padding-top: 1.2rem; }
  .front-latest-item { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .front-latest-title { font-size: .96rem; }
}

/* ---------- Google "preferred source" callout ---------- */
.pref-source {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap;
  background: var(--f-surface); border: 1px solid var(--f-border); border-left: 4px solid var(--f-rule);
  border-radius: var(--f-radius); padding: 1rem 1.2rem; margin: 2rem 0;
}
.pref-source-copy { display: flex; flex-direction: column; gap: .2rem; flex: 1 1 260px; min-width: 0; }
.pref-source-title { font-family: var(--f-display); font-weight: var(--f-head-weight); font-size: 1.12rem; line-height: 1.25; color: var(--f-head); }
.pref-source-text { font-size: .9rem; line-height: 1.45; color: var(--f-text2); }
.pref-source-btn { flex: 0 0 auto; min-height: 40px; }
.front-lead .pref-source { margin: 1.4rem 0 0; }
.pref-source-footer { margin-top: .9rem; min-height: 40px; }
/* ---------- Byline AI disclosure ---------- */
.byline a { font-weight: 600; }
.ai-disclosure { font-family: var(--font-mono); font-size: .74rem; color: var(--accent); }
.ai-disclosure a { color: inherit; text-decoration: underline; text-decoration-color: rgba(234,88,12,.35); text-underline-offset: 3px; }

/* ---------- GovSeeker sponsored banner (policy articles only) ---------- */
.govseeker-banner { position: relative; margin: 2rem 0; border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); }
.govseeker-banner .ad-label { position: absolute; top: -.6rem; left: 1rem; padding: 0 .4rem; background: var(--bg); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gsb-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; color: var(--text); }
.gsb-link:hover { color: var(--text); }
.gsb-mark img { width: 54px; height: 54px; border-radius: 8px; background: var(--accent-deep); }
.gsb-text { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.gsb-title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.gsb-sub { font-size: .84rem; color: var(--text-2); line-height: 1.4; }
.gsb-cta { display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0; padding: .5rem .9rem; border-radius: 6px; background: var(--accent-deep); color: #fff; font-weight: 600; font-size: .85rem; }
@media (max-width: 600px) { .gsb-link { flex-wrap: wrap; } .gsb-cta { width: 100%; justify-content: center; } }
