/* ==========================================================================
   site.css - 4localnews.com's own styles. Loads after app.css and
   sitekit.css (sk_css_once), so it only adds and adjusts.

   1. State pages (profiles): stat tiles, fact sheet, live feeds, outlets, sources
   2. Homepage: "Find your local news" (jump menu, states by region, cities, beats)
   3. Dark mode for everything above AND for the kit's own blocks, which
      sitekit.css paints light only. Keyed on html[data-fs-theme="dark"], the
      engine's switch (app.css section 14), reading its --fs-* tokens.
   Profile and dark-mode rules follow 4canine.com's site.css.
   ========================================================================== */

:root{
  --ln-ink:#1f2937; --ln-ink-2:#4b5563; --ln-ink-3:#6b7280;
  --ln-surface:#ffffff; --ln-surface-2:#f7f9fc; --ln-surface-3:#eef3f9;
  --ln-line:#e7eaf0; --ln-line-2:#d6dde8;
  --ln-link:#1d4ed8; --ln-accent:var(--accent,#2563eb);
  --ln-hero-a:#f3f7ff; --ln-hero-b:#fbfcfe;
}

/* ------------------------------------------------------ 1. state pages -- */
.sk-profile-actions{ display:flex; flex-wrap:wrap; gap:8px; }
.sk-tiles{ display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:10px; margin:4px 2px 16px; }
.sk-tile{ display:flex; flex-direction:column; gap:2px; padding:12px 14px; background:var(--ln-surface); border:1px solid var(--ln-line); border-radius:var(--radius,10px); box-shadow:var(--shadow-1,0 1px 2px rgba(16,24,40,.05)); min-width:0; }
.sk-tile-label{ font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ln-ink-3); }
.sk-tile-value{ font-size:17px; font-weight:700; color:var(--ln-ink); line-height:1.3; overflow-wrap:anywhere; }
.sk-tile-value a{ color:var(--ln-link); text-decoration:none; }
.sk-tiles-compact .sk-tile-value{ font-size:15px; }
.sk-profile-card .sk-tiles{ margin:10px 0 6px; }

.sk-factsheet{ margin-bottom:6px; }
.sk-fact-groups{ columns:2 330px; column-gap:18px; }
.sk-fact-group{ break-inside:avoid; margin-bottom:14px; display:inline-block; width:100%; }
.sk-fact-group .ss-block-title{ margin-bottom:6px; }
.sk-fact-group .sk-facts tbody th{ width:44%; white-space:normal; }
.sk-fact-group .sk-facts td{ overflow-wrap:anywhere; }

.sk-sources ol{ margin:0; padding:12px 18px 12px 36px; background:var(--ln-surface); border:1px solid var(--ln-line); border-radius:var(--radius,10px); font-size:13px; line-height:1.6; columns:2 360px; column-gap:28px; }
.sk-sources li{ break-inside:avoid; overflow-wrap:anywhere; }
.sk-sources a{ color:var(--ln-link); }
.sk-picker{ display:flex; gap:8px; flex-wrap:wrap; max-width:520px; }
.sk-picker .form-select{ flex:1 1 220px; min-width:0; }
.sk-count{ display:inline-block; min-width:20px; margin-left:4px; padding:0 6px; border-radius:10px; background:var(--ln-surface-3); font-size:11.5px; font-weight:700; color:var(--ln-ink-2); text-align:center; }

