/* Research & Development only (every class rd- prefixed, so nothing leaks into the shared components).
   Order after the owner-approved proposal (docs/axiom/pages/proposals/research.md, 2026-10-22): the shared hero
   (css/pages/inner-hero.css) -> the dark Research-direction panel (.dsec, Midnight) -> [toolkit: held out until the
   owner's tools screenshot arrives; its tiles will be ul.rd-tools__grid > li.rd-tool, 3 / 2 / 1 columns] -> Publications
   & Notes (filter pills, status legend, a ruled list of notes from the owner's audit) -> the shared contact band.
   Type: every font-size is a site.css --t-* token (the owner's type scale, 2026-10-22); the headings take Space Grotesk 700
   from the shared inner-page rule in site.css. Colours: site.css tokens only. */

body[data-page="research"] { --rd-sec: clamp(72px, 7.5vw, 120px); }

/* ---------- shared bits: gold-line tag, section heading ---------- */
.rd-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--t-cap); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.3; color: var(--ink-num);
}
.rd-tag::before, .rd-tag::after { content: ""; flex: none; width: 22px; height: 1.5px; background: var(--gold-deep); }   /* decorative rules */
.rd-h2 { font-size: var(--t-h2); }
.rd-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 20px; align-items: start; }
.rd-head__main { grid-column: 1 / 8; }
.rd-head__main > .rd-h2 { margin-top: clamp(14px, 1.4vw, 20px); max-width: 17ch; }
.rd-head__main > .rd-h2--short { max-width: 12ch; }
.rd-sec { padding-block: var(--rd-sec); }

/* ---------- research direction: the dark panel, text left, the staircase disc right ---------- */
.rd-approach.dsec { padding-block: clamp(48px, 5vw, 80px); }   /* the background is the shared .dsec Midnight */
.rd-approach__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; align-items: center; }
.rd-approach__text { grid-column: 1 / 7; position: relative; z-index: 1; }
.rd-approach .rd-tag { color: var(--on-dark-2); }
.rd-approach .rd-tag::before, .rd-approach .rd-tag::after { background: var(--gold); }
.rd-approach .rd-h2 { margin-top: clamp(16px, 1.6vw, 24px); max-width: 17ch; }
.rd-approach__gold { color: var(--gold); }
.rd-nobr { white-space: nowrap; }   /* "self-improvement" never breaks at its hyphen (owner, 2026-10-26: the whole phrase in gold) */
/* the brand's 65 characters a line: 48-50ch (site.css: Inter's "0" is wider than its average letter); the two longest
   paragraphs measured 66 at 50ch, so they take 48ch */
.rd-approach__lead { margin-top: clamp(18px, 1.8vw, 26px); max-width: 48ch; color: var(--on-dark-2); font-size: var(--t-lead); line-height: 1.5; }
/* the four steps in two labelled groups (Methods and evaluation; Safety and governance) */
.rd-groups { margin-top: clamp(28px, 3vw, 40px); display: grid; gap: clamp(22px, 2.2vw, 32px); }
.rd-group__label { padding-bottom: 10px; border-bottom: 1px solid var(--dark-line); font-size: var(--t-h6); color: var(--on-dark); }
.rd-steps { margin-top: 16px; display: grid; gap: 18px; }
.rd-steps > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.rd-steps__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--dark-2); border: 1px solid var(--dark-line); color: var(--gold);
}
.rd-steps__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* the step names, in capitals as the Figma frame writes them (LOOP, EVALUATION, SAFETY, OVERSIGHT): a caption label
   (p.rd-steps__name, Inter, like .rd-tag), not a heading, so the shared heading face stays on real headings and the
   outline is h2 > h3 group labels */
.rd-steps__name { padding-top: 4px; font-size: var(--t-cap); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.3; color: var(--on-dark); }
.rd-steps__name + p { margin-top: 4px; max-width: 50ch; color: var(--on-dark-2); font-size: var(--t-body); line-height: 1.5; }
.rd-approach__text > .actions { margin-top: clamp(28px, 3vw, 40px); }
.rd-approach abbr[title] { text-decoration: none; }   /* the expansion stays in the title; no dotted underline inside a button */
/* the photograph (a spiral staircase seen from above) cover-fits a square and is masked to a soft-edged disc inside a
   faint gold halo, centred in the right half of the panel */
.rd-approach__media { grid-column: 7 / 13; justify-self: center; width: min(100%, 640px); position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.rd-approach__media::before {
  content: ""; position: absolute; inset: 2%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 16%, transparent) 76%, color-mix(in srgb, var(--gold) 5%, transparent) 88%, transparent);
}
.rd-approach__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%, black 86%, transparent);
  mask-image: radial-gradient(circle closest-side at 50% 50%, black 86%, transparent);
}

/* ---------- publications & notes: filter pills, legend, a ruled list ---------- */
.rd-work { padding-bottom: clamp(48px, 4.6vw, 72px); }
.rd-filters { margin-top: clamp(28px, 2.8vw, 40px); gap: 8px; }
/* the filter pills are the site's one pill (site.css: 44px at every width, the 3:1 edge, the pressed ink with its tick); the
   filled --panel pills drawn here before had no edge a control needs on white (1.1:1), integration pass 2026-10-22 */
