/* Inner pages, Public Record direction: page hero, breadcrumbs, long-form text, ruled entries,
   process ledger, comparison table, FAQ, partners, team, blog, contact, markets.
   Class names are the v0.2 draft's so every page picks this up; the skin is new. */

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(24px, 3vw, 44px) clamp(44px, 5vw, 80px); border-bottom: 1px solid var(--ink); position: relative; }
.page-hero__inner { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 36px); }
.page-hero__copy { display: flex; flex-direction: column; gap: 18px; max-width: 920px; }
.page-hero h1 { font-size: clamp(2.25rem, 1.2rem + 2.8vw, 3.75rem); line-height: 0.98; }
.page-hero .lead { max-width: 60ch; }
.page-hero__actions { display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.page-hero__meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--lead); display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 559px) { .page-hero__actions .btn { width: 100%; } }

/* ---------- Breadcrumbs: a Courier docket line ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.02em; color: var(--lead); text-transform: uppercase; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: '/'; margin-inline: 10px; color: var(--rule); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- Two-column layout: content + sticky aside ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split__aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.split__aside > .link-arrow { align-self: flex-start; }
@media (max-width: 1023px) {
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; max-width: 560px; }
}

/* The aside clipping: ink block with brass heads */
.aside-card { background: var(--ink); color: var(--on-ink); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.aside-card h2 { font-size: var(--fs-h3); font-family: var(--font-body); font-weight: 500; }
.aside-card p { color: var(--on-ink-2); font-size: var(--fs-sm); line-height: 1.6; }
.aside-card .eyebrow { color: var(--brass); }
.aside-card .btn { width: 100%; }
.aside-card .btn--primary { background: var(--newsprint); color: var(--ink); border-color: var(--newsprint); }
.aside-card .btn--primary:hover { background: var(--on-ink-2); border-color: var(--on-ink-2); }
.aside-card .btn--outline { border-color: var(--on-ink-2); color: var(--on-ink); }
.aside-card .btn--outline:hover { border-color: var(--newsprint); background: var(--newsprint); color: var(--ink); }
.aside-card a:not(.btn) { color: var(--on-ink); border-bottom: 1px solid var(--brass); }
.aside-card strong { color: var(--on-ink); }

.info-card { border-top: 1px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 14px; font-size: var(--fs-sm); }
.info-card h2, .info-card h3 { font-family: var(--font-label); font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-caps); text-transform: uppercase; }
.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--lead); line-height: 1.5; }
.info-list .icon { margin-top: 3px; color: var(--ink); }
.info-list a { position: relative; color: var(--ink); border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.info-list a:hover { color: var(--red); border-color: var(--red); }
.info-list a::after { content: ''; position: absolute; inset: -14px -6px; } /* 44px hit area around short links */
.info-list strong { display: block; color: var(--ink); }

/* ---------- Long-form text ---------- */
.prose { max-width: var(--measure); font-size: var(--fs-body); line-height: 1.65; color: var(--ink); hyphens: auto; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2em; line-height: 1.1; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--red); font-family: var(--font-mono); font-size: 0.9em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--rule); }
.prose a:hover { color: var(--red); text-decoration-color: currentColor; }
.prose strong { font-weight: 600; }
.prose .lead { font-size: var(--fs-lead); color: var(--lead); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; height: auto; border: 1px solid var(--rule); }
.prose hr { margin: 2em 0; }
.prose p.last-updated, .prose .docket-line { font-family: var(--font-mono); }

/* ---------- Checklist on light backgrounds: typographic check, no icon ---------- */
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: baseline; line-height: 1.5; }
.ticks li::before { content: '\2713'; font-family: var(--font-body); font-weight: 600; color: var(--ink); }
.ticks .icon { display: none; }
.ticks--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
@media (max-width: 559px) { .ticks--2 { grid-template-columns: 1fr; } }

