/* Today's story on a broadsheet: contents on the left, the lead and the current section in the
   centre, your trial and the terms you need on the right. */

/* ── Left: contents ── */
.toc { list-style: none; margin: 0 0 18px; padding: 0; }
.toc li { border-bottom: 1px solid var(--rule); }
.toc button { width: 100%; background: none; border: 0; text-align: left; padding: 11px 0; display: grid; grid-template-columns: 34px 1fr auto; gap: 0 8px; align-items: baseline; }
.toc .n { font-family: var(--mast); font-weight: 700; font-size: 17px; color: var(--muted); }
.toc .t { font-family: var(--mast); font-weight: 700; font-size: 17.5px; line-height: 1.2; }
.toc .m { font-family: var(--sans); font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.toc .s { grid-column: 2 / -1; font-style: italic; font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.toc .done .m { color: var(--up); font-weight: 600; }
.toc .done .t { color: var(--ink-2); }
.toc .cur .n, .toc .cur .t { color: var(--red); }
.toc .cur button { box-shadow: inset 3px 0 0 var(--red); padding-left: 10px; margin-left: -10px; width: calc(100% + 10px); }
.toc button:hover .t { color: var(--red); }

/* ── Centre: lead + current section ── */
.centre { display: flex; flex-direction: column; }
.lead { padding-bottom: 4px; }
.centre .headline { font-size: clamp(30px, 3.1vw, 46px); margin: 6px 0 6px; }
.centre .standfirst { font-size: 18px; }
.centre .figures { margin: 14px 0 0; }
.centre .figures .v { font-size: 20px; }
.centre .figures .v.sm { font-size: 15.5px; }

.work { margin-top: 20px; padding-top: 14px; border-top: 3px double var(--rule-strong); display: flex; flex-direction: column; gap: 14px; }
.work h2 { font-family: var(--mast); font-weight: 700; font-size: 28px; line-height: 1.1; margin: 2px 0 0; }
.do { font-size: 17.5px; text-wrap: pretty; max-width: 62ch; }
.links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--sans); font-size: 14.5px; font-weight: 600; }
.links a::after { content: " ↗"; font-weight: 400; color: var(--muted); }

.fields { display: grid; gap: 14px 22px; }
.fields.two { grid-template-columns: 1fr 1fr; }
.fields.three { grid-template-columns: repeat(3, 1fr); }
.fields .wide { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f input, .f textarea {
  font-family: var(--serif); font-size: 18px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  padding: 5px 0 6px; width: 100%; min-height: 42px;
}
.f input.numf { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.f textarea {
  resize: none; height: 96px; line-height: 32px; padding: 0; border-bottom: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
  background-attachment: local;
}
.f input::placeholder, .f textarea::placeholder { color: #b3a294; font-style: italic; }
.f input:focus, .f textarea:focus { outline: none; border-bottom-color: var(--red); }

.choices { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--sans); font-size: 14px; }
.choices button { background: none; border: 0; padding: 5px 0; border-bottom: 2px solid transparent; color: var(--ink-2); min-height: 34px; }
.choices button[aria-pressed="true"] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 700; }
.choices button:hover { color: var(--red); }

.clip { background: var(--paper-2); border-left: 3px solid var(--ink); padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.clip pre { margin: 0; white-space: pre-wrap; font-family: var(--serif); font-size: 15.5px; line-height: 1.5; }
.calc { font-family: var(--sans); font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.7; }
.calc b { font-size: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--rule); }
.note { font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* ── Right: sidebar ── */
.side { display: flex; flex-direction: column; gap: 22px; }
.side .box p { font-size: 15px; line-height: 1.45; }
.side .box p + p { margin-top: 8px; }
.tally { font-family: var(--sans); font-size: 14px !important; color: var(--ink-2); margin-top: 8px; }
.tally b { font-size: 26px; font-family: var(--mast); color: var(--ink); }
.meter { display: flex; gap: 4px; margin-top: 8px; }
.meter i { flex: 1; height: 6px; background: var(--rule); }
.meter i.on { background: var(--ink); }
.recent { list-style: none; padding: 0; margin: 12px 0 0; }
.recent li { padding: 8px 0; border-top: 1px solid var(--rule); font-family: var(--mast); font-weight: 700; font-size: 15px; line-height: 1.25; }
.recent li span { display: block; font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 2px; }
.terms { margin: 8px 0 0; }
.terms dt { font-family: var(--mast); font-weight: 700; font-size: 16px; margin-top: 10px; }
.terms dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.soon-box p { color: var(--ink-2); }
.soon-box b { color: var(--ink); font-family: var(--mast); }

@media (max-width: 999px) {
  .broad .centre { order: 1; }
  .broad .contents { order: 2; }
  .broad .side { order: 3; }
  .broad > .contents, .broad > .side { border-top: 1px solid var(--rule-strong); }
}
@media (max-width: 520px) {
  .fields.three { grid-template-columns: 1fr 1fr; }
  .work h2 { font-size: 24px; }
}
