/* ==========================================================================
   archivers.ai — v2 conversion & trust surfaces
   Loaded on top of css/v2.css by the pages that need long-form prose, a
   form, a document list, a specimen pair, or the blog index. Everything
   below reuses the v2 tokens; nothing here redefines a canon component.

     1. split          — info column + form column
     2. formcard       — the VBout embed, restyled (markup untouched)
     3. doc-list       — procurement pack rows
     4. prose          — legal and blog-post body typography
     5. postlist       — blog index cards, filters, tags
     6. post           — blog post header, footer, newsletter
     7. specimen       — before/after example pairs
   ========================================================================== */

/* ---------------------------------------------------------------- 1. split */
.split { display: grid; gap: 40px; align-items: start; }

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 5vw, 72px);
  }
  .split--wide-first { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split__form { position: sticky; top: 92px; }
}

.split__aside h3 { margin: 28px 0 10px; }
.split__aside h3:first-child { margin-top: 0; }
.split__aside p { font-size: 0.9375rem; color: var(--ink-2); }

/* ------------------------------------------------------------- 2. formcard */
.formcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 34px);
}
.formcard__head { margin: 0 0 22px; }
.formcard__head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.formcard__note {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* The route picker sits outside <form> so the VBout payload is untouched. */
.route-field { margin: 0 0 24px; }
.route-field label,
.formcard label.title {
  display: block;
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.required-asterisk { color: var(--gold); }

.formcard .vboutEmbedFormRow { margin: 0 0 16px; }
.formcard fieldset { margin: 0; padding: 0; border: 0; }

.formcard input[type="text"],
.formcard input[type="email"],
.formcard input[type="tel"],
.formcard select,
.route-field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color .16s ease, background-color .16s ease;
}
.formcard input::placeholder { color: #9A968C; }
.formcard input:focus,
.formcard select:focus,
.route-field select:focus {
  background: var(--surface);
  border-color: var(--gold);
  outline: 2px solid var(--gold-light);
  outline-offset: 1px;
}

.formcard select,
.route-field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236B6B6B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

.formcard .vfb-submit { margin-top: 24px; }
.formcard .vbf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 22px;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.formcard .vbf-submit:hover { background: var(--gold-hover); border-color: var(--gold-hover); }

.form-fineprint {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-3);
}
.form-fineprint a { color: var(--gold-hover); }

@media (min-width: 640px) {
  .formcard .vbf-submit { width: auto; min-width: 200px; }
}

/* ------------------------------------------------------------- 3. doc-list */
/* Procurement pack: one row per document, each a link or a form request. */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.doc-list li {
  display: grid;
  gap: 6px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.doc-list__name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.doc-list__line { margin: 0; font-size: 0.9375rem; color: var(--ink-3); }
.doc-list .textlink { font-size: 0.875rem; }

@media (min-width: 760px) {
  .doc-list li { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto; }
}

/* ---------------------------------------------------------------- 4. prose */
.prose { max-width: 44rem; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }

.prose h2 {
  margin: clamp(40px, 4vw, 56px) 0 14px;
  font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem);
}
.prose h3 {
  margin: 32px 0 10px;
  font-size: 1.0625rem;
}
.prose h4 { margin: 26px 0 8px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.prose p { margin: 0 0 1.1rem; line-height: 1.7; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-hover); text-decoration-color: var(--gold); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose hr { height: 1px; background: var(--line); border: 0; margin: 40px 0; }
.prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--gold);
  font-size: 1.0625rem;
  color: var(--ink);
}
.prose code {
  padding: 2px 5px;
  background: var(--bg-tint);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--ink);
}
.prose img { border-radius: var(--r-card); border: 1px solid var(--line); margin: 24px 0; }
.prose figure { margin: 28px 0; }

.prose .table-scroll { overflow-x: auto; margin: 24px 0; }
.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.prose th, .prose td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--bg-tint); color: var(--ink); font-weight: 600; }

/* A long legal or reference page reads better on a white sheet. */
.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 56px);
}

/* ------------------------------------------------------------- 5. postlist */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(28px, 3.5vw, 40px);
}
.tag-filter {
  appearance: none;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.tag-filter:hover { color: var(--ink); border-color: var(--ink); }
.tag-filter--active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ink-inv);
}

