/* ============================================================
   WKU EDITORIAL DESIGN SYSTEM — wku-editorial.css  v1.1
   v1.1 adds: §4 site header (header.php) + §5 site footer
   (footer.php). Bump the version string in functions.php to
   '1.1' when uploading, so visitors' caches refresh.
   Upload to:  /wp-content/themes/<your-child-theme-folder>/css/
   Enqueued by the functions.php snippet (wku-functions-snippet.php).

   What this file does:
   1. Design tokens on :root — every future block/page reads them.
   2. Shared components (labels, buttons, Insight callout, tables).
   3. Editorial article typography, scoped to single posts only —
      this styles the CONTENT AREA of your active Elementor
      Theme Builder "News" single-post template automatically.

   Fonts are NOT declared here — upload them via Elementor →
   Custom Fonts, named exactly "Fraunces" and "Inter Tight"
   (see guide). If you later prefer theme-hosted fonts, ask for
   the @font-face variant of this file.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --wku-paper:   #f1ece2;
  --wku-paper-2: #e8e1d2;
  --wku-paper-3: #ddd4c1;
  --wku-ink:     #1a1612;
  --wku-ink-soft:#2a241e;
  --wku-rule:    #c9bfa9;
  --wku-rule-2:  #a89e88;
  --wku-muted:   #6b6358;
  --wku-oxblood: #8a2620;
  --wku-blood:   #b03028;
  --wku-gold:    #b08442;
}

/* ---------- 2. SHARED COMPONENTS ----------
   Use these classes anywhere: Elementor HTML widgets, Custom HTML
   blocks in posts, future generated blocks. */

.wku-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--wku-oxblood);
}
.wku-label--muted { color: var(--wku-muted); }
.wku-label--gold  { color: var(--wku-gold); }

.wku-btn {
  display: inline-block; font-family: 'Inter Tight', sans-serif;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; padding: 14px 26px; border: 1px solid var(--wku-ink);
  color: var(--wku-ink); text-decoration: none; transition: all .2s;
}
.wku-btn:hover { background: var(--wku-ink); color: var(--wku-paper); }
.wku-btn--solid {
  background: var(--wku-oxblood); border-color: var(--wku-oxblood);
  color: var(--wku-paper);
}
.wku-btn--solid:hover { background: var(--wku-blood); border-color: var(--wku-blood); color: var(--wku-paper); }

/* WKU Insight callout — paste-in snippet for any post or page:
   <div class="wku-insight"><span class="wi-label">WKU Insight</span>
   <p>Text.</p></div> */
.wku-insight {
  border: 1px solid var(--wku-gold); background: var(--wku-paper-2);
  padding: 22px 24px; margin: 32px 0;
}
.wku-insight .wi-label {
  display: block; font-family: 'Inter Tight', sans-serif;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--wku-gold); margin-bottom: 10px;
}
.wku-insight p {
  font-family: 'Fraunces', Georgia, serif; font-size: 18px;
  line-height: 1.5; margin: 0; color: var(--wku-ink);
}

/* ---------- 3. ARTICLE TYPOGRAPHY (single posts only) ----------
   Scoped to body.single-post + Elementor's post-content widget, so
   it styles articles rendered by the Theme Builder "News" template
   and touches nothing else. */