/* ---------- Entries (the draft's "cards"): ruled, no box, no icon ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; border-top: 1px solid var(--ink); padding: 18px 0 28px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.card > .icon, .partner-lede__mark { display: none; }
.card h3, .card .h3-size { font-size: var(--fs-h3); }
.card p { color: var(--lead); font-size: var(--fs-sm); line-height: 1.55; }
.card .ticks { font-size: var(--fs-sm); }
.card--link { transition: color var(--dur-fast) var(--ease-ink); }
.card--link:hover h2, .card--link:hover h3 { color: var(--red); }
.card--link .link-arrow { margin-top: auto; align-self: flex-start; }
.card__type { font-family: var(--font-mono); font-size: var(--fs-tag); letter-spacing: 0.04em; color: var(--red); text-transform: uppercase; }
.card--cta { background: var(--ink); color: var(--on-ink); border-top-color: var(--ink); padding: 24px; justify-content: space-between; }
.card--cta .h3-size { color: var(--on-ink); font-family: var(--font-body); }
.card--cta p { color: var(--on-ink-2); }
.card--cta .btn { align-self: flex-start; background: var(--newsprint); color: var(--ink); border-color: var(--newsprint); }
.card--cta .btn:hover { background: var(--on-ink-2); border-color: var(--on-ink-2); }
.card a:not(.link-arrow):not(.btn), .faq__answer a, .ticks a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--rule); }
.card a:not(.link-arrow):not(.btn):hover, .faq__answer a:hover, .ticks a:hover { color: var(--red); text-decoration-color: currentColor; }
@media (max-width: 1079px) { .cards, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 659px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } .card { padding: 14px 0 20px; } }

/* ---------- Numbered process (the Docket, long form) ---------- */
.process { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.process__step { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding-block: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--rule); }
.process__step:last-child { border-bottom-color: var(--ink); }
/* "Option" as a small red label over a large display numeral */
.process__num { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); padding-top: 6px; }
.process__num b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.75rem, 2rem + 2.5vw, 4.25rem); line-height: 0.95; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.process__step h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.process__step p { color: var(--lead); }
.process__body { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 859px) { .process__step { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Comparison table (membership tiers) ---------- */
.compare { width: 100%; font-size: var(--fs-sm); }
.compare th, .compare td { padding: 14px 20px 14px 0; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font-family: var(--font-label); font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); box-shadow: 0 3px 0 -1px var(--ink); padding-top: 0; }
.compare thead th:not(:first-child), .compare td { text-align: center; padding-right: 0; }
.compare tbody th { font-weight: 400; color: var(--ink); }
.compare td { color: var(--lead); width: 22%; font-family: var(--font-mono); font-size: var(--fs-xs); }
.compare .yes { color: var(--ink); }
.compare .no { color: var(--lead); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .compare { min-width: 560px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding-block: 16px;
  font-family: var(--font-body); font-weight: 500; font-size: 1.1rem; line-height: 1.3;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.3rem; color: var(--red); flex-shrink: 0; }
.faq details[open] summary::after { content: '\2212'; }
.faq summary:hover { color: var(--red); }
.faq__answer { padding-bottom: 20px; color: var(--lead); max-width: 720px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Disclosure / fine print: a smalltype notice with a red rule ---------- */
.disclosure { border-left: 2px solid var(--red); padding: 4px 0 4px 16px; font-size: var(--fs-xs); line-height: 1.55; color: var(--lead); }
.disclosure strong { color: var(--ink); }

/* ---------- Example deal (hard money) ---------- */
.deal { border: 1px solid var(--ink); }
.deal__head { padding: 14px 20px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.deal__head h3 { font-size: 1.1rem; }
.deal__head span { font-family: var(--font-mono); font-size: var(--fs-tag); letter-spacing: 0.04em; color: var(--red); }
.deal dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-variant-numeric: tabular-nums; }
.deal dl div { padding: 16px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.deal dl div:nth-child(3n) { border-right: 0; }
.deal dl div:nth-last-child(-n + 2) { border-bottom: 0; }
.deal dt { font-family: var(--font-label); font-size: var(--fs-tag); letter-spacing: var(--track-tag); text-transform: uppercase; color: var(--lead); }
.deal dd { margin: 6px 0 0; font-family: var(--font-body); font-size: 1.35rem; font-weight: 500; }
.deal dl .deal__total { background: var(--ink); color: var(--on-ink); grid-column: span 2; border: 0; }
.deal dl .deal__total dt { color: var(--on-ink-2); }
.deal dl .deal__total dd { color: var(--brass); }
@media (max-width: 559px) {
  .deal dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal dl div { border-right: 1px solid var(--rule) !important; border-bottom: 1px solid var(--rule) !important; padding: 14px 16px; }
  .deal dl div:nth-child(2n) { border-right: 0 !important; }
  .deal dl .deal__total { border-bottom: 0 !important; }
}

/* ---------- Partner detail ---------- */
.partner-lede { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.partner-lede h2 { font-size: var(--fs-h3); font-family: var(--font-body); font-weight: 500; }
.partner-lede p { color: var(--lead); font-size: var(--fs-sm); }

.person { display: flex; gap: 14px; align-items: center; }
.person__avatar { width: 48px; height: 48px; border: 1px solid var(--brass); color: var(--brass); display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 500; font-size: 1.25rem; flex-shrink: 0; }
.person__name { font-family: var(--font-body); font-weight: 500; font-size: 1.1rem; color: var(--on-ink); }
.person__role { font-size: var(--fs-xs); color: var(--on-ink-2); }

/* ---------- Stat row (light): a ledger ---------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.figures div { padding: 24px 24px 24px 0; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.figures div + div { padding-left: 24px; }
.figures div:last-child { border-right: 0; }
.figures dt { font-size: var(--fs-xs); color: var(--lead); order: 2; }
.figures dd { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.75rem); font-weight: 500; line-height: 1; letter-spacing: var(--track-display); color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 859px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures div:nth-child(2) { border-right: 0; }
  .figures div:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
  .figures div:nth-child(3) { padding-left: 0; }
}

/* ---------- Team placeholders ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.team__member { display: flex; flex-direction: column; gap: 10px; }
.team__photo { aspect-ratio: 4 / 5; border: 1px solid var(--rule); background-color: var(--newsprint-2); background-image: var(--halftone); display: flex; align-items: flex-end; padding: 10px; font-family: var(--font-mono); font-size: var(--fs-tag); color: var(--lead); }
.team__name { font-family: var(--font-body); font-weight: 500; font-size: 1.1rem; }
.team__role { font-family: var(--font-mono); font-size: var(--fs-tag); letter-spacing: 0.04em; text-transform: uppercase; color: var(--lead); }
@media (max-width: 859px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Blog: ruled entries with a photo column ---------- */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); border-top: 1px solid var(--ink); }
.post-card { position: relative; display: flex; flex-direction: column; padding: 20px 0 28px; border-bottom: 1px solid var(--rule); transition: color var(--dur-fast) var(--ease-ink); }
.post-card:hover h2 { color: var(--red); }
.post-card__img { aspect-ratio: 16 / 9; border: 1px solid var(--rule); background-color: var(--newsprint-2); background-image: var(--halftone); overflow: hidden; margin-bottom: 16px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4); transition: transform var(--dur-base) var(--ease-ink); }
.post-card:hover .post-card__img img { transform: scale(1.02); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.post-card__meta { font-family: var(--font-mono); font-size: var(--fs-tag); letter-spacing: 0.04em; color: var(--lead); text-transform: uppercase; }
.post-card h2 { font-family: var(--font-body); font-weight: 500; font-size: 1.35rem; line-height: 1.2; transition: color var(--dur-fast) var(--ease-ink); }
.post-card p { color: var(--lead); font-size: var(--fs-sm); }
.post-card .link-arrow { margin-top: auto; align-self: flex-start; }
.post-card--featured { grid-column: 1 / -1; flex-direction: row; gap: clamp(24px, 3vw, 48px); padding-top: 24px; }
.post-card--featured .post-card__img { flex: 0 0 52%; aspect-ratio: 3 / 2; margin-bottom: 0; }
.post-card--featured .post-card__body { justify-content: center; }
.post-card--featured h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem); line-height: 1.05; }
.post-card h2 a::after { content: ''; position: absolute; inset: 0; }
.post-card h2 a:focus-visible { outline: none; }
.post-card:has(h2 a:focus-visible) { outline: 2px solid var(--red); outline-offset: 4px; }
@media (max-width: 759px) {
  .posts { grid-template-columns: 1fr; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__img { aspect-ratio: 16 / 9; margin-bottom: 16px; }
}

.article__hero-img { overflow: hidden; aspect-ratio: 21 / 9; border: 1px solid var(--rule); background: var(--newsprint-2); margin-bottom: clamp(32px, 4vw, 56px); }
.article__hero-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3); }
.article__byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--lead); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-form { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 22px; }
.contact-form h2 { font-size: var(--fs-h3); }
@media (max-width: 959px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid > * { max-width: 640px; } }

