/* Layout and components. Colours, fonts and sizes come from tokens.css; this file holds none of its own. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
.sprite { position: absolute; }
.lockup { display: block; width: 10rem; height: auto; border-radius: 14px; }
.needjs { padding: 1.5rem; font: 1rem/1.5 var(--ui); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--ui); font-size: var(--fs-body); line-height: 1.4; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* App frame: one centred column that fits any screen. Safe areas keep content clear of the notch and gesture bar. */
#app { max-width: var(--column); margin-inline: auto; min-height: 100vh; min-height: 100dvh; position: relative; }
.screen { padding: calc(1.375rem + env(safe-area-inset-top)) calc(var(--gutter) + env(safe-area-inset-right)) calc(var(--tab-h) + env(safe-area-inset-bottom)) calc(var(--gutter) + env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 0.75rem; }
#app[data-bar="action"] .screen { padding-bottom: calc(var(--abar-h) + env(safe-area-inset-bottom)); }
.screen > * { flex: none; }
.screen.flush { padding-top: 0; }
.bleed { margin-inline: calc(var(--gutter) * -1); }
svg.i { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* The bars at the foot: paper at 92 per cent with a blur and a hairline above. The tab bar and the action bar share one construction. */
.tabs, .actionbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100vw, var(--column)); background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--rule); z-index: 20; padding: 0 0.75rem; color: var(--ink3); }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-top: 0.625rem; }
.tabs a { min-height: 3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; color: var(--ink3); font-size: var(--fs-detail); font-weight: 500; white-space: nowrap; }
.tabs a svg.i { width: 1.25rem; height: 1.25rem; stroke-width: 1.6; }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tabs a[aria-current="page"] svg.i { fill: currentColor; }

/* Titles and headings */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; }
.head > div { min-width: 0; }
.title { font: 700 var(--fs-title)/1.05 var(--display); letter-spacing: -0.03em; }
.subtitle { margin-top: 0.25rem; font-size: var(--fs-small); font-weight: 500; color: var(--ink3); }
.sectitle { font: 700 var(--fs-section)/1.2 var(--display); letter-spacing: -0.02em; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-top: 0.625rem; }
.sechead .act { font-size: var(--fs-small); font-weight: 600; color: var(--accent); min-height: var(--target); display: inline-flex; align-items: center; }
.label { font-size: var(--fs-meta); font-weight: 600; color: var(--ink3); }
.muted { color: var(--ink3); }
.empty { padding: 1.5rem 0.25rem; color: var(--ink2); font-size: var(--fs-read); line-height: 1.45; }
.foot { padding: 0.5rem 0; text-align: center; font-size: var(--fs-meta); color: var(--ink3); }

/* Round buttons and bars */
.roundbtn { position: relative; flex: none; width: var(--target); height: var(--target); border-radius: 50%; background: none; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; color: var(--ink2); }
.roundbtn.flat { border-color: transparent; }
.roundbtn.attn::after { content: ""; position: absolute; top: 0.5rem; right: 0.5rem; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--draft-fg); border: 2px solid var(--paper); }
.searchbar { display: flex; align-items: center; gap: 0.625rem; height: 3.25rem; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--rule); padding: 0 1.125rem; color: var(--ink3); font-size: var(--fs-read); }
.searchbar input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; color: var(--ink); outline: none; }
.searchbar input::placeholder { color: var(--ink3); opacity: 1; }

/* Pills and the three-way switch */
.switch3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 2.875rem; border-radius: var(--r-pill); background: var(--soft); padding: 0.25rem; font-size: var(--fs-small); font-weight: 600; }
.switch3 a, .switch3 button { border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; color: var(--ink2); text-align: center; }
.switch3 [aria-current="true"] { background: var(--card); color: var(--ink); border: 1px solid var(--rule); }

