/* dolores: a quiet editorial directory.
   One palette: warm ivory, deep green and ink, with a muted green accent.
   Section and role colours come from /theme.css (editable in the CMS). */

:root {
  /* CMS-editable roles (theme.css overrides these). */
  --masthead-bg: #F6F4ED;
  --hero: #F6F4ED;
  --band: #E9EDE5;
  --green: #243C32;
  --feature-bg: #F6F4ED;
  --accent: #49624F;
  --journal-bg: #F6F4ED;

  /* Fixed tokens. */
  --ivory: #F6F4ED;
  --surface: #FFFDF8;
  --ink: #1C201C;
  --ink-soft: #4A5049;
  --on-green: #F1F0E8;
  --on-green-soft: #C7CEC3;
  --line: #D9D3C3;
  --line-strong: #B5AD98;
  --error: #8A1C1C;
  --focus-ring: #243C32;

  --display: 'Sofia Sans Extra Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --ui: 'Sofia Sans Semi Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  --margin: clamp(18px, 4vw, 56px);
  --gutter: clamp(16px, 2.2vw, 28px);
  --max: 1280px;
  --section-pad: clamp(2.5rem, 5vw, 4.25rem);

  /* Rhema Chatbot Studio tokens: the launcher sits bottom-right above content. */
  --chatbot-color: var(--green);
  --chatbot-on-color: #FFFFFF;
  --chatbot-background: var(--ivory);
  --chatbot-surface: #E9EDE5;
  --chatbot-text: #1C201C;
  --chatbot-font: 'Sofia Sans Semi Condensed', sans-serif;
  --chatbot-radius: 2px;
  --chat-accent: var(--green);
  --chat-accent-ink: #FFFFFF;
  --chat-surface: var(--ivory);
  --chat-ink: var(--ink);
  --chat-font: var(--ui);
  --chat-radius: 2px;
  --chat-offset: clamp(16px, 3vw, 28px);
  --chat-z: 60;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

main:focus { outline: none; }

h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin-top: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--green);
  color: var(--on-green);
  padding: .75rem 1rem;
  font-family: var(--ui);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Type roles ---------------------------------------------------------------
   Serif = editorial voice (page and section headings, stories, body).
   Condensed sans = directory voice (category and provider names, metadata, controls). */

.page-title,
.intro-title {
  max-width: 20ch;
  margin: 0 0 .75rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.section-title {
  margin: 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.lede {
  max-width: 40rem;
  margin: 0;
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  line-height: 1.5;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: .2rem;
  margin: 0 0 .5rem;
  color: var(--accent);
  font-family: var(--ui);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.3;
}
.meta > span + span::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1px;
  margin: 0 .55em;
  vertical-align: middle;
  background: currentColor;
  opacity: .6;
}
.meta a { text-decoration: none; }
.meta a:hover { text-decoration: underline; }

/* Buttons and links ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1.3rem;
  border: 1px solid var(--green);
  border-radius: 2px;
  background: transparent;
  color: var(--green);
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--green); color: var(--on-green); }

.text-link {
  color: var(--green);
  font-family: var(--ui);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1.25rem 0 0;
}

/* Masthead ------------------------------------------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--masthead-bg);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  max-width: var(--max);
  margin-inline: auto;
  padding: .8rem var(--margin);
}
.wordmark {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
  text-decoration: none;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem clamp(1rem, 2.2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-family: var(--ui);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
}
.site-nav a:hover { border-bottom-color: var(--line-strong); }
.site-nav a[aria-current] { border-bottom-color: var(--green); color: var(--green); }

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: .4rem .9rem;
  border: 1px solid var(--green);
  border-radius: 2px;
  background: transparent;
  color: var(--green);
  font-family: var(--ui);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--masthead-bg);
    border-bottom: 1px solid var(--line);
    padding: .25rem var(--margin) 1rem;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .js .site-nav a {
    display: block;
    padding: .7rem 0;
    border-bottom: 0;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
  }
  .js .site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
}

.preview-bar {
  margin: 0;
  padding: .4rem var(--margin);
  background: var(--band);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--ui);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.35;
}
.preview-bar span { display: block; max-width: calc(var(--max) - 2 * var(--margin)); margin-inline: auto; }

/* Homepage intro ------------------------------------------------------------------- */

.intro {
  background: var(--hero);
  padding-block: clamp(1.75rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
}
.intro-copy { grid-column: 1 / span 7; }
.intro-text { max-width: 36rem; margin: 0 0 1.4rem; font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.5; }

.finder {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) auto;
  gap: .75rem;
  align-items: end;
  max-width: 46rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}
.finder-field label {
  display: block;
  margin-bottom: .3rem;
  color: var(--ink);
  font-family: var(--ui);
  font-size: .88rem;
  font-weight: 700;
}
.finder input,
.finder select {
  width: 100%;
  min-height: 48px;
  padding: .55rem .75rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-color: #fff;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.05rem;
}
.finder input::placeholder { color: #6E726B; }

.intro-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1.25rem;
  margin: .9rem 0 0;
  font-family: var(--ui);
  font-size: .95rem;
}
.intro-links span { color: var(--ink-soft); }

.intro-figure { grid-column: 9 / -1; margin: 0; }
.intro-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 420px;
  object-fit: cover;
  object-position: 68% 50%;
  background: #27302A url('/images/fallback-botanical.svg') center / cover no-repeat;
}
.intro-figure figcaption { margin-top: .45rem; color: var(--ink-soft); font-family: var(--ui); font-size: .78rem; }