/* ---------- Markets hub: ruled entries ---------- */
.markets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.market { border-top: 1px solid var(--ink); padding: 18px 0 28px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.market--link:hover h3 { color: var(--red); }
.market__state { font-family: var(--font-mono); font-size: var(--fs-tag); letter-spacing: 0.04em; color: var(--red); text-transform: uppercase; }
.market h3 { font-size: var(--fs-h3); transition: color var(--dur-fast) var(--ease-ink); }
.market p { color: var(--lead); font-size: var(--fs-sm); }
.market .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 959px) { .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .markets { grid-template-columns: 1fr; } }

/* ---------- Spacing helpers ---------- */
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-2 { margin-bottom: var(--s-2); }
.flow > * + * { margin-top: var(--s-5); }

/* Heading that needs entry-level size while keeping document outline */
.h3-size { font-family: var(--font-body); font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }

/* ---------- 404: the filing that does not exist ---------- */
.notfound { max-width: 720px; border: 1px solid var(--ink); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; position: relative; }
.notfound__head { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.02em; text-transform: uppercase; color: var(--lead); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.notfound h1 { font-size: clamp(2rem, 1.2rem + 3vw, 4rem); }
.notfound__table { display: grid; grid-template-columns: 1fr; font-size: var(--fs-sm); }
.notfound__table div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-bottom: 1px dotted var(--rule); }
.notfound__table dt { font-family: var(--font-label); font-size: var(--fs-tag); letter-spacing: var(--track-tag); text-transform: uppercase; color: var(--lead); }
.notfound__table dd { font-family: var(--font-mono); font-size: var(--fs-xs); }
.notfound__stamp { position: absolute; top: 18px; right: 20px; }

/* ---------- Membership pricing (How It Works) ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); max-width: 720px; }
.pricing__plan { border-top: 1px solid var(--ink); padding: 16px 0 20px; display: flex; flex-direction: column; gap: 8px; }
.pricing__plan dt { font-family: var(--font-label); font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-caps); text-transform: uppercase; }
.pricing__price { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); font-weight: 500; line-height: 1; letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; }
.pricing__price span { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--lead); margin-left: 6px; letter-spacing: 0; }
.pricing__note { font-size: var(--fs-xs); color: var(--lead); }
@media (max-width: 559px) { .pricing { grid-template-columns: 1fr; } }
