/*
Theme Name: Ember Run E07f
Version: 1.0
*/
:root {
  --mil5d3e-accent: #a725a1;
  --mil5d3e-ink: #1e151c;
  --mil5d3e-paper: #fcfdfc;
  --mil5d3e-radius: 12px;
  --mil5d3e-font: -apple-system, "Segoe UI", Roboto, sans-serif;
  --mil5d3e-muted: color-mix(in srgb, var(--mil5d3e-ink) 62%, var(--mil5d3e-paper));
  --mil5d3e-rule: color-mix(in srgb, var(--mil5d3e-ink) 14%, var(--mil5d3e-paper));
  --mil5d3e-measure: 67ch;
  /* The page shell, distinct from the reading measure.
     Capping the masthead, footer and listings at a 68ch prose column is what
     made every site read as a narrow document rather than a publication. Prose
     keeps the measure; the chrome around it does not. */
  --mil5d3e-shell: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mil5d3e-paper);
  color: var(--mil5d3e-ink);
  font-family: var(--mil5d3e-font);
  font-size: 1.03rem;
  line-height: 1.76;
}

/* Keyboard users need a way past the nav; visible only when focused. */
.mil5d3e-skip {
  position: absolute; left: -9999px;
}
.mil5d3e-skip:focus {
  left: 1rem; top: 1rem; z-index: 10;
  background: var(--mil5d3e-paper); padding: .6rem 1rem;
}

a { color: var(--mil5d3e-accent); text-underline-offset: .16em; }
a:hover { text-decoration: none; }

img, video, iframe { max-width: 100%; height: auto; }

