/* ── Design tokens ─────────────────────────────────────────────────────────── */
/*
  Font notes:
  • Cormorant Garamond = stand-in for The Seasons (licensed)
  • Inter = stand-in for Proxima Nova (licensed)
  To swap in licensed fonts, add @font-face blocks here and update
  --font-heading and --font-body below.
*/
:root {
  --navy:        #2b3a4a;
  --beige:       #f5f1ed;
  --white:       #ffffff;
  --peach:       #e8b4a0;
  --terracotta:  #d4a89a;
  --green:       #4a7c59;
  --green-dark:  #3d6849;
  --green-light: #eaf2ec;
  --border:      #e2ddd8;
  --muted:       #8a8480;
  --err:         #7a2929;
  --ok:          #4a7c59;
  --warn-bg:     #fefaef;

  --badge-youtube: #c0392b;
  --badge-pdf:     #1e5fa5;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --w:         900px;
  --header-h:  90px;
  --pad:       2.5rem;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--beige);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ── Focus ─────────────────────────────────────────────────────────────────── */
* { outline: none; }
*:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar              { width: 5px; }
::-webkit-scrollbar-track        { background: transparent; }
::-webkit-scrollbar-thumb        { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: var(--muted); }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  overflow: hidden;
}
.header-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-glyph { height: 64px; width: 64px; object-fit: contain; flex-shrink: 0; }
.brand-name  { font-size: 1.45rem; color: var(--navy); line-height: 1; }
.brand-bold  { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-italic { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-style: normal; letter-spacing: 0.01em; margin-left: -0.2em; }

.site-nav { display: flex; gap: 2.5rem; }
.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--green); }

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  padding: 0.25rem 0;
}

/* ── Mobile nav drawer ─────────────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.mobile-nav .nav-link { font-size: 1rem; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  overflow: hidden;
  padding: 4rem 2rem;
}
.hero-inner {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.6;
}
.hero-powered {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-legal {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.6rem;
  opacity: 0.75;
}
.hero-legal a {
  color: var(--muted);
  text-decoration: underline;
}

/* Decorative peach circle */
.hero-decor {
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: var(--peach);
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}

/* ── Search form ───────────────────────────────────────────────────────────── */
.search-form { width: 100%; }
.search-row {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-row:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.12);
}
.search-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: transparent;
  border: none;
  padding: 0.9rem 1rem;
  min-width: 0;
}
.search-input::placeholder { color: var(--muted); }

.btn-search {
  flex-shrink: 0;
  background: var(--green);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-search:hover  { background: var(--green-dark); }
.btn-search:active { opacity: 0.9; }

.btn-mic {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.btn-mic:hover { color: var(--green); }
.btn-mic.listening {
  color: var(--err);
  animation: micPulse 1.1s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Compact search bar in results state */
.search-form--compact .search-input { font-size: 0.95rem; padding: 0.75rem 1rem; }
.search-form--compact .btn-search   { padding: 0.7rem 1.4rem; font-size: 0.875rem; }

/* ── Results section ───────────────────────────────────────────────────────── */
.results-section { background: var(--beige); min-height: calc(100vh - var(--header-h)); }

.results-search-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}
.results-search-bar .content-inner { max-width: var(--w); margin: 0 auto; }

.content-inner { max-width: var(--w); margin: 0 auto; padding: var(--pad) 2rem; }

.results-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* ── Result cards (accordion) ──────────────────────────────────────────────── */
.query-results { display: flex; flex-direction: column; gap: 0; }

.result-wrap { animation: fadeUp 0.25s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.result-card:first-child { border-radius: 8px 8px 0 0; }
.result-card:last-of-type {
  border-radius: 0 0 8px 8px;
  border-bottom: 1px solid var(--border);
}
.result-card:only-child { border-radius: 8px; border-bottom: 1px solid var(--border); }

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s;
  border-radius: inherit;
}
.result-card-header:hover { background: rgba(43,58,74,0.03); }

.result-card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
}
.result-card--expanded .result-card-title { color: var(--navy); }

.result-card-chevron {
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.2s;
  line-height: 1;
}

.result-card-body {
  padding: 0.25rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

/* ── Answer bullets ────────────────────────────────────────────────────────── */
.bullets { list-style: none; margin-bottom: 0.75rem; }
.bullets li {
  padding: 0.6rem 0;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--navy);
  animation: bulletIn 0.2s ease both;
}
.bullets li:last-child { border-bottom: none; }
.bullets li:nth-child(1) { animation-delay: 0.03s; }
.bullets li:nth-child(2) { animation-delay: 0.08s; }
.bullets li:nth-child(3) { animation-delay: 0.13s; }
.bullets li:nth-child(4) { animation-delay: 0.18s; }
@keyframes bulletIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0);    }
}
.bullets li::before { display: none; }

