:root {
  --resource-surface: #e2ebe7;
  --resource-accent: #286c70;
}

/* Visitor design system. The preserved base supplies structure; this file owns
   visitor typography, colour, spacing and interaction refinements. */
.visitor-site {
  --ink: #173240;
  --green: #173240;
  --muted: #4e626c;
  --paper: #edf1ef;
  --white: #f8faf8;
  --line: #c8d5d1;
  --mint: #dceae5;
  --accent: #c9a159;
  --resource-surface: #e2ebe7;
  --resource-accent: #286c70;
  --surface-raised: #f5f7f4;
  --focus: #24767c;
  --type-display: clamp(2.25rem, 2rem + 1.7vw, 3.5rem);
  --type-section: clamp(1.875rem, 1.55rem + 0.8vw, 2.25rem);
  --type-card: clamp(1.375rem, 1.25rem + 0.35vw, 1.625rem);
  --type-body: 1.0625rem;
  --type-support: 0.9375rem;
  --type-label: 0.75rem;
  --page-gutter: clamp(20px, 4vw, 40px);
  --section-space: clamp(40px, 5vw, 64px);
  --content-width: 1240px;
  --card-radius: 10px;
  font-size: var(--type-body);
  line-height: 1.65;
}
.visitor-site .wrap {
  max-width: var(--content-width);
  padding-inline: var(--page-gutter);
}
.visitor-site h1,
.visitor-site .page-head h1,
.visitor-site .narrow h1,
.visitor-site .hub-intro h1,
.visitor-site .about-intro h1,
.visitor-site .knowledge-detail h1,
.visitor-site .entry-copy h1 {
  font-family: var(--serif);
  font-size: var(--type-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0 0 24px;
}
.visitor-site h2,
.visitor-site .section-heading h2,
.visitor-site .feature h2,
.visitor-site .about-content h2,
.visitor-site .closing-cta h2,
.visitor-site .consulting-section h2 {
  font: 400 var(--type-section) / 1.2 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0 0 20px;
}
.visitor-site h3,
.visitor-site .article-card :is(h2, h3),
.visitor-site .knowledge-card h2,
.visitor-site .collection-empty :is(h2, h3),
.visitor-site .hub-practice-review h3,
.visitor-site .hub-reel-copy h2,
.visitor-site .assistant-chat-head h2 {
  font: 400 var(--type-card) / 1.25 var(--serif);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.visitor-site p {
  line-height: 1.65;
}
.visitor-site :is(.eyebrow, .entry-kicker) {
  font-size: var(--type-label);
  line-height: 1.5;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.visitor-site :is(.meta, .small) {
  font-size: var(--type-support);
}
.visitor-site .button,
.visitor-site .media-load,
.visitor-site .media-unload {
  border-radius: 6px;
  font-size: var(--type-support);
  min-height: 48px;
}
.visitor-site .button {
  background: var(--resource-accent);
  border-color: var(--resource-accent);
  color: #fff;
}
.visitor-site .button:hover {
  background: #20585c;
  border-color: #20585c;
}
.visitor-site .button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: #829b96;
}
.visitor-site .button.secondary:hover {
  background: var(--mint);
}
.visitor-site .header {
  min-height: 92px;
}
.visitor-site .notice {
  background: var(--ink);
  color: #e0eae5;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  padding: 9px var(--page-gutter);
}
.visitor-site .staging-note {
  background: #dce5e0;
  color: var(--ink);
}
.visitor-site .nav {
  gap: 28px;
}
.visitor-site .nav > a,
.visitor-site .resource-menu > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.visitor-site .resource-menu-links {
  left: 0;
  right: auto;
  top: 100%;
  background: var(--surface-raised);
  box-shadow: 0 12px 30px #17324020;
}
.visitor-site .footer {
  padding-block: 36px 48px;
  gap: 48px;
}
.visitor-site .footer .brand {
  font-size: 27px;
  text-decoration: none;
}
.visitor-site .footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 28px;
  max-width: 620px;
}
.visitor-site .footer-links a {
  font-size: 14px;
}
.visitor-site .footer .footer-credit {
  font-size: 13px;
}

/* Front door: one leading statement and a quieter explanation beside it. */
.entry-hero-inner {
  align-items: start;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  max-width: var(--content-width, 1240px);
  padding: var(--section-space, 64px) var(--page-gutter, 40px);
  gap: clamp(36px, 5vw, 72px);
}
.visitor-site .entry-hero {
  background: var(--ink);
}
.visitor-site .entry-hero::before {
  opacity: 0.4;
}
.visitor-site .entry-copy h1 {
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.visitor-site .entry-copy p {
  font-size: 18px;
  max-width: 49ch;
}
.entry-right {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.entry-inquiry {
  padding: 0 0 22px;
  border-bottom: 1px solid #58717b;
}
.entry-inquiry .entry-kicker {
  margin-bottom: 10px;
}
.visitor-site .entry-inquiry h2 {
  color: #f5f7f4;
  font-size: var(--type-card);
  margin: 0 0 12px;
}
.entry-inquiry a {
  color: #e4c384;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.visitor-site .entry-art {
  min-height: 0;
  background: var(--mint);
  border: 1px solid #b8cdc5;
  border-radius: var(--card-radius);
  box-shadow: none;
}
.visitor-site .entry-art-top,
.visitor-site .entry-art-bottom {
  padding: 16px 22px;
  font-size: 10px;
  letter-spacing: 0.1em;
  border-color: #bdcfca;
}
.visitor-site .entry-workflow {
  padding: 6px 22px;
}
.visitor-site .entry-workflow li {
  gap: 14px;
  padding-block: 18px;
  grid-template-columns: 30px 1fr;
}
.visitor-site .entry-workflow li > span {
  width: 30px;
  height: 30px;
  background: #2c6268;
}
.visitor-site .entry-workflow strong {
  font-size: 22px;
  line-height: 1.25;
}
.visitor-site .entry-workflow p {
  font-size: 14px;
  margin-top: 6px;
}
.visitor-site .entry-actions {
  margin-top: 28px;
  gap: 20px;
}
.visitor-site .entry-actions .button {
  min-height: 50px;
  padding: 12px 20px;
  background: #d9e9e3;
  color: var(--ink);
  border-color: #d9e9e3;
}
.visitor-site .entry-actions .button:hover {
  background: #edf4f0;
  border-color: #edf4f0;
}
.visitor-site .entry-audience {
  background: #dce6e1;
  padding: 20px var(--page-gutter);
  gap: 12px 24px;
}
.visitor-site .entry-audience span:not(:first-child)::before {
  color: #806228;
}
.visitor-site .entry-next {
  padding-block: var(--section-space);
  gap: clamp(32px, 6vw, 72px);
}
.visitor-site .entry-next-links a {
  min-height: 106px;
  gap: 16px;
}
.visitor-site .entry-next-links a strong {
  font-size: var(--type-card);
}
.visitor-site .entry-next-links a:hover {
  background: var(--resource-surface);
}
.entry-meet {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center;
  padding-block: 0 var(--section-space, 64px);
}
.entry-meet figure {
  margin: 0;
  background: var(--mint);
  padding: 10px;
  border-radius: var(--card-radius);
}
.entry-meet img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  border-radius: 4px;
}
.entry-meet h2 {
  max-width: 500px;
}
.entry-meet p {
  max-width: 55ch;
  color: var(--muted);
}
.archive-link {
  margin-top: 24px;
  font-size: 15px;
}
.closing-cta,
.hub-inquiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 32px 0 48px;
}
.closing-cta p,
.hub-inquiry p {
  margin: 0;
  max-width: 55ch;
  color: var(--muted);
}
.closing-cta .button,
.hub-inquiry .button {
  flex-shrink: 0;
}
.article-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  align-items: start;
}
.article-reading-layout > .knowledge-detail {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-inline: 0;
}
.article-reading-layout .article-reel {
  align-self: stretch;
  min-width: 0;
  padding-top: 56px;
}
.article-reel .reel-sticky {
  position: sticky;
  top: 116px;
  max-height: none;
  overflow: visible;
}
.article-reel .media-block {
  margin: 16px 0 0;
}
.article-reel .media-embed {
  margin: 0;
}
.article-reel .media-frame-wrap {
  max-height: none;
  overflow: visible;
}
.article-reel iframe.video-portrait {
  width: 100%;
  height: min(590px, calc(100dvh - 160px));
  min-height: 0;
}
/* Instagram reserves a scrollbar gutter unless the frame disables scrolling.
   Size the whole post (4:5 video plus controls), rather than cutting it to
   the viewport height, so its controls remain visible without inner scroll. */
