/* Theme "current": an original live-desk premium-news identity — built
   from scratch for this network. The signature piece: a genuine vertical
   timeline rail — a connecting line down the page, a dot marker and a real
   timestamp beside every item (drawn from each post's own publish time) —
   paired with a pinned "Top Story" panel, the way a live-updates blog
   reads. No other theme in this network uses a connecting-line timeline.
   Palette is a cool charcoal-navy ink on cool off-white paper with a deep
   indigo spot color — a cooler, more software-native palette than the warm
   ink tones every other theme here leans on. --accent is the site's
   configurable color; overridden per-site by documentShell's inline :root
   style. Playfair Display + Inter are the only two webfonts this network
   loads globally, via documentShell — Current uses Inter throughout,
   reserving Playfair italic for pull-quotes only. Same
   renderHome/renderCategory/renderPost/renderTag/renderSearch/renderAbout
   contract as every other theme (see functions/_themes/current.js). */

:root {
  --ink-900:#12141c; --ink-800:#242733; --ink-700:#3d4152; --ink-600:#5b5f70;
  --ink-500:#7d8093; --ink-400:#9c9fb0; --ink-300:#c3c5d1; --ink-200:#e2e3ea; --ink-100:#f1f2f6;
  --paper:#f7f8fb; --paper-raised:#ffffff;
  --accent: #4338ca; /* overridden per-site by documentShell's inline :root style */
  --radius: 10px; --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(18,20,28,.04), 0 8px 22px -14px rgba(18,20,28,.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink-900); }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Placeholder image system ---- */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; object-fit: cover; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg,#1c1f2b,#2f3346 60%,#1c1f2b); color: rgba(255,255,255,.28);
}
.ph.tone-a { background: linear-gradient(135deg,#181a2e,#2b2d55 60%,#181a2e); }
.ph.tone-b { background: linear-gradient(135deg,#1a1a24,#33303f 60%,#1a1a24); }
.ph.tone-c { background: linear-gradient(135deg,#141c22,#233642 60%,#141c22); }
.ph svg { width: 22%; }
img.ph { background: none; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-4-3 { aspect-ratio: 4/3; }
.ratio-1-1 { aspect-ratio: 1/1; }

/* ---- Top strip ---- */
.top-strip { background: var(--ink-900); color: var(--ink-300); font-size: 12px; }
.top-strip-row { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 12px; flex-wrap: wrap; }
.top-strip-label { color: var(--ink-400); letter-spacing: .01em; }
.top-strip-right { display: flex; align-items: center; gap: 12px; }
.top-strip-right a:not(.btn-subscribe) { color: var(--ink-300); font-weight: 600; }
.top-strip-right a:not(.btn-subscribe):hover { color: #fff; }
.icon-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--ink-700); display: inline-flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800; color: #fff; }
.icon-dot:hover { background: var(--accent); }
.btn-subscribe { background: var(--accent); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .02em; padding: 4px 12px; border-radius: var(--radius-sm); }
.btn-subscribe:hover { filter: brightness(1.12); }

/* ---- Masthead ---- */
.masthead { background: var(--paper-raised); border-bottom: 1px solid var(--ink-200); }
.masthead-row { display: flex; align-items: center; justify-content: center; padding: 20px; }
.logo-group { display: flex; align-items: center; gap: 11px; }
.logo-box { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; }
.logo-img { height: 72px; width: auto; max-width: 420px; object-fit: contain; }
.site-name { font-weight: 900; font-size: clamp(22px,3vw,28px); letter-spacing: -0.02em; color: var(--ink-900); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: currentPulse 2s infinite; }
@keyframes currentPulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); }
  70% { box-shadow: 0 0 0 7px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* ---- Primary nav ---- */
.primary-nav { background: var(--ink-900); }
.primary-nav .wrap { display: flex; justify-content: center; }
.nav-list { display: flex; align-items: stretch; flex-wrap: wrap; justify-content: center; }
.nav-list a { display: flex; align-items: center; height: 42px; padding: 0 15px; color: #e7e8f0; font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-list a:hover, .nav-list a.home { color: #fff; border-bottom-color: var(--accent); }

/* ---- Kickers & meta ---- */
.kicker-label { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--accent); }
.row-kicker { margin-bottom: 7px; }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 11.5px; color: var(--ink-500); }
.meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-400); }
.editors-pick { display: inline-block; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; padding: 3px 8px; border-radius: var(--radius-sm); margin-left: 6px; }

/* ---- Right Now: Top Story panel + timeline rail ---- */
.right-now-section { padding-top: 32px; padding-bottom: 8px; }
.right-now-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; }
.top-story { background: var(--paper-raised); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 22px; }
.top-story-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.top-story-frame { display: block; margin-bottom: 16px; }
.top-story-title { font-size: clamp(24px,3vw,32px); font-weight: 900; line-height: 1.16; color: var(--ink-900); margin: 6px 0 10px; letter-spacing: -.01em; }
.top-story-title a:hover { color: var(--accent); }
.top-story-dek { font-size: 15px; color: var(--ink-600); line-height: 1.6; margin-bottom: 10px; }
.top-story-also { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ink-200); }
.top-story-also h4 { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 6px; }
.lead-side-list { display: flex; flex-direction: column; }

.timeline-col { padding-top: 4px; }
.timeline-head { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }

/* The signature component: a connecting vertical line with a dot marker
   and a real timestamp on every item. */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--ink-200); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -26px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper-raised); border: 3px solid var(--accent); }
