/* Fonts served from this site (SEO #36, Oct 27): Atkinson Hyperlegible Next and Fraunces, both SIL Open Font
   License, from Google Fonts' latin and latin-ext files (src/static/fonts/README.txt). */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: italic; font-weight: 400; font-display: swap; src: url(/static/fonts/atkinson-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: italic; font-weight: 400; font-display: swap; src: url(/static/fonts/atkinson-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/atkinson-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/atkinson-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(/static/fonts/fraunces-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(/static/fonts/fraunces-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/fraunces-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/fraunces-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 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; }
}

/* ---------- Events | Groups & Resources switch (AI chat #23) ---------- */
.section-switch { background: var(--paper-deep); border-bottom: 1px solid var(--line); padding: 10px 0; }
.switch-pair { display: grid; grid-template-columns: 1fr 1fr; max-width: 520px; border: 1.5px solid var(--forest); border-radius: 999px; overflow: hidden; background: var(--card); }
.switch-pair a { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 12px; text-align: center; text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.2; color: var(--forest); }
.switch-pair a + a { border-left: 1.5px solid var(--forest); }
.switch-pair a:hover { background: var(--sage-soft); }
.switch-pair a[aria-current="page"] { background: var(--forest); color: var(--paper); }
@media (max-width: 360px) { .switch-pair a { font-size: .93rem; padding: 6px 8px; } }
/* The region's field guide beside the switch (AI chat #29): a quiet text link, wrapping below it on phones. */
.section-switch .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.section-switch .switch-pair { flex: 1 1 320px; }
.guide-buy { font-weight: 600; font-size: .95rem; color: var(--forest); }
.guide-buy[hidden] { display: none; }

/* ---------- 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; }
/* Home hero (AI chat #28, Oct 28): the logo with Cat's tagline right under it, then Coming up. */
.hero-inner { position: relative; padding: 32px 0 26px; text-align: center; }
.hero-emblem img { width: min(440px, 80%); height: auto; display: block; margin-inline: auto; filter: drop-shadow(0 14px 22px rgba(47, 74, 53, .14)); }
.hero-inner h1 { margin: 10px 0 0; font-size: clamp(1.7rem, 4.6vw, 3rem); }
.showing-region { margin: 0 0 12px; }
/* Cat's tagline (AI chat #28), above the About lede. */
.about-tagline { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.3rem, 3.5vw, 1.7rem); font-weight: 600; color: var(--forest); margin: 4px 0 8px; }
/* The home page's region choice: the Jump to a section look (one sliding row on phones), the chosen one filled. */
.home-regions { margin: 0 0 14px; }
.dir-jump.home-regions a[aria-current="true"] { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.home-regions a { padding-block: 7px; white-space: nowrap; }
.home-regions .count { font-weight: 400; opacity: .8; }
/* "Add to Google Calendar" under the region row (AI chat #28, Oct 28); it leads to the region's card below. */
.cal-jump-row { margin: -4px 0 14px; font-size: .95rem; }
.cal-jump { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--forest); padding: 6px 0; }
.cal-jump-for { color: var(--ink-soft); }
.cal-card { scroll-margin-top: 84px; }
.cal-card.is-target { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest); }
.cal-card:focus { outline: none; }
.sub-sync { font-weight: 600; color: var(--forest); }
.cal-card .sync-note { margin: -4px 0 0; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 480px) { .cal-jump-for { display: none; } }
@media (max-width: 760px) {
  .hero-inner { padding: 22px 0 20px; }
  .hero-emblem img { width: min(320px, 86%); }
}
.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: 14px 16px 4px; margin: 8px 0 18px; }
.featured-picks h2 { margin: 0 0 4px; }
.featured-picks .dir-intro { margin: 0 0 12px; }
.featured-picks .listing-grid { margin-bottom: 12px; grid-template-columns: 1fr; max-width: 640px; }
@media (max-width: 520px) { .featured-picks { padding: 14px 12px 2px; } }
/* The paid sponsored listing (AI chat #21): plain card colours with a blue rule, so it never looks like the
   ochre complimentary pick above it. */
