/* Styles for interior pages (about, datasets, blog). Homepage-specific styles live in styles.css. */

/* ---------- Dataset page (minimalist) ---------- */
.ds-hero {
  padding: 96px 0 64px;
}
.ds-hero-code {
  color: var(--teal);
  margin-bottom: 28px;
}
.ds-hero-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.01em);
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.12;
  margin: 0 0 28px;
  max-width: 840px;
  text-wrap: balance;
}
.ds-hero-lede {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0;
  text-wrap: pretty;
}

.ds-section {
  padding: 56px 0;
}
.ds-section--prose {
  padding-top: 24px;
  padding-bottom: 80px;
}
.ds-section--methodology {
  padding-top: 72px;
  padding-bottom: 96px;
  border-top: 1px solid var(--rule);
}

.ds-narrow {
  max-width: 820px;
}
.ds-section--prose .ds-narrow {
  max-width: 720px;
}

.ds-section--prose p {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.ds-section--prose p:last-child { margin-bottom: 0; }

.ds-section-label {
  color: var(--ink-3);
  margin-bottom: 28px;
}

.ds-method {
  margin: 0;
  padding: 0;
}
.ds-method dt {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.01em);
  font-size: 20px;
  margin-top: 28px;
  color: var(--ink);
}
.ds-method dt:first-child { margin-top: 0; }
.ds-method dd {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 680px;
  text-wrap: pretty;
}
.page-hero {
  padding: 72px 0 0;
}
.page-hero > .container {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.subhero-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.01em);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  margin: 0 0 24px;
  max-width: 900px;
  text-wrap: balance;
}
.subhero-lede {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Generic section shells ---------- */
.page-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.page-section--first {
  padding-top: 88px;
}
.page-section:last-of-type {
  border-bottom: 0;
}
.section-head-sub {
  margin-bottom: 40px;
}
.section-head-sub h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.01em);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  margin: 12px 0 0;
  max-width: 720px;
  text-wrap: balance;
}

/* ---------- Two-column text block ---------- */
.two-col {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 56px;
  align-items: start;
}
.two-col-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  padding-top: 6px;
}
.prose p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; color: var(--ink); }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-cell {
  padding: 24px 20px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-cell:last-child { border-right: 0; }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat-val {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- Methodology numbered list ---------- */
.method-list {
  list-style: none;
  counter-reset: method;
  margin: 0;
  padding: 0;
}
.method-list li {
  counter-increment: method;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.method-list li:first-child { border-top: 0; padding-top: 0; }
.method-list li::before {
  content: counter(method, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--teal);
  padding-top: 4px;
}
.method-list h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.01em);
  font-size: 22px;
  margin: 0 0 10px;
}
.method-list p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 640px;
  text-wrap: pretty;
}

/* ---------- Citation block ---------- */
.citation {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg-2);
  padding: 24px 28px;
  white-space: pre;
  overflow-x: auto;
  border-left: 3px solid var(--teal);
}

/* ---------- Team list (vertical) ---------- */
.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.team-row {
  display: grid;
  grid-template-columns: 56px 1fr 180px;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.team-row-portrait {
  width: 48px;
  height: 48px;
  background: var(--teal);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 50%;
}
.team-row-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}
.team-row-main { display: flex; flex-direction: column; gap: 6px; }
.team-row-name {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.01em);
  font-size: 22px;
  line-height: 1.15;
}
.team-row-bio {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  text-wrap: pretty;
}
.team-row-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  padding-top: 8px;
  text-align: right;
}

