/* DESIGN-NAV-1 (draft): one small stylesheet, loaded last on every page through templates/document.html.
   Every rule is scoped to the public shell (.rt-public / .site-shell .rt-header) or to the signed-in
   dashboard (body[data-dashboard-ui]); account pages only receive the A1 form-field floor.
   No colour, font, image or component is replaced: the rules reuse the existing --rt-* and glass tokens. */

/* ---------------------------------------------------------------------------------------------------
   A1 · Denser, consistent public typography.
   Reuses the measured intent of TATHET-R1 (WEBB-TATHET-R1-FORSLAG-20261114-R1, MANIFEST e1b37824,
   tools/proposal-r1.json 587846d6): one scale on the existing --rt-* tokens, about 0.9x today's home
   scale, for every public page type. Floors: body text 16px, form fields 16px. Ids in brackets are the
   proposal's edit ids; here they are overrides instead of edits of red-thread.css/public-evidence.css,
   so the bundles and the later releases that rebuild them stay untouched.
   --------------------------------------------------------------------------------------------------- */
@media (min-width: 801px) {
  /* [S1, A4-A11] The home scale applies to every public page type, not only home and Verification. */
  .rt-public,
  .rt-public :is(.rt-home,.verification-page) {
    --rt-body: clamp(1rem, .9rem + .11vw, 1.0625rem);
    --rt-title: clamp(1.125rem, .99rem + .225vw, 1.2375rem);
    --rt-heading: clamp(1.6875rem, 1.26rem + .9vw, 2.025rem);
    --rt-h1: clamp(2.7rem, 3.42vw, 3.15rem);
    --rt-ingress: 1.0625rem;
    --rt-section-space: clamp(3.15rem, 4.5vw, 4.05rem);
    --rt-hero-height: clamp(27rem, 34.2vw, 31.5rem);
    --rt-hero-space: clamp(2.7rem, 3.6vw, 3.6rem);
  }
  /* [A12] Header 80 -> 72px at 1440; the mobile header height is unchanged. */
  .site-shell .rt-header { --header-height: clamp(64px, 5vw, 72px); }
}
@media (min-width: 1100px) {
  /* [A1-A3] The 115% step above 1100px is removed; Trust Score and the footer use the same scale. */
  .rt-public :is(.ts-public,.rt-footer) {
    --rt-body: clamp(1rem, .9rem + .11vw, 1.0625rem);
    --rt-title: clamp(1.125rem, .99rem + .225vw, 1.2375rem);
    --rt-heading: clamp(1.6875rem, 1.26rem + .9vw, 2.025rem);
  }
  /* [V1-V7] Fixed sizes above 1100px take the value the same element already has below 1100px. */
  .rt-public .ts-public .ts-lead { font-size: 18px; }
  .rt-public .ts-public :is(.ts-eyebrow,.ts-step) { font-size: 14px; }
  .rt-public :is(.rt-footer .rt-concept-note,.ts-public .ts-chip) { font-size: 13px; }
  .rt-public .ts-public :is(.ts-primary,.ts-actions > a) { font-size: 16px; }
  .rt-public .rt-principles p { font-size: 17px; }
  .site-shell .site-footer.rt-footer .td-legal-notice { font-size: .875rem; }
  .rt-public .rt-footer .brand-name { font-size: 18px; }
}
@media (max-width: 800px) {
  /* [S2, A13, A14, A16] The mobile scale also applies to every public page type (h1 32px at 390). */
  .rt-public,
  .rt-public :is(.rt-home,.verification-page) {
    --rt-body: clamp(1rem, .9375rem + .25vw, 1.0625rem);
    --rt-title: clamp(1.125rem, 1rem + .5vw, 1.25rem);
    --rt-heading: clamp(1.35rem, 1.125rem + .9vw, 1.575rem);
    --rt-h1: clamp(1.8rem, 1.35rem + 2.7vw, 2.1375rem);
    --rt-ingress: clamp(1rem, .9375rem + .25vw, 1.125rem);
    --rt-section-space: clamp(1.8rem, 5.4vw, 2.7rem);
  }
}
/* [R1-R8] Hard-coded heading sizes that bypassed the scale now use the same tokens. */
.rt-public .pe-page h1,
.rt-public .pd-page h1,
.rt-public .ts-public h1 { font-size: var(--rt-h1); }
.rt-public .pe-lead { font-size: var(--rt-ingress); }
.rt-public .pe-project .pe-project-identity h2 { font-size: var(--rt-title); }
/* [D1] Dashboard outer and card spacing x0.9 above 1000px; the mobile values (16px) are unchanged. */
@media (min-width: 1001px) {
  body[data-dashboard-ui] { --glass-pad: 25px; --glass-card-pad: 20px; }
}
/* [F1-F3, generalised] iOS Safari zooms into a focused field whose text is smaller than 16px. On small
   and touch screens every text field, select and textarea is at least 16px (or its parent's size when
   that is larger). !important is limited to this accessibility floor: several dashboard fields are set
   through id selectors. User zoom is never disabled: every viewport in the release is
   "width=device-width, initial-scale=1" without maximum-scale or user-scalable. */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  :is(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],[type=reset],[type=image],[type=hidden]),select,textarea) {
    font-size: max(16px, 1em) !important;
  }
}
/* Mobile layout: keep the browser's own text inflation from enlarging text unevenly in landscape.
   100% (not none) keeps pinch zoom and text zoom fully available. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ---------------------------------------------------------------------------------------------------
   A2 · Glass for dashboard widgets, the edit box, the widget footer and the Add widget control.
   Rules marked GLAS-WIDGET (n) are carried over unchanged from GLAS-WIDGET R1 (WEBB-GLAS-WIDGET-20261114-R1,
   MANIFEST b6b9f794, candidate HEAD e7388612, DIFF-GLASWIDGET.diff 1b2a455a), which appended them to
   glass-sidebar.css and glass-surfaces.css; here they live in this file so neither generated glass file
   changes. Not carried over: (4) the fixed widget height (E04 11902 fixes the same rule in
   glass-sidebar.css:751/glass-surfaces.css:972) and (5) the ISO tooltip dates (JavaScript, not glass).
   --------------------------------------------------------------------------------------------------- */