/* ── Bullet toggle (header + expandable detail) ───────────────────────────── */
.bullet-toggle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  gap: 0.5rem;
}
.bullet-label {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--navy);
}
.bullet-chevron {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--green);
  transition: transform 0.18s ease;
  line-height: 1.5;
  width: 1.1rem;
  text-align: center;
}
.bullet-detail {
  margin-top: 0.35rem;
  padding-left: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
  border-left: 2px solid var(--border);
}

.btn-more {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--green);
  cursor: pointer;
  padding: 0.5rem 0 0;
  display: block;
  transition: opacity 0.1s;
}
.btn-more:hover { text-decoration: underline; }

.no-answer {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.25rem 0 0.1rem;
  margin: 0;
}

.no-answer-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.4rem 0 1rem;
}

.btn-inquiry {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-inquiry:hover  { opacity: 0.85; }
.btn-inquiry:disabled { opacity: 0.5; cursor: default; }

.inquiry-thanks {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  padding: 0.5rem 0;
  margin: 0;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.inquiry-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  resize: vertical;
  line-height: 1.5;
}
.inquiry-textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.inquiry-textarea:disabled { opacity: 0.6; cursor: default; }

/* ── Glossary tooltips ───────────────────────────────────────────────────────── */
.gls {
  position: relative;
  display: inline;
  border-bottom: 1.5px dotted var(--navy);
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.1s;
}

.gls:hover,
.gls.gls--open {
  background: rgba(43, 58, 74, 0.07);
  border-bottom-style: solid;
}

.gls-tip {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  padding: 0.55rem 0.85rem;
  border-radius: 7px;
  width: 230px;
  z-index: 200;
  pointer-events: none;
  white-space: normal;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

/* Arrow pointing up toward the term */
.gls-tip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--navy);
}

@media (max-width: 480px) {
  .gls-tip {
    width: 200px;
    font-size: 0.78rem;
  }
}

/* Source card body */
.source-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.source-author { font-size: 0.875rem; color: var(--muted); }
.source-loc    { font-size: 0.8rem;   color: var(--muted); margin-left: auto; }
.passage {
  padding: 0.65rem 0.9rem;
  background: var(--beige);
  border-left: 3px solid var(--green);
  font-size: 0.875rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--navy);
  margin-top: 0.5rem;
}

/* ── Suggestion chips ────────────────────────────────────────────────────────── */
.suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.suggestion-chip {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--green);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--green);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.suggestion-chip:hover  { background: var(--green); color: var(--white); }
.suggestion-chip:active { opacity: 0.9; }

