/* Information architecture hub (/information-architecture/): page layer over the
   production stylesheets (home-parity.css, guides.css, guides-rich.css, hubs.css),
   scoped under body.iah. Every value is an existing token: #303030 ink, #3d3d3d body,
   #56514f / #6d6d6d muted, #643995 accent, #e3dedd rule, #f2eeec / #faf8f6 panels,
   #faf8fd / #ece6f4 band (ia-assessment.css), the gd-rich step pastels (#E0BBF5
   lavender, #FFD1BB peach, #D4FFBB mint, #BBDAFF sky, #FFFFBB yellow) and the gd-rich
   frame (2px #303030 border + pastel offset shadow). Type is the parity scale:
   h1 34.2 / h2 26.2 / h3 18.2 / body 15, Lato stack.
   Page rules are scoped with :where(.iah), which adds no specificity: the page keeps
   the exact cascade of the approved design against the shared guide stylesheets. */

/* The hub is a full-width index, not a measured article: the base's wide container,
   no "On this page" rail, no 740px measure (same approach as .ax6 / .iad / .iap). */
.iah .gd-article > .container { max-width: 1200px; }
.iah .gd-layout { display: block; }
.iah .gd-outline { display: none; }
.iah .gd-measure { max-width: none; }

:where(.iah) .gd-article { padding: 48px 0 72px; }
:where(.iah) .sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- hero ---------- */
:where(.iah) .hub-hero { padding: 12px 0 8px; }
:where(.iah) .hub-hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; }
:where(.iah) .hub-hero h1::after { content: ''; display: block; width: 150px; height: 6px; border-radius: 3px; margin-top: 14px; background: var(--gd-drift-gradient); background-size: 300% 100%; }
@media (prefers-reduced-motion: no-preference) { :where(.iah) .hub-hero h1::after { animation: gd-rich-drift 25s linear infinite; } }
:where(.iah) .hub-hero__lead { max-width: 880px; }
:where(.iah) .hub-hero__lead .gd-lead { text-wrap: pretty; }
:where(.iah) .hub-hero__lead .gd-lead { font-size: 18px; line-height: 1.6; margin: 0 0 14px; }
:where(.iah) .hub-hero .gd-muted { margin: 10px 0 0; }

/* ---------- section headings (gradient hairline, as gd-rich gives direct children) ---------- */
:where(.iah) .hub-sec { margin-top: 48px; }
:where(.iah) .hub-h2 { position: relative; padding-top: 26px; margin: 0 0 18px; font-size: 26.2px; }
:where(.iah) .hub-h2::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; border-radius: 1px; background: linear-gradient(90deg, #E0BBF5, #BBFFF0 60%, transparent); }
:where(.iah) .hub-h3 { margin: 26px 0 6px; font-size: 18.2px; }

/* ---------- index + preview rail ---------- */
:where(.iah) .index-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; margin-top: 40px; }
:where(.iah) .index { min-width: 0; }
:where(.iah) .index .hub-h2 { margin-bottom: 8px; }
:where(.iah) .entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e3dedd; }

