/* Generic content page v2 — leaf pages (legal, FAQs, guides).
   Shared primitives (tv2-pad, tv2-rule, tv2-breadcrumb, header, footer) live
   in v2-core.css; everything here is pgv2- only.

   Deliberately restrained: one readable column, no rail, no bands beyond the
   title strip. Type scale and colours match article-v2 so the two read as one
   system; the prose rules are the article-v2 prose rules narrowed to a single
   ~760px column. */

/* ---------- Title strip ---------- */
.pgv2-band { border-bottom: 1px solid #EDEFF4; background: #F6F8FC; }
.pgv2-band__inner { padding-top: 36px; padding-bottom: 36px; }
.pgv2-band .tv2-breadcrumb { margin-bottom: 22px; }
/* The band is centred as a whole: breadcrumb, title and date on one axis (Guy, 2026-09-04:
   a left title under a centred trail looked odd on pages with no image). */
.pgv2-band__inner { text-align: center; }
.pgv2-band .tv2-breadcrumb ol { justify-content: center; }
.pgv2-h1 {
  margin: 0 auto; font-size: clamp(29px, 4.6vw, 40px); line-height: 1.12; font-weight: 500;
  color: #14203A; letter-spacing: -.02em; max-width: 26ch; text-wrap: balance;
}
.pgv2-dates { margin: 14px 0 0; font-size: 14px; line-height: 1.4; color: #5A6478; }

/* ---------- Column ---------- */
.pgv2-layout { display: grid; grid-template-columns: minmax(0,716px) minmax(min(300px,100%),1fr); gap: 56px; align-items: start; padding: 44px 0 72px; }
.pgv2-main { min-width: 0; }
.pgv2-rail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pgv2-rail > :not(:first-child) .tv2-rule--sm { display: none; } /* one tick per rail, as on the spine */
.pgv2-rail > nav[hidden] + * .tv2-rule--sm { display: block; } /* JS off: the nav never shows, the tick moves to the next card */
@media (max-width: 960px) {
  .pgv2-layout { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .pgv2-rail { max-width: 460px; }
}

/* ---------- Prose (rendered markdown) ---------- */
.pgv2-prose { font-size: 18px; line-height: 1.7; color: #414B5E; }
.pgv2-prose > :first-child { margin-top: 0; }
.pgv2-prose p { margin: 0 0 18px; text-wrap: pretty; }
.pgv2-prose h2 {
  margin: 44px 0 14px; font-size: 24px; line-height: 1.25; font-weight: 500; color: #14203A;
  padding-top: 14px; border-top: 1px solid #EDEFF4;
  scroll-margin-top: 16px;
}
.pgv2-prose h3 { margin: 30px 0 12px; font-size: 20px; line-height: 1.3; font-weight: 500; color: #14203A; max-width: 44ch; }
.pgv2-prose h4 { margin: 24px 0 10px; font-size: 18px; line-height: 1.35; font-weight: 500; color: #14203A; }
.pgv2-prose h5, .pgv2-prose h6 { margin: 22px 0 10px; font-size: 17px; line-height: 1.35; font-weight: 500; color: #14203A; }
.pgv2-prose strong, .pgv2-prose b { color: #14203A; font-weight: 500; }
.pgv2-prose ul, .pgv2-prose ol { margin: 0 0 18px; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 10px; }
.pgv2-prose ul { list-style: none; }
.pgv2-prose ul > li { position: relative; padding-left: 26px; }
.pgv2-prose ul > li::before { content: '\2022'; position: absolute; left: 6px; top: 0; color: #1257E8; }
.pgv2-prose ol { list-style: decimal; padding-left: 26px; }
.pgv2-prose ol > li { padding-left: 4px; }
.pgv2-prose li > ul, .pgv2-prose li > ol { margin: 10px 0 0; }
.pgv2-prose img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.pgv2-prose figure { margin: 0 0 18px; }
.pgv2-prose blockquote { margin: 0 0 18px; padding: 4px 0 4px 20px; border-left: 3px solid #FF9500; }
.pgv2-prose hr { border: 0; border-top: 1px solid #EDEFF4; margin: 32px 0; }
.pgv2-prose code { font: 500 15px/1.5 'IBM Plex Mono', monospace; color: #14203A; background: #F6F8FC; border-radius: 4px; padding: 1px 5px; }
.pgv2-prose pre { overflow-x: auto; background: #F6F8FC; border: 1px solid #EDEFF4; border-radius: 8px; padding: 16px 18px; margin: 0 0 18px; }
.pgv2-prose pre code { background: none; padding: 0; }

/* Tables scroll inside their own box rather than pushing the column wide. */
.pgv2-prose table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: 16px; }
.pgv2-prose th, .pgv2-prose td { border: 1px solid #DFE3EA; padding: 8px 12px; text-align: left; vertical-align: top; }
.pgv2-prose th { color: #14203A; font-weight: 500; background: #F6F8FC; }
.pgv2-tablewrap { overflow-x: auto; margin: 0 0 18px; }
.pgv2-tablewrap table { margin: 0; }

/* Privacy-only consent block continues the prose above it. */
.pgv2-consent { margin-top: 8px; }


/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .pgv2-layout { padding-top: 32px; }
  .pgv2-prose { font-size: 17px; }
}

/* ---------- Buttons and the contact form (2026-09-03) ----------
   /contact/ and /payment-complete/ moved onto this layout. The form keeps the ids
   src/components/Contact.js binds to; that script toggles `hidden`/`block`, which
   Tailwind used to define on the old layout and v2 does not, so they are defined here. */
.tv2 a.pgv2-btn, .tv2 button.pgv2-btn {
  display: inline-block; padding: 13px 22px; border-radius: 4px; border: 0; cursor: pointer;
  font: 500 17px/1.3 'Circular', sans-serif; color: #fff; background: #1257E8; text-decoration: none;
}
.tv2 a.pgv2-btn:hover, .tv2 button.pgv2-btn:hover { background: #0E46BD; color: #fff; text-decoration: none; }
.pgv2-form-wrap { margin: 32px 0 0; max-width: 560px; }
.pgv2-form { display: flex; flex-direction: column; gap: 18px; }
.pgv2-form__field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #414B5E; }
.pgv2-form__field input, .pgv2-form__field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #C9D0DC; border-radius: 6px;
  font: 400 16px/1.5 'Circular', sans-serif; color: #14203A; background: #fff; resize: vertical;
}
.pgv2-form__field input:focus, .pgv2-form__field textarea:focus { outline: 2px solid #1257E8; outline-offset: 1px; border-color: #1257E8; }
.pgv2-form__spinner { animation: pgv2-spin 1s linear infinite; }
@keyframes pgv2-spin { to { transform: rotate(360deg); } }
.pgv2-form__errors { color: #B42318; font-size: 15px; }
.pgv2-form__errors:empty { display: none; }
.pgv2-form-success { padding: 24px; border: 1px solid #DFE3EA; border-radius: 10px; background: #F6F8FC; }
.pgv2-form-success__title { margin: 0 0 6px; font-size: 20px; font-weight: 500; color: #14203A; }
.pgv2-form-wrap .hidden { display: none; }
.pgv2-form-wrap .block { display: block; }
