/* iwantknowledge.app Family Base ("The Field Folio", Direction 01).
   Enqueue as a stylesheet file (wp_enqueue_style 'iwk-family') on niche pages ONLY (body:not(.page-template-landing-page)).
   Do NOT inline into <style>: @font-face uses relative ./fonts/*.woff2 URLs (Latin + Latin-ext for full EN/FR diacritics).
   Per-site sites/<slug>/site.css overrides --iwk-accent, --iwk-accent-dark, --iwk-accent-soft, and --iwk-accent-bright. */

@font-face{font-family:"Newsreader";src:url("./fonts/newsreader-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"Newsreader";src:url("./fonts/newsreader-400-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap;}
@font-face{font-family:"Newsreader";src:url("./fonts/newsreader-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:"Newsreader";src:url("./fonts/newsreader-700-normal.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:"Source Sans 3";src:url("./fonts/source-sans-3-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"Source Sans 3";src:url("./fonts/source-sans-3-400-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap;}
@font-face{font-family:"Source Sans 3";src:url("./fonts/source-sans-3-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:"Source Sans 3";src:url("./fonts/source-sans-3-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:"Source Sans 3";src:url("./fonts/source-sans-3-700-normal.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;}

:root {
  --iwk-paper: #FAF7F1;
  --iwk-card: #FFFFFF;
  --iwk-surface: #F4EFE5;
  --iwk-ink: #1D2733;
  --iwk-ink-deep: #121923;
  --iwk-muted: #576370;
  --iwk-muted-light: #94A0AC;
  --iwk-line: #DFD8CA;

  --iwk-accent: #1D5FBF;
  --iwk-accent-dark: #154794;
  --iwk-accent-soft: #E7F0FD;
  --iwk-accent-bright: #60A5FA;

  --iwk-font-display: "Newsreader", Georgia, 'Times New Roman', serif;
  --iwk-font-body: "Source Sans 3", system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --iwk-measure: 48rem;
  --iwk-radius: 8px;
  --iwk-radius-sm: 4px;
}

body:not(.page-template-landing-page) {
  background: var(--iwk-paper);
  color: var(--iwk-ink);
  font-family: var(--iwk-font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body:not(.page-template-landing-page) button,
body:not(.page-template-landing-page) input,
body:not(.page-template-landing-page) select,
body:not(.page-template-landing-page) textarea {
  font-family: var(--iwk-font-body);
}

body:not(.page-template-landing-page) input,
body:not(.page-template-landing-page) textarea,
body:not(.page-template-landing-page) select {
  background: var(--iwk-card);
  color: var(--iwk-ink);
  border: 1px solid var(--iwk-line);
  border-radius: var(--iwk-radius-sm);
  padding: 6px 10px;
}

body:not(.page-template-landing-page) input[type="submit"],
body:not(.page-template-landing-page) input[type="button"],
body:not(.page-template-landing-page) input[type="reset"] {
  background: var(--iwk-accent);
  border-color: var(--iwk-accent);
  color: #FFFFFF;
  font-weight: 600;
  cursor: pointer;
}

/* Header & navigation */
body:not(.page-template-landing-page) .site-header {
  background: var(--iwk-card);
  border-top: 4px solid var(--iwk-accent);
  border-bottom: 1px solid var(--iwk-line);
}

body:not(.page-template-landing-page) .site-header .inside-header {
  min-height: 70px;
  padding: 12px 24px;
}

body:not(.page-template-landing-page) .site-header .main-title {
  font-family: var(--iwk-font-body);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body:not(.page-template-landing-page) .site-header .main-title a {
  color: var(--iwk-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body:not(.page-template-landing-page) .iwk-nav-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: block;
}

body:not(.page-template-landing-page) .main-navigation,
body:not(.page-template-landing-page) .main-navigation ul ul {
  background: var(--iwk-card);
}

body:not(.page-template-landing-page) .main-navigation .main-nav ul li a {
  font-family: var(--iwk-font-body);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--iwk-ink);
  padding: 0 12px;
  line-height: 44px;
}

body:not(.page-template-landing-page) .main-navigation .main-nav > ul > li:hover > a,
body:not(.page-template-landing-page) .main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--iwk-accent);
}

/* Reading container */
body:not(.page-template-landing-page) .site-content .content-area {
  max-width: var(--iwk-measure);
  margin-inline: auto;
  float: none;
  width: 100%;
}

body:not(.page-template-landing-page) .inside-article {
  background: var(--iwk-card);
  border: 1px solid var(--iwk-line);
  border-radius: var(--iwk-radius);
  padding: 36px 40px 44px;
}

/* Typography */
body:not(.page-template-landing-page) h1,
body:not(.page-template-landing-page) h2 {
  font-family: var(--iwk-font-display);
  color: var(--iwk-ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

body:not(.page-template-landing-page) h1 {
  font-size: clamp(30px, 4.2vw, 42px);
  margin-bottom: 0.45em;
}

body:not(.page-template-landing-page) h2 {
  font-size: clamp(23px, 3vw, 28px);
  margin: 1.85em 0 0.55em;
}

body:not(.page-template-landing-page) h3 {
  font-family: var(--iwk-font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--iwk-ink);
  line-height: 1.3;
  margin: 1.5em 0 0.45em;
}

body:not(.page-template-landing-page) a {
  color: var(--iwk-accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

body:not(.page-template-landing-page) a:hover,
body:not(.page-template-landing-page) a:focus {
  color: var(--iwk-accent-dark);
}

body:not(.page-template-landing-page) :focus-visible {
  outline: 3px solid var(--iwk-accent);
  outline-offset: 2px;
}

/* Hero inline SVG block */
.iwk-hero {
  margin: 0 0 1.5rem;
  padding: 12px;
  background: var(--iwk-surface);
  border: 1px solid var(--iwk-line);
  border-radius: 6px;
}

.iwk-hero svg {
  display: block;
  width: 100%;
  max-height: 140px;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .iwk-hero svg * {
    animation: none !important;
    transition: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}

/* Hub guide cards ([iwk_guides]) */
.iwk-guides {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.iwk-guides li {
  background: var(--iwk-paper);
  border: 1px solid var(--iwk-line);
  border-left: 4px solid var(--iwk-accent);
  border-radius: var(--iwk-radius);
  padding: 1rem 1.15rem;
}

.iwk-guides span {
  color: var(--iwk-muted);
}

.iwk-soon {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B3C08;
  background: #F7EEE3;
  border-radius: var(--iwk-radius-sm);
  padding: 0.15rem 0.45rem;
  margin-left: 0.35rem;
}

/* Callouts, copy-paste wording blocks, and tables */
body:not(.page-template-landing-page) blockquote,
.iwk-callout {
  background: var(--iwk-accent-soft);
  border: 1px solid var(--iwk-line);
  border-left: 4px solid var(--iwk-accent);
  border-radius: 0 var(--iwk-radius-sm) var(--iwk-radius-sm) 0;
  padding: 14px 18px;
  margin: 1.35em 0;
}

body:not(.page-template-landing-page) table,
.iwk-calc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0;
  font-variant-numeric: tabular-nums;
}

body:not(.page-template-landing-page) th,
body:not(.page-template-landing-page) td,
.iwk-calc-table th,
.iwk-calc-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--iwk-line);
}

body:not(.page-template-landing-page) th,
.iwk-calc-table th {
  background: var(--iwk-surface);
  font-weight: 700;
}

.iwk-calc-table td:not(:first-child),
.iwk-calc-table th:not(:first-child) {
  text-align: right;
}

/* Calculators & checklists ([iwk_donation_fees], [iwk_ai_readiness]) */
.iwk-calc,
.iwk-readiness {
  background: var(--iwk-paper);
  border: 1px solid var(--iwk-line);
  border-top: 3px solid var(--iwk-accent);
  border-radius: var(--iwk-radius);
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
}

.iwk-calc label {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-right: 1rem;
  flex-wrap: wrap;
}

.iwk-calc input[type="number"] {
  width: 9rem;
}

.iwk-calc-pending {
  font-style: italic;
  color: var(--iwk-muted);
}

.iwk-merchant {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25em 1em;
  margin: 1em 0;
}

.iwk-merchant dt { font-weight: 700; }
.iwk-merchant dd { margin: 0; }

/* Footer */
body:not(.page-template-landing-page) .site-info {
  background: var(--iwk-ink);
  color: var(--iwk-paper);
  font-size: 15px;
  text-align: left;
}

body:not(.page-template-landing-page) .inside-site-info,
body:not(.page-template-landing-page) .site-info .inside-site-info {
  display: block;
  max-width: var(--iwk-measure);
  margin: 0 auto;
  padding: 28px 24px 32px;
}

body:not(.page-template-landing-page) .site-info a {
  color: var(--iwk-accent-bright);
}

/* Phasma Consent retint (follows per-site --iwk-accent) */
.phasma-consent,
.phasma-consent-reopen {
  --pc-primary: var(--iwk-accent);
  --pc-primary-dark: var(--iwk-accent-dark);
  --pc-ink: var(--iwk-ink);
  --pc-ink-dark: var(--iwk-ink-deep);
  --pc-text: var(--iwk-ink);
  --pc-muted: var(--iwk-muted);
}

@media (max-width: 768px) {
  body:not(.page-template-landing-page) { font-size: 17px; }
  body:not(.page-template-landing-page) .inside-article { padding: 24px 20px 30px; }
}