/* Shared selects (home finder and directory filters) */
.finder select,
.filter-select select {
  appearance: none;
  padding-right: 2.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23243C32' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
}

/* Sections ------------------------------------------------------------------------ */

.section { padding-block: var(--section-pad); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.section-note { max-width: 40rem; margin: -.25rem 0 1.5rem; color: var(--ink-soft); font-size: 1rem; }
.row-title {
  margin: 0 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
}

/* Category browse */
.browse { background: var(--band); padding-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .8rem;
  height: 100%;
  min-height: 6rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
}
.category-tile:hover { border-color: var(--green); }
.category-tile:hover .category-name { text-decoration: underline; text-decoration-thickness: 1px; }
.category-name {
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  font-weight: 600;
  line-height: 1.05;
}
.category-count { color: var(--accent); font-family: var(--ui); font-size: .85rem; font-weight: 600; }

/* Provider entries */
.provider-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}
.entry { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.entry-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #27302A url('/images/fallback-botanical.svg') center / cover no-repeat;
}
.entry-media img { width: 100%; height: 100%; object-fit: cover; }
.entry-title {
  margin: 0 0 .4rem;
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.9vw, 1.65rem);
  font-weight: 600;
  line-height: 1.05;
}
.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.entry-summary { margin: 0 0 .7rem; font-size: .98rem; line-height: 1.5; }

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin: 0;
  padding: .15rem .5rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--accent);
  font-family: var(--ui);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.demo-badge::before {
  content: '';
  width: .45em; height: .45em;
  border-radius: 50%;
  background: currentColor;
}

/* Sample placements ---------------------------------------------------------------
   Descriptive names on purpose: generic "ad" classes are hidden by some content filters. */

.interlude-band { padding-block: 0 var(--section-pad); }
.dolores-placement { font-family: var(--ui); min-width: 0; }
.placement-tag {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .5rem;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.placement-tag::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.placement-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.placement-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--band); }
.placement-photo img { width: 100%; height: 100%; object-fit: cover; }
.placement-words { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.15rem 1.15rem; }
.placement-maker { color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: .03em; }
.placement-title { color: var(--green); font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.05; }
.placement-blurb { color: var(--ink-soft); font-family: var(--serif); font-size: .98rem; line-height: 1.45; }
a.placement-link:hover .placement-title { text-decoration: underline; text-decoration-thickness: 1px; }