/* The state's live feeds and its newsrooms (sites/4localnews.com/sitekit/modules/profiles/templates/profile.theme.php) */
.ln-chips{ display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; list-style:none; }
.ln-chips a{ display:inline-flex; align-items:center; padding:4px 11px; border:1px solid var(--ln-line-2); border-radius:999px; background:var(--ln-surface); color:var(--ln-ink-2); font-size:13px; font-weight:600; line-height:1.4; text-decoration:none; }
.ln-chips a:hover, .ln-chips a:focus-visible{ border-color:var(--ln-link); color:var(--ln-link); }
.ln-chips .ln-chip-main a{ background:var(--ln-link); border-color:var(--ln-link); color:#fff; }
.ln-chips .ln-chip-main a:hover{ filter:brightness(1.08); color:#fff; }
.ln-chips svg, .ln-row-h svg, .ln-yours svg{ width:13px; height:13px; }
.ln-outlet-list{ display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:8px; margin:0 0 6px; padding:0; list-style:none; }
.ln-outlet-list a{ display:flex; flex-direction:column; gap:1px; height:100%; padding:9px 12px; border:1px solid var(--ln-line); border-radius:var(--radius,10px); background:var(--ln-surface); text-decoration:none; }
.ln-outlet-list a:hover{ border-color:var(--ln-link); }
.ln-outlet-name{ font-weight:700; font-size:14px; color:var(--ln-ink); line-height:1.3; }
.ln-outlet-host{ font-size:12px; color:var(--ln-ink-3); overflow-wrap:anywhere; }

/* ---------------------------------------------------------- 2. homepage -- */
.ln-start{ margin:0 0 18px; padding:18px 20px 16px; background:linear-gradient(180deg, var(--ln-hero-a), var(--ln-hero-b)); border:1px solid var(--ln-line); border-radius:calc(var(--radius,10px) + 4px); color:var(--ln-ink); }
.ln-start-head{ display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:12px 24px; margin-bottom:12px; }
.ln-h{ margin:0 0 4px; font-size:22px; font-weight:800; letter-spacing:-.01em; color:var(--ln-ink); }
.ln-sub{ margin:0; max-width:62ch; font-size:14.5px; color:var(--ln-ink-2); }
.ln-jump{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; flex:0 1 380px; min-width:0; }
.ln-jump .form-select{ flex:1 1 220px; min-width:0; }
.ln-yours{ flex:1 0 100%; margin:2px 0 0; font-size:13px; color:var(--ln-ink-3); }
.ln-yours a{ font-weight:700; color:var(--ln-link); text-decoration:none; }
.ln-regions{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px 22px; margin:4px 0 14px; }
.ln-region-h{ margin:0 0 6px; font-size:11.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--ln-ink-3); }
.ln-states{ display:flex; flex-wrap:wrap; gap:4px 6px; margin:0; padding:0; list-style:none; }
.ln-states a{ display:inline-block; padding:2px 9px; border-radius:6px; background:var(--ln-surface); border:1px solid var(--ln-line); color:var(--ln-ink); font-size:13px; font-weight:600; text-decoration:none; }
.ln-states a:hover, .ln-states a:focus-visible{ border-color:var(--ln-link); color:var(--ln-link); }
.ln-row{ margin:0 0 12px; }
.ln-row-h{ display:flex; align-items:center; margin:0 0 7px; font-size:14px; font-weight:800; color:var(--ln-ink); }
.ln-chips-beats a{ background:var(--ln-surface-3); border-color:transparent; color:var(--ln-ink); }
.ln-start-foot{ display:flex; flex-wrap:wrap; gap:6px 22px; margin:4px 0 0; font-size:13.5px; }
.ln-start-foot a{ font-weight:700; color:var(--ln-link); text-decoration:none; }
@media (max-width:767.98px){
  .ln-start{ padding:14px 14px 12px; }
  .ln-regions{ grid-template-columns:minmax(0, 1fr); }
  .ln-jump{ flex-basis:100%; }
  .ln-h{ font-size:20px; }
}

/* --------------------------------------------------------- 3. dark mode -- */
html[data-fs-theme="dark"]{
  --ln-ink:var(--fs-heading,#dde5ef); --ln-ink-2:var(--fs-ink-2,#b4bfcd); --ln-ink-3:var(--fs-ink-3,#8fa2b8);
  --ln-surface:var(--fs-surface,#161d26); --ln-surface-2:var(--fs-surface-2,#1d2631); --ln-surface-3:var(--fs-surface-3,#232e3c);
  --ln-line:var(--fs-line,#232e3b); --ln-line-2:var(--fs-line-2,#2f3c4c);
  --ln-link:var(--fs-link,#7fb0ff);
  --ln-hero-a:var(--fs-surface-2,#1d2631); --ln-hero-b:var(--fs-surface,#161d26);
}
html[data-fs-theme="dark"] .ln-chips .ln-chip-main a{ color:#0b1220; }

/* The kit's own blocks (sitekit.css paints these light). */
html[data-fs-theme="dark"] .sk-prose,
html[data-fs-theme="dark"] .sk-facts,
html[data-fs-theme="dark"] .sk-terms,
html[data-fs-theme="dark"] .sk-live-list,
html[data-fs-theme="dark"] .sk-cols,
html[data-fs-theme="dark"] .sk-answer{ background:var(--ln-surface); border-color:var(--ln-line); color:var(--ln-ink-2); }
html[data-fs-theme="dark"] .sk-prose h2, html[data-fs-theme="dark"] .sk-prose h3,
html[data-fs-theme="dark"] .sk-answer-title a, html[data-fs-theme="dark"] .sk-summary{ color:var(--ln-ink); }
html[data-fs-theme="dark"] .sk-prose a, html[data-fs-theme="dark"] .sk-facts a, html[data-fs-theme="dark"] .sk-live-list a,
html[data-fs-theme="dark"] .sk-term-row dt a, html[data-fs-theme="dark"] .sk-facts-list tbody th a{ color:var(--ln-link); }
html[data-fs-theme="dark"] .sk-prose code{ background:var(--ln-surface-3); color:var(--ln-ink); }
html[data-fs-theme="dark"] .sk-prose th, html[data-fs-theme="dark"] .sk-prose td,
html[data-fs-theme="dark"] .sk-facts th, html[data-fs-theme="dark"] .sk-facts td,
html[data-fs-theme="dark"] .sk-live-list li, html[data-fs-theme="dark"] .sk-term-row{ border-color:var(--ln-line); }
html[data-fs-theme="dark"] .sk-facts tbody th, html[data-fs-theme="dark"] .sk-term-row dd{ color:var(--ln-ink-2); }
html[data-fs-theme="dark"] .sk-facts thead th{ background:var(--ln-surface-2); }
html[data-fs-theme="dark"] .sk-toc, html[data-fs-theme="dark"] .sk-callout{ background:var(--ln-surface-2); border-color:var(--ln-line); color:var(--ln-ink-2); }
html[data-fs-theme="dark"] .sk-az a{ background:var(--ln-surface-2); border-color:var(--ln-line); color:var(--ln-link); }
html[data-fs-theme="dark"] .sk-prose blockquote{ color:var(--ln-ink-2); }
