/* Healthcare, legal and financial services. The three pages share one order: the building, its rooms open, the
   rooms written out, the documents that field keeps, the door. Parts come from site.css. This file places them
   and adds what the kit lacks: room names under the pointer on the first picture, the reorder that puts the
   rooms picture first on a tall screen, the leader lines beside the opinion, the folder tab, and the states
   page-industry.js switches on. Its own classes start with ind-. */

/* A regulator's or vendor's own words read in ink, so a reviewer can tell them from ours. */
.ind q { color: var(--ink); }
.ind .is-ink q { color: #fff; }
/* WebKit breaks after the hyphen in "11-7" and "2026-11-28", so dates and rule numbers stay whole. */
.ind :is(time, .nb), .k-pop-src time { white-space: nowrap; }
.ind :is(p, li, dd, td, span) > a:not(.btn, .k-link, .k-tag), .k-pop-src a { text-decoration-color: var(--faint); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.ind :is(p, li, dd, td, span) > a:not(.btn, .k-link, .k-tag):hover, .k-pop-src a:hover { text-decoration-color: currentColor; }
.ind-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; margin-bottom: clamp(24px, 3vw, 44px); }
.ind-head > :is(h2, .k-stack) { max-width: min(100%, 46em); }
.ind .k-stack.is-wide { justify-items: stretch; }
.ind-cite { font: 500 0.82em var(--mono); color: var(--ink); white-space: nowrap; }
.is-ink .ind-cite { color: #fff; }

/* ---------- the building ---------- */
/* --h1 is the headline's size in vw. A longer headline is set smaller, as the board sets it. */
.ind-hero .k-display { font-size: clamp(34px, var(--h1, 4.2vw), 78px); line-height: 1; }
/* A scene that fills a first screen or a band takes the frame's shape, not its own 16 by 9. */
.ind-hero .k-scene, .ind-rooms .k-scene { aspect-ratio: auto; }
/* Focus on a mark the frame has cut off must not scroll the picture sideways. */
.ind-hero .k-scene { overflow: clip; }
.ind-hero-open { position: absolute; inset: 0; }
/* The first picture shows no marks. A room gives its name, and its mark, under the pointer or the keyboard. */
.ind-hero .k-mark { width: clamp(56px, 7vw, 104px); height: clamp(56px, 7vw, 104px); text-decoration: none; }
.ind-hero .k-mark > i { opacity: 0; transition: scale 0.4s var(--bounce), opacity 0.2s; }
.ind-hero .k-mark:is(:hover, :focus-visible) > i { opacity: 1; }
.ind-hero .k-mark > b { top: calc(50% + 22px); }
.ind-hero .k-mark.is-off { visibility: hidden; }
.ind-chips { display: none; justify-self: stretch; }

/* ---------- the rooms ---------- */
/* The cards are templates. Their list must not take a row of the band's grid. */
.ind-rooms > .k-pops { display: none; }
.ind-rooms-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ind-count > span { display: none; margin-left: 1.4em; }
.ind-rooms:has(.k-mark[aria-expanded="true"]) .ind-count > span { display: inline; }
/* With script off a mark could open nothing, so the picture points at the written list instead. */
html:not(.js) .ind-rooms .k-mark, .js .ind-rooms-all { display: none; }
.ind-rooms-all { text-decoration: none; }

/* All five, written out. Five columns, then three, then one. */
.ind-list { --cols: 1.6em minmax(0, 10fr) minmax(0, 17fr) minmax(0, 20fr) minmax(0, 14fr); }
.ind-list-head { margin-bottom: 14px; }
.ind-list .k-row { padding-block: 18px; }
.ind-list .k-row > small { padding-top: 0.5em; }
.ind-problem { color: var(--ink); }
@media (max-width: 1099px) {
  .ind-list { --cols: 1.6em minmax(0, 1fr) minmax(0, 2fr); }
  .ind-list .k-row { row-gap: 8px; }
  .ind-list .k-row > :nth-child(n + 4) { grid-column: 3; }
}
@media (max-width: 699px) {
  .ind-list { --cols-s: 1.6em minmax(0, 1fr); }
  .ind-list .k-row > :nth-child(n + 3) { grid-column: 2; }
}

/* ---------- sources ---------- */
.ind-sources { display: grid; gap: 12px; margin-top: clamp(32px, 4vw, 56px); }
.ind-sources .k-sources b { margin-right: 1em; font-weight: 500; color: var(--ink); }
.ind-sources .k-sources a { overflow-wrap: anywhere; }

/* ---------- sheets ---------- */
/* A checklist sheet with its two buttons under it. The check glyph marks the row being read, and a screen
   reader is not told the row is done. */
.ind-sheet { display: grid; gap: 22px; justify-items: start; align-content: start; }
.ind-sheet > .k-doc { justify-self: stretch; }
.ind .k-doc-rows.is-check > li.is-on::before { content: '\2713' / ''; }
.ind .k-doc-rows.is-check > li { transition: color 0.3s; }
.ind .k-doc-title { text-wrap: balance; }
/* A close crop of one room. --zoom is how far in, --zx and --zy the point of the frame that stays put. */
.ind-thumb .k-pic > img { scale: var(--zoom, 1); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.ind-thumb { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 16px; align-items: end; width: 100%; }
.ind-next { padding-top: clamp(20px, 2.4vw, 36px); border-top: 1px solid var(--rule); }

/* ---------- healthcare: the vendor table ---------- */
.ind-vendors thead th:first-child { width: 11%; }
.ind-vendors thead th:last-child { width: 15%; }
.ind-vendors [data-sort]::after, .ind-vendors [data-toggle]::after { margin-left: 8px; font: 500 12px/1 var(--mono); color: var(--label); }
.ind-vendors [data-sort]::after { content: '\2195' / ''; }
.ind-vendors th[aria-sort="ascending"] [data-sort]::after { content: '\2191' / ''; color: var(--ink); }
.ind-vendors th[aria-sort="descending"] [data-sort]::after { content: '\2193' / ''; color: var(--ink); }
.ind-vendors [data-toggle] { font: inherit; }
.ind-vendors [data-toggle]::after { content: '+' / ''; font-size: 15px; }
.ind-vendors [data-toggle][aria-expanded="true"]::after { content: '\2212' / ''; }
.ind-vendors .k-more { max-width: 44em; color: var(--ink); }
.ind-after { margin-top: clamp(22px, 2.4vw, 36px); }
.ind-coming h3 { max-width: 20em; }

/* ---------- legal: the opinion, annotated ---------- */
/* The sheet and the notes share one set of rows, so each note starts level with its rule and the line between
   them points at the right one. */
.ind-annot { display: grid; grid-template-columns: minmax(0, 7fr) clamp(40px, 6vw, 96px) minmax(0, 6fr); grid-template-rows: auto repeat(4, auto) auto; }
.ind-opinion { grid-column: 1; grid-row: 1 / span 6; display: grid; grid-template-rows: subgrid; gap: 0; }
.ind-opinion > .k-doc-head { padding-bottom: 10px; }
.ind-opinion > .k-doc-rows { grid-row: 2 / span 4; grid-template-rows: subgrid; }
.ind-opinion > .k-doc-rows > li { padding-block: 14px; transition: color 0.25s; }
.ind-opinion > .k-doc-foot { align-self: start; }
.ind-notes, .ind-notes > ol { display: contents; }
.ind-notes > .kicker { grid-column: 3; align-self: end; padding-bottom: 10px; }
.ind-notes > ol > li { position: relative; grid-column: 3; display: grid; gap: 6px; align-content: start; padding-block: 14px; border-top: 1px solid var(--rule); }
.ind-notes > ol > li > small { display: none; font: 500 12px/1.3 var(--mono); color: var(--label); }
.ind-notes > ol > li > .k-text { transition: color 0.25s; }
.ind-notes > ol > li > .k-note a { display: inline-flex; align-items: center; min-height: 28px; }
.ind-notes > ol > li::before { content: ''; position: absolute; right: calc(100% + 12px); top: calc(14px + 0.7em); width: calc(clamp(40px, 6vw, 96px) - 22px); height: 1px; background: var(--ink); transform-origin: 0 50%; }
.ind-annot:has([data-r="1"]:hover, [data-n="1"]:hover, [data-r="1"]:focus-within, [data-n="1"]:focus-within) :is([data-r="1"], [data-n="1"] > .k-text),
.ind-annot:has([data-r="2"]:hover, [data-n="2"]:hover, [data-r="2"]:focus-within, [data-n="2"]:focus-within) :is([data-r="2"], [data-n="2"] > .k-text),
.ind-annot:has([data-r="3"]:hover, [data-n="3"]:hover, [data-r="3"]:focus-within, [data-n="3"]:focus-within) :is([data-r="3"], [data-n="3"] > .k-text),
.ind-annot:has([data-r="4"]:hover, [data-n="4"]:hover, [data-r="4"]:focus-within, [data-n="4"]:focus-within) :is([data-r="4"], [data-n="4"] > .k-text) { color: var(--ink); }
@media (max-width: 899px) {
  .ind-annot { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 28px; }
  .ind-opinion { grid-column: auto; grid-row: auto; display: grid; grid-template-rows: none; gap: 7px; }
  .ind-opinion > .k-doc-rows { grid-row: auto; grid-template-rows: none; }
  .ind-notes { display: grid; }
  .ind-notes > ol { display: grid; border-bottom: 1px solid var(--rule); }
  .ind-notes > .kicker, .ind-notes > ol > li { grid-column: auto; }
  .ind-notes > ol > li > small { display: block; }
  .ind-notes > ol > li::before { content: none; }
}

/* ---------- legal: your state, and one ruling ---------- */
.ind-find { display: grid; gap: 6px; max-width: 22em; width: 100%; }
html:not(.js) .ind-find { display: none; }
.ind-states .k-row[hidden] { display: none; }
.ind-states a.k-row small { text-align: right; }
.ind-none { padding: 10px 0; transition: color 0.2s; }
.ind-none.is-on { margin-inline: -12px; padding-inline: 12px; background: var(--raise); font-weight: 500; color: var(--ink); }
.ind-ruling { --sq-fill: var(--paper); }
.ind-ruling .k-doc-title { font-size: clamp(22px, 2.3vw, 36px); margin-block: 4px 8px; }
.ind-ruling .k-doc-rows > li { display: block; }

/* The file room, close up. The camera moves in when the reader reaches the row about ethical walls. */
.ind-near { --sq-r: 22px; --ar: 34 / 22; width: 100%; }
.ind-near .k-cam { transform-origin: 84% 31%; transform: scale(2); }
.ind-near.is-near .k-cam { transform: scale(2.7); }
.ind-near > .k-pin { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); white-space: normal; line-height: 1.3; }

/* ---------- finance: the rules and the file ---------- */
.ind-register h3 { font-size: inherit; font-weight: 600; line-height: inherit; color: var(--ink); }
.ind-register .k-row-more > .k-text { max-width: 44em; }
/* The folder: a sheet with a tab behind its top edge. The two turn together, so the tilt is on the folder. */
.ind-file { position: relative; isolation: isolate; margin-top: 30px; rotate: 1.4deg; }
.ind-file > .k-doc { --tilt: 0deg; }
.ind-tab { --sq-r: 10px; --sq-fill: var(--todo); position: absolute; left: 7%; bottom: calc(100% - 16px); z-index: -1; padding: 9px 16px 25px; font: 500 12px/1 var(--mono); color: var(--ink); }
.ind-file .k-doc-rows > li > span > small { display: block; margin-top: 3px; font-size: 12px; color: var(--stone); }
.ind-file .k-doc-rows > li { transition: color 0.3s; }
/* The open rule lights the part of the file it calls for. */
.ind-rules:has(#rule-glba[open]) [data-part="1"],
.ind-rules:has(#rule-nydfs[open]) :is([data-part="1"], [data-part="2"]),
.ind-rules:has(#rule-sp[open]) :is([data-part="2"], [data-part="3"]) { color: var(--ink); font-weight: 500; }
.ind-figures { display: grid; gap: clamp(18px, 2vw, 28px); }
.ind-figures .k-figure { max-width: none; }
.ind-figures a { text-decoration: none; }
.ind-desk { --tilt: 0deg; }
.ind-desk .k-doc-title { margin-bottom: 8px; }

/* ---------- a tall screen ---------- */
/* The board's phone: the building is the band at the top and the rooms are a row of chips under the words. The
   rooms picture is that band, so it moves above the words, the first picture steps aside, and a room's mark
   shows only once its room is open. */
@media (max-width: 699px), (max-aspect-ratio: 41/50) {
  .ind { display: flex; flex-direction: column; }
  .ind > .ind-rooms { order: -1; }
  .ind-hero .k-hero-pic, .ind-rooms .k-band-over { display: none; }
  .ind-hero .k-display { font-size: clamp(28px, 7.6vw, 46px); }
  .js .ind-chips { display: flex; }
  .ind-rooms .k-mark > i { opacity: 0; transition: scale 0.4s var(--bounce), opacity 0.2s; }
  .ind-rooms .k-mark:is([aria-expanded="true"], :focus-visible) > i { opacity: 1; }
  /* A sideways swipe on the sheet steps to the next room, so the browser keeps only the up and down scroll. */
  .k-pop { touch-action: pan-y; }
}
@media (max-width: 699px) {
  /* A link that stands alone is 44px to the finger. A link inside a sentence keeps the line's height. */
  .ind-vendors [data-toggle], .ind-vendors .is-mono a, .ind-notes .k-note a, .ind-ruling .k-doc-foot a { display: inline-flex; align-items: center; min-height: 44px; }
  /* A source's address wraps to two or three lines here, so its name sits on a line above it. */
  .ind-sources .k-sources > li { padding-block: 10px 0; }
  .ind-sources .k-sources b { display: block; margin: 0; }
  .ind-sources .k-sources a { display: block; padding-block: 10px 16px; }
  .ind-thumb { grid-template-columns: minmax(0, 9em) minmax(0, 1fr); }
  .ind-states a.k-row small { text-align: left; }
  .ind-file { margin-top: 38px; }
}

/* ---------- motion ---------- */
/* Arrival. Each block of words rises and sharpens, 80 ms apart, and the picture settles. The picture does not
   fade: a full-page capture reshapes the window, the first picture leaves and comes back, and its arrival runs
   again, which a fade would show as a washed-out picture. */
@keyframes ind-rise { from { opacity: 0; translate: 0 26px; filter: blur(9px); } }
@keyframes ind-settle { from { scale: 1.06; } }
@media (prefers-reduced-motion: no-preference) {
  .js .ind-hero .k-hero-words > * > * { animation: ind-rise 0.7s var(--out) both; animation-delay: calc(var(--i, 0) * 80ms + 80ms); }
  .js .ind-hero .k-cam > img, .js .ind-rooms .k-cam > img { animation: ind-settle 0.9s var(--out) both; }

  /* page-industry.js puts ind-wait on a part that starts below the screen and takes it off as the part arrives.
     A part with data-in="rows" brings its rows in 60 ms apart instead. */
  [data-in] { transition: opacity 0.6s var(--out), translate 0.7s var(--out), rotate 0.7s var(--out); }
  [data-in].ind-wait { opacity: 0; translate: 0 22px; }
  .k-doc[data-in].ind-wait { translate: 0 44px; rotate: 0deg; }
  /* From the right, by less than the page margin, so the waiting sheet never reaches past the screen's edge. Where
     the columns have stacked there is no room at the side and it rises like the others. */
  [data-in="right"]:is(.k-doc, .ind-file).ind-wait { translate: 0 44px; rotate: 0deg; }
  @media (min-width: 900px) { [data-in="right"]:is(.k-doc, .ind-file).ind-wait { translate: calc(var(--m) * 0.7) 0; } }
  [data-in="rows"].ind-wait { opacity: 1; translate: none; }
  [data-in="rows"] > :not(tr), [data-in="rows"] > tr > * { transition: opacity 0.5s var(--out), translate 0.6s var(--out), background-color 0.2s; transition-delay: calc(var(--i, 0) * 60ms); }
  [data-in="rows"].ind-wait > :not(tr), [data-in="rows"].ind-wait > tr > * { opacity: 0; translate: 0 14px; }
  .ind-annot[data-in].ind-wait { opacity: 1; translate: none; }
  .ind-notes > ol > li::before { transition: scale 0.7s var(--out); transition-delay: calc(var(--i, 0) * 120ms + 200ms); }
  .ind-annot.ind-wait .ind-notes > ol > li::before { scale: 0 1; }
  .ind-annot.ind-wait .ind-opinion { opacity: 0; translate: 0 44px; rotate: 0deg; }
  .ind-opinion { transition: opacity 0.6s var(--out), translate 0.7s var(--out), rotate 0.7s var(--out); }
  .ind-desk .k-doc-rows > li { transition: color 0.4s; transition-delay: calc(var(--i, 0) * 260ms + 500ms); }
  .ind-desk.ind-wait .k-doc-rows > li { color: var(--faint); }
  .ind-desk.ind-wait .k-doc-rows > li b { color: var(--faint); }
  .ind-desk .k-doc-rows > li b { transition: color 0.4s; transition-delay: inherit; }
}

@media print {
  .ind-rooms, .ind-chips, .ind-find { display: none !important; }
  .ind-near .k-cam { transform: scale(2); }
}
