/* Homeschool Texas — field-guide palette: paper, forest, sage, bluebonnet, ochre, a little terracotta. */
:root {
  color-scheme: light;
  --paper: #f5eedd;
  --paper-deep: #ebe1c6;
  --card: #fbf8ef;
  --ink: #26281f;
  --ink-soft: #4b4e42;
  --line: #d6cbab;
  --forest: #2f4a35;
  --forest-2: #3e6047;
  --sage: #9aab8c;
  --sage-soft: #e1e6d4;
  --blue: #4a6598;
  --blue-soft: #dfe5f0;
  --ochre: #c49a3a;
  --ochre-text: #82601a;
  --ochre-soft: #f3e4bd;
  --terra: #b5654a;
  --terra-text: #974a31;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(47, 74, 53, .06), 0 6px 20px -12px rgba(47, 74, 53, .35);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--terra-text); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--forest); margin: 0 0 .5em; font-optical-sizing: auto; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h1 em { font-style: italic; font-weight: 500; color: var(--blue); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; }
.eyebrow, .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terra-text); margin: 0 0 .6em; }
.kicker a { color: inherit; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* ---------- header ---------- */
.site-header { background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); margin-right: auto; }
.brand-mark { flex: none; } /* never squeezed beside the wordmark and menu on a narrow phone */
.brand-mark img { height: 46px; width: auto; display: block; }
.wordmark { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.wordmark span:last-child { font-style: italic; font-weight: 500; color: var(--blue); }
.menu-toggle { display: none; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; white-space: nowrap; }
.site-nav a:hover { background: var(--sage-soft); color: var(--forest); }
.site-nav a[aria-current="page"] { background: var(--forest); color: var(--paper); }
.site-nav .nav-cta { border: 1.5px solid var(--forest); color: var(--forest); margin-left: 6px; }
@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; font: 600 .95rem var(--sans); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--forest); background: transparent; color: var(--forest); cursor: pointer; }
  .site-nav { position: absolute; inset: 68px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .site-nav a { padding: 12px 14px; border-radius: 10px; }
  .site-nav .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- hero & page heads ---------- */
.hero, .page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sage); opacity: .45; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 64px 0 56px; }
.hero-emblem img { width: min(540px, 100%); height: auto; display: block; margin-inline: auto; filter: drop-shadow(0 14px 22px rgba(47, 74, 53, .14)); }
.hero-regions { margin-top: 28px; }
.hero-regions p { font-weight: 700; margin-bottom: 10px; }
.hero-regions ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.region-link { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; color: var(--forest); }
.region-link:hover { border-color: var(--forest); color: var(--forest); background: var(--sage-soft); }
.region-link.all { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.region-link.all:hover { background: var(--forest-2); color: var(--paper); }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 0 40px; gap: 8px; }
  .hero-emblem { order: -1; }
  .hero-emblem img { width: min(320px, 86%); margin: 0 auto 8px; }
}
.page-head .wrap { position: relative; padding: 48px 0 36px; }
.page-head h1 { margin-bottom: .3em; }

