/* Phone tab bar. Hidden above the site's existing 768px mobile breakpoint so the desktop header stays as it is.
   The header's `nav {}` rule also matches this <nav>; every conflicting property is reset here at higher specificity. */
:root{
  --occ-tabbar-height:calc(62px + env(safe-area-inset-bottom, 0px));
}

nav.occ-tabbar{
  display:none;
  position:fixed;
  top:auto;
  bottom:0;
  left:0;
  right:0;
  z-index:200;
  height:var(--occ-tabbar-height);
  margin:0;
  padding:4px 2px env(safe-area-inset-bottom, 0px);
  box-sizing:border-box;
  justify-content:stretch;
  align-items:stretch;
  gap:0;
  background:var(--warm-white, #FFFCF7);
  border-top:1px solid rgba(11,47,36,.12);
  border-bottom:0;
  border-radius:0;
  box-shadow:0 -8px 28px rgba(11,47,36,.06);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.occ-tab{
  appearance:none;
  -webkit-appearance:none;
  flex:1 1 0;
  min-width:0;
  min-height:48px;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:none;
  border:0;
  border-radius:0;
  color:var(--text-muted, #5A5D63);
  font:inherit;
  text-decoration:none;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.occ-tab-face{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-width:58px;
  max-width:100%;
  padding:6px 8px 5px;
  border-radius:16px;
}
.occ-tab-svg{
  width:22px;
  height:22px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.occ-tab-label{
  font-family:var(--mono, ui-monospace, monospace);
  font-size:10px;
  font-weight:400;
  letter-spacing:.01em;
  line-height:1.15;
  white-space:nowrap;
}
.occ-tab[aria-current="page"],
.occ-tab.is-open{color:var(--forest, #0B2F24)}
.occ-tab[aria-current="page"] .occ-tab-face,
.occ-tab.is-open .occ-tab-face{
  background:rgba(56,93,71,.14);
}
.occ-tab[aria-current="page"] .occ-tab-label,
.occ-tab.is-open .occ-tab-label{font-weight:500}
.occ-tab-em{color:var(--forest, #0B2F24)}
.occ-tab-em .occ-tab-label{
  font-weight:500;
  box-shadow:inset 0 -1.5px 0 var(--gold, #C5A55A);
}
.occ-tab:focus{outline:none}
.occ-tab:focus-visible .occ-tab-face{
  outline:2px solid var(--forest, #0B2F24);
  outline-offset:2px;
}
.occ-tab:active .occ-tab-face{background:rgba(56,93,71,.1)}

.occ-sheet-root{
  display:none;
  position:fixed;
  z-index:190;
  left:0;
  right:0;
  top:0;
  bottom:var(--occ-tabbar-height);
}
.occ-sheet-root[hidden]{display:none !important}
.occ-sheet-backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  border:0;
  background:rgba(11,47,36,.38);
  cursor:pointer;
}
.occ-sheet{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  background:var(--warm-white, #FFFCF7);
  border-top:1px solid rgba(11,47,36,.14);
  box-shadow:0 -16px 40px rgba(11,47,36,.16);
  padding:.35rem 1rem 1rem;
}
.occ-sheet:focus{outline:none}
.occ-sheet:focus-visible{outline:2px solid var(--forest, #0B2F24);outline-offset:-2px}
.occ-sheet-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
}
.occ-sheet-title{
  margin:0;
  font-family:var(--mono, ui-monospace, monospace);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-muted, #5A5D63);
}
.occ-sheet-close{
  appearance:none;
  -webkit-appearance:none;
  margin:0;
  background:none;
  border:0;
  color:var(--forest, #0B2F24);
  font-family:var(--mono, ui-monospace, monospace);
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  min-height:44px;
  min-width:44px;
  padding:.5rem .15rem;
  cursor:pointer;
}
.occ-sheet-close:focus-visible{
  outline:2px solid var(--forest, #0B2F24);
  outline-offset:2px;
}
.occ-sheet-choice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  min-height:48px;
  margin-top:.45rem;
  padding:.8rem .9rem;
  text-decoration:none;
  color:var(--forest, #0B2F24);
  background:var(--cream, #F6F1E7);
  border:1px solid rgba(11,47,36,.14);
  font-family:var(--serif, Georgia, serif);
  font-size:1.12rem;
  line-height:1.3;
}
.occ-sheet-choice:hover{border-color:var(--forest, #0B2F24)}
.occ-sheet-choice:focus-visible{
  outline:2px solid var(--forest, #0B2F24);
  outline-offset:2px;
}
.occ-sheet-go{
  color:var(--green, #385D47);
  font-size:1.05rem;
}

@media (max-width: 768px){
  nav.occ-tabbar{display:flex}
  .occ-sheet-root:not([hidden]){display:block}
  body{padding-bottom:var(--occ-tabbar-height)}
  /* The tab bar replaces the public hamburger. Admin does not load this file. */
  #nav .mobile-toggle{display:none}
  #nav .nav-links,
  #nav .nav-links.open{display:none}
}

@media (prefers-reduced-motion: no-preference){
  .occ-sheet-root:not([hidden]) .occ-sheet{
    animation:occ-sheet-in .2s cubic-bezier(.22,1,.36,1);
  }
}
@keyframes occ-sheet-in{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

@media print{
  nav.occ-tabbar,
  .occ-sheet-root{display:none !important}
  body{padding-bottom:0 !important}
}
