/* ==========================================================================
   Inner pages - components shared by subtopic1-3 and the documentation pages.
   Builds on the tokens and rules in styles.css (same shape rule, same palette).

   1. Page hero  2. Section navigation  3. Services  4. Doctors
   5. Gallery & video  6. Visit us  7. Documentation layout
   8. Documentation components (swatches, type, wireframes, site map,
      journey, tables, placeholders)
   ========================================================================== */

/* Current section marker for documentation pages in the main nav */
@media (min-width: 62em) {
  [data-current-section]::after {
    transform: scaleX(1) !important;
  }
}

.dropdown a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

/* 1. Page hero ------------------------------------------------------------ */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(3rem, 2rem + 4vw, 6rem);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30%;
  background: var(--ice);
}

.page-hero--plain::before {
  display: none;
}

.page-hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 60em) {
  .page-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(3rem, 5vw, 6rem);
  }
}

.page-hero__content {
  display: grid;
  gap: var(--space-m);
  justify-items: start;
}

.page-hero__title {
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--midnight);
}

.page-hero__title span {
  display: block;
  color: var(--navy);
}

.page-hero__lead {
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--slate);
}

.page-hero__note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 34rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--gold);
  background: var(--white);
  color: var(--midnight);
  font-weight: 500;
}

.page-hero__note .icon {
  margin-top: 0.15em;
  color: var(--gold-deep);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.page-hero__visual {
  --bracket-offset: 1rem;
  width: 100%;
  max-width: 32rem;
  justify-self: end;
}

.page-hero__visual .media {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-l);
}

@media (max-width: 59.99em) {
  .page-hero::before {
    width: 100%;
    top: auto;
    height: 35%;
  }

  .page-hero__visual {
    order: -1;
    justify-self: stretch;
    max-width: none;
    --bracket-offset: 0.6rem;
  }

  .page-hero__visual .media {
    aspect-ratio: 16 / 10;
  }
}

/* 2. Section navigation (sticky, scroll-spy) ----------------------------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  border-block: 1px solid var(--line);
  background: rgb(251 252 254 / 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.subnav__list {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.subnav__list::-webkit-scrollbar {
  display: none;
}

.subnav a {
  position: relative;
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--slate);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.subnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 360ms var(--ease);
}

.subnav a:hover,
.subnav a.is-active {
  color: var(--navy);
}

.subnav a.is-active::after {
  transform: scaleX(1);
}

/* 3. Services ------------------------------------------------------------- */
.treatment {
  display: grid;
  gap: var(--space-l);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 3.5rem);
}

.treatment:first-child {
  border-top: 0;
}

@media (min-width: 60em) {
  .treatment {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 6vw, 7rem);
    align-items: start;
  }

  .treatment__aside {
    position: sticky;
    top: calc(var(--header-h) + 5rem);
  }
}

.treatment__aside {
  display: grid;
  gap: var(--space-s);
  justify-items: start;
}

.treatment__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
}

.treatment__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.treatment__title {
  font-size: var(--step-3);
  color: var(--midnight);
}

.treatment__intro {
  color: var(--slate);
}

.treatment__media {
  width: 100%;
  margin: var(--space-2xs) 0 0;
  --bracket-offset: 0.6rem;
}

.treatment__media .media {
  aspect-ratio: 3 / 2;
}

.treatment__media figcaption {
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--slate);
}

.procedures {
  display: grid;
  margin: 0;
}

.procedure {
  display: grid;
  gap: 0.4rem;
  padding: var(--space-m) 0;
  border-bottom: 1px solid var(--line);
}

.procedure:first-child {
  padding-top: 0;
}

.procedure dt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--midnight);
}

.procedure dt::before {
  content: "";
  flex: none;
  width: 0.9rem;
  height: 2px;
  background: var(--gold);
  transition: width var(--dur) var(--ease);
}

.procedure:hover dt::before {
  width: 1.6rem;
}