/* GLAS-WIDGET (1): the edit-mode box of Your overview (.edit-actions) uses the KPI card material instead of
   the blue gradient and #3d6685 edge of workspace.css:41; its text uses the glass ink. */
html body[data-dashboard-ui] .edit-actions{background:var(--surface);border:1px solid rgb(var(--glass-pill)/.18);border-radius:22px;box-shadow:inset 0 1px 0 #ffffff40,0 4px 20px #16120e1a}
html body[data-dashboard-ui] .personal-workspace .edit-actions>p{color:var(--glass-ink)}
/* GLAS-WIDGET (2): the strip under a widget in edit mode is part of the widget's glass (was #0a1c29). */
html body[data-dashboard-ui] .widget-resize-corner{background:transparent}
/* GLAS-WIDGET (3): the cards of the Add widget dialog use the KPI card material (was a blue gradient, #315572 edge). */
html body[data-dashboard-ui] .catalog-item{background:var(--surface);border:1px solid rgb(var(--glass-pill)/.18);border-radius:22px;box-shadow:inset 0 1px 0 #ffffff40,0 4px 20px #16120e1a}
/* GLAS-WIDGET (6): the All projects / Following switch uses the glass filter-chip pattern of Explore projects. */
html body[data-dashboard-ui] .overview-tabs{background:transparent;border:0;box-shadow:none}
html body[data-dashboard-ui] .personal-workspace .overview-tabs button[aria-pressed]{background:transparent;border:1px solid var(--glass-muted);border-radius:var(--radius-pill);color:var(--glass-ink);box-shadow:none}
html body[data-dashboard-ui] .personal-workspace .overview-tabs button[aria-pressed=true]{background:var(--glass-accent);border-color:var(--glass-accent);color:rgb(var(--glass-tint));font-weight:700}
/* GLAS-WIDGET (7): the toast uses the dialog material; below 761px, where glass removes backdrop filters, an opaque tint. */
html body[data-dashboard-ui] .toast{background:var(--surface);border:1px solid rgb(var(--glass-pill)/.18);border-radius:22px;box-shadow:inset 0 1px 0 #ffffff40,0 4px 20px #16120e1a;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);color:var(--glass-ink)}
@media(max-width:760px){html body[data-dashboard-ui] .toast{background:rgb(var(--glass-tint))}}
/* GLAS-WIDGET (8): Settings -> Product tiers: plan labels and the table header row are neutral glass. */
html body[data-dashboard-ui] .plan-label{background:transparent;border-color:var(--glass-muted);color:var(--glass-ink)}
html body[data-dashboard-ui] .plan-card--premium .plan-label{background:rgb(var(--glass-pill)/.12);border-color:var(--glass-accent)}
html body[data-dashboard-ui] .plans-table thead th{background:rgb(var(--glass-pill)/.12);color:var(--glass-ink)}
/* A2 new · Edit box buttons (Add widget, Reset, Cancel) are glass plates with the glass card edge, so they stay
   visible on the glass box; the primary Save layout button keeps its existing glass primary style. */
html body[data-dashboard-ui] .edit-actions .button:not(.button--primary){background:rgb(var(--glass-tint)/.92);border:1px solid rgb(var(--glass-pill)/.18);color:var(--glass-ink);box-shadow:inset 0 1px 0 #ffffff18}
html body[data-dashboard-ui] .edit-actions .button:not(.button--primary):is(:hover,:focus-visible){background:rgb(var(--glass-pill)/.12)}
/* A2 new · Widget controls in edit mode (move, remove, resize) use the glass ink and the glass hover tint instead of
   #bad8ec / #9ac3de icons and the #254c68 / #23465d hover of workspace.css:41 and :164-166 (light text on light glass). */
html body[data-dashboard-ui] :is(.widget-controls .icon-button,.widget-resize-grip.icon-button){color:var(--glass-ink)}
html body[data-dashboard-ui] :is(.widget-controls .icon-button,.widget-resize-grip):is(:hover,[aria-pressed=true]){background:rgb(var(--glass-pill)/.12);color:var(--glass-ink)}
html body[data-dashboard-ui] .widget.is-resizing{outline-color:var(--glass-accent)}
/* A2 new · Widget footer: the divider and the footer action belong to the widget's glass (was var(--line) #183e55
   and a #b1d8f6 text button). */
html body[data-dashboard-ui] .widget-footer{border-top:1px solid rgb(var(--glass-pill)/.18)}
html body[data-dashboard-ui] .widget-footer .text-button{background:transparent;color:var(--glass-ink);box-shadow:none;border-radius:var(--radius-10)}
html body[data-dashboard-ui] .widget-footer .text-button:is(:hover,:focus-visible){background:rgb(var(--glass-pill)/.12)}
/* A2 new · Add widget dialog: the catalog icon tile and card copy use glass tokens (was #1b405c, #95caff, #b3cfe1),
   and the empty layout note and save status use the glass muted ink (was #3c6683 / #b7d3e8 / #bcd9ee). */
html body[data-dashboard-ui] .catalog-icon{background:rgb(var(--glass-pill)/.12)}
html body[data-dashboard-ui] .catalog-icon svg{stroke:var(--glass-accent)}
html body[data-dashboard-ui] .catalog-item p{color:var(--glass-muted)}
html body[data-dashboard-ui] .empty-widget-layout{border-color:rgb(var(--glass-pill)/.4);color:var(--glass-muted)}
html body[data-dashboard-ui] #save-status{color:var(--glass-muted)}

/* ---------------------------------------------------------------------------------------------------
   A3 · The blue panels of the project dialog ("About the project", "Official links", "Project statements",
   the provenance footer and related introductions: .pd-card inside .pd-introduction, public-evidence.css:127)
   use the same glass card material as the Add widget cards. Text, links and dividers move to glass tokens,
   because the panel is no longer dark in the light glass mode. The public profile page is not affected.
   --------------------------------------------------------------------------------------------------- */
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile]{color:var(--glass-ink)}
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-card{background:var(--surface);border:1px solid rgb(var(--glass-pill)/.18);border-radius:22px;box-shadow:inset 0 1px 0 #ffffff40,0 4px 20px #16120e1a;color:var(--glass-ink)}
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-card.pd-profile-permission{border:2px solid var(--warning)}
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] :is(h2,h3,p,.pd-intro,.pd-profile-facts dd){color:var(--glass-ink)}
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] :is(.pd-profile-facts dt,.pd-profile-provenance p,.pd-muted){color:var(--glass-muted)}
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] a{color:var(--glass-accent)}
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] :is(.pd-profile-section,.pd-profile-facts>div){border-color:rgb(var(--glass-pill)/.18)}

