/* ============================================================================
   ITEM PAGES  (.ip-*)
   Shared by the 30 Help Centre item pages (15 hearing aid models, 8 apps,
   7 Bluetooth support pages) and the 28 device review pages under
   /hearing-aids/ (Dialect 4, baked by scripts/bake-device-pages.mjs).
   Loaded after styles.css, which owns every token used here.

   Round 6. Inherits the round-4/5 category-page chrome — breadcrumb inside the
   hero with SVG chevrons, the Badge Grammar, the radius ladder (4 micro /
   8 tiles / 10 buttons / 12 containers / 14-16 cards / 999 pills) — and adds
   one dialect per collection beneath it.

   Measure: body copy fills its column rather than sitting in a ~68ch reading
   column (Maciek, round 6: the mock copy read as compressed). Nothing here
   sets a ch-based max-width; the grid column is the measure.

   Type: the documented three-step UI band only — 1.05rem primary (anything
   carrying the message or taking a click, card titles included), 0.9375rem
   supporting, 0.875rem micro — plus the 1.25rem lede and the section anchors.
   A card title sits at the same step as its body copy on purpose: hierarchy
   here is weight and colour, not size. Round 6 shipped four declarations off
   that band (three at 1.125rem, one at 1rem); 17px and 18px are not vocabulary
   in this system, and round 7 brought them back on.
   ========================================================================== */

/* ---------------------------------------------------------------- Hero ---- */
.ip-hero {
  /* Same dark-hero ground as the homepage hero (.hero-grain in styles.css) —
     duplicated here because these subpages take the hero from this file. */
  background:
    radial-gradient(70% 60% at 80% 30%, rgba(255, 255, 255, .06) 0%, transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 24px),
    radial-gradient(120% 80% at 0% 100%, rgba(124, 190, 63, .10) 0%, transparent 55%),
    linear-gradient(135deg, #0c1d31 0%, #16314f 55%, #1f4470 100%);
  color: #fff;
  padding-top: calc(var(--nav-h, 76px) + 2rem);
}
.ip-hero_inner { padding: 2.25rem 0 3.5rem; }

/* Breadcrumb: the normalised help-centre pattern. In the hero, above the
   eyebrow, SVG chevrons, current page in solid white. */
.ip-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.5rem;
}
.ip-crumb a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s ease-out; }
.ip-crumb a:hover { color: var(--green-500, #7cbe3f); }
.ip-crumb svg { width: 0.875rem; height: 0.875rem; color: rgba(255,255,255,.35); flex-shrink: 0; }
.ip-crumb [aria-current="page"] { color: #fff; font-weight: 700; }

.ip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-500, #7cbe3f);
  margin-bottom: 1rem;
}
.ip-h1 {
  font-size: clamp(2.5rem, 4.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 1.15rem;
}
.ip-lede {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin: 0;
}

/* ---- Badge Grammar, hero inversion ----
   On navy the navy-900 stamp would vanish, so the stamp inverts to a white
   pill with navy text. Meaning is unchanged: metadata is quiet, a house-stated
   fact is stamped, green is earned by Dr. Cliff or by video. */
.ip-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1.5rem 0 0; }
.ip-tag {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
}
.ip-stamp {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900, #0e2238);
  background: #fff;
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
}
.ip-earn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cdee9f;
  background: rgba(124,190,63,.18);
  border: 1px solid rgba(124,190,63,.42);
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
}
.ip-earn svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }

/* Light-surface badges (same grammar, cream/white ground) */
.ip-earn--l {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #3a6a1a; background: var(--green-100, #e9f4d8);
  border-radius: 999px; padding: 0.2rem 0.625rem;
}
.ip-earn--l svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }

/* ------------------------------------------------ Body: rail + content ---- */
.ip-body { background: var(--cream-100, #faf7f0); padding: 3.25rem 0 4rem; }
/* Phone rhythm (27 Aug 2026 mobile polish): the hero-to-body seam summed to
   ~200px at 390 (3.5rem hero bottom + 3.25rem body top + rail margins). */
@media (max-width: 640px) {
  .ip-hero_inner { padding-bottom: 2.25rem; }
  .ip-body { padding: 2rem 0 3rem; }
}
.ip-grid {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
/* Declared before the media query below, which unsticks it: same specificity,
   so source order decides. When this sat after the query the rail stayed
   sticky on phones, and the "Also for…" list — which has no ground of its own
   — slid over the body copy as you scrolled. */
.ip-rail { position: sticky; top: calc(var(--nav-h, 76px) + 1.5rem); }
@media (max-width: 960px) {
  .ip-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .ip-rail { position: static; }
  /* Hide the heading with its list. The older .hc-jump rule hid only the nav,
     which stranded an "On this page" label above nothing on every phone. */
  .ip-rail_nav, .ip-rail > h2 { display: none; }
  .ip-also { margin-top: 0; border-top: 0; padding-top: 0; }
  /* Less dead navy above the breadcrumb on small screens (Maciek,
     2026-08-28: "too much padding on the top from the nav") — the desktop
     clearance (nav + 2rem, then 2.25rem more) cost ~70px before content. */
  .ip-hero { padding-top: calc(var(--nav-h, 76px) + 1rem); }
  .ip-hero_inner { padding-top: 1.25rem; }
}
.ip-rail h2, .ip-also h2 {
  font-size: 0.875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-400, #6c7a8c); margin: 0 0 0.7rem;
}
.ip-rail_nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-left: 2px solid var(--hair, rgba(14,34,56,.10));
  font-size: 1.05rem;
  color: var(--ink-500, #4b5a6e);
  text-decoration: none;
  transition: color .15s ease-out, border-color .15s ease-out;
}
.ip-rail_nav a:hover { color: var(--green-700, #4f8a2a); border-left-color: var(--green-500, #7cbe3f); }
.ip-rail_nav a.is-on { color: var(--navy-900, #0e2238); font-weight: 700; border-left-color: var(--green-500, #7cbe3f); }

.ip-also { margin-top: 1.75rem; border-top: 1px solid var(--hair, rgba(14,34,56,.10)); padding-top: 1.25rem; }
.ip-also a {
  display: block; padding: 0.45rem 0; font-size: 1.05rem; font-weight: 600;
  color: var(--navy-800, #16314f); text-decoration: none;
}
.ip-also a small { display: block; font-weight: 400; color: var(--ink-400, #6c7a8c); font-size: 1rem; }
.ip-also a:hover { color: var(--green-700, #4f8a2a); }
/* The way back to the collection hub. Lived in the footer prev/next bar until
   this round; the breadcrumb was the only other route, so it moved up here
   where it is visible from the top of the page (and survives the mobile rail
   collapse, which keeps .ip-also). */
.ip-also a.ip-also_all {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.9rem; font-weight: 700;
  color: var(--green-700, #4f8a2a);
}
.ip-also a.ip-also_all:hover { text-decoration: underline; }
.ip-also a.ip-also_all svg { width: 0.875rem; height: 0.875rem; flex: none; }

/* ------------------------------------------------------------ Sections ---- */
.ip-sec { margin-bottom: 3rem; scroll-margin-top: calc(var(--nav-h, 76px) + 1rem); }
.ip-sec:last-child { margin-bottom: 0; }
.ip-sec > h2 {
  font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--navy-900, #0e2238); margin: 0 0 1rem;
}
.ip-sec p {
  font-size: 1.05rem; line-height: 1.7; color: var(--ink-600, #33455c); margin: 0;
}
.ip-sec p + p { margin-top: 1rem; }
/* Specificity has to beat `.ip-sec p { margin: 0 }`, and the note may follow a list. */
.ip-sec p.ip-sec_note { font-size: 1rem; color: var(--ink-400, #6c7a8c); margin-top: 1.25rem; }

/* -------------------------------------------------------- Video cards ----
   Round 7: the thumbnail is inset, not bled to the card edge. Full bleed put
   YouTube's own on-image type hard against the border while the caption below
   sat on a rem of padding, so the two halves of the card read as two
   different cards. The frame is not invented here — it is `.hc-vid`'s, the
   site's own video card in styles.css: 0.6rem/0.6rem/0.9rem on the card, the
   8px tile radius on the thumbnail, 0.3rem of optical inset on the caption.
   Only the 16px card radius differs, which the item-page ladder sets. */
.ip-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.ip-vid {
  display: block; text-decoration: none; background: var(--paper, #fff);
  border: 1px solid var(--hair, rgba(14,34,56,.10)); border-radius: 16px;
  padding: 0.6rem 0.6rem 0.9rem;
  transition: border-color .16s ease-out, transform .16s ease-out, box-shadow .16s ease-out;
}
.ip-vid:hover {
  border-color: var(--green-500, #7cbe3f); transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(12,31,51,.12));
}
.ip-vid_th {
  display: block; position: relative; aspect-ratio: 16 / 9;
  background: var(--navy-800, #16314f);
  border-radius: 8px; overflow: hidden;
}
.ip-vid_th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-vid_pl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ip-vid_pl i {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(14,34,56,.72); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .16s ease-out;
}
.ip-vid:hover .ip-vid_pl i { background: var(--green-500, #7cbe3f); }
.ip-vid_pl svg { width: 1.05rem; height: 1.05rem; margin-left: 2px; }
/* The card now carries the padding, so the caption only adds the optical
   nudge that keeps the text off the thumbnail's left edge. */
.ip-vid_b { padding: 0.7rem 0.3rem 0; }
.ip-vid_b b { display: block; font-size: 1.05rem; font-weight: 700; color: var(--navy-900, #0e2238); line-height: 1.35; }
.ip-vid_b small { display: block; margin-top: 0.3rem; font-size: 1rem; color: var(--ink-400, #6c7a8c); }

/* ----------------------------------------------------- Resource rows ---- */
.ip-rows { border: 1px solid var(--hair, rgba(14,34,56,.10)); border-radius: 12px; background: var(--paper, #fff); overflow: hidden; }
.ip-rows_h {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem;
  background: var(--navy-050, #f4f7fb); border-bottom: 1px solid var(--hair, rgba(14,34,56,.10));
  font-size: 0.875rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-400, #6c7a8c);
}
.ip-rows_h .n { margin-left: auto; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.ip-row {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.95rem 1rem;
  text-decoration: none; border-top: 1px solid var(--hair-2, rgba(14,34,56,.06));
  transition: background-color .14s ease-out;
}
.ip-row:first-of-type { border-top: 0; }
.ip-row:hover { background: var(--green-050, #f3f9ea); }
/* Kind chip: Lucide icon + label (Option B, Maciek 2026-08-25). Neutral
   navy-050 ground per Badge Grammar; only the DrC signature earns green. */
.ip-row .k {
  flex: none; display: inline-flex; align-items: center; gap: 0.35rem;
  height: 2rem; padding: 0 0.6rem;
  font-size: 0.875rem; font-weight: 800; letter-spacing: 0.04em;
  color: var(--ink-500, #4b5a6e); background: var(--navy-050, #f4f7fb);
  border: 1px solid rgba(14,34,56,.1); border-radius: 6px;
}
.ip-row .k svg { width: 1.05rem; height: 1.05rem; flex: none; }
.ip-row .k--drc {
  color: var(--green-700, #4f8a2a);
  background: var(--green-100, #e9f4d8);
  border-color: var(--green-200, #d4ecb4);
}
.ip-row_b { min-width: 0; }
.ip-row_b b { display: block; font-size: 1.05rem; font-weight: 700; color: var(--navy-900, #0e2238); line-height: 1.35; }
.ip-row_b small { display: block; margin-top: 0.15rem; font-size: 1rem; color: var(--ink-400, #6c7a8c); }
.ip-row .ext { margin-left: auto; flex: none; color: var(--ink-300, #9aa6b5); }
.ip-row .ext svg { width: 1.05rem; height: 1.05rem; display: block; }
.ip-row:hover .ext { color: var(--green-700, #4f8a2a); }

/* ------------------------- Dr. Cliff review band: the earned green ---- */
.ip-rev {
  display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 1.75rem;
  background: var(--paper, #fff); border: 1px solid var(--green-200, #d4ecb4);
  border-radius: 16px; overflow: hidden;
}
@media (max-width: 720px) { .ip-rev { grid-template-columns: 1fr; gap: 0; } }
.ip-rev_th { position: relative; display: block; background: var(--navy-800, #16314f); height: 100%; min-height: 12rem; }
@media (max-width: 720px) { .ip-rev_th { aspect-ratio: 16 / 9; min-height: 0; } }
.ip-rev_th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-rev_pl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ip-rev_pl i {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(14,34,56,.72); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background-color .16s ease-out;
}
.ip-rev_th:hover .ip-rev_pl i { background: var(--green-500, #7cbe3f); }
.ip-rev_pl svg { width: 1.2rem; height: 1.2rem; margin-left: 2px; }
.ip-rev_b { padding: 1.6rem 1.75rem 1.75rem 0; }
@media (max-width: 720px) { .ip-rev_b { padding: 1.25rem 1.25rem 1.5rem; } }
.ip-rev_b h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.018em; color: var(--navy-900, #0e2238); margin: 0.7rem 0 0.6rem; }
.ip-rev_b p { font-size: 1.05rem; line-height: 1.65; color: var(--ink-600, #33455c); margin: 0; }
.ip-rev_cta { margin-top: 1.1rem; }

/* ------------------- The REM card: the site's argument, full width ---- */
.ip-rem {
  background: var(--navy-900, #0e2238); color: #fff;
  border-radius: 16px; padding: 2rem 2.15rem 2.15rem;
}
@media (max-width: 560px) { .ip-rem { padding: 1.5rem 1.35rem 1.65rem; } }
.ip-rem h2 { color: #fff; font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.9rem; }
.ip-rem p { color: rgba(255,255,255,.78); font-size: 1.05rem; line-height: 1.7; margin: 0; }
.ip-rem p + p { margin-top: 0.9rem; }
.ip-rem_cta {
  margin-top: 1.4rem;
  /* Real action row, not a <p> of inline buttons: side by side on desktop,
     a clean gap when they stack on phones (27 Aug 2026, Maciek: the pair
     rendered as two touching left-aligned rows and "looked broken"). */
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* -------------------------------------------------------- Footer nav ---- */
.ip-foot { background: var(--paper, #fff); border-top: 1px solid var(--hair, rgba(14,34,56,.10)); padding: 2rem 0 2.5rem; }
.ip-foot_in { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ip-foot_l, .ip-foot_r {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  color: var(--navy-800, #16314f); padding: 0.6rem 0.9rem; border-radius: 10px;
  transition: background-color .15s ease-out;
}
.ip-foot_r { margin-left: auto; }
.ip-foot_l:hover, .ip-foot_r:hover { background: var(--navy-050, #f4f7fb); }
.ip-foot_l small, .ip-foot_r small { display: block; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400, #6c7a8c); }
.ip-foot_l b, .ip-foot_r b { display: block; font-size: 1.05rem; font-weight: 700; }
.ip-foot_l svg, .ip-foot_r svg { width: 1rem; height: 1rem; color: var(--ink-400, #6c7a8c); flex: none; }
.ip-foot_prov { flex-basis: 100%; font-size: 1rem; color: var(--ink-400, #6c7a8c); margin: 0.75rem 0 0; }
/* Phones (27 Aug 2026 mobile polish, Maciek: the newer/older links "should be
   lined together"): the wrapped flex row staggered the two links diagonally.
   They become two full-width bordered rows — arrow pinned to the edge, titles
   aligned left — with the provenance note tucked under them. */
@media (max-width: 640px) {
  .ip-foot_in { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .ip-foot_l, .ip-foot_r {
    display: flex; margin-left: 0; justify-content: flex-start;
    border: 1px solid var(--hair, rgba(14,34,56,.10)); border-radius: 12px;
    padding: 0.8rem 1rem;
  }
  .ip-foot_r { justify-content: space-between; }
  .ip-foot_r span { text-align: left; }
  .ip-foot_prov { margin-top: 0.85rem; }
}

/* ----------------------------------------------------------- Buttons ----
   Item pages use the site's own `.button` (green ground, WHITE text, the CTA
   text-shadow) and `.button.is-secondary`. Round 6 briefly shipped a local
   `.ip-btn` with navy text on green, which contradicted the brand's call as
   documented in styles.css. There is no item-page button component; only a
   size nudge for buttons that sit inside cards. */
.ip-hero .button,
.ip-body .button { padding: 0.75rem 1.35rem; }
/* styles.css sizes `.button_icon` (the trailing arrow, which also slides on
   hover). A leading icon such as the phone glyph on a tap-to-call button is
   not an arrow and must not slide, so it is sized here instead. Scoped to the
   page regions rather than to individual components: the first pass listed
   .ip-sec and .ip-rem, which left any button in a third wrapper rendering its
   phone glyph at the SVG's intrinsic box. */
.ip-hero .button > svg:not(.button_icon),
.ip-body .button > svg:not(.button_icon) { width: 1rem; height: 1rem; flex-shrink: 0; }
.ip-rem .button.is-secondary,
.ip-hero .button.is-secondary { color: #fff; border-color: rgba(255,255,255,.4); }
.ip-rem .button.is-secondary:hover,
.ip-hero .button.is-secondary:hover { background: rgba(124,190,63,.08); border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   DIALECT 1 — THE MODEL PAGE (15 hearing aid manual pages)
   A reference sheet for one hearing aid. The hero carries the identity plus a
   panel that counts what is on the page and jumps to it, rather than five task
   tiles that restated every section below them.
   ========================================================================== */
.ipm-hero_grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: 3rem; align-items: start; }
@media (max-width: 900px) { .ipm-hero_grid { grid-template-columns: 1fr; gap: 2rem; } }

.ipm-panel {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.15rem;
}
.ipm-panel > h2 {
  font-size: 0.875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin: 0 0 0.9rem;
}
.ipm-door {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.8rem 0; text-decoration: none;
  border-top: 1px solid rgba(255,255,255,.11);
}
.ipm-door:first-of-type { border-top: 0; padding-top: 0; }
.ipm-door_ic {
  width: 2.25rem; height: 2.25rem; border-radius: 8px; flex: none;
  background: rgba(124,190,63,.18); color: #cdee9f;
  display: flex; align-items: center; justify-content: center;
}
.ipm-door_ic svg { width: 1.1rem; height: 1.1rem; }
.ipm-door_b { min-width: 0; }
.ipm-door_b b { display: block; color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.ipm-door_b small { display: block; margin-top: 0.15rem; color: rgba(255,255,255,.62); font-size: 1rem; }
.ipm-door_n { margin-left: auto; flex: none; color: rgba(255,255,255,.5); transition: color .15s ease-out, transform .15s ease-out; }
.ipm-door_n svg { width: 1rem; height: 1rem; display: block; }
.ipm-door:hover .ipm-door_b b { color: var(--green-500, #7cbe3f); }
.ipm-door:hover .ipm-door_n { color: var(--green-500, #7cbe3f); transform: translateX(2px); }
.ipm-panel_note { margin: 1rem 0 0; font-size: 1rem; line-height: 1.5; color: rgba(255,255,255,.5); }

/* Four videos read better as 2x2 than as a row of three with an orphan. */
.ipm-vids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .ipm-vids { grid-template-columns: 1fr; } }

/* ==========================================================================
   DIALECT 2 — THE DOWNLOAD PAGE (8 app pages)
   One action dominates: get the app. The store badges sit in the hero beside
   the photograph rather than in the middle of a paragraph below the fold.
   ========================================================================== */
.ipa-hero_grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .ipa-hero_grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.ipa-store { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.ipa-badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: #fff; color: var(--navy-900, #0e2238);
  border-radius: 10px; padding: 0.6rem 1.1rem 0.65rem;
  text-decoration: none;
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.ipa-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg, 0 20px 56px rgba(12,31,51,.22)); }
.ipa-badge svg { width: 1.6rem; height: 1.6rem; flex: none; }
.ipa-badge span { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.15; }
.ipa-badge small { display: block; font-size: 0.875rem; font-weight: 500; color: var(--ink-500, #4b5a6e); }
/* Phones: the two store badges go full width, stacked (Maciek, 2026-08-28). */
@media (max-width: 720px) {
  .ipa-store { flex-direction: column; }
  .ipa-badge { width: 100%; justify-content: center; }
}

.ipa-shot {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px; padding: 1rem; margin: 0;
}
.ipa-shot img { display: block; width: 100%; height: auto; border-radius: 8px; }
.ipa-shot figcaption { margin-top: 0.75rem; font-size: 1rem; color: rgba(255,255,255,.5); }

.ipa-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.ipa-work {
  display: block; text-decoration: none; background: var(--paper, #fff);
  border: 1px solid var(--hair, rgba(14,34,56,.10)); border-radius: 16px;
  padding: 1.1rem 1.2rem 1.2rem;
  transition: border-color .16s ease-out, transform .16s ease-out;
}
.ipa-work:hover { border-color: var(--green-500, #7cbe3f); transform: translateY(-2px); }
.ipa-work_ic {
  width: 2.25rem; height: 2.25rem; border-radius: 8px; flex: none;
  background: var(--navy-050, #f4f7fb); color: var(--navy-700, #1b3a5c);
  display: flex; align-items: center; justify-content: center;
}
.ipa-work_ic svg { width: 1.15rem; height: 1.15rem; }
.ipa-work b { display: block; font-size: 1.05rem; font-weight: 700; color: var(--navy-900, #0e2238); margin-top: 0.75rem; }
.ipa-work small { display: block; margin-top: 0.25rem; font-size: 1rem; color: var(--ink-400, #6c7a8c); }

/* ==========================================================================
   DIALECT 3 — THE TRIAGE PAGE (7 Bluetooth support pages)
   Somebody arrives here holding a phone that will not connect. The support
   line is a hero object, and the section that used to say "find the resources
   you need below" carries six ordered steps instead.
   ========================================================================== */
/* Centred, not bottom-aligned: end-alignment stranded a large empty area above
   the call panel, which is the one thing on this page somebody may need fast. */
.ipb-hero_grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 3rem; align-items: center; }
@media (max-width: 900px) { .ipb-hero_grid { grid-template-columns: 1fr; gap: 2rem; } }

.ipb-call {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px; padding: 1.15rem 1.25rem; text-decoration: none;
  transition: border-color .16s ease-out, background-color .16s ease-out;
}
.ipb-call:hover { border-color: var(--green-500, #7cbe3f); background: rgba(124,190,63,.13); }
.ipb-call_ic {
  width: 3rem; height: 3rem; border-radius: 50%; flex: none;
  background: rgba(124,190,63,.2); color: #cdee9f;
  display: flex; align-items: center; justify-content: center;
}
.ipb-call_ic svg { width: 1.35rem; height: 1.35rem; }
.ipb-call_b { min-width: 0; }
.ipb-call_b small {
  display: block; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.ipb-call_b b {
  display: block; margin-top: 0.2rem; font-size: 1.75rem; font-weight: 700;
  letter-spacing: -0.02em; color: #fff; line-height: 1.1;
}
.ipb-call_b span { display: block; margin-top: 0.25rem; font-size: 1rem; color: rgba(255,255,255,.62); }

.ipb-steps { counter-reset: step; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.ipb-step {
  counter-increment: step; position: relative;
  background: var(--paper, #fff); border: 1px solid var(--hair, rgba(14,34,56,.10));
  border-radius: 12px; padding: 1.15rem 1.25rem 1.25rem 3.9rem; margin-bottom: 0.75rem;
}
.ipb-step:last-child { margin-bottom: 0; }
.ipb-step::before {
  content: counter(step);
  position: absolute; left: 1.15rem; top: 1.1rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--navy-900, #0e2238); color: #fff;
  font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: center;
}
.ipb-step b { display: block; font-size: 1.05rem; font-weight: 700; color: var(--navy-900, #0e2238); margin-bottom: 0.35rem; }
.ipb-step p { font-size: 1.05rem; line-height: 1.65; color: var(--ink-600, #33455c); margin: 0; }
.ipb-step p + p { margin-top: 0.6rem; }

.ipb-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.ipb-pair_h {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.7rem;
  font-size: 0.875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-400, #6c7a8c);
}
/* Without this the platform marks render at their intrinsic box and swamp the section. */
.ipb-pair_h svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--navy-700, #1b3a5c); }

.ipb-stuck {
  background: var(--paper, #fff); border: 1px solid var(--hair, rgba(14,34,56,.10));
  border-radius: 16px; padding: 1.6rem 1.75rem 1.75rem;
}
.ipb-stuck h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy-900, #0e2238); margin: 0 0 0.6rem; }
.ipb-stuck p { font-size: 1.05rem; line-height: 1.65; color: var(--ink-600, #33455c); margin: 0; }
.ipb-stuck_row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* ==========================================================================
   DIALECT 4 — THE REVIEW PAGE (28 device pages under /hearing-aids/)
   Dr. Cliff's full written review of one device, ported 1:1 from the old
   site's CMS content: the video review, his pros and cons, the article, and
   the REM close. The hero pairs the identity with the product photograph on
   a white panel — device PNGs are shot on white, and a tinted ground would
   swallow the white models (same call as .ha-card_media in the catalog).
   ========================================================================== */
.ipr-hero_grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .ipr-hero_grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.ipr-shot {
  background: #fff; border-radius: 16px; margin: 0;
  padding: 1.75rem; display: flex; align-items: center; justify-content: center;
}
.ipr-shot img { display: block; max-width: 100%; height: auto; max-height: 21rem; object-fit: contain; }

.ipr-hero_ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---- Pros and cons ----
   Two cards, one grammar: the check is green because Dr. Cliff earned the
   verdict; the cons keep navy — the brand has no red, and a con here is a
   documented trade-off, not an alarm. */
.ipr-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 720px) { .ipr-pc { grid-template-columns: 1fr; } }
.ipr-pc_col {
  background: var(--paper, #fff); border: 1px solid var(--hair, rgba(14,34,56,.10));
  border-radius: 16px; padding: 1.35rem 1.5rem 1.5rem;
}
.ipr-pc_col.is-pros { border-color: var(--green-200, #d4ecb4); }
.ipr-pc_h { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.ipr-pc_ic {
  width: 2.25rem; height: 2.25rem; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.is-pros .ipr-pc_ic { background: var(--green-100, #e9f4d8); color: var(--green-700, #4f8a2a); }
.is-cons .ipr-pc_ic { background: var(--navy-050, #f4f7fb); color: var(--navy-700, #1b3a5c); }
.ipr-pc_ic svg { width: 1.1rem; height: 1.1rem; }
.ipr-pc_h b { font-size: 1.05rem; font-weight: 700; color: var(--navy-900, #0e2238); }
.ipr-pc_list { list-style: none; margin: 0; padding: 0; }
.ipr-pc_list li {
  position: relative; padding: 0.45rem 0 0.45rem 1.65rem;
  font-size: 1.05rem; line-height: 1.55; color: var(--ink-600, #33455c);
  border-top: 1px solid var(--hair-2, rgba(14,34,56,.06));
}
.ipr-pc_list li:first-child { border-top: 0; padding-top: 0; }
.ipr-pc_list li:last-child { padding-bottom: 0; }
.ipr-pc_list li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  background-position: center; background-repeat: no-repeat; background-size: 0.625rem;
}
.ipr-pc_list li:first-child::before { top: 0.5rem; }
.is-pros .ipr-pc_list li::before {
  background-color: var(--green-100, #e9f4d8);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6 9 17l-5-5' stroke='%234f8a2a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.is-cons .ipr-pc_list li::before {
  background-color: var(--navy-050, #f4f7fb);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h14' stroke='%231b3a5c' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---- The article: the ported review body ----
   Rich text straight from the CMS, so the type ramp has to absorb whatever
   heading levels the old content used (h2-h4 after the h1 demotion in the
   bake). Measure comes from the grid column, per the round-6 call above. */
.ipr-art h2 { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; color: var(--navy-900, #0e2238); margin: 2.5rem 0 1rem; }
.ipr-art h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; color: var(--navy-900, #0e2238); margin: 1.9rem 0 0.7rem; }
.ipr-art h4 { font-size: 1.05rem; font-weight: 700; color: var(--navy-900, #0e2238); margin: 1.5rem 0 0.5rem; }
.ipr-art > :first-child { margin-top: 0; }
.ipr-art p { font-size: 1.05rem; line-height: 1.7; color: var(--ink-600, #33455c); margin: 0 0 1rem; }
.ipr-art ul, .ipr-art ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.ipr-art li { font-size: 1.05rem; line-height: 1.65; color: var(--ink-600, #33455c); margin-bottom: 0.45rem; }
.ipr-art li > ul, .ipr-art li > ol { margin: 0.45rem 0 0; }
.ipr-art a { color: var(--green-700, #4f8a2a); font-weight: 600; }
.ipr-art a:hover { text-decoration: none; }
.ipr-art strong { color: var(--navy-900, #0e2238); }

/* Product photographs inside the article: white panels, like the hero shot */
.ipr-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.75rem 0; }
.ipr-fig {
  background: var(--paper, #fff); border: 1px solid var(--hair, rgba(14,34,56,.10));
  border-radius: 12px; margin: 0; padding: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.ipr-fig img { display: block; max-width: 100%; height: auto; max-height: 17rem; object-fit: contain; }
.ipr-fig.is-wide { padding: 0.75rem; }
.ipr-fig.is-wide img { max-height: none; width: 100%; border-radius: 8px; }

/* ---- Related devices: three quiet doors back into the catalog ---- */
.ipr-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 720px) { .ipr-more { grid-template-columns: 1fr; } }
.ipr-more_card {
  display: block; text-decoration: none; background: var(--paper, #fff);
  border: 1px solid var(--hair, rgba(14,34,56,.10)); border-radius: 16px;
  padding: 1.1rem 1.2rem 1.2rem; text-align: center;
  transition: border-color .16s ease-out, transform .16s ease-out;
}
.ipr-more_card:hover { border-color: var(--green-500, #7cbe3f); transform: translateY(-2px); }
.ipr-more_card img { display: block; margin: 0 auto; height: 6.5rem; width: auto; max-width: 100%; object-fit: contain; }
.ipr-more_card b { display: block; font-size: 1.05rem; font-weight: 700; color: var(--navy-900, #0e2238); margin-top: 0.8rem; line-height: 1.3; }
.ipr-more_card small {
  display: block; margin-top: 0.3rem;
  font-size: 0.875rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-400, #6c7a8c);
}