.sponsored-pick { border: 1.5px dashed var(--blue); border-radius: var(--radius); padding: 14px 16px 4px; margin: 0 0 18px; background: var(--paper); }
.sponsored-pick h2 { margin: 0 0 4px; font-size: 1.15rem; color: var(--blue); }
.sponsored-pick .dir-intro { margin: 0 0 12px; font-size: .92rem; }
.sponsored-pick .listing-grid { margin-bottom: 12px; grid-template-columns: 1fr; max-width: 640px; }
@media (max-width: 520px) { .sponsored-pick { padding: 12px 12px 2px; } }
.badge.sponsored { background: var(--blue); color: var(--card); }
.sponsored-head { display: flex; gap: 14px; align-items: center; margin: 4px 0 6px; }
.sponsored-head h3 { margin: 0 0 2px; }
.sponsored-head .where { margin-bottom: 0; }
.sponsored-img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: var(--card); border: 1px solid var(--line); flex: none; }
.preview-banner { background: #fbe3a6; color: #5a3f05; border-radius: 10px; padding: 10px 14px; margin-top: 16px; font-weight: 600; }
.preview-wrap { padding-block: 28px 48px; }
.preview-note { background: var(--sage-soft); border-radius: 10px; padding: 10px 14px; }
.spot-form .word-count.over { color: var(--terra-text); font-weight: 700; }
.spot-form fieldset.regions { border: 0; padding: 0; margin: 4px 0 12px; background: none; }
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); }
/* Local areas (AI chat #24): right after their region. */
.chip.area { border-color: var(--forest-2); }
.area-note { margin: 10px 0 0; }
.area-subscribe { display: block; margin-top: 6px; }
.search-field input { border-color: var(--forest-2); }
.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 minmax(0, 1fr); overflow-wrap: break-word; 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: minmax(0, 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(min(300px, 100%), 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; min-width: 0; overflow-wrap: anywhere; }
.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)); }

/* Field Trip Field Guides as directory cards (AI chat #29) */
.guide-listing-cover { display: block; width: 112px; margin: 2px 0 10px; }
.guide-listing-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }

/* ---------- Cat's Approved for Homeschool ---------- */
.approved-disclosure { font-size: .95rem; color: var(--ink-soft); max-width: 62ch; margin-top: 10px; }
.approved { padding: 28px 0 48px; }
.approved-group + .approved-group { margin-top: 32px; }
.approved-h { font-size: 1.5rem; margin: 0 0 14px; }
.approved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.approved-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--sage); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.approved-card:nth-child(even) { border-top-color: var(--ochre); }
.approved-card h3 { font-size: 1.25rem; margin: 0 0 6px; overflow-wrap: anywhere; }
.approved-card .kicker { margin: 0 0 4px; }
.approved-meta { margin: 0 0 8px; }
.approved-note { margin: 0 0 14px; }
.approved-actions { margin: auto 0 0; }
.approved-empty { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- 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; }
/* Cat's pencil portrait (AI chat #28): beside the intro on wider screens, centered above it on phones. Transparent PNG, no frame. */
.about-portrait { margin: 0 auto 16px; max-width: 340px; text-align: center; }
.about-portrait img { display: block; width: 100%; height: auto; }
.about-portrait figcaption { font-size: 0.9rem; font-style: italic; color: var(--ink-soft, inherit); margin-top: 6px; }
@media (min-width: 640px) { .about-portrait { float: right; width: 42%; max-width: 300px; margin: 4px 0 16px 24px; } .about h2 { clear: both; } }
.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, .signup h1 { color: var(--paper); }
.signup h1 { font-size: clamp(1.55rem, 3vw, 2.1rem); } /* /newsletter/: the page's h1, styled like the home page's h2 */
.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.interest { margin-top: 8px; }
.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; }
}
/* Worldschooling Directory's longer name (AI chat #42): two short lines on phones, clear of the Menu button. */
@media (max-width: 480px) {
  [data-site="world"] .wordmark { font-size: 1.12rem; line-height: 1.05; }
  [data-site="world"] .wordmark span { display: block; }
}
@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; }
.head-newsletter { margin: 12px 0 0; font-weight: 600; }

