:root {
  --mast-height: 5.5rem;
  --mast-gutter: clamp(1.25rem, 4.8vw, 4.5rem);
}

.site-masthead {
  --mast-paper: #fbfaf7;
  --mast-ink: #233531;
  --mast-muted: #53625a;
  --mast-rule: #d5d9d0;
  position: relative;
  z-index: 12;
  background: var(--mast-paper);
  color: var(--mast-ink);
  font-family: var(--pn-text);
}
.site-masthead *, .site-masthead *::before, .site-masthead *::after { box-sizing: border-box; }
.mast-reading { position: sticky; top: 0; }
.mast-bar {
  width: min(calc(100% - 2 * var(--mast-gutter)), 76rem);
  min-height: var(--mast-height);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--mast-rule);
}
.mast-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
  gap: .22rem;
  padding-block: .6rem;
  color: var(--mast-ink);
  text-decoration: none;
}
.mast-brand:hover { color: var(--mast-ink); }
.mast-wordmark {
  font: 400 clamp(1.9rem, 2.45vw, 2.2rem)/1.02 var(--pn-display);
  letter-spacing: -.045em;
  white-space: nowrap;
}
.mast-description {
  color: var(--mast-muted);
  font: 450 .72rem/1.3 var(--pn-text);
  letter-spacing: .035em;
  white-space: nowrap;
}
.site-masthead nav ul { margin: 0; padding: 0; list-style: none; }
.site-masthead nav li { margin: 0; padding: 0; }
.site-masthead summary { list-style: none; cursor: pointer; }
.site-masthead summary::-webkit-details-marker { display: none; }
.site-masthead a:focus-visible, .site-masthead summary:focus-visible {
  outline: 2px solid #806345;
  outline-offset: 3px;
}
.mast-desktop { flex: 0 0 auto; }
.mast-links {
  display: flex;
  align-items: center;
  gap: clamp(1.35rem, 2.45vw, 2.45rem);
}
.mast-links > li > a, .mast-dropdown > summary, .mast-mobile > summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .48rem;
  color: var(--mast-ink);
  text-decoration: none;
  font: 450 .975rem/1.3 var(--pn-text);
  letter-spacing: .006em;
  white-space: nowrap;
}
.mast-links a:hover > span:first-child,
.mast-links summary:hover > span:first-child,
.mast-links [aria-current] > span:first-child,
.mast-current > span:first-child,
.mast-panel a:hover > span:first-child,
.mast-panel [aria-current] > span:first-child,
.mast-flyout a:focus-visible > span:first-child {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
}
.mast-chevron {
  display: inline-block;
  width: .38rem;
  height: .38rem;
  margin: -.2rem 0 0 .1rem;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.mast-dropdown { position: relative; }
.mast-dropdown[open] > summary .mast-chevron { transform: translateY(.18rem) rotate(225deg); }
.site-masthead .mast-flyout {
  position: absolute;
  inset-block-start: calc(100% + .15rem);
  inset-inline-start: -1.2rem;
  width: 15rem;
  padding: .55rem 1.2rem;
  border: 1px solid var(--mast-rule);
  background: #fffefa;
  box-shadow: 0 .55rem 1.2rem #23352c0c;
}
.mast-flyout a, .mast-panel-list a, .mast-chapter-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--mast-ink);
  text-decoration: none;
  font: 450 1rem/1.35 var(--pn-text);
}
.site-masthead .mast-flyout li:nth-child(4) {
  margin-top: .25rem;
  padding-top: .25rem;
  border-top: 1px solid var(--mast-rule);
}
.site-masthead .mast-contact {
  position: relative;
  padding-inline-start: clamp(1.2rem, 2.15vw, 2rem);
}
.mast-contact::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  height: 1.35rem;
  border-inline-start: 1px solid #c7cdbf;
  transform: translateY(-50%);
}
.mast-links > li > .mast-enquiry, .mast-panel .mast-enquiry {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  min-height: 44px;
  color: #27453c;
  font: 550 .975rem/1.35 var(--pn-text);
  text-decoration: none;
  white-space: nowrap;
}
.mast-arrow {
  position: relative;
  display: inline-block;
  width: 1.04rem;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.mast-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: .36rem;
  height: .36rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.mast-mobile { display: none; }
.mast-skip {
  position: absolute;
  z-index: 30;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  background: #fffefa;
  color: #233531;
  transform: translateY(-165%);
}
.mast-skip:focus { transform: none; }

@media (min-width: 70rem) and (max-width: 78rem) {
  .mast-bar { gap: 1.25rem; }
  .mast-links { gap: 1.05rem; }
  .site-masthead .mast-contact { padding-inline-start: 1rem; }
}
@media (max-width: 70rem) {
  :root { --mast-height: 4.45rem; }
  .mast-bar { gap: 1rem; }
  .mast-wordmark { font-size: 1.8rem; }
  .mast-description { font-size: .68rem; letter-spacing: .02em; }
  .mast-desktop { display: none; }
  .mast-mobile { display: block; }
  .mast-mobile > summary { gap: .58rem; font-size: .96rem; }
  .mast-menu-icon {
    display: inline-block;
    width: 1.03rem;
    height: .55rem;
    position: relative;
  }
  .mast-menu-icon::before, .mast-menu-icon::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    border-top: 1px solid currentColor;
  }
  .mast-menu-icon::before { top: 0; }
  .mast-menu-icon::after { bottom: 0; }
  .mast-mobile[open] .mast-menu-icon::before { top: 50%; transform: rotate(45deg); }
  .mast-mobile[open] .mast-menu-icon::after { top: 50%; bottom: auto; transform: rotate(-45deg); }
  .mast-panel {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    max-height: calc(100vh - var(--mast-height));
    max-height: calc(100dvh - var(--mast-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--mast-paper);
    border-bottom: 1px solid var(--mast-rule);
    box-shadow: 0 .75rem 1.2rem #1f2c260d;
  }
  .mast-panel-inner {
    width: min(calc(100% - 2 * var(--mast-gutter)), 76rem);
    margin: 0 auto;
    padding: 1.2rem 0 .8rem;
  }
  .mast-panel-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem clamp(1.5rem, 6vw, 4.5rem);
  }
  .mast-group-title {
    margin: 0 0 .4rem;
    color: var(--mast-muted);
    font: 550 .82rem/1.4 var(--pn-text);
    letter-spacing: .015em;
  }
  .mast-panel-contact, .mast-guide-group {
    border-top: 1px solid var(--mast-rule);
    margin-top: .9rem;
    padding-top: .45rem;
  }
  .mast-guide-group > summary {
    display: flex;
    gap: .7rem;
    align-items: center;
    min-height: 44px;
    font-size: 1rem;
    color: var(--mast-ink);
  }
  .mast-guide-group[open] > summary .mast-chevron { transform: translateY(.18rem) rotate(225deg); }
  .mast-chapter-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: 1rem;
  }
}
@media (max-width: 700px) {
  :root { --mast-gutter: clamp(1.15rem, 5vw, 2rem); }
}
@media (max-width: 36rem) {
  .mast-panel-groups { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .mast-panel-groups > div + div { border-top: 1px solid var(--mast-rule); padding-top: 1rem; }
  .mast-panel-inner { padding-top: 1rem; }
}
@media (max-width: 23rem) {
  .mast-bar { gap: .5rem; }
  .mast-wordmark { font-size: 1.67rem; }
  .mast-description { font-size: .64rem; }
  .mast-mobile > summary { gap: .45rem; font-size: .93rem; }
}
@media print { .site-masthead, .mast-skip { display: none; } }

.mast-panel-list.mast-simple a { min-height: 46px; }
.facts-home-link { margin-top: .8rem; }
