.alignment-page * { letter-spacing: 0; }
.alignment-page::before { display: none; }
.alignment-page [hidden] { display: none !important; }
.alignment-page .wrapper { max-width: 1440px; padding-top: 32px; }
.alignment-shell { display: flex; gap: 32px; }
.alignment-content { min-width: 0; flex: 1; }
.alignment-page .lang-menu, .alignment-page .mega-card { border-radius: 8px; }
.alignment-page .nav-dropdown:focus-within .mega-menu { display: block; }
.alignment-page .nav-lang-dd:focus-within .lang-menu,
.alignment-page .nav-lang-dd[data-open="true"] .lang-menu { display: flex; }
.alignment-page .nav-lang-dd[data-open="false"] .lang-menu { display: none; }
.alignment-page a { color: var(--accent); }
.alignment-page .lucide { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 1.5; }
.alignment-heading { padding: 0 0 32px; }
.alignment-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.alignment-title h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; line-height: 32px; font-weight: 400; }
.preliminary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); border: 1px solid var(--border); padding: 5px 8px; border-radius: 4px; }
.alignment-heading p { color: var(--text2); font-size: 14px; line-height: 20px; margin: 8px 0 14px; }
.alignment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--text2); font-size: 13px; line-height: 20px; }
.alignment-meta > span, .alignment-meta a { display: inline-flex; align-items: center; gap: 6px; }
.alignment-meta a { color: var(--text2); text-decoration: none; }
.alignment-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 49px; border-top: 1px solid var(--border); }
.alignment-toolbar-right { display: flex; gap: 12px; align-items: center; }
.alignment-filter-toggle, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--text2); border: 0; border-radius: 4px; padding: 4px 12px; min-height: 28px; font: inherit; font-size: 14px; cursor: pointer; }
.alignment-filter-toggle:hover, .icon-button:hover { color: var(--text); background: var(--bg3); }
.icon-button { width: 32px; height: 28px; padding: 6px; }
.alignment-search-control { display: flex; gap: 8px; align-items: center; padding-left: 12px; border-left: 1px solid var(--border); }
.alignment-search input { height: 28px; width: 220px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); background: var(--bg2); padding: 0 8px; font: inherit; font-size: 12px; }
.segmented { display: inline-flex; background: var(--bg2); border-radius: 6px; padding: 3px; gap: 0; }
.segmented button { height: 24px; padding: 4px 12px; border: 0; border-radius: 4px; color: var(--text2); background: transparent; font: inherit; font-size: 12px; line-height: 16px; cursor: pointer; white-space: nowrap; }
.segmented button[aria-selected="true"] { background: var(--bg3); color: var(--text); box-shadow: 0 1px 3px #0004; }
.segmented button:hover { color: var(--text); }
.alignment-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.alignment-license { width: 192px; flex-shrink: 0; border-right: 1px solid var(--border); padding-right: 24px; }
.alignment-license fieldset { border: 0; padding: 0; margin: 0; }
.alignment-license legend { color: var(--text); font-size: 14px; margin-bottom: 20px; }
.alignment-license label { display: flex; align-items: center; gap: 8px; color: var(--text2); font-size: 14px; padding: 12px 0; cursor: pointer; }
.alignment-license input { accent-color: var(--accent); }
.alignment-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--bg2); }
.ranking-table-wrap { max-height: 630px; }
.ranking-table-wrap[data-expanded="true"] { max-height: none; }
.alignment-page table { width: 100%; min-width: 1100px; border-collapse: collapse; table-layout: fixed; font-family: "Basel Grotesk", "Basel Grotesk Fallback", Inter, "Inter Fallback", ui-sans-serif, system-ui, sans-serif; }
.alignment-page .rank-col { width: 110px; min-width: 110px; }
.alignment-page .risk-col { width: 170px; min-width: 170px; }
.alignment-page .identity-col { width: calc(100% - 970px); min-width: 260px; }
.alignment-page .index-col { width: 350px; min-width: 350px; max-width: 350px; }
.alignment-page th { color: var(--text2); background: var(--bg2); font-size: 12px; font-weight: 400; padding: 0; text-align: center; line-height: 16px; border-bottom: 1px solid var(--border); white-space: normal; text-transform: none; }
#alignment-table thead { position: sticky; top: 0; z-index: 1; }
.alignment-page th button { min-height: 44px; background: none; color: inherit; border: 0; padding: 12px 8px; text-align: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.alignment-heading-control { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.alignment-page th .alignment-sort-button { font-weight: 500; white-space: nowrap; gap: 2px; }
.alignment-page th:nth-child(2) .alignment-heading-control { justify-content: flex-start; padding-left: 24px; }
.alignment-page th:nth-child(2) .alignment-sort-button { justify-content: flex-start; }
.alignment-page th:nth-child(3) .alignment-heading-control { justify-content: flex-start; }
.alignment-page th:nth-child(3) .alignment-sort-button { justify-content: flex-start; padding-left: 20px; }
.alignment-page th .alignment-info-button { width: 14px; height: 24px; min-height: 24px; padding: 4px 1px; opacity: 0.6; }
.alignment-page th .alignment-info-button:hover { opacity: 1; }
.alignment-page th .lucide { width: 12px; height: 12px; }
.alignment-page td { height: 53px; padding: 8px; font-size: 14px; font-weight: 400; line-height: 20px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; vertical-align: middle; text-align: center; }
.alignment-page tbody tr:last-child td { border-bottom: 0; }
#alignment-table td:first-child { border-right: 1px solid var(--border); background: #ffffff02; }
#alignment-table td:nth-child(2) { text-align: left; padding-left: 24px; }
#alignment-table td:nth-child(3) { padding-left: 20px; }
.alignment-identity { display: flex; gap: 8px; align-items: center; min-width: 0; }
.alignment-logo { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 2px; }
.alignment-monogram { width: 16px; height: 16px; background: var(--bg3); color: var(--text2); display: grid; place-items: center; flex-shrink: 0; font-size: 8px; }
.alignment-identity > div { min-width: 0; }
.identity-name { color: var(--text); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#alignment-table .identity-name { font-family: "Basel Grotesk Mono", "Basel Grotesk Mono Fallback", "DM Mono", "DM Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; line-height: 20px; }
.alignment-secondary { color: var(--text2); font-size: 12px; margin-top: 0; line-height: 16px; }
.rank-range { display: flex; justify-content: center; align-items: center; gap: 4px; }
.rank-range .lucide { width: 12px; height: 12px; }
.rank-number { font-weight: 400; }
.score-line { display: flex; align-items: center; gap: 12px; }
.score-values { width: 80px; flex-shrink: 0; text-align: right; }
.alignment-score { color: var(--text); font-size: 14px; font-weight: 400; line-height: 20px; }
.index-track { height: 16px; flex: 1; background: var(--bg3); border-radius: 1px; position: relative; }
.index-fill { background: #3fb950; height: 100%; border-radius: inherit; }
.index-ci { position: absolute; top: 5px; height: 6px; border-left: 1px solid #e6edf3; border-right: 1px solid #e6edf3; }
.index-ci::after { content: ''; position: absolute; left: 0; right: 0; top: 2px; border-top: 1px solid #e6edf3; }
.heat-cell { background: var(--heat-bg); }
.risk-value { font-weight: 400; color: var(--text); }
.alignment-empty { text-align: center; color: var(--text2); height: 160px !important; }
.ranking-expand { position: sticky; bottom: 8px; height: 0; display: flex; justify-content: center; pointer-events: none; }
.ranking-expand button { transform: translateY(-36px); pointer-events: auto; height: 36px; background: var(--text); color: var(--bg); border: 0; border-radius: 9999px; padding: 8px 16px; font: inherit; font-size: 14px; line-height: 20px; cursor: pointer; box-shadow: 0 2px 6px #0005; }
.alignment-failures { margin-top: 40px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg2); overflow: hidden; }
.alignment-failures h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; line-height: 28px; font-weight: 400; margin: 20px 20px 4px; }
.failure-description { margin: 0 20px; color: var(--text2); font-size: 13px; line-height: 20px; }
.failure-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; }
.failure-tabs { flex-wrap: wrap; max-width: 100%; background: transparent; padding: 0; gap: 8px; }
.failure-tabs button { border: 1px solid var(--border); height: 36px; padding: 8px 16px; font-size: 13px; }
.failure-tabs button[aria-selected="true"] { box-shadow: none; }
.failure-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); }
.failure-legend-scale { width: 110px; height: 8px; background: linear-gradient(to right, #e3b3410d, #e3b341aa); border-radius: 2px; }
#failure-panel { border: 0; border-radius: 0; }
#failure-table th { padding: 12px 8px; height: 40px; overflow-wrap: anywhere; }
#failure-table th:first-child { width: 224px; text-align: left; padding-left: 20px; }
#failure-table td { height: 37px; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
#failure-table td:first-child { text-align: left; padding-left: 20px; }
#failure-table .identity-name { font: 14px/20px Arial, sans-serif; }
.alignment-source { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 26px; font-size: 12px; color: var(--text2); }
.alignment-source a { margin-right: auto; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
  .alignment-page .nav-container { gap: 0; }
  .alignment-page .nav-container > a, .alignment-page .nav-dropdown > a, .alignment-page .nav-dropdown > button { padding: 8px 10px; }
  .alignment-shell { gap: 16px; }
  .alignment-license { width: 150px; }
}
@media (max-width: 760px) {
  .alignment-page .site-header { overflow-x: auto; justify-content: flex-start; padding: 0 12px; }
  .alignment-page .nav-container { min-width: 710px; }
  .alignment-page .wrapper { padding: 24px 16px 40px; }
  .alignment-shell { flex-direction: column; }
  .alignment-license { width: 100%; border-right: 0; border-bottom: 1px solid var(--border); }
  .alignment-license fieldset { display: flex; flex-wrap: wrap; gap: 16px; }
  .alignment-license legend { margin-bottom: 0; }
  .alignment-toolbar { flex-wrap: wrap; padding: 8px 0; }
  .alignment-toolbar-right { margin-left: auto; }
  .alignment-search input { width: 150px; }
  .alignment-search-control { gap: 4px; padding-left: 6px; }
  .alignment-toolbar:has(.alignment-search:not([hidden])) .alignment-toolbar-right { width: 100%; justify-content: flex-end; }
  .alignment-meta { gap: 12px; }
}
