/* ==========================================================
   Trust pages: Vera Grades, keys and revocation, the proof box.
   Shared by the homepage, /readiness, /keys and /verify.
   ========================================================== */

/* ---------- The grade ladder: four steps after none, lit up to where a name has got to ---------- */
.grade { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.grade__steps { display: inline-grid; grid-template-columns: repeat(4, 10px); gap: 3px; }
.grade__steps i { height: 14px; border-radius: 2px; background: rgba(255,255,255,.12); }
.grade__steps i.on { background: var(--go); }
.grade b { font-size: 14px; font-weight: 700; color: var(--white); }
.grade--none b { color: var(--soft); }
.grade--plan .grade__steps i.on { background: #8fdca3; }
.grade--unverified .grade__steps i { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,179,64,.55); }
.grade--unverified b { color: var(--warn); }

/* ---------- Homepage preview ---------- */
.gprev { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.gprev li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.gprev a { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.gprev a b { font-size: 19px; color: var(--white); }
.gprev a span { font-size: 13px; color: var(--dim); }
.gprev a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.gprev p { grid-column: 1 / -1; font-size: 14px; line-height: 1.45; color: var(--soft); max-width: 62ch; }
.gprev__as { margin-top: 14px; font-size: 14px; color: var(--dim); }

/* ---------- The full board ---------- */
.gtable { margin-top: 28px; overflow-x: auto; border-top: 1px solid var(--line-strong); }
.gtable:focus-visible { outline-offset: 6px; }
.gt { width: 100%; min-width: 1080px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.gt thead th { position: sticky; top: 0; padding: 14px 14px 12px 0; text-align: left; vertical-align: bottom; font-size: 13px; font-weight: 700; color: var(--soft); background: var(--black); border-bottom: 1px solid var(--line-strong); }
.gt tbody th, .gt td { padding: 18px 14px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--soft); }
.gt tbody th { width: 150px; }
.gt tbody th b { display: block; font-size: 18px; color: var(--white); }
.gt tbody th span { font-size: 13px; font-weight: 400; color: var(--dim); }
.gt td:nth-child(2) { width: 200px; }
.gt a { color: var(--white); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.gt a:hover { text-decoration-color: var(--white); }
.gt tr:target th b { color: var(--go); }
.gt tr:target { background: rgba(48,209,88,.05); }
.gt__src ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.gt__verify { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.gt__verify::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--go); }
.muted { color: var(--dim); }

@media (max-width: 900px) {
  .gtable { overflow: visible; }
  .gt { min-width: 0; }
  .gt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gt, .gt tbody, .gt tr, .gt th, .gt td { display: block; width: auto !important; }
  .gt tr { padding: 18px 0 8px; border-bottom: 1px solid var(--line-strong); }
  .gt tbody th, .gt td { padding: 6px 0; border: 0; }
  .gt td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--dim); }
  .gt td:nth-child(2)::before { display: none; }
}

/* ---------- Legend, changelog, others ---------- */
.glegend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; }
.glegend div { padding-top: 14px; border-top: 1px solid var(--line); }
.glegend dd { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--soft); }
.glog { list-style: none; margin: 0; padding: 0; }
.glog li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 6px 22px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.glog time { font: 500 14px/1.4 var(--mono); color: var(--white); }
.glog p { font-size: 16px; color: var(--soft); }
.glog a { font-size: 14px; color: var(--white); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
@media (max-width: 720px) { .glog li { grid-template-columns: 1fr; } }

/* ---------- Trust pages: /readiness and /keys ---------- */
.tpage { padding: clamp(120px, 14vw, 168px) 0 var(--section); }
.tpage__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 72px; align-items: end; }
.tpage__title { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 6vw, 104px); line-height: 1; letter-spacing: -.035em; color: var(--white); }
.tpage__by { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 15px; color: var(--soft); }
.tpage__by img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.tpage__meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--soft); }
.tpage__meta b { color: var(--white); font-weight: 700; }
.tpage__rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.tpage__rules li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--white); }
.tpage__rules li span { display: block; margin-top: 2px; font-size: 14px; color: var(--soft); }
.tblock { margin-top: clamp(72px, 9vw, 120px); scroll-margin-top: 96px; }
.tblock > h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; font-size: clamp(34px, 3.4vw, 52px); line-height: 1.02; color: var(--white); }
.tblock > .lede { margin-top: 14px; }
.tblock__body { margin-top: 26px; }
.tcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.tlist { list-style: none; margin: 0; padding: 0; }
.tlist li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--soft); }
.tlist li b { color: var(--white); }
.tlist a, .tprose a { color: var(--white); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.tprose p { font-size: 17px; line-height: 1.6; color: var(--soft); max-width: 68ch; }
.tprose p + p { margin-top: 14px; }
.tnote { margin-top: 26px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line-strong); font-size: 15px; line-height: 1.55; color: var(--soft); max-width: 78ch; }
.tnote b { color: var(--white); }
@media (max-width: 900px) {
  .tpage__head, .tcols { grid-template-columns: 1fr; }
}

