/* =================================================================
   THE ENCYCLOPEDIA VIRGINISLANDIA — Shared Stylesheet
   Canonical styles for all microsites in the encyclopedia.
   Site-specific overrides go in each site's own style.css.

   Sections:
    1. Reset & Constants
    2. Theme: Light (default)
    3. Theme: Dark
    4. Theme: VI Proud
    5. Accessible Overlay
    6. Base Typography & Body
    7. Preview Banner & Madras Bar
    8. Layout (Sidebar + Main)
    9. Sidebar Navigation & Controls
   10. Mobile Sidebar (Drawer + Overlay + Hamburger)
   11. Header / Masthead
   12. Content Sections & Body Text
   13. Cards
   14. Pullquotes & Principles
   15. Connected Entries & Chips
   16. Badges
   17. Stats Bar
   18. Footer
   19. Responsive Breakpoints
   20. Feedback Form
   ================================================================= */

/* -----------------------------------------------------------------
   1. RESET & CONSTANTS
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

:root {
  /* Madras palette (constant across all themes) */
  --madras-amber: #D4850A;
  --madras-turquoise: #1A9B8A;
  --madras-red: #C4382A;
  --madras-blue: #2458A8;
  --madras-pink: #D45C8A;
  --madras-gradient: linear-gradient(to right,
    var(--madras-amber) 0%, var(--madras-amber) 20%,
    var(--madras-turquoise) 20%, var(--madras-turquoise) 40%,
    var(--madras-red) 40%, var(--madras-red) 60%,
    var(--madras-blue) 60%, var(--madras-blue) 80%,
    var(--madras-pink) 80%, var(--madras-pink) 100%
  );

  /* Typography — override --font-serif in site CSS if needed */
  --font-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, 'Helvetica Neue', sans-serif;
}

/* -----------------------------------------------------------------
   2. THEME: LIGHT (default)
   ----------------------------------------------------------------- */
:root,
[data-theme="light"] {
  --bg: #FAF6F0;
  --bg-surface: #F0EBE3;
  --bg-card: #FFFFFF;
  --text-primary: #2C2416;
  --text-secondary: #6B5D4F;
  --text-muted: #786A5C;
  --accent: #8B6914;
  --accent-light: #D4A843;
  --accent-faint: rgba(184, 134, 11, 0.08);
  --border: #E5DFD5;
  --link: #7A6B3A;
  --sidebar-bg: #2C2416;
  --sidebar-text: #D4CFC7;
  --sidebar-active: rgba(184, 134, 11, 0.15);
  --font-weight-body: 400;
  --font-weight-heading: 700;
  --shadow: 0 1px 3px rgba(44, 36, 22, 0.08);
  --shadow-hover: 0 2px 8px rgba(184, 134, 11, 0.15);
  --card-border: #E5DFD5;
  --madras-bar-display: none;
}

/* -----------------------------------------------------------------
   3. THEME: DARK
   ----------------------------------------------------------------- */
[data-theme="dark"] {
  --bg: #1A1917;
  --bg-surface: #242220;
  --bg-card: #2E2C2A;
  --text-primary: #E0DED8;
  --text-secondary: #B8B4AC;
  --text-muted: #8A8580;
  --accent: #E8C547;
  --accent-light: #F0D060;
  --accent-faint: rgba(232, 197, 71, 0.10);
  --border: rgba(255, 255, 255, 0.10);
  --link: #E8C547;
  --sidebar-bg: #141311;
  --sidebar-text: #B8B4AC;
  --sidebar-active: rgba(232, 197, 71, 0.15);
  --font-weight-body: 350;
  --font-weight-heading: 650;
  --shadow: none;
  --shadow-hover: none;
  --card-border: rgba(255, 255, 255, 0.08);
  --madras-bar-display: none;
}

/* -----------------------------------------------------------------
   4. THEME: VI PROUD (vibrant)
   ----------------------------------------------------------------- */
[data-theme="vibrant"] {
  --bg: #FFF8E7;
  --bg-surface: #FFEEBB;
  --bg-card: #FFFDF5;
  --text-primary: #2A1500;
  --text-secondary: #4A2E10;
  --text-muted: #7A5C3A;
  --accent: #E8930A;
  --accent-light: #FFB020;
  --accent-faint: rgba(232, 147, 10, 0.18);
  --border: #F0C860;
  --link: #1A70C0;
  --sidebar-bg: #1A9B8A;
  --sidebar-text: #FFFFFF;
  --sidebar-active: rgba(255, 255, 255, 0.25);
  --font-weight-body: 400;
  --font-weight-heading: 700;
  --shadow: 0 2px 8px rgba(212, 133, 10, 0.15);
  --shadow-hover: 0 4px 16px rgba(212, 133, 10, 0.25);
  --card-border: #F0C860;
  --madras-bar-display: block;
}