.procedure dd {
  margin: 0;
  max-width: 38rem;
  padding-left: 1.65rem;
  color: var(--slate);
}

.treatment__book {
  margin-top: var(--space-xs);
}

/* Closing band used on inner pages */
.band {
  background: var(--navy);
  color: var(--white);
}

.band__inner {
  display: grid;
  gap: var(--space-l);
  align-items: center;
  padding-block: var(--space-xl);
}

@media (min-width: 60em) {
  .band__inner {
    grid-template-columns: 1fr auto;
  }
}

.band__title {
  max-width: 20ch;
  font-size: var(--step-3);
  color: var(--white);
}

.band__title span {
  color: var(--gold);
}

.band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* 4. Doctors -------------------------------------------------------------- */
.profile {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 60em) {
  .profile {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(3rem, 7vw, 8rem);
  }
}

.profile__photo {
  --bracket-offset: 1rem;
  max-width: 30rem;
}

.profile__photo .media {
  aspect-ratio: 4 / 5;
}

.profile__photo .media img {
  object-position: top center;
}

.profile__body {
  display: grid;
  gap: var(--space-m);
  justify-items: start;
}

.profile__name {
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--midnight);
}

.profile__ar {
  margin-top: calc(-1 * var(--space-2xs));
  font-family: var(--font-ar);
  font-size: var(--step-1);
  color: var(--gold-deep);
}

.profile__facts {
  display: grid;
  width: 100%;
  max-width: 34rem;
  margin: 0;
  border-top: 2px solid var(--midnight);
}

.profile__facts div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.4fr) 1fr;
  gap: var(--space-s);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.profile__facts dt {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--slate);
}

.profile__facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--midnight);
}

.team__head {
  display: grid;
  gap: var(--space-s);
  max-width: 40rem;
  margin-bottom: var(--space-xl);
}

.team-grid {
  display: grid;
  gap: var(--space-xl) var(--space-l);
  list-style: none;
}

@media (min-width: 40em) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62em) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid > li:nth-child(2) {
    margin-top: var(--space-xl);
  }
}

.doctor__book {
  justify-self: start;
  margin-top: var(--space-2xs);
}

/* 5. Gallery & video ------------------------------------------------------ */
.gallery__head {
  display: grid;
  gap: var(--space-s);
  max-width: 40rem;
  margin-bottom: var(--space-l);
}

.gallery__head .title {
  color: var(--white);
}

.gallery__head p {
  color: var(--mist);
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  margin-bottom: var(--space-l);
  border-bottom: 1px solid rgb(255 255 255 / 0.15);
}

.case-tab {
  position: relative;
  padding: 0.9rem 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--mist);
  transition: color var(--dur) var(--ease);
}

.case-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 360ms var(--ease);
}

.case-tab:hover,
.case-tab[aria-selected="true"] {
  color: var(--white);
}

.case-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.case-panel {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

@media (min-width: 60em) {
  .case-panel {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  }
}

.case-panel__info {
  display: grid;
  gap: var(--space-s);
  justify-items: start;
  color: var(--mist);
}

.case-panel__info h3 {
  font-size: var(--step-2);
  color: var(--white);
}

.ba-controls {
  display: flex;
  gap: 0.5rem;
}

.ba-controls .btn {
  min-height: 2.6rem;
}

.composites {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgb(255 255 255 / 0.15);
  list-style: none;
}

@media (min-width: 48em) {
  .composites {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .composites > li:nth-child(2) {
    margin-top: var(--space-l);
  }
}

.composites .media {
  aspect-ratio: 1200 / 724;
  background: #13284f;
}

.composites p {
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--mist);
}

.composites__title {
  grid-column: 1 / -1;
  font-size: var(--step-1);
  color: var(--white);
}

.video {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 60em) {
  .video {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
}

.video__text {
  display: grid;
  gap: var(--space-s);
  justify-items: start;
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-media);
  background: var(--midnight);
  --bracket-offset: 0.9rem;
}

.video__frame iframe,
.video__frame > button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
}