/* ---------------------------------------------------------------------------------------------------
   A6 · Chart heights follow the chart's own width within min/max clamps; no fixed pixel heights.
   The viewBox is kept. The dashboard glass charts (glass-charts.js / glass-runtime.js) compute the same
   rule in JavaScript, because their SVG units are CSS pixels.
   --------------------------------------------------------------------------------------------------- */
/* Evidence measurement chart (viewBox 80 30 500 210, preserveAspectRatio none): was 280 / 250 / 220px. */
.reading-measurement svg.reading-plot { height: auto; aspect-ratio: 500 / 210; min-height: 200px; max-height: 340px; }
.reading-series-axes .reading-plot { height: auto; aspect-ratio: 500 / 210; min-height: 180px; max-height: 300px; }
/* Expanded and collapsed states: were clamp(300px,44vh,480px) / 300px and 170px. */
.reading-measurement[data-expanded=true] svg.reading-plot { height: auto; aspect-ratio: 500 / 210; min-height: 300px; max-height: 480px; }
.reading-measurement[data-expanded=false] svg.reading-plot { height: auto; aspect-ratio: 500 / 120; min-height: 140px; max-height: 200px; }
/* Market chart plot box (the script reads the box and sets the viewBox): was clamp(240px,36dvh,350px) and 260px on phones. */
.tdp-chart-plot { height: auto; aspect-ratio: 2 / 1; min-height: 240px; max-height: 380px; }
.tdp-market-dialog--expanded .tdp-chart-plot { height: auto; aspect-ratio: 2 / 1; min-height: 260px; max-height: min(600px, 70dvh); }