.instagram-embed .media-frame-wrap {
  container-type: inline-size;
}
.instagram-embed .media-frame-wrap > iframe.video-portrait {
  width: 100%;
  max-width: none;
  height: calc(125cqw + 220px);
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
}
[data-staging-inquiry] [data-result] {
  min-height: 1.7em;
}
[hidden] {
  display: none !important;
}
.review-search,
.review-filter {
  display: block;
  margin: 0 0 28px;
}
.review-search div {
  display: flex;
  gap: 12px;
}
.review-search input,
.review-filter input,
.review-form input,
.review-form textarea,
.review-record select,
.review-record textarea {
  display: block;
  width: 100%;
  font: inherit;
  border: 1px solid #829894;
  border-radius: 6px;
  padding: 12px;
  background: var(--surface-raised, white);
  color: var(--ink);
  margin-top: 6px;
}
.review-search input {
  max-width: 500px;
}
.review-form label,
.review-record label {
  display: block;
  font-size: 15px;
  margin: 0 0 20px;
}
.review-form .button,
.review-record .button {
  font-size: 16px;
}
.review-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.review-record {
  padding: 24px;
  border: 1px solid #aebfba;
  border-radius: 12px;
  min-width: 0;
}
.review-record h2 {
  font-size: 24px;
}
.review-record [role="status"] {
  min-height: 1.7em;
}
.review-record[hidden] {
  display: none !important;
}
.review-warning {
  padding: 24px;
  background: #e8eee9;
  border: 1px solid #9bafa6;
  border-radius: 8px;
  margin: 24px 0;
}
.review-warning p {
  margin: 12px 0;
}
.pagination {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 32px 0;
}

