/*
 * Aamin AI inner pages (HAFR workspace): pages/pages.css, the shared inner-page pieces (pages/lib/parts.mjs).
 * The frame is the home's one template, lib/story.css (.hf-chapter, .hf-row, .hf-eyebrow), with the home's
 * tokens (page.css §2). This file only adds what an inner page needs and the home does not have: the hero
 * with its breadcrumb, the answer box, body blocks (term grids, lists, steps, tables, notes, sub-blocks),
 * the reading column of articles, cards, the bot figure and the dotted map. Classes: .pg-*.
 * A template's own rules go in pages/templates/<type>.css (linked automatically when it exists).
 */

/* NEW TOKENS */
:root {
  --pg-col: 760px;               /* body text column (lists, paragraphs, notes) */
  --pg-prose: 720px;             /* the articles' reading column */
  --pg-gap: clamp(28px, 3vw, 44px);
  --pg-card-radius: 20px;
  --pg-line: rgb(11 13 16 / 0.1);
}

/* ---------------------------------------------------------------- hero */
.pg-hero { position: relative; padding-block: calc(var(--hf-nav-h) + clamp(40px, 6vw, 88px)) clamp(64px, 7vw, 104px); }
.pg-hero__inner {
  max-inline-size: calc(var(--hf-story-max) + 2 * var(--hf-story-pad-x)); margin-inline: auto;
  padding-inline: var(--hf-story-pad-x);
}
.pg-hero__text { max-inline-size: 860px; }
.pg-hero--visual .pg-hero__inner {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 80px); align-items: center;
}
.pg-hero__visual { min-inline-size: 0; display: flex; justify-content: center; }
.pg-hero__eyebrow { margin-block-start: 22px; }
.pg-hero__title {
  margin: 16px 0 20px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.03;
  font-size: clamp(40px, 5.2vw, 66px); color: var(--hf-color-text-1); text-wrap: balance;
}
.pg-hero--visual .pg-hero__title { font-size: clamp(38px, 4.4vw, 58px); }
.pg-hero__lead { margin: 0 0 8px; max-inline-size: 58ch; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--hf-color-text-2); text-wrap: pretty; }
.pg-hero .pg-ctas { margin-block-start: 28px; }
.pg-placeholder { margin-block-start: 24px; }
.pg-contact__form { display: grid; gap: 4px; margin-block-start: 32px; scroll-margin-top: calc(var(--hf-nav-h) + 24px); }
.pg-contact__form .call-address { margin: 4px 0 0; }

/* breadcrumb */
.pg-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.3; color: var(--hf-color-text-3); }
.pg-crumbs li { display: inline-flex; align-items: center; gap: 6px; min-inline-size: 0; }
.pg-crumbs a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--hf-color-text-2); text-decoration: none; border-radius: 4px; }
.pg-crumbs a:hover { color: var(--hf-color-text-1); text-decoration: underline; text-underline-offset: 4px; }
.pg-crumbs__sep { inline-size: 14px; block-size: 14px; color: var(--hf-color-text-3); }
.pg-crumbs [aria-current] { display: inline-block; max-inline-size: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--hf-color-text-3); }

