/* Pieces shared by every page including the landing page: tokens, user menu, footer. */
:root {
  --navy: #0f1f3d;
  --gold: #b8862f;
  --gold-dark: #9a6f22;
  --cream: #fbf7f0;
  --soft: #f5e9d2;
  --line: #eadfca;
  --muted: #6f6f6f;
  --err: #b42318;
  --ok: #0b5a2f;
}
.i { width: 18px; height: 18px; flex: none; }
.i.sm { width: 14px; height: 14px; }
.i.lg { width: 20px; height: 20px; }

/* ---------- Nav pieces shared with the landing page ---------- */
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-search { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #333; }
.nav-search:hover { color: var(--gold); background: #f5ecdc; }
.ua { position: relative; }
.ua-btn { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; color: #222; padding: 4px 6px; border-radius: 999px; }
.ua-btn:hover { background: #f5ecdc; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; font-weight: 600; font-size: 14px; }
.ua-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px #00000026; padding: 6px; z-index: 50; }
.ua-menu a, .ua-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; font: inherit; font-size: 13.5px; color: #333; border-radius: 8px; cursor: pointer; text-align: left; }
.ua-menu a:hover, .ua-menu button:hover { background: #f7efdf; }
.ua-menu .i { color: var(--gold); }

/* ---------- Footer ---------- */
.sfoot { background: var(--navy); color: #cfd6e4; margin-top: 70px; font-size: 13px; }
.sfoot .wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sfoot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr 1.3fr; gap: 28px; padding: 44px 20px 30px !important; }
.sf-logo { display: flex; align-items: center; gap: 8px; font-family: "Playfair Display", Georgia, serif; font-size: 30px; color: #fff; }
.sf-logo .logo-mark { width: 44px; height: 44px; color: #c99a45; }
.sf-logo b { color: #c99a45; font-weight: 600; }
.sf-brand small { display: block; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; margin: 4px 0 14px; color: #9fb0cc; }
.sf-brand p { line-height: 1.6; margin: 0 0 16px; max-width: 280px; }
.sf-social { display: flex; gap: 10px; }
.sf-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ffffff40; display: grid; place-items: center; color: #fff; }
.sf-social a:hover { background: #ffffff1f; }
.sf-social svg { width: 16px; height: 16px; }
.sfoot h4 { margin: 0 0 14px; font-size: 14px; color: #fff; font-weight: 600; }
.sfoot-grid > div > a { display: block; color: #cfd6e4; margin-bottom: 9px; }
.sfoot-grid > div > a:hover { color: #fff; text-decoration: underline; }
.sfoot-grid > div > p { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 11px; line-height: 1.5; }
.sfoot-grid .i { color: #c99a45; margin-top: 1px; }
.sf-news form { display: grid; gap: 10px; }
.sf-news input { height: 42px; border-radius: 8px; border: 0; padding: 0 12px; font: inherit; font-size: 13px; }
.sf-news .btn { justify-content: center; width: 100%; border: 0; cursor: pointer; border-radius: 8px; padding: 11px; font: inherit; font-weight: 600; background: linear-gradient(90deg, #b8862f, #cf9f4a); color: #fff; }
#news-msg { margin: 10px 0 0; font-size: 12px; color: #e8d7b0; }
.sfoot-base { border-top: 1px solid #ffffff1f; text-align: center; padding: 16px; font-size: 12px; color: #9fb0cc; }


/* ---------- Navbar (one definition for every page, so nothing jumps between pages) ---------- */
html { scrollbar-gutter: stable; }
.nav { position: sticky; top: 0; z-index: 30; background: #fffdf9f2; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.nav .logo { justify-self: start; display: flex; align-items: center; gap: 8px; font-family: "Playfair Display", Georgia, serif; font-size: 28px; line-height: 1; color: var(--navy); text-decoration: none; }
.nav .logo .logo-mark { width: 40px; height: 40px; color: var(--gold); flex: none; }
.nav .logo b { color: var(--gold); font-weight: 600; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 14px; justify-self: center; }
.nav ul a { position: relative; display: block; padding: 6px 0; color: #2b2b2b; text-decoration: none; transition: color .2s ease; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left center; transition: transform .28s ease; }
.nav ul a:hover, .nav ul a.on { color: var(--gold-dark); }
.nav ul a:hover::after, .nav ul a.on::after { transform: scaleX(1); }
.nav .nav-right { justify-self: end; }
.nav .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.2; background: var(--gold); color: #fff; border: 1px solid var(--gold); text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.nav .btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.nav .btn:active { transform: scale(.97); }
.nav-search, .ua-btn { transition: background .2s ease, color .2s ease; }
@media (max-width: 900px) {
  .nav ul { display: none; }
  .nav .wrap { grid-template-columns: 1fr auto; }
}

/* ---------- Page transitions: the navbar stays put, the page below it fades ---------- */
@keyframes cl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body > *:not(.nav):not(svg):not(script):not(.modal):not(#cl-sprite) { animation: cl-in .35s ease both; }
body.leaving > *:not(.nav):not(svg):not(script):not(.modal):not(#cl-sprite) { animation: none; opacity: 0; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease; }
@media (prefers-reduced-motion: reduce) {
  body > *:not(.nav):not(svg):not(script):not(.modal):not(#cl-sprite) { animation: none; }
  html { scroll-behavior: auto !important; }
  .nav ul a::after, .nav .btn { transition: none; }
}

.nav .i { width: 18px; height: 18px; }
.nav .ua-btn .i.sm { width: 14px; height: 14px; }

.sfoot-base { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; }
.sf-admin { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1px solid #ffffff40; border-radius: 999px; color: #cfd6e4; font-size: 12px; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.sf-admin:hover { background: #ffffff1f; color: #fff; border-color: #ffffff80; }
.sf-admin .i { width: 14px; height: 14px; color: #c99a45; }

.site-notice { background: #0f1f3d; color: #f5e9d2; text-align: center; font-size: 13px; padding: 9px 16px; line-height: 1.4; }
