/* ============================================================================
   visitccnc.com: town pages (Murphy, Andrews, Brasstown)
   Loads after tokens.css and homepage.css, only on the "Town page" template,
   and reuses their components: hero, split, section head, events table, FAQ.
   Ported from build/town-pages/town.css (option A, the guidebook, plus the
   planner's grouped Things to Do, Casey 2026-10-09). Tokens only; no colors
   or sizes of its own beyond what the comps already used.
   ========================================================================= */

/* ---- Page frame --------------------------------------------------------- */
/* Block layouts add a gap between top-level blocks; the bands carry their own
   spacing, so on a town page they sit flush, as in the comps. */
.wp-site-blocks > .town-page,
.wp-site-blocks > .town-page + * { margin-block-start: 0; }
.town-page > * { margin-block: 0; }
/* The width/height attributes are there to reserve space; the comps' aspect
   ratios decide the shape. */
.town-page .split-media img { height: auto; }

/* ---- Shared ------------------------------------------------------------- */
.crumbs { font-size: var(--t-small); color: var(--sage); margin: 0 0 14px; }
.crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }
/* On a light ground. Repeated here because this file loads after directory.css on
   shared pages, and its .crumbs would otherwise win and leave pale text on cream. */
.crumbs--ink { color: var(--ink-2); }
.crumbs--ink a:hover { color: var(--sun); }

.t-link {
  font-weight: 700; color: var(--forest);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.t-link:hover { color: var(--sun); }

.split-text .t-small-head { font-weight: 700; color: var(--ink); margin: 18px 0 6px; }

/* A ruled list of named places, each with one line under it. */
.t-more {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; column-gap: var(--gap);
  border-top: 1px solid var(--line);
}
.t-more li { border-bottom: 1px solid var(--line); }
.t-more a, .t-more .t-item { display: block; padding: 14px 0; text-decoration: none; }
.t-more b {
  display: block; font-family: var(--face-display); font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 1; font-size: 1.12rem;
  transition: color var(--t-fast) var(--ease);
}
.t-more span { display: block; font-size: 0.93rem; color: var(--ink-2); margin-top: 2px; }
.t-more a:hover b { color: var(--sun); }

/* The closing invitation, then where to go next. */
.t-invite {
  font-family: var(--face-display); font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.3;
  max-width: 34ch; margin: 0 0 clamp(26px, 3vw, 40px);
  text-wrap: balance;
}
.t-next {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--gap);
}
.t-next li { flex: 1 1 15rem; }
.t-next a {
  display: block; text-decoration: none; padding-top: 14px;
  border-top: 2px solid var(--forest);
}
.t-next b { display: block; font-size: 1.05rem; transition: color var(--t-fast) var(--ease); }
.t-next span { display: block; font-size: 0.93rem; color: var(--ink-2); margin-top: 2px; }
.t-next a:hover b { color: var(--sun); }

/* ---- Hero and quick facts ----------------------------------------------- */
.t-hero .hero-body { padding-block: clamp(64px, 9vw, 128px); }

/* Facts, not links: same strip as the homepage quick links, no hover. */
.t-facts { background: var(--forest); color: #fff; }
.t-facts dl {
  max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter);
  /* One even row on a wide screen; never a lone item wrapped onto a second row. */
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: clamp(28px, 4vw, 64px);
}
.t-facts dl > div { padding: 20px 0; }
.t-facts dt { font-weight: 700; }
.t-facts dd { margin: 3px 0 0; font-size: var(--t-small); color: var(--sage); }
@media (max-width: 900px) {
  /* Four facts become 2 x 2; three stay one row until a phone, then stack. */
  .t-facts dl { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .t-facts dl:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-facts dl > div { padding: 14px 0; }
}
@media (max-width: 560px) {
  .t-facts dl:has(> div:nth-child(3):last-child) { grid-template-columns: 1fr; }
  .t-facts dl:has(> div:nth-child(3):last-child) > div { padding: 10px 0; }
}

/* ---- Splits ------------------------------------------------------------- */
.t-stops { margin: 0 0 18px; padding-left: 1.1em; color: var(--ink-2); }
.t-stops li { margin: 3px 0; }
.t-stops li::marker { color: var(--sun); }

/* A split with no photo yet: the text keeps its measure, no empty column. */
.t-solo .split-text { max-width: 62ch; }

/* ---- Things to do, and eat/drink/stay: grouped ruled lists -------------- */
.t-groups {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.t-groups h3 { margin-bottom: 10px; }

/* ---- History ------------------------------------------------------------ */
.t-history {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.t-history h2 { margin-bottom: 16px; }
.t-history p { color: var(--ink-2); max-width: 54ch; }
@media (max-width: 860px) { .t-history { grid-template-columns: 1fr; } }
