/* Hydra theme family: editorial. Re-skin per site by changing ONLY the variables in :root, using the variation printed by
   tools/assign_theme.py (the home page's own colours win when it has them). Class names are prefixed snake_case (ed_...). */
:root {
  --ed-ink:      #1b1b1b;
  --ed-paper:    #fbfaf7;
  --ed-accent:   #b3261e;   /* links, rules, step numbers */
  --ed-quiet:    #6b6b6b;
  --ed-hair:     #dcd8d0;
  --ed-stripe:   #f2efe8;   /* table stripes */
  --ed-pull:     #f4efe4;   /* pull-out background */
  --ed-display:  'Libre Caslon Display', serif;
  --ed-serif:    'Libre Caslon Text', serif;
  --ed-corner:   2px;
  --ed-rhythm:   1.2;         /* spacing scale */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ed-paper); color: var(--ed-ink); font: 400 1.125rem/1.75 var(--ed-serif); }
a { color: var(--ed-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.ed_page { min-height: 100vh; }

/* Thin top menu, then the nameplate */
.ed_top { text-align: center; }
.ed_menu { border-bottom: 1px solid var(--ed-hair); }
.ed_menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 26px; margin: 0 auto; padding: 8px 16px; }
.ed_menu a { font: 600 0.7rem/1.9 var(--ed-serif); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ed-quiet); text-decoration: none; white-space: nowrap; }
.ed_menu a:hover, .ed_menu a[aria-current="page"] { color: var(--ed-ink); box-shadow: inset 0 -1px 0 var(--ed-accent); }
.ed_nameplate { padding: calc(18px * var(--ed-rhythm)) 16px 0; }
.ed_brand { font: italic 600 1.5rem/1.2 var(--ed-display); color: var(--ed-ink); text-decoration: none; }
@media (max-width: 700px) {
  .ed_menu { gap: 0 16px; padding: 6px 12px; }
  .ed_menu a { font-size: 0.64rem; letter-spacing: 0.1em; }
  .ed_nameplate { padding-top: 12px; }
  .ed_brand { font-size: 1.2rem; }
}

/* Narrow centred column */
.ed_main { max-width: 680px; margin: 0 auto; padding: calc(28px * var(--ed-rhythm)) 20px calc(48px * var(--ed-rhythm)); }
.ed_head { margin-bottom: 8px; text-align: left; }
.ed_trail { margin: 0 0 18px; font-size: 0.8rem; color: var(--ed-quiet); text-align: center; }
.ed_trail a { color: var(--ed-quiet); text-decoration: none; }
.ed_trail i { font-style: normal; margin: 0 6px; color: var(--ed-hair); }
.ed_trail em { font-style: italic; }
.ed_title { margin: 0 0 18px; font: 700 clamp(2rem, 6vw, 3.2rem)/1.08 var(--ed-display); letter-spacing: -0.02em; text-align: center; }
.ed_meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 18px; margin: 0 0 22px; font-size: 0.82rem; color: var(--ed-quiet); }
.ed_byline { font-style: normal; text-transform: uppercase; letter-spacing: 0.08em; }
.ed_byline a { color: var(--ed-ink); text-decoration: none; font-weight: 600; }
.ed_date { font-style: italic; }
.ed_rank, .ed_author_fig { margin-left: 0; margin-right: 0; }
.ed_standfirst { margin: 0 0 22px; font-size: 1.2rem; line-height: 1.6; }
.ed_rank { margin: 0 0 28px; padding: 0; }
@media (max-width: 700px) {
  .ed_main { padding: 16px 16px 36px; }
  .ed_trail { margin-bottom: 10px; }
  .ed_title { font-size: 1.85rem; margin-bottom: 12px; }
  .ed_meta { margin-bottom: 14px; }
  .ed_standfirst { font-size: 1.06rem; margin-bottom: 16px; }
}