/* ---------- Consistency: constraint example + benefits ---------- */
.lmca-block--tight { padding-top: 8px; }
.cons-example {
  border: 1px solid var(--rule-strong);
  margin: 6px 0 16px;
}
.cons-row {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 24px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.cons-row:last-child { border-bottom: 0; }
.cons-row-kind {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 2px;
}
.cons-row-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.cons-row-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.cons-row--constraint { background: var(--bg-2); }

/* ---------- ConCoRD constraint example: layout tweak ---------- */
/* default (rows) shows .cons-example; converge shows .cons-diagram */
.cons-diagram { display: none; }
html[data-cons-example="converge"] .cons-example { display: none; }
html[data-cons-example="converge"] .cons-diagram { display: block; margin: 6px 0 16px; }

.cons-diagram-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.cons-node {
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.cons-node-kind {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cons-node-text {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  flex: 1;
}
.cons-node-text .todo { white-space: normal; }
.cons-node-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}
/* merge connector */
.cons-merge { position: relative; height: 54px; }
.cons-merge-stub {
  position: absolute; top: 0; height: 22px;
  border-left: 1px solid var(--rule-strong);
}
.cons-merge-stub--l { left: 25%; }
.cons-merge-stub--r { left: 75%; }
.cons-merge-bar {
  position: absolute; top: 22px; left: 25%; width: 50%;
  border-top: 1px solid var(--rule-strong);
}
.cons-merge-drop {
  position: absolute; top: 22px; left: 50%; height: 32px;
  border-left: 1px solid var(--rule-strong);
}
.cons-merge-node {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px;
  border: 1px solid var(--rule-strong); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-3);
}
/* constraint box */
.cons-constraint-box {
  max-width: 440px; margin: 0 auto;
  border: 1px solid var(--rule-strong); background: var(--bg-2);
  padding: 16px 22px; text-align: center;
  display: flex; flex-direction: column; gap: 7px; align-items: center;
}
.cons-constraint-text {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.5; color: var(--ink-2);
  text-wrap: pretty;
}
.cons-constraint-eq {
  font-family: var(--font-mono); font-size: 15px; color: var(--ink);
}
.cons-constraint-flag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #9e5436;
}
@media (max-width: 560px) {
  .cons-diagram-pair { grid-template-columns: 1fr; gap: 14px; }
  .cons-merge { height: 30px; }
  .cons-merge-stub, .cons-merge-bar, .cons-merge-node { display: none; }
  .cons-merge-drop { top: 0; height: 30px; }
}
.cons-caption {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
  text-wrap: pretty;
}
.cons-benefits {
  margin: 4px 0 0;
  padding-left: 22px;
}
.cons-benefits li {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 12px;
  text-wrap: pretty;
}
.cons-benefits li:last-child { margin-bottom: 0; }

/* ---------- About page: single left-aligned reading column ---------- */
.about-col { max-width: 760px; }
.about-h {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.01em);
  font-size: 30px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 24px;
  text-wrap: balance;
}

/* ---------- Team simple list (low-key, reads like plain text) ---------- */
.team-simple {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.team-simple li {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}
.team-simple-role { color: var(--ink-3); }
.team-simple-role::before { content: " — "; }

/* ---------- Team grid (legacy, still used elsewhere if needed) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.team-card {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-card:not(:first-child) { padding-left: 24px; }
.team-card:last-child { border-right: 0; padding-right: 0; }
.team-portrait {
  width: 56px;
  height: 56px;
  background: var(--teal);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.team-name {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.01em);
  font-size: 19px;
}
.team-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.team-bio {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Contact row ---------- */
.contact-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: 32px;
}
.contact-item {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--rule);
}
.contact-item:last-child { border-right: 0; padding-left: 24px; }
.contact-val {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: 22px;
  letter-spacing: -0.005em;
  margin-top: 8px;
}
.contact-val a { color: var(--teal); }
.contact-val a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Blog index ---------- */
.blog-list {
  border-top: 1px solid var(--rule);
}
.blog-row {
  display: grid;
  grid-template-columns: 140px 1fr 160px;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  transition: background 0.15s, padding 0.15s;
}
.blog-row:hover {
  background: rgba(74, 110, 110, 0.04);
  padding-left: 16px;
  padding-right: 16px;
}
.blog-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding-top: 6px;
}
.blog-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.01em);
  font-size: 24px;
  margin: 0 0 8px;
  line-height: 1.2;
}
.blog-excerpt {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}
.blog-author {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 6px;
  text-align: right;
}

/* ---------- Blog post article ---------- */
.post-article {
  max-width: 720px;
  margin: 72px auto;
  padding: 0 40px;
  font-family: var(--font-body);
}
.post-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.post-article h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.01em);
  font-size: 28px;
  margin: 48px 0 16px;
  text-wrap: balance;
}
.post-article p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.post-article p strong { color: var(--ink); font-weight: 600; }
.post-article p em { font-style: italic; color: var(--ink); }
.post-article blockquote {
  margin: 28px 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--teal);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- LMCA page extras ---------- */
.lmca-col { max-width: 680px; }
.prose-lead {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 28px;
}
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--teal);
  white-space: nowrap;
  transition: opacity 0.15s;
}
.btn-apply:hover { opacity: 0.85; }
.btn-apply .todo { color: var(--bg); border-color: rgba(255,255,255,0.5); }

/* ---------- Apply button treatments (tweakable) ---------- */
/* arrow affordance shared by the glam styles */
html[data-apply-style="gradient"] .btn-apply::after,
html[data-apply-style="glow"] .btn-apply::after,
html[data-apply-style="gold"] .btn-apply::after,
html[data-apply-style="outline"] .btn-apply::after {
  content: "→";
  font-family: var(--font-display);
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.18s ease;
}
html[data-apply-style="gradient"] .btn-apply:hover::after,
html[data-apply-style="glow"] .btn-apply:hover::after,
html[data-apply-style="gold"] .btn-apply:hover::after,
html[data-apply-style="outline"] .btn-apply:hover::after { transform: translateX(3px); }