/* two tones and buttons */
.pg-tone { color: var(--hf-tone); }
.pg-tone--block { display: block; }
.pg-tone--sub { margin-block-start: 10px; font-size: 0.56em; line-height: 1.2; letter-spacing: -0.02em; }
.hf-chapter__lead + .hf-chapter__lead { margin-block-start: 14px; }
/* the header's link to the page in view (build-pages sets aria-current) */
.hf-nav__pill a[aria-current] { color: var(--hf-color-text-1); background: var(--hf-surface-inset); }
.pg-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------- sections */
.pg-sec { position: relative; }
.pg-sec > .hf-chapter:last-child { padding-block-end: var(--hf-row-pad-y); }
.pg-body {
  max-inline-size: calc(var(--hf-story-max) + 2 * var(--hf-story-pad-x)); margin-inline: auto;
  padding: 48px var(--hf-story-pad-x) var(--hf-row-pad-y);
  display: grid; gap: var(--pg-gap);
}
.pg-body > :is(.pg-p, .pg-checks, .pg-steps, .pg-note, .pg-cta, .pg-pills, .pg-answer__box) { inline-size: 100%; max-inline-size: var(--pg-col); margin-inline: auto; }
.pg-p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--hf-color-text-2); text-wrap: pretty; }
.pg-p a, .pg-term__d a, .pg-checks a, .pg-steps a, .pg-prose a:not([class]), .faq-a__text a, .pg-answer__text a { color: var(--hf-color-text-1); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pg-p strong, .pg-checks strong, .pg-steps strong { color: var(--hf-color-text-1); font-weight: 600; }

/* answer box (the old pages' "What is …?") */
.pg-answer { padding-block: clamp(56px, 6vw, 88px); }
.pg-answer__box { max-inline-size: calc(860px + 2 * var(--hf-story-pad-x)); margin-inline: auto; padding-inline: var(--hf-story-pad-x); display: grid; gap: 16px; }
.pg-answer__label { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--hf-color-text-3); }
.pg-answer__text { margin: 0; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.5; letter-spacing: -0.01em; color: var(--hf-color-text-1); text-wrap: pretty; }
.pg-answer__box .pg-pills { margin-block-start: 8px; }
.pg-answer__box--inline { padding: 24px 28px; border-radius: var(--pg-card-radius); background: var(--hf-surface-card); box-shadow: var(--hf-ring-soft); }
.pg-answer__box--inline .pg-answer__text { font-size: 19px; }

/* pills (standards in Latin: .hf-chip; words: .hf-pill) */
.pg-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pg-pills--sm .hf-chip, .pg-pills--sm .hf-pill { min-block-size: 24px; padding: 2px 10px; font-size: 12px; }

/* term grid: "Workflow design — We pick one workflow…" */
.pg-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(32px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.pg-terms--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-term { padding-block-start: 20px; border-block-start: 1px solid var(--pg-line); }
.pg-term__t { margin: 0 0 8px; font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; color: var(--hf-color-text-1); }
.pg-term__d { margin: 0; font-size: 16px; line-height: 1.6; color: var(--hf-color-text-2); text-wrap: pretty; }

/* checked list, steps, links */
.pg-checks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pg-checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.55; color: var(--hf-color-text-1); }
.pg-checks li > .hf-icon { flex: none; inline-size: 22px; block-size: 22px; margin-block-start: 2px; color: var(--hf-color-sea-600, #006776); }
.pg-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: pg-step; }
.pg-steps li { position: relative; counter-increment: pg-step; padding-inline-start: 48px; font-size: 17px; line-height: 1.6; color: var(--hf-color-text-2); }
.pg-steps li::before {
  content: counter(pg-step); position: absolute; inset-inline-start: 0; inset-block-start: 0;
  display: grid; place-items: center; inline-size: 30px; block-size: 30px; border-radius: 50%;
  background: var(--hf-surface-card); box-shadow: var(--hf-ring-soft);
  font: 500 13px/1 var(--hf-font-mono); color: var(--hf-color-text-1);
}
.pg-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pg-links__a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 56px; padding: 14px 18px;
  border-radius: 14px; background: var(--hf-surface-card); box-shadow: var(--hf-ring-soft);
  color: var(--hf-color-text-1); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.35;
  transition: box-shadow var(--hf-dur-2) var(--hf-ease-out);
}
.pg-links__a:hover { box-shadow: 0 0 0 1px rgb(11 13 16 / 0.24); }
.pg-links__d { display: block; font-weight: 400; font-size: 14px; color: var(--hf-color-text-3); }
.pg-links__a > .hf-icon { flex: none; inline-size: 18px; block-size: 18px; }