/* the legend: each status chip exactly as it appears on the rows, followed by what it means */
.rd-legend { margin: clamp(16px, 1.6vw, 22px) 0 0; display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 2.4vw, 36px); }
.rd-legend > div { display: inline-flex; align-items: center; gap: 10px; }
.rd-legend dt, .rd-legend dd { margin: 0; }
.rd-legend dd { font-size: var(--t-small); line-height: 1.4; color: var(--ink-2); }
.rd-notes { margin-top: clamp(20px, 2vw, 28px); border-top: 1px solid var(--line); }
.rd-note {
  display: grid; grid-template-columns: clamp(150px, 14.5vw, 248px) minmax(0, 1fr) minmax(7rem, auto);
  grid-template-areas: "thumb title date" "thumb text date" "thumb tags date";
  grid-template-rows: auto auto 1fr; column-gap: clamp(20px, 2.4vw, 40px);
  padding-block: clamp(16px, 1.5vw, 22px); border-bottom: 1px solid var(--line);
}
/* the rows link nowhere yet (no note pages), so they carry no hover or arrow; the related product sits in the tag row */
.rd-note__thumb { grid-area: thumb; align-self: start; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--dark); }
.rd-note__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rd-note__title { grid-area: title; max-width: 40em; padding-top: 2px; font-size: var(--t-h5); }
.rd-note__text { grid-area: text; max-width: 62ch; margin-top: 8px; color: var(--ink-2); font-size: var(--t-body); line-height: 1.55; }
/* the audit's details (owner, 2026-10-24): a second paragraph and a short list of facts, each with a small gold mark */
.rd-note__text p + p, .rd-note__facts + p { margin-top: 10px; }
.rd-note__facts { margin-top: 10px; display: grid; gap: 6px; font-size: var(--t-small); line-height: 1.5; }
.rd-note__facts li { position: relative; padding-left: 16px; }
.rd-note__facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--gold); }
/* the tag row: the "Research Note" label, then the status as the shared chip (site.css .chip: Achieved the Live chip's
   gold dot, Sealed the green verified tick, In progress the default grey dot, so a status looks the same here as on
   Ecosystem, Marketplace and Technology), then the related product link */
.rd-note__tags { grid-area: tags; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; align-self: start; margin-top: 14px; }
.rd-note__tags > li:not(.chip, .rd-note__rel) {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 7px;
  background: var(--panel); color: var(--ink-2); font-size: var(--t-cap); line-height: 1.3;
}
.rd-note__rel { margin-left: 8px; }
.rd-note__rel .link { min-height: 44px; font-size: var(--t-small); }
.rd-note__date { grid-area: date; justify-self: end; padding-top: 5px; font-size: var(--t-small); color: var(--ink-num); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .rd-head__main { grid-column: 1 / -1; }
  .rd-approach__text, .rd-approach__media { grid-column: 1 / -1; }
  /* stacked under the button, the disc stays small and pulls up, so it ends the panel instead of filling it */
  .rd-approach__media { width: min(100%, 360px); margin-top: -16px; }
}
@media (max-width: 767px) {
  .rd-filters { --pill-x: 14px; }   /* the four pills fit one row at 390 */
  /* the legend as a short list: chips in one column, their meanings lined up in the next */
  .rd-legend { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; }
  .rd-legend > div { display: contents; }
  .rd-note {
    grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px;
    grid-template-areas: "thumb date" "thumb title" "text text" "tags tags"; grid-template-rows: auto 1fr auto auto;
  }
  .rd-note__thumb { aspect-ratio: 4 / 3; border-radius: 8px; }
  .rd-note__date { justify-self: start; padding-top: 0; }
  .rd-note__title { padding-top: 4px; }
  .rd-note__text { margin-top: 12px; }
  .rd-note__tags { margin-top: 12px; }
  .rd-note__rel { margin-left: 0; }
  .rd-approach__media { width: min(80%, 280px); }
}

/* ---------- the short cards (owner, 2026-10-24): the line, "Research highlights", the status, then "Read Research" in
   the right-hand column where the date stood (the date, facts and long text are on the note's own page) ---------- */
.rd-note__high { margin-top: 10px; font-size: var(--t-small); line-height: 1.5; }
.rd-note__high strong { color: var(--ink); font-weight: 600; }
.rd-note__more { grid-area: date; justify-self: end; align-self: start; }
.rd-note__more .link { min-height: 44px; font-size: var(--t-small); white-space: nowrap; }
@media (max-width: 767px) {
  .rd-note { grid-template-areas: "thumb title" "thumb title" "text text" "tags tags" "date date"; }
  .rd-note__more { justify-self: start; margin-top: 4px; }
}

/* ---------- a research note's own page (research-*.html): the tag back to the list, the title, status and date, the
   picture, then the note's text and facts at reading width ---------- */
.rd-detail { padding-block: clamp(120px, 11vw, 168px) clamp(56px, 6vw, 96px); }
.rd-detail__inner { max-width: 880px; }
.rd-detail .rd-tag a { color: inherit; text-decoration: none; }
.rd-detail .rd-tag a:hover { color: var(--ink); }
/* the page's h1 in the inner-page heading face (site.css sets it for h2-h4; an h1 is otherwise the hero's) */
.rd-detail__title { margin-top: clamp(14px, 1.4vw, 20px); font-family: var(--font-head); font-size: var(--t-h2); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.rd-detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.rd-detail__meta .rd-note__date { padding-top: 0; }
.rd-detail__thumb { margin-top: clamp(24px, 3vw, 40px); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--dark); }
.rd-detail__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rd-detail .rd-note__text { max-width: 68ch; margin-top: clamp(24px, 3vw, 36px); }
.rd-detail .rd-note__facts { font-size: var(--t-body); }
.rd-detail__rel { margin-top: 20px; }
.rd-detail__rel .link { min-height: 44px; }