/* ---------- sections ---------- */
section, .subscribe, .suggest { scroll-margin-top: 84px; }
.home-events, .curric-band, .journal-teaser { padding: 56px 0 24px; }
.section-head { margin-bottom: 24px; }
.section-head p { color: var(--ink-soft); max-width: 62ch; margin-bottom: 0; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.band { padding: 56px 0; margin-top: 40px; }
.band-sage { background: var(--sage-soft); border-block: 1px solid var(--line); }
.sprig { display: block; width: 120px; height: 24px; margin: 8px auto 28px; color: var(--sage); }

/* ---------- buttons, badges, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--forest); background: var(--forest); color: var(--paper); font: 600 .97rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--forest-2); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--forest); }
.btn.ghost:hover { background: var(--sage-soft); }
.btn.small { padding: 6px 12px; font-size: .88rem; }
.btn[disabled] { background: var(--paper-deep); border-color: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.6; vertical-align: middle; white-space: nowrap; }
.badge.warn { background: var(--ochre-soft); color: #6b4c0e; border: 1px solid #e0c57f; }
.badge.muted { background: var(--paper-deep); color: var(--ink-soft); }
.badge.blue { background: var(--blue-soft); color: #33497a; }
.badge.cancel { background: #f3d9d0; color: #7d3420; }
.badge.featured { background: var(--forest); color: var(--paper); }
/* Featured community picks (AI chat #16): a tinted band above the directory sections. */
.featured-picks { background: var(--ochre-soft); border: 1px solid #e0c57f; border-radius: var(--radius); padding: 18px 18px 6px; margin: 8px 0 22px; }
.featured-picks h2 { margin: 0 0 4px; }
.featured-picks .dir-intro { margin: 0 0 12px; }
.featured-picks .listing-grid { margin-bottom: 12px; }
@media (max-width: 520px) { .featured-picks { padding: 14px 12px 2px; } }
mark.editor-note { background: #fbe3a6; color: #5a3f05; padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select { font: 1rem var(--sans); color: var(--ink); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); min-height: 46px; }
.field input:focus, .field select:focus { border-color: var(--blue); }
.grow { flex: 1 1 220px; }

/* ---------- filters ---------- */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 28px 0 16px; box-shadow: var(--shadow); }
.home-events .chips { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .95rem var(--sans); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--forest); cursor: pointer; min-height: 40px; }
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 14px; }
.filter-row .reset { min-height: 46px; }
.filter-row > .field[hidden] { display: none; }
.check-field { display: flex; align-items: center; gap: 8px; min-height: 46px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.check-field input { width: 20px; height: 20px; accent-color: var(--forest); }
.global-grid { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.global-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.global-card h2 { margin: 0; font-size: 1.4rem; }
.global-card .btn { margin-top: auto; }
.eyebrow a { color: inherit; }
@media (max-width: 560px) {
  .filter-row .field:not(.grow) { flex: 1 1 calc(50% - 6px); }
  .filter-row .reset { flex: 1 1 100%; }
}
.view-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.result-count { margin: 0; color: var(--ink-soft); font-weight: 600; }
.view-toggle { display: inline-flex; border: 1.5px solid var(--forest); border-radius: 999px; overflow: hidden; }
.view-toggle button { font: 600 .95rem var(--sans); border: 0; background: transparent; color: var(--forest); padding: 8px 18px; cursor: pointer; min-height: 40px; }
.view-toggle button[aria-pressed="true"] { background: var(--forest); color: var(--paper); }

/* ---------- event list ---------- */
.event-list { display: flex; flex-direction: column; gap: 14px; }
.month-h { font-family: var(--serif); font-size: 1.35rem; color: var(--forest); margin: 22px 0 2px; display: flex; align-items: center; gap: 12px; }
.month-h::after { content: ""; flex: 1; border-top: 1px dashed var(--sage); }
.event-list > .month-h:first-child { margin-top: 4px; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.event.flag { border-left: 5px solid var(--ochre); }
.event.cancelled { opacity: .7; }
.date-tile { text-align: center; background: var(--sage-soft); border-radius: 12px; padding: 10px 4px; align-self: start; color: var(--forest); }
.date-tile .mo { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-text); }
.date-tile .dd { display: block; font: 600 2rem/1.05 var(--serif); }
.date-tile .wd { display: block; font-size: .8rem; color: var(--ink-soft); }
.event h3 { margin: 0 0 4px; font-size: 1.25rem; }
.event h3 .sub { display: block; font-family: var(--sans); font-size: .98rem; font-weight: 600; color: var(--blue); margin-top: 2px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0; padding: 0; list-style: none; font-size: .96rem; color: var(--ink-soft); }
.event-meta li { display: flex; gap: 6px; }
.event-meta strong { color: var(--ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.tag { font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--paper-deep); color: var(--forest); }
.event .desc { margin: 0 0 10px; }
.confirm-note { background: var(--ochre-soft); border-radius: 10px; padding: 8px 12px; font-size: .94rem; color: #5c430d; margin: 0 0 12px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verified { font-size: .85rem; color: var(--ink-soft); margin: 10px 0 0; }
.empty { background: var(--card); border: 1px dashed var(--sage); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink-soft); }
@media (max-width: 560px) {
  .event { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .date-tile { display: flex; gap: 8px; align-items: baseline; justify-content: flex-start; padding: 6px 12px; }
  .date-tile .dd { font-size: 1.3rem; }
  .event-actions .btn { flex: 1 1 auto; }
}

/* ---------- calendar view ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cal-head h2 { margin: 0; font-size: 1.5rem; }
.cal-grid-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); text-align: center; padding: 4px 0; }
.cal-day { min-height: 104px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.cal-day.out { background: transparent; border-style: dashed; opacity: .5; }
.cal-day.today { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
button.cal-day { cursor: pointer; }
button.cal-day:hover { border-color: var(--forest); }
.cal-day[aria-pressed="true"] { background: var(--sage-soft); border-color: var(--forest); }
.cal-num { font-weight: 700; font-size: .9rem; }
.cal-ev { display: block; font-size: .78rem; line-height: 1.25; background: var(--forest); color: var(--paper); border-radius: 6px; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev.flag { background: var(--ochre-soft); color: #5c430d; }
.cal-more { font-size: .76rem; color: var(--ink-soft); }
.cal-day-list { margin-top: 18px; }
.cal-day-list h3 { font-size: 1.15rem; }
@media (max-width: 700px) {
  .cal-day { min-height: 52px; align-items: center; padding: 4px; }
  .cal-ev, .cal-more { display: none; }
  .cal-day .dots { display: flex; gap: 3px; }
  .cal-day .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--forest); }
  .cal-day .dots i.flag { background: var(--ochre); }
}
@media (min-width: 701px) { .cal-day .dots { display: none; } }

/* ---------- subscribe ---------- */
.subscribe { margin: 56px 0 16px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.cal-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cal-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.cal-card h3 { font-size: 1.08rem; margin: 0; }
.cal-card .pending-note { margin: 0; }
.cal-card details { font-size: .9rem; }
.cal-card summary { cursor: pointer; color: var(--forest); font-weight: 600; }
.copy-row { display: flex; gap: 6px; margin: 8px 0; }
.copy-row input { flex: 1; min-width: 0; font: .82rem var(--sans); padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.gcal-embed iframe { width: 100%; height: 600px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 18px; }

/* ---------- directory ---------- */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cat-grid a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); }
.cat-grid a:hover { border-color: var(--forest); }
.cat-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--forest); line-height: 1.25; }
.cat-count { font-size: .88rem; color: var(--ink-soft); }
.dir-section { margin: 28px 0; }
.dir-section > h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.dir-section > h2::after { content: ""; flex: 1; border-top: 1px dashed var(--sage); }
.dir-intro { max-width: 70ch; margin: -4px 0 14px; color: var(--ink-soft); }
.listing-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .listing-grid { grid-template-columns: 1fr; } }
.listing { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.listing-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; flex-wrap: wrap; }
.listing h3 { margin: 4px 0 2px; }
.listing .where { font-size: .92rem; color: var(--ink-soft); margin-bottom: 10px; }
.listing .where span { color: var(--blue); font-weight: 600; }
.listing .access { font-size: .94rem; }
.listing .links { display: flex; gap: 16px; font-weight: 600; margin-top: auto; margin-bottom: 0; padding-top: 6px; }
.empty-note { padding: 24px; text-align: center; color: var(--ink-soft); }

/* ---------- curriculum ---------- */
.curric-band { border-top: 1px solid transparent; }
.curric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 16px; }
.curric-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); overflow: hidden; }
.curric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(var(--blue), var(--sage)); }
.curric-card:nth-child(even)::before { background: linear-gradient(var(--ochre), var(--terra)); }
.curric-icon { width: 44px; height: 44px; color: var(--blue); margin-bottom: 8px; }
.curric-card:nth-child(even) .curric-icon { color: var(--ochre-text); }
.curric-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 4px; min-height: 1.6em; }
.curric-top .badge { background: var(--paper-deep); color: var(--ink-soft); margin-left: auto; }
.curric-card h2, .curric-card h3 { font-size: 1.45rem; }
.curric-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.curric-grid.large { margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* ---------- journal ---------- */
.post-grid { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post { max-width: 720px; padding: 48px 0 24px; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.55rem; }
.prose li { margin-bottom: .4em; }
.post-figure { margin: 1.6em 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-deep); }
.post-figure figcaption { margin-top: 8px; font-size: .92rem; color: var(--ink-soft); }
.about { padding: 32px 0 48px; }
.draft-banner { background: var(--ochre-soft); border: 1px solid #e0c57f; border-radius: 10px; padding: 10px 14px; }

/* ---------- suggest + signup ---------- */
.suggest { margin: 32px 0 56px; padding: 22px; border: 1.5px dashed var(--sage); border-radius: var(--radius); }
.suggest h2 { font-size: 1.3rem; }
.suggest p { margin: 0; }
.signup { background: var(--forest); color: var(--paper); padding: 64px 0; margin-top: 56px; position: relative; overflow: hidden; }
.signup-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.signup h2 { color: var(--paper); }
.signup .eyebrow { color: var(--ochre-soft); }
.signup-copy p { color: #dfe6d6; }
.signup-form { background: var(--card); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.signup-form fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.signup-form legend { font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--paper); font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--forest); flex: none; }
.check:has(input:checked) { border-color: var(--forest); background: var(--sage-soft); }
.check.all { grid-column: 1 / -1; }
.waitlist-form .name-email { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.suggest-wrap { padding: 32px 0 56px; }
.suggest-form { max-width: 720px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.suggest-form fieldset.types { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); } /* wraps on narrow phones */
.suggest-form fieldset.private { display: block; border-top: 1px solid var(--line); padding-top: 14px; }
.suggest-form fieldset.private > p { margin: 0 0 10px; }
.suggest-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.suggest-form .field small { font-weight: 400; }
.field textarea { font: 1rem var(--sans); color: var(--ink); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); resize: vertical; }
.field textarea:focus { border-color: var(--blue); }
.check.all small { display: block; color: var(--ink-soft); }
.check.consent { border: 0; padding: 0; background: none; font-size: .94rem; }
.check.consent:has(input:checked) { background: none; }
.hp { position: absolute; left: -9999px; }
/* Turnstile's box (65px tall) has its space kept before it loads, so the form doesn't jump. */
.signup-form .turnstile { min-height: 65px; margin: 4px 0 12px; max-width: 100%; }
.not-connected { background: var(--ochre-soft); border-radius: 10px; padding: 10px 12px; margin: 0; font-size: .94rem; color: #5c430d; }
.form-status { margin: 0; font-weight: 600; }
.form-status.error { color: var(--terra-text); }
@media (max-width: 760px) {
  .signup-inner { grid-template-columns: 1fr; gap: 20px; }
  .signup-form fieldset { grid-template-columns: 1fr; }
  .waitlist-form .name-email { grid-template-columns: 1fr; }
  .suggest-form .two { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.site-footer { background: #24382a; color: #d7dfcf; padding: 48px 0 20px; font-size: .95rem; }
.signup + .site-footer, main:has(> .signup:last-of-type) + .site-footer { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font: 600 1.25rem var(--serif); color: var(--paper); }
.footer-brand img { height: 40px; width: auto; display: block; }
.footer-h { font: 700 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ochre-soft); margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #eef2e8; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 16px; font-size: .85rem; }
.disclosure { font-style: italic; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- refinements ---------- */
.cal-grid-month { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dir-section .listing .kicker { display: none; }
.cal-card .btn { width: 100%; font-size: .9rem; padding: 9px 12px; }
@media (max-width: 440px) {
  .wordmark { font-size: 1.22rem; white-space: nowrap; }
  .brand-mark img { height: 38px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 10px; }
  .brand { gap: 7px; }
  .wordmark { font-size: 1.06rem; }
}
.gcal-view { margin-top: 18px; }
.gcal-view summary { cursor: pointer; color: var(--forest); font-weight: 600; }
.global-dir .filter-row + .filter-row { margin-top: 12px; }
.global-dir .listing-grid { margin-top: 14px; }
.more-row { text-align: center; margin: 22px 0 0; }
.global-dir .field { min-width: 0; }
.global-dir .field select { width: 100%; max-width: 100%; }
.global-dir .listing { min-width: 0; overflow-wrap: anywhere; }
.world-note { margin: 10px 0 0; }
.hero-newsletter { margin: 14px 0 0; font-weight: 600; }
.head-newsletter { margin: 12px 0 0; font-weight: 600; }
.region-link small { font-weight: 400; opacity: .8; }

/* ---------- counts, cost badges, directory sections, place picker, event and resource links ---------- */
/* Counts beside labels (AI chat #9): quiet sage-green numbers that keep their contrast when selected. */
.count { font-weight: 600; font-size: .88em; color: var(--forest-2); white-space: nowrap; }
.chip[aria-pressed="true"] .count, .region-link.all .count { color: var(--sage-soft); }
.region-link .count { margin-left: 2px; }

/* Cost badges (AI chat #10): words, not colour alone. */
.cost { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.6; white-space: nowrap; vertical-align: middle; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.cost-free, .cost-free-tuition { background: var(--sage-soft); border-color: var(--sage); color: var(--forest); }
.cost-paid { background: var(--paper-deep); color: var(--ink); }
.cost-varies { background: var(--blue-soft); border-color: #b8c4dc; color: #33497a; }
.cost-unknown { background: transparent; border-style: dashed; color: var(--ink-soft); }
.listing-top { flex-wrap: wrap; gap: 6px; }
.cost-line { margin: 6px 0; }
.cost-legend { margin: 10px 0 0; font-size: .9rem; color: var(--ink-soft); }
.cost-legend summary { cursor: pointer; font-weight: 600; color: var(--forest); width: fit-content; }
.cost-legend ul { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; gap: 6px; }
.cost-legend li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cost-legend p { margin: 4px 0 0; }

/* Directory sections (AI chat #8). */
.dir-jump { margin: 18px 0 6px; }
.dir-jump-label { font-weight: 700; margin: 0 0 6px; font-size: .92rem; color: var(--ink-soft); }
.dir-jump ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.dir-jump a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--forest); text-decoration: none; font-weight: 600; font-size: .9rem; }
.dir-jump a:hover { border-color: var(--forest); background: var(--sage-soft); }
.dir-tools { margin: 6px 0 0; }
.dir-section { scroll-margin-top: 80px; }
.dir-section > h2 .count { font-family: var(--sans); font-size: .62em; }
.dir-sub { border-top: 1px solid var(--line); }
.dir-sub:last-child { border-bottom: 1px solid var(--line); }
.dir-sub > summary { cursor: pointer; padding: 12px 4px; font-weight: 700; color: var(--forest); font-size: 1.05rem; list-style-position: inside; }
.dir-sub > summary:hover { background: var(--sage-soft); }
.dir-sub[open] > summary { margin-bottom: 6px; }
.dir-sub .listing-grid { margin-bottom: 18px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--forest); text-decoration: underline; cursor: pointer; }
.rid-note, .cross-link { margin: 12px 0; font-weight: 600; }
.rid-note { background: var(--sage-soft); border-radius: 10px; padding: 10px 14px; }
.more-row { margin: 0 0 18px; }

/* World School place picker (AI chat #3): country, then state or province, then city. */
.place-picker { margin: 8px 0 14px; }
.place-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 8px; }
.crumb { background: none; border: 0; padding: 2px 0; font: 600 1rem var(--sans); color: var(--forest); text-decoration: underline; cursor: pointer; }
.crumb[aria-current] { text-decoration: none; color: var(--ink); }
span.crumb { cursor: default; }
.place-label { font-weight: 700; font-size: .9rem; color: var(--ink-soft); margin: 10px 0 6px; }
.place-crumbs .place-label { margin: 0; }
.place-chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.chip.small { min-height: 34px; padding: 5px 12px; font-size: .9rem; width: 100%; text-align: left; border-radius: 10px; }
@media (max-width: 560px) { .place-chips { grid-template-columns: 1fr 1fr; } }

/* Event and resource links (AI chat #11). */
.view-resource { font-weight: 600; font-size: .92rem; align-self: center; }
.rel-events { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--sage-soft); font-size: .92rem; }
.rel-events .rel-h { font-weight: 700; margin: 0 0 4px; color: var(--forest); }
.rel-events ul { list-style: none; padding: 0; margin: 0 0 4px; }
.rel-events li { margin: 2px 0; }
.rel-date { font-weight: 700; margin-right: 4px; }
.rel-events p { margin: 0; }
.place-group > summary { cursor: pointer; width: fit-content; }
.place-group[open] > summary { margin-bottom: 6px; }
.field { min-width: 0; }
.field select { max-width: 100%; }
@media (max-width: 560px) {
  .dir-jump ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .dir-jump li { flex: none; }
  .chips .chip { padding: 6px 11px; font-size: .9rem; min-height: 36px; }
}

/* ---------- Paid Spotlight (AI chat #12) ---------- */
.spot-label { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terra-text); border: 1px solid var(--terra); border-radius: 999px; padding: 1px 9px; vertical-align: middle; }
.spot-label.big { font-size: .82rem; margin: 28px 0 6px; }
.spot-wrap { display: grid; gap: 28px; padding-block: 28px 48px; }
.spot-package { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); max-width: 760px; }
.spot-price { font: 600 2rem var(--serif); color: var(--forest); margin: 4px 0 10px; }
.spot-price small { font: 600 .9rem var(--sans); color: var(--ink-soft); }
.spot-terms { padding-left: 20px; }
.spot-terms li { margin: 6px 0; }
.spot-list { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.spot-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.spot-card h3 { margin: 8px 0 4px; }
.spot-note { background: var(--sage-soft); border-radius: var(--radius); padding: 6px 18px 10px; margin: 24px 0; }
.spot-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; background: var(--card); }
.spot-form legend { font-weight: 700; color: var(--forest); padding: 0 6px; }
.spot-form .field { margin-bottom: 12px; }
.spot-form .check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-weight: 500; }
.spot-form .check input { margin-top: 4px; }
.photo-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
@media (max-width: 700px) { .photo-row { grid-template-columns: 1fr; } }
.canceled-note { background: var(--ochre-soft); border-radius: 10px; padding: 10px 14px; }
.spot-article { max-width: 760px; padding-bottom: 48px; }
.spot-disclosure { background: var(--paper-deep); border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.spot-images { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 18px 0; }
.spot-images figure { margin: 0; }
.spot-images img { width: 100%; height: auto; border-radius: 12px; display: block; }
.spot-images figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 4px; }
.spot-images .credit { display: block; font-size: .8rem; }
.spot-body { font-size: 1.06rem; }
.spot-pointer { margin-top: 28px; }