/* table */
.pg-table { max-inline-size: 100%; overflow-x: auto; border-radius: 16px; background: var(--hf-surface-card); box-shadow: var(--hf-ring-soft); }
.pg-table:focus-visible { outline: 2px solid var(--hf-color-focus); outline-offset: 2px; }
.pg-table table { inline-size: 100%; min-inline-size: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.pg-table :is(th, td) { padding: 14px 16px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--pg-line); }
.pg-table thead th { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--hf-color-text-3); background: var(--hf-surface-inset); }
.pg-table tbody th { font-weight: 600; color: var(--hf-color-text-1); }
.pg-table td { color: var(--hf-color-text-2); }
.pg-table tbody tr:last-child :is(th, td) { border-block-end: 0; }

/* note and in-section buttons */
.pg-note { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--hf-color-text-3); }
.pg-note > .hf-icon { flex: none; inline-size: 18px; block-size: 18px; margin-block-start: 2px; }
.pg-cta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pg-cta__a { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; font-weight: 600; color: var(--hf-color-text-1); text-decoration: none; border-block-end: 1px solid currentColor; }
.pg-cta__a:hover { color: var(--hf-tone); }

/* sub-blocks (an old h3 with its words): side by side as cards */
.pg-subs { display: grid; grid-template-columns: repeat(var(--pg-subs, 3), minmax(0, 1fr)); gap: 20px; }
.pg-subs--1 { --pg-subs: 1; } .pg-subs--2 { --pg-subs: 2; } .pg-subs--3 { --pg-subs: 3; }
.pg-subs .pg-sub { display: grid; align-content: start; gap: 12px; padding: 28px; border-radius: var(--pg-card-radius); background: var(--hf-surface-card); box-shadow: var(--hf-ring-soft); }
.pg-sub__title { margin: 0; font-size: 21px; font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; color: var(--hf-color-text-1); text-wrap: balance; }
.pg-sub .pg-p { font-size: 16px; }
.pg-sub .pg-links { grid-template-columns: minmax(0, 1fr); }

/* ---------------------------------------------------------------- articles: the reading column */
.pg-sec--prose { padding-block: 0; }
.pg-prose { max-inline-size: calc(var(--pg-prose) + 2 * var(--hf-story-pad-x)); margin-inline: auto; padding: 56px var(--hf-story-pad-x) 8px; display: grid; gap: 22px; }
.pg-sec--prose:last-of-type .pg-prose { padding-block-end: var(--hf-row-pad-y); }
.pg-prose__title { margin: 24px 0 4px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; color: var(--hf-color-text-1); text-wrap: balance; }
.pg-prose .pg-p { font-size: 18px; line-height: 1.7; }
.pg-prose .pg-sub { display: grid; gap: 14px; }
.pg-prose .pg-sub__title { font-size: 21px; margin-block-start: 8px; }
.pg-prose .pg-terms { grid-template-columns: minmax(0, 1fr); gap: 20px; }