.video__play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(10 30 66 / 0.35);
  transition: background-color var(--dur) var(--ease);
}

.video__play:hover::after {
  background: rgb(10 30 66 / 0.15);
}

.video__play-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--pill);
  background: var(--gold);
  color: var(--midnight);
  font-family: var(--font-display);
  font-weight: 500;
  transition: transform var(--dur) var(--ease);
}

.video__play:hover .video__play-btn {
  transform: scale(1.05);
}

.video__note {
  font-size: var(--step--1);
  color: var(--slate);
}

/* 6. Visit us ------------------------------------------------------------- */
.contact-actions {
  display: grid;
  border-top: 2px solid var(--midnight);
  list-style: none;
}

@media (min-width: 48em) {
  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-xl);
  }
}

.contact-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.15rem 1.1rem;
  align-items: center;
  padding: var(--space-m) 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: padding var(--dur) var(--ease), color var(--dur) var(--ease);
}

.contact-action:hover {
  padding-left: 0.9rem;
  color: var(--navy);
}

.contact-action__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.contact-action:hover .contact-action__icon {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--gold);
}

.contact-action__label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--slate);
}

.contact-action__value {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.95rem + 1.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.contact-action > .icon {
  grid-column: 3;
  grid-row: 1 / span 2;
  opacity: 0.4;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.contact-action:hover > .icon {
  opacity: 1;
  transform: translateX(4px);
}

.visit-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 60em) {
  .visit-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
}

.hours-table th,
.hours-table td {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 500;
}

.hours-table td {
  text-align: right;
  color: var(--slate);
}

.hours-table tr.is-today th,
.hours-table tr.is-today td {
  color: var(--navy);
}

.hours-table tr.is-today th::after {
  content: "Today";
  margin-left: 0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--pill);
  background: var(--gold);
  color: var(--midnight);
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
}

.map-slot {
  position: relative;
  display: grid;
  align-content: end;
  gap: var(--space-s);
  aspect-ratio: 4 / 3;
  padding: var(--space-l);
  overflow: hidden;
  border-radius: var(--r-media);
  background: var(--navy);
  color: var(--white);
  isolation: isolate;
}

/* Quiet map-like grid texture, drawn with lines only */
.map-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem;
}

.map-slot__pin {
  position: absolute;
  top: 38%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--midnight);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0.6rem rgb(250 192 7 / 0.18);
}

.map-slot__pin .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.map-slot p {
  color: var(--mist);
}

.map-slot strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--white);
}

.facility-row {
  display: grid;
  gap: var(--space-l);
  list-style: none;
}

@media (min-width: 48em) {
  .facility-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.facility {
  display: grid;
  gap: var(--space-s);
  align-content: start;
}

.facility .media {
  aspect-ratio: 4 / 3;
}

.facility__none {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-media);
  background: var(--ice);
  color: var(--navy);
}

.facility__none .icon {
  width: 3rem;
  height: 3rem;
}

.facility h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: var(--space-s);
  border-top: 2px solid var(--line);
  font-size: var(--step-1);
  color: var(--midnight);
}

.facility h3 .icon {
  color: var(--gold-deep);
}

.tour {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.tour .media {
  height: 100%;
  aspect-ratio: 3 / 2;
}

@media (min-width: 60em) {
  .tour {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(9rem, 14vw, 13rem);
  }

  .tour .media {
    aspect-ratio: auto;
  }

  .tour > li:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .tour > li:nth-child(4) {
    grid-column: span 2;
  }
}

.tour img {
  transition: transform 900ms var(--ease);
}

.tour li:hover img {
  transform: scale(1.04);
}

.ways {
  display: grid;
  gap: var(--space-l);
  list-style: none;
  counter-reset: way;
}

@media (min-width: 48em) {
  .ways {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ways li {
  display: grid;
  gap: var(--space-xs);
  align-content: start;
  justify-items: start;
  padding-top: var(--space-m);
  border-top: 2px solid var(--gold);
}

.ways h3 {
  font-size: var(--step-2);
  color: var(--midnight);
}

.ways p {
  color: var(--slate);
}

.insurers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
  list-style: none;
}

.insurers li {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--midnight);
}

.insurers--small li {
  font-size: var(--step-1);
  color: var(--slate);
}

.split-head {
  display: grid;
  gap: var(--space-s);
  max-width: 42rem;
  margin-bottom: var(--space-l);
}

/* 7. Documentation layout ------------------------------------------------ */
.doc {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-xl) var(--section);
}

