/* Article pages. Same tokens, fonts and feel as the homepage. */
:root {
  --orange: #f2762e;
  --orange-dark: #d15a17;
  --orange-soft: #fce3d1;
  --teal: #0f4c47;
  --teal-soft: #1c6e63;
  --teal-softer: #dceeea;
  --gold: #e0a028;
  --gold-soft: #faecc9;
  --cream: #fdf6ec;
  --paper: #ffffff;
  --line: #eee2cf;
  --text: #2a2a28;
  --muted: #6b6b62;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  font-size: 1.12rem;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Helvetica Neue', Arial, sans-serif;
  color: var(--teal);
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1.1em; }
a { color: var(--orange-dark); }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange-dark); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--teal); color: #fff; padding: 12px 18px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* NAV, matches the homepage */
nav {
  position: sticky; top: 0; background: var(--cream);
  border-bottom: 1px solid var(--line); z-index: 10;
}
nav .wrap {
  max-width: 960px; display: flex; align-items: center;
  justify-content: space-between; padding: 20px 24px; gap: 16px;
}
.brand {
  font-family: 'Baloo 2', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700; font-size: 1.35rem; color: var(--teal); text-decoration: none;
}
.brand span { color: var(--orange); }
.nav-cta {
  display: inline-block; background: var(--orange); color: #fff; font-weight: 700;
  font-size: 1rem; padding: 12px 26px; border-radius: 999px; text-decoration: none;
  white-space: nowrap; box-shadow: 0 4px 14px rgba(209,90,23,0.3);
}
.nav-cta:hover { background: var(--orange-dark); color: #fff; }

/* ARTICLE HEAD */
.article-head { background: linear-gradient(160deg,#0f4c47 0%,#123f3b 55%,#0d3733 100%); color:#fff; padding: 52px 0 44px; }
.article-head h1 { color:#fff; font-size: clamp(2rem, 5vw, 3rem); max-width: 20ch; }
.article-head .standfirst { color:#d7ebe6; font-size: 1.16rem; margin: 0; max-width: 56ch; }
.crumbs { font-size: .9rem; color:#a9cec7; margin-bottom: 14px; }
.crumbs a { color:#a9cec7; }
.crumbs a:hover { color:#fff; }
.byline { font-size: .9rem; color:#a9cec7; margin-top: 18px; }
.flag-strip {
  height: 12px;
  background: linear-gradient(to bottom,#AE1C28 0%,#AE1C28 33.33%,#FFFFFF 33.33%,#FFFFFF 66.66%,#21468B 66.66%,#21468B 100%);
}

/* BODY */
article { padding: 48px 0 24px; }
article h2 { font-size: 1.7rem; margin-top: 2em; }
article h3 { font-size: 1.25rem; margin-top: 1.6em; }
article ul, article ol { margin: 0 0 1.2em; padding-left: 1.3em; }
article li { margin-bottom: .5em; }
article strong { color: var(--teal); }

.lead { font-size: 1.22rem; color: var(--teal-soft); font-weight: 500; }

blockquote {
  margin: 1.6em 0; padding: 18px 24px; background: var(--teal-softer);
  border-left: 5px solid var(--teal); border-radius: 0 10px 10px 0;
}
blockquote p:last-child { margin-bottom: 0; }

.nl { font-weight: 600; color: var(--teal); }
.say { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .95em; color: var(--orange-dark); }

.callout {
  background: var(--gold-soft); border: 1px solid #e8d49a; border-radius: 12px;
  padding: 20px 24px; margin: 1.8em 0;
}
.callout h3 { margin-top: 0; font-size: 1.1rem; }
.callout p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 460px; }
th, td { text-align: left; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 1rem; vertical-align: top; }
thead th { border-top: 0; font-family: 'Baloo 2', Arial, sans-serif; color: var(--teal); font-size: .95rem; }
tbody tr:nth-child(even) { background: #fffdf9; }

/* CTA */
.article-cta {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px; margin: 2.5em 0 1em; text-align: center;
}
.article-cta h2 { margin-top: 0; font-size: 1.5rem; }
.article-cta p { color: var(--muted); max-width: 44ch; margin-inline: auto; }
.btn {
  display: inline-block; background: var(--orange); color:#fff; font-weight: 700;
  padding: 15px 32px; border-radius: 999px; text-decoration: none; margin-top: 8px;
  box-shadow: 0 6px 18px rgba(209,90,23,0.35);
}
.btn:hover { background: var(--orange-dark); color:#fff; }

/* RELATED */
.related { border-top: 1px solid var(--line); padding: 34px 0 10px; }
.related h2 { font-size: 1.3rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.related a { font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }

footer {
  background: var(--teal); color: #cfe3df; text-align: center;
  padding: 34px 24px; font-size: .92rem; margin-top: 40px;
}
footer a { color: #ffd0ad; }

@media (max-width: 680px) {
  body { font-size: 1.06rem; }
  nav .wrap { padding: 16px 20px; }
  .brand { font-size: 1.15rem; }
  .nav-cta { padding: 10px 18px; font-size: .92rem; }
  .article-head { padding: 38px 0 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
