.desk-tab {
  --tab-stock: #cccfb1;
  --tab-reverse: #a3ac8d;
  --tab-ink: #29352a;
  --tab-gutter: 10px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: none;
  padding-inline: 4px 9px;
  color: var(--tab-ink);
  white-space: nowrap;
}
.desk-tab::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px 0;
  background: url(assets/folio-paper.png), var(--tab-stock);
  border-left: 2px solid var(--tab-reverse);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}
.desk-tab::after {
  content: "";
  position: absolute;
  right: 0;
  top: 5px;
  width: 7px;
  height: 7px;
  background: var(--tab-reverse);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.desk-tab a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  /* Reserve the printed measure while the local typeface is loading. */
  min-inline-size: calc(3.3em + 2 * var(--tab-gutter));
  padding-inline: var(--tab-gutter);
  font: 580 14px/1.2 var(--sans);
}
.desk-tab a:last-child { min-inline-size: calc(5.45em + 2 * var(--tab-gutter)); }
.desk-tab a:focus-visible {
  outline: 1.5px solid currentColor;
  outline-offset: -6px;
}
.desk-underline {
  position: absolute;
  bottom: 9px;
  left: calc(50% - 13px);
  width: 26px;
  height: 2px;
  background: currentColor;
  pointer-events: none;
}
.mast .chapter-guide {
  width: clamp(168px, 15vw, 210px);
  justify-content: space-between;
  gap: 8px;
}
@media (max-width: 900px) {
  .mast .navigation { gap: clamp(12px, 2.4vw, 24px); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .mast .role { display: none; }
}
@media (min-width: 761px) and (max-width: 880px) {
  .mast .wordmark { width: 120px; }
  .mast .navigation, .mast-contacts { gap: 14px; }
  .mast-contact .icon { display: none; }
}
@media (max-width: 760px) {
  :root { --head: 92px; }
  .mast-inner { position: relative; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 0; }
  .mast .identity { position: absolute; top: 1px; left: var(--pad); height: 44px; flex-direction: row; align-items: center; }
  .mast .identity .mark-link { min-height: 44px; }
  .mast .wordmark { width: clamp(96px, 29vw, 127px); }
  .mast .role { display: none; }
  .desk-tab { position: absolute; top: 1px; right: var(--pad); --tab-gutter: 8px; }
  .desk-tab a { font-size: 13px; }
  .mast .navigation { width: 100%; min-height: 44px; justify-content: space-between; gap: 8px; }
  .mast .chapter-guide { width: auto; justify-content: flex-start; gap: clamp(12px, 3.6vw, 20px); }
  .chapter-guide a { position: relative; }
  /* The ink measures the label. Short names still have room for a fingertip. */
  .chapter-guide a::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline: min(0px, calc((100% - 44px) / 2));
  }
  .mast-contacts { position: static; gap: clamp(9px, 3.5vw, 20px); }
  .mast-contact .icon { display: none; }
}
@media (forced-colors: active) {
  .desk-underline { background: LinkText; forced-color-adjust: none; }
}
@media print {
  .desk-tab, .desk-guide { display: none; }
}
