/* ==========================================================================
   Single article page — reading layout
   ========================================================================== */

/* Reading progress bar under the sticky header */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--brass-light), var(--brass)); transition: width .1s linear; }

/* ---------- Header band ---------- */
.article-top {
  position: relative; color: #fff;
  background: radial-gradient(1000px 420px at 85% -20%, #2c5547 0%, #1f3a32 50%, #142822 100%);
  padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 64px);
  overflow: hidden;
}
.article-top::after { /* faint ruled lines, like a court ledger */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255,255,255,.03) 39px 40px);
}
.article-column { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.article-back { color: var(--brass-light); text-decoration: none; font-size: .9rem; font-weight: 500; display: inline-block; margin-bottom: 22px; }
.article-back:hover { color: #fff; }
.article-cat {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-light); text-decoration: none; padding: 5px 12px; border: 1px solid rgba(201,164,92,.6); border-radius: 999px; margin-bottom: 18px;
}
.article-cat:hover { color: #fff; border-color: #fff; }
.article-top h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.15; margin: 0 0 16px; text-wrap: balance; }
.article-standfirst { color: rgba(255,255,255,.84); font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.6; margin: 0; text-wrap: pretty; }

.article-byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(201,164,92,.35); }
.byline-mark { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--brass-light); background: rgba(255,255,255,.06); border: 1px solid rgba(201,164,92,.6); }
.byline-mark svg { width: 30px; height: 27px; }
.byline-text { display: flex; flex-direction: column; line-height: 1.35; }
.byline-text strong { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: #fff; }
.byline-text span { font-size: .86rem; color: rgba(255,255,255,.68); }
.byline-text span i { font-style: normal; padding: 0 6px; color: var(--brass-light); }

/* ---------- Body ---------- */
.article-main { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 52px) var(--gutter) 8px; }
.article-main .article-hero { max-width: none; margin: 0 0 32px; padding: 0; }

/* Contents box */
.article-toc { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--brass-light); border-radius: 6px; padding: 20px 24px; margin: 0 0 36px; }
.article-toc h2 { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 0 0 12px; }
.article-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: grid; gap: 2px; }
.article-toc li { counter-increment: toc; display: flex; gap: 12px; align-items: baseline; }
.article-toc li::before { content: counter(toc, decimal-leading-zero); font: 600 .8rem var(--sans); color: var(--brass); min-width: 1.6em; }
.article-toc a { color: var(--ink); text-decoration: none; font-size: .98rem; padding: 4px 0; border-bottom: 1px solid transparent; }
.article-toc a:hover { color: var(--green); border-bottom-color: var(--brass-light); }

/* Prose */
.article-prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.8; color: #262a29; max-width: none; }
.article-prose > p:first-child { font-size: 1.24rem; line-height: 1.7; color: var(--ink); }
.article-prose > p:first-child::first-letter {
  float: left; font-size: 3.4em; line-height: .9; font-weight: 500; color: var(--green);
  padding: .06em .12em 0 0; margin-top: .02em;
}
.article-prose p { margin: 0 0 1.25em; }
.article-prose strong { color: var(--ink); font-weight: 600; }
.article-prose a { color: var(--green); text-decoration-color: var(--brass-light); text-decoration-thickness: 1.5px; }

.article-prose h2 {
  position: relative; font-size: clamp(1.4rem, 2.6vw, 1.7rem); color: var(--green); text-align: left;
  margin: 2.2em 0 .8em; padding-top: 1em; border-top: 1px solid var(--line); scroll-margin-top: 96px;
}
.article-prose h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--brass-light); }
.article-prose h3 { font-size: 1.22rem; color: var(--ink); margin: 1.8em 0 .6em; scroll-margin-top: 96px; }