@media (min-width: 62em) {
  .doc {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: clamp(3rem, 5vw, 6rem);
  }
}

.toc {
  align-self: start;
}

@media (min-width: 62em) {
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.toc__title {
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.toc ol {
  display: grid;
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 2px solid transparent;
  font-size: var(--step--1);
  color: var(--slate);
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.toc a:hover,
.toc a.is-active {
  border-color: var(--gold);
  color: var(--navy);
}

@media (max-width: 61.99em) {
  .toc ol {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  }
}

.doc__body {
  display: grid;
  gap: var(--section);
  min-width: 0;
}

.doc-section {
  display: grid;
  gap: var(--space-m);
  min-width: 0;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.doc-section > h2 {
  font-size: var(--step-3);
  color: var(--midnight);
}

.doc-section > h2 small {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.doc-section h3 {
  margin-top: var(--space-s);
  font-size: var(--step-1);
  color: var(--midnight);
}

.doc-section p,
.doc-section li {
  max-width: 44rem;
  color: var(--slate);
}

.prose-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.2rem;
}

.prose-list li::marker {
  color: var(--gold-deep);
}

.fact-grid {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 2px solid var(--midnight);
}

.fact-grid div {
  display: grid;
  gap: 0.25rem var(--space-m);
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 40em) {
  .fact-grid div {
    grid-template-columns: minmax(9rem, 0.35fr) 1fr;
  }
}

.fact-grid dt {
  font-weight: 600;
  color: var(--midnight);
}

.fact-grid dd {
  margin: 0;
  color: var(--slate);
}

.two-col {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 48em) {
  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.decision {
  display: grid;
  gap: 0.4rem;
  padding-top: var(--space-s);
  border-top: 2px solid var(--gold);
}

.decision h3 {
  margin: 0;
}

/* 8. Documentation components -------------------------------------------- */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: var(--space-s);
  list-style: none;
}

.swatch {
  display: grid;
  gap: 0.2rem;
  font-size: var(--step--1);
}

.swatch__chip {
  display: grid;
  align-content: end;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  font-family: var(--font-display);
  font-weight: 600;
}

.swatch strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--midnight);
}

.swatch code,
.doc code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  color: var(--navy);
}

.type-specimen {
  display: grid;
  border-top: 2px solid var(--midnight);
}

.type-specimen > div {
  display: grid;
  gap: 0.5rem var(--space-l);
  padding: var(--space-m) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 48em) {
  .type-specimen > div {
    grid-template-columns: 12rem 1fr;
    align-items: baseline;
  }
}

.type-specimen dt {
  font-size: var(--step--1);
  color: var(--slate);
}

.type-specimen dd {
  margin: 0;
  color: var(--midnight);
  overflow-wrap: anywhere;
}

.data-table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--midnight);
}

.data-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.data-table th,
.data-table td {
  padding: 0.8rem 0.75rem 0.8rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--midnight);
}

.data-table td {
  color: var(--slate);
}

/* Clearly marked areas the team must fill in */
.placeholder-block {
  display: grid;
  gap: 0.5rem;
  padding: var(--space-m);
  border: 1.5px dashed var(--gold-deep);
  border-radius: var(--r-media);
  background: #fffbeb;
  color: #5c4300;
}

.placeholder-block strong {
  font-family: var(--font-display);
  font-weight: 600;
}