/* Cards and tags */
.card { position: relative; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--rule); padding: 1rem; display: block; }
.card.lined { padding-block: 0.25rem; }
.cardlink { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tag { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: var(--r-tag); background: var(--soft); color: var(--ink2); font-size: var(--fs-detail); font-weight: 600; white-space: nowrap; }
.tag.big { padding: 0.375rem 0.75rem; font-size: var(--fs-meta); border-radius: 0.875rem; }
.tag.health { background: var(--health-bg); color: var(--health-fg); }
.tag.corporate { background: var(--corporate-bg); color: var(--corporate-fg); }
.tag.courts { background: var(--courts-bg); color: var(--courts-fg); }
.tag.data { background: var(--data-bg); color: var(--data-fg); }
.tag.competition { background: var(--competition-bg); color: var(--competition-fg); }
.tag.draft { background: var(--draft-bg); color: var(--draft-fg); }
.tag.checked { background: var(--health-bg); color: var(--health-fg); }
.tag.outlets { background: var(--outlets-bg); color: var(--outlets-fg); }
.tag.white { background: var(--card); }
.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center; }
.tagline { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tagline time, .tagline .when { font-size: var(--fs-meta); color: var(--ink3); white-space: nowrap; }
.h-card { font: 600 var(--fs-card)/1.2 var(--serif); letter-spacing: -0.005em; text-wrap: pretty; overflow-wrap: anywhere; }
.h-lead { font: 600 var(--fs-lead)/1.1 var(--serif); letter-spacing: -0.005em; text-wrap: pretty; overflow-wrap: anywhere; }
.h-clamp { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.issuer { margin-top: 0.5rem; font-size: var(--fs-small); color: var(--ink3); }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }

/* Photographs: fixed ratio so layout never jumps. A missing picture leaves a quiet neutral block. */
.ph { background: var(--photo); overflow: hidden; position: relative; flex: none; width: 100%; animation: pulse 1.4s ease-in-out infinite; }
.ph.loaded { animation: none; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.lead { aspect-ratio: 3 / 2; height: auto; border-radius: 0; }
.ph.half { aspect-ratio: 4 / 3; height: auto; border-radius: var(--r-photo); }
.ph.thumb { width: 4rem; height: 4rem; border-radius: var(--r-photo); }

/* Legal's tiles, quiet rows, countline and due list. The front page no longer shows them; they return in Legal. */

/* News: the masthead, the rail, a lead with its photograph, two halves, a ruled list, the Legal block and the end of the edition */
.mast { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.mast > div:first-child { min-width: 0; }
.mast .name { font: 800 var(--fs-title)/1 var(--display); letter-spacing: -0.03em; }
.mast .date { margin-top: 0.3125rem; font-size: var(--fs-meta); color: var(--ink3); }
.mast .btns { display: flex; gap: 0.5rem; flex: none; }
.rail { display: flex; gap: 1.125rem; margin: 0.25rem calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: var(--fs-small); font-weight: 500; color: var(--ink3); }
.rail::-webkit-scrollbar { display: none; }
.rail a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--target); min-height: var(--target); margin-bottom: -1px; border-bottom: 2px solid transparent; }
.rail a[aria-current="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.story-head, .hl { font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em; text-wrap: pretty; overflow-wrap: anywhere; }
.kick { font-size: var(--fs-detail); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); font-weight: 600; }
.kick b { color: var(--ink2); font-weight: 600; }
.meta { font-size: var(--fs-meta); color: var(--ink3); }
.leadstory { position: relative; margin: 0 calc(var(--gutter) * -1); }
.leadstory .body { padding: 0.75rem var(--gutter) 0; }
.leadstory .hl { font-size: var(--fs-lead); line-height: 1.1; margin: 0.375rem 0; }
.halfs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.half { position: relative; }
.half .hl { font-size: var(--fs-read); line-height: 1.22; margin: 0.5rem 0 0.25rem; }
.stories { display: block; }
.story { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 4rem; gap: 0.75rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.story.nophoto { grid-template-columns: minmax(0, 1fr); }
.story .hl { font-size: var(--fs-list); line-height: 1.25; }
.story .meta { margin-top: 0.1875rem; }
.sec { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; padding-top: 0.25rem; border-top: 2px solid var(--ink); }
.sec .t { font: 700 var(--fs-meta)/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; }
.sec .more { font-size: var(--fs-meta); font-weight: 600; color: var(--action); min-height: var(--target); display: inline-flex; align-items: center; }
.legalrow { position: relative; display: block; padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.legalrow .toprow { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.legalrow .hl { font-size: var(--fs-list); line-height: 1.24; margin: 0.25rem 0; }
.area { font-size: var(--fs-detail); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.area.health { color: var(--health-fg); } .area.corporate { color: var(--corporate-fg); } .area.courts { color: var(--courts-fg); } .area.data { color: var(--data-fg); } .area.competition { color: var(--competition-fg); }
.statusword { font-size: var(--fs-detail); font-weight: 600; color: var(--ink2); display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; }
.statusword i { width: 0.5625rem; height: 0.5625rem; border: 2px solid currentColor; border-radius: 50%; box-sizing: border-box; display: inline-block; flex: none; }
.statusword.in-force i { background: currentColor; }
.statusword.notified i { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.statusword.draft-status i { border-radius: 2px; }
.statusword.press-only i { transform: rotate(45deg); border-radius: 0; }
.endline { margin-top: 1.375rem; padding-top: 1rem; border-top: 2px solid var(--ink); font-size: var(--fs-small); color: var(--ink2); }
.endline b { display: block; font: 600 var(--fs-read)/1.3 var(--serif); color: var(--ink); margin-bottom: 0.1875rem; }
.newsrows { padding: 0; }
.newsrow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 4rem; gap: 0.75rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.newsrow:first-child { border-top: 0; }
.newsrow .t { font: 600 var(--fs-list)/1.25 var(--serif); }
.newsrow .m { margin-top: 0.1875rem; font-size: var(--fs-meta); color: var(--ink3); }
.is-read .t, .is-read .h-lead, .is-read .h-card { color: var(--ink2); }
.morebtn { align-self: center; min-height: var(--target); }
.btn { font: 600 var(--fs-body)/1 var(--ui); padding: 0.75rem 1.125rem; min-height: var(--target); border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--rule); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; white-space: nowrap; text-align: center; }
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn.accent { background: var(--action); color: var(--on-action); border-color: var(--action); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.55; }
.linkbtn { font: 600 var(--fs-small)/1 var(--ui); color: var(--accent); min-height: var(--target); display: inline-flex; align-items: center; padding: 0 0.25rem; }

/* Legal */

/* Reading page */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; }
.fact { border-radius: var(--r-card); background: var(--card); border: 1px solid var(--rule); padding: 0.75rem; min-width: 0; }
.fact .k { font-size: var(--fs-detail); font-weight: 500; color: var(--ink3); }
.fact .v { margin-top: 0.25rem; font-size: var(--fs-body); font-weight: 600; overflow-wrap: anywhere; }
.fact .v.warn { color: var(--draft-fg); }
.short { padding: 1.125rem; }
.short .top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.short .k { margin-top: 0.875rem; font-size: var(--fs-meta); font-weight: 600; color: var(--accent); }
.short .v { margin-top: 0.1875rem; font-size: var(--fs-read); line-height: 1.45; }
.short .fieldrow { display: block; width: 100%; min-height: var(--target); padding: 0.375rem 0; border: 0; background: none; font: inherit; text-align: left; color: inherit; }
.short button.fieldrow { cursor: pointer; }
.short .fieldrow + .fieldrow { border-top: 1px solid var(--divider); }
.btn.done { background: var(--done); color: var(--on-done); border-color: var(--done); }
.short .unv { font-size: var(--fs-detail); font-weight: 400; color: var(--ink3); }
.short .figs { margin: 0.125rem 0 0; padding: 0; list-style: none; }
.short .figbtn { display: block; width: 100%; min-height: var(--target); padding: 0.25rem 0; border: 0; background: none; font: inherit; font-size: var(--fs-body); line-height: 1.4; text-align: left; color: inherit; cursor: pointer; }
.short .note { font-size: var(--fs-detail); font-weight: 500; color: var(--ink3); }
.linklist { padding: 0.25rem 1.125rem; }
.linklist .lrow { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 3.375rem; font-size: var(--fs-read); font-weight: 500; width: 100%; }
.linklist .lrow + .lrow { border-top: 1px solid var(--divider); }
.linklist .lrow svg.i { color: var(--ink3); }
.snippet { font-size: var(--fs-read); line-height: 1.5; color: var(--ink2); padding: 0.25rem 0.25rem 0; }
.readnote { font-size: var(--fs-meta); line-height: 1.5; color: var(--ink3); padding: 0 0.25rem; }
.doctext { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 var(--fs-reading)/1.55 var(--serif); padding: 1.125rem; }
.notebox { padding: 1rem 1.125rem; }
.notebox textarea { width: 100%; min-height: 6rem; resize: vertical; border: 0; border-radius: 1rem; background: var(--ground); padding: 0.75rem; font: inherit; font-size: var(--fs-read); color: var(--ink); }
.notebox textarea::placeholder { color: var(--ink3); opacity: 1; }

/* Desk */

/* A voice */
.iconbtn { flex: none; width: var(--target); height: var(--target); display: flex; align-items: center; justify-content: center; color: var(--ink3); }

/* Write a brief and the newsletter issue */

/* Settings, sources and the other plain screens */
.group { border-radius: var(--r-card); background: var(--card); border: 1px solid var(--rule); overflow: hidden; }
.group > button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3.5rem; padding: 0 1.125rem; font: 600 var(--fs-read)/1.2 var(--ui); gap: 0.75rem; }
.group > button svg { transition: transform 0.15s; color: var(--ink3); }
.group > button[aria-expanded="true"] svg { transform: rotate(90deg); }
.group .panel { padding: 0 1.125rem 1rem; display: flex; flex-direction: column; gap: 0.375rem; }
.body { font-size: var(--fs-body); line-height: 1.5; color: var(--ink2); }
.setrow { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.5rem 0; }
.setrow label, .setrow .lab { font: 600 var(--fs-body)/1.2 var(--ui); }
.setrow .hint, .hint { font-size: var(--fs-meta); line-height: 1.4; color: var(--ink3); }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: var(--target); padding: 0.375rem 0; border-top: 1px solid var(--divider); font: 500 var(--fs-body)/1.25 var(--ui); width: 100%; }
.srow .name { flex: 1; min-width: 0; }
.srow .order { display: flex; }
.rowlink { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: var(--target); border-top: 1px solid var(--divider); font: 600 var(--fs-body)/1.2 var(--ui); color: var(--accent); }
.status { font: 600 var(--fs-detail)/1.2 var(--ui); padding: 0.25rem 0.5rem; border-radius: var(--r-tag); background: var(--soft); color: var(--ink2); white-space: nowrap; }
.status.failing, .status.quiet { background: var(--draft-bg); color: var(--draft-fg); }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: var(--target); font: 500 var(--fs-body)/1.2 var(--ui); color: var(--ink); }
.track { width: 2.875rem; height: 1.75rem; border-radius: 0.875rem; background: var(--soft); position: relative; flex: none; }
.track::after { content: ""; position: absolute; top: 0.1875rem; left: 0.1875rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--thumb); border: 1px solid var(--rule); transition: transform 0.15s; }
.sw[aria-checked="true"] .track { background: var(--accent); }
.sw[aria-checked="true"] .track::after { transform: translateX(1.125rem); }
.seg { display: flex; border-radius: var(--r-pill); background: var(--soft); padding: 0.25rem; gap: 0.125rem; }
.seg button { flex: 1; min-height: 2.5rem; padding: 0 0.5rem; text-align: center; font: 600 var(--fs-small)/1.1 var(--ui); border-radius: var(--r-pill); color: var(--ink2); }
.seg button[aria-checked="true"] { background: var(--card); color: var(--ink); border: 1px solid var(--rule); }
.field { display: flex; align-items: center; gap: 0.5rem; }
.field input, .field textarea { flex: 1; min-width: 0; min-height: var(--target); padding: 0 1rem; font: 400 var(--fs-read)/1.2 var(--ui); color: var(--ink); background: var(--ground); border: 2px solid transparent; border-radius: 1rem; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink3); opacity: 1; }
.field .unit { font: 400 var(--fs-body)/1 var(--ui); color: var(--ink3); white-space: nowrap; }
.field textarea { padding: 0.75rem 1rem; min-height: 9rem; resize: vertical; line-height: 1.45; }
.stepper { display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--soft); }
.stepper button { width: var(--target); min-height: var(--target); text-align: center; font: 600 1.25rem/1 var(--ui); }
.stepper output { min-width: 2.5rem; text-align: center; font: 600 var(--fs-body)/1 var(--ui); }
.filter-group { display: flex; flex-direction: column; gap: 0.5rem; }
.filter-group h3 { font: 600 var(--fs-body)/1.2 var(--ui); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { min-height: var(--target); padding: 0 0.875rem; border-radius: var(--r-pill); background: var(--soft); font: 600 var(--fs-small)/1.1 var(--ui); color: var(--ink2); display: inline-flex; align-items: center; }
.chip[aria-checked="true"] { background: var(--ink); color: var(--on-ink); }
.filter-panel { display: flex; flex-direction: column; gap: 1.25rem; padding: 0.75rem 0 1rem; }
.drow { display: flex; flex-direction: column; gap: 0.375rem; padding: 0.75rem 0; }
.drow + .drow { border-top: 1px solid var(--divider); }
.notice { display: flex; align-items: center; gap: 0.625rem; width: 100%; min-height: var(--target); padding: 0.5rem 1rem; border-radius: var(--r-tile); background: var(--draft-bg); color: var(--draft-fg); font: 600 var(--fs-body)/1.2 var(--ui); }
.notice span { flex: 1; }

/* Bottom sheet, toast, skeletons */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: var(--column); max-height: 85vh; max-height: 85dvh; overflow-y: auto; background: var(--card); border-radius: var(--r-hero) var(--r-hero) 0 0; z-index: 41; padding: 1.5rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 0.75rem; }
.sheet h2 { font: 700 var(--fs-section)/1.2 var(--display); letter-spacing: -0.02em; }
.sheet p { font-size: var(--fs-body); line-height: 1.5; color: var(--ink2); }
.skel { background: var(--soft); border-radius: 1rem; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.skel.line { height: 0.875rem; margin: 0.5rem 0; }
.skel.head1 { height: 1.75rem; width: 92%; margin: 0.5rem 0; }
.skel.img { width: 100%; height: 10rem; border-radius: var(--r-card); }
.pull { text-align: center; font-size: var(--fs-meta); color: var(--ink3); height: 0; overflow: hidden; }
.pull.show { height: 1.75rem; padding-top: 0.5rem; }
.savedcopy { max-width: var(--column); margin: 0 auto; padding: 0 var(--gutter); }
.plate { font: 700 var(--fs-title)/1 var(--display); letter-spacing: -0.03em; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.oicon { width: 1rem; height: 1rem; border-radius: 0.25rem; flex: none; object-fit: contain; background: var(--soft); }
.dot::before { content: "·"; margin-right: 0.5rem; }

/* ---- Part 1 standards (8 October): the inner page header, the action bar, the message, 44 pixel targets ---- */
.screen.inner { padding-top: 0; }
.band { margin-inline: calc(var(--gutter) * -1); padding: calc(1rem + env(safe-area-inset-top)) calc(var(--gutter) + env(safe-area-inset-right)) 1.375rem calc(var(--gutter) + env(safe-area-inset-left)); border-radius: 0 0 2rem 2rem; background: var(--news-bg); color: var(--ink); text-align: left; }
.bandtop { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: var(--target); }
.bandtop .tags { justify-content: flex-end; }
.backbtn { flex: none; width: var(--target); height: var(--target); border-radius: 50%; background: var(--card); border: 1px solid var(--rule); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.bandtitle { margin-top: 1.125rem; font: 700 var(--fs-reading-title)/1.12 var(--serif); letter-spacing: -0.005em; text-wrap: balance; overflow-wrap: anywhere; text-align: left; }
.bandmeta { margin-top: 0.625rem; font-size: var(--fs-small); font-weight: 500; }
.bandmeta + .bandmeta { margin-top: 0.25rem; }
.band .tag { background: var(--card); padding: 0.375rem 0.75rem; font-size: var(--fs-meta); border-radius: 0.875rem; color: var(--news-fg); }
.band.news { background: var(--news-bg); color: var(--ink); }
.band.health { background: var(--health-bg); color: var(--health-deep); }
.band.corporate { background: var(--corporate-bg); color: var(--corporate-deep); }
.band.courts { background: var(--courts-bg); color: var(--courts-deep); }
.band.data { background: var(--data-bg); color: var(--data-deep); }
.band.competition, .band.draft { background: var(--competition-bg); color: var(--competition-deep); }
.band.health .tag:not(.draft) { color: var(--health-fg); }
.band.corporate .tag:not(.draft) { color: var(--corporate-fg); }
.band.courts .tag:not(.draft) { color: var(--courts-fg); }
.band.data .tag:not(.draft) { color: var(--data-fg); }
.band.competition .tag:not(.draft), .band.draft .tag:not(.draft) { color: var(--competition-fg); }
.band .tag.draft { background: var(--draft-fg); color: var(--paper); }
.band .tag.outlets { background: var(--card); color: var(--outlets-fg); }

/* The bar at the foot of an inner page: one filled ink button with its word, then up to four items, each an icon and its word. */
.actionbar { height: calc(var(--abar-h) + env(safe-area-inset-bottom)); display: flex; align-items: flex-start; gap: 0.125rem; padding-top: 0.5rem; padding-bottom: env(safe-area-inset-bottom); }
.actionbar .main { flex: none; height: 2.875rem; border-radius: 1.4375rem; background: var(--ink); color: var(--paper); font-size: var(--fs-small); font-weight: 600; display: flex; align-items: center; padding: 0 1rem; white-space: nowrap; margin-right: 0.375rem; }
.actionbar .main[aria-disabled="true"] { opacity: 0.5; }
.actionbar .ab { flex: 1; min-width: var(--target); height: 3rem; color: var(--ink3); font-size: var(--fs-detail); font-weight: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1875rem; white-space: nowrap; text-align: center; }
.actionbar .ab svg.i { width: 1.25rem; height: 1.25rem; stroke-width: 1.6; }
.actionbar .ab.on { color: var(--ink); font-weight: 700; }
.actionbar .ab.on svg.i { fill: currentColor; }
.actionbar .ab.off { opacity: 0.5; }



/* The message above the bar: a white card with a tick, one sentence and Undo. */
.toast { position: fixed; left: 50%; bottom: calc(var(--abar-h) + 0.75rem + env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(min(100vw, var(--column)) - 2 * var(--gutter)); max-width: none; min-height: 3.25rem; background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: 1.25rem; box-shadow: var(--shadow-pop); padding: 0.625rem 0.5rem 0.625rem 1rem; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font: 500 var(--fs-small)/1.3 var(--ui); }
.toast .mark { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--health-bg); color: var(--health-fg); display: flex; align-items: center; justify-content: center; }
.toast.failed .mark { background: var(--draft-bg); color: var(--draft-fg); }
.toast .words { flex: 1; min-width: 0; }
.toast .toastbtn { flex: none; height: var(--target); padding: 0 0.875rem; border-radius: 1.375rem; background: var(--outlets-bg); color: var(--outlets-fg); font: 600 var(--fs-small)/1 var(--ui); text-decoration: none; }

/* Switches are 44 high inside, so each choice is a 44 pixel target. */
.switch3 { height: 3.25rem; }
.seg button { min-height: var(--target); }
.h-clamp { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story .hl, .half .hl, .newsrow .t { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* How others reported it: one chip row, then one plain row per outlet */
.outletrows { padding: 0.25rem 1rem; }
.outletrow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 1rem; gap: 0.75rem; align-items: center; padding: 0.875rem 0; min-height: 3.5rem; }
.outletrow + .outletrow { border-top: 1px solid var(--divider); }
.outletrow .top { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-meta); flex-wrap: wrap; }
.outletrow .top b { font-weight: 600; }
.outletrow .h { margin-top: 0.3125rem; font-size: var(--fs-body); font-weight: 600; line-height: 1.3; }
.outletrow svg.i { color: var(--ink3); }

/* The reading text: the same type for a news article and for a document */
.reading { padding: 0.625rem 0.625rem 1.125rem; }
.reading .ph.lead { margin-bottom: 1rem; border-radius: var(--r-photo); }
.reading .text { padding: 0 0.5rem; }
.reading .text p, .reading .text .q, .reading .text li { font: 400 var(--fs-reading)/1.55 var(--serif); margin: 0 0 0.875rem; }
.reading .text h3 { font: 700 var(--fs-card)/1.25 var(--serif); letter-spacing: -0.005em; margin: 1.25rem 0 0.625rem; }
.reading .text .q { border-left: 3px solid var(--soft); padding-left: 0.75rem; color: var(--ink2); }
.reading .text ul { margin: 0 0 0.875rem; padding-left: 1.25rem; }
.reading .text mark { background: var(--health-bg); border-radius: 0.375rem; padding: 0.125rem 0.1875rem; }
.reading .line1 { padding: 0 0.5rem; font: 400 var(--fs-reading)/1.55 var(--serif); color: var(--ink2); }
.screen { min-height: 100dvh; box-sizing: border-box; }
.appfooter { margin: auto 0.375rem 0.5rem; padding-top: 1.5rem; font-size: 0.75rem; line-height: 1.4; color: var(--ink3); text-align: center; }
.stopline { display: flex; align-items: center; gap: 0.5rem; min-height: var(--target); margin: 0 0 0.75rem; padding: 0.5rem 0.875rem; border-radius: 0.875rem; background: var(--soft); color: var(--ink); font-size: var(--fs-meta); font-weight: 600; }
.stopline span { flex: 1; min-width: 0; }
.stopline svg { flex: none; width: 1rem; height: 1rem; }
.footnote { margin: 0.25rem 0.375rem 0; font-size: var(--fs-meta); line-height: 1.45; color: var(--ink3); }
.passage { white-space: pre-wrap; overflow-wrap: anywhere; }
.facts .fact .v.warn { color: var(--draft-fg); }

/* Brief screens */
.linkrow { display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; min-height: 3.25rem; padding: 0 1rem; border-radius: var(--r-tile); background: var(--card); border: 1px solid var(--rule); font-size: var(--fs-body); }
.linkrow b { color: var(--accent); font-weight: 600; }
.sheet .grab { align-self: center; width: 2.5rem; height: 0.3125rem; border-radius: 0.1875rem; background: var(--faint); margin: -0.5rem 0 0.25rem; }
.sheet .sheethead { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.sheet .closebtn { flex: none; width: var(--target); height: var(--target); border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.sheet .quote { border-radius: 0.875rem; background: var(--ground); padding: 0.625rem 0.75rem; font-size: var(--fs-meta); line-height: 1.45; color: var(--ink2); }
.sheet .quote b { display: block; color: var(--corporate-fg); font-weight: 600; margin-bottom: 0.1875rem; }
.sheet .matches { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-small); font-weight: 600; color: var(--health-fg); min-height: var(--target); }
.sheet .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.sheet .three .btn { padding: 0.5rem; }
.chipset { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chipset button { min-height: var(--target); padding: 0 0.875rem; border-radius: 0.875rem; background: var(--soft); font: 600 var(--fs-small)/1 var(--ui); color: var(--ink2); }
.chipset button[aria-pressed="true"], .chipset button[aria-checked="true"] { background: var(--ink); color: var(--on-ink); }
.sheet .setline { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 3.25rem; }
.sheet .setline .s { font-size: var(--fs-meta); color: var(--ink3); }

/* The voice screen */
.addrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; }

/* Calendar for date fields */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.125rem; text-align: center; }
.calendar .dow { font-size: var(--fs-detail); font-weight: 600; color: var(--ink3); padding: 0.375rem 0; }
.calendar button { height: var(--target); border-radius: 50%; font-size: var(--fs-small); font-weight: 500; text-align: center; display: flex; align-items: center; justify-content: center; }
.calendar button[aria-pressed="true"] { background: var(--action); color: var(--on-action); font-weight: 600; }
.calendar button[disabled] { color: var(--ink3); opacity: 0.6; }
.calhead { display: flex; align-items: center; justify-content: space-between; }
.calhead b { font: 700 var(--fs-card)/1.2 var(--display); }
.datefield { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: var(--target); padding: 0 1rem; border-radius: 1rem; background: var(--ground); font: 400 var(--fs-read)/1.2 var(--ui); width: 100%; text-align: left; }
.datefield .ph-text { color: var(--ink3); }
.datefield .unit { color: var(--ink3); font-size: var(--fs-body); }

.oicon.tile { display: inline-grid; place-items: center; font: 600 var(--fs-detail)/1 var(--ui); color: var(--ink2); }

.bandkicker { margin-top: 1.125rem; font-size: var(--fs-meta); font-weight: 500; opacity: 0.85; }
.bandkicker + .bandtitle { margin-top: 0.125rem; }
.sheet { position: fixed; }
.sheet .closebtn.floating { position: absolute; top: 0.75rem; right: 0.75rem; }
.sheet > h2:first-of-type { padding-right: 3rem; }

/* Legal status: always words, with a small shape that differs in greyscale. A status never wraps inside its tag. */
.tag.status { gap: 0.375rem; white-space: nowrap; }
.tag.status .shape { flex: none; width: 0.5625rem; height: 0.5625rem; border: 2px solid currentColor; box-sizing: border-box; }
.tag.status.in-force { background: var(--health-bg); color: var(--health-fg); }
.tag.status.in-force .shape { border-radius: 50%; background: currentColor; }
.tag.status.notified { background: var(--data-bg); color: var(--data-fg); }
.tag.status.notified .shape { border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.tag.status.draft-status { background: var(--draft-bg); color: var(--draft-fg); }
.tag.status.draft-status .shape { border-radius: 2px; }
.tag.status.unconfirmed { background: var(--soft); color: var(--ink2); }
.tag.status.unconfirmed .shape { border-radius: 50%; }
.tag.status.press-only { background: var(--soft); color: var(--ink2); }
.tag.status.press-only .shape { transform: rotate(45deg); }
.band .tag.status { background: var(--card); }
.band .tag.status.in-force { color: var(--health-fg); }
.band .tag.status.notified { color: var(--data-fg); }
.band .tag.status.draft-status { background: var(--draft-fg); color: var(--paper); }
.band .tag.status.press-only { color: var(--ink2); }
.band .tag.status.unconfirmed { color: var(--ink2); }
.instno { margin-top: 0.1875rem; font-size: var(--fs-meta); color: var(--ink3); overflow-wrap: anywhere; }

/* A choice from a short list: a round mark, the name, and one line about it. Each row is a 44 pixel target. */
.choices { display: flex; flex-direction: column; gap: 0.375rem; }
.choice { display: flex; align-items: flex-start; gap: 0.75rem; min-height: var(--target); padding: 0.625rem 0.875rem; border-radius: 1rem; background: var(--ground); width: 100%; text-align: left; }
.choice b { font-weight: 600; font-size: var(--fs-body); }
.choice .dotmark { flex: none; margin-top: 0.1875rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--faint); background: var(--card); }
.choice[aria-checked="true"] { box-shadow: inset 0 0 0 1px var(--ink); }
.choice[aria-checked="true"] .dotmark { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 45%, var(--card) 50%); }

/* ---- P3b: Legal and the reading page in the new look ---- */
.since { font-size: var(--fs-body); line-height: 1.4; color: var(--ink2); max-width: 34ch; margin-top: 0.125rem; }
.since b { color: var(--ink); font-weight: 700; }
.mastback { display: flex; flex-direction: column; gap: 0.875rem; }
.mastback .mast { align-items: center; }
.kicker { font-size: var(--fs-detail); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 0.25rem; }
.kicker.health { color: var(--health-fg); } .kicker.corporate { color: var(--corporate-fg); } .kicker.courts { color: var(--courts-fg); } .kicker.data { color: var(--data-fg); } .kicker.competition { color: var(--competition-fg); }
.arearows { display: block; }
.arearow { display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; border-top: 1px solid var(--rule); font-size: var(--fs-read); font-weight: 600; }
.arearow .nm { flex: 1; min-width: 0; }
.arearow .when { font-size: var(--fs-small); font-weight: 400; color: var(--ink3); }
.arearow svg.i { color: var(--ink3); }
.quiet { margin-top: 1rem; font-size: var(--fs-meta); line-height: 1.45; color: var(--ink3); }
.legalrow .hl { font-size: 1.09375rem; line-height: 1.24; margin: 0.25rem 0; }
.legalrow.is-read .hl { color: var(--ink2); }
.legalrow .meta { margin-top: 0.125rem; }
.instno { margin-top: 0.1875rem; font: 400 0.78125rem/1.35 var(--mono); color: var(--ink3); overflow-wrap: anywhere; }
.legalrow .toprow { align-items: baseline; }

/* The reading page: no band. Back and the status on top, the area, the title, the meta, the dates, the summary, the text. */
.readtop { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: var(--target); }
.readhead { display: flex; flex-direction: column; gap: 0.375rem; }
.rtitle { font: 600 var(--fs-reading-title)/1.12 var(--serif); letter-spacing: -0.005em; text-wrap: pretty; overflow-wrap: anywhere; }
.rmeta { font-size: var(--fs-meta); color: var(--ink3); }
.readphoto { margin-inline: calc(var(--gutter) * -1); }
.readphoto .ph.lead { margin: 0; border-radius: 0; }
.factstrip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.factstrip .fact { padding: 0.625rem 0; background: none; border: 0; border-radius: 0; }
.factstrip .fact + .fact { border-left: 1px solid var(--rule); padding-left: 0.875rem; }
.factstrip .fact .k { font-size: var(--fs-detail); color: var(--ink3); font-weight: 400; }
.factstrip .fact .v { margin-top: 0.125rem; font-size: var(--fs-body); font-weight: 600; }
.cap { font: 700 var(--fs-meta)/1.2 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; }
.cap.ruled { padding-bottom: 0.5rem; border-bottom: 2px solid var(--ink); margin-bottom: 0.75rem; }
.short { padding: 0.875rem 1rem; }
.short .top { align-items: center; }
.short .k { margin-top: 0.75rem; font-size: var(--fs-detail); font-weight: 400; color: var(--ink3); }
.short .v { margin-top: 0.125rem; font-size: var(--fs-body); line-height: 1.4; }
.reading { padding: 0; }
.reading .text { padding: 0; }
.reading .text p, .reading .text .q, .reading .text li { margin: 0 0 0.75rem; }

/* The compact strip: paper at 92 per cent with a blur and a hairline below, 52 px plus the safe area. It slides in on scrolling up. */
.backstrip { position: fixed; top: 0; left: 50%; width: min(100vw, var(--column)); height: calc(3.25rem + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 0.75rem 0; display: flex; align-items: center; gap: 0.75rem; background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); z-index: 15; transform: translate(-50%, -100%); transition: transform 0.2s ease; }
.backstrip.on { transform: translate(-50%, 0); }
.backstrip .stripText { flex: 1; min-width: 0; font: 600 var(--fs-small)/1.2 var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backstrip .stripText .statusword { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }


/* ---- P3c: Saved, Settings, sign-in, and the classes that replace inline styles ---- */
.mt12 { margin-top: 0.75rem; }
.mt8 { margin-top: 0.5rem; }
.block { display: block; }
.w70 { width: 70%; }
.smallhead { font-size: var(--fs-card); padding: 0.75rem 0 0; }
.footnote.flush { margin: 0.5rem 0 0; }
.reading .line1 { padding: 0; }
.linkrow { width: 100%; text-align: left; }
.rowname { font: 600 var(--fs-body)/1.3 var(--ui); }
.sw.switchonly { border-top: 0; width: auto; gap: 0.5rem; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.srow .sub, .setrow2 .val { display: block; font: 400 var(--fs-meta)/1.35 var(--ui); color: var(--ink3); }
.noteditem { display: block; }
.noteline { padding: 0 0 0.75rem; font-size: var(--fs-body); line-height: 1.45; color: var(--ink2); overflow-wrap: anywhere; }
.selectable { user-select: all; -webkit-user-select: all; }
.mono { font-family: var(--mono); overflow-wrap: anywhere; }
.steps { margin: 0; padding-left: 1.25rem; font-size: var(--fs-body); line-height: 1.45; color: var(--ink2); }
.warnline { color: var(--draft-fg); }
.hint.block { display: block; }

/* Settings: one list under small-capital labels, each row with its current value in grey */
.grouplabel { margin-top: 1.5rem; font: 700 var(--fs-detail)/1.2 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); }
.setrows { display: block; }
.setrow2 { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; min-height: 3.25rem; padding: 0.5rem 0; border-top: 1px solid var(--rule); text-align: left; }
.setrow2 .nm { flex: 1; min-width: 0; font: 600 1rem/1.25 var(--ui); }
.setrow2 svg.i { color: var(--ink3); flex: none; }
.detail { display: flex; flex-direction: column; gap: 0.75rem; }
.sourcerow { align-items: center; }
.sourcerow .rowlink { display: block; color: var(--action); font-size: var(--fs-meta); font-weight: 600; min-height: 0; border: 0; margin-top: 0.25rem; }

/* Sign-in, setup and recovery: the app's own masthead, fields and buttons; errors under the button in warn text */
.authtitle { font: 700 var(--fs-section)/1.2 var(--display); letter-spacing: -0.01em; }
.errorline { font-size: var(--fs-body); font-weight: 600; line-height: 1.4; color: var(--draft-fg); }
.recoverycode { font: 400 1.25rem/1.6 var(--mono); letter-spacing: 0.04em; overflow-wrap: anywhere; padding: 0.75rem; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--card); }
.short .top { flex-wrap: wrap; row-gap: 0.375rem; }
.short .top h2 { white-space: nowrap; }