/* Text */
.ed_text h2 { margin: calc(48px * var(--ed-rhythm)) 0 12px; font: 700 clamp(1.45rem, 3.4vw, 1.9rem)/1.2 var(--ed-display); letter-spacing: -0.01em; }
.ed_text h2::after { content: ""; display: block; width: 32px; margin-top: 12px; border-top: 2px solid var(--ed-accent); }
.ed_text h3 { margin: calc(28px * var(--ed-rhythm)) 0 6px; font: italic 600 1.18rem/1.35 var(--ed-display); }
.ed_text p { margin: 0 0 calc(18px * var(--ed-rhythm)); }
.ed_text ul, .ed_text ol { margin: 0 0 20px; padding-left: 24px; }
.ed_text li { margin-bottom: 6px; }
.ed_steps { list-style: none; counter-reset: edstep; padding-left: 0 !important; }
.ed_steps li { counter-increment: edstep; position: relative; padding-left: 48px; }
.ed_steps li::before { content: counter(edstep, decimal-leading-zero); position: absolute; left: 0; top: -2px; font: italic 700 1.3rem/1.4 var(--ed-display); color: var(--ed-accent); }
.ed_table { margin: 20px 0 6px; overflow-x: auto; }
.ed_table table { width: 100%; border-collapse: collapse; border: 0; font-size: 0.92rem; line-height: 1.5; }
.ed_table th { padding: 10px 12px; text-align: left; font-weight: 700; font-variant: small-caps; letter-spacing: 0.04em; border: 0; }
.ed_table td { padding: 10px 12px; vertical-align: top; border: 0; }
.ed_table tbody tr:nth-child(odd) { background: var(--ed-stripe); }
.ed_source { font-size: 0.8rem; font-style: italic; color: var(--ed-quiet); }
.ed_pullout { margin: 26px 0 28px; padding: 18px 22px; background: var(--ed-pull); border-top: 3px solid var(--ed-ink); border-bottom: 1px solid var(--ed-ink); border-radius: var(--ed-corner); font: italic 400 1.15rem/1.6 var(--ed-display); }
.ed_pullout p:last-child { margin-bottom: 0; }
.ed_pullout strong { font-style: normal; color: var(--ed-accent); }

/* Pillar pages: list of guides (hidden while empty) */
.ed_more { margin: 40px 0 0; padding-top: 14px; border-top: 3px double var(--ed-ink); }
.ed_more:has(ul:empty) { display: none; }
.ed_more_label, .ed_notes_label { display: block; margin-bottom: 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ed-quiet); text-align: center; }
.ed_more_list { list-style: none; margin: 0; padding: 0; }
.ed_more_list a { display: block; padding: 9px 0; border-bottom: 1px solid var(--ed-hair); font: 600 1.05rem/1.4 var(--ed-display); color: var(--ed-ink); text-decoration: none; }
.ed_more_list a:hover { color: var(--ed-accent); }

/* Author (person author only): centred */
.ed_author { margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--ed-hair); text-align: center; }
.ed_author_fig { margin-top: 0; margin-bottom: 0; }
.ed_author_img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.ed_author_name { display: block; margin-top: 8px; font: 700 1.1rem/1.3 var(--ed-display); color: var(--ed-ink); text-decoration: none; }
.ed_author_role { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ed-quiet); }
.ed_author_text { max-width: 520px; margin: 8px auto 0; font-size: 0.95rem; font-style: italic; color: var(--ed-quiet); }

/* Notes (sources) */
.ed_notes { margin: 32px 0 0; font-size: 0.82rem; line-height: 1.6; color: var(--ed-quiet); }
.ed_rule { width: 64px; margin: 0 auto 14px; border: 0; border-top: 1px solid var(--ed-ink); }
.ed_notes ol { margin: 0; padding-left: 22px; }

/* Home page only: cover */
.ed_cover { margin: 0 0 24px; padding: calc(26px * var(--ed-rhythm)) 0 18px; border-bottom: 3px double var(--ed-ink); text-align: center; }
.ed_cover .ed_title { font-size: clamp(2.2rem, 7vw, 3.8rem); }

/* Author page */
.ed_profile_img { display: block; width: 128px; height: 128px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; }
.ed_profile_role { text-transform: uppercase; letter-spacing: 0.08em; }
.ed_guides { padding-left: 24px; }
.ed_guides a { font-family: var(--ed-display); font-weight: 600; color: var(--ed-ink); }

/* Centred footer */
.ed_foot { max-width: 680px; margin: 0 auto; padding: 28px 20px 40px; border-top: 1px solid var(--ed-hair); text-align: center; font-size: 0.8rem; color: var(--ed-quiet); }
.ed_foot p { margin: 0 0 10px; }
.ed_foot_brand a { font: italic 600 1.15rem/1.2 var(--ed-display); color: var(--ed-ink); text-decoration: none; }
.ed_foot_nav a { display: inline-block; margin: 0 4px; color: var(--ed-quiet); text-decoration: none; }
.ed_foot_badges abbr, .ed_foot_badges em { display: inline-block; margin: 0 3px; padding: 0 8px; border: 1px solid var(--ed-quiet); border-radius: var(--ed-corner); font-size: 0.72rem; font-style: normal; letter-spacing: 0.06em; text-decoration: none; }
.ed_foot_text { margin: 0; line-height: 1.6; }
