/* ============================================================
   Quantum Computing Digest — screen.css
   Same structure and token names as the Data Center Digest theme
   (dcrr-theme), with the indigo accent and qubit cyan.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #111111;
  --muted:      #6b7280;
  --light:      #9ca3af;
  --rule:       #e5e7eb;
  --accent:     #34307e;
  --accent-dk:  #29256a;
  --accent-bg:  #eeedf8;
  --cyan:       #19b5c9;
  --gap-bg:     #fff6e5;
  --gap-ink:    #8a5300;
  --bg:         #ffffff;
  --bg-subtle:  #f8f8fb;
  --body:       #374151;
  --max:        760px;
  --wide:       1140px;
}

html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: var(--wide); margin: 0 auto; padding: 12px 48px; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo-block { display: flex; flex-direction: column; gap: 2px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.logo-mark { flex-shrink: 0; }
.logo-tagline { font-size: 11.5px; color: var(--muted); padding-left: 42px; }
.main-nav .nav { display: flex; list-style: none; gap: 2px; flex-wrap: wrap; }
.main-nav .nav a { display: block; padding: 6px 10px; font-size: 13px; color: var(--muted); border-radius: 5px; }
.main-nav .nav a:hover { color: var(--ink); background: var(--bg-subtle); }
.main-nav .nav li.nav-current a { color: var(--ink); font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); padding: 4px; }

/* ── Subscribe bar ── */
.site-subscribe-bar { background: var(--accent); color: #fff; }
.site-subscribe-bar-inner {
  max-width: var(--wide); margin: 0 auto; padding: 7px 48px;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.site-subscribe-bar-label { font-size: 12.5px; }
.site-subscribe-bar-form { display: flex; gap: 6px; }
.site-subscribe-bar-input {
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); color: #fff;
  border-radius: 4px; padding: 4px 10px; font: inherit; font-size: 12.5px; width: 200px;
}
.site-subscribe-bar-input::placeholder { color: rgba(255,255,255,0.65); }
.site-subscribe-bar-btn {
  background: #fff; color: var(--accent); border: none; border-radius: 4px; padding: 4px 12px;
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.site-subscribe-bar-btn:disabled { opacity: 0.65; cursor: default; }
.site-subscribe-bar-status { display: none; text-align: center; font-size: 12.5px; padding: 0 16px 7px; }
.site-subscribe-bar-status.is-visible { display: block; }

/* ── Badges ── */
.cat-badge, .tag-original, .gap-badge {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
  line-height: 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 4px; white-space: nowrap;
}
.cat-hardware { background: #eef2ff; color: #3730a3; }
.cat-security { background: #fef2f2; color: #b91c1c; }
.cat-policy   { background: #f0fdf4; color: #15803d; }
.cat-business { background: #fffbeb; color: #92400e; }
.cat-research { background: #f0fdfa; color: #0f766e; }
.tag-original { background: var(--accent); color: #fff; }
.tag-original::before {
  content: ''; width: 11px; height: 11px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Ccircle cx='26' cy='26' r='21' fill='none' stroke='%23fff' stroke-width='4'/%3E%3Cline x1='26' y1='26' x2='38' y2='12' stroke='%23fff' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='38.5' cy='11.5' r='6' fill='%2319b5c9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gap-badge { background: var(--gap-bg); color: var(--gap-ink); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ── Page frame ── */
.page-main { max-width: var(--wide); margin: 0 auto; padding: 40px 48px 80px; display: flex; flex-direction: column; gap: 40px; }
.page-header h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.page-header p { color: var(--muted); max-width: 680px; margin-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.section-head h2 { font-size: 18px; font-weight: 700; }
.section-head span, .section-head a { font-size: 12.5px; color: var(--muted); }
.section-head a:hover { color: var(--accent); }

/* ── Home lead ── */
.lead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.lead-hero {
  background: var(--bg-subtle); border: 1px solid var(--rule); border-radius: 8px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.lead-hero h2 { font-size: 27px; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; color: var(--accent-dk); text-wrap: balance; }
.lead-hero h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lead-hero .dek { font-size: 15.5px; color: var(--body); }
.why-strip { border-left: 3px solid var(--cyan); background: var(--bg); padding: 10px 14px; font-size: 13px; color: var(--body); border-radius: 0 6px 6px 0; }
.why-strip b { color: var(--ink); }
.meta { font-size: 12px; color: var(--muted); }
.lead-side { display: flex; flex-direction: column; gap: 10px; }
.side-card { border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.side-card b { font-size: 15px; line-height: 1.3; font-weight: 650; }
.side-card a:hover b { color: var(--accent); }
.empty-note { color: var(--muted); font-size: 14px; border: 1px dashed var(--rule); border-radius: 8px; padding: 18px; }

/* ── Coverage Radar ── */
.radar { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.radar-card { border: 1px solid var(--rule); border-radius: 8px; padding: 13px 15px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.radar-card b { font-size: 14px; }
.meter { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.meter-row { display: flex; justify-content: space-between; }
.bar { height: 6px; border-radius: 3px; background: var(--accent-bg); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 3px; }
.bar.press i { background: var(--cyan); }
.radar-label { align-self: flex-start; }
.radar-label.balanced { background: var(--bg-subtle); color: var(--muted); }
.radar-label.over { background: #eef2f7; color: #374151; }
.radar-note { font-size: 12px; color: var(--muted); }

/* ── Two-column lower home ── */
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; }
.col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* ── Feed cards (Wire, section lists) ── */
.feed-card { padding: 16px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.feed-card:last-child { border-bottom: none; }
.feed-card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.feed-card-headline { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.feed-card-headline a:hover { color: var(--accent); }
.feed-card-body { font-size: 14px; line-height: 1.65; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card-source a { font-size: 12.5px; color: var(--accent); }

/* ── Tabs ── */
.category-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-tab { font-size: 12.5px; padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); }
.cat-tab:hover { color: var(--ink); border-color: var(--light); }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Article ── */
.post-article { max-width: var(--max); margin: 0 auto; padding: 0 48px 80px; }
.post-header { padding: 48px 0 28px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.post-title { font-size: 38px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.post-dek { font-size: 18px; color: var(--body); line-height: 1.5; }
.post-meta { font-size: 12.5px; color: var(--muted); }
.ai-disclaimer {
  background: var(--bg-subtle); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 14px 18px; margin: 0 0 24px; font-size: 13.5px; line-height: 1.6; color: #475569;
}
.ai-disclaimer strong { color: #1f2937; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.06em; display: block; margin-bottom: 6px; }
.why-box { border: 1px solid var(--rule); border-radius: 8px; padding: 16px 18px; margin: 0 0 32px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.why-box-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.why-box p { color: var(--body); }
.why-row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--rule); padding-bottom: 6px; font-variant-numeric: tabular-nums; }
.why-row:last-child { border-bottom: 0; padding-bottom: 0; }
.why-row span:last-child { font-weight: 650; }
.prose { font-size: 18px; line-height: 1.8; color: #1f2937; }
.prose p { margin-bottom: 1.3em; }
.prose h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 1.8em 0 0.6em; color: var(--ink); text-wrap: balance; }
.original-sources { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
.original-sources-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light); margin-bottom: 12px; }
.original-sources ol { padding-left: 20px; font-size: 14px; line-height: 1.9; color: var(--body); }
.original-sources a { color: var(--accent); }
.original-sources a:hover { text-decoration: underline; }
.original-sources .note { color: var(--muted); font-size: 12.5px; }
.wire-summary { font-size: 17px; line-height: 1.75; color: #1f2937; display: flex; flex-direction: column; gap: 16px; }
.wire-why { background: var(--bg-subtle); border-radius: 6px; padding: 14px 16px; font-size: 15px; }
.wire-why b { display: block; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.post-source-btn { display: inline-block; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 6px; }
.post-source-btn:hover { background: var(--accent-dk); }

/* ── Share row ── */
.post-share { display: flex; align-items: center; gap: 6px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 28px; height: 28px;
  border-radius: 5px; color: var(--light); background: none; border: none; cursor: pointer; padding: 0 4px; font: inherit; font-size: 12px;
}
.share-btn:hover { color: var(--muted); background: var(--rule); }
.share-btn svg { width: 15px; height: 15px; }
.share-divider { width: 1px; height: 16px; background: var(--rule); margin: 0 4px; }

/* ── Prev / next ── */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); }
.post-nav a { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.post-nav a:hover .t { color: var(--accent); }
.post-nav .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.post-nav .next { text-align: right; grid-column: 2; }

/* ── Plain pages ── */
.page-prose { max-width: var(--max); font-size: 16px; line-height: 1.75; color: var(--body); display: flex; flex-direction: column; gap: 14px; }
.page-prose h2 { font-size: 20px; color: var(--ink); margin-top: 12px; }
.page-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.page-prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { max-width: var(--wide); margin: 0 auto; padding: 20px 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.footer-inner a:hover { color: var(--ink); }

/* ── Mobile ── */
@media (max-width: 820px) {
  .header-inner, .site-subscribe-bar-inner, .page-main, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .post-article { padding: 0 16px 64px; }
  .lead, .cols { grid-template-columns: minmax(0, 1fr); }
  .logo { font-size: 18px; }
  .logo-tagline { display: none; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; right: 16px; background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .main-nav.is-open { display: block; }
  .main-nav .nav { flex-direction: column; }
  .site-subscribe-bar-label { display: none; }
  .site-subscribe-bar-input { width: 180px; }
  .post-title { font-size: 30px; }
  .prose { font-size: 17px; }
}