/* ---------------------------------------------------------------- cards */
.pg-sec--cards { padding-block-end: var(--hf-row-pad-y); }
.pg-cards {
  display: grid; grid-template-columns: repeat(var(--pg-cols, 3), minmax(0, 1fr)); gap: 20px;
  max-inline-size: calc(var(--hf-story-max) + 2 * var(--hf-story-pad-x)); margin: 48px auto 0; padding: 0 var(--hf-story-pad-x); list-style: none;
}
.pg-cards--n1 { --pg-cols: 1; max-inline-size: calc(760px + 2 * var(--hf-story-pad-x)); }
.pg-cards--n2 { --pg-cols: 2; max-inline-size: calc(980px + 2 * var(--hf-story-pad-x)); }
.pg-card {
  position: relative; display: grid; align-content: start; gap: 12px; padding: 28px 28px 32px;
  border-radius: var(--pg-card-radius); background: var(--hf-surface-card); box-shadow: var(--hf-shadow-card);
  transition: transform var(--hf-dur-3) var(--hf-ease-out);
}
.pg-card:hover { transform: translateY(-3px); }
.pg-card__title { margin: 0; padding-inline-end: 28px; font-size: 20px; font-weight: 650; line-height: 1.3; letter-spacing: -0.015em; color: var(--hf-color-text-1); text-wrap: balance; }
.pg-card__link { color: inherit; text-decoration: none; }
.pg-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pg-card__link:focus-visible { outline: none; }
.pg-card:has(.pg-card__link:focus-visible) { outline: var(--hf-focus-width, 2px) solid var(--hf-color-focus); outline-offset: 3px; }
.pg-card__desc { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--hf-color-text-2); text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pg-card__go { position: absolute; inset-block-start: 26px; inset-inline-end: 24px; color: var(--hf-color-text-3); }
.pg-card__go .hf-icon { inline-size: 20px; block-size: 20px; }
.pg-card .pg-pills { position: relative; z-index: 1; pointer-events: none; }
/* one amber accent per view: the cards' and sub-blocks' small labels wear a quiet square, not the seal */
.pg-card__top::before, .pg-sub .hf-eyebrow::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hf-color-text-3); }
.pg-more { margin: 32px 0 0; text-align: center; }

/* ---------------------------------------------------------------- the agent bot */
.pg-bot { margin: 0; display: grid; justify-items: center; gap: 14px; text-align: center; }
.pg-bot__figure { display: block; inline-size: var(--pg-bot-size, 96px); block-size: var(--pg-bot-size, 96px); }
.pg-bot__cap { display: grid; gap: 4px; }
.pg-bot__name { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--hf-color-text-1); }
.pg-bot__role { max-inline-size: 30ch; font-size: 14px; line-height: 1.45; color: var(--hf-color-text-3); }

