:root {
  --paper: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --rule: rgba(0, 0, 0, 0.08);
  --blue: #125cff;
  --green: #7bbf13;
  --panel: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.paper-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  max-width: 100%;
}

.paper-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.paper-header > a:first-child,
.paper-header .la-header-brand {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
}

.la-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.la-header-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.la-header-wordmark {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.la-header-wordmark em {
  font-style: normal;
  color: var(--green);
}

.paper-logo {
  display: none;
}

.paper-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
}

.paper-nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  border-bottom: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.paper-nav a:hover,
.paper-nav a.active {
  color: var(--blue);
  background: rgba(18, 92, 255, 0.08);
}

.new-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: rgba(123, 191, 19, 0.13);
  color: #397200;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.new-tag[hidden] {
  display: none;
}

.details-link {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.paper-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  box-shadow: 0 2px 12px rgba(18, 92, 255, 0.22);
  transition: background 0.15s ease, transform 0.15s ease;
}

.paper-cta:hover {
  background: #0b4ad4;
  transform: translateY(-1px);
}

.paper-cta.active {
  box-shadow: 0 0 0 3px rgba(18, 92, 255, 0.18);
}

.dateline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
}

.page-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: end;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--rule);
}

.page-title h1 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: none;
}

.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  max-width: 52ch;
}

.scorecard {
  border: 1px solid var(--rule);
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 8px rgba(0, 0, 0, 0.04);
  padding: 14px;
  min-width: 0;
  max-width: 100%;
}

.scorecard b {
  display: block;
  color: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
}

.scorecard strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  line-height: 1;
}

.scorecard p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

.page-status-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 0 0;
}

.status-card {
  display: grid;
  gap: 3px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.72);
}

.status-card span,
.status-card small {
  overflow-wrap: anywhere;
}

.status-card span {
  color: #172033;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.status-card strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 750;
}

.status-card.active {
  border-color: var(--blue);
  background: #125cff;
  color: #fff;
}

.status-card.active span,
.status-card.active strong,
.status-card.active small {
  color: #fff;
}

.instruction-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0 0;
}

.consensus-taxonomy {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 0 0;
}

.consensus-taxonomy article {
  min-height: 112px;
  border: 1px solid var(--rule);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 247, 241, 0.84));
  padding: 12px;
}

.consensus-taxonomy b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.05;
  text-transform: uppercase;
}

.consensus-taxonomy span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.step-card,
.term-card {
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.78);
  padding: 13px 14px;
}

.step-card span,
.term-card span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step-card strong,
.term-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.05;
}

.step-card p,
.term-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  padding: 22px 0 40px;
}

.section-grid > *,
.two-column > *,
.rail > *,
.news-panel,
.news-panel > *,
.feature-copy,
.action-row {
  min-width: 0;
  max-width: 100%;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.news-panel {
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.news-panel h2,
.news-panel h3 {
  margin: 0;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  background: #172033;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.news-panel h3 {
  background: #f0efe8;
  color: var(--ink);
  font-size: 18px;
}

.agate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.agate-table th,
.agate-table td {
  padding: 8px 9px;
  border-bottom: 1px solid #dedbd1;
  text-align: right;
  white-space: nowrap;
}

.agate-table th:first-child,
.agate-table td:first-child { text-align: left; }

.agate-table th {
  background: #f4f2ea;
  color: #303846;
  font-size: 11px;
  text-transform: uppercase;
}

.table-explainer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  background: #fbfaf6;
}

.table-explainer div {
  padding: 10px 12px;
  border-right: 1px solid #dedbd1;
}

.table-explainer div:last-child { border-right: 0; }

.table-explainer b {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  text-transform: uppercase;
}

.table-explainer span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.agate-table a,
.blue { color: var(--blue); font-weight: 900; }
.green { color: var(--green); font-weight: 950; }

.box-list {
  display: grid;
  gap: 0;
}

.box-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #dedbd1;
}

.box-row img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.box-row strong { display: grid; gap: 2px; }
.box-row small { color: var(--muted); font-weight: 750; }
.box-row em { color: var(--green); font-style: normal; font-weight: 950; }

.feature-copy {
  padding: 13px 14px;
  color: #222a36;
  line-height: 1.45;
}

.feature-copy p { margin: 0 0 10px; }

.feature-copy ul {
  margin: 0;
  padding-left: 18px;
}

.feature-copy li {
  margin: 0 0 8px;
}

.feature-callout {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border-top: 1px solid var(--rule);
  background: #fbfaf6;
}

.feature-callout strong {
  font-size: 16px;
  line-height: 1.1;
}

.feature-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.update-log {
  display: grid;
  gap: 14px;
  padding: 22px 0 54px;
}

.update-entry {
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
}

.update-entry header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.update-entry h2 {
  margin: 10px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  text-transform: uppercase;
}