/* ---------------------------------------------------------------------------------------------------
   D · Top navigation with disclosure submenus (templates/public-header.html, public/components/landing-shell.js,
   behaviour in public/components/shell.js). From 1280px each group is a button (aria-expanded, aria-controls)
   that shows its submenu below; below 1280px the existing <details class="rt-menu"> shows the same groups as
   sections. The active group has a purple underline.
   --------------------------------------------------------------------------------------------------- */
.site-shell .rt-header { --dn-nav-active: #aa87ed; }
.site-shell .rt-header .rt-nav-list { display: flex; align-items: center; gap: 2px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.site-shell .rt-header .rt-nav-item { position: relative; display: flex; align-items: center; min-width: 0; margin: 0; }
.site-shell .rt-header .rt-nav-toggle { display: inline-flex; align-items: center; gap: 4px; margin: 0; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 14px; color: var(--rt-muted); cursor: pointer; }
.site-shell .rt-header .rt-nav-toggle:is(:hover,[aria-expanded=true]) { color: var(--rt-text); background: var(--rt-card); }
.site-shell .rt-header .rt-nav-caret { display: inline-flex; flex: 0 0 14px; }
.site-shell .rt-header .rt-nav-caret svg { width: 14px; height: 14px; flex: 0 0 14px; transform: rotate(90deg); }
.site-shell .rt-header .rt-nav-toggle[aria-expanded=true] .rt-nav-caret svg { transform: rotate(-90deg); }
.site-shell .rt-header .rt-nav-item > .nav-link[aria-current] { background: transparent; }
/* The active group (current page or one of its pages) is marked with a purple underline. */
.site-shell .rt-header .rt-nav-item > :is(.nav-link,.rt-nav-toggle)::after { content: none; }
.site-shell .rt-header .rt-nav-item[data-nav-active] > :is(.nav-link,.rt-nav-toggle) { position: relative; color: var(--rt-text); }
.site-shell .rt-header .rt-nav-item[data-nav-active] > :is(.nav-link,.rt-nav-toggle)::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--dn-nav-active); box-shadow: none; }
.site-shell .rt-header .rt-nav-sub { margin: 0; padding: 0; list-style: none; }
.site-shell .rt-header .rt-nav-sub a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; color: var(--rt-muted); font-size: 14px; line-height: 1.35; text-decoration: none; }
.site-shell .rt-header .rt-nav-sub a:is(:hover,[aria-current]) { color: var(--rt-text); background: #f4f7fa0d; }
.site-shell .rt-header .rt-nav-sub a[aria-current] { box-shadow: inset 2px 0 var(--dn-nav-active); }
/* Desktop: the submenu opens below its button and overlays the page. */
.site-shell .rt-header .rt-desktop-nav .rt-nav-toggle { min-height: 44px; padding: 10px 6px 10px 8px; white-space: nowrap; }
.site-shell .rt-header .rt-desktop-nav .rt-nav-sub { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: max-content; min-width: 220px; max-width: 320px; padding: 6px; background: var(--rt-card); border: 1px solid var(--rt-line); border-radius: 10px; box-shadow: 0 20px 30px #0006; }
.site-shell .rt-header .rt-desktop-nav .rt-nav-sub[hidden] { display: none; }
.site-shell .rt-header .rt-desktop-nav .rt-nav-sub a { white-space: normal; }
/* Mobile and the hamburger range: the same groups as sections in the existing menu, no nested disclosure. */
.site-shell .rt-header .rt-menu .rt-nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
.site-shell .rt-header .rt-menu .rt-nav-item { flex-direction: column; align-items: stretch; padding-block: 4px; }
.site-shell .rt-header .rt-menu .rt-nav-item + .rt-nav-item { border-top: 1px solid var(--rt-line); }
.site-shell .rt-header .rt-menu .rt-nav-group-title { margin: 0; padding: 12px 8px 4px; color: var(--rt-text); font-size: 16px; font-weight: 600; }
.site-shell .rt-header .rt-menu .rt-nav-sub a { padding-inline: 16px; font-size: 15px; }
.site-shell .rt-header .rt-menu .rt-nav-item[data-nav-active] > .rt-nav-group-title { text-decoration: underline 2px var(--dn-nav-active); text-underline-offset: 6px; }
.site-shell .rt-header .rt-menu .rt-nav-item[data-nav-active] > .nav-link::after { left: 8px; right: auto; width: 2em; bottom: 6px; }
@media (min-width: 1280px) and (max-width: 1535px) {
  /* Seven groups with carets need a little less room at the narrower desktop widths (measured in headless Chrome:
     with 14px labels German left only 2px free next to the language menu at 1280 and 1440). */
  .site-shell .rt-header .header-inner { gap: 16px; }
  .site-shell .rt-header .rt-desktop-nav .rt-nav-toggle,
  .site-shell .rt-header .rt-desktop-nav .rt-nav-item > .nav-link { padding-inline: 5px; font-size: 13px; }
}
@media (forced-colors: active) {
  .site-shell .rt-header .rt-nav-item[data-nav-active] > :is(.nav-link,.rt-nav-toggle)::after { background: CanvasText; }
  .site-shell .rt-header .rt-desktop-nav .rt-nav-sub { border-color: CanvasText; }
}

/* SAMLAD-2a del 2 WEBB-PROFILVY-GLAS-R1: the project profile dialog in the dashboard ------------------------------
   #detail-dialog.evidence-dialog showing templates/dashboard-project-evidence.html (+ dashboard-project-introduction.html),
   every profile and language. Refines A3 above. Only existing tokens and the measured values of existing components:
   - cards: the rendered .glass-kpi-card material (var(--surface), 1px rgb(var(--glass-pill)/.18), 22px, var(--surface-shadow),
     blur 24px / 16px up to 768px, var(--glass-card-pad)); no blue fill or edge remains;
   - type: the dashboard card scale (card heading 16/24 650, widget body 15/24 and 14/22 up to 768px, meta 12-13px muted);
   - tabs: the period switcher #glass-kpi-periods as rendered (track rgb(var(--glass-tint)/.42) with the var(--glass-muted)
     edge of glass-surfaces.css:964, selected plate rgb(var(--glass-pill)/.20), --glass-ink, bold); the five tabs wrap
     inside the track instead of scrolling, so none ends up outside the dialog;
   - header: one close control (the dialog's X); the reader controls are a compact status block;
   - height: the dialog follows its content up to the previous fixed height, so no empty area remains below it.
   --------------------------------------------------------------------------------------------------------------------- */
@media (min-width: 601px) {
  html body[data-dashboard-ui] #detail-dialog.evidence-dialog:has(.reading-page) { height: fit-content; max-height: calc(100dvh - 64px); margin-block: 32px auto; }
}
@media (max-width: 600px) {
  html body[data-dashboard-ui] #detail-dialog.evidence-dialog:has(.reading-page) { height: fit-content; max-height: calc(100dvh - 32px); margin-block: 16px auto; }
}
html body[data-dashboard-ui] #detail-dialog.evidence-dialog:has(.reading-page) #dialog-body { flex: 0 1 auto; padding-bottom: 16px; }
html body[data-dashboard-ui] #detail-dialog .reading-page [data-reading-panel] > :last-child,
html body[data-dashboard-ui] #detail-dialog .reading-page > :last-child,
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] { margin-bottom: 0; }
/* Header: project mark and category on the left, refresh and read status as one compact block on the right. */
html body[data-dashboard-ui] #detail-dialog .reading-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 0 0 16px; margin: 0; }
html body[data-dashboard-ui] #detail-dialog .reading-project { gap: 12px; padding: 0; min-width: 0; }
html body[data-dashboard-ui] #detail-dialog .reading-project [data-reading-identity] { flex: none; }
html body[data-dashboard-ui] #detail-dialog .reading-project .reading-secondary { margin: 0; font-size: 14px; line-height: 20px; color: var(--glass-muted); }
html body[data-dashboard-ui] #detail-dialog .reading-header [data-reading-controls] { flex: 0 1 420px; min-width: 0; }
html body[data-dashboard-ui] #detail-dialog .reading-header .reading-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 8px; margin: 0; }
html body[data-dashboard-ui] #detail-dialog .reading-header .reading-controls > .reading-refresh { grid-row: 1 / span 2; }
html body[data-dashboard-ui] #detail-dialog .reading-header .reading-controls > :not(.reading-refresh) { grid-column: 2; min-width: 0; }
html body[data-dashboard-ui] #detail-dialog .reading-header .reading-controls > :is(p, .reading-auto-status) { margin: 0; font-size: 12px; line-height: 18px; color: var(--glass-muted); }
/* Tabs: the period switcher component; wraps within its track at every width. */
html body[data-dashboard-ui] #detail-dialog .reading-tabs[role=tablist] { display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; max-width: 100%; box-sizing: border-box; margin: 0 0 20px; padding: 4px; overflow: visible; scroll-snap-type: none; border: 1px solid var(--glass-muted); border-radius: 23px; background: rgb(var(--glass-tint) / .42); box-shadow: inset 0 1px 0 #ffffff30, 0 2px 6px #050d1d12; }
html body[data-dashboard-ui] #detail-dialog .reading-tabs[role=tablist] button { display: inline-grid; justify-items: center; flex: 0 1 auto; min-width: 0; min-height: 36px; margin: 0; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; color: var(--glass-muted); font-size: 14px; line-height: 21px; font-weight: 400; white-space: nowrap; scroll-snap-align: none; }
/* The bold label width is reserved, so selecting a tab never moves the others. */
html body[data-dashboard-ui] #detail-dialog .reading-tabs[role=tablist] button::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 700; pointer-events: none; }
html body[data-dashboard-ui] #detail-dialog .reading-tabs[role=tablist] button[aria-selected=true] { background: rgb(var(--glass-pill) / .20); box-shadow: inset 0 1px 0 rgb(var(--glass-pill) / .32), 0 2px 5px #050d1d20; color: var(--glass-ink); font-weight: 700; border: 0; }
html body[data-dashboard-ui] #detail-dialog .reading-tabs[role=tablist] button:not([aria-selected=true]):hover { background: rgb(var(--glass-pill) / .12); color: var(--glass-ink); }
html body[data-dashboard-ui] #detail-dialog .reading-tabs[role=tablist] button:focus-visible { outline: 2px solid var(--glass-focus); outline-offset: -2px; }
@media (max-width: 600px) {
  /* Narrow screens: two columns inside the same track (the last odd tab takes the full row); labels may wrap. */
  html body[data-dashboard-ui] #detail-dialog .reading-tabs[role=tablist] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  html body[data-dashboard-ui] #detail-dialog .reading-tabs[role=tablist] button { padding: 6px 8px; border-radius: 16px; font-size: 13px; line-height: 18px; white-space: normal; text-align: center; overflow-wrap: break-word; }
  html body[data-dashboard-ui] #detail-dialog .reading-tabs[role=tablist] button:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Other tabs of the same dialog, from the overflow and colour measurement at 360/390 (logg/del2):
   "Evidence scope" rows let a long label wrap instead of pushing the value out (+2-3px); the Japanese "Ask about this
   project" heading (word-break keep-all) may break when it would overflow (+15px at 360); the blue edges #294b64 / #29465a
   of that section, the scope list and the history section use the glass card edge; a nested last margin no longer adds
   space below the History and Sources tabs. */
html body[data-dashboard-ui] #detail-dialog .reading-summary dl > div > dt { min-width: 0; overflow-wrap: anywhere; }
html body[data-dashboard-ui] #detail-dialog .reading-summary dl > div > dd { min-width: min-content; overflow-wrap: break-word; }
html body[data-dashboard-ui] #detail-dialog .reading-question h2 { overflow-wrap: anywhere; }
html body[data-dashboard-ui] #detail-dialog :is(.reading-question, .reading-summary dl, .archive-section[data-widget-part=history]) { border-color: rgb(var(--glass-pill) / .18); }
html body[data-dashboard-ui] #detail-dialog .reading-page [data-reading-panel] > :last-child > :last-child,
html body[data-dashboard-ui] #detail-dialog .reading-page [data-reading-panel] > :not([hidden]):not(:has(~ :not([hidden]))) { margin-bottom: 0; }
/* Cards: the KPI card material; text on the dashboard card scale. */
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] { font-size: 15px; line-height: 24px; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] :is(.pd-profile-grid, .pd-profile-side) { gap: 16px; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-card { padding: var(--glass-card-pad); border: 1px solid rgb(var(--glass-pill) / .18); border-radius: 22px; background: var(--surface); box-shadow: var(--surface-shadow); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); color: var(--glass-ink); }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-card.pd-profile-permission { border: 2px solid var(--warning); }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] :is(.pd-profile-provenance, [data-related-public-projects]) { margin-top: 16px; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] h2 { margin: 0 0 12px; font-size: 16px; line-height: 24px; font-weight: 650; letter-spacing: normal; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] h3 { margin: 0 0 6px; font-size: 15px; line-height: 22px; font-weight: 650; letter-spacing: normal; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] :is(p, .pd-intro) { margin: 0 0 12px; font-size: 15px; line-height: 24px; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-profile-section { margin-top: 20px; padding-top: 16px; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] :is(.pd-profile-section > a, .pd-header-links > a, .pd-profile-provenance li > a, .pd-profile-provenance summary) { font-size: 14px; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-profile-facts dt { font-size: 12px; line-height: 18px; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-profile-facts dd { font-size: 14px; line-height: 22px; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] :is(.pd-profile-provenance p, .pd-attribution[data-profile-reviewed]) { font-size: 13px; line-height: 20px; color: var(--glass-muted); }
html body[data-dashboard-ui] #detail-dialog #reading-about > .reading-secondary { margin: 0; font-size: 13px; line-height: 20px; color: var(--glass-muted); }
/* "In this profile": an ordered list of the profile's parts in reading order, as numbered glass plates. */
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] nav.pd-contents[data-profile-contents] { display: block; margin: 16px 0 4px; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] p.pd-contents-title { margin: 0 0 8px; font-size: 12px; line-height: 18px; font-weight: 600; color: var(--glass-muted); }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-contents > ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: pd-contents; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-contents li { min-width: 0; margin: 0; counter-increment: pd-contents; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-contents a { display: flex; align-items: center; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 4px 14px 4px 6px; border: 1px solid rgb(var(--glass-pill) / .24); border-radius: 999px; background: rgb(var(--glass-tint) / .42); box-shadow: inset 0 1px 0 #ffffff30; color: var(--glass-ink); font-size: 14px; line-height: 20px; text-decoration: none; overflow-wrap: anywhere; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-contents a::before { content: counter(pd-contents); content: counter(pd-contents) / ""; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(var(--glass-pill) / .20); box-shadow: inset 0 1px 0 rgb(var(--glass-pill) / .32); color: var(--glass-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-contents a:hover { background: rgb(var(--glass-pill) / .12); }
html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-contents a:focus-visible { outline: 2px solid var(--glass-focus); outline-offset: 2px; }
@media (max-width: 768px) {
  html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-card { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] { font-size: 14px; line-height: 22px; }
  html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] :is(p, .pd-intro) { font-size: 14px; line-height: 22px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-card { background: rgb(var(--glass-tint)); }
}
@media (forced-colors: active) {
  html body[data-dashboard-ui] #detail-dialog .reading-tabs[role=tablist] button[aria-selected=true] { outline: 2px solid Highlight; outline-offset: -2px; }
  html body[data-dashboard-ui] #detail-dialog .pd-introduction[data-editorial-profile] .pd-contents a { border-color: CanvasText; }
}
