/* Cycle 1 archive and the in-board history entry. Scoped to avoid table regressions. */
.p0-board-hero { position: relative; overflow: visible !important; clip-path: none !important; isolation: isolate; }
:is(#public, #multimodel, #coding) .p0-board-hero > .hero-copy { padding-right: 225px; }
:is(#public, #multimodel, #coding) .p0-board-hero .page-hero-title { font-size: clamp(36px, 4.1vw, 70px); white-space: normal; }
:is(#public, #multimodel, #coding) .p0-board-hero > .p0-history { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); z-index: 12; width: auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; box-shadow: none; }
:is(#public, #multimodel, #coding) .p0-board-hero .p0-history > summary { list-style: none; display: flex; align-items: center; gap: 15px; padding: 13px 19px; border: 1px solid var(--theme-line, #9bb9b9); border-radius: 9px; background: var(--theme-surface, #f8fbfb); color: var(--theme-ink, #213434); font-size: 14px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.p0-history > summary::-webkit-details-marker { display: none; }
.p0-history > summary::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.p0-history[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.p0-history > summary:hover { background: var(--theme-surface-soft, #eef5f4); }
.p0-history > summary:focus-visible, .p0-history a:focus-visible { outline: 3px solid var(--theme-accent, #237a74); outline-offset: 4px; }
.figma-shell .p0-history-menu { position: absolute; top: calc(100% + 9px); right: 0; min-width: 260px; padding: 7px; border: 1px solid var(--theme-line, #bfd0d0); border-radius: 12px; background: var(--theme-surface, #fff); box-shadow: 0 12px 34px #183f3a1a; }
.p0-history-menu a { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 13px; border-radius: 7px; color: var(--theme-ink, #213434); text-decoration: none; font-size: 14px; white-space: nowrap; }
.p0-history-menu a:hover { background: var(--theme-surface-soft, #eef5f4); }
.p0-history-year { font-size: 12px; color: var(--theme-muted, #637676); }
.p0-archive { padding-bottom: 64px; }
.p0-archive > .figma-page-hero { padding: 56px 64px 42px; margin: 0; background: var(--theme-hero, #e5eeee); }
.p0-archive .figma-page-hero .page-hero-title { max-width: 1100px; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.14; }
.p0-archive .hero-description { max-width: 900px; }
.p0-archive .figma-brand { text-decoration: none; color: inherit; }
.p0-archive .top-nav a { text-decoration: none; }
.p0-archive .figma-top-nav .top-nav .tab { color: var(--theme-ink) !important; }
.p0-archive .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.p0-archive .hero-actions a { padding: 12px 17px; border-radius: 8px; border: 1px solid var(--theme-line); background: var(--theme-surface); color: var(--theme-ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.p0-archive .hero-actions a.primary { background: var(--theme-strong); border-color: var(--theme-strong); color: #fff; }
.p0-summary-card > a { display: inline-block; margin-top: 16px; color: var(--theme-strong); font-size: 13px; text-underline-offset: 4px; }
html[data-theme] .p0-archive .figma-top-nav .top-nav a.tab { color: var(--theme-ink) !important; }
html[data-theme] .p0-archive .figma-top-nav .top-nav a.tab.active { background: var(--theme-surface) !important; border-color: var(--theme-line) !important; }
html[data-theme] .p0-archive .hero-actions > a { background: var(--theme-surface) !important; color: var(--theme-ink) !important; border-color: var(--theme-line) !important; }
html[data-theme] .p0-archive .hero-actions > a.primary { background: var(--theme-strong) !important; color: #fff !important; border-color: var(--theme-strong) !important; }
html[data-theme] .p0-archive .p0-summary-card > a { color: var(--theme-accent) !important; }
html[data-theme] .p0-archive .p0-archive-index > a { background: var(--theme-surface) !important; color: var(--theme-ink) !important; }
html[data-theme] .p0-archive .site-language-switch button.active { background: var(--theme-strong) !important; color: #fff !important; opacity: 1; }
.p0-archive-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 25px; color: var(--theme-muted, #617575); font-size: 13px; }
.p0-archive-body { padding: 0 42px; }
.p0-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 8px 0 28px; }
.p0-summary-card, .p0-archive-section, .p0-method-note { border: 1px solid var(--theme-line, #c3d4d2); border-radius: 16px; background: var(--theme-surface, #fff); }
.p0-summary-card { padding: 26px; }
.p0-summary-card small { color: var(--theme-muted, #637575); font-weight: 650; letter-spacing: .07em; }
.p0-summary-card h2 { margin: 14px 0 12px; font-size: 23px; }
.p0-summary-card p { margin: 0; line-height: 1.8; color: var(--theme-muted, #637575); }
.p0-summary-card strong { color: var(--theme-ink, #213434); font-weight: 750; }
.p0-summary-card .p0-score { font-size: 30px; color: var(--theme-accent, #237a74); font-variant-numeric: tabular-nums; }
.p0-archive-index { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.p0-archive-index a { padding: 10px 14px; border: 1px solid var(--theme-line, #c3d4d2); border-radius: 999px; text-decoration: none; color: var(--theme-ink, #213434); background: var(--theme-surface, #fff); font-size: 13px; }
.p0-archive-index a:hover { background: var(--theme-surface-soft, #eef5f4); }
.p0-archive-section { margin: 25px 0; overflow: hidden; scroll-margin-top: 105px; }
.p0-section-heading { padding: 25px 26px 20px; }
.p0-section-heading h2 { margin: 5px 0 10px; font-size: 24px; }
.p0-section-heading p { margin: 0; color: var(--theme-muted, #637575); line-height: 1.8; font-size: 14px; }
.p0-section-eyebrow { color: var(--theme-accent, #237a74); font-size: 11px; letter-spacing: .1em; font-weight: 750; }
.p0-section-count { float: right; color: var(--theme-muted, #637575); font-size: 12px; padding-top: 6px; }
.p0-table-scroll { overflow: auto; width: 100%; }
.p0-result-table { width: 100%; border-collapse: collapse; min-width: 1150px; font-size: 13px; font-variant-numeric: tabular-nums; }
.p0-result-table caption { text-align: left; padding: 0 26px 16px; font-size: 12px; color: var(--theme-muted, #637575); }
.p0-result-table th, .p0-result-table td { text-align: right; padding: 16px 15px; border-top: 1px solid var(--theme-line, #dce6e4); vertical-align: middle; }
.p0-result-table thead { background: var(--theme-surface-soft, #edf5f3); }
.p0-result-table th { font-size: 11px; font-weight: 650; line-height: 1.6; max-width: 150px; }
.p0-result-table td:first-child, .p0-result-table th:first-child { width: 60px; text-align: center; }
.p0-result-table td:nth-child(2), .p0-result-table th:nth-child(2) { text-align: left; min-width: 190px; }
.p0-result-table tbody tr:first-child td { background: color-mix(in srgb, var(--theme-accent, #237a74) 4%, transparent); }
.p0-result-table td.p0-overall { font-weight: 750; color: var(--theme-accent, #237a74); }
.p0-result-table .p0-model { display: block; font-weight: 650; color: var(--theme-ink, #213434); }
.p0-result-table .p0-model-meta { display: block; font-size: 10px; line-height: 1.8; color: var(--theme-muted, #637575); margin-top: 4px; }
.p0-result-table .p0-model-meta a { color: inherit; }
.p0-method-note { padding: 28px; margin-top: 30px; }
.p0-method-note h2 { margin: 0 0 14px; font-size: 22px; }
.p0-method-note p, .p0-method-note li { color: var(--theme-muted, #637575); font-size: 14px; line-height: 1.9; }
.p0-method-note a { color: var(--theme-accent, #237a74); }
.p0-empty-track { padding: 0 26px 25px; color: var(--theme-muted, #637575); font-size: 14px; }
.p0-footnote { color: var(--theme-muted, #637575); font-size: 12px; margin: 28px 0 0; }
@media (max-width: 850px) {
  :is(#public, #multimodel, #coding) .p0-board-hero > .hero-copy { padding-right: 0; }
  :is(#public, #multimodel, #coding) .p0-board-hero > .p0-history { position: relative; right: auto; top: auto; transform: none; margin-top: 22px; align-self: flex-start; justify-self: start; }
  .p0-board-hero { flex-direction: column; align-items: flex-start !important; }
  .figma-shell .p0-history-menu { left: 0; right: auto; }
  .p0-archive-body { padding: 0 20px; }
  .p0-summary-grid { grid-template-columns: 1fr; }
  .p0-summary-card { padding: 23px; }
  .p0-section-heading { padding: 22px 20px 17px; }
  .p0-section-heading h2 { font-size: 21px; }
  .p0-section-count { float: none; display: block; margin-bottom: 7px; }
  .p0-archive > .figma-page-hero { padding: 34px 20px 28px; }
  .p0-method-note { padding: 23px; }
}