.mil5d3e-main, .mil5d3e-foot {
  max-width: var(--mil5d3e-shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* The masthead spans the viewport; its contents do not. Constraining the
   element itself made a tinted header stop dead in the middle of the screen. */
.mil5d3e-masthead, .mil5d3e-top { width: 100%; }
.mil5d3e-bar, .mil5d3e-identity,
.mil5d3e-masthead > nav, .mil5d3e-top > nav,
/* One header variant has no inner wrapper -- its brand and tagline are direct
   children of the masthead, so without these they sat flush against the
   viewport edge while the nav beneath them was correctly indented. */
.mil5d3e-masthead > .mil5d3e-brand, .mil5d3e-top > .mil5d3e-brand,
.mil5d3e-masthead > .mil5d3e-tagline, .mil5d3e-top > .mil5d3e-tagline {
  max-width: var(--mil5d3e-shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* The reading column. Long-form text needs a measure; a nav bar and a footer
   grid do not, and constraining them to one is what looked unfinished. */
.mil5d3e-prose,
.mil5d3e-article-head,
.mil5d3e-title,
.mil5d3e-article-hero,
.mil5d3e-head-block,
.mil5d3e-article-foot,
.mil5d3e-adjacent,
.mil5d3e-takeaway,
.mil5d3e-standfirst,
.mil5d3e-toc,
.mil5d3e-jumps,
.mil5d3e-related,
.mil5d3e-hub-lead,
.mil5d3e-byline,
.mil5d3e-authorbox,
.mil5d3e-crumbs {
  max-width: var(--mil5d3e-measure);
  margin-inline: auto;
}

.mil5d3e-masthead, .mil5d3e-top {
  padding-block: 2rem 1rem;
  border-bottom: 1px solid var(--mil5d3e-rule);
}
.mil5d3e-brand {
  margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em;
}
.mil5d3e-brand a { color: inherit; text-decoration: none; }
.mil5d3e-tagline { margin: .25rem 0 0; color: var(--mil5d3e-muted); font-size: .95rem; }

.mil5d3e-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.1rem; margin: .75rem 0 0; padding: 0; }
.mil5d3e-nav a { text-decoration: none; font-size: .95rem; }

.mil5d3e-main { padding-block: 2.5rem 3rem; }

h1, h2, h3 { line-height: 1.34; letter-spacing: -.015em; }
h1 { font-size: clamp(2.00rem, 1.41rem + 2vw, 2.83rem); margin: 0 0 .5rem; }
h2 { font-size: 1.68rem; margin: 0 0 .35rem; }

.mil5d3e-meta, .mil5d3e-byline, .mil5d3e-kicker {
  color: var(--mil5d3e-muted); font-size: .9rem; margin: 0 0 1rem;
}
.mil5d3e-byline .mil5d3e-author { font-weight: 600; }
.mil5d3e-byline time::before { content: " · "; }

/* Long-form reading: generous spacing, clear hierarchy, readable tables. */
.mil5d3e-prose > * + * { margin-top: 1.409em; }
.mil5d3e-prose h2 { margin-top: 2.68em; }
.mil5d3e-prose h3 { margin-top: 2.18em; font-size: 1.41rem; }
.mil5d3e-prose a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* --- front page --------------------------------------------------------------
   Hero, stat row, card grid, methodology block, contributors. The shape is taken
   from comparable publications in this category rather than invented: a title
   over a column of prose reads as a draft however well it is typeset. */

.mil5d3e-hero {
  padding-block: 1.5rem 2.2rem;
  border-bottom: 1px solid var(--mil5d3e-rule);
  margin-bottom: 2.4rem;
}
.mil5d3e-hero-title {
  font-size: clamp(2.00rem, 1.41rem + 3vw, 3.25rem);
  margin: 0 0 .7rem; max-width: 22ch;
}
.mil5d3e-hero-lead {
  font-size: 1.154rem; color: var(--mil5d3e-muted);
  max-width: 62ch; margin: 0 0 1.6rem;
}
.mil5d3e-hero-cta { margin: 1.4rem 0 0; }
.mil5d3e-hero-cta a {
  display: inline-block; text-decoration: none; font-weight: 600;
  border: 1px solid var(--mil5d3e-accent); border-radius: var(--mil5d3e-radius);
  padding: .55rem 1.1rem;
}
.mil5d3e-hero-cta a:hover { background: var(--mil5d3e-accent); color: var(--mil5d3e-paper); }

/* The stat row. Numbers pulled from the articles' own citable facts. */
.mil5d3e-stats {
  display: grid; gap: 1.2rem; margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.mil5d3e-stat dt {
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.83rem);
  font-weight: 700; color: var(--mil5d3e-accent); line-height: 1.1;
}
.mil5d3e-stat dd {
  margin: .3rem 0 0; font-size: .86rem; color: var(--mil5d3e-muted);
  text-transform: uppercase; letter-spacing: .06em;
}

.mil5d3e-section-head {
  font-size: 1.62rem;
  margin: 0 0 1.1rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--mil5d3e-accent); display: inline-block;
}
.mil5d3e-spokes, .mil5d3e-editorial, .mil5d3e-people {
  margin-top: 3rem;
}

.mil5d3e-spoke-table { width: 100%; border-collapse: collapse; }
.mil5d3e-spoke-table th, .mil5d3e-spoke-table td {
  text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--mil5d3e-rule);
  font-weight: 400; vertical-align: top;
}
.mil5d3e-spoke-table thead th {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--mil5d3e-muted); border-bottom-width: 2px;
}
.mil5d3e-spoke-table tbody th a { font-weight: 600; }
.mil5d3e-spoke-table td { color: var(--mil5d3e-muted); font-size: .92rem; }

/* Methodology and independence -- the trust block. */
.mil5d3e-editorial-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.mil5d3e-editorial-grid h3 { font-size: 1.41rem; margin: 0 0 .4rem; }
.mil5d3e-editorial-grid p { margin: 0; color: var(--mil5d3e-muted); font-size: .93rem; }

.mil5d3e-people-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.mil5d3e-person-name { margin: 0 0 .3rem; font-weight: 700; }
.mil5d3e-person-name a { text-decoration: none; }
.mil5d3e-person-bio { margin: 0; color: var(--mil5d3e-muted); font-size: .9rem; }

