@charset "UTF-8";

/* The edition. Loaded after tenoclock.css, which carries the header - this
   page wears that header unchanged, so nothing below touches .bar, .view or
   anything else the board owns.

   Five sections, five shapes. Two earlier attempts laid them out identically
   and both read as the receipts page, which was the right criticism: a stack
   of equal rows says every section is the same kind of thing. They are not.
   A lead, a pair, a comparison table, a bar chart and a compact list.

   Serif for every headline, mono for every measurement. If a mark on this page
   is a number it is set in mono, and if it is news it is set in serif. */

:root { --amber: #c98b4f; --far: #8f9fd0; }

body.edition { overflow-y: auto; }
body.edition .frame { height: auto; min-height: 100vh; display: block; }

.sheet {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 26px 10px;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}

/* --- the title block ----------------------------------------------------- */

.ed-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  padding: 40px 0 22px;
}
.ed-top h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 1;
}
.ed-top .sub { margin: 10px 0 0; color: var(--dim); font-size: 1.05rem; }
/* The masthead is a title and a date now. Without the two lines of
   explanation under it the block was floating; this sets it back down. */
.ed-top { align-items: baseline; }
.ed-top h1 { margin-bottom: 0; }
.cut-note {
  margin: 8px 0 0;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  color: var(--dim);
}
.cut-note a { color: var(--live); text-decoration: none; }
.cut-note a:hover { text-decoration: underline; }
.ed-meta b { color: var(--ink); font-weight: 500; }

/* The archive. One line per edition, nothing else to say about it. */
.archive { list-style: none; margin: 0; padding: 0; }
.archive li { border-top: 1px solid var(--rule); }
.archive li:first-child { border-top: 0; }
.archive a {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; padding: 15px 0; text-decoration: none; color: var(--ink);
}
.archive a:hover .d, .archive a:focus .d { color: var(--live); }
.archive .d { font-size: 1.14rem; }
.archive .iso {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  color: var(--dim);
}
.ed-meta {
  margin: 0; text-align: right;
  font-family: var(--mono); font-size: 0.62rem; line-height: 1.8;
  letter-spacing: 0.08em; color: var(--dim);
}

/* --- section rules ------------------------------------------------------- */

.sec { padding: 26px 0 30px; border-top: 1px solid var(--rule); }

/* The section numbers count themselves. They used to be written into each
   call, so an empty section left the page reading 1, 3, 4. */
.sheet { counter-reset: sec; }
.sec-head .num::before { counter-increment: sec; content: counter(sec); }

.sec-head {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 20px;
}
.sec-head .num {
  font-family: var(--mono); font-size: 1.15rem; color: var(--dim);
  line-height: 1; flex: none;
}
.sec-head h2 {
  margin: 0; flex: none;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--live);
}
.sec-head .rule { flex: 1 1 auto; height: 1px; background: var(--rule); }
.sec-head .aside {
  flex: none; max-width: 42ch;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em;
  color: var(--dim); text-align: right;
}

/* --- shared type --------------------------------------------------------- */

.head { color: var(--ink); text-decoration: none; display: block;
        line-height: 1.17; text-wrap: balance; }
.head:hover, .head:focus { color: var(--live); }
.head.big { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.02em; }
.head.mid { font-size: clamp(1.4rem, 2.6vw, 1.95rem); letter-spacing: -0.014em; }
.head.small { font-size: 0.97rem; line-height: 1.35; }
.col .head, .row .head { font-size: 1.32rem; letter-spacing: -0.008em; }

.dek { margin: 12px 0 0; color: var(--dim); font-size: 0.98rem; line-height: 1.55;
       max-width: 52ch; }
/* The first sentence, set a shade brighter and larger than the rest of the
   summary, so the headline hands off to it rather than repeating itself. */
.dek.standfirst { color: #b9c2cf; font-size: 1.1rem; line-height: 1.45;
                  max-width: 44ch; }

.figs { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 18px 0 0; }
.fig { display: flex; flex-direction: column; gap: 2px; padding-right: 26px;
       border-right: 1px solid var(--rule); }
.fig:last-child { border-right: 0; padding-right: 0; }
.fig b {
  font-family: var(--mono); font-size: 1.55rem; font-weight: 500;
  color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums;
}
.fig span {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: lowercase; color: var(--dim);
}

.see {
  display: inline-block; margin: 18px 0 0;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  color: var(--live); text-decoration: none;
  border-bottom: 1px solid rgba(79, 214, 201, 0.35); padding-bottom: 2px;
}
.see:hover, .see:focus { border-bottom-color: var(--live); }

/* --- 1 the lead ---------------------------------------------------------- */

.lead-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.lead-side .dek { margin: 0; font-size: 0.9rem; color: var(--dim); }

/* The lead's biggest claim is a number - 21 publishers - and the side column
   was holding a caveat and a lot of nothing. Name them there. It fills the
   space with the one thing that makes the figure checkable without leaving
   the page, and the column was already the right width for a list. */
.roll { margin-bottom: 20px; }
.roll-label {
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--dim);
}
.roll ul { list-style: none; margin: 0; padding: 0;
           columns: 2; column-gap: 24px; }
.roll ul li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; break-inside: avoid;
  font-family: var(--mono); font-size: 0.66rem; line-height: 1.95;
  color: #97a3b2;
}
.roll .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roll .cc { flex: none; font-size: 0.58rem; letter-spacing: 0.06em;
            color: var(--dim); }
.roll .echo .n, .roll .echo .cc { color: var(--dim); font-style: italic; }
.roll-more { margin: 10px 0 0; font-family: var(--mono); font-size: 0.58rem;
             letter-spacing: 0.06em; color: var(--dim); }
/* Pin the caveat to the foot of the side column instead of letting it sit
   wherever the summary happens to end, which left a second gap under it. */
.lead-side { display: flex; flex-direction: column; }
.caveat {
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.6rem; line-height: 1.7;
  color: var(--dim);
}

/* --- 2 the pair ---------------------------------------------------------- */

.two { display: grid; grid-template-columns: 1fr; gap: 26px; }
.two .col + .col { padding-top: 26px; border-top: 1px solid var(--rule); }

/* --- 3 the overnight table ----------------------------------------------- */

.night { width: 100%; border-collapse: collapse; }
.night th {
  text-align: left; padding: 0 14px 9px 0;
  font-family: var(--mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid var(--rule);
}
.night td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--rule);
            vertical-align: middle; }
.night tr:last-child td { border-bottom: 0; }
.night .was, .night .now {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em;
  color: var(--dim); white-space: nowrap;
}
.night .was b, .night .now b { font-size: 0.95rem; color: var(--ink); }
.night .chg {
  font-family: var(--mono); font-size: 1.2rem; text-align: right;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.night .chg.up { color: var(--live); }
.night .chg.down { color: var(--amber); }
.night .chg.flat { color: var(--dim); }

/* --- 4 nowhere else ------------------------------------------------------ */

/* The country leads, not the headline. This is the one section that answers
   "where" and it should be legible as a place before it is legible as news. */
.sec-far .sec-head h2, .sec-far .sec-head .num { color: var(--far); }
.sec-far .sec-head .aside { color: var(--far); opacity: 0.75; }
.sec-far .sec-head .rule { background: rgba(143, 159, 208, 0.45); }

.far-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.far + .far { padding-top: 26px; border-top: 1px solid var(--rule); }
.where {
  margin: 0 0 10px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--far);
}
.far .head { font-size: 1.12rem; line-height: 1.32; }
.far .dek { margin: 9px 0 0; font-size: 0.9rem; max-width: 40ch; }
.reach {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em;
  line-height: 1.7; color: var(--dim);
}
.reach b {
  font-size: 1.15rem; font-weight: 500; color: var(--far);
  font-variant-numeric: tabular-nums;
}
.far .see { margin-top: 12px; }

/* --- 6 every other subject ----------------------------------------------- */

/* A real face: every spoke sits at a computed point on a circle, and the
   points are worked out in Python below and written into this stylesheet as
   classes. They cannot be style attributes - style-src 'self' blocks those,
   which is what flattened DigDug's calendar bars three times - so the same
   answer DigDug ended on applies here: generate the classes.

   The box is held at a fixed ratio so a circle stays a circle. Percentages
   are of the box, so the horizontal ones are divided by that ratio to keep
   the points round rather than oval. */
.dial {
  position: relative; margin: 10px auto 0; max-width: 1060px;
  aspect-ratio: 1.62;
}
/* The ring, and the hour lines inside it. The lines are one conic gradient
   clipped to a circle - one declaration per spoke count, no element each. */
.dial::before, .dial::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 36.0%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
}
.dial::before { border: 1px solid rgba(141, 135, 120, 0.26); }
.dial::after { opacity: 0.9; }

.hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; gap: 3px; text-align: center;
  z-index: 1;
}
.hub b {
  font-family: var(--mono); font-size: 2.3rem; font-weight: 500;
  color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums;
}
.hub span {
  font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.12em;
  line-height: 1.55; color: var(--dim);
}

.spoke {
  position: absolute; width: 25.0%;
  transform: translate(-50%, -50%);
}
.hour {
  margin: 0 0 5px;
  font-family: var(--mono); font-size: 0.57rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--live);
}
.spoke .head { font-size: 1.02rem; line-height: 1.3; }
.count {
  margin: 6px 0 0;
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.08em;
  color: var(--dim);
}
.count b { font-size: 0.9rem; font-weight: 500; color: var(--ink);
           font-variant-numeric: tabular-nums; }

.dial.n3::after { background: repeating-conic-gradient(from -0.11deg, rgba(141, 135, 120, 0.2) 0 0.22deg, transparent 0.22deg 120.0000deg); }
.dial.n3 > .spoke:nth-of-type(1) { left: 50.00%; top: 7.88%; text-align: center; }
.dial.n3 > .spoke:nth-of-type(2) { left: 72.52%; top: 71.06%; text-align: left; }
.dial.n3 > .spoke:nth-of-type(3) { left: 27.48%; top: 71.06%; text-align: right; }

.dial.n4::after { background: repeating-conic-gradient(from -0.11deg, rgba(141, 135, 120, 0.2) 0 0.22deg, transparent 0.22deg 90.0000deg); }
.dial.n4 > .spoke:nth-of-type(1) { left: 50.00%; top: 7.88%; text-align: center; }
.dial.n4 > .spoke:nth-of-type(2) { left: 76.00%; top: 50.00%; text-align: left; }
.dial.n4 > .spoke:nth-of-type(3) { left: 50.00%; top: 92.12%; text-align: center; }
.dial.n4 > .spoke:nth-of-type(4) { left: 24.00%; top: 50.00%; text-align: right; }

.dial.n5::after { background: repeating-conic-gradient(from -0.11deg, rgba(141, 135, 120, 0.2) 0 0.22deg, transparent 0.22deg 72.0000deg); }
.dial.n5 > .spoke:nth-of-type(1) { left: 50.00%; top: 7.88%; text-align: center; }
.dial.n5 > .spoke:nth-of-type(2) { left: 74.73%; top: 36.98%; text-align: left; }
.dial.n5 > .spoke:nth-of-type(3) { left: 65.28%; top: 84.08%; text-align: left; }
.dial.n5 > .spoke:nth-of-type(4) { left: 34.72%; top: 84.08%; text-align: right; }
.dial.n5 > .spoke:nth-of-type(5) { left: 25.27%; top: 36.98%; text-align: right; }

.dial.n6::after { background: repeating-conic-gradient(from -0.11deg, rgba(141, 135, 120, 0.2) 0 0.22deg, transparent 0.22deg 60.0000deg); }
.dial.n6 > .spoke:nth-of-type(1) { left: 50.00%; top: 7.88%; text-align: center; }
.dial.n6 > .spoke:nth-of-type(2) { left: 72.52%; top: 28.94%; text-align: left; }
.dial.n6 > .spoke:nth-of-type(3) { left: 72.52%; top: 71.06%; text-align: left; }
.dial.n6 > .spoke:nth-of-type(4) { left: 50.00%; top: 92.12%; text-align: center; }
.dial.n6 > .spoke:nth-of-type(5) { left: 27.48%; top: 71.06%; text-align: right; }
.dial.n6 > .spoke:nth-of-type(6) { left: 27.48%; top: 28.94%; text-align: right; }

.dial.n7::after { background: repeating-conic-gradient(from -0.11deg, rgba(141, 135, 120, 0.2) 0 0.22deg, transparent 0.22deg 51.4286deg); }
.dial.n7 > .spoke:nth-of-type(1) { left: 50.00%; top: 7.88%; text-align: center; }
.dial.n7 > .spoke:nth-of-type(2) { left: 70.33%; top: 23.74%; text-align: left; }
.dial.n7 > .spoke:nth-of-type(3) { left: 75.35%; top: 59.37%; text-align: left; }
.dial.n7 > .spoke:nth-of-type(4) { left: 61.28%; top: 87.95%; text-align: left; }
.dial.n7 > .spoke:nth-of-type(5) { left: 38.72%; top: 87.95%; text-align: right; }
.dial.n7 > .spoke:nth-of-type(6) { left: 24.65%; top: 59.37%; text-align: right; }
.dial.n7 > .spoke:nth-of-type(7) { left: 29.67%; top: 23.74%; text-align: right; }
/* --- 5 legwork ----------------------------------------------------------- */

/* Amber is this section's furniture - the numeral, the label, the rule, the
   descriptor. Not its content. The figures were coming out amber too, which
   made the numbers read as decoration rather than as the thing being
   measured. */
.sec-legwork .sec-head h2, .sec-legwork .sec-head .num { color: var(--amber); }
.sec-legwork .sec-head .aside { color: var(--amber); opacity: 0.8; }
.sec-legwork .sec-head .rule { background: rgba(201, 139, 79, 0.55); }
.leg-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* One number, large, because it is the only one on the page the board cannot
   produce: publishers who went and looked rather than printed the wire. */
.leg-big { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.leg-big b {
  font-family: var(--mono); font-size: 2.6rem; font-weight: 500;
  color: var(--amber); line-height: 1; font-variant-numeric: tabular-nums;
}
.leg-big span {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  line-height: 1.5; color: var(--dim); max-width: 16ch;
}
.legnote {
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.62rem; line-height: 1.8;
  color: var(--dim);
}

/* --- 5 nothing connected it ---------------------------------------------- */

.sec-none .row {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  padding: 18px 0; border-top: 1px solid var(--rule);
}
.sec-none .row:first-of-type { border-top: 0; padding-top: 0; }
.sec-none .row .figs { margin: 0; }
.sec-none .row .see { margin: 0; }
.foot-note {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em;
  color: var(--dim);
}

/* --- the stopping point -------------------------------------------------- */

.ed-end { padding: 40px 0 60px; border-top: 1px solid var(--rule);
          text-align: center; }
.caught { margin: 0 0 20px; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); }
.ends { margin: 0; display: flex; justify-content: center; flex-wrap: wrap;
        gap: 10px 30px; }
.ends a {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em;
  color: var(--live); text-decoration: none;
}
.ends a:hover, .ends a:focus { text-decoration: underline; }

/* --- wide ---------------------------------------------------------------- */

@media (min-width: 860px) {
  .lead-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.95fr);
               gap: 48px; }
  .caveat { margin-top: auto; }
  .lead-side { padding-left: 48px; border-left: 1px solid var(--rule); }
  .two { grid-template-columns: 1fr 1fr; gap: 48px; }
  .two .col + .col { padding: 0 0 0 48px; border-top: 0;
                     border-left: 1px solid var(--rule); }
  .far-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .far + .far { padding: 0 0 0 40px; border-top: 0;
                border-left: 1px solid var(--rule); }
  .leg-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.8fr);
              gap: 48px; align-items: start; }
  .leg-side { padding-left: 48px; border-left: 1px solid var(--rule); }
  .sec-none .row { grid-template-columns: minmax(0, 1.6fr) auto auto;
                   align-items: center; gap: 36px; }
}

@media (max-width: 859px) {
  .sheet { padding: 0 16px 10px; }
  .ed-top { padding-top: 26px; }
  .ed-meta { text-align: left; }
  .sec-head { flex-wrap: wrap; }
  /* No circle at phone width. Eight boxes around a ring is six words a line
     and a scroll to nowhere, so it stops being a face and becomes a list. */
  .dial { aspect-ratio: auto; max-width: none; }
  .dial::before, .dial::after { display: none; }
  /* The circle rules carry a text-align per spoke and live outside this
     query, so .dial > .spoke cannot outrank them - the stacked list came out
     with one headline centred and two shoved right. [class] matches the same
     element and buys the extra specificity to win it back. */
  .dial[class] > .spoke:nth-of-type(n), .hub {
    position: static; width: auto; transform: none; text-align: left;
    left: auto; top: auto;
  }
  .dial > .spoke { padding: 16px 0; border-top: 1px solid var(--rule); }
  .hub { flex-direction: row; align-items: baseline; gap: 10px;
         padding-bottom: 4px; }
  .hub span { line-height: 1.3; }
  .sec-head .rule { display: none; }
  .sec-head .aside { flex-basis: 100%; text-align: left; max-width: none; }
  .head.big { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .night .was { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .head { transition: color 140ms linear; }
}