.timeline-time { font-size: 11px; font-weight: 800; color: var(--ink-500); letter-spacing: .03em; margin-bottom: 5px; }
.timeline-content h4 { font-weight: 800; font-size: 15px; line-height: 1.32; color: var(--ink-900); margin: 0 0 5px; }
.timeline-content h4 a:hover { color: var(--accent); }
.timeline-content p { font-size: 12.5px; color: var(--ink-600); line-height: 1.5; margin: 0; }

/* ---- Sections ---- */
.section { padding: 40px 0; }
.section-tint { background: var(--ink-100); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-title { font-size: 20px; font-weight: 900; color: var(--ink-900); letter-spacing: -.01em; }
.section-viewall { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.section-viewall:hover { text-decoration: underline; }

/* ---- Type row: dense reading list ---- */
.type-list { display: flex; flex-direction: column; }
.type-row { display: grid; grid-template-columns: 1fr; align-items: start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--ink-200); }
.type-row.has-num { grid-template-columns: 28px 1fr; }
.type-row:first-child { padding-top: 0; }
.type-row:last-child { border-bottom: none; padding-bottom: 0; }
.row-num { font-weight: 900; font-size: 17px; color: var(--ink-300); line-height: 1.4; }
.row-body h3 { font-weight: 800; font-size: 15.5px; line-height: 1.34; color: var(--ink-900); margin: 0 0 6px; letter-spacing: -.005em; }
.row-body h3 a:hover { color: var(--accent); }
.row-body p { font-size: 13px; color: var(--ink-600); line-height: 1.55; margin: 0 0 6px; }
.ranked-list .type-row { padding: 11px 0; }
.ranked-list .row-body h3 { font-size: 14px; }

/* ---- Main grid: feed + sidebar ---- */
.main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }

/* ---- Sidebar widgets ---- */
.sidebar { display: flex; flex-direction: column; }
.widget { background: var(--paper-raised); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 21px; margin-bottom: 20px; }
.widget h3 { font-size: 13px; font-weight: 900; color: var(--ink-900); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .03em; }
.newsletter-widget { background: var(--ink-900); color: #fff; }
.newsletter-widget h3 { color: #fff; }
.newsletter-widget p { font-size: 12.5px; color: var(--ink-300); line-height: 1.5; margin-bottom: 12px; }
.newsletter-form { display: flex; flex-direction: column; gap: 9px; }
.newsletter-form input { padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--ink-700); background: var(--ink-800); color: #fff; font-size: 13px; font-family: inherit; }
.newsletter-form input::placeholder { color: var(--ink-400); }
.newsletter-form button { background: var(--accent); color: #fff; padding: 10px; border-radius: var(--radius-sm); font-weight: 800; font-size: 13px; cursor: pointer; border: none; }
.newsletter-form button:hover:not(:disabled) { filter: brightness(1.1); }
.newsletter-fine { font-size: 10.5px; color: var(--ink-400); margin-top: 9px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a { background: var(--ink-100); border-radius: var(--radius-sm); padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--ink-700); }
.tag-cloud a:hover { background: var(--accent); color: #fff; }
.ad-widget { border: 1px dashed var(--ink-300); border-radius: var(--radius); background: transparent; text-align: center; color: var(--ink-500); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 48px 10px; box-shadow: none; }

/* ---- Category / tag / search listing pages ---- */
.category-title { font-size: 27px; font-weight: 900; color: var(--ink-900); margin: 0 0 18px; letter-spacing: -.01em; }
.search-form { display: flex; gap: 10px; margin: 0 0 24px; max-width: 520px; }
.search-form input { flex: 1; padding: 11px 15px; border: 1px solid var(--ink-300); border-radius: var(--radius-sm); font-size: 14.5px; font-family: inherit; }
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-form button { background: var(--ink-900); color: #fff; border: none; border-radius: var(--radius-sm); padding: 0 20px; font-weight: 700; cursor: pointer; }
.search-form button:hover { background: var(--accent); }
.pagination { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--ink-200); font-weight: 700; font-size: 13px; }
.pagination a { color: var(--accent); }
.empty-state { text-align: center; padding: 76px 20px; color: var(--ink-500); }
.empty-state h1 { color: var(--ink-900); font-size: 24px; margin-bottom: 8px; font-weight: 900; }
.btn { display: inline-block; margin-top: 14px; background: var(--accent); color: #fff; padding: 9px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; }

/* ---- Single post ---- */
.single-post { max-width: 720px; margin: 0 auto; }
.breadcrumb { font-size: 11.5px; color: var(--ink-500); margin-bottom: 14px; }
.breadcrumb a { font-weight: 700; color: var(--ink-800); }
.single-post-header h1 { font-size: clamp(26px,3.6vw,36px); line-height: 1.2; margin: 8px 0 14px; color: var(--ink-900); font-weight: 900; letter-spacing: -.01em; }
.single-post-headline { width: 100%; max-height: 440px; object-fit: cover; margin: 20px 0 26px; border-radius: var(--radius); }
.single-post-content { font-size: 17px; }
.single-post-content p { margin: 0 0 20px; }
.single-post-content h2 { font-size: 21px; margin: 30px 0 12px; font-weight: 800; }
.single-post-content h3 { font-size: 18px; margin: 22px 0 10px; font-weight: 700; }
.single-post-content img { margin: 22px 0; width: 100%; border-radius: var(--radius); }
.single-post-content a { color: var(--accent); text-decoration: underline; }
.single-post-content blockquote { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink-800); border-left: 3px solid var(--accent); margin: 26px 0; padding: 4px 0 4px 20px; }

.post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ink-200); }
.tag-pill-link { background: var(--ink-100); color: var(--ink-700); font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: var(--radius-sm); }
.tag-pill-link:hover { background: var(--accent); color: #fff; }

.related-posts { max-width: 720px; margin: 50px auto 0; border-top: 1px solid var(--ink-200); padding-top: 24px; }
.related-posts h2 { font-size: 18px; margin-bottom: 14px; font-weight: 900; }

/* ---- Layout wrapper for inner pages ---- */
.page-layout { max-width: 1200px; margin: 0 auto; padding: 32px 20px 56px; }

/* ---- Footer ---- */
.site-footer { background: var(--ink-900); color: var(--ink-400); padding: 44px 0 0; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--ink-700); }
.footer-grid h4 { color: #fff; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 13px; }
.footer-grid p { font-size: 12.5px; color: var(--ink-500); line-height: 1.6; }
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-grid li a:hover { color: #fff; }
.footer-logo { font-weight: 900; font-size: 19px; color: #fff; margin-bottom: 9px; }
.footer-social { display: flex; gap: 8px; margin-top: 12px; }
.footer-recent-item { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.footer-recent-item a { font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--ink-300); }
.footer-recent-item a:hover { color: #fff; }
.footer-recent-item span { font-size: 11px; color: var(--ink-600); }
.footer-bottom { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--ink-600); }

@media (max-width: 1080px) {
  .main-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .right-now-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .type-row.has-num { grid-template-columns: 24px 1fr; }
  .top-story { padding: 16px; }
}