/* Article composition: summary 1, contents 3, order 2. */

/* Standfirst: no box, just larger opening text. */
.mil5d3e-standfirst {
  border: 0; background: none; padding: 0; margin: 0 auto 1.5rem;
  font-size: 1.215rem; line-height: 1.5; color: var(--mil5d3e-ink);
}
.mil5d3e-standfirst-label { display: none; }




/* Summary closes the piece, so it needs a top rule rather than a tint. */
.mil5d3e-takeaway {
  border-left: 0; border-top: 3px solid var(--mil5d3e-accent);
  background: none; padding-left: 0; margin-top: 2.5rem;
}


/* Inline: one sentence of links rather than a block. */
.mil5d3e-related ul { display: block; margin: 0; padding: 0; }
.mil5d3e-related li { display: inline; border: 0; padding: 0; }
.mil5d3e-related li::after { content: " · "; color: var(--mil5d3e-muted); }
.mil5d3e-related li:last-child::after { content: ""; }
.mil5d3e-related-head { border: 0; font-size: 1rem; display: inline; margin-right: .5rem; }

/* Article page: takeaway box, contents, then the prose. */
.mil5d3e-takeaway {
  max-width: var(--mil5d3e-measure); margin: 0 auto 1.6rem;
  border-left: 4px solid var(--mil5d3e-accent);
  background: color-mix(in srgb, var(--mil5d3e-accent) 6%, var(--mil5d3e-paper));
  border-radius: var(--mil5d3e-radius); padding: 1rem 1.2rem;
}
.mil5d3e-takeaway-label {
  margin: 0 0 .35rem; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--mil5d3e-accent);
}
.mil5d3e-takeaway-text { margin: 0; font-size: 1.071rem; }

.mil5d3e-toc {
  max-width: var(--mil5d3e-measure); margin: 0 auto 2rem;
  border: 1px solid var(--mil5d3e-rule); border-radius: var(--mil5d3e-radius);
  padding: .9rem 1.2rem;
}
.mil5d3e-toc-label {
  margin: 0 0 .5rem; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--mil5d3e-muted);
}
.mil5d3e-toc ol { margin: 0; padding-left: 1.2em; }
.mil5d3e-toc li { margin: .25em 0; }
.mil5d3e-toc a { text-decoration: none; }
.mil5d3e-toc a:hover { text-decoration: underline; }
/* Jump links must not land the heading under a sticky header. */
.mil5d3e-prose h2 { scroll-margin-top: 1.5rem; }

/* Front page: the hub lead, then its spokes. */
.mil5d3e-hub-title { margin: 0 0 .75rem; }
.mil5d3e-spokes { margin-top: 3.66em; border-top: 1px solid var(--mil5d3e-rule); padding-top: 1.6rem; }
.mil5d3e-spokes-heading { font-size: 1.52rem; margin: 0 0 1rem; }
.mil5d3e-spoke-list { list-style: none; margin: 0; padding: 0; }
.mil5d3e-spoke-list .mil5d3e-spoke { padding: .7rem 0; border-bottom: 1px solid var(--mil5d3e-rule); }
.mil5d3e-spoke-list .mil5d3e-spoke a { font-weight: 600; }
.mil5d3e-spoke-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(284px, 1fr));
}
.mil5d3e-spoke-grid .mil5d3e-spoke {
  border: 1px solid var(--mil5d3e-rule); border-radius: var(--mil5d3e-radius); padding: .9rem 1rem;
}
.mil5d3e-spoke-grid .mil5d3e-spoke h3 { margin: 0 0 .35rem; font-size: 1.41rem; }
.mil5d3e-spoke-note { display: block; color: var(--mil5d3e-muted); font-size: .9rem; margin: .2rem 0 0; }

/* --- chrome ---------------------------------------------------------------
   A reader decides whether a site is real before reading a word of it: is there
   a masthead, navigation, an author, a footer with something in it. The
   templates carried none of that, which read as unfinished however good the
   prose was. */