.placement-wide .placement-link { grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); align-items: stretch; }
.placement-wide .placement-photo { aspect-ratio: auto; min-height: 140px; }
.placement-wide .placement-words { justify-content: center; padding: 1.15rem clamp(1.15rem, 3vw, 2rem); }

/* Homepage stories ----------------------------------------------------------------- */

.stories { background: var(--feature-bg); border-top: 1px solid var(--line); }
.story-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}
.story-card { min-width: 0; }
.story-card-media {
  display: block;
  aspect-ratio: 3 / 2;
  margin-bottom: .85rem;
  overflow: hidden;
  background: #27302A url('/images/fallback-botanical.svg') center / cover no-repeat;
}
.story-card-media img { width: 100%; height: 100%; object-fit: cover; }
.story-card-title {
  margin: 0 0 .6rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.2;
}
.story-card-title a,
.journal-title a,
.journal-list-title a,
.story-row-title a { text-decoration: none; }
.story-card-title a:hover,
.journal-title a:hover,
.journal-list-title a:hover,
.story-row-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.story-card .pull { margin: .25rem 0 .75rem; font-size: 1.05rem; }

.pull {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-style: italic;
  line-height: 1.38;
}
.pull p { margin: 0; }

.fiction-tag {
  margin: 0;
  color: var(--accent);
  font-family: var(--ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.journal-home { background: var(--journal-bg); border-top: 1px solid var(--line); }
.journal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}
.journal-feature { grid-column: 1 / span 7; }
.journal-feature-media {
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #27302A url('/images/fallback-botanical.svg') center / cover no-repeat;
}
.journal-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.journal-title {
  margin: 0 0 .5rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
}
.journal-dek { max-width: 38rem; margin: 0; font-size: 1.05rem; }
.journal-side { grid-column: 9 / -1; display: grid; gap: 2rem; }
.journal-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.journal-list li { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--line); }
.journal-list-title {
  margin: 0 0 .35rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
}
.journal-list p:last-child { margin: 0; font-size: .98rem; }

.close-band { background: var(--band); }
.close-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: end;
}
.close-grid > :first-child { grid-column: 1 / span 6; }
.close-grid > :last-child { grid-column: 8 / -1; }
.close-grid p { margin: 0; }

/* Footer --------------------------------------------------------------------------- */

.site-footer {
  --focus-ring: var(--on-green);
  background: var(--green);
  color: var(--on-green);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.75rem var(--gutter);
}
.footer-mark {
  margin: 0 0 .4rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
}
.footer-tag { max-width: 24rem; margin: 0; color: var(--on-green-soft); font-size: 1rem; }
.footer-nav { margin: 0; padding: 0; list-style: none; font-family: var(--ui); font-weight: 600; }
.footer-nav li + li { margin-top: .3rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-note { margin: 0; color: var(--on-green-soft); font-size: .95rem; }
.footer-base {
  margin-top: 2.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(241, 240, 232, .22);
  color: var(--on-green-soft);
  font-family: var(--ui);
  font-size: .82rem;
}

/* Inner page heads -------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.page-head.is-band { background: var(--band); }

/* Directory page ----------------------------------------------------------------------- */

.filters { display: grid; gap: 1rem; margin-top: 1.25rem; }
.filter-search label,
.filter-select label {
  display: block;
  margin-bottom: .35rem;
  padding: 0;
  color: var(--ink);
  font-family: var(--ui);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.filter-search input {
  width: 100%;
  max-width: 40rem;
  min-height: 52px;
  padding: .55rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.15rem;
}
.filter-search input::placeholder { color: #6E726B; }

/* Category, subcategory and town sit in one row; actions trail at the end. */
.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: .9rem 1.1rem;
  max-width: 64rem;
}
.filter-select { min-width: 0; }
.filter-select select {
  width: 100%;
  min-height: 48px;
  padding-block: .5rem;
  padding-left: .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-color: #fff;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1rem;
}
.filter-actions { display: flex; align-items: center; gap: 1.25rem; min-height: 48px; }
.js .filters.is-live .filters-apply {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.js .filters.is-live .filters-apply:focus { position: static; width: auto; height: auto; clip: auto; }

.dir-results { padding-bottom: var(--section-pad); }
.results-count {
  margin: 0;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 600;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem) var(--gutter);
  padding-block: 2rem;
}
.results-grid .dolores-placement { align-self: start; }
[aria-busy='true'] { opacity: .6; transition: opacity .2s; }

.empty { max-width: 40rem; padding-block: 2.5rem 1rem; }
.empty-title {
  margin: 0 0 .6rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.15;
}
.empty-links { padding-left: 1.2rem; font-family: var(--ui); font-weight: 600; }
.empty-links li + li { margin-top: .4rem; }

.pager { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .5rem; font-family: var(--ui); font-weight: 700; }
.pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--green);
  text-decoration: none;
}
.pager a:hover { border-color: var(--green); }
.pager a[aria-current] { background: var(--green); border-color: var(--green); color: var(--on-green); }