/* Straight left and right edges, like a printed document (left-aligned on phones) */
.article-prose p, .article-prose li { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
.article-prose .key-points p { text-align: left; }
@media (max-width: 600px) { .article-prose p, .article-prose li { text-align: left; hyphens: manual; } }

/* Bulleted lists: brass diamonds */
.article-prose ul { list-style: none; margin: 0 0 1.4em; padding: 0; }
.article-prose ul li { position: relative; padding-left: 1.6em; margin-bottom: .65em; }
.article-prose ul li::before { content: ""; position: absolute; left: .25em; top: .72em; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }

/* Numbered lists: step cards */
.article-prose ol { list-style: none; counter-reset: step; margin: 0 0 1.6em; padding: 0; display: grid; gap: 12px; }
.article-prose ol li {
  counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 18px 16px 64px; margin: 0; box-shadow: 0 1px 2px rgba(20,40,34,.04);
}
.article-prose ol li::before {
  content: counter(step); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 600 .95rem var(--sans); color: #fff; background: var(--green); box-shadow: 0 0 0 3px var(--green-tint);
}

/* Quotes */
.article-prose blockquote { margin: 1.8em 0; padding: 18px 22px; background: var(--green-tint); border-left: 3px solid var(--brass); border-radius: 0 6px 6px 0; color: var(--ink); font-style: italic; }
.article-prose blockquote p:last-child { margin-bottom: 0; }

/* "In short" / summary section: highlighted box */
.key-points {
  margin: 2.4em 0 1em; padding: 24px 26px 8px; border-radius: 8px;
  background: linear-gradient(160deg, #f7f2e4 0%, #f1ead6 100%);
  border: 1px solid #e5d7b2; border-top: 3px solid var(--brass-light);
}
.article-prose .key-points h2 {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 10px; padding: 0; border: 0;
}
.article-prose .key-points h2::before { display: none; }
.article-prose .key-points p { font-size: 1.12rem; color: var(--ink); }

/* Tools row: share + PDF */
.article-main .article-tools { margin: 36px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-main .share { margin: 0; align-items: center; }
.article-main .share a { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 500; color: var(--green); background: var(--white); }
.article-main .share a:hover { border-color: var(--green); color: var(--green); }
.article-main .share span { font-size: .88rem; }

/* Contact band at the end (shares styling with topic pages) */
.article-main .contact-band { margin: 40px 0 8px; }

.article-disclaimer { max-width: 760px; margin: 0 auto 56px; padding: 0 var(--gutter); }
.article-disclaimer p { font-family: var(--sans); font-size: .88rem; color: var(--slate); margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }

/* More articles */
.more-articles { background: #f3f1ea; padding-top: clamp(40px, 6vw, 64px) !important; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  .article-prose { font-size: 1.06rem; line-height: 1.75; }
  .article-prose > p:first-child { font-size: 1.12rem; }
  .article-prose > p:first-child::first-letter { font-size: 3em; }
  .article-prose ol li { padding: 14px 14px 14px 56px; }
  .article-prose ol li::before { left: 12px; top: 13px; width: 30px; height: 30px; }
  .article-toc { padding: 16px 18px; }
  .key-points { padding: 20px 18px 6px; }
}

@media (prefers-reduced-motion: reduce) { .read-progress { transition: none; } html { scroll-behavior: auto; } }
html { scroll-behavior: smooth; }

/* ---------- Print / Save as PDF ---------- */
@media print {
  .read-progress, .article-back, .article-toc, .article-main .contact-band, .article-main .article-tools { display: none !important; }
  .article-top { background: none; color: #000; padding: 0 0 12pt; border-bottom: 1px solid #999; }
  .article-top::after { display: none; }
  .article-top h1, .byline-text strong { color: #000; }
  .article-standfirst, .byline-text span { color: #333; }
  .article-cat { color: #000; border-color: #999; }
  .byline-mark { color: #000; border-color: #999; }
  .article-column, .article-main, .article-disclaimer { max-width: none; padding-left: 0; padding-right: 0; }
  .article-prose { font-size: 11.5pt; line-height: 1.55; }
  .article-prose > p:first-child::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }
  .article-prose ol li { box-shadow: none; break-inside: avoid; }
  .article-prose h2 { break-after: avoid; }
  .key-points { break-inside: avoid; background: none; }
}