.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.loading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1rem 0;
}
.spinner {
  width: 15px; height: 15px;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  flex-shrink: 0;
}
.badge--youtube { background: #fce9e8; color: var(--badge-youtube); }
.badge--pdf     { background: #e6eef8; color: var(--badge-pdf);     }

/* ── Admin sections ────────────────────────────────────────────────────────── */
.section { border-top: 1px solid var(--border); }
.section--admin   { background: #f0ece5; }
.section--library { background: #ece8e0; }
.section-inner,
.section .content-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: var(--pad) 2rem;
}

.section-heading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.45rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.tab:hover  { color: var(--navy); }
.tab.active { color: var(--green); border-bottom-color: var(--green); }

/* ── Ingest forms ──────────────────────────────────────────────────────────── */
.ingest-form { display: flex; flex-direction: column; gap: 1rem; }
.field       { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.field-row   { display: flex; gap: 1rem; }
.field-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ingest-form input[type="url"],
.ingest-form input[type="text"] {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ingest-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.1);
}
.ingest-form input[type="file"] {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.3rem 0;
}
.ingest-form input[type="file"]::file-selector-button {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 5px;
  padding: 0.3rem 0.75rem;
  margin-right: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ingest-form input[type="file"]::file-selector-button:hover {
  background: var(--green);
  color: var(--white);
}
.btn-secondary {
  align-self: flex-start;
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover  { background: var(--green); color: var(--white); }
.btn-secondary:active { opacity: 0.9; }

/* ── Ingest status ─────────────────────────────────────────────────────────── */
.ingest-status { margin-top: 1.25rem; }
.progress { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.step {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-right: none;
  color: var(--muted);
  background: var(--white);
  transition: all 0.2s;
}
.step:last-child { border-right: 1px solid var(--border); }
.step.active {
  color: var(--green);
  border-color: var(--green);
  border-right: none;
  background: var(--green-light);
  font-weight: 600;
  z-index: 1;
  position: relative;
}
.step.active + .step { border-left-color: var(--green); }
.step.active:last-child { border-right: 1px solid var(--green); }
.step.done { color: var(--ok); opacity: 0.5; }
.step.done::after { content: ' ✓'; }
.status-ok  { color: var(--ok);  font-size: 0.95rem; font-weight: 500; }
.status-err { color: var(--err); font-size: 0.95rem; }
.caption-guide {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--warn-bg);
  border: 1px solid #e8d89f;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.7;
}
.caption-guide ol { padding-left: 1.25rem; margin-top: 0.4rem; }

/* ── Library ───────────────────────────────────────────────────────────────── */
.count-badge {
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--border);
  color: var(--muted);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}
.library-list { display: flex; flex-direction: column; }
.lib-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--border);
  margin: 0 -0.4rem;
  transition: background 0.1s;
}
.lib-row:hover      { background: rgba(74,124,89,0.04); }
.lib-row:last-child { border-bottom: none; }
.lib-info   { flex: 1; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.lib-title  { font-size: 0.95rem; font-weight: 500; }
.lib-author { font-size: 0.875rem; color: var(--muted); }
.lib-date   { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.lib-score  { font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 3px; white-space: nowrap; }
.score-high { background: #d1e7dd; color: #0a3622; }
.score-mid  { background: #fff3cd; color: #856404; }
.score-low  { background: #f8d7da; color: #842029; }
.btn-delete-source {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.lib-row:hover .btn-delete-source { opacity: 1; }
.btn-delete-source:hover { color: var(--err); }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.muted { color: var(--muted); font-size: 0.95rem; font-style: italic; }
.error { color: var(--err);   font-size: 0.95rem; }

/* ── About section ──────────────────────────────────────────────────────────── */
.about-section {
  background: var(--beige);
  padding: 5rem 2rem;
}
.about-inner {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.about-divider {
  width: 80px;
  height: 1px;
  background: var(--terracotta);
  opacity: 0.5;
}
.about-heading {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.about-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--navy);
  opacity: 0.85;
}
.about-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
}
.footer-inner {
  max-width: var(--w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}
.footer-link {
  color: var(--green);
  text-decoration: underline;
  margin-left: 0.4rem;
  white-space: nowrap;
}
.footer-link:hover { color: var(--green-dark); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Mobile ─────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --header-h: 58px; --pad: 1.25rem; }

  /* Header */
  .header-inner { padding: 0 1.25rem; }
  .brand-glyph { height: 40px; width: 40px; }
  .brand-name  { font-size: 1.2rem; }
  .site-nav     { display: none; }
  .nav-mobile-btn { display: block; }

  /* Hero — vertically centered, full-height */
  .hero {
    padding: 2rem 1.5rem 6rem;
    align-items: center;
    justify-content: center;
  }
  .hero-inner {
    text-align: center;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
  }
  .hero-heading { font-size: clamp(2.6rem, 11vw, 3.4rem); line-height: 1.12; }
  .hero-sub     { font-size: 0.95rem; max-width: 100%; }
  .hero-decor   { width: 200px; height: 200px; bottom: -60px; right: -60px; }

  /* Home search: input full-width, button full-width below */
  .search-row {
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    gap: 0.65rem;
  }
  .search-row:focus-within { box-shadow: none; border-color: transparent; }
  .search-input {
    width: 100%;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .search-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(74,124,89,0.12);
  }
  .btn-mic { padding: 0.6rem 0.85rem; }
  .btn-search {
    width: 100%;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    text-align: center;
  }

  /* Results compact search: stays inline */
  .search-form--compact .search-row {
    flex-direction: row;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    gap: 0;
  }
  .search-form--compact .search-input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0.8rem 0.9rem;
    font-size: 0.95rem;
  }
  .search-form--compact .btn-search {
    width: auto;
    border-radius: 0;
    padding: 0.8rem 1.1rem;
    font-size: 0.9rem;
  }

  /* Results page */
  .results-section { min-height: calc(100vh - var(--header-h)); }
  .results-search-bar { padding: 0.75rem 1rem; }
  .content-inner      { padding: 1.25rem 1rem 3rem; }
  .results-heading    { font-size: 2.2rem; margin-bottom: 1rem; }

  /* Cards */
  .result-card-header { padding: 0.9rem 1rem; }
  .result-card-body   { padding: 0.25rem 1rem 1rem; }
  .bullets li         { font-size: 0.925rem; line-height: 1.65; }

  /* Disclaimer */
  .disclaimer { font-size: 0.78rem; margin-top: 1rem; }

  /* Admin forms */
  .field-row { flex-direction: column; }
}
