@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #202020;
  --paper: #fff;
  --muted: #555e68;
  --line: #dfe5eb;
  --wash: #f7f9fb;
  --focus: #4e4afe;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  min-height: 40px;
  background: #fff;
  border: 1px solid #a8b2bc;
  padding: 8px 12px;
  color: var(--ink);
}
button,
summary {
  cursor: pointer;
}
button:hover {
  background: var(--wash);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
}
.wordmark {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.5px;
  text-decoration: none;
}
.wordmark.small {
  font-size: 21px;
}
.search {
  position: relative;
}
.search summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  list-style: none;
}
.search summary > span {
  display: none;
}
.search summary {
  min-width: 44px;
  justify-content: center;
}
.search summary::-webkit-details-marker {
  display: none;
}
.search form {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 48px;
  width: 440px;
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: 0 8px 24px #0001;
}
.search label {
  display: block;
  margin-bottom: 10px;
}
.search input {
  width: calc(100% - 90px);
  padding: 10px;
  border: 1px solid #a8b2bc;
  min-height: 42px;
}
.search ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  max-height: 60vh;
  overflow: auto;
}
.search li a {
  display: flex;
  gap: 15px;
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.search li a:hover {
  background: var(--wash);
}
.search li strong {
  min-width: 65px;
}
main {
  padding: 30px 40px;
  max-width: 1800px;
  margin: auto;
  min-height: 55vh;
}
h1 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 16px;
  font-weight: 700;
}
h2 {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 0 0 24px;
}
h3 {
  font-size: 18px;
  margin: 30px 0 16px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.symbol {
  font-size: 13px;
  margin: 0 0 8px;
}
.ranking-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 16px;
}
.ranking-title {
  display: flex;
  align-items: baseline;
  gap: 0.26em;
  white-space: nowrap;
  font-size: clamp(22px, 2.55vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.ranking-title h1 {
  font: inherit;
  letter-spacing: inherit;
  margin: 0;
}
.metric-select {
  position: relative;
}
.metric-select summary {
  display: flex;
  align-items: center;
  gap: 0.2em;
  min-height: 44px;
  list-style: none;
}
.metric-select summary::-webkit-details-marker {
  display: none;
}
.metric-select summary svg {
  flex-shrink: 0;
}
.metric-select nav {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 4;
  min-width: 215px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 24px #0001;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
}
.metric-select a {
  display: block;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
}
.metric-select a:hover {
  background: var(--wash);
}
.metric-select [aria-current] {
  font-weight: 600;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-end;
  align-items: center;
  font-size: 13px;
}
.filters label {
  min-width: 0;
}
.filters select {
  field-sizing: content;
  border: 0;
  border-radius: 6px;
  padding: 8px 2px;
  max-width: 150px;
  min-height: 44px;
  color: var(--muted);
  cursor: pointer;
}
.filters select.selected {
  font-weight: 600;
  color: var(--ink);
}
.filter-divider {
  color: #9aa5b1;
}
.filters > a {
  padding: 12px 4px;
}
.filters button {
  border: 0;
  border-radius: 12px;
  background: #2020200f;
}
.filters.auto-submit button {
  display: none;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  margin: 16px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: left;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-weight: 600;
  color: var(--muted);
  background: var(--wash);
  white-space: nowrap;
}
.ranking {
  table-layout: fixed;
}
.ranking td,
.ranking th {
  vertical-align: middle;
  padding: 10px 12px;
  border-bottom-color: #20202012;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranking th {
  background: white;
  font-size: 12px;
  font-weight: 400;
}
.ranking tbody tr:hover {
  background: #2020200a;
}
.ranking td:first-child {
  border-radius: 12px 0 0 12px;
}
.ranking td:last-child {
  border-radius: 0 12px 12px 0;
}
.ranking .ranking-amount {
  width: 120px;
}
.ranking td.ranking-amount {
  font-size: 15px;
  font-weight: 600;
}
.ranking-sector {
  width: 170px;
}
.ranking-industry {
  width: 200px;
}
.ranking-country {
  width: 135px;
}
.ranking-exchange {
  width: 105px;
}
.ranking td:not(:first-child):not(.ranking-amount) {
  font-size: 13px;
}
.company-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.company-link .rank {
  width: 28px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}
.company-link img {
  object-fit: contain;
  flex-shrink: 0;
}
.company-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.company-name {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.company-link .symbol {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.company-link:hover .symbol {
  text-decoration: underline;
}
.sector-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 8px;
  background: #c6cfd8;
}
.sector-0,
.sector-8 {
  background: #26cb71;
}
.sector-1,
.sector-9 {
  background: #00a99d;
}
.sector-2,
.sector-10 {
  background: #06b6ff;
}
.sector-3 {
  background: #4e4afe;
}
.sector-4 {
  background: #8e4ce8;
}
.sector-5 {
  background: #d9459b;
}
.sector-6 {
  background: #fe7338;
}
.sector-7 {
  background: #ffc24a;
}
.number {
  text-align: right;
  white-space: nowrap;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  font-size: 13px;
}
.pagination a {
  padding: 12px 16px;
  border-radius: 12px;
  background: #2020200f;
  text-decoration: none;
}
.ranking-note {
  font-size: 12px;
  text-align: center;
}
.company-identity {
  display: flex;
  gap: 20px;
  align-items: center;
}
.company-identity img {
  object-fit: contain;
  flex-shrink: 0;
}
.company-identity h1 {
  margin: 0;
}
.classification {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.classification a {
  font-size: 13px;
  text-decoration: none;
  background: var(--wash);
  padding: 8px 12px;
}
.section-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 36px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-nav a {
  text-decoration: none;
  font-size: 14px;
}
section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 25px;
}
.overview {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.overview dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.overview dd {
  font-size: 24px;
  margin: 0;
  font-weight: 600;
}
.description {
  max-width: 78ch;
}
.financial th:first-child {
  min-width: 220px;
}
.financial td {
  text-align: right;
  white-space: nowrap;
}
.financial thead th:not(:first-child) {
  text-align: right;
  min-width: 145px;
}
.financial tbody th {
  font-weight: 400;
}
.financial caption {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}
.methodology {
  max-width: 90ch;
  color: var(--muted);
  font-size: 13px;
  margin-top: 30px;
}
.legal {
  max-width: 760px;
}
.legal h2 {
  font-size: 21px;
  margin-top: 32px;
}
.legal p {
  color: var(--muted);
}
footer {
  padding: 44px 40px;
  border-top: 1px solid var(--line);
  margin-top: 50px;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-links nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
footer p {
  font-size: 12px;
  color: var(--muted);
  max-width: 100ch;
}
footer p:first-of-type {
  margin-top: 36px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.admin-tabs {
  display: flex;
  gap: 24px;
  margin: 24px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.admin-tabs [aria-current] {
  font-weight: bold;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px;
  padding: 24px 0;
}
.stat strong {
  display: block;
  font-size: 28px;
  margin: 8px 0;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.notice {
  padding: 16px;
  background: var(--wash);
  border-left: 3px solid #4a525b;
  margin: 20px 0;
}
.problem {
  border-left-color: #a53918;
}
.admin details {
  margin: 12px 0;
}
.admin pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--wash);
  padding: 15px;
  font-size: 12px;
}
.admin textarea {
  width: 100%;
  min-height: 140px;
}
.admin .toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}
.admin .toolbar label {
  display: grid;
  gap: 6px;
}
.admin .toolbar input {
  padding: 10px;
  border: 1px solid #a8b2bc;
}
.admin .issue-summary {
  max-width: 65ch;
}
.admin table {
  font-size: 13px;
}
@media (max-width: 1279px) {
  .ranking-exchange {
    display: none;
  }
  .ranking-title {
    font-size: 28px;
  }
}
@media (max-width: 1023px) {
  .ranking-heading {
    display: block;
  }
  .filters {
    justify-content: flex-start;
    margin-top: 8px;
  }
  .ranking-country {
    display: none;
  }
  .ranking-title {
    font-size: 34px;
  }
}
@media (max-width: 767px) {
  .ranking-industry {
    display: none;
  }
}
@media (max-width: 640px) {
  .header {
    height: 56px;
    padding: 0 20px;
  }
  .wordmark {
    font-size: 28px;
  }
  .search summary span {
    display: none;
  }
  .search form {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 67px;
    width: auto;
  }
  .search input {
    font-size: 16px;
  }
  main {
    padding: 24px 20px;
  }
  h1 {
    font-size: 29px;
  }
  h2 {
    font-size: 23px;
  }
  .wide {
    display: none;
  }
  .ranking-title {
    font-size: min(28px, calc((100vw - 40px) / 17.8));
  }
  .ranking-title.operating-income,
  .ranking-title.capex {
    font-size: min(28px, calc((100vw - 40px) / 21));
  }
  .filters {
    flex-wrap: wrap;
    gap: 2px;
  }
  .filters select {
    max-width: 130px;
    font-size: 12px;
  }
  .ranking-sector {
    display: none;
  }
  .ranking td,
  .ranking th {
    padding: 10px 4px;
  }
  .ranking .ranking-amount {
    width: 98px;
  }
  .ranking td.ranking-amount {
    font-size: 14px;
  }
  .company-link {
    gap: 9px;
  }
  .company-link .rank {
    width: 22px;
  }
  .ranking th.ranking-amount {
    white-space: normal;
  }
  .company-identity {
    gap: 12px;
  }
  .company-identity h1 {
    font-size: 27px;
  }
  .company-identity img {
    width: 44px;
    height: 44px;
  }
  .section-nav {
    gap: 18px;
    line-height: 1.5;
  }
  .overview {
    gap: 24px;
  }
  .overview dd {
    font-size: 21px;
  }
  footer {
    padding: 34px 18px;
  }
  .financial th:first-child {
    min-width: 170px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .footer-links {
    gap: 20px;
  }
  .footer-links nav {
    gap: 16px;
  }
}
