/* Shared additions for the home, about and contact pages. */
:root {
  --amber-ink: #83530b;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  border-bottom: 1px solid var(--amber);
  font-size: 15px;
  font-weight: 700;
}

.text-link:hover {
  color: var(--amber-ink);
}

.text-link span {
  font-size: 22px;
  font-weight: 400;
}

.support-topics {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.support-topics__heading {
  margin-bottom: 26px;
}

.support-topics__heading h3 {
  margin-bottom: 10px;
  font: 400 clamp(27px, 3vw, 35px)/1.2 var(--serif);
}

.support-topics__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.topic-tile {
  position: relative;
  min-height: 218px;
  padding: 20px 16px 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.topic-tile:last-child {
  grid-column: 1 / -1;
}

.topic-tile:hover,
.topic-tile:focus-visible {
  background: var(--white);
  transform: translateY(-3px);
}

.support-note__number,
.office-number {
  color: var(--amber-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.topic-tile__icon {
  display: block;
  width: 64px;
  height: 64px;
  padding: 10px;
  color: var(--navy);
  background: #eee4d4;
  border-radius: 22px 22px 22px 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-tile:nth-child(2) .topic-tile__icon {
  background: #e2e9ed;
}
.topic-tile:nth-child(3) .topic-tile__icon {
  background: #f0e2db;
}
.topic-tile:nth-child(4) .topic-tile__icon {
  background: #e9e3ef;
}
.topic-tile:nth-child(5) .topic-tile__icon {
  background: #e1e8dd;
}

.topic-tile h4 {
  margin: 18px 0 8px;
  font: 400 27px/1.1 var(--serif);
}

.topic-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.topic-tile__arrow {
  position: absolute;
  right: 16px;
  bottom: 10px;
  color: var(--muted);
  font-size: 21px;
}

.support-invitation {
  max-width: 650px;
  margin: 32px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

.subpage .site-header {
  background: rgba(251, 248, 244, 0.96);
}

.subpage-main {
  padding-top: 100px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.subpage .eyebrow {
  color: var(--amber-ink);
  line-height: 1.6;
}

.page-title {
  width: 100%;
  margin: 0 0 24px;
  font: 400 clamp(46px, 7vw, 86px)/1.08 var(--serif);
  letter-spacing: -0.045em;
}

.page-title em {
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 9px;
}

.about-hero {
  display: grid;
  gap: 40px;
  padding-block: 36px 60px;
}

.about-hero__copy > p:not(.eyebrow):not(.about-greeting) {
  max-width: 660px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.about-hero__copy strong,
.editorial-copy strong {
  color: var(--navy);
  font-weight: 650;
}

.about-greeting {
  margin-bottom: 24px;
  font: italic 400 27px/1.35 var(--serif);
}

.about-portrait {
  position: relative;
  width: min(100%, 490px);
  margin: 0 auto;
  padding-bottom: 34px;
}

.about-portrait picture {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(8, 34, 76, 0.08);
  border-radius: 120px 120px 20px 20px;
  background: var(--paper-deep);
}

.about-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 55% center;
}

.about-portrait figcaption {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(8, 34, 76, 0.06);
  text-align: center;
}

.about-portrait figcaption strong {
  display: block;
  font: 400 clamp(20px, 2vw, 27px)/1.2 var(--serif);
}

.about-portrait figcaption span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.editorial-grid {
  display: grid;
  gap: 28px;
}

.editorial-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.editorial-copy > p {
  margin-bottom: 24px;
}

.editorial-copy > p:last-child {
  margin-bottom: 0;
}

.editorial-copy .lead {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.55;
}

.audience-section {
  border-top: 1px solid var(--line);
}

.support-notes {
  display: grid;
  margin-top: 44px;
}

.support-note {
  display: flex;
  gap: 18px;
  padding-block: 30px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 125px;
}

.support-note__number {
  flex: 0 0 24px;
  padding-top: 8px;
}

.support-note h3 {
  margin-bottom: 12px;
  font: 400 29px/1.2 var(--serif);
}

.support-note p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.working-section {
  background: var(--paper-deep);
}

.working-motto {
  margin-top: 35px;
  padding-left: 22px;
  border-left: 2px solid var(--amber);
  font: 400 clamp(24px, 3vw, 35px)/1.5 var(--serif);
}

.working-motto span,
.working-motto em {
  display: block;
}

.working-motto em {
  color: var(--amber-ink);
}

.editorial-highlight {
  padding: 24px;
  border-left: 2px solid var(--amber);
  background: var(--paper);
  border-radius: 0 12px 12px 0;
}

.office-block {
  display: grid;
  gap: 28px;
  padding-block: 42px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 125px;
}

.office-copy h3,
.contact-location h3 {
  margin-bottom: 18px;
  font: 400 34px/1.2 var(--serif);
}

.office-copy > p:not(.office-number):not(.office-address) {
  max-width: 410px;
  color: var(--muted);
}

.office-address {
  font-weight: 650;
}

.office-address span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.subpage .location__maps {
  gap: 12px;
}

.subpage .location__maps a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: var(--paper);
}

.subpage .location__maps a:hover {
  background: var(--paper-deep);
}

.subpage .location__maps a::after {
  color: var(--amber-ink);
}

.office-gallery {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.office-gallery--three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.office-photo {
  min-width: 0;
  margin: 0;
}

.office-photo--featured {
  grid-column: 1 / -1;
}

.office-photo a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-deep);
  cursor: zoom-in;
}

.office-photo--featured a {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
}

.office-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}

.office-photo a:hover img,
.office-photo a:focus-visible img {
  transform: scale(1.025);
}

.office-photo__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--navy-deep);
  color: white;
  font-size: 12px;
}

.office-gallery__hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.office-gallery--three .office-photo:not(.office-photo--featured) a {
  aspect-ratio: 2 / 1;
}

body.photo-viewer-open {
  overflow: hidden;
}

.photo-viewer {
  width: min(1200px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 56px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: white;
  background: #101e32;
  overflow: auto;
  overscroll-behavior: contain;
}

.photo-viewer::backdrop {
  background: rgba(6, 15, 29, 0.88);
}

.photo-viewer__stage {
  height: min(68dvh, 760px);
  touch-action: pan-y;
}

.photo-viewer__stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-viewer button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: white;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.photo-viewer button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.photo-viewer button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.photo-viewer__close {
  position: absolute;
  top: 6px;
  right: 10px;
}

.photo-viewer__toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.photo-viewer__caption {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .office-photo--featured a {
    aspect-ratio: 16 / 10;
  }

  .photo-viewer {
    padding: 60px 28px 24px;
  }

  .photo-viewer__caption {
    font-size: 15px;
  }
}

.online-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.online-note > span {
  color: var(--amber-ink);
  font-size: 24px;
}

.online-note a,
.faq-list a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--amber-ink);
  text-underline-offset: 4px;
}

.faq-section {
  padding-top: 0;
}

.faq-list details {
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 20px;
  padding: 12px 2px;
  list-style: none;
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 24px;
  font-size: 27px;
  font-weight: 400;
  text-align: center;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  padding-right: 30px;
  color: var(--muted);
  line-height: 1.8;
}

.page-invitation {
  display: grid;
  gap: 20px;
  padding: 35px 24px;
  margin-block: 0 70px;
  border-radius: 22px;
  color: var(--white);
  background:
    radial-gradient(ellipse at top right, #334442, transparent 70%),
    var(--navy-deep);
}

.subpage .page-invitation .eyebrow,
.subpage .booking-panel .eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  text-align: left;
}

.page-invitation h2,
.booking-panel h2 {
  margin-bottom: 16px;
  font: 400 clamp(32px, 4vw, 48px)/1.16 var(--serif);
}

.page-invitation p:not(.eyebrow) {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.invitation-contact {
  padding-block: 6px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--amber);
}

.contact-page {
  padding-block: 36px 60px;
}

.contact-page__heading {
  max-width: 900px;
  margin-bottom: 42px;
}

.page-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.desktop-break {
  display: none;
}

.contact-page__grid {
  display: grid;
  gap: 35px;
  align-items: start;
}

.contact-methods {
  display: grid;
  font-style: normal;
}

.contact-method {
  position: relative;
  display: block;
  padding: 24px 30px 24px 0;
  border-top: 1px solid var(--line);
}

.contact-method:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-method__label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-method strong {
  font: 400 clamp(21px, 3vw, 34px)/1.35 var(--serif);
  overflow-wrap: anywhere;
}

.contact-method__arrow {
  position: absolute;
  top: 52px;
  right: 0;
  font-size: 25px;
  color: var(--amber-ink);
}

.contact-method:hover strong {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.contact-page .booking-panel {
  width: 100%;
  padding: 28px 22px;
  border-radius: 20px;
  color: var(--white);
  background: var(--navy-deep);
}

.booking-panel h2 {
  font-size: 36px;
}

.booking-panel > .booking-panel__intro {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  font-size: 16px;
}

.booking-panel .button {
  padding-inline: 15px;
  font-size: 16px;
}

.contact-locations {
  background: var(--paper-deep);
}

.contact-locations__grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.contact-location {
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.contact-location h3 {
  margin-bottom: 6px;
}

.place-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.contact-location address {
  margin-block: 25px 15px;
  font-style: normal;
  font-size: 17px;
}

.mobile-link--active {
  color: var(--navy);
  background: var(--paper-deep);
}

.parents-hero {
  padding-block: 45px 70px;
}

.parents-hero .page-title {
  max-width: 950px;
}

.parents-lead {
  max-width: 770px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
}

.parents-documents {
  background: var(--paper-deep);
}

.parents-section-heading {
  margin-bottom: 34px;
}

.parents-section-heading h2 {
  font: 400 clamp(35px, 4vw, 52px)/1.16 var(--serif);
}

.parents-section-heading > p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.parents-document-list {
  display: grid;
  gap: 16px;
}

.parents-document-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.parents-document-number {
  padding-top: 5px;
  color: var(--amber-ink);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.parents-document-card h3 {
  margin: 0 0 10px;
  font: 400 clamp(24px, 3vw, 32px)/1.22 var(--serif);
}

.parents-document-card p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.parents-document-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 22px;
}

.parents-document-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.parents-document-read {
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.parents-document-read:hover {
  background: var(--navy-soft);
  transform: translateY(-2px);
}

.parents-document-download {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 5px;
}

.parents-document-download:hover {
  color: var(--navy-soft);
}

.parents-document-version + .parents-document-version {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.parents-document-version h4 {
  margin: 22px 0 -8px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.parents-document-preview {
  margin-top: 18px;
}

.parents-document-preview summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 9px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.parents-document-preview summary:hover {
  color: var(--navy);
}

.parents-document-preview iframe {
  display: block;
  width: 100%;
  height: min(70vh, 660px);
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.parents-note {
  display: flex;
  gap: 18px;
  margin-top: 35px;
  padding: 25px 28px;
  border-left: 3px solid var(--amber);
  border-radius: 0 14px 14px 0;
  color: var(--navy);
  background: var(--paper);
}

.parents-note > span {
  color: var(--amber-ink);
  font-size: 22px;
}

.parents-note p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

@media (max-width: 600px) {
  .parents-hero {
    padding-block: 34px 58px;
  }

  .parents-document-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 23px;
  }

  .parents-document-actions {
    gap: 6px 18px;
  }

  .parents-document-preview iframe {
    height: min(70vh, 540px);
  }

  .parents-note {
    padding: 22px;
  }
}

@media (min-width: 700px) {
  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-tile:last-child {
    grid-column: auto;
  }

  .support-notes,
  .contact-locations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }

  .support-note:last-child {
    grid-column: 1 / -1;
  }

  .contact-location:last-child {
    grid-column: 1 / -1;
  }

  .office-photo {
    min-height: 240px;
  }

  .office-photo figcaption strong {
    font-size: 15px;
  }

  .office-photo figcaption span {
    font-size: 12px;
  }

  .desktop-break {
    display: inline;
  }

  .page-invitation {
    padding: 50px;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
    column-gap: 35px;
  }

  .page-invitation > div {
    grid-row: 1 / 3;
  }

  .invitation-contact {
    grid-column: 2;
  }
}

@media (min-width: 1000px) {
  .topic-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .about-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(40px, 5vw, 90px);
    padding-block: 45px 90px;
  }

  .about-hero__copy > p:not(.eyebrow):not(.about-greeting) {
    font-size: 17px;
  }

  .editorial-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(50px, 7vw, 130px);
  }

  .office-block {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 44px;
    align-items: center;
    padding-block: 50px;
  }

  .contact-page {
    padding-block: 45px 90px;
  }

  .contact-page__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 80px;
  }

  .contact-page .booking-panel {
    grid-column: auto;
    padding: 40px;
  }

  .contact-location {
    padding: 40px;
  }
}

@media (min-width: 1200px) {
  .contact-locations__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
  }

  .contact-location {
    padding: 28px;
  }

  .contact-location h3 {
    min-height: 2.4em;
  }

  .contact-location:last-child {
    grid-column: auto;
  }
}

@media (min-width: 1051px) {
  .subpage-main {
    padding-top: 130px;
  }
}

@media (max-width: 1050px) {
  .mobile-panel {
    max-height: calc(100dvh - 125px);
    overflow-y: auto;
  }

  html:not(.js) .site-header {
    position: static;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-block: 20px;
    gap: 16px;
  }

  html:not(.js) .desktop-nav {
    display: flex;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 10px;
  }

  html:not(.js) .menu-toggle {
    display: none;
  }

  html:not(.js) .subpage-main {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topic-tile:hover,
  .topic-tile:focus-visible {
    transform: none;
  }
}