/* Provider page ------------------------------------------------------------------------- */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
  padding-block: clamp(2rem, 4.5vw, 3.5rem);
}
.listing-media { grid-column: 1 / span 5; margin: 0; }
.listing-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #27302A url('/images/fallback-botanical.svg') center / cover no-repeat;
}
.listing-media figcaption { margin-top: .45rem; color: var(--ink-soft); font-family: var(--ui); font-size: .78rem; }
.listing-text { grid-column: 7 / -1; }
.crumbs { margin-bottom: .75rem; color: var(--ink-soft); font-family: var(--ui); font-size: .88rem; font-weight: 600; }
.listing-title {
  margin: 0 0 1rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.demo-notice {
  margin: 0 0 1.25rem;
  padding: .8rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--band);
  font-family: var(--ui);
  font-size: .98rem;
  line-height: 1.45;
}
.listing-summary { font-size: 1.2rem; line-height: 1.5; }
.facts { margin: 1.5rem 0; border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { padding-top: .15rem; color: var(--accent); font-family: var(--ui); font-size: .85rem; font-weight: 700; letter-spacing: .03em; }
.facts dd { margin: 0; }
.listing-body p { margin-bottom: 1rem; }
.listing-sub { margin: 1.75rem 0 .6rem; color: var(--green); font-family: var(--ui); font-size: 1rem; font-weight: 700; letter-spacing: .03em; }
.offerings { padding-left: 1.2rem; }
.listing-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.demo-reveal {
  margin: 1rem 0 0;
  padding-left: .9rem;
  border-left: 3px solid var(--accent);
  font-family: var(--ui);
  font-size: .98rem;
}
.listing-disclaimer { margin-top: 1.75rem; color: var(--ink-soft); font-size: .95rem; }
.related { padding-bottom: var(--section-pad); }

/* Story index pages ------------------------------------------------------------------- */

.index-list { padding-bottom: var(--section-pad); }
.story-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.story-row-media {
  grid-column: 1 / span 5;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #27302A url('/images/fallback-botanical.svg') center / cover no-repeat;
}
.story-row-media img { width: 100%; height: 100%; object-fit: cover; }
.story-row-text { grid-column: 7 / -1; }
.story-row.is-flipped .story-row-media { grid-column: 8 / -1; grid-row: 1; }
.story-row.is-flipped .story-row-text { grid-column: 1 / span 6; grid-row: 1; }
.story-row-title {
  margin: 0 0 .75rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 500;
  line-height: 1.12;
}
.story-row-dek { font-size: 1.05rem; }

/* Story detail ---------------------------------------------------------------------------- */

.story { padding-bottom: var(--section-pad); }
.story-head { padding-top: clamp(2rem, 4.5vw, 3.25rem); }
.story-title {
  max-width: 22ch;
  margin: 0 0 1rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.story-dek { max-width: 40rem; font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.45; }
.story-byline { color: var(--ink-soft); font-family: var(--ui); font-size: .92rem; font-weight: 600; letter-spacing: .02em; }
.story-figure {
  max-width: var(--max);
  margin: clamp(1.5rem, 3vw, 2.5rem) auto;
  padding-inline: var(--margin);
}
.story-figure img {
  width: 100%;
  height: clamp(240px, 50vh, 560px);
  object-fit: cover;
  background: #27302A url('/images/fallback-botanical.svg') center / cover no-repeat;
}
.story-figure figcaption.wrap { margin-top: .45rem; padding-inline: 0; color: var(--ink-soft); font-family: var(--ui); font-size: .78rem; }

.story-body {
  max-width: calc(40rem + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
  font-size: 1.15rem;
  line-height: 1.7;
}
.story-body p { margin-bottom: 1.1em; }
.story-body h2 {
  margin: 2.25rem 0 .8rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
}
.story-body h3 { margin: 1.75rem 0 .5rem; color: var(--green); font-family: var(--ui); font-size: 1.1rem; }
.story-body ul, .story-body ol { margin-bottom: 1.4em; padding-left: 1.4rem; }
.story-body li + li { margin-top: .4rem; }
.story-body .qa-q {
  margin: 2.1rem 0 .5rem;
  color: var(--green);
  font-family: var(--ui);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}
.story-body .pull { margin: 2.25rem 0; }
.fiction-note {
  margin-bottom: 2rem !important;
  padding: .8rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--band);
  font-family: var(--ui);
  font-size: .95rem;
  line-height: 1.5;
}
.story-listing { margin-top: 2.25rem; font-family: var(--ui); font-weight: 600; }
.story-placement { margin-top: 2.5rem; }
.story-placement .placement-link { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.story-placement .placement-photo { aspect-ratio: auto; min-height: 130px; }
.story-more { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.story-more ul { margin: 0; padding: 0; list-style: none; }
.story-more li {
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
}
.story-more a { text-decoration: none; }
.story-more a:hover { text-decoration: underline; }

/* Advertise ------------------------------------------------------------------------------ */

.adv-head-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: end;
}
.adv-head-grid > :first-child { grid-column: 1 / span 5; margin: 0; }
.adv-head-grid > :last-child { grid-column: 7 / -1; }
.adv-notice {
  margin: 1.1rem 0 0;
  padding: .8rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--band);
  font-family: var(--ui);
  font-size: 1rem;
}

.formats { padding-bottom: var(--section-pad); }
.format {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.format-text { grid-column: 1 / span 4; }
.format-preview { grid-column: 6 / -1; }
.format-tile .dolores-placement { max-width: 22rem; }
.format-credit .dolores-placement { max-width: 32rem; }
.format-title {
  margin: 0 0 .6rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.15;
}
.format-text p { font-size: 1.02rem; }
.format-detail { color: var(--ink-soft); }

.inquiry { background: var(--band); padding-block: var(--section-pad); }
.inquiry-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.inquiry-grid > :first-child { grid-column: 1 / span 5; }
.inquiry-grid > :last-child { grid-column: 7 / -1; }
.inquiry-grid .section-title { margin-bottom: 1rem; }
.inquiry-form { display: grid; gap: 1.25rem; max-width: 40rem; }
.field label {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--ui);
  font-size: .95rem;
  font-weight: 700;
}
.optional { font-weight: 500; }
.field input:not([type='checkbox']),
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: .65rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.05rem;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.45; }
.field [aria-invalid='true'] { border: 2px solid var(--error); }
.field-hint { margin: 0 0 .4rem; color: var(--ink-soft); font-family: var(--ui); font-size: .9rem; }
.field-error { margin: 0 0 .4rem; color: var(--error); font-family: var(--ui); font-size: .92rem; font-weight: 700; }
.field-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .75rem; align-items: start; }
.field-check .field-error { grid-column: 1 / -1; }
.field-check input { width: 1.4rem; height: 1.4rem; margin: .1rem 0 0; accent-color: var(--green); }
.field-check label { margin: 0; font-weight: 600; }
.field-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice-success {
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  font-family: var(--ui);
}
.notice-success p { margin: 0; }
.notice-error {
  margin-bottom: 1.25rem;
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--error);
  background: var(--surface);
  color: var(--error);
  font-family: var(--ui);
  font-weight: 600;
}

