:root {
  color-scheme: light;
  --surface: #fffefa;
  --background: #f6f3eb;
  --ink: #242721;
  --muted: #55584d;
  --rule: #d8d5c8;
  --green: #24483b;
  --green-tint: #e8eee6;
  --highlight: #fbe8a6;
  --serif: Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); font: 1rem/1.5 system-ui, sans-serif; }
button, select { font: inherit; }
button { cursor: pointer; }
button, select, a, [tabindex] { outline-offset: 3px; }
:focus-visible { outline: 3px solid #a56319; }
a { color: var(--green); text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: 1.65rem; line-height: 1.2; }
h3 { font-size: 1.02rem; line-height: 1.3; }
.wrap { width: min(75rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 2; background: var(--surface); padding: .6rem .9rem; transform: translateY(-160%); }
.skip:focus { transform: none; }

.masthead { background: #17352c; color: #f9f7ee; padding: 1.35rem 0 2rem; }
.brandbar { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid #57726a; }
.brand { color: inherit; font-size: .85rem; font-weight: 650; letter-spacing: .045em; }
.edition { color: #d4e0d8; font-size: .78rem; }
.masthead h1 { margin-top: .9rem; font-size: clamp(2.55rem, 5.5vw, 4.3rem); line-height: 1.06; letter-spacing: -.035em; }
.masthead p { color: #dce5dd; max-width: 47ch; margin-top: .6rem; }
.release-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .85rem; font-size: .89rem; }
.release-links a { color: inherit; }
.loading { margin-block: 1.5rem; }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: .9rem 0; gap: .75rem; border-bottom: 1px solid var(--rule); }
.counts li { display: flex; align-items: baseline; gap: .55rem; color: var(--muted); font-size: .83rem; }
.counts strong { font: 400 1.7rem/1 var(--serif); color: var(--ink); }
.views { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--rule); }
.views button { background: transparent; border: 0; border-bottom: 3px solid transparent; padding: .85rem .08rem .64rem; color: var(--muted); }
.views button[aria-pressed="true"] { color: var(--green); border-bottom-color: var(--green); font-weight: 650; }

.cross-panel { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.65fr); gap: 1.6rem; padding-top: 1.4rem; }
.selectors, .comparison { min-width: 0; }
.selectors h2 { margin-bottom: .75rem; }
.relation-list { display: grid; max-height: 35rem; overflow: auto; border: 1px solid var(--rule); border-radius: .45rem; background: var(--surface); }
.relation-choice { display: grid; gap: .2rem; width: 100%; text-align: start; background: transparent; border: 0; border-inline-start: 3px solid transparent; padding: .65rem .7rem; color: var(--ink); }
.relation-choice + .relation-choice { border-top: 1px solid var(--rule); }
.relation-choice:hover { background: #f3f4ed; }
.relation-choice[aria-pressed="true"] { background: var(--green-tint); border-inline-start-color: var(--green); }
.relation-choice:focus-visible { outline-offset: -3px; }
.relation-choice strong { color: var(--green); font-size: .81rem; }
.relation-choice span { font-size: .85rem; }
.relation-choice small { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: .55rem; }
.comparison > h2 { font-size: clamp(1.85rem, 4vw, 2.65rem); }
.comparison-meta { color: var(--muted); font-size: .89rem; margin: .38rem 0 .9rem; }
.passages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: stretch; }
.passage { display: flex; flex-direction: column; padding: 1rem 1.1rem; min-width: 0; }
.passage h3 { font: 400 1.34rem/1.18 var(--serif); }
.passage-label { color: var(--muted); font-size: .77rem; margin: 0 0 .32rem; }
.passage .claim { line-height: 1.45; color: var(--green); margin-top: .5rem; font-weight: 600; }
.passage blockquote, .node-detail blockquote { margin: .75rem 0; padding-inline-start: .75rem; border-inline-start: 2px solid #b5944c; font: 1.05rem/1.52 var(--serif); white-space: pre-line; overflow-wrap: anywhere; }
.passage .citation { color: var(--muted); font-size: .77rem; margin-block: auto .7rem; }
.plain-button { align-self: start; width: fit-content; background: transparent; border: 1px solid var(--green); border-radius: .3rem; padding: .34rem .65rem; color: var(--green); font-size: .86rem; }
.plain-button:hover { background: var(--green-tint); }
.plain-button[aria-pressed="true"] { color: #fff; background: var(--green); }
.rationale { margin-bottom: .75rem; padding: .85rem 1rem; }
.rationale p { margin-top: .35rem; }

.read-panel { padding-top: 1.3rem; }
.article-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.article-header h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.article-header p { color: var(--muted); font-size: .87rem; margin-top: .35rem; }
.article-header select { min-width: 13.5rem; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: .9rem; }
.original { min-width: 0; }
.original h3 { padding: .9rem 1rem .72rem; border-bottom: 1px solid var(--rule); }
.original-body { max-height: 55vh; min-height: 17rem; overflow: auto; padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; font: 1.17rem/1.55 var(--serif); }
.original-body p { white-space: normal; }
mark { background: var(--highlight); color: inherit; }
.annotations { display: grid; gap: .85rem; min-width: 0; }
.annotation-card { padding: .9rem 1rem; min-width: 0; }
.field-label { display: block; margin-block: .55rem .25rem; color: var(--muted); font-size: .78rem; }
select { width: 100%; min-width: 0; appearance: auto; border: 1px solid #9d9e92; border-radius: .25rem; padding: .36rem .45rem; color: var(--ink); background: var(--surface); }
.node-detail, .edge-detail { margin-top: .75rem; }
.argument-graph { display: grid; gap: .35rem; margin-top: .65rem; padding: .7rem; background: #f7f6ef; border: 1px solid var(--rule); border-radius: .35rem; }
.graph-focus, .graph-node { padding: .45rem .55rem; border-radius: .25rem; }
.graph-focus { color: var(--green); border: 1px solid #739084; background: var(--green-tint); font-size: .86rem; }
.graph-focus strong { display: block; margin-bottom: .14rem; }
.graph-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(8.8rem, 100%), 1fr)); list-style: none; padding: 0; margin: 0; gap: .44rem; }
.graph-branch { display: grid; grid-template-rows: auto auto; gap: .2rem; min-width: 0; }
.graph-node, .graph-link { min-width: 0; text-align: start; overflow-wrap: anywhere; }
.graph-node { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); font-size: .82rem; }
.graph-node:hover { border-color: var(--green); }
.graph-link { color: var(--green); background: transparent; border: 1px solid transparent; border-radius: .23rem; padding: .18rem .42rem; font-size: .8rem; font-weight: 600; }
.graph-link:hover, .graph-link[aria-pressed="true"] { border-color: #a3b5a9; background: var(--green-tint); }
.node-detail p + p { margin-top: .4rem; }
.node-meta { color: var(--muted); font-size: .81rem; }
.annotations details { font-size: .88rem; margin-top: .45rem; }
.annotations details summary { cursor: pointer; color: var(--green); }
.annotations details p { margin-top: .35rem; }
.edge-path { display: grid; justify-items: start; gap: .35rem; }
.edge-path .link-label { color: var(--muted); font-size: .8rem; }
.edge-path .plain-button { text-align: start; }
.edge-span { color: var(--muted); font-size: .8rem; margin-top: .5rem; }
.review-note { color: var(--muted); font-size: .82rem; padding: .8rem 0 1.5rem; border-top: 1px solid var(--rule); margin-top: 1.2rem; overflow-wrap: anywhere; }
.review-note p + p { margin-top: .25rem; }

@media (max-width: 48rem) {
  .wrap { width: calc(100% - 2rem); }
  .cross-panel { grid-template-columns: 1fr; gap: 1rem; }
  .relation-list { max-height: 10.6rem; }
  .reading-layout { grid-template-columns: 1fr; }
  .original-body { max-height: 37vh; min-height: 8.5rem; }
}

@media (max-width: 34rem) {
  .counts { grid-template-columns: repeat(2, 1fr); }
  .counts li { gap: .35rem; }
  .passages { grid-template-columns: 1fr; }
  .article-header { display: block; }
  .article-header select { width: 100%; }
}
