:root {
  --top20-deep: #08243f;
  --top20-green: #123b5c;
  --top20-blue: #284f88;
  --top20-gold: #bd8746;
  --top20-warm: #f0c985;
  --top20-paper: #f5f0e6;
  --top20-surface: #fffdf8;
  --top20-line: #d8cebd;
}

body.top20-page { background: radial-gradient(circle at 10% 0, rgba(29, 96, 143, .12), transparent 30rem), var(--top20-paper); }
.top20-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.top20-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 34px 64px;
  align-items: end;
  padding: clamp(58px, 9vw, 108px) 0 48px;
}
.top20-intro h1 { max-width: 900px; font-size: clamp(2.65rem, 6.7vw, 5.8rem); }
.top20-intro .lede { max-width: 850px; margin-top: 24px; }
.top20-intro-note { padding: 20px 0 4px 20px; border-left: 3px solid var(--top20-gold); }
.top20-intro-note strong { display: block; margin-bottom: 7px; color: var(--top20-deep); font: 700 1rem/1.3 Georgia, "Times New Roman", serif; }
.top20-intro-note p { margin: 0 0 12px; color: #59645f; font-size: .78rem; line-height: 1.55; }
.top20-intro-note a { font-size: .74rem; font-weight: 900; }

.top20-cumulative {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 50px);
  color: #f9f5ec;
  background:
    radial-gradient(circle at 88% 20%, rgba(242, 199, 131, .18), transparent 18rem),
    linear-gradient(135deg, #08243f, #123b5c 68%, #1d608f);
  border-radius: 12px;
  box-shadow: 0 22px 58px rgba(8, 36, 63, .16);
}
.top20-cumulative .eyebrow { color: var(--top20-warm); }
.top20-cumulative h2 { max-width: 800px; margin: 0; color: white; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.04em; line-height: 1.02; }
.top20-cumulative > p:not(.eyebrow) { max-width: 940px; margin: 18px 0 0; color: rgba(255,255,255,.8); font: 400 1rem/1.65 Georgia, "Times New Roman", serif; }
.top20-cumulative-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 28px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); }
.top20-cumulative-steps span { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: center; min-height: 74px; padding: 14px; color: rgba(255,255,255,.82); background: rgba(8, 36, 63, .72); font-size: .7rem; font-weight: 800; line-height: 1.45; }
.top20-cumulative-steps b { display: grid; place-items: center; width: 27px; height: 27px; color: #08243f; background: var(--top20-warm); border-radius: 50%; font-size: .7rem; }

.top20-featured,
.top20-review { padding: clamp(56px, 8vw, 92px) 0 0; }
.top20-section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .55fr); gap: 30px 60px; align-items: end; margin-bottom: 26px; }
.top20-section-heading h2 { margin: 0; font-size: clamp(2.15rem, 4vw, 3.6rem); letter-spacing: -.045em; line-height: 1; }
.top20-section-heading > p { margin: 0; color: #5c6862; font: 400 .94rem/1.55 Georgia, "Times New Roman", serif; }

.top20-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.top20-feature-grid a {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  color: inherit;
  background: var(--top20-surface);
  border: 1px solid var(--top20-line);
  border-top: 4px solid var(--top20-gold);
  border-radius: 9px;
  box-shadow: 0 12px 34px rgba(35, 39, 31, .06);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.top20-feature-grid a:nth-child(2) { border-top-color: #315c8f; }
.top20-feature-grid a:nth-child(3) { border-top-color: #6b8562; }
.top20-feature-grid a:nth-child(4) { border-top-color: #a65442; }
.top20-feature-grid a:hover { color: inherit; border-color: var(--top20-green); box-shadow: 0 18px 42px rgba(35, 39, 31, .11); transform: translateY(-3px); }
.top20-feature-grid span { color: #7a654a; font-size: .62rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.top20-feature-grid strong { margin-top: auto; color: #25302c; font: 500 clamp(1.45rem, 2.4vw, 2rem)/1.05 Georgia, "Times New Roman", serif; }
.top20-feature-grid b { margin-top: 8px; color: var(--top20-green); font: 700 .82rem/1.35 Arial, Helvetica, sans-serif; }
.top20-feature-grid i { margin-top: 18px; color: var(--top20-green); font-size: .72rem; font-style: normal; font-weight: 900; }

.top20-toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 14px 0 18px; border-top: 1px solid var(--top20-line); }
.top20-filters,
.top20-bulk-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.top20-toolbar button { min-height: 38px; padding: 8px 12px; color: var(--top20-green); background: rgba(255,253,248,.7); border: 1px solid var(--top20-line); border-radius: 999px; font: 900 .67rem/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.top20-toolbar button:hover,
.top20-toolbar button:focus-visible { color: #173f66; border-color: var(--top20-green); outline: none; }
.top20-filters button[aria-pressed="true"] { color: white; background: var(--top20-green); border-color: var(--top20-green); }
.top20-bulk-actions button { border-radius: 6px; }
.top20-status { margin: 0 0 14px; color: #68716d; font-size: .78rem; }
.top20-list { display: grid; gap: 9px; padding-bottom: 88px; }

.top20-item { scroll-margin-top: 76px; overflow: clip; background: var(--top20-surface); border: 1px solid var(--top20-line); border-radius: 9px; box-shadow: 0 7px 22px rgba(35,39,31,.035); }
.top20-item[hidden] { display: none; }
.top20-item > summary { min-height: 52px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 8px 14px; align-items: center; padding: 7px 14px; cursor: pointer; list-style: none; }
.top20-item > summary::-webkit-details-marker { display: none; }
.top20-item[open] > summary { background: #edf2ee; border-bottom: 1px solid var(--top20-line); }
.top20-rank { display: grid; place-items: center; width: 30px; height: 30px; color: white; background: var(--top20-green); border-radius: 50%; font-size: .64rem; font-weight: 900; }
.top20-summary-copy { min-width: 0; }
.top20-summary-copy small { display: block; margin-bottom: 1px; color: #7d674b; font-size: .54rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.top20-summary-copy strong { display: block; overflow: hidden; color: #1f2925; font: 600 1rem/1.2 Georgia, "Times New Roman", serif; text-overflow: ellipsis; white-space: nowrap; }
.top20-reference { color: var(--top20-blue); font-size: .7rem; font-weight: 900; white-space: nowrap; }
.top20-attribution-chip { padding: 5px 8px; color: #5d503e; background: #f1ebdf; border: 1px solid #dcd0bd; border-radius: 999px; font-size: .55rem; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }

.top20-item-body { padding: clamp(18px, 3.5vw, 34px); transform-origin: top; animation: top20-reveal 190ms ease-out; }
@keyframes top20-reveal { from { opacity: .25; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.top20-explanation { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 26px; background: var(--top20-line); border: 1px solid var(--top20-line); border-radius: 8px; overflow: hidden; }
.top20-explanation article { padding: 20px; background: #fffdf9; }
.top20-explanation article:last-child { background: #edf3ee; }
.top20-explanation span { display: block; margin-bottom: 7px; color: #a03d34; font-size: .62rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.top20-explanation article:last-child span { color: var(--top20-green); }
.top20-explanation h3 { margin: 0 0 7px; font-size: 1.2rem; font-weight: 700; }
.top20-explanation p { margin: 0; color: #4e5a55; font: 400 .9rem/1.62 Georgia, "Times New Roman", serif; }

.top20-verses-label { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.top20-verses-label h3 { margin: 0; font-size: 1.18rem; font-weight: 700; }
.top20-verses-label p { margin: 0; color: #68716d; font-size: .68rem; }
.top20-verse-status { margin: 0; padding: 18px; color: #66706b; background: #f6f3ec; border: 1px dashed #cec3b1; border-radius: 7px; font-size: .78rem; }
.top20-verse-stack { display: grid; gap: 16px; }
.top20-verse-part { display: grid; gap: 12px; padding: 18px; background: #fff; border: 1px solid #ded7ca; border-radius: 8px; }
.top20-verse-part + .top20-verse-part { margin-top: 4px; }
.top20-verse-part .source-verse { padding: 3px 0; }
.top20-verse-part .source-verse-mt { color: #19221f !important; }
.top20-verse-part .source-verse-tj { color: #184d89 !important; }
.top20-verse-part .source-verse-german { color: #555b58 !important; }

.top20-evidence { display: grid; grid-template-columns: minmax(210px, .42fr) minmax(0, 1fr); gap: 18px 28px; align-items: start; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--top20-line); }
.top20-provenance { padding: 14px 16px; background: #f2eee5; border-left: 3px solid var(--top20-gold); }
.top20-provenance span { display: block; color: #765b3c; font-size: .58rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.top20-provenance strong { display: block; margin-top: 5px; color: #25302c; font: 700 .9rem/1.4 Georgia, "Times New Roman", serif; }
.top20-phoax-group { display: grid; gap: 8px; }
.top20-phoax-group .phoax-badge { width: min(440px, 100%); }
.top20-phoax-explanation { padding: 14px 16px; color: #49554f; background: linear-gradient(105deg, #fbf1dd, #eef3ef); border: 1px solid #ddc497; border-radius: 8px; font-size: .73rem; line-height: 1.55; }
.top20-phoax-explanation p { margin: 0 0 8px; }
.top20-phoax-explanation nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.top20-phoax-explanation a { font-weight: 900; }

.top20-item-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 24px; }
.top20-item-actions a,
.top20-item-actions button { min-height: 39px; display: inline-flex; align-items: center; padding: 9px 13px; color: var(--top20-green); background: white; border: 1px solid var(--top20-green); border-radius: 6px; font: 900 .7rem/1 Arial, Helvetica, sans-serif; cursor: pointer; text-decoration: none; }
.top20-item-actions a:hover,
.top20-item-actions button:hover { color: #173f66; background: #edf3ee; }
.top20-item-actions .top20-primary-link { color: white; background: var(--top20-green); }
.top20-item-actions .top20-primary-link:hover { color: white; background: #08243f; }
.top20-load-error { color: #913d34; }

@media (max-width: 960px) {
  .top20-intro { grid-template-columns: 1fr; }
  .top20-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top20-cumulative-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top20-item > summary { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .top20-attribution-chip { display: none; }
  .top20-reference { grid-column: auto; }
}

@media (max-width: 700px) {
  .top20-shell { width: min(100% - 26px, 1180px); }
  .top20-intro { padding-top: 38px; }
  .top20-section-heading { grid-template-columns: 1fr; gap: 12px; }
  .top20-feature-grid,
  .top20-cumulative-steps,
  .top20-explanation,
  .top20-evidence { grid-template-columns: 1fr; }
  .top20-feature-grid a { min-height: 190px; }
  .top20-item > summary { grid-template-columns: 32px minmax(0, 1fr); gap: 5px 10px; padding: 8px 10px; }
  .top20-summary-copy strong { white-space: normal; }
  .top20-reference { grid-column: 2; font-size: .62rem; }
  .top20-verse-part { padding: 13px; }
  .top20-item-actions { justify-content: stretch; }
  .top20-item-actions a,
  .top20-item-actions button { justify-content: center; flex: 1 1 auto; }
}

@media (max-width: 440px) {
  .top20-toolbar { align-items: stretch; }
  .top20-filters button { flex: 1 1 auto; }
  .top20-bulk-actions { width: 100%; }
  .top20-bulk-actions button { flex: 1; }
}
