/* ─────────────────────────────────────────────────────────────────────────
   EdTech IRL network branding — shared by the news sites:
     K12 Cyber Watch   news.edtechirl.com          <html data-site="k12">
     HiEd Security News   hied-news.edtechirl.com     <html data-site="hied">
     Research Security News       ressec-news.edtechirl.com   <html data-site="ressec">

   This file is IDENTICAL in all three repos — edit it in one, copy it to
   the others. Load it after styles.css; it overrides that file's colors.
   ───────────────────────────────────────────────────────────────────────── */

/* Light theme to match edtechirl.com (white page, charcoal text) */
:root {
  color-scheme: light;

  --bg:          #f6f6f4;
  --surface:     #ffffff;
  --surface2:    #f0f0ed;
  --border:      #e2e2de;
  --danger:      #cf222e;
  --success:     #1a7f37;
  --warning:     #9a6700;
  --text:        #363737;   /* edtechirl.com body text */
  --text-muted:  #6b6b6b;
  --shadow:      0 1px 2px rgba(0,0,0,.06);

  --brand:       #FD5353;   /* edtechirl.com accent; decoration only, too light for text */
  --brand-dark:  #363737;   /* charcoal from the IRL badge */
  --brand-cream: #f3f1ec;   /* cream from the IRL badge */
}

/* Per-site accents.
   --accent        text, links, active states. Each passes 4.5:1 on white.
   --accent-bright stripes and highlights only (not for text). */
html[data-site="k12"] {
  --accent:        #1d4ed8;
  --accent-bright: #3b82f6;
  --accent-glow:   rgba(59,130,246,.12);
  --accent-border: rgba(29,78,216,.25);
}
html[data-site="hied"] {
  --accent:        #0f766e;
  --accent-bright: #14b8a6;
  --accent-glow:   rgba(20,184,166,.12);
  --accent-border: rgba(15,118,110,.25);
}
html[data-site="ressec"] {
  --accent:        #b45309;
  --accent-bright: #ff8200;
  --accent-glow:   rgba(255,130,0,.12);
  --accent-border: rgba(180,83,9,.25);
}

/* ── Fixes for colors styles.css hard-codes for its old dark theme ── */
.card-source { border-color: var(--accent-border); }
.page-btn.active { color: #fff; }
.site-header { border-bottom: 3px solid var(--accent-bright); }
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* ── Network bar (top of every page) ── */
.network-bar {
  background: var(--brand-dark);
  color: var(--brand-cream);
  font-size: .8rem;
}

.network-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.network-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-cream);
  font-weight: 700;
  letter-spacing: .02em;
}
.network-brand:hover { text-decoration: none; color: #fff; }
.network-brand img { width: 28px; height: 28px; display: block; }

.network-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.network-links a {
  color: #c9c9c5;
  padding: 3px 0;
  border-bottom: 2px solid transparent;
}
.network-links a:hover { color: #fff; text-decoration: none; border-bottom-color: #8a8a86; }
.network-links a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  border-bottom-color: var(--brand);
}

/* ── Network footer ── */
.network-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-inner img { width: 40px; height: 40px; flex-shrink: 0; display: block; }
.footer-inner a { color: var(--text); font-weight: 600; }
.footer-inner a:hover { color: var(--accent); }

/* ── Header right side: LIVE badge + rebuild note ── */
.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.feed-note {
  font-size: .72rem;
  color: var(--text-muted);
  text-align: right;
}

/* Phones: badge and note on their own row under the site name */
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; }
  .header-meta { flex-direction: row; align-items: center; gap: 10px; width: 100%; }
}

/* ── Subscribe card (sidebar) ── */
.subscribe-card p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius);
}
.subscribe-btn:hover { text-decoration: none; filter: brightness(1.1); }

/* ── Sponsor card (sidebar) and footer line ── */
.sponsor-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}
.sponsor-name:hover { text-decoration: none; color: var(--text); }
.sponsor-name img { width: 28px; height: 28px; display: block; }

.sponsor-card p { font-size: .85rem; color: var(--text-muted); }
.sponsor-cta { display: inline-block; margin: 10px 0 12px; font-size: .85rem; font-weight: 600; }

.sponsor-disclosure {
  font-size: .75rem !important;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.footer-sponsor { margin-left: auto; white-space: nowrap; }
.footer-sponsor a { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.footer-sponsor img { width: 20px; height: 20px; }

@media (max-width: 600px) {
  .footer-inner { flex-wrap: wrap; }
  .footer-sponsor { margin-left: 0; }
}

/* ── Pinned top: EdTech IRL bar always visible ──
   Wide screens (861px+): the network bar pins at the very top on one 40px row
   and the site header pins directly beneath it.
   Narrower screens: the bar uses two compact rows, so only the bar stays
   pinned and the site header scrolls away, keeping room for articles.
   861px is where the full bar (logo + all four links) fits on one row. */
.network-bar {
  position: sticky;
  top: 0;
  z-index: 110;
}

@media (min-width: 861px) {
  .network-inner { flex-wrap: nowrap; height: 40px; padding-top: 0; padding-bottom: 0; }
  .site-header { top: 40px; }
}

@media (max-width: 860px) {
  .site-header { position: static; }

  /* Two short rows: logo on top, site links below. "Blog" is dropped because
     the EdTech IRL logo and name already link to the blog. */
  .network-inner { padding: 4px 16px 2px; gap: 2px 12px; }
  .network-brand img { width: 24px; height: 24px; }
  .network-links { gap: 2px 12px; font-size: .75rem; }
  .network-links li:last-child { display: none; }
}

/* Phones: drop the last word of each site name in the bar ("K12 Cyber",
   "HiEd Security", "Research Security") so the links fit on one row. */
@media (max-width: 600px) {
  .nl-tail { display: none; }
}
