/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* =========================================================
   SOKOMIX SHARED SHELL
   Loaded site-wide (enqueued in functions.php). Holds the
   design tokens, base/reset, ticker, nav and footer so the
   shared header.php / footer.php render identically on every
   template. Edit the shell here, in one place.
   ========================================================= */

:root {
  --brand-green: #2FA84F;
  --brand-green-dark: #1F7B3A;
  --brand-green-deep: #0F5C2A;
  --brand-mint: #E8F5EE;
  --brand-mint-2: #D4EBDE;
  --brand-gold: #F4B940;
  --ink: #0E1A14;
  --ink-soft: #4A5751;
  --ink-muted: #8A938E;
  --paper: #FFFFFF;
  --paper-warm: #FAFBFA;
  --line: #E4EAE6;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --pad-x: clamp(1rem, 4vw, 2.5rem);
  --max-w: 1280px;
  --read-w: 760px; /* comfortable reading measure */

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(15, 92, 42, 0.06);
  --shadow-md: 0 8px 28px rgba(15, 92, 42, 0.10);
  --shadow-lg: 0 20px 60px rgba(15, 92, 42, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}
body.sk-shell {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select { font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: clamp(2rem, 5vw, 4rem) 0; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================
   TICKER
   ============================================ */
.ticker {
  background: var(--brand-green-deep);
  color: #fff;
  overflow: hidden;
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(to right, var(--brand-green-deep), transparent); }
.ticker::after  { right: 0; background: linear-gradient(to left, var(--brand-green-deep), transparent); }
.ticker-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  padding: 10px 0;
  animation: tickerScroll 30s linear infinite;
}
.ticker-item { display: inline-flex; align-items: center; gap: .5rem; }
.ticker-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--brand-gold);
  border-radius: 50%;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--brand-green-deep); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.15rem;
  background: var(--brand-green-deep);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.nav-cta:hover {
  background: var(--brand-green-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.nav-cta svg { color: #fff; }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--ink);
}
.menu-btn:hover { background: var(--brand-mint); }

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 110;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 20, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 90;
}
.menu-backdrop.is-visible { opacity: 1; pointer-events: auto; }

footer { background: #0a130d; color: rgba(255, 255, 255, 0.65); padding: 3.5rem 0 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; color: #fff; margin-bottom: .8rem; }
.foot-blurb { font-size: 14px; line-height: 1.6; max-width: 280px; margin: 0; }
.foot-h {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #fff;
  margin: 0 0 1rem;
}
.foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.foot-list a { font-size: 14px; color: rgba(255, 255, 255, 0.62); transition: color .2s ease; }
.foot-list a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------------------------------------------------------
   Shell additions for the shared header / footer
   --------------------------------------------------------- */
/* Active nav item (set dynamically in header.php) */
.nav-links a.is-current { color: var(--brand-green-deep); font-weight: 700; }

/* Account control in the nav */
.nav-account a { display: inline-flex; align-items: center; white-space: nowrap; }

/* Two extra nav items now (Politics + Account) — tighten desktop spacing so the bar can't overflow */
@media (min-width: 981px) { .nav-links { gap: 1.1rem; } }

/* ---------------------------------------------------------
   Single-post tweaks (apply once site-wide)
   --------------------------------------------------------- */
/* TOC recall tab: visible at rest, not only on hover */
.sk-toc-show { background: var(--brand-green, #2FA84F) !important; color: #fff !important; }
.sk-toc-show span, .sk-toc-show svg { color: #fff !important; }

/* Affiliate disclosure note (injected at top of single posts via functions.php) */
.sk-affil-note {
  display: flex; gap: .6rem; align-items: flex-start;
  margin: 0 0 1.5rem; padding: .75rem 1rem;
  background: var(--paper-warm, #f7f5f0);
  border: 1px solid var(--line, #e7e2d9);
  border-left: 3px solid var(--brand-green, #2FA84F);
  border-radius: 10px;
  font-size: .9rem; line-height: 1.5; color: var(--ink-muted, #5b5b5b);
}
.sk-affil-note svg { flex: 0 0 auto; margin-top: .12rem; color: var(--brand-green, #2FA84F); }
.sk-affil-note p { margin: 0; }
.sk-affil-note a { color: var(--brand-green-deep, #1c7a39); font-weight: 600; text-decoration: underline; }

/* TEMP - hide ad placeholders until AdSense is approved. Delete this rule to turn ads on. */
.sk-ad, .sk-side-ad, .sk-ad-billboard, .sk-feedrow, .sk-feedcard, .sk-ad-slot, .sk-ad-label { display: none !important; }