.update-entry p {
  max-width: 920px;
  margin: 0 0 10px;
  color: #222a36;
  line-height: 1.45;
  font-weight: 650;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--rule);
}

.paper-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  font-weight: 900;
}

.paper-button.primary {
  background: var(--blue);
  color: #fff;
}

.community-jumpbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 0;
}

.community-jumpbar a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  color: #172033;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.community-jumpbar a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  padding: 22px 0 44px;
}

.community-main,
.community-rail {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.community-room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.community-room-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--rule);
  background: #fbfaf6;
  padding: 14px;
}

.community-room-card h3 {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 0.95;
  text-transform: uppercase;
}

.community-room-card p,
.community-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
  font-weight: 750;
}

.room-actions,
.community-cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.community-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
  align-items: start;
}

.community-cta-stack {
  display: grid;
  padding: 14px;
}

.community-empty-state {
  display: grid;
  gap: 8px;
  margin: 14px;
  padding: 14px;
  border: 1px dashed var(--rule);
  background: #fbfaf6;
}

.community-empty-state strong {
  font-size: 18px;
  line-height: 1.1;
}

.community-table a {
  color: var(--blue);
  font-weight: 950;
}

.community-rail-table td:first-child {
  font-weight: 950;
  text-transform: uppercase;
}

.rail {
  display: grid;
  gap: 16px;
}

.note {
  margin-top: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wide-gallery {
  width: min(1680px, calc(100% - 32px));
}

.gallery-stack {
  display: grid;
  gap: 28px;
  padding: 24px 0 64px;
}

.gallery-shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.88);
  padding: 16px;
}

.gallery-shot h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}

.gallery-shot p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.gallery-shot > a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  font-weight: 900;
}

.gallery-shot-missing {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px dashed var(--muted);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-shot code {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
  border: 1px solid var(--rule);
  background: rgba(29, 38, 53, 0.05);
  padding: 10px;
  color: var(--muted);
}

.gallery-shot img {
  grid-column: 1 / -1;
  width: 100%;
  max-height: none;
  border: 1px solid #1d2635;
  background: #fff;
  object-fit: contain;
}

@media (max-width: 960px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .paper-shell {
    width: 100%;
    padding: 0 16px 36px;
  }

  .paper-header,
  .page-title,
  .section-grid,
  .two-column {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .section-grid,
  .two-column,
  .rail,
  .community-layout,
  .community-room-grid,
  .community-split {
    display: block;
  }

  .section-grid > *,
  .two-column > *,
  .page-title > *,
  .rail > *,
  .community-layout > *,
  .community-room-grid > *,
  .community-split > * {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .paper-header {
    gap: 14px;
    padding-top: 14px;
  }

  .paper-nav {
    gap: 12px 16px;
    justify-content: flex-start;
  }

  .paper-nav a,
  .paper-cta {
    min-height: 38px;
  }

  .paper-cta {
    justify-content: center;
    width: 100%;
  }

  .paper-header > a:first-child,
  .paper-header .la-header-brand {
    width: auto;
  }

  .dateline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    line-height: 1.2;
  }

  .page-title {
    gap: 16px;
    padding: 20px 0 18px;
  }

  .page-title h1 {
    font-size: clamp(32px, 10.5vw, 44px);
    line-height: 0.9;
    overflow-wrap: normal;
    word-break: normal;
  }

  .page-title p {
    font-size: 15px;
    line-height: 1.35;
  }

  .scorecard strong {
    font-size: 28px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .instruction-strip,
  .consensus-taxonomy,
  .table-explainer,
  .page-status-grid {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .two-column,
  .rail,
  .community-layout,
  .community-main,
  .community-rail,
  .community-room-grid,
  .community-split,
  .news-panel,
  .scorecard,
  .instruction-strip,
  .consensus-taxonomy,
  .table-explainer,
  .page-status-grid,
  .feature-copy,
  .action-row {
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .news-panel {
    contain: inline-size layout paint;
    overflow: hidden;
  }

  .news-panel h2,
  .news-panel h3,
  .feature-copy,
  .feature-copy li,
  .table-explainer div,
  .table-explainer b,
  .table-explainer span {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .table-explainer div {
    border-right: 0;
    border-bottom: 1px solid #dedbd1;
  }

  .agate-table {
    display: block;
    inline-size: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .agate-table th,
  .agate-table td {
    padding: 7px 8px;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .paper-button {
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .community-jumpbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .community-jumpbar a,
  .room-actions .paper-button,
  .community-cta-stack .paper-button {
    justify-content: center;
    text-align: center;
  }

  .community-main,
  .community-rail,
  .community-room-grid,
  .community-layout {
    gap: 14px;
  }

  .community-layout .table-explainer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .community-room-card,
  .community-cta-stack {
    margin-top: 12px;
  }

  .gallery-shot {
    grid-template-columns: 1fr;
  }
}