@media (max-width: 1000px) {
  .article-reading-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
  }
  .entry-meet {
    gap: 40px;
    padding-inline: 25px;
  }
}
@media (max-width: 800px) {
  .article-reading-layout {
    display: flex;
    flex-direction: column;
  }
  .article-reading-layout .article-reel {
    padding-top: 0;
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }
  .article-reel .reel-sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .article-reel iframe.video-portrait {
    height: 560px;
    max-height: 75dvh;
  }
  .review-records {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .entry-meet {
    grid-template-columns: 1fr;
    padding: 0 21px 60px;
    gap: 30px;
  }
  .entry-meet figure {
    max-width: 400px;
  }
  .closing-cta,
  .hub-inquiry {
    flex-direction: column;
    align-items: flex-start;
  }
  .closing-cta h2 {
    font-size: 29px;
  }
}

/* Launch review: clear controls and consistent editorial illustrations. */
.staging-note {
  background: #dce5e0;
  color: #173240;
  padding: 8px 20px;
  text-align: center;
  font:
    600 12px/1.5 system-ui,
    sans-serif;
}
.topic-visual {
  min-height: 160px;
  margin: 0 0 24px;
  padding: 22px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
}
.visual-caption {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  margin-bottom: 20px;
  color: #415e55;
}
.topic-visual > div {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.topic-visual strong {
  font-size: 14px;
  line-height: 1.5;
  max-width: 85px;
}
.entry-actions .entry-text-link {
  display: inline-block;
  padding: 10px 0;
}
.review-nav a,
.footer-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
[aria-current="page"]:not(.brand) {
  text-decoration: underline;
  text-underline-offset: 6px;
}
:focus-visible {
  outline: 3px solid var(--focus, #24767c);
  outline-offset: 4px;
}
.entry-hero :focus-visible {
  outline-color: #f0bd57;
}
.review-record code {
  overflow-wrap: anywhere;
}
.review-record input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  font: inherit;
  border: 1px solid #829894;
  border-radius: 6px;
}
.review-record details {
  margin: 20px 0;
}
.review-record summary,
.related-more summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
}
.read-next h2 {
  font-size: 28px;
}
.related-more {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}
.related-more > .related-group {
  margin: 18px 0;
}
.review-form {
  max-width: 640px;
  margin-top: 28px;
}
.review-main,
main,
article {
  min-width: 0;
}
main table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.media-unload {
  font: inherit;
  padding: 10px 12px;
  background: var(--surface-raised, #fff);
  color: var(--ink);
  border: 1px solid #829894;
  border-radius: 5px;
}
@media (min-width: 801px) and (max-height: 740px) {
  .article-reel .reel-sticky {
    position: static;
  }
  .article-reel iframe.video-portrait {
    height: 590px;
  }
}
@media (max-width: 800px) {
  .topic-visual {
    min-height: 140px;
  }
  .entry-actions {
    flex-wrap: wrap;
  }
  .review-nav a,
  .header nav a {
    min-height: 44px;
  }
}
@media (max-width: 360px) {
  .topic-visual {
    padding: 16px;
  }
  .topic-visual strong {
    font-size: 12px;
  }
  .topic-visual > div {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.related-content {
  display: block;
}

/* Shared page rhythm for resources, biography, contact and reading. */
[data-visitor-page] .page-head {
  max-width: 850px;
  padding-block: var(--section-space, 48px) 28px;
}
[data-visitor-page] .page-head p {
  font-size: 18px;
  max-width: 62ch;
}
[data-visitor-page] .page-head.narrow {
  padding-bottom: 40px;
}
[data-visitor-page] .page-head > :is(a, button) + :is(a, button) {
  margin-inline-start: 24px;
}
[data-visitor-page] > .section {
  padding-block: 32px;
}
.visitor-site .article-grid,
.visitor-site .knowledge-grid {
  gap: 24px;
}
.visitor-site .article-card,
.visitor-site .knowledge-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 24px;
  min-width: 0;
}
.visitor-site .article-card .topic-visual {
  border-radius: 6px;
}
.visitor-site .article-card p,
.visitor-site .knowledge-card p {
  font-size: 16px;
  line-height: 1.65;
}
.visitor-site .article-card > a:last-child {
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.visitor-site .about-page {
  --about-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  --about-column-gap: clamp(32px, 6vw, 76px);
  max-width: none;
  padding-block: var(--section-space) 24px;
}
/* Both About rows share their column boundaries, including the portrait and
   project card. Their content can retain its natural height. */
.visitor-site .about-intro,
.visitor-site .about-content {
  grid-template-columns: var(--about-columns);
  column-gap: var(--about-column-gap);
}
@media (max-width: 760px) {
  .visitor-site .about-page {
    --about-columns: minmax(0, 1fr);
  }
}
.visitor-site .about-intro {
  margin-bottom: 48px;
}
.visitor-site .about-intro p {
  font-size: 18px;
}
.visitor-site .about-portrait,
.visitor-site .about-project {
  background: var(--mint);
  border-radius: var(--card-radius);
}
.visitor-site .about-portrait img {
  border-radius: 4px;
}
.visitor-site .about-project h2 {
  font-size: var(--type-card);
}
.visitor-site .prose {
  font-size: 18px;
  line-height: 1.8;
  max-width: 72ch;
}
.visitor-site .prose h2,
.visitor-site .knowledge-detail h2 {
  font: 400 var(--type-section) / 1.25 var(--serif);
  margin: 40px 0 20px;
}
.visitor-site .prose h3 {
  font:
    600 20px/1.4 Arial,
    Helvetica,
    sans-serif;
  margin: 28px 0 12px;
}
.visitor-site .prose :is(p, li) {
  line-height: 1.8;
}
.visitor-site .knowledge-intro {
  font-size: 18px;
  color: var(--muted);
}
.visitor-site .narrow {
  padding-block: var(--section-space);
}
.visitor-site .callout {
  background: var(--resource-surface);
  border-color: var(--resource-accent);
  border-radius: 0 6px 6px 0;
}
.review-form input,
.review-form textarea {
  font-size: 16px;
}
.review-form .callout,
.page-head .callout {
  font-size: 15px;
  padding: 14px 18px;
}
[data-visitor-page="/inquire"] .page-head > .callout {
  width: 100%;
  max-width: 640px;
}
.collection-empty {
  grid-column: 1 / -1;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--resource-accent);
  border-radius: var(--card-radius, 8px);
  background: var(--resource-surface);
  width: 100%;
  max-width: none;
}
.collection-empty h2 {
  font-size: var(--type-card, 25px);
  margin: 8px 0 12px;
}
.collection-empty p {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 18px;
}
.collection-empty a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
}
.recovery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.recovery-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.finder-entry {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid #76978c;
  padding: 8px 0;
  margin-top: 12px;
  background: transparent;
  color: var(--resource-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.entry-actions .finder-entry {
  color: #d0e5df;
  border-color: #72918e;
  margin: 0;
}
.finder-open {
  overflow: hidden;
}
dialog.assistant-chat {
  position: fixed;
  inset: auto;
  left: 50%;
  top: calc(var(--finder-top, 0px) + 16px);
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  height: min(640px, calc(var(--finder-height, 100dvh) - 32px));
  max-height: calc(var(--finder-height, 100dvh) - 32px);
  color: var(--ink);
  border-radius: 12px;
  box-sizing: border-box;
}
dialog.assistant-chat::backdrop {
  background: #102c3c99;
}
dialog.assistant-chat:not([open]) {
  display: none;
}
dialog.assistant-chat .assistant-chat-head {
  padding: 14px 18px;
}
dialog.assistant-chat .assistant-chat-body {
  overscroll-behavior: contain;
  min-height: 0;
  padding: 18px;
}
dialog.assistant-chat .assistant-chat-bottom {
  padding: 12px max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom));
}
dialog.assistant-chat .assistant-input-row input {
  font-size: 16px;
}
dialog.assistant-chat .assistant-input-row button {
  min-height: 44px;
  font-size: 15px;
}
.finder-status {
  font-size: 14px;
  line-height: 1.4;
  margin: 8px 0 0;
}
.finder-status:empty {
  margin: 0;
}
.finder-recovery a {
  display: inline-block;
  padding-block: 8px;
}
.nav .nav-contact,
.mobile-menu-links .nav-contact {
  background: transparent;
  color: var(--ink);
  border: 1px solid #8ba69b;
  border-radius: 6px;
  padding-inline: 14px;
}
.nav a[aria-current],
.resource-menu summary[data-current-section] .resource-menu-label,
.mobile-menu-links a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.nav a[aria-current="page"],
.mobile-menu-links a[aria-current="page"] {
  background: transparent;
}
.footer-links {
  gap: 10px 24px;
}
.footer-links a {
  min-height: 44px;
}
@media (max-width: 900px) {
  .header {
    position: relative;
    flex-wrap: nowrap;
  }
  .mobile-navigation[open] {
    flex-basis: auto;
  }
  .mobile-menu-links {
    position: absolute;
    top: calc(100% - 6px);
    right: 0;
    left: 0;
    z-index: 60;
    padding: 12px;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px #17394726;
  }
  .mobile-menu-links a {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 600px) {
  [data-visitor-page] .page-head > :is(a, button) + :is(a, button) {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-inline-start: 0;
  }
  .visitor-site .mobile-menu-links {
    grid-template-columns: minmax(0, 1fr);
  }
  .visitor-site .mobile-menu-links a {
    min-height: 44px;
    padding: 8px 12px;
  }
  dialog.assistant-chat {
    top: calc(var(--finder-top, 0px) + 8px);
    width: calc(100vw - 16px);
    height: calc(var(--finder-height, 100dvh) - 16px);
    max-height: calc(var(--finder-height, 100dvh) - 16px);
    border-radius: 12px;
  }
  .entry-actions {
    gap: 16px;
  }
  .entry-actions .finder-entry {
    flex-basis: auto;
  }
}
/* The Hub inherits the Resources palette and keeps its eager Reel layout. */
[data-visitor-page="/home"] .hub-layout {
  grid-template-areas: "intro reel" "paths reel" "articles reel";
  grid-template-rows: min-content min-content 1fr;
  gap: 28px clamp(28px, 4vw, 56px);
  padding: var(--section-space, 48px) 0 40px;
}
[data-visitor-page="/home"] .hub-intro h1 {
  max-width: 16ch;
}
[data-visitor-page="/home"] .hub-intro .tabs {
  border-bottom: 0;
  padding-bottom: 0;
  gap: 10px 24px;
  font-size: 15px;
}
[data-visitor-page="/home"] .hub-paths a {
  padding: 20px 16px;
}
[data-visitor-page="/home"] .hub-paths a:hover {
  background: var(--resource-surface);
}
[data-visitor-page="/home"] .hub-featured-reel {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--mint);
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
[data-visitor-page="/home"] .hub-reel-copy {
  background: transparent;
  padding: 18px 20px;
  border: 0;
}
[data-visitor-page="/home"] .hub-reel-copy h2 {
  font-size: 22px;
  text-wrap: initial;
  margin-bottom: 0;
}
.visitor-site .hub-reel-copy .eyebrow {
  font-size: 11px;
  margin-bottom: 8px;
}
[data-visitor-page="/home"] .hub-reel-player {
  position: static;
  border: 0;
  background: transparent;
  display: flex;
  flex: 1;
}
[data-visitor-page="/home"] .hub-reel-player .media-embed {
  display: flex;
  flex-direction: column;
  flex: 1;
}
[data-visitor-page="/home"] .hub-reel-player .media-frame-wrap {
  flex: 1;
  display: flex;
}
[data-visitor-page="/home"] .hub-reel-player iframe {
  display: block;
  width: 100%;
  height: auto;
  min-height: 620px;
  flex: 1;
  align-self: stretch;
  aspect-ratio: auto;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--mint);
}
[data-visitor-page="/home"] .hub-featured-reel .small {
  padding: 12px 20px;
}
[data-visitor-page="/home"] .hub-featured-reel .small a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
[data-visitor-page="/home"] .hub-articles .section-heading h2 {
  font-size: var(--type-section, 34px);
}
[data-visitor-page="/home"] .hub-articles {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
[data-visitor-page="/home"] .hub-articles .article-grid {
  flex: 1;
}
[data-visitor-page="/home"] .collection-empty {
  border-radius: 8px;
  padding: 22px 24px;
}
[data-visitor-page="/home"] .collection-empty h3 {
  font: 400 var(--type-card, 25px) / 1.25 var(--serif);
  letter-spacing: -0.025em;
  margin: 8px 0 12px;
}
[data-visitor-page="/home"] .collection-empty p {
  font-size: 15px;
  margin: 0;
}
[data-visitor-page="/home"] .feature {
  background: var(--resource-surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(26px, 4vw, 44px);
  gap: 40px;
}
[data-visitor-page="/home"] .feature h2 {
  color: inherit;
  font-size: var(--type-section, 34px);
}
[data-visitor-page="/home"] .feature .eyebrow,
[data-visitor-page="/home"] .feature .steps span {
  color: var(--resource-accent);
}
[data-visitor-page="/home"] .feature p {
  color: var(--muted);
}
[data-visitor-page="/home"] .feature .steps li {
  border-color: var(--line);
}
[data-visitor-page="/home"] .hub-practice-review {
  align-self: center;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
[data-visitor-page="/home"] .hub-practice-review h3 {
  font: 400 var(--type-card, 25px) / 1.25 var(--serif);
  letter-spacing: -0.025em;
  margin: 12px 0;
}
[data-visitor-page="/home"] .hub-practice-review p {
  font-size: 15px;
  margin: 0;
}
@media (max-width: 900px) {
  [data-visitor-page="/home"] .hub-layout {
    grid-template-areas: "intro" "paths" "reel" "articles";
    grid-template-rows: auto;
    gap: 28px;
    padding-top: 28px;
  }
  [data-visitor-page="/home"] .hub-intro h1 {
    max-width: none;
  }
  [data-visitor-page="/home"] .hub-featured-reel {
    max-width: 340px;
  }
}
@media (max-width: 600px) {
  [data-visitor-page="/home"] .hub-intro h1 {
    max-width: none;
    font-size: var(--type-display);
  }
  [data-visitor-page="/home"] .hub-paths a {
    padding-inline: 10px;
  }
}

/* Keep branding separate from current-page link decoration. */
.header > .brand,
.header > .brand[aria-current],
.header > .brand:hover {
  text-decoration: none;
}
/* A dropdown is a single aligned list, irrespective of generic nav-link display. */
.resource-menu > summary {
  list-style: none;
  text-decoration: none;
  gap: 12px;
}
.resource-menu > summary::-webkit-details-marker {
  display: none;
}
.resource-menu > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
}
.resource-menu[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.resource-menu:not([open]) > .resource-menu-links {
  display: none;
}
/* Closing must remove the panel itself, including its hit targets and paint
   layer, independently of native details rendering. */
.resource-menu > .resource-menu-links[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}
.resource-menu[open] > .resource-menu-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}
/* Mouse exit must remove the visible panel even before the deferred controller
   starts or if a browser misses a pointer transition. Keep keyboard and touch
   disclosure behaviour independent of hover. */
@media (hover: hover) and (pointer: fine) {
  [data-navigation-disclosure][open][data-navigation-input="pointer"]:not(:hover)
    > :is(.resource-menu-links, .mobile-menu-links),
  [data-navigation-disclosure][open]:not([data-navigation-input]):not(:hover):not(:has(:focus-visible))
    > :is(.resource-menu-links, .mobile-menu-links) {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
.header .resource-menu-links > a {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
}
.header .resource-menu-links > a[aria-current] {
  background: transparent;
  color: var(--resource-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* Only pointer hover fills a row. Current page and keyboard focus stay distinct. */
.header .resource-menu-links > a:focus-visible {
  outline: 2px solid var(--resource-accent);
  outline-offset: -3px;
}
.header .resource-menu-links > a:hover {
  background: var(--resource-surface);
  color: var(--resource-accent);
}

/* Consistent responsive reflow; no fixed desktop sizes leak onto phones. */
@media (max-width: 1000px) {
  .visitor-site .entry-hero-inner {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  }
  .visitor-site .entry-copy h1 {
    font-size: clamp(2.5rem, 4.8vw, 3.5rem);
  }
  .visitor-site .entry-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .visitor-site .footer {
    flex-direction: column;
    gap: 24px;
  }
  .visitor-site .footer-links {
    width: 100%;
    max-width: none;
  }
  .visitor-site .article-grid,
  .visitor-site .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .visitor-site .entry-hero-inner {
    grid-template-columns: 1fr;
    padding-block: 40px;
    gap: 40px;
  }
  .visitor-site .entry-copy h1 {
    font-size: var(--type-display);
  }
  .visitor-site .entry-copy p {
    font-size: 17px;
  }
  .visitor-site .entry-actions {
    align-items: flex-start;
  }
  .visitor-site .entry-next {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .visitor-site .entry-next-links a {
    grid-template-columns: 78px 1fr auto;
    min-height: 100px;
    gap: 12px;
  }
  .visitor-site .entry-next-links a span:first-child {
    padding-top: 26px;
  }
  .visitor-site .entry-next-links a span:last-child {
    padding-right: 0;
  }
  .visitor-site .entry-meet {
    padding-bottom: 40px;
    gap: 28px;
  }
  .visitor-site .entry-audience {
    justify-content: flex-start;
  }
  .visitor-site .entry-audience span:first-child {
    flex-basis: 100%;
  }
  .visitor-site .header {
    min-height: 84px;
  }
  .visitor-site .article-grid,
  .visitor-site .knowledge-grid {
    grid-template-columns: 1fr;
  }
  .visitor-site .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .visitor-site .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 20px;
  }
  .visitor-site .footer {
    padding-bottom: 32px;
  }
  .visitor-site .hub-paths a {
    padding: 18px 10px;
  }
  .visitor-site .hub-paths a strong {
    font-size: 22px;
  }
  .visitor-site .hub-articles .article-card {
    padding: 20px;
  }
}

/* Calm visitor motion; the headline tells the learning story in two beats. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .entry-copy #entry-title > .entry-title-line:first-child {
    animation: understand-first 680ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
  }
  .entry-copy #entry-title > .entry-title-line + .entry-title-line {
    animation: picture-follows 920ms cubic-bezier(0.22, 1, 0.36, 1) 800ms both;
  }
  [data-motion-pending] {
    /* Content stays readable if an observer or animation is delayed. */
    opacity: 1;
    transform: none;
  }
  .button,
  .assistant-launcher,
  .finder-entry,
  .nav-contact,
  .media-load,
  .media-unload {
    transition:
      background-color 180ms ease,
      color 180ms ease,
      border-color 180ms ease,
      box-shadow 220ms ease,
      transform 220ms ease;
  }
  .entry-next-links > a,
  .hub-paths > a,
  .resource-menu-links > a,
  .mobile-menu-links > a {
    transition:
      background-color 180ms ease,
      color 180ms ease;
  }
  .article-card,
  .knowledge-card {
    transition:
      box-shadow 240ms ease,
      border-color 240ms ease,
      transform 240ms ease;
  }
  .entry-next-links > a > span:last-child {
    transition: transform 220ms ease;
  }
  .mobile-navigation[open] > .mobile-menu-links {
    animation: navigation-enter 150ms ease-out both;
  }
  @media (hover: hover) and (pointer: fine) {
    .button:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 14px #112c3b18;
    }
    .article-card:hover,
    .knowledge-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 26px #112c3b0d;
    }
    .entry-next-links > a:hover > span:last-child {
      transform: translateX(4px);
    }
  }
  .button:active {
    transform: translateY(0);
  }
}
@keyframes understand-first {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes picture-follows {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes navigation-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-motion-pending] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Compact article workflow: no nested tinted panel or fixed-height spacer. */
.topic-visual.topic-workflow {
  container-type: inline-size;
  min-height: 0;
  padding: 16px 0;
  margin: 0 0 24px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.topic-workflow .visual-caption {
  margin: 0 0 12px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
.topic-workflow .workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.topic-workflow .workflow-steps li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.topic-workflow .workflow-steps strong {
  flex: 1;
  max-width: none;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  overflow-wrap: normal;
}
.topic-workflow .workflow-arrow {
  flex: none;
  color: #60786c;
  font-size: 17px;
  line-height: 1;
}
@container (max-width: 420px) {
  .topic-workflow .workflow-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .topic-workflow .workflow-steps li {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }
  .topic-workflow .workflow-steps li:last-child {
    padding-bottom: 0;
    border: 0;
  }
  .topic-workflow .workflow-arrow {
    transform: rotate(90deg);
  }
}

/* Keep the full navigation row visible after the review notices scroll away. */
.wrap:has(> .header) {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
}
.wrap:has(> .header)::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
html {
  scroll-padding-top: 116px;
}
.header .resource-menu-links,
.header .mobile-menu-links {
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
}
@media (max-width: 900px) {
  html { scroll-padding-top: 100px; }
}

/* Let the Hub post end at its source link instead of stretching a blank panel. */
.hub-featured-reel:has(.instagram-embed) {
  align-self: start;
}
[data-visitor-page="/home"] .hub-featured-reel:has(.instagram-embed) {
  align-self: start;
}
[data-visitor-page="/home"] .hub-reel-player .instagram-embed .media-frame-wrap {
  flex: none;
}

/* Website helper: one persistent entry point, anchored above the launcher. */
.visitor-site .assistant-widget { position: fixed; inset: auto max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) auto; z-index: 90; }
.visitor-site .assistant-launcher { display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 12px 20px; border: 1px solid #30584d; border-radius: 999px; background: #183f35; color: #fff; box-shadow: 0 6px 24px #102c3c26; cursor: pointer; }
.visitor-site .assistant-launcher:hover { background: #245447; }
.visitor-site .assistant-launcher:focus-visible { outline: 3px solid #91bfae; outline-offset: 4px; }
dialog.assistant-chat { left: auto; right: max(24px, env(safe-area-inset-right)); top: auto; bottom: max(88px, calc(env(safe-area-inset-bottom) + 76px)); transform: none; width: min(420px, calc(100vw - 32px)); height: min(580px, calc(var(--finder-height, 100dvh) - 112px)); max-height: calc(var(--finder-height, 100dvh) - 112px); display: flex; flex-direction: column; border: 1px solid #c9d9d2; box-shadow: 0 16px 60px #102c3c33; }
dialog.assistant-chat::backdrop { background: #102c3c26; }
dialog.assistant-chat .assistant-chat-head { flex: none; }
dialog.assistant-chat .assistant-chat-head .eyebrow { font-size: 10px; letter-spacing: .08em; }
dialog.assistant-chat .assistant-chat-body { flex: 1; overflow-y: auto; }
dialog.assistant-chat .assistant-chat-bottom { flex: none; }
dialog.assistant-chat .assistant-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
dialog.assistant-chat .assistant-prompts button { min-height: 40px; padding: 9px 12px; border: 1px solid #bdcfc5; border-radius: 18px; background: #f4f8f5; color: #214d3e; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
dialog.assistant-chat .assistant-prompts button:hover { background: #e7f0e9; }
dialog.assistant-chat .assistant-question { margin: 0 0 12px 24px; padding: 10px 14px; border-radius: 14px 14px 3px 14px; background: #e7f0e9; color: #183f35; }
dialog.assistant-chat .assistant-turn { margin: 24px 0; }
dialog.assistant-chat .assistant-links a { padding: 12px; border-radius: 8px; }
dialog.assistant-chat .assistant-note { font-size: 11px; line-height: 1.5; }
@media (max-width: 600px) {
  .visitor-site .assistant-widget { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  dialog.assistant-chat { right: 8px; left: auto; top: calc(var(--finder-top, 0px) + 8px); bottom: auto; width: calc(100vw - 16px); height: min(620px, calc(var(--finder-height, 100dvh) - 16px)); max-height: calc(var(--finder-height, 100dvh) - 16px); }
}

/* The panel touches its trigger: no hover gap or clipped hit bridge. */

dialog.assistant-chat .assistant-links h3 { margin: 0; font: 700 11px/1.4 var(--font-body, Arial, sans-serif); letter-spacing: .08em; text-transform: uppercase; }

/* Keep the fixed helper clear of footer actions at every viewport width. */
.visitor-site .footer { padding-bottom: max(116px, calc(env(safe-area-inset-bottom) + 100px)); }