/* ---------- 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, .home-regions a[aria-current="true"] .count { color: var(--sage-soft); }

/* 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; }
/* Age badge (AI chat #26): beside the cost badge, a small people icon and the ages in words. */
.age { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.6; vertical-align: middle; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); max-width: 100%; }
.age-icon { flex: none; color: var(--forest); }
.cost + .age { margin-left: 4px; }
.listing-top .cost + .age { margin-left: 0; }
.ages-line { margin: 6px 0; font-size: .92rem; }
.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-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-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; }

/* Shown only if app.js never set the form up (audit #01): it removes this note at once, so normally it never
   appears; otherwise it fades in after a few seconds. */
.needs-js { visibility: hidden; animation: needs-js-show 0s 5s forwards; color: var(--ink-soft); }
@keyframes needs-js-show { to { visibility: visible; } }

/* Beta notice and Suggest a change (AI chat #25): one quiet line under the header on every page. */
.beta-bar { margin: 0; padding: 6px 16px; text-align: center; font-size: .88rem; line-height: 1.4; color: var(--ink-soft); background: var(--ochre-soft); border-bottom: 1px solid var(--line); }
.beta-bar a { font-weight: 700; color: var(--forest); }
.beta-pill { display: inline-block; padding: 0 8px; margin-right: 4px; border-radius: 999px; background: var(--ochre-text); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.change-fields .types small { display: block; font-weight: 400; color: var(--ink-soft); }
.suggest-form .change-fields fieldset.types { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 560px) { .suggest-form > fieldset.types { grid-template-columns: 1fr 1fr; } }

/* ---------- Field guides (AI chat #29) ---------- */
.guide-wrap { padding-block: 28px 48px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.guide-card { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 22px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.guide-card h2 { margin-top: 0; }
.guide-cover img, .guide-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.guide-tagline { font-style: italic; color: var(--ink-soft); margin-top: -4px; }
.guide-price { font-size: 1.6rem; font-weight: 700; color: var(--forest); margin: 10px 0; }
.guide-price small { font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.guide-product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.guide-gallery { display: grid; gap: 18px; }
.guide-gallery figure { margin: 0; }
.guide-gallery figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; text-align: center; }
.guide-buy h2 { margin-top: 28px; }
.guide-terms li { margin-bottom: 4px; }
.guide-canceled { background: var(--blue-soft); border-radius: 10px; padding: 10px 14px; }
.guide-recover { max-width: 420px; display: grid; gap: 12px; }
@media (max-width: 720px) {
  .guide-product { grid-template-columns: minmax(0, 1fr); }
  .guide-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .guide-card { grid-template-columns: minmax(0, 1fr); }
  .guide-cover { max-width: 240px; }
}
.guide-review-note { grid-column: 1 / -1; background: var(--blue-soft); border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 0; }

/* World School resources (AI chat #3, Oct 27): listings first, hubs leading, filters folded into one control. */
.world-head { margin: 18px 0 2px; font-size: 1.35rem; }
.world-intro { margin: 0 0 10px; color: var(--ink-soft); }
.global-dir .filters > .field { display: flex; flex-direction: column; gap: 4px; max-width: 480px; margin-bottom: 10px; }
.world-filters { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.world-filters > summary { cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--forest); }
.world-filters[open] > summary { margin-bottom: 4px; }
.world-filters[open] { padding-bottom: 12px; }
.wf-active { font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
.hub-note { background: var(--sage-soft); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.lead-section { border-left: 4px solid var(--forest); padding-left: 12px; }
@media (max-width: 700px) {
  body.world-view .page-head .lede, body.world-view .head-newsletter, body.world-view .world-note { display: none; }
  .lead-section { padding-left: 8px; }
}

/* One suggestion form (AI chat #13): only the chosen kind's fields show. */
.suggest-form [hidden] { display: none !important; }

/* Cat's shopping lists (AI chat #35): text cards, and a scrolling row for the Welcome to the Museum books. */
.shop-meta { color: var(--ink-soft); margin: 4px 0 8px; }
.shop-cross { font-weight: 600; }
.shop-jump { margin: 18px 0 6px; }
.shop-by { font-weight: 700; font-size: .85rem; color: var(--forest); margin: 8px 0 2px; }
.shop-alt { font-size: .92rem; background: var(--sage-soft); border-radius: 10px; padding: 8px 12px; }
.shop-wide { grid-column: 1 / -1; min-width: 0; }
.shop-carousel { position: relative; contain: inline-size; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 10px 0 4px; padding-bottom: 8px; scrollbar-width: thin; }
.shop-carousel:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.shop-carousel ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.shop-carousel li { flex: 0 0 160px; scroll-snap-align: start; }
.shop-carousel a { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; height: 100%; min-height: 150px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--ink); }
.shop-carousel a:hover, .shop-carousel a:focus-visible { border-color: var(--forest); background: var(--sage-soft); }
.shop-book { font: 600 1.15rem var(--serif); color: var(--forest); }
.shop-series { font-size: .82rem; color: var(--ink-soft); }
.shop-go { font-weight: 600; font-size: .88rem; text-decoration: underline; }
/* Shopping list images (AI chat #35): the whole, unaltered picture fitted inside a square cream frame. */
.shop-frame { margin: 0 0 14px; }
.shop-frame img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; padding: 18px; background: #f7f1e3; border: 1px solid #cdb98f; outline: 1px solid #cdb98f; outline-offset: -8px; border-radius: 4px; box-sizing: border-box; height: auto; }
.shop-frame figcaption { font-size: .75rem; color: var(--ink-soft); margin-top: 4px; }

/* Region pick on phones (AI chat #3, Oct 27): the home list folds to "Where: X · Change region"; on Events and
   Groups the chips fold to the chosen one and the page title shrinks, so results start near the top. */
#coming-h { scroll-margin-top: 84px; }
.change-chips { display: none; font-weight: 600; font-size: .95rem; }
@media (max-width: 700px) {
  .chips.folded .chip:not([aria-pressed="true"]) { display: none; }
  .chips.folded .change-chips { display: inline-block; align-self: center; }
  /* The page title stays for screen readers; the scope heading below it ("World School resources") shows. */
  body.region-picked .page-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.world-view .world-intro { display: none; }
  body.world-view .global-dir > .result-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* Amazon product photos from the Creators API (AI chat #35): the same frame; an empty slot takes no space. */
.shop-photo:empty, .shop-cover:empty { display: none; }
.shop-cover img { display: block; width: 100%; height: 150px; object-fit: contain; background: #f7f1e3; border-radius: 6px; padding: 8px; box-sizing: border-box; }
/* The line drawing shown until a product has a photo: centred in the same cream frame, in the site's green. */
.shop-icon { display: grid; place-items: center; aspect-ratio: 2 / 1; margin: 0 0 14px; background: #f7f1e3; border: 1px solid #cdb98f; outline: 1px solid #cdb98f; outline-offset: -8px; border-radius: 4px; color: var(--forest); }
.shop-icon svg { height: 58%; width: auto; aspect-ratio: 1; opacity: .85; }

/* Regional landing pages (SEO #36): upcoming events, the region's field guide, its groups and resources. */
.region-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.region-page { padding: 28px 0 40px; }
.region-page > section { margin-bottom: 34px; }
.region-events { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.region-events li { display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.region-events p { margin: 0; }
.re-date { grid-row: span 2; font-weight: 700; color: var(--forest); font-size: .92rem; }
.re-title { font-weight: 600; }
.re-where { font-size: .92rem; color: var(--ink-soft); }
.region-more { margin: 10px 0 0; font-weight: 600; }
.region-sec h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.region-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px 22px; }
.region-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.region-guide { background: var(--sage-soft); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 34px; }
.region-guide h2 { margin-top: 0; font-size: 1.3rem; }
.region-others ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
@media (max-width: 560px) { .region-events li { grid-template-columns: 1fr; } .re-date { grid-row: auto; } }
.region-places { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.region-places a { display: inline-block; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--forest); }
.region-places a:hover { border-color: var(--forest); background: var(--sage-soft); }

/* Homeschooling FAQs (AI chat #39, #40): Cat's wording, numbered questions with stable anchors, tables kept inside the page. */
.faq .faq-q h2 { scroll-margin-top: 84px; font-size: 1.4rem; }
.faq .faq-n { color: var(--terra-text); }
.faq-toc { margin: 14px 0 6px; }
.faq-toc summary { cursor: pointer; font-weight: 700; color: var(--forest); }
.faq-toc ol { margin: 10px 0 0; padding-left: 1.6em; }
.faq-toc li { margin: 4px 0; }
.faq-related, .faq-go { font-weight: 700; }
.faq-go a::after { content: " →"; }
.faq-go a + a::after, .faq-go a:not(:last-child)::after { content: ""; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.faq-table { border-collapse: collapse; width: 100%; min-width: 320px; font-size: .95rem; background: var(--card); }
.faq-table th, .faq-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.faq-table td { text-align: center; }
.faq-table thead th { background: var(--sage-soft); }
.faq-links { font-size: .92rem; font-weight: 600; margin: 4px 0 0; }
.journal-faqs { margin: 32px 0 8px; }

/* This Week in Homeschool Texas (AI chat #41). */
.roundup .about-tagline { margin-top: -4px; }
.past-edition { background: var(--ochre-soft); border: 1px solid var(--ochre); border-radius: 10px; padding: 10px 14px; }
.share-row { margin: 18px 0 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.share-h { font-weight: 700; margin: 0 0 8px; }
.share-row ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--forest); background: var(--paper); color: var(--forest); font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; }
.share-btn:hover { background: var(--sage-soft); }
.share-btn[hidden] { display: none; }
.share-hint { margin: 8px 0 0; }
.share-status:empty { display: none; }
.rt-region { scroll-margin-top: 84px; margin-top: 28px; }
.rt-item { border-left: 3px solid var(--sage); padding: 2px 0 2px 14px; margin: 14px 0; }
.rt-item h3 { margin-bottom: .25em; }
.rt-when { margin: 0 0 .4em; }
.rt-ahead { border-left-color: var(--ochre); }
.rt-go, .rt-more { font-weight: 700; }
.review-note { background: #fff3c4; border: 1px dashed var(--ochre); border-radius: 8px; padding: 8px 12px; }
.rt-closing { margin-top: 32px; }
.roundup-link, .journal-roundup { font-weight: 700; }
.journal-roundup { margin: 32px 0 8px; }

/* Our sister projects (AI chat #44): two balanced columns on computers, one on phones; every mark in the same frame. */
.sister-projects { margin: 2em 0 1em; scroll-margin-top: 84px; }
.sister-grid { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .sister-grid { grid-template-columns: 1fr 1fr; } }
.sister { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 14px 16px; display: flex; flex-direction: column; }
.sister-mark { height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.sister-mark img { max-height: 96px; max-width: 100%; width: auto; height: auto; }
.sister .sister-name-mark { margin: 0; display: inline-block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--forest); text-align: center; line-height: 1.1; padding: 0 8px; border-top: 2px solid var(--sage); border-bottom: 2px solid var(--sage); }
.sister h3 { font-size: 1.1rem; margin: 0 0 .3em; }
.sister p { margin: 0 0 .5em; }
.sister-go { margin-top: auto !important; font-weight: 700; }
.new-here { margin: 24px 0 0; font-weight: 700; }
#how-to-use { scroll-margin-top: 84px; }

/* Cat's Pinterest graphics (AI chat #45): a small card at the end of the page, so lists stay first. */
.pin-card { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; margin-bottom: 8px; padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--line); }
.pin-card[hidden] { display: none; }
.pin-thumb { flex: none; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: zoom-in; line-height: 0; }
.pin-thumb img { width: 120px; height: auto; border-radius: 7px; }
.pin-thumb:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.pin-h { font-weight: 700; margin: 0 0 8px; color: var(--forest); }
.pin-actions { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pin-dialog { padding: 12px; border: 0; border-radius: var(--radius); background: var(--paper); max-width: min(560px, 94vw); }
.pin-dialog::backdrop { background: rgba(38, 40, 31, .7); }
.pin-dialog img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.pin-dialog form { text-align: center; margin-top: 10px; }
@media (max-width: 420px) { .pin-thumb img { width: 96px; } .pin-card .share-btn { font-size: .85rem; padding: 5px 11px; } }

/* The share carousel (AI chat #47): one image at a time, whole and uncropped; swipe or Previous / Next. */
.pin-carousel { margin-top: 32px; margin-bottom: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.pin-carousel h2 { font-size: 1.4rem; margin-bottom: .2em; }
.pc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin: 10px 0 8px; scrollbar-width: none; }
.pc-track::-webkit-scrollbar { display: none; }
.pc-track:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.pc-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; display: flex; justify-content: center; }
.pc-enlarge { padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: zoom-in; line-height: 0; }
.pc-enlarge img { width: min(320px, 70vw); height: auto; border-radius: 9px; }
.pc-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.pc-count { font-weight: 700; min-width: 4.5em; text-align: center; }
.pc-nav button:disabled { opacity: .45; cursor: default; }
.pin-carousel .pin-actions { justify-content: center; }
.pin-carousel .share-status { text-align: center; }
.sister h3 a { color: inherit; text-decoration: none; }
.sister h3 a:hover { text-decoration: underline; }
.sister-mark a { display: flex; align-items: center; justify-content: center; height: 100%; text-decoration: none; }
.sister-go a { word-break: break-word; }
.sister-soon { color: var(--ink-soft); font-weight: 600; margin-right: 6px; }

/* Amazon cards inside a Journal article (AI chat #47): two columns on computers, stacked on phones. */
.article-shop { margin: 1.6em 0; }
.article-shop-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 12px 0; }
@media (min-width: 640px) { .article-shop-grid { grid-template-columns: 1fr 1fr; } }
.article-shop-card h3 { font-size: 1.1rem; margin: 0 0 .3em; }
.article-shop-card p { margin: 0 0 .6em; }
.article-shop-go { font-weight: 700; margin-top: auto !important; }
.article-shop-more { font-weight: 700; }

/* Share buttons under each article image, and share graphics placed inside an article (AI chat #47). */
.img-share { margin-top: 10px; }
.img-share .share-btn { min-height: 36px; padding: 4px 12px; font-size: .86rem; }
.img-share .share-status { margin: 4px 0 0; }
.pin-feature { margin: 1.8em 0; text-align: center; }
.pf-enlarge { padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: zoom-in; line-height: 0; }
.pf-enlarge img { width: min(360px, 80vw); height: auto; border-radius: 9px; }
.pf-enlarge:focus-visible, .pc-enlarge:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.pin-feature .pin-actions { justify-content: center; }
.shop-photo-link { display: block; text-decoration: none; }
.companion-talk { margin-top: 2.5rem; }

/* Support page (AI chat #49): Cat's Bitcoin card shown whole, address and buttons beside it (below on phones). */
.support { display: grid; gap: 28px; padding-block: 28px 48px; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; }
.support-card { margin: 0; }
.support-card img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 2px 14px rgba(0, 0, 0, .12); }
.support-give h2 { margin-top: 0; }
.support-label { display: block; font-weight: 600; margin: 14px 0 6px; }
.support-address { display: flex; flex-wrap: wrap; gap: 8px; }
.support-address input { flex: 1 1 100%; min-width: 0; font: .95rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.support-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.support-notes { font-size: .95rem; }
@media (max-width: 760px) { .support { grid-template-columns: minmax(0, 1fr); } .support-card { max-width: 440px; margin-inline: auto; width: 100%; } }
