/* venue-entry.css — the entry-point blocks scripts/publish-venue-entry.cjs writes onto venue
   pages (SEO programme, 14 Oct 2026, section 7). House tokens only (css/house-system.css);
   the fallbacks match those tokens. Selectors start with div.ve so a hero's own paragraph and
   list rules cannot restyle a block. */

div.ve {
  --ve-ink: var(--house-ink, #362731);
  --ve-muted: var(--house-muted, #705866);
  --ve-rule: var(--house-rule, #eadfe6);
  --ve-mauve: var(--house-mauve, #75435f);
  --ve-paper: var(--house-paper, #ffffff);
  font-family: var(--house-sans, 'Manrope', Arial, sans-serif);
  color: var(--ve-ink);
  text-align: left;
}
div.ve *, div.ve *::before, div.ve *::after { box-sizing: border-box; }

/* ── First screen ─────────────────────────────────────────────────────── */
div.ve.ve--first-screen { margin: 14px 0 12px; padding: 14px 0 2px; border-top: 1px solid var(--ve-rule); max-width: 64ch; }
div.ve .ve-answer { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--ve-ink); max-width: none; }
div.ve .ve-answer b { font-weight: 600; }
div.ve .ve-title {
  margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ve-mauve); max-width: none;
}
div.ve .ve-rules-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 28px; }
div.ve .ve-rules-list li {
  display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 8px 0;
  border-bottom: 1px solid var(--ve-rule); font-size: 14.5px; line-height: 1.45; color: var(--ve-ink);
}
div.ve .ve-k { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ve-muted); }
div.ve .ve-v { color: var(--ve-ink); }
div.ve .ve-src { margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ve-muted); max-width: none; }
div.ve .ve-cta { margin: 12px 0 0; font-size: 15px; }
/* An outlined link: hero sections force ink text colour (house-system.css), so the link must
   read in ink on a light ground rather than white on mauve. */
div.ve .ve-cta a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 4px;
  border: 1px solid var(--ve-mauve); background: var(--ve-paper); color: var(--ve-ink); font-weight: 600; text-decoration: none;
}
div.ve .ve-cta a:hover, div.ve .ve-cta a:focus-visible { background: var(--house-pale, #f6eff3); }
@media (min-width: 760px) {
  div.ve .ve-rules-list { grid-template-columns: 1fr 1fr; }
}

/* ── Further down: cost table, compare table, quick answers, hub links ── */
div.ve.ve--cost, div.ve.ve--compare, div.ve.ve--quick { margin-top: 28px; }
div.ve .ve-h { scroll-margin-top: 96px; }
.vp-seg div.ve .ve-h { margin-top: 0; }
div.ve .ve-table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 15px; line-height: 1.5; }
div.ve .ve-table thead, div.ve .ve-table tr { background: none; }
div.ve .ve-table th, div.ve .ve-table td {
  padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--ve-rule);
  background: none; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ve-ink);
}
div.ve .ve-table thead th { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ve-muted); border-bottom: 1px solid var(--ve-ink); }
div.ve .ve-table tbody th { font-weight: 600; color: var(--ve-ink); width: auto; }
div.ve .ve-table a { color: var(--ve-ink); text-decoration: underline; text-decoration-color: var(--ve-mauve); text-underline-offset: 3px; }
div.ve .ve-cell-src { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ve-muted); }
div.ve .ve-table td.ve-td-src { font-size: 12.5px; line-height: 1.45; color: var(--ve-muted); }
div.ve .ve-note { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: var(--ve-muted); max-width: 78ch; }
div.ve .ve-qa { list-style: none; margin: 6px 0 16px; padding: 0; }
div.ve .ve-qa li { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--ve-rule); font-size: 15.5px; line-height: 1.6; color: var(--ve-ink); }
div.ve .ve-qa b { font-weight: 600; margin-right: 4px; }
div.ve .ve-hubs { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: var(--ve-ink); }
div.ve .ve-hubs span { color: var(--ve-muted); margin-right: 4px; }
div.ve .ve-hubs a { color: var(--ve-ink); text-decoration-color: var(--ve-mauve); text-underline-offset: 3px; }
/* Phones: hub links stack as 44 px rows (font-size 0 hides the " · " separators between them) and compare-table venue links are 44 px tall. */
@media (max-width: 640px) {
  div.ve .ve-hubs { font-size: 0; max-width: none; }
  div.ve .ve-hubs span { display: block; margin: 0 0 2px; font-size: 13px; line-height: 1.6; }
  div.ve .ve-hubs a { display: flex; align-items: center; min-height: 44px; font-size: 15px; line-height: 1.4; border-bottom: 1px solid var(--ve-rule); }
  div.ve .ve-table tbody th a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Phones: a rule reads as label and value on one line; each table row becomes a short card,
   so no table is wider than the screen. */
@media (max-width: 759px) {
  div.ve .ve-rules-list li { display: grid; grid-template-columns: 6.6rem 1fr; gap: 10px; align-items: baseline; padding: 7px 0; }
}
@media (max-width: 640px) {
  div.ve .ve-table, div.ve .ve-table tbody, div.ve .ve-table tr, div.ve .ve-table th, div.ve .ve-table td { display: block; width: 100%; }
  div.ve .ve-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  div.ve .ve-table tr { padding: 10px 0; border-bottom: 1px solid var(--ve-rule); }
  div.ve .ve-table th, div.ve .ve-table td { padding: 3px 0; border: 0; }
  div.ve .ve-table tbody th { font-size: 16px; margin-bottom: 4px; }
  div.ve .ve-table td[data-label] { display: grid; grid-template-columns: 6.6rem 1fr; gap: 10px; align-items: baseline; }
  div.ve .ve-table td[data-label]::before {
    content: attr(data-label); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ve-muted);
  }
}

/* ── Legacy hand-built pages: the blocks bring their own card ─────────── */
div.ve.ve--legacy { width: 100%; max-width: none; padding: 0; margin: 18px 0; border-top: 0; }
div.ve--more.ve--legacy { padding: 0 16px; margin: 28px auto; }
div.ve.ve--legacy .ve-wrap {
  max-width: 960px; margin: 0 auto; padding: 18px 20px; background: var(--ve-paper);
  border: 1px solid var(--ve-rule); border-radius: 6px; color: var(--ve-ink);
}
div.ve.ve--note { margin: 8px 0 4px; max-width: none; text-align: inherit; }
div.ve.ve--note .ve-answer { margin: 0; font-size: 13.5px; color: var(--ve-muted); }
div.ve.ve--legacy h2.ve-h {
  margin: 26px 0 10px; font-family: var(--house-serif, 'Cormorant Garamond', Georgia, serif); font-weight: 500;
  font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--ve-ink); text-align: left; letter-spacing: 0;
}
div.ve.ve--legacy h2.ve-h:first-child { margin-top: 4px; }
@media (max-width: 640px) {
  div.ve.ve--legacy .ve-wrap { padding: 14px; }
}
