.tax-container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
}

.tax-h2 {
  font-family: sans-serif;
  font-size: 2.25rem;
  color: #03213D;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.tax-p {
  font-family: sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #03213D;
  margin-bottom: 1.25rem;
}

.tax-btn {
  display: inline-block;
  background-color: #FF8A3D;
  color: #03213D;
  padding: 12px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.tax-btn:hover {
  transform: translateY(-2px);
}

.tax-hero {
  background-color: #03213D;
  background-image: none;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  color: #FFFFFF;
}

.tax-hero__content {
  max-width: 800px;
  margin-bottom: 40px;
}

.tax-hero__title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.tax-hero__text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #FFFFFF;
}

.tax-hero__media {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.tax-hero__img {
  width: 100%;
  height: auto;
  display: block;
}

.tax-split {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.tax-split--light {
  background-color: #E2EEF4;
}

.tax-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tax-split__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tax-action {
  margin-top: 30px;
}

.tax-testimonial {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.tax-testimonial__img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.tax-testimonial__author {
  font-weight: bold;
  color: #03213D;
  margin-bottom: 10px;
}

.tax-testimonial blockquote {
  font-style: italic;
  color: #03213D;
  margin: 0;
  line-height: 1.5;
  border-left: 4px solid #54ABDF;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .tax-split__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tax-hero__title {
    font-size: 2.25rem;
  }

  .tax-split__content {
    order: 2;
  }

  .tax-split__media {
    order: 1;
  }
}

@media (max-width: 640px) {
  .tax-hero {
    padding: 60px 0;
  }

  .tax-h2 {
    font-size: 1.75rem;
  }
}

/* V37: one photograph with a directly attached, editable taxonomy. */
main #taxonomy-inherit { scroll-margin-top: 0; }
main #taxonomy-inherit .tax-split__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; }
main .tax-v37 { margin: 0; color: #03213D; font-family: 'Open Sans', sans-serif; scroll-margin-top: 16px; }
main .tax-v37__controls { display: flex; gap: 4px; width: fit-content; padding: 4px; margin-bottom: 24px; background: #E2EEF4; border-radius: 8px; visibility: hidden; }
main .tax-v37[data-render-ready="taxonomy"] .tax-v37__controls { visibility: visible; }
main .tax-v37__controls button { font: 600 14px/1.4 'Open Sans', sans-serif; color: #03213D; background: transparent; border: 1px solid transparent; border-radius: 5px; min-height: 44px; padding: 10px 18px; cursor: pointer; }
main .tax-v37__controls button[aria-pressed="true"] { background: #03213D; color: #fff; }
main .tax-v37__controls button:hover { border-color: #216D99; }
main .tax-v37__controls button:focus-visible { outline: 3px solid #03213D; outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
main .tax-v37__controls button span { margin-left: 12px; }
main .tax-v37__scene { position: relative; padding: 0 12px 38px 0; }
main .tax-v37__photo { position: relative; }
main .tax-v37__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; border: 5px solid #fff; border-radius: 14px; box-shadow: 0 12px 30px rgb(3 33 61 / 14%); }
main .tax-v37__photo-label { position: absolute; top: 20px; left: 20px; background: #03213D; color: #fff; border-radius: 4px; padding: 7px 10px; font-size: 12px; line-height: 1.4; }
main .tax-v37__sheet { position: absolute; bottom: 0; right: 0; width: 288px; padding: 20px; background: #fff; border: 1px solid #E2EEF4; border-top: 4px solid #54ABDF; border-radius: 10px; box-shadow: 0 14px 30px rgb(3 33 61 / 17%); }
main .tax-v37__eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 600; line-height: 1.4; }
main .tax-v37__tree, main .tax-v37__tree ul { list-style: none; padding: 0; margin: 0; }
main .tax-v37__tree ul { margin-left: 10px; padding-left: 14px; }
main .tax-v37__tree li { position: relative; margin-top: 8px; }
/* Each branch starts at its own parent and ends at the child node's centre.
   Only a non-final sibling continues the shared trunk to the next sibling. */
main .tax-v37__tree ul > li { margin-top: 0; padding-top: 8px; }
main .tax-v37__tree ul > li:not(:last-child)::before { content: ''; position: absolute; left: -14px; top: 0; bottom: 0; border-left: 1px solid #216D99; }
main .tax-v37__tree ul > li > .tax-v37__node::before { content: ''; position: absolute; left: -15px; top: -9px; bottom: 50%; width: 14px; border-left: 1px solid #216D99; border-bottom: 1px solid #216D99; pointer-events: none; }
main .tax-v37__node { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border: 1px solid #E2EEF4; border-radius: 4px; background: #E2EEF4; transition: background-color 180ms ease, border-color 180ms ease; }
main .tax-v37__node strong { font-size: 16px; line-height: 1.4; font-weight: 700; }
main .tax-v37__node span { font-size: 13px; line-height: 1.5; }
main .tax-v37__direct { background: #B7FF3C; border-color: #B7FF3C; }
main .tax-v37__check { float: right; font-size: 16px; }
main .tax-v37__sibling { border-style: dashed; border-color: #648096; background: #fff; }
main .tax-v37__sibling strong { font-weight: 400; }
main .tax-v37[data-state="before"] .tax-v37__parent, main .tax-v37[data-state="before"] .tax-v37__direct { background: #fff; border-color: #648096; }
main .tax-v37[data-state="before"] .tax-v37__check { visibility: hidden; }
main .tax-v37 figcaption { margin-top: 24px; }
main .tax-v37__message { display: block; min-height: 3.2em; font-size: 16px; line-height: 1.6; font-weight: 600; }
main .tax-v37__note { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: #216D99; }
@media (max-width: 1100px) and (min-width: 1001px) {
  main #taxonomy-inherit .tax-split__grid { gap: 40px; }
  main .tax-v37__sheet { width: 250px; padding: 16px; }
}
@media (max-width: 1000px) {
  main #taxonomy-inherit .tax-split__grid { grid-template-columns: minmax(0,1fr); gap: 40px; }
  main #taxonomy-inherit .tax-split__media { order: 1; }
  main #taxonomy-inherit .tax-split__content { order: 2; }
  main .tax-v37 { max-width: 700px; margin-inline: auto; }
}
@media (max-width: 640px) {
  main .tax-v37__controls { margin-bottom: 20px; }
  main .tax-v37__controls button { padding-inline: 14px; }
  main .tax-v37__scene { padding: 0; }
  main .tax-v37__photo img { border-width: 3px; border-radius: 10px; }
  main .tax-v37__photo-label { top: 12px; left: auto; right: 12px; padding: 5px 8px; }
  main .tax-v37__sheet { position: relative; width: auto; margin: -24px 0 0 20px; padding: 18px; }
  main .tax-v37__tree ul { margin-left: 10px; padding-left: 14px; }
  main .tax-v37__node { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  main .tax-v37__node span { font-size: 12px; }
  main .tax-v37__check { float: none; margin-left: 4px; }
  main .tax-v37__message { min-height: 4.8em; }
}
@media (prefers-reduced-motion: reduce) {
  main .tax-v37__node { transition: none; }
}