/* -----------------------------------------------------------------
   5. ACCESSIBLE OVERLAY (stacks on any theme)
   ----------------------------------------------------------------- */
[data-accessible="true"] {
  font-size: 18px !important;
  line-height: 1.6 !important;
}
[data-accessible="true"] .body-text {
  font-size: 17px;
  line-height: 1.7;
}

/* -----------------------------------------------------------------
   6. BASE TYPOGRAPHY & BODY
   ----------------------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--font-weight-body);
  line-height: 1.8;
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.bo {
  color: var(--text-primary);
  font-weight: 600;
}

/* -----------------------------------------------------------------
   7. PREVIEW BANNER & MADRAS BAR
   ----------------------------------------------------------------- */
.preview-banner {
  background: var(--text-primary);
  color: var(--bg);
  text-align: center;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: sticky;
  top: 0;
  z-index: 100;
  line-height: 1.5;
}
.preview-banner strong {
  color: var(--accent-light);
}

.madras-bar-sticky {
  height: 5px;
  background: var(--madras-gradient);
  position: sticky;
  top: 41px;
  z-index: 99;
  display: var(--madras-bar-display);
}

.madras-bar {
  height: 4px;
  border-radius: 2px;
  margin: 36px 0;
  background: var(--madras-gradient);
}

/* -----------------------------------------------------------------
   8. LAYOUT (Sidebar + Main)
   ----------------------------------------------------------------- */
.app-layout {
  display: flex;
}

.main-content {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

/* -----------------------------------------------------------------
   9. SIDEBAR NAVIGATION & CONTROLS
   ----------------------------------------------------------------- */
.sidebar {
  background: var(--sidebar-bg);
  padding: 28px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-desktop {
  width: 280px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: none;
}

.sidebar-mobile {
  width: 280px;
  position: relative;
}

/* Sidebar branding */
.sidebar-logo-prefix {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.2;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.sidebar-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 6px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
.sidebar-byline {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--sidebar-text);
  opacity: 0.6;
  margin-bottom: 24px;
}

/* Presented-by line (microsites only — hub omits this) */
.sidebar-presented-by {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sidebar-text);
  opacity: 0.5;
  margin-bottom: 24px;
  line-height: 1.4;
}
.sidebar-presented-by a {
  color: var(--sidebar-text);
  text-decoration: none;
  opacity: 0.7;
}
.sidebar-presented-by a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Section label */
.sidebar-section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sidebar-text);
  opacity: 0.5;
  margin-bottom: 12px;
}

/* Navigation items */
.sidebar-nav-item {
  display: block;
  padding: 7px 12px;
  border-radius: 4px;
  margin-bottom: 2px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--sidebar-text);
  font-weight: 400;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sidebar-nav-item:hover {
  background: var(--sidebar-active);
  text-decoration: none;
}
.sidebar-nav-item.active {
  color: var(--accent-light);
  font-weight: 600;
  background: var(--sidebar-active);
}

/* Theme/accessible controls */
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 3px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--sidebar-text);
  font-weight: 400;
  transition: background 0.15s;
}
.theme-btn:hover {
  background: var(--sidebar-active);
}
.theme-btn.active {
  background: var(--sidebar-active);
  color: var(--accent-light);
  font-weight: 600;
}

.accessible-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 8px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--sidebar-text);
  font-weight: 400;
  transition: background 0.15s;
}
.accessible-btn:hover {
  background: var(--sidebar-active);
}
.accessible-btn.active {
  background: var(--sidebar-active);
  color: var(--accent-light);
  font-weight: 600;
}
.accessible-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 2px solid var(--sidebar-text);
  font-size: 10px;
  flex-shrink: 0;
}
.accessible-btn.active .accessible-check {
  border-color: var(--accent-light);
}

/* -----------------------------------------------------------------
   10. MOBILE SIDEBAR (Drawer + Overlay + Hamburger)
   ----------------------------------------------------------------- */
.sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.hamburger-btn {
  position: fixed;
  top: 56px;
  left: 16px;
  z-index: 300;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--sidebar-bg);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.hamburger-btn span {
  width: 18px;
  height: 2px;
  background: var(--sidebar-text);
  border-radius: 1px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
}
.mobile-overlay[hidden] {
  display: none;
}
.mobile-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.mobile-overlay .sidebar-mobile {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  height: 100vh;
}

/* -----------------------------------------------------------------
   11. HEADER / MASTHEAD
   ----------------------------------------------------------------- */