/* Gradient — depth + sheen + lift */
html[data-apply-style="gradient"] .btn-apply {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--teal) 78%, #000 22%) 0%,
    var(--teal) 52%,
    color-mix(in oklab, var(--teal) 70%, #fff 30%) 100%);
  border-radius: 3px;
  box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--teal) 60%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.15s;
}
html[data-apply-style="gradient"] .btn-apply:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px color-mix(in oklab, var(--teal) 65%, transparent);
}

/* Glow — solid teal with a halo that intensifies on hover */
html[data-apply-style="glow"] .btn-apply {
  border-radius: 3px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--teal) 40%, transparent),
              0 0 22px -4px color-mix(in oklab, var(--teal) 55%, transparent);
  transition: transform 0.18s ease, box-shadow 0.22s ease, opacity 0.15s;
}
html[data-apply-style="glow"] .btn-apply:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--teal) 55%, transparent),
              0 0 34px 0 color-mix(in oklab, var(--teal) 60%, transparent);
}

/* Gold — warm brass gradient on dark ink text, editorial-glam */
html[data-apply-style="gold"] .btn-apply {
  color: #2b2417;
  background: linear-gradient(135deg, #c89b3c 0%, #e7c66b 48%, #b8862f 100%);
  border-radius: 3px;
  box-shadow: 0 6px 18px -7px rgba(120, 90, 20, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.15s;
}
html[data-apply-style="gold"] .btn-apply:hover {
  opacity: 1;
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 26px -8px rgba(120, 90, 20, 0.6);
}
html[data-apply-style="gold"] .btn-apply .todo { color: #2b2417; border-color: rgba(43,36,23,0.4); }

/* Outline — refined ghost button that fills on hover */
html[data-apply-style="outline"] .btn-apply {
  color: var(--teal);
  background: transparent;
  border: 1px solid var(--teal);
  border-radius: 3px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
html[data-apply-style="outline"] .btn-apply:hover {
  opacity: 1;
  color: var(--bg);
  background: var(--teal);
  transform: translateY(-1px);
}
html[data-apply-style="outline"] .btn-apply .todo { color: var(--teal); border-color: color-mix(in oklab, var(--teal) 50%, transparent); }

/* White — clean white card, teal text, subtle border + lift */
html[data-apply-style="white"] .btn-apply::after {
  content: "→";
  font-family: var(--font-display);
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.18s ease;
}
html[data-apply-style="white"] .btn-apply:hover::after { transform: translateX(3px); }
html[data-apply-style="white"] .btn-apply {
  color: var(--teal);
  background: #ffffff;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  box-shadow: 0 4px 14px -8px rgba(0,0,0,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
html[data-apply-style="white"] .btn-apply:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 10px 22px -10px rgba(0,0,0,0.4);
}
html[data-apply-style="white"] .btn-apply .todo { color: var(--teal); border-color: color-mix(in oklab, var(--teal) 50%, transparent); }

.todo {
  font-family: var(--mono);
  font-size: 0.82em;
  letter-spacing: 0.03em;
  color: var(--teal);
  border-bottom: 1px dotted var(--teal);
  padding-bottom: 1px;
  white-space: nowrap;
}
.todo-block {
  border: 1px dashed var(--rule-strong);
  background: var(--bg-2);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.todo-block .todo { border-bottom: none; font-size: 13px; }

.score-method { margin: 0; padding: 0; }
.score-method dt {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.01em);
  font-size: 20px;
  margin-top: 24px;
  color: var(--ink);
}
.score-method dt:first-child { margin-top: 0; }
.score-method dd {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.lmca-apply { margin-top: 36px; }

.hero-eval {
  margin-top: 36px;
  max-width: 720px;
}
.hero-eval-lead {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 20px;
}

/* single-column doc */
.lmca-doc { max-width: 720px; padding: 4px 0 72px; }
.lmca-block {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.lmca-block:first-child { border-top: 0; padding-top: 16px; }
.lmca-block--apply { display: flex; justify-content: center; border-top: 0; padding: 28px 0 44px; }
.lmca-block--apply + .lmca-block { border-top: 0; }
html[data-apply-big="on"] .btn-apply {
  font-size: 15px;
  padding: 15px 27px;
  letter-spacing: 0.07em;
  gap: 12px;
}
.page-hero--lmca > .container { border-bottom: 0; padding-bottom: 24px; }

/* tweak: symmetric (centered) content column */
html[data-content="center"] .container { max-width: 820px; }
html[data-content="center"] .ds-narrow,
html[data-content="center"] .lmca-doc,
html[data-content="center"] .subhero-lede,
html[data-content="center"] .subhero-title,
html[data-content="center"] .ds-hero-lede,
html[data-content="center"] .ds-hero-title,
html[data-content="center"] .ds-method dd { max-width: 100%; }

/* tweak: smaller symmetric margins (wider centered column) */
html[data-content="center"][data-content-snug="on"] .container { max-width: 1000px; }
html[data-content="center"][data-content-snug="on"] .site-header .container { max-width: 1200px; }

/* tweak: hide page divider rules */
html[data-page-rules="off"] .page-hero > .container,
html[data-page-rules="off"] .page-section,
html[data-page-rules="off"] .lmca-block,
html[data-page-rules="off"] .ds-section,
html[data-page-rules="off"] .ds-hero { border-top: 0; border-bottom: 0; }
.lmca-h {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.01em);
  font-size: 27px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.lmca-sub {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: 19px;
  margin: 24px 0 8px;
  color: var(--ink);
}
.lmca-block .prose + .lmca-sub { margin-top: 28px; }
.lmca-block .todo-block + .lmca-sub { margin-top: 20px; }

/* ---------- Contributors line (tweakable placement) ---------- */
.contributors { display: none; }

/* byline: compact mono row just under the eyebrow / top row */
html[data-contributors="byline"] .contributors--eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
}
html[data-contributors="byline"] .contributors--eyebrow .contributors-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
html[data-contributors="byline"] .contributors--eyebrow .contributors-names {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* belowTitle: inline byline under the title — label + names on one line,
   names italic & dimmed so it reads as metadata, not the first line of prose */
html[data-contributors="belowTitle"] .contributors--title,
html[data-contributors="belowTitlePlain"] .contributors--title,
html[data-contributors="belowTitleSerif"] .contributors--title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 3px;
  margin-bottom: 22px;
}
html[data-contributors="belowTitle"] .contributors--title .contributors-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
html[data-contributors="belowTitleSerif"] .contributors--title .contributors-label {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-dim);
  white-space: nowrap;
}
html[data-contributors="belowTitlePlain"] .contributors--title .contributors-label {
  display: none;
}
html[data-contributors="belowTitle"] .contributors--title .contributors-names,
html[data-contributors="belowTitlePlain"] .contributors--title .contributors-names,
html[data-contributors="belowTitleSerif"] .contributors--title .contributors-names {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-3);
}

/* belowLede family: hairline-topped row beneath the lede */
html[data-contributors="belowLede"] .contributors--lede,
html[data-contributors="belowLedePlain"] .contributors--lede,
html[data-contributors="belowLedeSerif"] .contributors--lede {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  max-width: 720px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
/* default: mono label */
html[data-contributors="belowLede"] .contributors--lede .contributors-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
/* serif label — same font as the names */
html[data-contributors="belowLedeSerif"] .contributors--lede .contributors-label {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-dim);
  white-space: nowrap;
}
/* names only — drop the label entirely */
html[data-contributors="belowLedePlain"] .contributors--lede .contributors-label {
  display: none;
}
html[data-contributors="belowLede"] .contributors--lede .contributors-names,
html[data-contributors="belowLedePlain"] .contributors--lede .contributors-names,
html[data-contributors="belowLedeSerif"] .contributors--lede .contributors-names {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-2);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card:nth-child(2) { border-right: 0; }
  .team-card:nth-child(1), .team-card:nth-child(2) { border-bottom: 1px solid var(--rule); padding-bottom: 28px; }
  .team-card:nth-child(3), .team-card:nth-child(4) { padding-top: 28px; }
  .team-row { grid-template-columns: 48px 1fr; gap: 16px; }
  .team-row-role { grid-column: 2; text-align: left; padding-top: 0; }
  .blog-row { grid-template-columns: 1fr; gap: 8px; }
  .blog-author { text-align: left; padding-top: 4px; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-item { border-right: 0; border-bottom: 1px solid var(--rule); padding-left: 0 !important; padding-right: 0; }
  .contact-item:last-child { border-bottom: 0; }
  .post-article { padding: 0 24px; margin: 48px auto; }
  .post-article p { font-size: 17px; }
}

@media (max-width: 560px) {
  .cons-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .cons-row-val { text-align: left; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .page-hero .subhero-title { font-size: 30px; }
  .container { padding: 0 22px; }
}