/* ---------------------------------------------------------------- the dotted map (never mirrored) */
.pg-map {
  --pg-map-dot: var(--hf-map-dot, #34404C); --pg-map-edge: var(--hf-map-edge, #0E6F7C); --pg-map-context: var(--hf-map-context, #A3AEB9);
  --pg-map-sea: var(--hf-map-sea, #00879B); --pg-map-signal: var(--hf-map-signal, #0097B1);
  margin: 0; inline-size: 100%;
}
.pg-map__stage { position: relative; aspect-ratio: 1.36; overflow: clip; }
.pg-map__canvas, .pg-map__stage canvas[data-map-shared] {
  position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 100%);
          mask-composite: intersect;
}
.pg-map__pin { position: absolute; inline-size: 0; block-size: 0; }
html:not(.hf-js) .pg-map__pin { display: none; }
.pg-map__dot { position: absolute; left: -4px; top: -4px; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--hf-ground-pearl); box-shadow: inset 0 0 0 2px var(--hf-color-sea-600, #006776); }
.pg-map__name {
  position: absolute; left: 10px; top: 0; translate: 0 -50%; display: inline-flex; align-items: center; min-block-size: 24px; padding: 2px 9px;
  border-radius: var(--hf-radius-pill); background: var(--hf-surface-chip); box-shadow: var(--hf-ring-soft), 0 4px 12px -6px rgb(30 42 54 / 0.25);
  font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--hf-color-text-2); white-space: nowrap;
}
.pg-map__pin.is-focus .pg-map__dot { background: var(--hf-color-sea-600, #006776); box-shadow: 0 0 0 4px rgb(0 103 118 / 0.16); }
.pg-map__pin.is-focus .pg-map__name { color: var(--hf-color-sea-600, #006776); background: var(--hf-tint-sea); box-shadow: inset 0 0 0 1px var(--hf-tint-sea-line); }
:lang(ar) .pg-map__name { font-family: "HF Alexandria", var(--hf-font-sans); font-size: 13px; letter-spacing: 0; }
.pg-map__cap { margin-block-start: 12px; text-align: center; font-size: 14px; color: var(--hf-color-text-3); }

/* ---------------------------------------------------------------- the row's extra blocks and points */
.pg-row__more { display: grid; gap: 18px; margin-block-end: 24px; }
.pg-row__more .pg-terms { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.hf-row__points li b { font-weight: 600; }
.pg-points--terms li span { color: var(--hf-color-text-2); }
.pg-points--terms li b { color: var(--hf-color-text-1); }

/* ---------------------------------------------------------------- Arabic */
:lang(ar) .pg-hero__title, :lang(ar) .pg-prose__title, :lang(ar) .pg-sub__title, :lang(ar) .pg-card__title, :lang(ar) .pg-term__t { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
:lang(ar) .pg-hero__lead, :lang(ar) .pg-p, :lang(ar) .pg-term__d, :lang(ar) .pg-card__desc, :lang(ar) .pg-answer__text { line-height: 1.8; }
:lang(ar) .pg-answer__text { letter-spacing: 0; }
:lang(ar) .pg-answer__label, :lang(ar) .pg-table thead th { letter-spacing: 0; }

/* ---------------------------------------------------------------- tablets and phones */
@media (max-width: 63.99rem) {
  .pg-hero--visual .pg-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .pg-terms--3, .pg-subs--3, .pg-cards { --pg-cols: 2; }
  .pg-terms--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-subs--3 { --pg-subs: 2; }
  .pg-body { padding-block-start: 40px; }
}
@media (max-width: 47.99rem) {
  .pg-terms, .pg-terms--3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pg-subs { --pg-subs: 1 !important; }
  .pg-cards { --pg-cols: 1 !important; }
  .pg-hero__title { font-size: clamp(34px, 9vw, 42px); }
  :lang(ar) .pg-hero__title { font-size: clamp(30px, 8vw, 38px); }
  .pg-map__stage { aspect-ratio: 1.02; }
  .pg-card { padding: 24px 22px 26px; }
  .pg-subs .pg-sub { padding: 24px 22px; }
  .pg-crumbs [aria-current] { max-inline-size: 24ch; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-card, .pg-links__a { transition: none; }
  .pg-card:hover { transform: none; }
}

/* ---------------------------------------------------------------- the old site's sample (ctx.sample)
   polish-pages, 2026-11-28. The claims-agent console of the old home page, word for word, in a real-size
   device: a static window laid out at the device's virtual size (lib/devices.js: laptop 1024 px wide,
   scale ≈ 0.58; phone and laptop-below-768 px: 390 px wide, scale ≈ 0.77) and scaled with it. It borrows the
   kit's frame, head, chips and seal (/kit/base.css, linked by every inner page) and sets its own type a
   little larger than a kit screen, because it holds four lines, not a whole app: 23 px in the window is
   about 13.5 px on the laptop. The one amber accent is the seal on one line; the row's eyebrow square goes
   quiet (below). Values: NEW TOKENS, to be promoted after review. */
.pg-console {
  /* NEW TOKENS */
  --pg-con-pad: 44px;
  --pg-con-fs: 26px;
  --pg-con-fs-time: 20px;
  --pg-con-fs-chip: 18px;
  --pg-con-fs-title: 23px;
  --pg-con-fs-meta: 18px;
  --pg-con-row-pad: 28px;
  --pg-con-gap: 32px;
  --pg-con-tint: rgb(11 13 16 / 0.03);
  --pg-con-line: var(--hf-screen-hairline, rgb(11 13 16 / 0.075));
  --hf-screen-chip-h: 40px;
  --hf-screen-chip-pad-s: 14px;
  --hf-screen-chip-pad-e: 16px;
  --hf-screen-mark: 10px;
  --hf-screen-seal: 16px;
  --hf-screen-seal-radius: 2px;
  block-size: 100%;
}
.pg-console .hf-screen__window { display: flex; flex-direction: column; min-block-size: 100%; }
.pg-console__head {
  flex: none; gap: 20px; min-block-size: 0;
  padding: 26px var(--pg-con-pad) 24px;
  border-block-end: 1px solid var(--pg-con-line);
}
.pg-console__agent { inline-size: 56px; block-size: 56px; border-radius: 14px; display: grid; place-items: center; overflow: visible; }
.pg-console__bot { display: block; inline-size: 52px; block-size: 52px; }
.pg-console__agent .hf-agent__badge { display: none; }     /* the live chip already says it is live */
.pg-console__title { font-family: var(--hf-screen-font-mono, var(--hf-font-mono)); font-size: var(--pg-con-fs-title); font-weight: 600; letter-spacing: 0; }
.pg-console__env { font-weight: 400; color: var(--hf-screen-ink-3, #6B7178); }
.pg-console .hf-screen__head-end { gap: 12px; }
.pg-console .hf-screen__chip { font-size: var(--pg-con-fs-chip); }
.pg-console .hf-screen__chip::before { inline-size: 10px; block-size: 10px; }
.pg-console__example { font-size: var(--pg-con-fs-meta); }
.pg-console__example:lang(ar) { font-family: var(--hf-font-ar, 'Alexandria', sans-serif); font-size: calc(var(--pg-con-fs-meta) * 1.05); }

.pg-console__rows {
  flex: 1 1 auto; min-block-size: 0; display: grid; align-content: center;
  margin: 0; padding: 18px calc(var(--pg-con-pad) - 16px); list-style: none;
}
.pg-console__row {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; align-items: center; gap: var(--pg-con-gap);
  padding: var(--pg-con-row-pad) 16px;
  border-block-start: 1px solid var(--pg-con-line);
}
.pg-console__row:first-child, .pg-console__row.is-sealed, .pg-console__row.is-sealed + .pg-console__row { border-block-start-color: transparent; }
.pg-console__row.is-sealed { border-radius: 16px; background: var(--pg-con-tint); box-shadow: inset 0 0 0 1px var(--hf-screen-hairline-2, rgb(11 13 16 / 0.13)); }
.pg-console__time { font-family: var(--hf-screen-font-mono, var(--hf-font-mono)); font-size: var(--pg-con-fs-time); color: var(--hf-screen-ink-3, #6B7178); font-variant-numeric: tabular-nums; }
.pg-console__event { font-size: var(--pg-con-fs); font-weight: 500; line-height: 1.35; color: var(--hf-screen-ink, #0B0D10); }
.pg-console__end { display: inline-flex; align-items: center; gap: 14px; justify-self: end; }
.pg-console__foot {
  flex: none; margin: 0; padding: 18px var(--pg-con-pad) 24px;
  border-block-start: 1px solid var(--hf-screen-hairline, rgb(11 13 16 / 0.075));
  font-family: var(--hf-screen-font-mono, var(--hf-font-mono)); font-size: var(--pg-con-fs-meta); letter-spacing: 0.01em; color: var(--hf-screen-ink-3, #6B7178);
}

/* the narrow window (a phone, or the laptop drawn as a phone below 768 px): 390 px wide, scale ≈ 0.77 */
@container hf-screen (max-width: 480px) {
  .pg-console { --pg-con-pad: 22px; --pg-con-fs: 18.5px; --pg-con-fs-time: 15px; --pg-con-fs-chip: 14.5px; --pg-con-fs-title: 17px; --pg-con-fs-meta: 14.5px; --pg-con-row-pad: 15px; --hf-screen-chip-h: 32px; --hf-screen-chip-pad-s: 11px; --hf-screen-chip-pad-e: 13px; --hf-screen-seal: 13px; }
  .pg-console__head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "agent titles" "agent end"; align-items: center; gap: 8px 14px; padding-block: 18px 16px; }
  .pg-console__agent { grid-area: agent; inline-size: 48px; block-size: 48px; }
  .pg-console__bot { inline-size: 44px; block-size: 44px; }
  .pg-console__head .hf-screen__titles { grid-area: titles; }
  .pg-console__title { white-space: normal; overflow: visible; }
  .pg-console__head .hf-screen__head-end { grid-area: end; margin-inline-start: 0; justify-content: flex-start; }
  .pg-console__rows { padding: 8px 8px; }
  .pg-console__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time end" "event event"; gap: 8px 12px; padding-inline: 14px; }
  .pg-console__time { grid-area: time; }
  .pg-console__end { grid-area: end; }
  .pg-console__event { grid-area: event; }
  .pg-console__foot { padding-block: 14px 20px; font-size: 14px; }
}

/* one amber accent per view: a row or chapter that shows the sample (its seal) wears a quiet eyebrow square */
.pg-sec:has(.pg-console__seal) .hf-eyebrow::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hf-color-text-3); }

/* ==============================================================================================
   screens-restore (2026-11-28, D-041 "Allow example data"): live kit screens in the inner pages' devices
   (ctx.device → figure.pg-device). The kit's bodies have fixed heights for its showcase; in a device they run
   to the bottom of the screen (lib/devices.css makes the window a flex column), so no still leaves a blank band.
   Measured at each screen's composed moment at 1440 and 390, English and Arabic.
   ============================================================================================== */
.pg-device .hf-dev__viewport :is(.hf-ci__body, .hf-rt__body, .hf-ar__body, .hf-dr__body, .hf-ac__body, .hf-gl__body) {
  flex: 1 1 auto; block-size: auto; min-block-size: 0;
}
/* red-team-run (AI security testing, the security-testing article): on the laptop the findings report keeps the
   kit's OWASP LLM Top 10 coverage and the finding's MITRE ATLAS chain (page.css hides them on the home's chrome),
   so the report runs to the bottom of its pane; the per-row codes stay hidden. */
@container hf-screen (min-width: 760px) {
  .pg-device .hf-dev__viewport [data-screen="red-team-run"] :is(.hf-rt__cover, .hf-rt__chain) { display: flex !important; flex-direction: column; }
  /* assessment-report (penetration testing, readiness): the findings and the five deliverables share the work
     pane's height (taller rows), so the list reaches the bottom of the screen */
  .pg-device .hf-dev__viewport [data-screen="assessment-report"] .hf-ar { --hf-ar-item-h: 92px; --hf-ar-finding-h: 106px; }
  /* Arabic: the report page's taller lines ran its last line ("Report delivered") under the screen's edge */
  .pg-device .hf-dev__viewport [data-screen="assessment-report"]:lang(ar) .hf-ar { --hf-ar-page-gap: 10px; --hf-ar-page-pad-b: 12px; }
  /* claims-intake (AI agents), Arabic: the claim pane's head (title, claim number, three steps) ran past the pane at
     the laptop's 1024 px; the claim number steps aside there (it stays in the inbox row beside it) */
  .pg-device .hf-dev__viewport [data-screen="claims-intake"]:lang(ar) .hf-ci__case-head .hf-ci__case-id { display: none; }
  /* data-residency (About): the map, the diagram and the rulebook fit the laptop's 640 px screen (the kit's
     spacing ran 32 px past it, cutting "General information, not legal advice"); a little less air, a slightly
     wider map */
  .pg-device .hf-dev__viewport [data-screen="data-residency"] .hf-dr { --hf-dr-gap: 10px; --hf-dr-card-pad-b: 12px; --hf-dr-rule-pad-b: 5px; --hf-dr-map-aspect: 1000 / 680; --hf-dr-map-col: 40fr; --hf-dr-side-col: 60fr; }
  /* the map takes the rest of its column, so the column runs as far down as the rulebook beside it */
  .pg-device .hf-dev__viewport [data-screen="data-residency"] .hf-dr__canvas { flex: 1 1 auto; aspect-ratio: auto; min-block-size: 0; }
  /* Arabic lines are taller: a little less air again, so the rulebook's last line stays on the screen */
  .pg-device .hf-dev__viewport [data-screen="data-residency"]:lang(ar) .hf-dr { --hf-dr-rule-pad-b: 3px; --hf-dr-card-pad-b: 10px; --hf-dr-fence-pad-t: 20px; }
}
/* Phones (the kit's narrow layouts, a phone or a laptop drawn as the phone below 768 px) */
@container hf-screen (max-width: 759px) {
  /* red-team-run: the finding's sheet is sized to the finding, its fix and its retest (as on the home's Secure), so
     the run above it gets the rest of the screen and the sheet meets the bottom of the screen */
  .pg-device .hf-dev__viewport [data-screen="red-team-run"] .hf-rt { --hf-rt-sheet-h: 262px; }
  .pg-device .hf-dev__viewport [data-screen="red-team-run"]:lang(ar) .hf-rt { --hf-rt-sheet-h: 280px; }
  /* screens-fix (2026-11-28): the sheet stays up on a phone (the loop comes back at 12.4 s, the finding logged), so the
     run above it never leaves a blank band where the sheet drops between loops */
  .pg-device .hf-dev__viewport [data-screen="red-team-run"] .hf-rt__report { transform: none; }
  .pg-device .hf-dev__viewport [data-screen="red-team-run"] .hf-rt__stage { padding-block-end: calc(var(--hf-rt-sheet-h) + var(--hf-rt-sheet-gap)); }
  /* claims-intake: the inbox rows a little taller, so the full inbox of the composed still (reduced motion) reaches
     the bottom of the phone */
  .pg-device .hf-dev__viewport [data-screen="claims-intake"] .hf-ci { --hf-ci-row-h: 62px; }
}
/* assessment-report (both layouts): the report page runs to the bottom of the screen like a page on a desk, its
   footer line (the sealed "Updated report issued" / "Report delivered") at the page's foot; the severity bars get
   the room */
.pg-device .hf-dev__viewport [data-screen="assessment-report"] .hf-ar { --hf-ar-bars-h: 120px; }
.pg-device .hf-dev__viewport [data-screen="assessment-report"] .hf-ar__desk { inset-block-end: var(--hf-ar-desk-pad-b); display: flex; flex-direction: column; }
.pg-device .hf-dev__viewport [data-screen="assessment-report"] .hf-ar__page { flex: 1 1 auto; }
.pg-device .hf-dev__viewport [data-screen="assessment-report"] .hf-ar__page > :last-child { margin-block-start: auto; }
/* screens-fix (2026-11-28): on a phone, taller severity bars and the page's sections spread over its height, so the
   composed still (also the reduced-motion still) has no white band above the footer (it was 90-117 px). After the
   rules above, which it overrides at the same specificity. */
@container hf-screen (max-width: 759px) {
  .pg-device .hf-dev__viewport [data-screen="assessment-report"] .hf-ar { --hf-ar-bars-h: 230px; }
  .pg-device .hf-dev__viewport [data-screen="assessment-report"]:lang(ar) .hf-ar { --hf-ar-bars-h: 200px; }
  .pg-device .hf-dev__viewport [data-screen="assessment-report"] .hf-ar__page { display: flex; flex-direction: column; justify-content: space-between; }
  .pg-device .hf-dev__viewport [data-screen="assessment-report"] .hf-ar__page > :last-child { margin-block-start: 0; }
}
/* screens-fix (2026-11-28): data-residency on a phone, Arabic: the two-line titles push the rulebook down, so its last
   visible line met the screen's edge cut in half; the list fades out at the bottom like a scrolling list */
@container hf-screen (max-width: 479px) {
  .pg-device .hf-dev__viewport [data-screen="data-residency"] .hf-dr__body {
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 30px), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 30px), transparent);
  }
}
/* one amber accent per view: a row or chapter whose live screen carries the kit's seal wears a quiet eyebrow square */
.pg-sec:has(.pg-device .hf-screen__seal) .hf-eyebrow::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hf-color-text-3); }