/* Prose pages ------------------------------------------------------------------------------ */

.prose {
  max-width: calc(40rem + 2 * var(--margin));
  margin-inline: 0;
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
  padding-block: clamp(2rem, 4vw, 3rem) var(--section-pad);
}
.prose-lede { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.45; }
.prose h2 {
  margin: 2.25rem 0 .6rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
}
.prose ul { padding-left: 1.3rem; }
.prose li + li { margin-top: .5rem; }

/* Responsive -------------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .intro-copy,
  .journal-feature, .journal-side,
  .close-grid > :first-child, .close-grid > :last-child,
  .listing-media, .listing-text,
  .story-row-media, .story-row-text,
  .story-row.is-flipped .story-row-media, .story-row.is-flipped .story-row-text,
  .adv-head-grid > :first-child, .adv-head-grid > :last-child,
  .format-text, .format-preview,
  .inquiry-grid > :first-child, .inquiry-grid > :last-child { grid-column: 1 / -1; }

  .story-row.is-flipped .story-row-media,
  .story-row.is-flipped .story-row-text { grid-row: auto; }
  /* The botanical image is supporting mood only; it gives way to search and categories. */
  .intro-figure { display: none; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-row, .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-cards { grid-template-columns: minmax(0, 1fr); }
  .story-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 1.25rem; align-items: start; }
  .story-card-media { grid-row: span 4; margin-bottom: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-note { grid-column: 1 / -1; }
  .listing-media img { aspect-ratio: 16 / 10; }
  /* Provider identity comes before the illustrative photo on narrow screens. */
  .listing-text { order: -1; }
  .listing-media { max-width: 36rem; }
  .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .filter-category, .filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .intro { padding-block: 1.25rem 1.5rem; }
  .intro-title { font-size: clamp(2rem, 9vw, 2.4rem); margin-bottom: .5rem; }
  .intro-text { margin-bottom: 1rem; font-size: 1.04rem; }
  .finder { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; padding: .75rem; }
  .finder-q { grid-column: 1 / -1; }
  .page-title { font-size: clamp(1.95rem, 8.5vw, 2.4rem); }
  .category-grid { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .category-tile { flex-direction: row; align-items: baseline; min-height: 0; padding: .8rem 1rem; }
  .category-count { flex: none; }
  .provider-row, .results-grid { grid-template-columns: minmax(0, 1fr); }
  .provider-row .entry,
  .results-grid .entry { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; }
  .entry-media { aspect-ratio: 1; }
  .placement-wide .placement-link,
  .story-placement .placement-link { grid-template-columns: minmax(0, 1fr); }
  .placement-wide .placement-photo,
  .story-placement .placement-photo { aspect-ratio: 16 / 9; min-height: 0; }
  .story-card { grid-template-columns: minmax(0, 1fr); }
  .story-card-media { grid-row: auto; margin-bottom: .75rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .dir-head { padding-block: 1.1rem 1.25rem; }
  .dir-head .lede { font-size: 1rem; }
  .filters { gap: .75rem; margin-top: 1rem; }
  .filter-search input { min-height: 48px; font-size: 1.05rem; }
  .filter-row { gap: .75rem; }
  .filter-actions { min-height: 0; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .story-body { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .masthead, .preview-bar, .site-footer, .dolores-placement, .interlude-band { display: none; }
  body { background: #fff; color: #000; }
}
