.text-history-main {
  width: min(1080px, calc(100% - 40px));
  padding: clamp(38px, 7vw, 82px) 0 90px;
}

.text-history-main article { min-width: 0; }

.history-hero { max-width: 1000px; }
.history-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.4rem, 8.3vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.062em;
}
.history-lede {
  max-width: 880px;
  margin: 30px 0 0;
  color: #35483f;
  font: clamp(1.18rem, 2.15vw, 1.48rem)/1.62 Georgia, "Times New Roman", serif;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 11px 17px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.primary-action { color: #fff; background: var(--forest); }
.primary-action:hover { color: #fff; background: var(--forest-dark); }
.secondary-action { color: var(--forest); background: var(--surface); border: 1px solid var(--forest); }
.secondary-action:hover { color: #8a5524; border-color: #8a5524; }

.history-thesis {
  margin: 42px 0 0;
  padding: 27px 30px;
  background: #e4ece7;
  border-left: 5px solid var(--forest);
  box-shadow: 0 14px 40px rgba(35, 39, 31, .05);
}
.history-thesis span {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.history-thesis strong { max-width: 920px; display: block; font: 700 1.18rem/1.55 Georgia, "Times New Roman", serif; }

.history-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 66px;
  background: var(--line);
  border: 1px solid var(--line);
  gap: 1px;
}
.history-numbers article { min-width: 0; padding: 25px; background: rgba(255, 253, 248, .94); }
.history-numbers strong { display: block; color: var(--forest); font: 500 clamp(2.65rem, 5vw, 4.4rem)/.95 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
.history-numbers span { display: block; margin-top: 9px; color: #6e481f; font-size: .68rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.history-numbers p { margin: 12px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.history-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.history-section.wide-section { max-width: 1080px; }
.history-section h2 {
  max-width: 900px;
  margin: 0 0 24px;
  font-size: clamp(2.1rem, 5.1vw, 4rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.history-section > p,
.history-section > ul,
.history-section > ol:not(.source-list):not(.transmission-chain) {
  font: 1.11rem/1.76 Georgia, "Times New Roman", serif;
}
.history-section > p { margin: 0 0 1.25em; }
.history-section > p:last-child { margin-bottom: 0; }
.section-kicker { margin: 0 0 11px !important; color: var(--gold); font: 900 .69rem/1 Arial, Helvetica, sans-serif !important; letter-spacing: .15em; text-transform: uppercase; }
.section-intro { max-width: 850px; color: #405149; }
.plain-callout { margin-top: 26px !important; padding: 20px 22px; background: #eee7da; border-left: 4px solid var(--gold); }

.transmission-chain { display: grid; gap: 0; margin: 34px 0; padding: 0; list-style: none; }
.transmission-chain li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; min-height: 92px; }
.transmission-chain li > span { position: relative; z-index: 2; display: grid; place-items: center; align-self: start; width: 44px; height: 44px; color: #fff; background: var(--forest); border-radius: 50%; font-size: .75rem; font-weight: 900; }
.transmission-chain li:not(:last-child)::before { position: absolute; left: 21px; top: 42px; bottom: -2px; width: 2px; background: #b9c8c0; content: ""; }
.transmission-chain li > div { padding: 6px 0 22px; }
.transmission-chain strong { font: 700 1.12rem/1.3 Georgia, "Times New Roman", serif; }
.transmission-chain p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

.variant-grid,
.count-grid,
.change-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0;
}
.count-grid,
.change-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.variant-grid article,
.count-grid article,
.change-types article {
  padding: 21px;
  background: rgba(255, 253, 248, .84);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.variant-grid strong,
.change-types strong { color: var(--forest); font: 700 1.04rem/1.3 Georgia, "Times New Roman", serif; }
.count-grid span { color: #8a5524; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.variant-grid p,
.count-grid p,
.change-types p { margin: 9px 0 0; color: #4e5c55; font-size: .86rem; line-height: 1.55; }

.evidence-list { display: grid; gap: 8px; margin: 26px 0 30px; padding: 0; list-style: none; }
.evidence-list li { padding: 13px 16px; background: rgba(255, 253, 248, .75); border: 1px solid var(--line); border-radius: 5px; }

.version-timeline { position: relative; display: grid; gap: 0; margin-top: 34px; }
.version-timeline::before { position: absolute; left: 109px; top: 0; bottom: 0; width: 1px; background: #c9bda9; content: ""; }
.version-timeline article { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 27px; padding: 0 0 30px; }
.version-timeline article::before { position: absolute; left: 104px; top: 5px; z-index: 2; width: 11px; height: 11px; background: var(--paper); border: 3px solid var(--forest); border-radius: 50%; content: ""; }
.version-timeline time { padding-top: 1px; color: #855020; font-size: .72rem; font-weight: 900; line-height: 1.35; text-align: right; }
.version-timeline h3 { margin: 0; color: var(--forest); font-size: 1.18rem; font-weight: 700; }
.version-timeline p { max-width: 810px; margin: 5px 0 0; color: #4c5a53; font-size: .89rem; line-height: 1.55; }
.version-timeline .scofield-row > div { padding: 14px 17px; background: #f2e4d5; border: 1px solid #dec4a5; border-radius: 6px; }
.version-timeline .scofield-row::before { top: 19px; border-color: #9b4a3e; }

.scofield-section { max-width: 920px; padding-inline: clamp(0px, 3vw, 34px); }
.warning-box { margin: 29px 0 0; padding: 25px 27px; color: #fff8ee; background: #713c32; border-radius: 7px; box-shadow: var(--shadow); }
.warning-box strong { color: #ffd89b; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.warning-box p { margin: 9px 0 0; font: 1.02rem/1.65 Georgia, "Times New Roman", serif; }

.gnostic-bridge { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr); gap: 36px; align-items: center; padding: clamp(34px, 6vw, 58px); color: #f7f3e9; background: var(--forest); border: 0; border-radius: 9px; box-shadow: var(--shadow); }
.gnostic-bridge .section-kicker { color: #efc789; }
.gnostic-bridge h2 { margin-bottom: 17px; }
.gnostic-bridge p { color: #e0e9e3; font-size: 1rem; }
.gnostic-bridge .primary-action { margin-top: 9px; color: var(--forest-dark); background: #efc789; }
.gnostic-bridge .primary-action:hover { background: #ffe0ad; }
.gnostic-bridge dl { display: grid; gap: 1px; margin: 0; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.gnostic-bridge dl div { padding: 18px; background: rgba(255,255,255,.07); }
.gnostic-bridge dt { font: 500 2.4rem/1 Georgia, "Times New Roman", serif; }
.gnostic-bridge dd { margin: 5px 0 0; color: #d4e1da; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; }

.sources-section { max-width: 980px; }
.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 30px 0 0; padding: 1px; background: var(--line); list-style-position: inside; }
.source-list li { min-width: 0; padding: 15px 17px; background: var(--surface); font-size: .81rem; line-height: 1.45; }
.source-list a { font-weight: 700; }

.history-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0 0; background: var(--line); border: 1px solid var(--line); gap: 1px; }
.history-next a { display: grid; align-content: start; gap: 7px; min-height: 126px; padding: 21px; color: inherit; background: var(--surface); text-decoration: none; }
.history-next a:hover { background: #f0e7d8; }
.history-next span { color: #8a5524; font-size: .64rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.history-next strong { color: var(--forest); font: 700 1.05rem/1.35 Georgia, "Times New Roman", serif; }

/* Gnostic field guide */
.gnostic-hero h1 { max-width: 1060px; font-size: clamp(3.2rem, 7.3vw, 6.5rem); }
.gnostic-caution { background: #eee4d3; border-left-color: #9b4a3e; }
.gnostic-caution span { color: #8a3f36; }
.archive-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 30px; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.archive-numbers div { padding: 18px; background: var(--surface); text-align: center; }
.archive-numbers strong { display: block; color: var(--forest); font: 500 2.6rem/1 Georgia, "Times New Roman", serif; }
.archive-numbers span { display: block; margin-top: 6px; color: var(--muted); font-size: .65rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }

.label-key { display: grid; gap: 10px; margin: 27px 0 0; padding: 0; list-style: none; }
.label-key li { padding: 15px 17px; background: rgba(255,253,248,.75); border: 1px solid var(--line); }
.tag { display: inline-block; width: fit-content; padding: 4px 7px; border: 1px solid currentColor; border-radius: 999px; font-size: .58rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.strong-tag { color: #266552; background: #e2eee8; }
.debated-tag { color: #775124; background: #f4ead7; }
.fragment-tag { color: #8e4037; background: #f4e3df; }
.other-tag { color: #4f5f6f; background: #e7ebee; }

.gospel-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.gospel-cards article { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: rgba(255,253,248,.9); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 13px 38px rgba(35,39,31,.05); }
.gospel-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.gospel-card-top small { color: var(--muted); font-size: .63rem; font-weight: 800; }
.gospel-cards h3 { margin: 18px 0 10px; color: var(--forest); font-size: 1.65rem; font-weight: 700; }
.gospel-cards > article > p { margin: 0; color: #46564e; font: .98rem/1.65 Georgia, "Times New Roman", serif; }
.gospel-cards dl { display: grid; grid-template-columns: 1fr; gap: 1px; margin: 20px 0; background: var(--line); border: 1px solid var(--line); }
.gospel-cards dl div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 10px 12px; background: #f8f4ec; }
.gospel-cards dt { color: #815020; font-size: .63rem; font-weight: 900; text-transform: uppercase; }
.gospel-cards dd { margin: 0; color: #4b5952; font-size: .74rem; }
.gospel-cards > article > a { margin-top: auto; font-size: .76rem; font-weight: 800; }

.text-source-link { display: inline-block; margin-top: 5px; font-size: .83rem; font-weight: 800; }
.apocrypha-table { display: grid; margin-top: 28px; border: 1px solid var(--line); }
.apocrypha-table > div { display: grid; grid-template-columns: .8fr 1.2fr 1.5fr; gap: 0; border-bottom: 1px solid var(--line); }
.apocrypha-table > div:last-child { border-bottom: 0; }
.apocrypha-table > div > * { padding: 13px 15px; border-right: 1px solid var(--line); }
.apocrypha-table > div > *:last-child { border-right: 0; }
.apocrypha-table .table-head { color: #f8f4eb; background: var(--forest); }
.apocrypha-table .table-head span { font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.apocrypha-table strong { color: var(--forest); background: rgba(255,253,248,.8); font: 700 .9rem/1.4 Georgia, "Times New Roman", serif; }
.apocrypha-table div:not(.table-head) span { color: #4f5d56; background: rgba(255,253,248,.58); font-size: .78rem; line-height: 1.45; }
.directory-note { margin-top: 20px !important; color: var(--muted); font-size: .92rem !important; }

.future-study { max-width: 940px; padding: clamp(32px, 5vw, 50px); background: #e6ede8; border: 1px solid #c8d5ce; border-radius: 8px; }
.future-study h2 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
.future-study ol { display: grid; gap: 8px; padding-left: 24px; }
.future-study li { padding-left: 5px; }

@media (max-width: 760px) {
  .history-numbers,
  .variant-grid,
  .count-grid,
  .change-types,
  .gospel-cards,
  .source-list,
  .history-next { grid-template-columns: 1fr; }
  .gnostic-bridge { grid-template-columns: 1fr; }
  .archive-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apocrypha-table .table-head { display: none; }
  .apocrypha-table > div { grid-template-columns: 1fr; }
  .apocrypha-table > div > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .apocrypha-table > div > *:last-child { border-bottom: 0; }
}

@media (max-width: 540px) {
  .text-history-main { width: min(100% - 24px, 1080px); padding-top: 28px; }
  .history-hero h1,
  .gnostic-hero h1 { font-size: 3.25rem; }
  .history-thesis { padding: 22px; }
  .history-section { padding: 40px 0; }
  .history-section > p,
  .history-section > ul,
  .history-section > ol:not(.source-list):not(.transmission-chain) { font-size: 1.03rem; }
  .version-timeline::before { left: 16px; }
  .version-timeline article { grid-template-columns: 1fr; gap: 8px; padding-left: 39px; }
  .version-timeline article::before { left: 11px; }
  .version-timeline time { text-align: left; }
  .archive-numbers { grid-template-columns: 1fr 1fr; }
  .gospel-card-top { align-items: flex-start; flex-direction: column; }
}