.postlist { display: grid; gap: 20px; }
.postcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.postcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.postcard__image { aspect-ratio: 16 / 9; background: var(--bg-tint); overflow: hidden; }
.postcard__image img { width: 100%; height: 100%; object-fit: cover; }
.postcard__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.postcard__date {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.postcard__title { margin: 0 0 10px; font-size: 1.125rem; line-height: 1.35; color: var(--ink); }
.postcard__excerpt { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-3); }
.postcard__more {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.postcard__more::after { content: " \2192"; color: var(--gold); }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tag-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-hover);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.postlist__empty { margin: 32px 0 0; color: var(--ink-3); }

@media (min-width: 640px) { .postlist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .postlist { grid-template-columns: repeat(3, 1fr); } }

/* ----------------------------------------------------------------- 6. post */
.post-head { max-width: 44rem; padding: clamp(40px, 5vw, 64px) 0 0; }
.post-head__back {
  display: inline-block;
  margin: 0 0 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
}
.post-head__back:hover { color: var(--gold-hover); }
.post-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); margin: 14px 0 0; }
.post-head__meta {
  margin: 18px 0 0;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.post-plate { max-width: 44rem; margin: clamp(32px, 4vw, 44px) 0 0; }
.post-plate .plate__frame { aspect-ratio: 16 / 9; }
.post-plate .plate__frame img { height: 100%; object-fit: cover; }
.post-body { margin-top: clamp(32px, 4vw, 48px); }

.newsletter { max-width: 44rem; }
.newsletter__row { display: grid; gap: 10px; margin-top: 18px; }
.newsletter__row input {
  min-height: 46px;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
}
.newsletter__row input:focus { border-color: var(--gold); outline: 2px solid var(--gold-light); outline-offset: 1px; }
.newsletter__row .btn { white-space: nowrap; }

@media (min-width: 640px) { .newsletter__row { grid-template-columns: minmax(0, 1fr) auto; } }

/* ------------------------------------------------------------- 7. specimen */
.specimens { display: grid; gap: clamp(28px, 4vw, 44px); }
.specimen {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.specimen__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
}
.specimen__kind { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.specimen__body { display: grid; }
.specimen__before,
.specimen__after { padding: 22px 20px; }
.specimen__before { border-bottom: 1px solid var(--line); background: var(--bg); }
.specimen__label {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.specimen__label--after { color: var(--gold-hover); }
.specimen__meta { margin: 0; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.7; color: var(--ink-3); }
.specimen__code {
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.specimen__code .k { color: var(--ink); font-weight: 600; }
.specimen__code .v { color: var(--ok); }

@media (min-width: 900px) {
  .specimen__body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .specimen__before { border-bottom: 0; border-right: 1px solid var(--line); }
}

/* ------------------------------------------------------- 8. page utilities */
/* A page head that leads straight into the next section without a double gap. */
.pagehead { padding-bottom: 0; }
.pagehead .section__head { margin-bottom: 0; }

.mt-m { margin-top: 28px; }
.mt-l { margin-top: 36px; }

.split__aside h2 { margin: 0 0 14px; }

/* Keep the aside in view beside a long prose column. */
@media (min-width: 900px) {
  .split__aside--sticky { position: sticky; top: 92px; }
}

/* A published legal document sits centred on its sheet. */
.sheet.prose { max-width: 54rem; margin: 0 auto; }

/* Drafted fields: label column, value column, aligned at every width. */
.fieldlist {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.65;
}
.fieldlist dt { color: var(--ink); font-weight: 600; }
.fieldlist dd { margin: 0 0 10px; color: var(--ok); word-break: break-word; }
.fieldlist dd:last-child { margin-bottom: 0; }

@media (min-width: 480px) {
  .fieldlist {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    column-gap: 14px;
  }
  .fieldlist dd { margin-bottom: 7px; }
}

/* Contact details: label over value, hairline rows, never a squeezed grid. */
.meta-list {
  margin: 0;
  border-top: 1px solid var(--line);
}
.meta-list div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.meta-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta-list dd {
  margin: 4px 0 0;
  font-size: 0.9375rem;
  color: var(--ink);
}

@media (min-width: 520px) {
  .meta-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
}

/* Blog post footer block: newsletter above the closing band. */
.postfoot {
  margin-top: clamp(40px, 5vw, 64px);
  margin-bottom: var(--section);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