.placeholder-block p {
  color: #5c4300;
}

.placeholder-block [data-words] {
  min-height: 3rem;
}

.word-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: var(--space-s) 0;
  border-block: 1px solid var(--line);
  font-family: var(--font-display);
}

.word-count strong {
  font-size: var(--step-2);
  font-weight: 500;
  color: var(--midnight);
}

.word-count .pill {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: var(--pill);
  font-size: 0.8rem;
  font-weight: 600;
}

.word-count .pill--under,
.word-count .pill--over {
  background: #fff8e1;
  color: #5c4300;
}

.word-count .pill--ok {
  background: var(--success-bg);
  color: var(--success);
}

/* Low-fidelity wireframes: diagrams drawn with boxes on purpose */
.wireframes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-l) var(--space-m);
  list-style: none;
}

.wf-figure {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

.wf-figure figcaption {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--midnight);
}

.wf-figure figcaption span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--slate);
}

.wf {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1.5px solid var(--midnight);
  border-radius: 4px;
  background: var(--white);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.62rem;
  line-height: 1.2;
  color: var(--slate);
}

.wf > *,
.wf__row > * {
  display: grid;
  place-items: center;
  min-height: 1.4rem;
  padding: 4px;
  border: 1px dashed #9aa7bd;
  border-radius: 2px;
  text-align: center;
}

.wf__row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 5px;
  place-items: stretch !important;
  padding: 0 !important;
  border: 0 !important;
}

.wf .wf--nav { min-height: 1.2rem; background: #eef2f8; }
.wf .wf--img { min-height: 4rem; background: repeating-linear-gradient(45deg, #f1f4f9 0 6px, #e6ebf3 6px 12px); }
.wf .wf--tall { min-height: 6rem; }
.wf .wf--dark { background: #d7deea; }
.wf .wf--foot { background: #d7deea; min-height: 1.6rem; }

.sitemap {
  display: grid;
  gap: var(--space-m);
  justify-items: center;
  padding: var(--space-l) var(--space-s);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  background: var(--white);
}

.sitemap__node {
  display: inline-grid;
  gap: 0.15rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--navy);
  border-radius: var(--r-media);
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  text-align: center;
  color: var(--midnight);
}

.sitemap__node small {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--slate);
}

.sitemap__node--root {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.sitemap__node--root small {
  color: var(--mist);
}

.sitemap__node--dialog {
  border-style: dashed;
  border-color: var(--gold-deep);
}

.sitemap__level {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s);
  padding-top: var(--space-m);
  border-top: 2px solid var(--gold);
}

.sitemap__group {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}

.sitemap__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.journey {
  display: grid;
  gap: 0;
  list-style: none;
  counter-reset: journey;
}

@media (min-width: 62em) {
  .journey {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.journey li {
  position: relative;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: var(--space-s) var(--space-s) var(--space-m) 0;
  border-top: 2px solid var(--line);
  counter-increment: journey;
}

.journey li::before {
  content: counter(journey);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: -1.05rem 0 0.4rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.journey strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--midnight);
}

.journey p {
  font-size: var(--step--1);
}

.mockups {
  display: grid;
  gap: var(--space-l);
  align-items: end;
}

@media (min-width: 48em) {
  .mockups {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  }
}

.mockup {
  margin: 0;
}

.mockup .media {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
}

.mockup figcaption {
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--slate);
}

.component-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-m);
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  background: var(--white);
}

.component-demo--dark {
  background: var(--navy);
}

/* Small utilities */
.section--first {
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
}

.eyebrow--spaced {
  margin-bottom: var(--space-l);
}

.measure {
  max-width: 34rem;
}

.split-head--gap {
  margin-top: var(--section);
}

.partners__label {
  margin-bottom: var(--space-s);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Embedded Google Map (Visit us) */
.map-frame {
  display: grid;
  gap: var(--space-s);
  justify-items: start;
  min-width: 0;
}

.map-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--r-media);
  background: var(--ice);
}
