@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Roboto:wght@400;500;600;700&display=swap');

:root {
  --accent-primary: #0F2847;
  --accent-gold: #C9A227;
  --accent-cream: #F7F6F1;
  --bg-primary: #F7F6F1;
  --bg-secondary: #EEEDE7;
  --text-primary: #182538;
  --text-secondary: #596779;
  --shadow-light: rgba(15,40,71,.12);
  --shadow-medium: rgba(15,40,71,.18);
  --font-body: 'Roboto', sans-serif;
  --font-primary: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --spm-navy-dark: #0A1628;
  --spm-navy: #0F2847;
  --spm-navy-light: #1A3A5C;
  --spm-gold: #C9A227;
  --spm-gold-light: #D4AF37;
  --spm-paper: #F7F6F1;
  --spm-surface: #FFFFFF;
  --spm-ink: #182538;
  --spm-muted: #596779;
  --spm-line: #D8DEE5;
  --spm-font: 'Roboto', sans-serif;
  --spm-heading: 'Montserrat', sans-serif;
  --spm-pill-bg: #F2E8CF;
  --spm-pill-text: #172B43;
  --spm-pill-border: #92701D;
  --spm-pill-hover-bg: #E5D5A7;
}

body { font-family: var(--spm-font); }
.spm-header, .spm-footer { font-family: var(--spm-font); box-sizing: border-box; }
.spm-header *, .spm-footer * { box-sizing: border-box; }
.spm-header {
  position: sticky; top: 0; z-index: 9999; background: var(--spm-paper);
  border-bottom: 1px solid var(--spm-line); box-shadow: 0 4px 18px rgba(10,22,40,.07);
}
.spm-nav-wrap {
  max-width: 1440px; min-height: 82px; padding: 12px 30px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.spm-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.spm-brand img { display: block; width: auto; height: 55px; max-width: 190px; object-fit: contain; }
.spm-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(10px,1.15vw,20px); }
.spm-nav a { color: var(--spm-navy-dark); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.spm-nav a:not(.spm-book):hover, .spm-nav a[aria-current="page"] { color: #80600A; }
.spm-book, .spm-button {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  border: 1px solid var(--spm-gold); border-radius: 5px; color: var(--spm-navy-dark)!important;
  background: var(--spm-gold); padding: 12px 17px; font-weight: 700!important; transition: transform .18s, background .18s;
}
.spm-book:hover, .spm-button:hover { transform: translateY(-2px); background: var(--spm-gold-light); }
.spm-theme, .spm-menu-toggle {
  border: 1px solid var(--spm-line); background: transparent; color: var(--spm-navy);
  border-radius: 5px; height: 40px; min-width: 40px; cursor: pointer; font: 600 13px var(--spm-font);
}
.spm-menu-toggle { display: none; font-size: 21px; }
.spm-footer { color: #E9EEF4; background: var(--spm-navy-dark); border-top: 4px solid var(--spm-gold); }
.spm-footer-inner { max-width: 1200px; margin: auto; padding: 34px 28px 20px; }
.spm-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 26px; }
.spm-footer h2 { font: 700 17px var(--spm-heading); color: #F5F1E6; margin: 0 0 12px; }
.spm-footer p, .spm-footer a { color: #C7D0DB; font-size: 14px; line-height: 1.7; }
.spm-footer a { text-decoration: none; }
.spm-footer a:hover { color: var(--spm-gold-light); text-decoration: underline; }
.spm-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; }
.spm-footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding-top: 16px; font-size: 12px; color: #B6C0CC; }
.spm-footer-bottom p { margin: 4px 0; font-size: 12px; }
body[data-theme="dark"] .spm-header { background: #101D2D; border-color: #314155; }
body[data-theme="dark"] .spm-nav a, body[data-theme="dark"] .spm-theme, body[data-theme="dark"] .spm-menu-toggle { color: #F4F0E7; }
body[data-theme="dark"] .spm-theme, body[data-theme="dark"] .spm-menu-toggle { border-color: #45566A; }
body[data-theme="dark"]:not(.authored-guide-page) main { color: #E5ECF3; background: #0B1726; }
body[data-theme="dark"]:not(.authored-guide-page) main section:not(.hero):not(.page-hero):not(.hero-section) { background-color: #101E2F !important; color: #E5ECF3; }
body[data-theme="dark"]:not(.authored-guide-page) main .card,
body[data-theme="dark"]:not(.authored-guide-page) main .feature,
body[data-theme="dark"]:not(.authored-guide-page) main .item,
body[data-theme="dark"]:not(.authored-guide-page) main .panel,
body[data-theme="dark"]:not(.authored-guide-page) main .booking,
body[data-theme="dark"]:not(.authored-guide-page) main .confidential,
body[data-theme="dark"]:not(.authored-guide-page) main .quote,
body[data-theme="dark"]:not(.authored-guide-page) main .resource,
body[data-theme="dark"]:not(.authored-guide-page) main .article,
body[data-theme="dark"]:not(.authored-guide-page) main .placeholder,
body[data-theme="dark"]:not(.authored-guide-page) main .case,
body[data-theme="dark"]:not(.authored-guide-page) main .services > article,
body[data-theme="dark"]:not(.authored-guide-page) main .service { background-color: #17283B !important; border-color: #38495A; color: #E5ECF3; }
body[data-theme="dark"]:not(.authored-guide-page) main h2,
body[data-theme="dark"]:not(.authored-guide-page) main h3,
body[data-theme="dark"]:not(.authored-guide-page) main strong,
body[data-theme="dark"]:not(.authored-guide-page) main .article h3 a { color: #E7D28A; }
body[data-theme="dark"]:not(.authored-guide-page) main p,
body[data-theme="dark"]:not(.authored-guide-page) main .muted,
body[data-theme="dark"]:not(.authored-guide-page) main .small,
body[data-theme="dark"]:not(.authored-guide-page) main .notice { color: #C1CBD6; }
/* Pair opaque pill fills with explicit text colors, independent of the page underneath. */
body[data-theme="dark"],
body :is(.hero, .page-hero, .hero-section) {
  --spm-pill-bg: #213950;
  --spm-pill-text: #FFF0C7;
  --spm-pill-border: #D4AF37;
  --spm-pill-hover-bg: #2C4A65;
}
body :is(.quick > a, .taglist > span, .article-tags .tag, .hero-badge, .article-badge, .publication-badge) {
  color: var(--spm-pill-text) !important;
  background: var(--spm-pill-bg) !important;
  border: 1px solid var(--spm-pill-border) !important;
  font-weight: 600;
  opacity: 1 !important;
  text-shadow: none;
  box-shadow: 0 1px 3px rgba(10, 22, 40, .12);
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
body :is(.quick > a, .taglist > span, .article-tags .tag, .hero-badge, .article-badge, .publication-badge) * {
  color: inherit !important;
}
body :is(.quick > a, .article-tags a.tag, a.hero-badge, a.article-badge, a.publication-badge):is(:hover, :focus-visible) {
  background: var(--spm-pill-hover-bg) !important;
}
body :is(.quick > a, .article-tags a.tag, a.hero-badge, a.article-badge, a.publication-badge):focus-visible {
  outline: 3px solid var(--spm-pill-text);
  outline-offset: 3px;
}
.sheet { box-sizing: border-box; }
.more-quotes { margin-top: 20px; }
.more-quotes summary { color: #715a19; font-weight: 700; cursor: pointer; padding: 12px 0; }
.more-quotes[open] summary { margin-bottom: 12px; }
body[data-theme="dark"] .more-quotes summary { color: #E7D28A; }
@media (max-width: 640px) {
  .hero .hero-layout h1 { font-size: 31px; }
  .hero:has(.hero-layout) { padding: 34px 0; }
  .service-grid .service { min-height: 0; padding: 18px; }
  .hero-layout .bio { margin-top: 16px; }
}
@media print {
  body main.sheet { width: auto!important; min-height: 0!important; margin: 0!important; padding: .38in .5in!important; font-size: 9pt!important; line-height: 1.25!important; }
  body main.sheet, body main.sheet * { color: #182538!important; background-color: transparent!important; box-shadow: none!important; }
  body main.sheet h1 { font-size: 21pt; }
  body main.sheet h2 { font-size: 10pt; margin: 12px 0 5px; }
  body main.sheet p, body main.sheet ul { margin: 6px 0; }
  body main.sheet .service-list { grid-template-columns: 1fr 1fr; gap: 7px; }
  body main.sheet .facts { grid-template-columns: 1fr 1fr; gap: 4px; }
}
@media (max-width: 1120px) {
  .spm-nav-wrap { min-height: 72px; padding: 10px 18px; }
  .spm-menu-toggle { display: inline-grid; place-items: center; }
  .spm-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 15px 20px 20px;
    background: var(--spm-paper); box-shadow: 0 14px 18px rgba(10,22,40,.12);
    border-top: 1px solid var(--spm-line); align-items: stretch; flex-direction: column; gap: 0;
  }
  body[data-theme="dark"] .spm-nav { background: #101D2D; }
  .spm-nav.is-open { display: flex; }
  .spm-nav a { padding: 12px 5px; border-bottom: 1px solid rgba(100,115,130,.13); }
  .spm-nav .spm-book { margin-top: 12px; border: 0; padding: 13px; }
}
@media (max-width: 640px) {
  .spm-brand img { height: 46px; max-width: 150px; }
  .spm-nav-wrap { padding: 9px 14px; }
  .spm-footer-top { grid-template-columns: 1fr; gap: 20px; }
  .spm-footer-links { grid-template-columns: 1fr 1fr; }
}