body.single-post .elementor-widget-theme-post-content {
  font-family: 'Inter Tight', sans-serif; font-size: 17.5px;
  line-height: 1.65; color: var(--wku-ink);
}
body.single-post .elementor-widget-theme-post-content p { margin: 0 0 22px; }
body.single-post .elementor-widget-theme-post-content > .elementor-widget-container > p:first-child {
  font-family: 'Fraunces', Georgia, serif; font-size: 22px; line-height: 1.5;
}
body.single-post .elementor-widget-theme-post-content h2 {
  font-family: 'Fraunces', Georgia, serif; font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600; line-height: 1.15; color: var(--wku-ink);
  margin: 44px 0 16px; padding-top: 28px; border-top: 1px solid var(--wku-rule);
  text-transform: none;
}
body.single-post .elementor-widget-theme-post-content h3 {
  font-family: 'Fraunces', Georgia, serif; font-size: 21px; font-weight: 600;
  margin: 32px 0 12px; color: var(--wku-ink); text-transform: none;
}
body.single-post .elementor-widget-theme-post-content a {
  color: var(--wku-oxblood); text-decoration: underline; text-underline-offset: 3px;
}
body.single-post .elementor-widget-theme-post-content a:hover { color: var(--wku-blood); }
body.single-post .elementor-widget-theme-post-content ul,
body.single-post .elementor-widget-theme-post-content ol { margin: 0 0 22px; padding-left: 22px; }
body.single-post .elementor-widget-theme-post-content li { margin-bottom: 8px; }
body.single-post .elementor-widget-theme-post-content blockquote {
  border-left: 3px solid var(--wku-oxblood); margin: 28px 0; padding: 4px 0 4px 22px;
  font-family: 'Fraunces', Georgia, serif; font-size: 20px; line-height: 1.5;
  color: var(--wku-ink-soft); font-style: italic; background: none;
}
body.single-post .elementor-widget-theme-post-content img { border: 1px solid var(--wku-rule); height: auto; }
body.single-post .elementor-widget-theme-post-content figcaption {
  font-size: 12.5px; color: var(--wku-muted); letter-spacing: 0.04em;
}

/* results tables in articles (the Novati-format fix) */
body.single-post .elementor-widget-theme-post-content table {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
  margin: 28px 0; border: 1px solid var(--wku-rule);
}
body.single-post .elementor-widget-theme-post-content th {
  text-align: left; font-family: 'Inter Tight', sans-serif;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wku-muted); font-weight: 600; padding: 10px 14px;
  border-bottom: 1px solid var(--wku-rule); background: var(--wku-paper-2);
}
body.single-post .elementor-widget-theme-post-content td {
  padding: 9px 14px; border-bottom: 1px solid var(--wku-paper-3); vertical-align: top;
}
body.single-post .elementor-widget-theme-post-content tr:last-child td { border-bottom: 0; }

/* ---------- 4. SITE HEADER (header.php) ---------- */
.wku-mast {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(241,236,226,0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wku-rule);
  font-family: 'Inter Tight', sans-serif;
}
.wku-mast *, .wku-mast *::before, .wku-mast *::after { box-sizing: border-box; margin: 0; padding: 0; }
.wku-mast a { text-decoration: none; color: var(--wku-ink); }
.wku-mast a:focus-visible, .wku-mast button:focus-visible { outline: 2px solid var(--wku-oxblood); outline-offset: 3px; }
.wku-mast-in {
  max-width: 1380px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.wku-mast-brand { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: 23px; line-height: 1; color: var(--wku-ink); }
.wku-mast-brand small {
  display: block; font-family: 'Inter Tight', sans-serif; font-weight: 500;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--wku-muted); margin-top: 3px;
}
.wku-mast-nav ul { list-style: none; display: flex; gap: 24px; align-items: center; }
.wku-mast-nav > ul > li { position: relative; }
.wku-mast-nav a { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; padding: 8px 0; display: inline-block; transition: color .2s; }
.wku-mast-nav a:hover { color: var(--wku-oxblood); }
.wku-mast-nav .wku-mast-wc { color: var(--wku-oxblood); font-weight: 600; }
.wku-mast-nav .has-sub > a::after { content: "↓"; font-size: 9px; margin-left: 5px; color: var(--wku-rule-2); }
.wku-mast-nav .sub {
  position: absolute; top: 100%; left: -16px; min-width: 220px;
  background: var(--wku-paper); border: 1px solid var(--wku-rule);
  padding: 8px 0; display: none; flex-direction: column; gap: 0;
  box-shadow: 0 14px 30px rgba(26,22,18,0.10);
}
.wku-mast-nav .sub li { list-style: none; }
.wku-mast-nav .sub a { display: block; padding: 9px 18px; font-size: 13px; }
.wku-mast-nav .has-sub:hover .sub, .wku-mast-nav .has-sub:focus-within .sub { display: block; }
.wku-mast-right { display: flex; gap: 14px; align-items: center; }
.wku-mast-login {
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  padding: 11px 18px; background: var(--wku-oxblood); color: var(--wku-paper) !important; transition: background .2s;
}
.wku-mast-login:hover { background: var(--wku-blood); }
.wku-mast-burger {
  display: none; font-family: inherit; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; border: 1px solid var(--wku-ink); background: none; color: var(--wku-ink);
  padding: 10px 14px; cursor: pointer;
}
.wku-mmenu { display: none; border-top: 1px solid var(--wku-rule); background: var(--wku-paper); }
.wku-mmenu.open { display: block; }
.wku-mmenu a { display: block; padding: 14px 32px; border-bottom: 1px solid var(--wku-rule); font-size: 15px; color: var(--wku-ink); text-decoration: none; }
.wku-mmenu a.sub { padding-left: 52px; color: var(--wku-muted); font-size: 14px; }
.wku-mmenu a.wc { color: var(--wku-oxblood); font-weight: 600; }
@media (max-width: 1020px) {
  .wku-mast-nav { display: none; }
  .wku-mast-burger { display: block; }
  .wku-mast-login { display: none; }
  .wku-mast-in { padding: 14px 24px; }
}