:where(.iah) .entry {
  position: relative;
  display: grid; grid-template-columns: 104px minmax(0, 1fr) 218px; gap: 0 20px;
  grid-template-areas: "no body goto" "plate body goto";
  margin: 0; padding: 26px 14px 28px; border-bottom: 1px solid #e3dedd;
  transition: background-color .15s ease;
}
:where(.iah) .entry::before { content: ""; position: absolute; left: -18px; top: 0; bottom: -1px; width: 4px; border-radius: 2px; background: transparent; transition: background-color .15s ease; }
:where(.iah) .entry:hover, :where(.iah) .entry.is-active { background: linear-gradient(90deg, #f5f0ff, rgba(245,240,255,.35) 70%, transparent); }
:where(.iah) .entry:hover::before, :where(.iah) .entry.is-active::before, :where(.iah) .entry:focus-within::before { background: #643995; }

/* stage identity: colored number circle (gd-rich step palette) + stage name */
:where(.iah) .entry__no { grid-area: no; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 2px; }
:where(.iah) .entry > .plate { grid-area: plate; align-self: start; margin-top: 14px; }
:where(.iah) .entry__body { grid-area: body; }
:where(.iah) .goto { grid-area: goto; }
:where(.iah) .entry__num { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: #303030; background-color: #E0BBF5; }
:where(.iah) .entry:nth-child(3n+2) .entry__num { background-color: #FFD1BB; }
:where(.iah) .entry:nth-child(3n) .entry__num { background-color: #D4FFBB; }
:where(.iah) .entry__no small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #643995; line-height: 1.3; }

/* thumbnails: gd-rich frame, small */
:where(.iah) .plate { --k: 0.75; position: relative; display: block; width: 90px; height: 64px; overflow: hidden; background: #fff; border: 2px solid #303030; border-radius: 6px; box-shadow: 3px 3px 0 #E0BBF5; }
:where(.iah) .entry:nth-child(3n+2) .plate { box-shadow: 3px 3px 0 #FFD1BB; }
:where(.iah) .entry:nth-child(3n) .plate { box-shadow: 3px 3px 0 #D4FFBB; }
:where(.iah) .plate img { position: absolute; max-width: none; display: block; width: calc(var(--iw) * 1px * var(--k)); left: calc(var(--ix) * 1px * var(--k)); top: calc(var(--iy) * 1px * var(--k)); }
:where(.iah) .plate--bg { background: #faf8f6; }

/* question, description, resources */
:where(.iah) .entry__body { min-width: 0; }
:where(.iah) .entry__label { margin: 0 0 6px; font-size: 18.2px; line-height: 1.3; color: #303030; }
:where(.iah) .entry__desc { margin: 0; font-size: 15px; line-height: 1.6; color: #56514f; max-width: 52ch; }
:where(.iah) .res { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #f2eeec; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.55; }
:where(.iah) .res li { margin: 0; display: block; }
:where(.iah) .res__kind { display: inline-block; margin-right: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #643995; }
:where(.iah) .res a { color: #643995; }
:where(.iah) .res .alt a { color: #643995; }

/* destinations: the first is the main destination, the rest support it */
:where(.iah) .goto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
:where(.iah) .goto a:hover b, :where(.iah) .goto a:focus-visible b { text-decoration: underline; }
:where(.iah) .goto li { margin: 0; }
:where(.iah) .gd-article .goto a, :where(.iah) .gd-article a.deep__row, :where(.iah) .gd-article a.gd-card.case, :where(.iah) .gd-article .pv .chips a { text-decoration: none; }
:where(.iah) .goto a { display: block; color: #303030; }
:where(.iah) .goto li:first-child a { padding: 12px 36px 12px 14px; border: 1.5px solid #303030; border-radius: 8px; background: #fff; position: relative; box-shadow: 3px 3px 0 #E0BBF5; transition: box-shadow .15s ease, transform .15s ease; }
:where(.iah) .entry:nth-child(3n+2) .goto li:first-child a { box-shadow: 3px 3px 0 #FFD1BB; }
:where(.iah) .entry:nth-child(3n) .goto li:first-child a { box-shadow: 3px 3px 0 #D4FFBB; }
:where(.iah) .goto li:first-child a::after { content: "\2192"; position: absolute; right: 14px; top: 12px; color: #643995; font-weight: 700; }
:where(.iah) .goto li:first-child a:hover, :where(.iah) .goto li:first-child a:focus-visible { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #643995; }
:where(.iah) .goto b { display: block; font-size: 15px; line-height: 1.35; color: #303030; }
:where(.iah) .goto li:first-child b { font-size: 16px; color: #303030; }
:where(.iah) .goto li + li a { padding: 0 0 0 18px; }
:where(.iah) .goto li + li b { font-weight: 600; color: #643995; }
:where(.iah) .goto li + li b::before { content: "\2192"; display: inline-block; width: 18px; margin-left: -18px; color: #643995; font-weight: 700; }
:where(.iah) .goto a:hover b, :where(.iah) .goto a:focus-visible b { text-decoration: underline; }
:where(.iah) .goto .path { display: block; font-size: 13px; color: #6d6d6d; margin-top: 2px; }

/* mobile disclosure */
:where(.iah) .entry__more { grid-column: 1 / -1; display: none; margin-top: 14px; }
:where(.iah) .entry__more summary { cursor: pointer; font-size: 14px; font-weight: 700; color: #643995; }
:where(.iah) .pv { margin: 10px 0 0; }
:where(.iah) .pv blockquote, :where(.iah) .pv .pv-sum { margin: 0 0 12px; padding: 0 0 0 14px; border-left: 3px solid #e3dedd; font-size: 15px; line-height: 1.6; color: #3d3d3d; }
:where(.iah) .pv blockquote cite, :where(.iah) .pv .pv-sum cite { display: block; margin-top: 4px; font-style: normal; font-size: 12.5px; font-weight: 600; color: #185FA5; }
:where(.iah) .pv .chips-h { margin: 14px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #643995; }
:where(.iah) .pv .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
:where(.iah) .pv .chips li { margin: 0; }
:where(.iah) .pv .chips li::before { content: none; }
:where(.iah) .pv .chips a { display: inline-block; padding: 4px 12px; border: 1.5px solid #303030; border-radius: 999px; background: #fff; color: #303030; font-size: 12.5px; font-weight: 600; text-decoration: none; }
:where(.iah) .pv .chips a:hover { box-shadow: 2px 2px 0 #E0BBF5; }

/* the contextual preview card on the right */
:where(.iah) .viewer { position: sticky; top: 92px; padding: 20px 22px 22px; background: #fff; border: 2px solid #303030; border-radius: 10px; box-shadow: 8px 8px 0 #E0BBF5; }
:where(.iah) .viewer__head { display: flex; justify-content: flex-end; margin-bottom: 10px; }
:where(.iah) .viewer__no { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #303030; background-color: #E0BBF5; }
:where(.iah) .viewer .plate--pl { --k: 2.9; width: 100%; height: 232px; margin: 0 0 16px; box-shadow: none; border-radius: 8px; }
:where(.iah) .viewer__title { margin: 0 0 12px; font-size: 18.2px; line-height: 1.3; font-weight: 700; color: #303030; }
:where(.iah) .viewer .pv blockquote, :where(.iah) .viewer .pv .pv-sum { font-size: 14.5px; }

/* ---------- bands ---------- */
:where(.iah) .hub-band { margin-top: 56px; padding: 6px 28px 26px; background: #faf8fd; border: 1px solid #ece6f4; border-radius: 12px; }
:where(.iah) .hub-band .hub-h2 { padding-top: 20px; }
:where(.iah) .hub-band .hub-h2::before { content: none; }
:where(.iah) .hub-example { margin: 12px 0 0; }
:where(.iah) .hub-band .hub-quad { background: #fff; border: 1px solid #ece6f4; border-radius: 8px; padding: 0 22px; margin-top: 10px; }
:where(.iah) .hub-band .hub-quad dt { color: #643995; }

/* ---------- case studies ---------- */
:where(.iah) .hub-cases { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 20px 0 0; }
:where(.iah) .case-wrap { display: flex; flex-direction: column; min-width: 0; }
:where(.iah) .case-wrap > .gd-card.case { flex: 1 1 auto; }
:where(.iah) .case-wrap > .fig-full { min-height: 30px; }
@media (min-width: 761px) { :where(.iah) .case-wrap:not(:has(.fig-full))::after { content: ""; display: block; height: 54px; } }
:where(.iah) .gd-card.case { display: flex; flex-direction: column; gap: 6px; padding: 0 0 18px; overflow: hidden; color: #303030; text-decoration: none; position: relative; }
:where(.iah) .gd-card.case:hover { border-color: #643995; }
:where(.iah) .case__img { display: block; width: 100%; height: 136px; overflow: hidden; border-bottom: 2px solid #303030; background: #fff; margin-bottom: 10px; }
:where(.iah) .case__img.plate--bg { background: #faf8f6; }
:where(.iah) .case__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
/* Case evidence framing: Connected Car zooms to the two-patterns / two-structures half of its board;
   the other cards keep their original crop. "View full figure" sits outside each card link (no nested controls). */
:where(.iah) .case__img img[data-copy-id="ia-hub.case.car.img"] { width: 186%; max-width: none; height: auto; margin: -11% 0 0 -86%; }
:where(.iah) .gd-card.case h3, :where(.iah) .case__method, :where(.iah) .case__note { margin-left: 20px; margin-right: 20px; }
:where(.iah) .gd-card.case h3 { margin-top: 0; margin-bottom: 2px; font-size: 18.2px; }
:where(.iah) .gd-card.case h3::after { content: " \2192"; color: #643995; }
:where(.iah) .case__method { font-size: 13px; font-weight: 700; color: #643995; }
:where(.iah) .case__note { font-size: 14px; line-height: 1.55; color: #56514f; }

/* ---------- go deeper ---------- */
:where(.iah) .deep { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
:where(.iah) .deep li { margin: 0; }
:where(.iah) .deep__row { display: block; padding: 18px 44px 18px 22px; border: 1px solid #e3dedd; border-radius: 8px; background: #fff; text-decoration: none; color: #303030; position: relative; }
:where(.iah) a.deep__row:hover, :where(.iah) a.deep__row:focus-visible { border-color: #643995; }
:where(.iah) a.deep__row::after { content: "\2192"; position: absolute; right: 18px; top: 18px; color: #643995; font-weight: 700; }
:where(.iah) .deep__body h3 { margin: 0 0 4px; font-size: 18.2px; }
:where(.iah) .deep__body > span { display: block; font-size: 15px; line-height: 1.6; color: #56514f; }
:where(.iah) .deep__links a { color: #643995; }
:where(.iah) .deep__row--static { padding-right: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :where(.iah) .index-layout { grid-template-columns: minmax(0, 1fr); }
  :where(.iah) .viewer { display: none; }
  :where(.iah) .entry__more { display: block; }
  :where(.iah) .hub-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :where(.iah) .hub-hero { padding: 28px 0 24px; }
  :where(.iah) .hub-hero h1 { font-size: 30px; }
  :where(.iah) .hub-hero__lead .gd-lead { font-size: 16.5px; }
  :where(.iah) .index-layout { margin-top: 28px; }
  :where(.iah) .entry {
    grid-template-columns: minmax(0, 1fr) 84px; gap: 12px 12px;
    grid-template-areas: "no plate" "body body" "goto goto" "more more";
    padding: 20px 12px 22px;
  }
  :where(.iah) .entry__no { flex-direction: row; align-items: center; gap: 10px; }
  :where(.iah) .entry::before { left: -10px; }
  :where(.iah) .entry__num { width: 36px; height: 36px; font-size: 15px; }
  :where(.iah) .entry__no small { font-size: 10.5px; }
  :where(.iah) .entry > .plate { grid-area: plate; justify-self: end; align-self: center; margin-top: 0; width: 84px; height: 60px; --k: 0.7; }
  :where(.iah) .entry__label { font-size: 17px; }
  :where(.iah) .goto { margin-top: 4px; }
  :where(.iah) .entry__more { grid-area: more; }
  :where(.iah) .hub-band { padding: 4px 16px 18px; }
  :where(.iah) .hub-band .hub-quad { padding: 0 14px; }
  :where(.iah) .hub-cases { grid-template-columns: minmax(0, 1fr); }
  :where(.iah) .gd-card.case h3, :where(.iah) .case__method, :where(.iah) .case__note { margin-left: 16px; margin-right: 16px; }
  :where(.iah) .case__img img[data-copy-id="ia-hub.case.car.img"] { width: 150%; margin: -9% 0 0 -50%; }
}
@media (prefers-reduced-motion: reduce) {
  :where(.iah) .entry, :where(.iah) .entry::before, :where(.iah) .goto li:first-child a { transition: none; }
  :where(.iah) .goto li:first-child a:hover { transform: none; }
}

/* the guide grammar indents every list; these lists are layout, not prose */
:where(.iah) .gd-article .entries, :where(.iah) .gd-article .goto, :where(.iah) .gd-article .res, :where(.iah) .gd-article .deep, :where(.iah) .gd-article .pv .chips { padding-left: 0; }
:where(.iah) .gd-article .entries, :where(.iah) .gd-article .goto, :where(.iah) .gd-article .deep, :where(.iah) .gd-article .pv .chips { margin-top: 0; margin-bottom: 0; }
:where(.iah) .gd-article .entries { margin-top: 0; }
:where(.iah) .gd-article .deep { margin-top: 20px; }
:where(.iah) .gd-article .entries > li, :where(.iah) .gd-article .goto > li, :where(.iah) .gd-article .res > li, :where(.iah) .gd-article .deep > li, :where(.iah) .gd-article .pv .chips > li { margin: 0; }
:where(.iah) .gd-article .goto > li + li { margin-top: 10px; }
:where(.iah) .gd-article .res > li + li { margin-top: 6px; }
:where(.iah) .gd-article .deep > li + li { margin-top: 14px; }

@media (max-width: 760px) { :where(.iah) .gd-article { padding-top: 28px; } }

/* Without JavaScript (no .js mark on <html>, set by the base's head script) the card has nothing to
   mirror: hide it and fall back to the in-row disclosures, as below 1100px. JS-on rendering unchanged. */
html:not(.js) .iah .index-layout { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .iah .viewer { display: none; }
html:not(.js) .iah .entry__more { display: block; }

/* Keyboard focus in the index and the #deeper / #e01–#e06 landings scroll clear of the sticky
   header (64.8px desktop / 68px mobile; precedent: ia-process.css). */
:where(.iah) .entry a { scroll-margin: 76px 0 8px; }
:where(.iah) #deeper,
:where(.iah) .entry[id] { scroll-margin-top: 80px; }
