/* Shared archive masthead and keyboard navigation. */
:root {
  --archive-shell: min(82rem, calc(100% - clamp(2rem, 7vw, 6rem)));
  --archive-ink: #123138;
  --archive-teal: #105957;
  --archive-gold: #cba96a;
  --archive-line: #bdcbc3;
}
.archive-skip {
  position: fixed; z-index: 9999; inset: .5rem auto auto .5rem; transform: translateY(-180%);
  border-radius: .2rem; padding: .7rem 1rem; color: #102d33; background: #fff5d9;
  font: 650 1rem/1.45 system-ui, sans-serif;
}
.archive-skip:focus { transform: none; outline: 3px solid #9a742c; }
header.wv-site-header.archive-header {
  position: relative; top: auto; z-index: 20; margin: 0; padding: 0;
  border: 0; border-bottom: 1px solid #a98b55; box-shadow: none; backdrop-filter: none;
  background: #102d33; color: #f8f4e9; overflow: visible;
}
.archive-mast {
  box-sizing: border-box; width: var(--archive-shell); margin: 0 auto; min-height: 4.35rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem;
}
.archive-header a.archive-brand {
  display: inline-flex; align-items: baseline; gap: .2em; flex: none; white-space: nowrap;
  padding: .65rem 0; color: #fff9ed; font: 700 clamp(1.3rem, 2.2vw, 1.8rem)/1.1 Georgia, serif;
  letter-spacing: -.045em; text-decoration: none;
}
.archive-brand i { color: #e0c58d; font-size: .71em; font-weight: 400; letter-spacing: -.03em; }
.archive-nav { position: relative; min-width: 0; font: 600 .9375rem/1.4 system-ui, sans-serif; }
.archive-nav, .archive-nav * { box-sizing: border-box; }
.archive-nav ul { list-style: none; margin: 0; padding: 0; }
.archive-nav li { position: relative; margin: 0; }
.archive-nav > ul { display: flex; align-items: center; gap: clamp(.25rem, .9vw, 1rem); }
.archive-nav :is(a, summary) {
  display: flex; align-items: center; min-height: 2.75rem; padding: .55rem .55rem;
  color: #f5f1e7; background: transparent; border: 0; text-decoration: none; font: inherit;
}
.archive-nav summary { list-style: none; cursor: pointer; }
.archive-nav summary::-webkit-details-marker { display: none; }
.archive-nav summary::after {
  content: ""; width: .36rem; height: .36rem; margin: -.25em .05em 0 .55em;
  border: solid #d0b580; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.archive-nav details[open] > summary::after { transform: rotate(225deg); margin-top: .18em; }
.archive-nav :is(a,summary):hover, .archive-nav details[open] > summary { background: #22434a; color: #fff9eb; }
.archive-nav > ul > li > [aria-current], .archive-current-group > details > summary {
  box-shadow: inset 0 -2px 0 var(--archive-gold);
}
.archive-nav details > ul {
  position: absolute; z-index: 1; inset: calc(100% + .15rem) auto auto 0;
  width: max-content; max-width: min(22rem, 85vw); max-height: min(70vh, 34rem); overflow-y: auto;
  padding: .4rem; background: #14333a; border: 1px solid #486164; border-top: 2px solid var(--archive-gold);
  border-radius: 0 0 .3rem .3rem; box-shadow: 0 .65rem 1.5rem #09222830;
}
.archive-nav > ul > li:nth-last-child(-n+2) details > ul { inset-inline: auto 0; }
.archive-nav details li a { padding-inline: .85rem; font-weight: 500; }
.archive-nav details a[aria-current] { color: #f1d497; background: #25464b; }
.archive-nav details > .archive-sections {
  width: min(38rem, 90vw);
  max-width: none;
  padding: .75rem;
}
.archive-nav details[open] > .archive-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem 1.25rem;
}
.archive-group-title {
  display: block;
  margin: .15rem .85rem;
  padding-block: .2rem .4rem;
  border-bottom: 1px solid #526b6a;
  color: #eed59f;
  font: 650 .875rem/1.4 system-ui, sans-serif;
}
.archive-header :is(a, summary, button):focus-visible { outline: 2px solid #f5ce88; outline-offset: 2px; }
.archive-menu-toggle { display: none; }
@media (max-width: 60rem) {
  .archive-mast { min-height: 3.75rem; }
  .archive-nav[data-ready] .archive-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 2.75rem; padding-inline: .72rem; color: #fff9ed; background: transparent;
    border: 1px solid #70847f; border-radius: .25rem; font: inherit; cursor: pointer;
  }
  .archive-menu-icon { width: .9rem; height: .5rem; border-block: 1.5px solid currentColor; }
  .archive-nav[data-ready] > button[aria-expanded="false"] + ul { display: none; }
  .archive-nav > ul {
    display: block; border: 1px solid #526b6a; background: #102d33; padding: .45rem;
  }
  .archive-nav[data-ready] > ul {
    position: absolute; inset: calc(100% + .35rem) 0 auto auto; max-height: 72vh; max-height: 72dvh;
    width: min(20rem, calc(100vw - 2rem)); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 .65rem 1.5rem #09222830;
  }
  .archive-nav :is(a, summary) { justify-content: space-between; padding-inline: .8rem; }
  .archive-nav > ul > li > [aria-current], .archive-current-group > details > summary {
    box-shadow: inset 2px 0 var(--archive-gold); background: #203f45;
  }
  .archive-nav details > ul {
    position: static; width: auto; max-width: none; max-height: none; padding: .15rem 0 .35rem .6rem;
    border: 0; box-shadow: none; overflow: visible;
  }
  .archive-nav details[open] > .archive-sections {
    display: block;
    width: 100%;
    padding: .15rem 0 .35rem .6rem;
  }
  .archive-nav:not([data-ready]) { width: 100%; padding-bottom: .5rem; }
  .archive-mast:has(.archive-nav:not([data-ready])) { flex-wrap: wrap; }
}
@media print { .archive-nav, .archive-skip { display: none; } }

/* Reading navigation and the archive's shared signature. */
header.wv-site-header.archive-header {
  background: #091d22;
  border-bottom-color: #47615a;
}
.archive-nav > ul > li > a, .archive-nav summary { border-radius: .2rem; }
.archive-header .archive-nav details > .archive-sections {
  max-height: min(75vh, 38rem);
  scrollbar-width: thin;
}
.archive-header .archive-nav details[open] > .archive-sections {
  gap: .5rem 1rem;
}
.archive-footer.wv-site-footer {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-top: 2px solid #a88852;
  background: #0b2025 url('/assets/images/wingo-footer-background.webp') center / cover no-repeat;
}
.archive-footer .archive-footer-inner {
  width: min(44rem, 86%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .65rem;
  padding-block: clamp(2.45rem, 4.8vw, 4.5rem);
}
.archive-footer .archive-footer-quote {
  margin: 0;
  color: #fff7e8;
  font: 650 clamp(1.7rem, 3.1vw, 2.7rem)/1.12 Georgia, serif;
  letter-spacing: -.035em;
}
.archive-footer .archive-footer-quote em {
  color: #e8ca90;
  font-weight: 400;
}
.archive-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(.6rem, 2vw, 1.5rem);
}
.archive-footer :is(nav a, .archive-email) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  box-sizing: border-box;
  color: #faf6e9;
  text-underline-offset: .23em;
  text-decoration-thickness: 1px;
  font: 550 .9375rem/1.5 system-ui, sans-serif;
}
.archive-footer .archive-email {
  color: #e5d7b9;
}
.archive-footer a:hover { text-decoration-thickness: 2px; }
.archive-footer a:focus-visible { outline: 2px solid #ffda91; outline-offset: 3px; }
.archive-header :is(a, button, summary), .archive-footer a { -webkit-tap-highlight-color: #63847755; }
@media (max-width: 60rem) {
  .archive-header .archive-nav details > .archive-sections { max-height: none; }
}
@media (max-width: 31rem) {
  .archive-mast { width: calc(100% - 1.35rem); gap: .45rem; }
  .archive-header .archive-brand { font-size: clamp(1.125rem, 5.1vw, 1.4rem); }
  .archive-footer.wv-site-footer {
    background-image: linear-gradient(#06171bb8, #06171bb8), url('/assets/images/wingo-footer-background.webp');
  }
  .archive-footer .archive-footer-inner { width: calc(100% - 2rem); }
}
@media (max-width: 18rem) {
  .archive-mast { flex-wrap: wrap; padding-block: .25rem; }
}
@media print {
  .archive-header .archive-nav, .archive-footer { display: none; }
}

/* Keep Home visible at the same leading edge throughout the site. */
html { scroll-padding-block-start: calc(4.3rem + var(--wp-admin--admin-bar--height, 0px)); }
header.wv-site-header.archive-dock {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 80;
  background: #081b2c;
  border-bottom: 1px solid #736545;
}
.archive-dock .archive-mast {
  box-sizing: border-box;
  width: 100%;
  min-height: 3.5rem;
  max-width: none;
  padding: .25rem max(clamp(.55rem, 2.3vw, 2.7rem), env(safe-area-inset-right)) .25rem max(clamp(.55rem, 2.3vw, 2.7rem), env(safe-area-inset-left));
  justify-content: flex-start;
  gap: clamp(.65rem, 1.75vw, 1.75rem);
}
.archive-dock .archive-home-pin {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .35rem clamp(.85rem, 1.45vw, 1.45rem);
  border: 1px solid #e5c48e;
  border-radius: .2rem;
  color: #081b2c;
  background: #d6aa67;
  font: 700 1rem/1.25 system-ui, sans-serif;
  text-decoration: none;
}
.archive-dock .archive-home-pin:hover { color: #081b2c; background: #e4c28b; }
.archive-dock .archive-home-pin:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.archive-dock .archive-home-pin[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; }
.archive-dock .archive-brand { margin: 0; color: #f9f4e8; font: 650 clamp(1.05rem, 1.55vw, 1.48rem)/1.2 Georgia, serif; letter-spacing: -.025em; white-space: nowrap; }
.archive-dock .archive-nav { margin-inline-start: auto; }
.archive-dock .archive-nav > ul > li > a[aria-current] { color: #f1d7a6; }
.archive-dock .archive-nav > ul { gap: clamp(.12rem,.8vw,.9rem); }
@media (max-width: 60rem) {
  .archive-dock .archive-mast { min-height: 3.25rem; }
  .archive-dock .archive-nav:not([data-ready]) { flex-basis: 100%; }
  .archive-dock:has(.archive-nav:not([data-ready])) { position: relative; }
}
@media (max-height: 26rem) {
  .archive-dock .archive-nav[data-ready] > ul,
  .archive-dock .archive-nav details > .archive-sections {
    max-height: calc(100dvh - 4.4rem - var(--wp-admin--admin-bar--height, 0px));
  }
}
@media print { header.wv-site-header.archive-dock { display: none; } }

@media (min-width: 88rem) {
  :root { --archive-shell: min(108rem, calc(100% - clamp(4rem, 6vw, 8rem))); }
  .archive-interior .wv-main :is(.archive-guide-copy, .archive-chapter-material) > p { max-inline-size: 76ch; }
}