.masthead {
  padding: 80px 0 56px;
  text-align: center;
}
.masthead-presented-by {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  opacity: 0.75;
  margin-bottom: 22px;
}
.masthead-presented-by a {
  color: var(--text-muted);
}
.masthead-prefix {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 0;
}
.masthead-title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.0;
}
.masthead-title .title-accent {
  color: var(--accent);
}
.masthead-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 28px;
  max-width: 320px;
}
.masthead-rule-line {
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.masthead-rule-diamond {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  margin: 0 14px;
  opacity: 0.5;
}
.masthead-subtitle {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.masthead-coming-soon {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* -----------------------------------------------------------------
   12. CONTENT SECTIONS & BODY TEXT
   ----------------------------------------------------------------- */
.content-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section-number {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.sn-num {
  opacity: 0.5;
  margin-right: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: var(--font-weight-heading);
  color: var(--text-primary);
  margin: 0 0 18px 0;
  line-height: 1.15;
  letter-spacing: 0.2px;
}

.body-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: 680px;
}

/* Disclaimer block (for microsites covering living entities) */
.entity-disclaimer {
  background: var(--accent-faint);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 16px 22px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}
.entity-disclaimer a {
  color: var(--accent);
  font-weight: 500;
}

/* Demo/preview notice */
.demo-notice {
  background: var(--accent-faint);
  border: 1px solid rgba(184, 134, 11, 0.13);
  border-radius: 6px;
  padding: 14px 22px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}
.demo-notice strong {
  color: var(--accent);
}

/* -----------------------------------------------------------------
   13. CARDS
   ----------------------------------------------------------------- */

/* Generic content card */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.card-category {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 14px;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.card-subtitle {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.card-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.card-body p {
  margin-bottom: 14px;
}

/* Scope/topic cards grid */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.scope-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 22px 24px;
}
.scope-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.scope-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Cluster/numbered cards */
.clusters-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.cluster-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
}
.cluster-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  width: 40px;
  text-align: center;
  line-height: 1;
  padding-top: 2px;
}
.cluster-body { flex: 1; }
.cluster-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cluster-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}
.cluster-examples {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* Microsite directory cards grid */
.microsites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.microsite-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.microsite-domain {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3px;
}
.microsite-topic {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.microsite-cluster {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* -----------------------------------------------------------------
   14. PULLQUOTES & PRINCIPLES
   ----------------------------------------------------------------- */
.pullquote {
  margin: 24px 0;
  padding: 20px 26px;
  border-left: 3px solid var(--accent);
  background: var(--accent-faint);
  border-radius: 0 6px 6px 0;
}
.pullquote-text {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 6px;
}
.pullquote-attribution {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
}

.principle {
  margin-bottom: 28px;
  padding-left: 22px;
  border-left: 3px solid var(--accent-faint);
}
.principle-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.principle-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

/* Depth hierarchy items */
.depth-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 3px solid var(--accent-faint);
}
.depth-item--primary {
  border-left-color: var(--accent);
}
.depth-level {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 4px;
}
.depth-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.depth-domain {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.depth-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* -----------------------------------------------------------------
   15. CONNECTED ENTRIES & CHIPS
   ----------------------------------------------------------------- */
.connected-entries {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.connected-header {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.chip {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-right: 6px;
  margin-bottom: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.chip:hover {
  background: var(--accent-faint);
  border-color: var(--accent);
  text-decoration: none;
}
.chip-cat {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* -----------------------------------------------------------------
   16. BADGES
   ----------------------------------------------------------------- */
.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-right: 6px;
  margin-bottom: 4px;
}
.badge-usvi-original    { color: #6B4E00; background: rgba(184, 134, 11, 0.12); }
.badge-west-african     { color: #5A3F14; background: rgba(123, 91, 42, 0.12); }
.badge-taino            { color: #6B4E00; background: rgba(139, 105, 20, 0.12); }
.badge-danish           { color: #34506A; background: rgba(74, 99, 128, 0.12); }
.badge-caribbean-creole { color: #1A6B5E; background: rgba(46, 139, 122, 0.12); }
.badge-east-indian      { color: #7A4A14; background: rgba(184, 115, 51, 0.12); }
.badge-puerto-rican     { color: #6E3518; background: rgba(160, 82, 45, 0.12); }
.badge-british          { color: #4A5A6A; background: rgba(107, 123, 141, 0.12); }
.badge-french           { color: #6B3040; background: rgba(139, 69, 87, 0.12); }

/* -----------------------------------------------------------------
   17. STATS BAR
   ----------------------------------------------------------------- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Theme swatches display */
.theme-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.theme-swatch {
  border-radius: 6px;
  padding: 22px;
  border-style: solid;
  border-width: 1px;
}
.swatch-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
  margin-bottom: 8px;
}
.swatch-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
}
.swatch-body {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.8;
}

/* -----------------------------------------------------------------
   18. FOOTER
   ----------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0;
  text-align: center;
}
.footer-logo-prefix {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.footer-location {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.footer-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}
.footer-body p {
  margin: 0 0 14px 0;
}
.footer-body p:last-child {
  margin-bottom: 24px;
}
.footer-body strong {
  color: var(--text-primary);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links a,
.footer-links span {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}
.footer-links a:hover {
  opacity: 1;
}
.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* -----------------------------------------------------------------
   20. FEEDBACK FORM
   ----------------------------------------------------------------- */

.feedback-section {
  border-top: 2px solid var(--accent);
  padding-top: 48px;
  margin-top: 48px;
}
.feedback-intro {
  margin-bottom: 32px;
}
.feedback-form {
  max-width: 640px;
}
.feedback-form-group {
  margin-bottom: 24px;
}
.feedback-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.feedback-type-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.feedback-type-option {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.feedback-type-option:hover {
  border-color: var(--accent);
}
.feedback-type-option.selected {
  border-color: var(--accent);
  background: var(--accent-faint, rgba(184, 134, 11, 0.06));
}
.feedback-type-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.feedback-type-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.feedback-type-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.feedback-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 6px;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.feedback-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.feedback-textarea::placeholder {
  color: var(--text-muted);
}
.feedback-char-count {
  text-align: right;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.feedback-char-count.near-limit {
  color: #C4382A;
  font-weight: 600;
}
.feedback-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.feedback-input:focus {
  outline: none;
  border-color: var(--accent);
}
.feedback-input::placeholder {
  color: var(--text-muted);
}
.feedback-helper {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
  line-height: 1.5;
}
.turnstile-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.feedback-submit {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.feedback-submit:hover:not(:disabled) {
  opacity: 0.9;
}
.feedback-submit:active:not(:disabled) {
  transform: scale(0.98);
}
.feedback-submit:disabled {
  opacity: 0.4;
  cursor: default;
}
.feedback-submit.submitting {
  animation: feedback-pulse 1.5s ease-in-out infinite;
}
@keyframes feedback-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Success state */
.feedback-success {
  text-align: center;
  padding: 40px 20px;
}
.feedback-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1A7A3A;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  animation: feedback-pop 0.4s ease-out;
}
@keyframes feedback-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.feedback-success-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feedback-success-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* Error state */
.feedback-error {
  background: #FDF0F0;
  border: 1px solid #C4382A;
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 16px;
}
.feedback-error-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #C4382A;
  line-height: 1.5;
  margin-bottom: 8px;
}
.feedback-error-fallback {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
}
.feedback-error-fallback a {
  color: var(--accent);
  text-decoration: underline;
}

/* Rate limited state */
.feedback-rate-limited {
  background: #FFF8E7;
  border: 1px solid #B8860B;
  border-radius: 6px;
  padding: 24px 20px;
  text-align: center;
}
.feedback-rate-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: #856404;
  margin-bottom: 8px;
}
.feedback-rate-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #856404;
  line-height: 1.5;
}

/* Loading state */
.feedback-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
}
.feedback-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: feedback-spin 0.8s linear infinite;
}
@keyframes feedback-spin {
  to { transform: rotate(360deg); }
}

/* -----------------------------------------------------------------
   19. RESPONSIVE BREAKPOINTS
   ----------------------------------------------------------------- */

/* Desktop: show sidebar, hide hamburger */
@media (min-width: 900px) {
  .sidebar-desktop { display: flex; }
  .hamburger-btn { display: none; }
  .mobile-overlay { display: none !important; }
}

/* Tablet: hide desktop sidebar */
@media (max-width: 899px) {
  .sidebar-desktop { display: none; }
}

/* Phone */
@media (max-width: 600px) {
  .main-content { padding: 0 20px; }
  .masthead { padding: 64px 0 40px; }
  .masthead-title { font-size: 40px; }
  .masthead-subtitle { font-size: 18px; }
  .stats-bar { gap: 32px; }
  .stat-number { font-size: 36px; }
  .section-title { font-size: 28px; }
  .feedback-type-group { grid-template-columns: 1fr; }
  .feedback-section { padding-top: 32px; margin-top: 32px; }
}

/* Small phone */
@media (max-width: 480px) {
  .scope-grid { grid-template-columns: 1fr; }
  .microsites-grid { grid-template-columns: 1fr; }
  .theme-swatches { grid-template-columns: 1fr; }
  .cluster-card { flex-direction: column; gap: 8px; }
  .cluster-num { width: auto; text-align: left; }
}
