.reg-hero { padding: 56px 24px 24px; }
.reg-hero .row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 40px; }
.reg-hero h1 { font-size: 120px; line-height: 0.85; }
.reg-hero .meta { margin: 0 0 8px; font-size: 20px; line-height: 1.4; }

.reg-toolbar-chips { min-height: 56px; padding: 0 24px 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reg-toolbar-chips .label { font-weight: 700; flex: 0 0 auto; white-space: nowrap; }
.reg-toolbar-actions { padding: 0 24px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reg-filter-chip {
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: var(--border-thin);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.reg-filter-chip .swatch { width: 10px; height: 10px; display: inline-block; }
.reg-filter-chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.reg-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: var(--border-thin);
  background: var(--white);
  padding: 0 12px;
  min-height: 44px;
}
.reg-search input { border: 0; outline: 0; font: inherit; font-size: 16px; width: 220px; min-height: 42px; background: transparent; }
.reg-pdf-actions { display: flex; gap: 8px; }
.reg-pdf-actions a { min-height: 44px; display: flex; align-items: center; padding: 8px 14px; border: var(--border-thin); font-weight: 700; font-size: 15px; text-decoration: none; }
.reg-pdf-actions a.view { background: var(--white); color: var(--ink); }
.reg-pdf-actions a.download { background: var(--ink); color: var(--white); }

.reg-summary { padding: 16px 24px 40px; }
.reg-summary-box { background: var(--ink); color: var(--concrete); padding: 28px; }
.reg-summary-box h2 { color: var(--white); font-size: 48px; margin: 0; }
.reg-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 2px; background: var(--line-dark); margin-top: 20px; }
.reg-summary-grid div { background: var(--ink); padding: 18px; font-size: 19px; line-height: 1.45; }
.reg-summary-grid b { color: var(--signal); }

.reg-body { padding: 0 24px 80px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.reg-toc {
  flex: 0 0 260px;
  position: sticky;
  top: calc(var(--header-offset, 0px) + 20px);
  transition: top 0.28s ease;
  background: var(--white);
  border: var(--border-thin);
  padding: 18px;
}
.reg-toc .title { font-size: 26px; margin-bottom: 6px; }
.reg-toc .links { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; }
.reg-toc a { text-decoration: none; color: var(--ink); padding: 7px 0; border-top: 1px solid var(--line); }
.reg-toc a.is-active { padding: 7px 10px; border-top: 1px solid var(--line); background: var(--signal); margin: 0 -10px; }
.reg-toc .change-note { border-top: var(--border-thin); margin-top: 12px; padding-top: 12px; font-size: 14px; }
.reg-toc .change-note .muted { color: var(--muted); }

.reg-chapters { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.reg-chapter { background: var(--white); border: var(--border-thin); padding: 0 24px 24px; }
.reg-chapter summary {
  cursor: pointer;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  border-bottom: var(--border-thin);
  margin: 0 -24px;
  padding: 0 24px;
}
.reg-chapter summary::-webkit-details-marker { display: none; }
.reg-chapter summary .range { margin-left: auto; font-size: 12px; color: var(--muted); }
.reg-chapter summary h2 { font-size: 30px; }
.reg-chapter .body { padding-top: 8px; }

.reg-article { padding: 22px 0; border-bottom: 2px solid var(--line); }
.reg-article:last-child { border-bottom: 0; }
.reg-article .head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.reg-article .head .num { font-weight: 700; color: var(--orange-text); }
.reg-article .head h3 { font-size: 22px; font-weight: 800; text-transform: none; font-family: var(--font-body); }
.reg-article .head .tag { font-size: 11px; font-weight: 700; padding: 3px 7px; margin-left: 4px; }
.reg-article .head .tag.is-new { background: var(--ink); color: var(--white); }
.reg-article .head .tag.is-cat { color: var(--white); }
.reg-article .head .anchor { margin-left: auto; font-size: 14px; color: var(--muted); text-decoration: none; padding: 12px 0 12px 12px; }
.reg-article .other-words { background: var(--orange-soft); padding: 14px 16px; margin: 14px 0; font-size: 18px; line-height: 1.5; }
.reg-article p { font-size: 17px; line-height: 1.65; margin: 0 0 10px; }
.reg-article p:last-child { margin-bottom: 0; }

.reg-table-wrap { overflow-x: auto; border: var(--border-thin); margin-top: 16px; }
.reg-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.reg-table thead tr { background: var(--ink); color: var(--white); text-align: left; }
.reg-table th { padding: 10px 14px; }
.reg-table td { padding: 12px 14px; border-top: 2px solid var(--line); }
.reg-table td.points { font-weight: 700; }

.reg-ask { border: 3px dashed var(--ink); padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.reg-ask .q { font-size: 17px; font-weight: 700; }
.reg-ask a { font-weight: 800; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .reg-hero h1 { font-size: clamp(48px, 18vw, 72px); }
  .reg-toc { display: none; }
  .reg-toolbar-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .reg-filter-chip { flex: 0 0 auto; }
  .reg-toolbar-actions { flex-direction: column; align-items: stretch; }
  .reg-search { width: 100%; }
  .reg-search input { width: auto; flex: 1 1 auto; }
  .reg-pdf-actions { width: 100%; flex-wrap: wrap; }
  .reg-pdf-actions a { flex: 1 1 auto; justify-content: center; }
  .reg-chapter summary { flex-wrap: wrap; row-gap: 4px; padding-top: 10px; padding-bottom: 10px; }
  .reg-sticky-chapter {
    display: flex;
    position: sticky;
    top: var(--header-offset, 0px);
    z-index: 2;
    transition: top 0.28s ease;
    background: var(--signal);
    border-top: var(--border-thin);
    border-bottom: var(--border-thin);
    padding: 0 16px;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 18px;
    margin: 20px 0 0;
  }
}
@media (min-width: 861px) {
  .reg-sticky-chapter { display: none; }
}

.reg-toc-mobile { background: var(--white); border: var(--border-thin); border-top: 0; padding: 4px 16px 12px; }
.reg-toc-mobile a { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }

