/* Editorial policy page: layout of the components on this page only. Colours, type and spacing come from the site.css tokens; nothing here is a new component. */

/* ============================================================ shared guide rules (gd-) */
/* ---- hero: the answer on the left, a drawn figure on the right ---- */
.gd-hero .sb-hero__copy { display: grid; gap: var(--sp-6) var(--col-gap); }
.gd-hero__head, .gd-hero__answer { min-width: 0; }
.gd-hero .sb-answer { margin-top: 0; }
.gd-fig { margin: 0; min-width: 0; }
@media (min-width: 64em) {
  .gd-hero .sb-hero__copy { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; row-gap: var(--sp-5); padding-bottom: var(--sp-8); }
  .gd-hero__head { grid-column: 1 / -1; grid-row: 1; }
  .gd-hero__answer { grid-column: 1 / span 7; grid-row: 2; }
  .gd-fig { grid-column: 8 / span 5; grid-row: 2; align-self: stretch; }
}
.gd-glyph { flex: none; }

/* ---- the opening paragraphs, with the guide's own sections beside them ---- */
.gd-intro { padding-block: var(--sp-8); }
.gd-intro .sb-split__a > .sb-eyebrow { margin: 0 0 var(--sp-3); font-size: var(--fs-caption); line-height: 1.4; color: var(--text-soft); }
.gd-tools { max-width: 28rem; }
.gd-lead { font-size: var(--fs-lede); line-height: 1.45; color: var(--navy); max-width: 36rem; }
.gd-intro .sb-split__b > p + p { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--rule); }

/* ---- full-width sections (tables and sheets need the room) ---- */
.gd-full .sb-head { margin-bottom: var(--sp-6); }
.gd-full .sb-head p { font-size: 1.25rem; line-height: 1.5; }
@media (min-width: 64em) { .gd-full .sb-head { align-items: start; } }
.gd-full > .wrap > * + * { margin-top: var(--sp-5); }
.gd-full > .wrap > .sb-head { margin-top: 0; }
.gd-full > .wrap > p { max-width: var(--measure); }
.gd-full > .wrap > .sb-source { margin-top: var(--sp-3); }
.gd-full > .wrap > .sb-source + p { margin-top: var(--sp-6); }
.gd-full > .wrap > .sb-source + .sb-source { margin-top: var(--sp-3); }
.gd-full h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--trk-h3); }
/* split sections: question headings are long, so they run a size smaller than a pillar's */
.gd-split .sb-split__a h2 { font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem); }
.gd-split .sb-split__a > p { font-size: 1.1875rem; line-height: 1.5; max-width: 34rem; }
.gd-split .sb-split__b > p + .sb-source { margin-top: var(--sp-3); }
.gd-split .sb-split__b > .sb-source + p { margin-top: var(--sp-5); }

/* ---- the market band: the market name is the link ---- */
.gd-markets .sb-market h3 a { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; color: var(--text-on-dark); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rule-on-dark); text-underline-offset: .22em; }
.gd-markets .sb-market h3 a:visited { color: var(--text-on-dark); }
.gd-markets .sb-market h3 a:hover { text-decoration-color: var(--text-on-dark); text-decoration-thickness: 2px; }
.gd-markets .sb-market h3 a svg { flex: none; width: 22px; height: 22px; color: var(--gold); transition: transform var(--t-micro) var(--ease); }
.gd-markets .sb-market h3 a:hover svg, .gd-markets .sb-market h3 a:focus-visible svg { transform: translateX(4px); }
.gd-markets .sb-market h3 { margin-bottom: var(--sp-3); }
.gd-markets .sb-head p { font-size: 1.25rem; line-height: 1.5; }
@media (min-width: 64em) { .gd-markets .sb-head { align-items: start; } }
.sb-links--foot { margin-top: 0; padding-top: 0; border-top: 0; }
.gd-markets .sb-ledger__foot { margin-top: var(--sp-6); display: grid; gap: var(--sp-4) var(--sp-6); }
@media (min-width: 64em) { .gd-markets .gd-foot--src { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } .gd-markets .sb-ledger__foot:not(.gd-foot--src) { grid-template-columns: none; } .gd-markets .gd-foot--src .sb-links { justify-content: flex-end; } }

/* ---- closing, note, sources ---- */
.sb-closing h2 + .gd-close-lede { margin: calc(-1 * var(--sp-3)) 0 var(--sp-5); max-width: 30rem; color: var(--text-soft); }
.gd-notewrap { padding-top: var(--sp-7); }
.gd-sources { padding-top: var(--sp-7); }
.gd-sources__lede { margin-top: var(--sp-3); color: var(--text-soft); max-width: 40rem; }
.gd-sources li { padding-block: 14px; line-height: 1.6; }
.gd-sources li::before { top: 14px; }
/* the linked document title of each source is a chip: bordered, underlined, one box */
.gd-sources a.gd-chip { display: inline-block; min-height: 0; margin: 0 2px 0 0; padding: 1px 9px; line-height: 1.5; font-size: .9375rem; }
@media (min-width: 64em) {
  .gd-sources ol { max-width: none; column-count: 2; column-gap: var(--sp-8); }
  .gd-sources li { break-inside: avoid; }
}

/* ---- rules this page carries itself so it does not depend on other pages ---- */
/* breadcrumb: the slash follows each earlier item, so a trail that wraps never starts a line with one */
.sb-breadcrumb li + li::before { content: none; }
.sb-breadcrumb li:not(:last-child)::after { content: "/"; color: var(--text-soft); }
/* the last word of a text link and its arrow never part (see nbArrows in tools/w2b2-lib.mjs) */
/* nowrap only while the text is at its normal size on a phone (375 px is 23 em); at 150 or 200 percent a word and its arrow may wrap, so nothing is wider than the screen */
@media (min-width: 23em) { .gx-nb { white-space: nowrap; } }
/* a short hyphenated compound in a heading or table head ("made-up") never breaks at its hyphen */
.gx-hy { white-space: nowrap; }
/* headings: only a very long word is hyphenated, so no short word is cut in two and none can overflow at 200% text size */
h1, h2, h3, h4 { hyphens: auto; hyphenate-limit-chars: 12 5 5; overflow-wrap: anywhere; }
/* a link inside a sentence or a table cell flows with the text (the system draws it as an inline block, which leaves holes in a wrapped line) */
p:not(.sb-p-links) > a.sb-link, li > a.sb-link, td > a.sb-link:not(.sb-cell-link), dd > a.sb-link { display: inline; padding-block: 0; }
sup { font-size: max(.875rem, .7em); }   /* a superscript is still 14 px or more */
.gd-split .sb-split__b, .sb-split__a { min-width: 0; }
/* jump bar: a focused item scrolls clear of the edge; below 64em the sections are a wrapped row of chips in the page, nothing pinned, nothing half hidden */
.sb-jump ul { scroll-padding-inline: 32px; }
@media (max-width: 63.99em) {
  .sb-jump { position: static; }
  .sb-jump ul { flex-wrap: wrap; overflow: visible; gap: 8px; padding: 12px 0 14px; }
  .sb-jump a { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); background: var(--surface); white-space: normal; }
  .sb-jump li:first-child a { padding-left: 14px; }
  .sb-jump a:focus-visible { outline-offset: 2px; }
}
@media (min-width: 48em) and (max-width: 63.99em) and (min-height: 30em) { html:has(.sb-jump) { --sticky-top: var(--h-header); } }
@media (max-width: 47.99em) { html:has(.sb-jump) { --sticky-top: 0px; } }

/* ============================================================ the ledger sheet: a table on paper with a navy head (shared by the guides' data tables) */
.gd-sheet { background: var(--paper); border: 1px solid var(--navy); min-width: 0; }
.gd-scroll { overflow-x: auto; }
.gd-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.gd-sheet .sb-table { margin-top: 0; font-size: var(--fs-ui); }
.gd-sheet .sb-table caption { padding: 16px 20px; border-bottom: 1px solid var(--rule); max-width: none; color: var(--text-soft); }
.gd-sheet .sb-table thead th { vertical-align: middle; padding: 14px 20px 10px; }
.gd-sheet .sb-table tbody th, .gd-sheet .sb-table tbody td { padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.gd-sheet .sb-table tbody tr:last-child > * { border-bottom: 0; }
.gd-sheet .sb-table td:last-child, .gd-sheet .sb-table th:last-child { padding-right: 20px; }
@media (max-width: 47.99em) {
  .gd-sheet .sb-table caption { padding: 14px 16px; }
  .gd-sheet .sb-table--stack tbody tr { padding: 16px; border-bottom: 1px solid var(--rule); }
  .gd-sheet .sb-table--stack tbody tr:last-child { border-bottom: 0; }
  .gd-sheet .sb-table--stack tbody th, .gd-sheet .sb-table--stack tbody td { padding: 3px 0; border-bottom: 0; }
  .gd-sheet .sb-table--stack tbody td:last-child { padding-right: 0; }
}
/* a table of four or more columns stacks up to 64em, because four narrow columns break words at tablet width (the same rules as the site's phone stack) */
@media (min-width: 48em) and (max-width: 63.99em) {
  .gd-wide.sb-table--stack thead { display: none; }
  .gd-wide.sb-table--stack, .gd-wide.sb-table--stack tbody, .gd-wide.sb-table--stack tr, .gd-wide.sb-table--stack th, .gd-wide.sb-table--stack td { display: block; width: 100%; }
  .gd-wide.sb-table--stack tbody tr { padding: 18px 20px; border-bottom: 1px solid var(--rule); }
  .gd-wide.sb-table--stack tbody tr:last-child { border-bottom: 0; }
  .gd-sheet .gd-wide.sb-table--stack tbody th, .gd-sheet .gd-wide.sb-table--stack tbody td { padding: 3px 0; border: 0; }
  .gd-wide.sb-table--stack tbody th { font-size: 1.0625rem; padding-bottom: 6px; }
  .gd-wide.sb-table--stack td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-caption); font-weight: 600; color: var(--text-soft); }
  .gd-sheet .gd-wide.sb-table--stack tbody td:last-child { padding-right: 0; }
  .gd-wide.sb-table--stack caption { display: block; }
}

/* a guide row's one-line description never runs past 32 rem, so a single-column list at tablet width stays inside the 85-character line */
.gd-related .sb-guide__d { max-width: 32rem; }
/* a link that is the whole text of a table cell, or the document in a ledger row: a 44 px hit area drawn from the row's own padding (the site rule, with a floor so one line reaches 44) */
.sb-table a.sb-cell-link { box-sizing: border-box; min-height: 44px; }

/* the answer box matches the height of the figure beside it; its source line sits at the foot of the box, under a rule, so the extra height reads as a footer and not as a gap */
@media (min-width: 64em) {
  .gd-hero__answer { display: flex; flex-direction: column; }
  .gd-hero__answer > .sb-source { margin-top: auto; }
}


/* ============================================================ this page */
/* ---- hero: the order in which sources decide, drawn as four steps ---- */
.ep-ladder { align-self: end; }
.ep-ladder__k { margin: 0 0 var(--sp-3); font-size: var(--fs-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.ep-ladder ol { list-style: none; margin: 0; padding: 12px 0 0; border-top: 2px solid var(--navy); }
.ep-ladder li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: center; gap: 4px; min-height: 64px; margin-top: 8px; padding: 8px 14px; width: calc(100% - var(--n) * 5%); background: var(--sky-soft); border-left: 4px solid var(--navy); color: var(--navy); font-size: var(--fs-body); font-weight: 600; line-height: 1.25; }
.ep-ladder li:first-child { background: var(--navy); color: var(--paper); margin-top: 0; }
.ep-ladder b { font-size: 1.25rem; color: var(--brand); font-weight: 600; }
.ep-ladder li:first-child b { color: var(--paper); }
@media (min-width: 48em) { .ep-ladder li { width: calc(100% - var(--n) * 9%); } }

/* ---- which source decides: the ledger sheet, two columns ---- */
.ep-order .gd-sheet .sb-table tbody th { font-size: var(--fs-body); }
.ep-order .gd-nt { display: block; min-width: 0; }
.ep-order .gd-n { float: left; margin: 0 12px 0 0; }
.gd-n { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border: 2px solid var(--navy); font-size: 1.125rem; font-weight: 600; line-height: 1; color: var(--navy); }
.ep-order .sb-table tbody tr:first-child .gd-n { background: var(--navy); color: var(--paper); }
@media (min-width: 64em) {
  .ep-order .sb-table thead th:nth-child(1), .ep-order .sb-table tbody th { width: 34%; padding-right: 28px; }
}
.ep-order .sb-table td a:not(.sb-link) { display: inline-block; max-width: 100%; padding-block: 1px; }
.ep-order .gd-sheet + .sb-source { margin-top: var(--sp-4); }

/* ---- three dates, on one line ---- */
.ep-dates { display: grid; gap: var(--sp-6) var(--col-gap); margin: 0; }
.ep-dates > div { padding-top: var(--sp-4); border-top: 2px solid var(--navy); }
.ep-dates dt { display: flex; align-items: center; gap: 14px; font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-h3); letter-spacing: var(--trk-h3); color: var(--brand); }
.ep-dates__n { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; background: var(--navy); color: var(--paper); font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }
.ep-dates dd { margin: var(--sp-3) 0 0; max-width: 24rem; }
@media (min-width: 48em) { .ep-dates { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- the made-up check, drawn to scale (43 and 270 days) ---- */
.ep-worked .ep-line { margin: var(--sp-6) 0 0; padding: var(--sp-5); background: var(--paper); border: 1px solid var(--navy); }
.ep-line__bar { position: relative; display: flex; height: 44px; margin: var(--sp-6) 14px var(--sp-5); }
.ep-line__s { display: block; position: relative; height: 100%; font-style: normal; }
.ep-line__s--a { flex: var(--d) 1 0; min-width: 56px; background: var(--navy); }
.ep-line__s--b { flex: var(--d) 1 0; display: flex; align-items: center; justify-content: center; background: var(--paper); border: 2px dashed var(--navy); border-left: 0; }
.ep-line__s--b b { padding-inline: 8px; font-size: var(--fs-ui); font-weight: 600; white-space: nowrap; color: var(--navy); }
.ep-line__t { position: absolute; z-index: 1; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; transform: translate(-50%, -50%); background: var(--navy); color: var(--paper); font-size: var(--fs-ui); font-weight: 600; line-height: 1; }
.ep-line__t--1 { left: 0; }
.ep-line__t--2 { left: 100%; }
.ep-line__t--3 { left: 100%; }
.ep-line__key { list-style: none; margin: 0; padding: var(--sp-4) 0 0; border-top: 1px solid var(--rule); display: grid; gap: var(--sp-3) var(--col-gap); font-size: var(--fs-body); }
.ep-line__key li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
.ep-line__n { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--navy); color: var(--paper); font-size: var(--fs-ui); font-weight: 600; line-height: 1; }
.ep-line__key span:nth-child(2) { color: var(--navy-soft); }
.ep-line__key b { grid-column: 2; font-weight: 600; color: var(--navy); }
@media (min-width: 48em) { .ep-line__key { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- who writes the pages: the five comparisons on a paper sheet ---- */
.ep-sheet { padding: var(--sp-4) var(--sp-5) var(--sp-3); background: var(--paper); border: 1px solid var(--navy); }
.ep-sheet .sb-checklist { border-top: 0; }
.ep-sheet .sb-checklist li { max-width: none; }
.ep-sheet .sb-checklist li:last-child { border-bottom: 0; }
.ep-draft .sb-split__a > p { font-size: 1.1875rem; line-height: 1.5; max-width: 30rem; }
.ep-draft__end { margin-top: var(--sp-5); font-size: var(--fs-lede); line-height: 1.45; font-weight: 500; color: var(--navy); max-width: 30rem; }

/* ---- what is left out, set large ---- */
.ep-left__p { font-size: var(--fs-lede); line-height: 1.45; color: var(--navy); max-width: 36rem; }
.ep-left .sb-slot { margin-top: var(--sp-4); }

/* ---- corrections ---- */
.ep-corr__lead { margin-bottom: var(--sp-4); }
.ep-empty { margin-top: var(--sp-5); padding: 16px 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--rule); font-weight: 600; color: var(--navy); }
.ep-corr .gd-sheet { margin-top: var(--sp-5); }

/* ---- where each market shows its sources: ruled rows, the state outline first ---- */
.ep-m__list { list-style: none; margin: var(--sp-6) 0 0; padding: 0; border-top: 2px solid var(--navy); }
.ep-m { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ep-m__s { grid-row: span 2; display: grid; place-items: center; }
.ep-state { width: 56px; height: 56px; }
.ep-state path.o { fill: var(--surface-2); stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }
.ep-state circle { fill: var(--gold); stroke: var(--midnight); stroke-width: 2; }
.ep-m__a { display: inline-flex; align-items: center; gap: .5em; width: fit-content; min-height: 44px; font-size: var(--fs-h4, 1.375rem); font-weight: 600; color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.ep-m__a:visited { color: var(--link-visited); }
.ep-m__a svg { flex: none; width: 1em; height: 1em; transition: transform var(--t-micro) var(--ease); }
.ep-m__a:hover { text-decoration-thickness: 2px; }
.ep-m__a:hover svg, .ep-m__a:focus-visible svg { transform: translateX(3px); }
.ep-m__more { grid-column: 2; }
.ep-m__more .sb-link { padding-block: 10px; }
@media (min-width: 48em) {
  .ep-m { grid-template-columns: 56px minmax(0, 18rem) minmax(0, 1fr); }
  .ep-m__s { grid-row: auto; }
  .ep-m__more { grid-column: 3; }
}

/* short sections breathe less: one sentence does not need a full-height band */
.ep-left { padding-block: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); }
.ep-order .gd-sheet th a { font-weight: 600; }

/* the one word-length link in a row header ("tariff") still has a 44 px target */
.ep-order th a.sb-cell-link { position: relative; z-index: 1; min-width: 44px; text-align: center; }   /* above the neighbouring cells, so its whole focus ring shows */

/* ============================================================ adjustments on this page only */
/* the long title runs two lines from tablet width up, so the hero has no empty block beside it (the shared 18ch cap made three short lines and a blank right half at 1440) */
@media (min-width: 48em) { .ep-hero h1 { max-width: 32ch; } }

/* stacked table (below 64em): the number tile and the kind of source sit in one row, and the "Example and its date" label starts at the left edge with the sentence under it */
@media (max-width: 63.99em) {
  .ep-order .sb-table tbody th { display: flex; align-items: flex-start; gap: 12px; }
  .ep-order .gd-n { float: none; margin: 0; }
}

/* the five comparisons are things the company does to every sentence, so each box carries a drawn check mark, not an empty tick box that looks like a task for the reader */
.ep-sheet .sb-checklist li::after { content: ""; position: absolute; left: 7px; top: 20px; width: 7px; height: 13px; border: solid var(--navy); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(.82); }

/* a link to a PDF says so; the cue is drawn by CSS, so the page's own words are unchanged */
a[href$=".pdf" i]::after { content: "\00a0(PDF)"; font-weight: 400; white-space: nowrap; }

/* the answer box is a flex column from 64em and its source line takes the leftover space as an auto margin; a floor of 24 px above the rule keeps the rule off the last line of the answer */
@media (min-width: 64em) { .ep-hero .sb-answer > p:first-child { margin-bottom: var(--sp-5); } }