/* ---------- 5. SITE FOOTER (footer.php) ---------- */
.wku-sitefoot { background: var(--wku-ink); color: rgba(241,236,226,0.7); font-family: 'Inter Tight', sans-serif; font-size: 17px; line-height: 1.55; }
.wku-sitefoot *, .wku-sitefoot *::before, .wku-sitefoot *::after { box-sizing: border-box; margin: 0; padding: 0; }
.wku-sitefoot a { color: inherit; text-decoration: none; }
.wku-sitefoot a:focus-visible { outline: 2px solid var(--wku-gold); outline-offset: 3px; }
.wku-sitefoot-main {
  max-width: 1380px; margin: 0 auto; padding: 72px 32px 56px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 48px;
}
.wku-sitefoot-brand .fw { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: 26px; color: var(--wku-paper); }
.wku-sitefoot-brand small { display: block; font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 4px; color: rgba(241,236,226,0.5); font-family: 'Inter Tight', sans-serif; font-weight: 500; }
.wku-sitefoot-brand p { font-size: 14px; margin-top: 20px; max-width: 300px; line-height: 1.6; }
.wku-sitefoot-brand .soc { display: flex; gap: 14px; margin-top: 24px; }
.wku-sitefoot-brand .soc a {
  width: 36px; height: 36px; border: 1px solid rgba(241,236,226,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; transition: all .2s;
}
.wku-sitefoot-brand .soc a:hover { border-color: var(--wku-gold); color: var(--wku-gold); }
.wku-sitefoot-col h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wku-gold); font-weight: 600; margin-bottom: 18px; }
.wku-sitefoot-col a { display: block; font-size: 14px; padding: 6px 0; transition: color .2s; }
.wku-sitefoot-col a:hover { color: var(--wku-paper); }
.wku-sitefoot-bottom { border-top: 1px solid rgba(241,236,226,0.15); }
.wku-sitefoot-bottom .in {
  max-width: 1380px; margin: 0 auto; padding: 22px 32px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(241,236,226,0.5);
}
.wku-sitefoot-bottom .r a { padding-left: 22px; }
.wku-sitefoot-bottom .r a:hover { color: var(--wku-paper); }
@media (max-width: 1100px) { .wku-sitefoot-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .wku-sitefoot-main { grid-template-columns: 1fr; gap: 36px; padding: 52px 24px 44px; } }

/* ---------- 6. Beat Elementor Global Kit link colours ---------- */
body .wku-mast a,
body .wku-mmenu a { color: var(--wku-ink); }
body .wku-mast a:hover,
body .wku-mast .wku-mast-nav .wku-mast-wc,
body .wku-mmenu a.wc { color: var(--wku-oxblood); }
body .wku-mmenu a.sub { color: var(--wku-muted); }
body .wku-mast a.wku-mast-login { color: var(--wku-paper); }
body .wku-sitefoot a { color: inherit; }