/* Masthead. A wordmark beside the site's own generated mark, a tagline, and a
   nav that reads as navigation -- the previous header was a line of text and a
   row of links, which is what made every site look unfinished. */
.mil5d3e-masthead, .mil5d3e-top {
  background: color-mix(in srgb, var(--mil5d3e-accent) 5%, var(--mil5d3e-paper));
  border-bottom: 2px solid var(--mil5d3e-rule);
}
.mil5d3e-bar, .mil5d3e-identity {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
}
.mil5d3e-brand { margin: 0; }
.mil5d3e-brand a {
  text-decoration: none; color: inherit;
  display: inline-flex; align-items: center; gap: .6rem;
}
.mil5d3e-mark svg { display: block; width: 30px; height: 30px; border-radius: 4px; }
.mil5d3e-wordmark {
  font-weight: 700; font-size: 1.54rem;
  letter-spacing: -.015em; line-height: 1.1;
}
.mil5d3e-tagline { margin: 0; color: var(--mil5d3e-muted); font-size: .9rem; }

/* Header ARRANGEMENT 3 of 6.
   Patterns taken from how editorial sites actually build mastheads -- classic
   (logo left, nav right), magazine (large wordmark over a ruled nav row),
   centred masthead, minimal bar, utility strip, and stacked. The four template
   variants emit the same three elements in different wrapper tags, which renders
   identically every time; where those pieces SIT is a CSS decision. */

.mil5d3e-masthead, .mil5d3e-top {
  padding-block: 1.1rem;
}
.mil5d3e-nav ul { justify-content: flex-start; }








/* Minimal bar: short, quiet, content-first. */
.mil5d3e-masthead, .mil5d3e-top { padding-block: .55rem; }
@media (min-width: 820px) {
  .mil5d3e-masthead, .mil5d3e-top {
    display: flex; align-items: center; gap: 1.75rem;
    max-width: var(--mil5d3e-shell); margin-inline: auto; padding-inline: 1.25rem;
  }
  .mil5d3e-bar, .mil5d3e-identity { padding-inline: 0; margin-inline: 0; }
  .mil5d3e-masthead > nav, .mil5d3e-top > nav { padding-inline: 0; max-width: none; }
  .mil5d3e-tagline { display: none; }
}
.mil5d3e-wordmark { font-size: 1.44rem; }
.mil5d3e-mark svg { width: 26px; height: 26px; }
.mil5d3e-nav a { font-size: .86rem; }





/* Breadcrumbs: orientation for a reader, hierarchy for a crawler. *//* Breadcrumbs: orientation for a reader, hierarchy for a crawler. */
.mil5d3e-crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: .45rem;
  margin: 0 0 1.4rem; padding: 0; font-size: .88rem; color: var(--mil5d3e-muted);
}
.mil5d3e-crumbs li + li::before { content: "/ "; color: var(--mil5d3e-rule); }
.mil5d3e-crumbs a { color: inherit; }

/* The author box is the E-E-A-T signal a reader actually looks at. */
.mil5d3e-authorbox {
  margin-top: 3.38em;
  border-top: 2px solid var(--mil5d3e-accent);
  padding-top: 1.1rem;
}
.mil5d3e-authorbox-name { margin: 0 0 .35rem; font-weight: 700; }
.mil5d3e-authorbox-bio { margin: 0; color: var(--mil5d3e-muted); font-size: .95rem; }
.mil5d3e-authorbox-more { margin: .5rem 0 0; font-size: .9rem; }

.mil5d3e-related { margin-top: 3.10em; }
.mil5d3e-related-head { font-size: 1.49rem; margin: 0 0 .8rem; }
.mil5d3e-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.mil5d3e-related li {
  border-left: 3px solid var(--mil5d3e-rule); padding-left: .9rem;
}
.mil5d3e-related a { font-weight: 600; }
.mil5d3e-related span {
  display: block; color: var(--mil5d3e-muted); font-size: .9rem; margin-top: .2rem;
}

