* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── Content container ──────────────────────────────────────────────────── */
article,
.content,
.content-x {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
article,
.content { padding: 2rem 1rem 3rem; }
.content-x { padding: 0 1rem; }

@media (max-width: 900px) {
  article,
  .content,
  .content-x { padding: 0 24px; }
}

@media (min-width: 900px) {
  article,
  .content { padding: 3rem 0.25rem 4rem; }
  .content-x { padding-left: 0.25rem; padding-right: 0.25rem; }
}

/* ─── Base typography ────────────────────────────────────────────────────── */
p,
ul,
ol,
blockquote {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.08rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  color: #12212f;
  line-height: 1.25;
  margin: 1.75rem 0 0.9rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin-top: 2rem;
  padding-top: 0.35rem;
  border-top: 1px solid #d9d7ce;
}

h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h5,
h6 { font-size: 1rem; }

a {
  color: #0f6a5b;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

.subtitle {
  font-size: 1.05rem;
  font-style: italic;
  color: #555;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* ─── Proposal meta bar ──────────────────────────────────────────────────── */
.proposal-meta-bar {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.875rem;
  margin: 0 0 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #d0cfc8;
}
.pmb-status {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}
.pmb-status.proposed { background: #fef3c7; color: #92400e; }
.pmb-status.adopted  { background: #d1fae5; color: #065f46; }
.pmb-status.draft    { background: #f1f5f9; color: #475569; }
.pmb-type {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: #f0f0ec;
  color: #444;
}
.pmb-date { color: #555; }
.pmb-updated { color: #888; }
.pmb-tags { color: #888; }
.pmb-link {
  color: #0f6a5b;
  text-decoration: none;
  font-weight: 600;
}
.pmb-link:hover { text-decoration: underline; }

/* ─── Site header ────────────────────────────────────────────────────────── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-brand {
  color: #111827;
  text-decoration: none;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.site-brand:hover { color: #0f6a5b; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a { color: #4b5563; text-decoration: none; }
.site-nav a:hover { color: #111827; }

@media (max-width: 640px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  /* ─── Mobile typography scale ──────────────────────────────────────────── */
  /* Bump the root em so all rem-based sizes scale up ~6% across the board  */
  html { font-size: 17px; }

  p, ul, ol, blockquote { line-height: 1.75; }

  /* Floor all-caps labels — at 0.72–0.78rem they'd render below 13px       */
  .kicker,
  .section-num,
  .draft-label,
  .pmb-status,
  .pmb-type,
  .phase-card .phase-step,
  .alert-box strong,
  .alert-green strong,
  .data-box .data-box-title,
  .references .references-label { font-size: 0.82rem; }

  .footer-note,
  .footnote { font-size: 0.88rem; }
}

    .stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.75rem 0;
  }
  .stat-card {
    flex: 1 1 160px;
    border-left: 4px solid #4a7c59;
    padding: 0.75rem 1rem;
    background: #f4f9f5;
  }
  .stat-card .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #2e5c3e;
  }
  .stat-card .stat-label {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    margin-top: 0.25rem;
  }

/* ─── Alert / data boxes ─────────────────────────────────────────────────── */
.alert-box {
  border-left: 4px solid #b85c1a;
  background: #fdf4ec;
  padding: 0.85rem 1.1rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.alert-box strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #7a3b0d;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
}

.alert-green {
  border-left: 4px solid var(--prop-green);
  background: #f0f6f2;
  padding: 0.85rem 1.1rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.alert-green strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--prop-green-dk);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
}

.data-box {
  border: 1px solid #c8d9cc;
  background: #f0f6f2;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.93rem;
}
.data-box .data-box-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--prop-green);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.data-box ul { margin: 0.5rem 0 0 1.25rem; padding: 0; }
.data-box li { margin-bottom: 0.3rem; }

/* ─── Misc blocks ────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid #d0d0d0;
  margin: 2.5rem 0;
}

.card-mockup {
  border: 2px solid var(--prop-green);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  max-width: 480px;
  margin: 1.5rem auto;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.6;
  background: #fafdf9;
}
.card-mockup .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--prop-green-dk);
  margin-bottom: 0.15rem;
}
.card-mockup .card-subtitle {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #555;
  margin-bottom: 1rem;
}
.card-mockup .card-field { margin-bottom: 0.4rem; }
.card-mockup .card-field-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-mockup .card-field-value {
  border-bottom: 1px solid #ccc;
  display: inline-block;
  min-width: 200px;
}
.card-mockup .card-terms {
  font-size: 0.78rem;
  color: #666;
  margin-top: 1rem;
  border-top: 1px solid #ddd;
  padding-top: 0.75rem;
}

.name-note {
  background: #f7f7f5;
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.footer-note {
  font-size: 0.82rem;
  color: #777;
  border-top: 1px solid #d0d0d0;
  padding-top: 1rem;
  margin-top: 2.5rem;
}

.photo-placeholder {
  background: #eee;
  border: 1px dashed #bbb;
  padding: 1.5rem;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.section-num {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--prop-green);
  margin-bottom: 0.25rem;
}

.preface {
  font-size: 0.93rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.references {
  border: 1px solid #ddd;
  background: #f7f7f5;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
}
.references .references-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #555;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.references ul { margin: 0.5rem 0 0 1.25rem; padding: 0; }
.references li { margin-bottom: 0.3rem; }

.design-note {
  background: #f0f6f2;
  border: 1px solid #c8d9cc;
  padding: 0.85rem 1.1rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
  color: #444;
}
.design-note strong { color: var(--prop-green-dk); }

.draft-label {
  display: inline-block;
  background: #e8e8e4;
  color: #666;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;
}

/* ─── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --prop-ink:      #1f2a24;
  --prop-muted:    #5d6b62;
  --prop-green:    #2f6b4f;
  --prop-green-dk: #234f3b;
  --prop-sand:     #f4f1e9;
  --prop-line:     #d9d6cc;
  --prop-accent:   #b9842f;
}

/* ─── Kicker / lede ──────────────────────────────────────────────────────── */
.kicker {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--prop-green);
  margin: 0 0 .4rem;
}
.lede {
  font-size: 1.12rem;
  color: var(--prop-muted);
  margin: 0 0 1.4rem;
}

/* ─── Summary box ────────────────────────────────────────────────────────── */
.summary-box {
  background: var(--prop-green); color: #fff;
  border-radius: 12px; padding: 1.4rem 1.6rem; margin: 1.6rem 0 2rem;
}
.summary-box h2 { color: #fff; border: none; margin: 0 0 .6rem; padding: 0; font-size: 1.15rem; }
.summary-box p  { margin: 0 0 .7rem; color: #eef3ef; }
.summary-box p:last-child { margin-bottom: 0; }
.summary-box strong { color: #fff; }

/* ─── Comparison columns ─────────────────────────────────────────────────── */
.compare-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.2rem 0; }
.compare-col  { flex: 1 1 300px; border: 1px solid var(--prop-line); border-radius: 10px; overflow: hidden; }
.compare-col .compare-col-head      { padding: .7rem 1rem; font-weight: 700; color: #fff; }
.compare-col.col-now .compare-col-head  { background: var(--prop-muted); }
.compare-col.col-prop .compare-col-head { background: var(--prop-green); }
.compare-col ul { margin: 0; padding: .8rem 1rem .9rem 1.4rem; }
.compare-col li { font-size: .92rem; }

/* ─── Data table ─────────────────────────────────────────────────────────── */
.data-table { border: 1px solid var(--prop-line); border-radius: 10px; overflow: hidden; margin: 1rem 0 1.4rem; }
.data-table .data-table-head { background: var(--prop-green); color: #fff; padding: .7rem 1rem; font-weight: 700; display: flex; align-items: baseline; gap: .6rem; }
.data-table .data-table-head .data-role { font-weight: 400; font-size: .82rem; opacity: .85; }
.fields-table { width: 100%; border-collapse: collapse; }
.fields-table td { padding: .55rem 1rem; border-top: 1px solid var(--prop-line); vertical-align: top; font-size: .92rem; }
.fields-table tr:first-child td { border-top: none; }
.fields-table .field-name { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; color: var(--prop-green-dk); white-space: nowrap; width: 36%; }
.fields-table .field-desc { color: var(--prop-muted); }
.field-key { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; background: var(--prop-sand); border: 1px solid var(--prop-line); border-radius: 4px; padding: 0 .35rem; margin-left: .35rem; color: var(--prop-muted); vertical-align: middle; }

/* ─── Questionnaire ──────────────────────────────────────────────────────── */
.form-box { border: 1px solid var(--prop-line); border-radius: 10px; overflow: hidden; margin: 1.2rem 0; }
.form-box .form-head { background: var(--prop-sand); padding: .8rem 1.1rem; font-weight: 700; color: var(--prop-green-dk); border-bottom: 1px solid var(--prop-line); }
.form-q { padding: .85rem 1.1rem; border-top: 1px solid var(--prop-line); }
.form-q:first-of-type { border-top: none; }
.form-q .form-qlabel { font-weight: 600; }
.form-q .form-qhint  { font-size: .85rem; color: var(--prop-muted); margin-top: .15rem; }
.check-list { list-style: none; padding: .3rem 0 0; margin: 0; }
.check-list li { font-size: .9rem; color: var(--prop-ink); margin: .2rem 0; }
.check-list li::before { content: "☐ "; color: var(--prop-green); }

/* ─── Use-case cards ─────────────────────────────────────────────────────── */
.usecase { border: 1px solid var(--prop-line); border-left: 4px solid var(--prop-green); border-radius: 8px; padding: 1rem 1.1rem; margin: 1rem 0; background: #fff; }
.usecase h4 { margin: 0 0 .4rem; font-size: 1.02rem; color: var(--prop-green-dk); }
.usecase p  { margin: 0 0 .5rem; font-size: .94rem; }
.usecase .records-note { font-size: .85rem; color: var(--prop-muted); border-top: 1px dashed var(--prop-line); padding-top: .5rem; margin: 0; }

/* ─── Phase timeline ─────────────────────────────────────────────────────── */
.phase-grid { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.2rem 0; }
.phase-card { flex: 1 1 200px; border: 1px solid var(--prop-line); border-radius: 10px; padding: 1rem 1.1rem; background: #fff; }
.phase-card .phase-step { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--prop-accent); }
.phase-card h4 { margin: .2rem 0 .4rem; font-size: 1rem; }
.phase-card p  { font-size: .88rem; color: var(--prop-muted); margin: 0; }

/* ─── Document footer note ───────────────────────────────────────────────── */
.footnote { color: var(--prop-muted); font-size: .85rem; }
