:root {
  --font-size: 18.5px;
  --font-sans: "Plus Jakarta Sans", "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Outfit", "Sora", "Manrope", "Avenir Next", sans-serif;

  --background: #f3f6fb;
  --foreground: #13223a;
  --surface: #ffffff;
  --surface-2: #ecf3ff;
  --card: #ffffff;
  --card-foreground: #13223a;
  --popover: #ffffff;
  --popover-foreground: #13223a;

  --primary: #0D1B2A;
  --primary-strong: #0a1521;
  --primary-foreground: #ffffff;
  --secondary: #ebf2ff;
  --secondary-foreground: #0D1B2A;
  --muted: #eef2f8;
  --muted-foreground: #60708a;
  --accent: #C9922A;
  --accent-foreground: #ffffff;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(15, 39, 68, 0.13);
  --input: transparent;
  --input-background: #f8faff;
  --switch-background: #c8d4e4;
  --ring: rgba(21, 52, 91, 0.22);

  --font-weight-medium: 500;
  --font-weight-normal: 400;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 10px 22px rgba(11, 25, 44, 0.07);
  --shadow-md: 0 20px 46px rgba(11, 25, 44, 0.11);
  --shadow-lg: 0 28px 60px rgba(11, 25, 44, 0.14);

  --container: 1220px;
  --pad: 24px;

  --sidebar: #132b4a;
  --sidebar-foreground: #ffffff;
  --sidebar-primary: #c89a5f;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #21476f;
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: rgba(255, 255, 255, 0.13);
  --sidebar-ring: #c89a5f;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--foreground);
  background:
    radial-gradient(circle at 0% 0%, rgba(200, 154, 95, 0.14), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(21, 52, 91, 0.12), transparent 44%),
    var(--background);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary-strong);
}

h1 { font-weight: 800; font-size: 3.5rem; }
h2 { font-weight: 700; font-size: 2.75rem; }
h3 { font-weight: 600; font-size: 1.8rem; }

/* Ensure body text and form elements always use the sans font */
input,
button,
select,
textarea {
  font-family: var(--font-sans);
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) var(--pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid rgba(15, 39, 68, 0.09);
  background: rgba(255, 255, 255, 0.82);
  isolation: isolate;
}

/* NOTE:
   `backdrop-filter` on an ancestor breaks `position: fixed` descendants in many browsers.
   Use a pseudo-element for the blur so mobile overlays (like the nav panel) remain viewport-fixed. */
@supports ((-webkit-backdrop-filter: blur(4px)) or (backdrop-filter: blur(4px))) {
  .site-header {
    background: transparent;
  }

  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    pointer-events: none;
    z-index: 0;
  }

  .site-header .container {
    position: relative;
    z-index: 1;
  }
}

@supports not ((-webkit-backdrop-filter: blur(4px)) or (backdrop-filter: blur(4px))) {
  .site-header {
    background: #ffffff;
  }
}

.site-header .container {
  padding-top: 0;
  padding-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 14% 0%, rgba(200, 154, 95, 0.16), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(21, 52, 91, 0.35), transparent 55%),
    linear-gradient(180deg, #0f2440 0%, #0b1a2f 100%);
  color: rgba(255, 255, 255, 0.86);
}

.footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
  align-items: start;
  padding-top: 22px;
  padding-bottom: 8px;
}

@media (max-width: 980px) {
  .footer {
    grid-template-columns: 1fr 1fr;
  }
}

.footer__brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer__tagline {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
}

.footer__desc {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.78);
}

.footer__title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(200, 154, 95, 0.95);
  font-family: var(--font-display);
}

.footer__social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.footer__social a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.footer__list a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  word-break: break-word;
}

.footer__list a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__menu a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.footer__menu a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
}

.footer__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 10px;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.footer__meta a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.slm-noWrap {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .slm-noWrap {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 18px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer__menu {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Admin-only Edit Page button (global, all pages) ── */
.slm-edit-page-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0D1B2A;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(201, 146, 42, 0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.slm-edit-page-btn:hover {
  background: #1a3a5c;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
  color: #ffffff;
  text-decoration: none;
}

@media print {
  .slm-edit-page-btn { display: none !important; }
}