/* ---------- Keys page ---------- */
.kroot { margin-top: 36px; padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: var(--panel); border: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; }
.kroot__fp { font: 500 clamp(20px, 2.4vw, 32px)/1.25 var(--mono); letter-spacing: .02em; color: var(--white); word-break: break-word; }
.kroot__k { font-size: 14px; color: var(--soft); margin-bottom: 8px; }
.kroot__alg { font-size: 14px; color: var(--soft); }
.kroot__alg b { display: block; color: var(--white); }
.ktable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ktable th, .ktable td { padding: 14px 16px 14px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ktable thead th { font-size: 13px; color: var(--soft); border-bottom-color: var(--line-strong); }
.ktable td code, .ktable td.k { font: 500 14px/1.4 var(--mono); color: var(--white); }
.ktable a { color: var(--white); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.kempty { padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--soft); }
.kempty b { color: var(--go); }
@media (max-width: 720px) {
  .kroot { grid-template-columns: 1fr; }
  .ktable thead { display: none; }
  .ktable, .ktable tbody, .ktable tr, .ktable td { display: block; }
  .ktable tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ktable td { padding: 3px 0; border: 0; }
}

/* ---------- What a signature proves, and what it doesn't ---------- */
.proves { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; }
.proves > div { padding: 22px 24px 24px; }
.proves > div + div { border-left: 1px solid var(--line-strong); }
.proves h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--white); }
.proves h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.proves__yes h3::before { background: var(--go); }
.proves__no h3::before { background: var(--stop); }
.proves p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--soft); }
@media (max-width: 720px) {
  .proves { grid-template-columns: 1fr; }
  .proves > div + div { border-left: 0; border-top: 1px solid var(--line-strong); }
}
.proves--tight { margin-top: 0; }

/* ---------- /verify: live tests ---------- */
.vtests__list { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.vtests__list li { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 240px); gap: 8px 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vtests__list .btn { justify-content: center; }
.vtests__list span { font-size: 15px; color: var(--soft); }
.vtests__list b { font-size: 14px; font-weight: 700; color: var(--dim); }
.vtests__list b.is-good { color: var(--go); }
.vtests__list b.is-bad { color: var(--stop); }
.vfy .proves { margin-top: 32px; }
@media (max-width: 720px) {
  .vtests__list li { grid-template-columns: 1fr; }
  .vtests__list .btn { justify-self: start; }
}
.tpage__head .lede { margin-top: 22px; }

/* Readability pass */
.gt { font-size: 15.5px; line-height: 1.55; }
.gt tbody th b { font-size: 19px; }
.glegend dd, .gt__src ul { font-size: 15px; }
.tlist li { font-size: 17px; line-height: 1.6; }
.tpage__rules li { font-size: 17px; }
.tpage__rules li span { font-size: 15px; }
.tnote { font-size: 16px; }
.tpage__title { font-size: clamp(46px, 5.4vw, 88px); line-height: 1; letter-spacing: -.04em; }
