/* Shared site chrome: navigation, footer, cookie notice, back-to-top.
   Loaded before each page's own stylesheet. Colours come from the page's :root tokens. */

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(13,11,15,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: color 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links li { position: relative; }
.nav-has-dropdown > a::after { content: ' \25BE'; font-size: 10px; opacity: 0.6; }
.nav-dropdown { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: rgba(13,11,15,0.98); border: 1px solid var(--border); min-width: 200px; padding: 0.75rem 0; z-index: 200; margin-top: -1px; }
.nav-links li:hover .nav-dropdown { display: block; }
/* Bridge gap between nav link and dropdown */
.nav-has-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.nav-dropdown a { display: block; padding: 0.5rem 1.25rem; font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.15em; color: var(--text-muted); text-decoration: none; text-transform: uppercase; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.nav-dropdown a:hover, .nav-dropdown a.active { color: var(--gold-light); background: rgba(184,154,106,0.06); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--gold); transition: all 0.3s; }

/* Hamburger below 780px: the six links plus logo do not fit in one row any narrower. */
@media (max-width: 780px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 64px; left: 0; right: 0; background: rgba(13,11,15,0.98); border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; gap: 1.25rem; z-index: 200; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-dropdown { display: none; position: static; transform: none; background: rgba(255,255,255,0.04); border: none; border-left: 2px solid var(--border-strong); padding: 0.5rem 0 0.5rem 1rem; margin-top: 0.25rem; min-width: unset; width: 100%; }
  .nav-dropdown a { padding: 0.4rem 0; font-size: 12px; }
  .nav-has-dropdown::after { display: none; }
}

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 2.5rem 2rem; text-align: center; background: var(--bg); }
.footer-logo { height: 52px; width: auto; margin-bottom: 1.25rem; opacity: 0.7; }
.footer-tagline { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; letter-spacing: 0.04em; }
.footer-nav { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; list-style: none; }
.footer-nav a { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); opacity: 0.9; line-height: 1.6; }
.footer-copy a { color: var(--gold); text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; }
@media (max-width: 768px) { .footer-nav { gap: 1rem; } }

/* BACK TO TOP */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 42px; height: 42px; background: var(--bg2); border: 1px solid var(--border-strong); color: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s, background 0.2s; z-index: 50; font-size: 16px; }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--gold); color: var(--bg); }

/* COOKIE NOTICE */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: var(--bg2); border-top: 1px solid var(--border-strong); padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); font-family: 'EB Garamond', serif; }
.cookie-banner a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 0.4rem 1.25rem; cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.cookie-btn:hover { background: var(--gold); color: var(--bg); }
@media (max-width: 480px) {
  .cookie-banner { padding: 1rem 1.25rem; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* Scheduled releases: the build renders both versions of anything that changes at a future
   release time. release.js removes the "before" version and unhides the "after" one on time. */
[data-release-show="after"] { display: none !important; }