/* A footer with substance. An empty one reads as an abandoned site. */
.mil5d3e-foot {
  margin-top: 3.5rem; border-top: 1px solid var(--mil5d3e-rule);
  padding-block: 1.8rem 1rem;
}
.mil5d3e-footgrid {
  display: grid; gap: 1.6rem; margin-bottom: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.mil5d3e-footname { margin: 0 0 .3rem; font-weight: 700; }
.mil5d3e-footabout p { margin: 0; color: var(--mil5d3e-muted); font-size: .92rem; }
.mil5d3e-footlinks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.mil5d3e-footlinks a { font-size: .92rem; }
.mil5d3e-copy, .mil5d3e-disclaim {
  color: var(--mil5d3e-muted); font-size: .85rem; margin: .4rem 0 0;
}
.mil5d3e-disclaim { padding-bottom: 2rem; }

/* Nav is built from the hub's spokes; no menu is configured by hand. */
.mil5d3e-nav ul {
  list-style: none; display: flex; flex-wrap: wrap;
  column-gap: 1.1rem; row-gap: .35rem; margin: 0; padding: 0;
}
.mil5d3e-nav li { margin: 0; }
.mil5d3e-nav a { text-decoration: none; font-size: .95rem; white-space: nowrap; }
.mil5d3e-nav a:hover { text-decoration: underline; }
.mil5d3e-prose ul, .mil5d3e-prose ol { padding-left: 1.3em; }
.mil5d3e-prose li + li { margin-top: .4em; }
.mil5d3e-prose blockquote {
  margin-inline: 0 0 0 1.2em; font-style: italic; color: var(--mil5d3e-muted);
}
.mil5d3e-prose code {
  font-size: .92em;
  background: color-mix(in srgb, var(--mil5d3e-ink) 7%, var(--mil5d3e-paper));
  padding: .12em .35em; border-radius: var(--mil5d3e-radius);
}
.mil5d3e-prose pre { overflow-x: auto; padding: 1rem; border-radius: var(--mil5d3e-radius);
  background: color-mix(in srgb, var(--mil5d3e-ink) 7%, var(--mil5d3e-paper)); }
.mil5d3e-prose pre code { background: none; padding: 0; }
.mil5d3e-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.mil5d3e-prose th, .mil5d3e-prose td {
  text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--mil5d3e-rule);
}

.mil5d3e-feed, .mil5d3e-list { display: grid; gap: 2.2rem; }
.mil5d3e-index { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; }
.mil5d3e-card, .mil5d3e-entry, .mil5d3e-item, .mil5d3e-block {
  border-radius: var(--mil5d3e-radius);
}
.mil5d3e-card-title a, .mil5d3e-item-link { text-decoration: none; }
.mil5d3e-card-title a:hover, .mil5d3e-item-link:hover { text-decoration: underline; }
.mil5d3e-excerpt { color: var(--mil5d3e-muted); }
.mil5d3e-excerpt p { margin: .4rem 0 0; }

.mil5d3e-pager ul, .mil5d3e-adjacent {
  display: flex; flex-wrap: wrap; gap: 1rem; list-style: none;
  padding: 0; margin-top: 3rem; font-size: .95rem;
}
.mil5d3e-adjacent { justify-content: space-between; border-top: 1px solid var(--mil5d3e-rule); padding-top: 1.5rem; }

.mil5d3e-foot {
  border-top: 1px solid var(--mil5d3e-rule);
  padding-block: 1.5rem 3rem;
  color: var(--mil5d3e-muted); font-size: .9rem;
}
.mil5d3e-footnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; margin: 0 0 .6rem; }
.mil5d3e-copy { margin: 0; }

.mil5d3e-empty { color: var(--mil5d3e-muted); }

@media (prefers-color-scheme: dark) {
  :root {
    --mil5d3e-paper: #141a14;
    --mil5d3e-ink: #ece9ec;
    --mil5d3e-accent: #da81d6;
  }
}
