/* Inner pages of the New Heights site. Shares tokens and components with styles.css. */

/* ---------- page head: copy on paper, an engraved range along the right ---------- */
.ph {
  --m-paper: var(--paper); --m-ink: #242722; --m-sun: #efed58; --m-soft: #b9bcad;
  position: relative; isolation: isolate; overflow: clip; min-height: min(78svh, 760px);
  display: grid; grid-template-rows: auto 1fr; border-bottom: 1px solid var(--line);
}
.ph--short { min-height: min(64svh, 620px); }
.ph-mtn { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.ph::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.14  0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.ph .site-header, .ph-body, .art-head { position: relative; z-index: 2; }
.ph-body { align-self: center; padding-top: clamp(24px, 5vh, 56px); padding-bottom: clamp(56px, 12vh, 140px); max-width: var(--max); }
.ph-body h1, .art-head h1 { font-size: clamp(54px, min(7.4vw, 12vh), 124px); line-height: 1.0; max-width: 11.5ch; margin-bottom: 26px; }
.ph-lede { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; max-width: 560px; }
.ph-sub { font-size: 17px; color: var(--muted); max-width: 520px; margin-top: 12px; }
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.ph-person { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.ph-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ph-person span { display: grid; font-size: 15px; color: var(--muted); }
.ph-person b { color: var(--ink); font-size: 16px; }
.soon-badge { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; font-weight: 600; color: var(--muted); }
.soon-badge .initials { width: 44px; height: 44px; font-size: 14px; }
.nav a[aria-current="page"] { background-size: 100% 40%; }

/* ---------- services: hover to reveal, click to keep ---------- */
.reveal-wrap { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 100px); }
.reveal-hint { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.hint-coarse { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-coarse { display: inline; } }
.reveals { display: flex; gap: 12px; min-height: 640px; }
.reveal {
  position: relative; flex: 1 1 0; min-width: 0; border-top: 1px solid var(--ink); background: var(--paper);
  transition: flex-grow .7s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-open { flex-grow: 3.4; }
.reveal-tab {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: baseline; gap: 12px; width: 100%;
  padding: 18px 0 16px; position: relative;
}
.reveal-tab:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; }
.reveal-n { font-size: 14px; font-weight: 600; color: var(--muted); }
.reveal-name { font-family: var(--display); font-size: clamp(36px, 3.6vw, 60px); line-height: 1; position: relative; z-index: 0; white-space: nowrap; }
.reveal-name::before {
  content: ''; position: absolute; z-index: -1; left: -.05em; right: -.08em; bottom: .08em; height: .34em;
  background: var(--yellow); transform: rotate(-2deg) scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-open .reveal-name::before { transform: rotate(-2deg) scaleX(1); }
.reveal-state { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--olive); opacity: 0; transition: opacity .3s ease; }
.reveal.is-held .reveal-state { opacity: 1; }
.reveal-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.reveal-fig { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 1122 / 1402; background: var(--paper-2); }
.reveal-fig img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-open .reveal-fig img { transform: scale(1); }
.reveal-copy h2 { font-size: clamp(30px, 2.6vw, 44px); line-height: 1.08; margin-bottom: 14px; }
.reveal-copy > p:not(.svc-label) { color: var(--muted); margin-bottom: 20px; }
.reveal-copy > * { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-open .reveal-copy > * { opacity: 1; transform: none; }
.reveal.is-open .reveal-copy > *:nth-child(2) { transition-delay: .06s; }
.reveal.is-open .reveal-copy > *:nth-child(3) { transition-delay: .12s; }
.reveal.is-open .reveal-copy > *:nth-child(4) { transition-delay: .18s; }
.reveal.is-open .reveal-copy > *:nth-child(5) { transition-delay: .24s; }
/* closed panels show only a tall slice of their image */
.reveal:not(.is-open) .reveal-body { grid-template-columns: 1fr; }
.reveal:not(.is-open) .reveal-copy { display: none; }
.reveal:not(.is-open) .reveal-fig { aspect-ratio: auto; height: 560px; filter: grayscale(.7) contrast(.95); opacity: .75; }
.reveal:not(.is-open):hover .reveal-fig { opacity: 1; filter: none; }
@media (max-width: 1000px) {
  .reveals { flex-direction: column; min-height: 0; gap: 0; }
  .reveal.is-open { flex-grow: 1; }
  .reveal:not(.is-open) .reveal-fig { display: none; }
  .reveal-body { grid-template-columns: 1fr; padding-bottom: 28px; }
  .reveal-fig { aspect-ratio: 16 / 11; }
}

/* ---------- about ---------- */
.about-page { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.person-name { font-size: clamp(36px, 3.4vw, 54px); line-height: 1.05; }
.person-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.member { display: grid; grid-template-columns: minmax(200px, 4fr) 8fr; gap: clamp(28px, 4.5vw, 80px); padding: 48px 0; border-top: 1px solid var(--line); margin-top: 56px; }
.member .bio { margin-bottom: 0; }
.member-side { display: flex; justify-content: flex-start; }
.initials--lg { width: 120px; height: 120px; font-size: 32px; }
.initials--xl { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r); font-size: clamp(40px, 5vw, 72px); font-family: var(--display); font-weight: 400; }
.org { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 40px 0 0; border-top: 1px solid var(--ink); margin-top: 24px; max-width: 760px; }
.org .person-name { margin-bottom: 10px; }
.org p:not(.role) { color: var(--muted); margin-bottom: 14px; }
.org-logo { width: 72px; height: 72px; object-fit: contain; }

/* ---------- portfolio ---------- */
.work--page { border-top: 0; }
.case-title { font-size: clamp(38px, 3.8vw, 58px); line-height: 1.05; margin-bottom: 18px; }
.shot--wide { margin: 8px 0 clamp(40px, 5vw, 72px); aspect-ratio: 16 / 9; }
.tool-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); counter-reset: none; }
.tool-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tool-list span { font-size: 13px; font-weight: 600; color: var(--muted); }
.tool-list a { font-family: var(--display); font-size: 28px; text-decoration: none; }
.tool-list a:hover { text-decoration: underline; text-decoration-color: var(--yellow-2); text-underline-offset: 6px; }
.tool-list em { font-style: normal; font-size: 14px; color: var(--muted); }

/* ---------- calendars ---------- */
.book--page { padding-top: clamp(56px, 8vw, 110px); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.person-card { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; gap: 20px; align-content: start; }
.pc-face { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.is-soon .pc-face { background: var(--paper-3); color: var(--muted); }
.pc-body .role { margin: 4px 0 10px; }
.pc-note { color: var(--muted); margin-bottom: 20px; }

/* ---------- booking ---------- */
.booking { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); }
.bk-preview { border: 1px solid var(--ink); background: var(--yellow); border-radius: var(--r); padding: 14px 18px; margin-bottom: 36px; max-width: 860px; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 88px); }
.bk-step { border-top: 1px solid var(--ink); padding-top: 22px; }
.bk-n { font-size: 14px; font-weight: 600; color: var(--olive); margin-bottom: 10px; }
.bk-step h2, .bk-result h2 { font-size: clamp(34px, 3vw, 48px); line-height: 1.06; margin-bottom: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 14px; font-weight: 600; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  font: 16px var(--font); color: var(--ink); background: #fbfaf5; border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 12px 14px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 70%, transparent); }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-tz, .bk-req, .bk-fine { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.bk-msg { font-size: 15px; color: var(--muted); min-height: 1.5em; margin: 6px 0 12px; }
.bk-msg.live-error { color: #a1301a; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slots button {
  font: 600 15px var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 11px 8px; cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .15s ease, border-color .15s ease;
}
.slots button:hover { border-color: var(--ink); }
.slots button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slots.is-loading { min-height: 140px; background: linear-gradient(90deg, var(--paper-2) 0 30%, var(--paper-3) 50%, var(--paper-2) 70% 100%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.bk-selected { font-weight: 600; margin-bottom: 18px; padding: 10px 12px; background: var(--paper-2); border-radius: var(--r); }
.button:disabled { background: var(--paper-3); color: var(--muted); cursor: not-allowed; }
.button:disabled span { transform: none; }
.bk-result { max-width: 760px; border-top: 1px solid var(--ink); padding-top: 22px; }
.bk-status span { display: inline-block; background: var(--yellow); padding: 3px 10px; border-radius: var(--r); font-weight: 700; font-size: 14px; text-transform: capitalize; margin-bottom: 12px; }
.bk-time { font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.bk-link { display: grid; gap: 2px; margin: 18px 0; }
.bk-link a { font-weight: 700; }
.bk-link span { font-size: 13px; color: var(--muted); }
.bk-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
@media (max-width: 860px) { .bk-grid { grid-template-columns: 1fr; } }

/* ---------- journal ---------- */
.journal-page { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 16px; align-items: end; margin-bottom: 36px; }
.blog-count { font-weight: 600; color: var(--muted); padding-bottom: 28px; }
.entry--big { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto auto auto 1fr; column-gap: clamp(28px, 4vw, 64px); }
.entry--big .entry-art { grid-column: 2; grid-row: 1 / 5; position: relative; min-height: 320px; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; justify-content: flex-start; padding: 22px; --m-paper: #f5f3eb; --m-ink: #242722; --m-sun: #efed58; --m-soft: #b9bcad; }
.entry-mtn { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry-art-label, .entry-art-title { position: relative; z-index: 1; }
.entry-art-label { font-size: 13px; font-weight: 600; color: var(--olive); }
.entry-art-title { font-family: var(--display); font-size: 30px; line-height: 1.1; max-width: 12ch; margin-top: 6px; }
.entry--big .entry-meta, .entry--big .entry-title, .entry--big .entry-dek, .entry--big > .text-link { grid-column: 1; }
.entry--big > .text-link { align-self: end; justify-self: start; }
.blog-empty { padding: 40px 0; display: grid; gap: 16px; justify-items: start; color: var(--muted); }
@media (max-width: 860px) {
  .filters { grid-template-columns: 1fr; }
  .blog-count { padding-bottom: 0; }
  .entry--big { grid-template-columns: 1fr; }
  .entry--big .entry-art { grid-column: 1; grid-row: auto; min-height: 240px; }
}

/* ---------- article ---------- */
.ph--article { min-height: 0; }
.art-head { padding-top: 24px; padding-bottom: clamp(56px, 9vw, 110px); max-width: 980px; margin-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); margin-right: auto; }
.art-head h1 { max-width: 16ch; }
.back { display: inline-block; font-size: 15px; font-weight: 600; text-decoration: none; margin-bottom: 30px; }
.back::before { content: '\2190'; margin-right: 8px; }
.art-eyebrow { font-family: var(--display); font-size: 26px; color: var(--muted); margin-bottom: 4px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 26px; font-size: 15px; font-weight: 600; color: var(--muted); }
.byline span:not(:last-child)::after { content: '/'; margin: 0 10px; color: var(--line-2); font-weight: 400; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr); padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(64px, 9vw, 120px); }
.article > * { grid-column: 2; }
.figure-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: var(--olive); margin: 0 0 12px; }
.pace { grid-column: 1 / -1; margin: 0 0 56px; border: 1px solid var(--ink); border-radius: var(--r); padding: clamp(22px, 3vw, 40px); background: var(--paper); }
.pace-title { font-size: clamp(34px, 4vw, 60px); line-height: 1.04; max-width: 14ch; margin-bottom: 28px; }
.pace-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.pace-steps li { font-family: var(--display); font-size: clamp(26px, 2.6vw, 40px); padding: 16px 0 0; display: grid; transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.pace-steps li span { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); }
.pace-window { height: 14px; background: var(--paper-3); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.pace-window i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ink) 0 64%, var(--yellow-2) 64% 100%); transform-origin: left; }
.pace figcaption { color: var(--muted); }
.question { margin: 0 0 48px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.question-text { font-family: var(--display); font-size: clamp(30px, 3vw, 44px); line-height: 1.1; margin-bottom: 16px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; font-weight: 600; padding: 5px 10px; border-radius: var(--r); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.prose { font-size: 19px; line-height: 1.7; }
.prose p { margin-bottom: 22px; color: #3a3d36; }
.prose .lead { font-size: 23px; line-height: 1.5; color: var(--ink); }
.prose h2 { font-size: clamp(32px, 3vw, 44px); line-height: 1.1; margin: 52px 0 18px; }
.prose blockquote { margin: 40px 0; padding: 4px 0 4px 0; font-family: var(--display); font-size: clamp(32px, 3.2vw, 48px); line-height: 1.12; position: relative; }
.prose blockquote::before { content: ''; display: block; width: 64px; height: 10px; background: var(--yellow); transform: rotate(-2deg); margin-bottom: 18px; }
.evidence { margin: 40px 0; }
.image-enlarge { all: unset; cursor: zoom-in; display: block; position: relative; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: #fff; }
.image-enlarge:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.image-enlarge img { width: 100%; }
.enlarge-hint { position: absolute; right: 10px; bottom: 10px; font-size: 13px; font-weight: 600; background: var(--paper); padding: 4px 8px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.evidence figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.poll-bars { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.pb { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; font-size: 16px; }
.pb b { font-variant-numeric: tabular-nums; }
.pb i { grid-column: 1 / -1; height: 12px; background: var(--paper-3); border-radius: 2px; position: relative; overflow: hidden; }
.pb i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--fill, 0%); background: var(--ink); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.pb:first-child i::after { background: var(--yellow-2); }
.pb.is-pending { opacity: 1; transform: none; }
.article-end { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ink); font-size: 16px; }
.article-end > span { display: grid; }
.end-tagline { color: var(--muted); }

/* ---------- dialogs ---------- */
.nh-dialog { border: 1px solid var(--ink); border-radius: var(--r); padding: 0; background: var(--paper); color: var(--ink); width: min(640px, calc(100vw - 32px)); max-height: calc(100svh - 48px); }
.nh-dialog::backdrop { background: rgba(25, 27, 22, .55); }
.nh-dialog[open] { animation: dlg .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes dlg { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 30px; }
.dialog-close { font: 600 15px var(--font); background: none; border: 0; padding: 8px 10px; cursor: pointer; border-radius: var(--r); }
.dialog-close:hover { background: var(--paper-2); }
.reference-list { list-style: none; margin: 0; padding: 8px 20px 20px; }
.reference-list li { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.reference-list span { color: var(--muted); font-size: 15px; }
.nh-dialog--image { width: min(1100px, calc(100vw - 32px)); }
#enlarged-image img { width: 100%; display: block; }
#image-caption { padding: 14px 20px 20px; color: var(--muted); font-size: 15px; }

/* ---------- partners: a rotating strip you can drag ---------- */
.partners { padding-inline: 0; }
.partners-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.partners-hint { font-size: 14px; font-weight: 600; color: var(--muted); }
.partner-window { overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.partner-window:active { cursor: grabbing; }
.partner-track { display: flex; width: max-content; }
.partners.is-rotating .partner-track { animation: partner-scroll 36s linear infinite; }
.partners.is-held .partner-track, .partners.is-rotating .partner-window:hover .partner-track { animation-play-state: paused; }
@keyframes partner-scroll { to { transform: translateX(calc(-100% / 3)); } }
.partners .partner-list { display: flex; grid-template-columns: none; border: 0; flex: none; }
.partners .partner-list li { border: 0; border-right: 1px solid var(--line); width: clamp(180px, 18vw, 260px); }
@media (prefers-reduced-motion: reduce) { .partners.is-rotating .partner-track { animation: none; } .partner-window { overflow-x: auto; } }

/* ---------- chat ---------- */
#nh-chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px var(--font); color: var(--paper); background: var(--ink); border: 0; border-radius: 999px; padding: 12px 18px 12px 14px;
  cursor: pointer; box-shadow: 0 6px 18px rgba(25, 27, 22, .18); transition: transform .2s ease, background-color .2s ease, opacity .3s ease;
}
#nh-chat-launcher svg { width: 22px; height: 22px; color: var(--yellow); }
#nh-chat-launcher:hover { background: #3a3e35; transform: translateY(-1px); }
#nh-chat-launcher.is-tucked { opacity: 0; pointer-events: none; transform: translateY(12px); }
#nh-chat-dialog { border: 1px solid var(--ink); border-radius: var(--r); padding: 0; background: var(--paper); color: var(--ink); width: min(440px, calc(100vw - 24px)); max-height: min(720px, calc(100svh - 32px)); margin: auto 20px 20px auto; }
#nh-chat-dialog::backdrop { background: rgba(25, 27, 22, .35); }
#nh-chat-dialog[open] { display: flex; flex-direction: column; animation: dlg .3s cubic-bezier(.2, .8, .2, 1); }
.nh-chat-heading { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.nh-chat-heading h2 { font-size: 30px; line-height: 1.05; }
.nh-chat-heading p { font-size: 14px; color: var(--muted); }
#nh-chat-close { font: 400 26px/1 var(--font); background: none; border: 0; cursor: pointer; padding: 4px 8px; border-radius: var(--r); }
#nh-chat-close:hover { background: var(--paper-2); }
#nh-chat-content { flex: 1; min-height: 360px; overflow: auto; }
.nh-chat-loading { padding: 20px; color: var(--muted); }
.nh-chat-note { font-size: 13px; color: var(--muted); padding: 12px 18px 16px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  #nh-chat-launcher span { display: none; }
  #nh-chat-launcher { padding: 14px; }
  #nh-chat-dialog { margin: auto 12px 12px; }
}

/* ---------- responsive ---------- */
@media (max-width: 899px) {
  .ph { min-height: 0; }
  .ph-body { padding-bottom: 46vw; }
  .member { grid-template-columns: 1fr; gap: 20px; }
  .initials--lg { width: 88px; height: 88px; font-size: 24px; }
  .article { grid-template-columns: 1fr; }
  .article > *, .pace { grid-column: 1; }
  .prose { font-size: 18px; }
}

/* anything marked hidden stays hidden, whatever display a component sets */
[hidden] { display: none !important; }
.reveal:not(.is-open) .reveal-name { font-size: clamp(26px, 2.3vw, 36px); }
@media (max-width: 899px) {
  /* phones: the range gets its own strip under the copy instead of sitting behind it */
  .ph-mtn { top: auto; bottom: 0; height: 58vw; }
  .ph-body { padding-bottom: 60vw; }
  .ph--article .art-head { padding-bottom: 60vw; }
  .pace-steps li { font-size: 21px; }
}

/* the FAQ app's own stylesheet loads after this one; these win on specificity */
html body #nh-chat-dialog { border-radius: var(--r); border-color: var(--ink); background: var(--paper); }
html body #nh-chat-dialog .nh-chat-heading { background: var(--paper); border-bottom: 1px solid var(--line); }
html body #nh-chat-dialog #nh-chat-close { border-radius: var(--r); border: 0; width: auto; height: auto; }
html body #nh-chat-dialog .rcb-bot-message, html body #nh-chat-dialog .rcb-user-message { border-radius: var(--r); }
html body #nh-chat-dialog .rcb-options { border-radius: var(--r); border-color: var(--line-2); font-family: var(--font); font-weight: 600; }
html body #nh-chat-dialog .rcb-options:hover { border-color: var(--ink); }
html body #nh-chat-dialog .rcb-chat-window { border-radius: 0; }
