/* Hotel Wage & Hour — shared masthead, menu and footer for every page.
   Derived from the approved Tip Credit brief bar. Every class is prefixed hwh-
   so no page-family stylesheet can reach into it; markup comes from scripts/chrome.py. Fonts are the Cormorant Garamond and EB Garamond faces
   every page family already loads. */

/* Native controls, scrollbars and form widgets follow the reading mode. */
html[data-theme="night"] { color-scheme: dark; }
html[data-theme="day"] { color-scheme: light; }

/* One masthead height drives every family's sticky offsets. */
:root { --hwh-bar-h: 66px; --hwh-gutter: clamp(20px, 4vw, 40px); }
@media (max-width: 1039.98px) { :root { --hwh-bar-h: 60px; } }
@media (max-width: 389.98px) { :root { --hwh-gutter: 16px; } }
html:root, html:root body, html:root .tcb {
  --gold-header-height: var(--hwh-bar-h);
  --masthead-height: var(--hwh-bar-h);
  --nav-h: var(--hwh-bar-h);
}

/* ---------- masthead ---------- */
.hwh-masthead {
  all: initial;
  display: block; position: sticky; top: 0; z-index: 80; box-sizing: border-box;
  height: var(--hwh-bar-h);
  background: #101a16; border-bottom: 1px solid #2c3d33;
  color: #d6cebb; font: 16px/1.2 "EB Garamond", Georgia, serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  transition: box-shadow .3s ease;
}
html[data-hwh-scrolled] .hwh-masthead { box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .7); }
.hwh-masthead *, .hwh-masthead *::before, .hwh-masthead *::after,
.hwh-footer *, .hwh-footer *::before, .hwh-footer *::after { box-sizing: border-box; margin: 0; text-transform: none; float: none; }
.hwh-masthead svg, .hwh-footer svg { display: block; flex: none; max-width: none; }
.hwh-masthead .hwh-bar {
  height: 100%; max-width: calc(1112px + 2 * var(--hwh-gutter)); margin: 0 auto; padding: 0 var(--hwh-gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px;
}
.hwh-masthead a, .hwh-masthead button { -webkit-tap-highlight-color: transparent; }
.hwh-masthead.hwh-masthead a:focus-visible, .hwh-masthead.hwh-masthead button:focus-visible { outline: 2px solid #e6c878; outline-offset: 3px; border-radius: 2px; }

.hwh-masthead .hwh-brand { justify-self: start; display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: #e6c878; text-decoration: none; background: none; border: 0; padding: 0; }
.hwh-masthead .hwh-mark { width: 34px; height: 34px; }
.hwh-masthead .hwh-mark text { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
.hwh-masthead .hwh-wordmark {
  font: 600 22px/1 "Cormorant Garamond", Georgia, serif; font-variant-caps: small-caps;
  letter-spacing: .035em; color: #e6c878; white-space: nowrap;
}

.hwh-masthead .hwh-nav { display: flex; align-items: baseline; gap: 24px; }
.hwh-masthead .hwh-nav a {
  display: inline-block; padding: 10px 0 8px; border-bottom: 1px solid transparent;
  font: 16px/1 "EB Garamond", Georgia, serif; letter-spacing: .02em;
  color: #d6cebb; text-decoration: none; white-space: nowrap; background: none;
  transition: color .2s ease, border-color .2s ease;
}
.hwh-masthead .hwh-nav a:hover { color: #e6c878; }
.hwh-masthead .hwh-nav a[aria-current] { color: #e6c878; border-bottom-color: rgba(230, 200, 120, .6); }
.hwh-masthead .hwh-nav .hwh-nav-extra, .hwh-masthead .hwh-nav .hwh-nav-theme { display: none; }

.hwh-masthead .hwh-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.hwh-masthead .hwh-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 14px;
  border: 1px solid #53634e; border-radius: 3px; background: transparent; color: #e6c878; cursor: pointer;
  font: 16px/1 "EB Garamond", Georgia, serif; font-variant-caps: small-caps; letter-spacing: .035em;
  transition: border-color .2s ease, background-color .2s ease;
}
.hwh-masthead .hwh-button:hover { border-color: #9a8a64; background: rgba(230, 200, 120, .06); }
.hwh-masthead .hwh-icon { width: 14px; height: 14px; }
.hwh-masthead .hwh-menu { display: none; }
.hwh-masthead .hwh-burger { display: inline-flex; flex-direction: column; justify-content: space-between; width: 15px; height: 11px; }
.hwh-masthead .hwh-burger i { display: block; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
html[data-hwh-menu-open] .hwh-masthead .hwh-burger i:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
html[data-hwh-menu-open] .hwh-masthead .hwh-burger i:nth-child(2) { opacity: 0; }
html[data-hwh-menu-open] .hwh-masthead .hwh-burger i:nth-child(3) { transform: translateY(-4.75px) rotate(-45deg); }

/* Day/night switch: the lit half shows the current reading mode. */
.hwh-masthead .hwh-theme { display: inline-flex; align-items: center; gap: 0; height: 40px; padding: 0 5px; border: 1px solid #53634e; border-radius: 999px; background: transparent; color: #8f8670; cursor: pointer; }
.hwh-masthead .hwh-theme:hover { border-color: #9a8a64; }
.hwh-masthead .hwh-theme-half { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.hwh-masthead .hwh-theme-half svg { width: 13px; height: 13px; }
html:not([data-theme="night"]) .hwh-masthead .hwh-theme-sun,
html[data-theme="night"] .hwh-masthead .hwh-theme-moon { background: rgba(230, 200, 120, .14); box-shadow: inset 0 0 0 1px #716044; color: #e6c878; }
/* Wide tables (marked by gold-chrome.js): the first column stays in view while the rest scrolls,
   and the right edge fades while more columns remain. */
[data-hwh-wide] tr > :first-child { position: sticky; left: 0; z-index: 1; background-color: var(--hwh-sticky-bg, transparent); }
[data-hwh-wide][data-hwh-shifted] tr > :first-child { box-shadow: 8px 0 10px -8px rgba(0, 0, 0, .35); }
[data-hwh-wide][data-hwh-more] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), rgba(0, 0, 0, .2)); mask-image: linear-gradient(to right, #000 calc(100% - 44px), rgba(0, 0, 0, .2)); }
@media print { [data-hwh-wide] tr > :first-child { position: static; box-shadow: none; } [data-hwh-wide][data-hwh-more] { -webkit-mask-image: none; mask-image: none; } }

/* Search: keyboard instructions only where a keyboard is the likely input. */
@media (hover: none), (max-width: 600px) { .search-hint .search-keys { display: none; } }

/* Skip links: one readable treatment in both reading modes (family link colours used to override it). */
html body a.skip-link, html body a.skip-link:focus { color: #101a16; background: #e6c878; text-decoration: none; }
.hwh-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Controls that need JavaScript stay hidden until it runs. */
html:not(.js) .hwh-masthead .hwh-theme, html:not(.js) .hwh-masthead .hwh-search, html:not(.js) .hwh-masthead .hwh-menu { display: none !important; }

@media (max-width: 1039.98px) {
  .hwh-masthead .hwh-bar { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .hwh-masthead .hwh-actions { gap: 8px; }
  .hwh-masthead .hwh-actions > .hwh-theme { display: none; }
  .hwh-masthead .hwh-search { width: 44px; height: 44px; padding: 0; }
  .hwh-masthead .hwh-search .hwh-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hwh-masthead .hwh-menu { display: inline-flex; height: 44px; padding: 0 13px; }
  html.js .hwh-masthead .hwh-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100dvh - var(--hwh-bar-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: 6px var(--hwh-gutter) 18px; background: #101a16;
    border-bottom: 1px solid #53634e; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8);
  }
  html.js[data-hwh-menu-open] .hwh-masthead .hwh-nav { display: flex; }
  html.js .hwh-masthead .hwh-nav a { display: block; padding: 13px 0; border-bottom: 1px solid #22332a; font-size: 20px; font-variant-caps: small-caps; letter-spacing: .035em; }
  html.js .hwh-masthead .hwh-nav a[aria-current] { border-bottom-color: #22332a; }
  html.js .hwh-masthead .hwh-nav a[aria-current]::after { content: "•"; margin-left: 10px; color: #a9803c; }
  html.js .hwh-masthead .hwh-nav .hwh-nav-extra { display: block; }
  html.js .hwh-masthead .hwh-nav .hwh-nav-theme { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; color: #c2b79e; font-size: 17px; font-variant-caps: small-caps; letter-spacing: .035em; }
  /* Without JavaScript the sections wrap beneath the brand instead of hiding behind a menu. */
  html:not(.js) .hwh-masthead { height: auto; }
  html:not(.js) .hwh-masthead .hwh-bar { height: auto; padding-top: 12px; padding-bottom: 8px; row-gap: 4px; }
  html:not(.js) .hwh-masthead .hwh-nav { grid-column: 1 / -1; flex-wrap: wrap; gap: 0 20px; }
  html:not(.js) .hwh-masthead .hwh-nav a { padding: 10px 0; font-size: 17px; }
  html:not(.js) .hwh-masthead .hwh-nav .hwh-nav-extra { display: inline-block; }
}
@media (max-width: 560px) {
  .hwh-masthead .hwh-bar { column-gap: 10px; }
  .hwh-masthead .hwh-brand { gap: 8px; }
  .hwh-masthead .hwh-mark { width: 28px; height: 28px; }
  .hwh-masthead .hwh-wordmark { font-size: 18px; letter-spacing: .025em; }
  .hwh-masthead .hwh-actions { gap: 6px; }
  .hwh-masthead .hwh-search { width: 42px; }
  .hwh-masthead .hwh-menu { gap: 7px; padding: 0 10px; }
}
@media (max-width: 389.98px) {
  .hwh-masthead .hwh-brand { gap: 7px; }
  .hwh-masthead .hwh-mark { width: 26px; height: 26px; }
  .hwh-masthead .hwh-wordmark { font-size: 17px; letter-spacing: .02em; }
  .hwh-masthead .hwh-menu { width: 44px; padding: 0; }
  .hwh-masthead .hwh-menu .hwh-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- footer ---------- */
.hwh-footer {
  all: initial; display: block; position: relative;
  background: radial-gradient(120% 120% at 50% -20%, #16241c 0%, #101a16 50%, #0b120e 100%); border-top: 1px solid #2c3d33; color: #c9bfa8;
  font: 17px/1.55 "EB Garamond", Georgia, serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.hwh-footer .hwh-footer-in { max-width: calc(1112px + 2 * var(--hwh-gutter)); margin: 0 auto; padding: 72px var(--hwh-gutter) 44px; }
.hwh-footer .hwh-footer-head { display: flex; flex-direction: column; align-items: center; text-align: center; color: #a9803c; }
.hwh-footer .hwh-footer-rule { width: 260px; height: 16px; color: #a9803c; }
.hwh-footer .hwh-footer-name { margin-top: 18px; font: 600 24px/1.1 "Cormorant Garamond", Georgia, serif; font-variant-caps: small-caps; letter-spacing: .06em; color: #e6c878; }
.hwh-footer .hwh-footer-tag { margin-top: 10px; font: italic 19px/1.3 "EB Garamond", Georgia, serif; color: #b9ad92; }
.hwh-footer .hwh-footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; margin-top: 52px; padding-top: 40px; border-top: 1px solid #22332a; }
.hwh-footer .hwh-footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hwh-footer .hwh-footer-h { margin-bottom: 10px; font: 15px/1.2 "EB Garamond", Georgia, serif; font-variant-caps: small-caps; letter-spacing: .08em; color: #e6c878; }
.hwh-footer .hwh-footer-in a { color: #d6cebb; text-decoration: none; background: none; }
.hwh-footer .hwh-footer-col a { display: inline-block; padding: 5px 0; font-size: 17px; line-height: 1.3; }
.hwh-footer .hwh-footer-in a:hover { color: #e6c878; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hwh-footer .hwh-footer-in a:focus-visible { outline: 2px solid #e6c878; outline-offset: 3px; border-radius: 2px; }
.hwh-footer .hwh-footer-base { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-top: 44px; padding-top: 26px; border-top: 1px solid #22332a; }
.hwh-footer .hwh-footer-fine { max-width: 640px; font-size: 15px; line-height: 1.6; color: #a99f88; }
.hwh-footer .hwh-footer-fine a { color: #d6cebb; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: #716044; }
.hwh-footer .hwh-footer-copy { flex: none; font-size: 15px; color: #a99f88; font-variant-caps: small-caps; letter-spacing: .04em; }
@media (max-width: 860px) {
  .hwh-footer .hwh-footer-in { padding-top: 56px; padding-bottom: 36px; }
  .hwh-footer .hwh-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; padding-top: 32px; }
  .hwh-footer .hwh-footer-base { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) { .hwh-footer-rule { width: 220px; } .hwh-footer-cols { gap: 28px 18px; } }

@media print {
  .hwh-masthead, .hwh-footer { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hwh-masthead, .hwh-masthead .hwh-nav a, .hwh-masthead .hwh-button, .hwh-masthead .hwh-theme-half, .hwh-masthead .hwh-burger i { transition: none !important; }
}
