* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

a:focus, button:focus, summary:focus {
  outline: none;
}

a:focus-visible, button:focus-visible, summary:focus-visible, details:focus-visible, .dialect-card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 6px;
}

.banner {
  background: #fef9c3;
  border-bottom: 1px solid #fde047;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  text-align: center;
  color: #713f12;
  line-height: 1.5;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.75rem 0;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 3rem 0 1rem 0;
  color: #0f172a;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 1.5rem 0 0.25rem 0;
  color: #0f172a;
}

p {
  margin: 0.75rem 0;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f1f5f9;
  padding: 0.08em 0.4em;
  border-radius: 6px;
  font-size: 0.875em;
  color: #0f172a;
}

.intro {
  margin-bottom: 2rem;
}

.intro p {
  color: #64748b;
  font-size: 1.125rem;
  max-width: 44rem;
  margin: 0;
}

.dialect-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 3rem 0;
}

.dialect-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dialect-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.dialect-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.dialect-card h3 a {
  color: #0f172a;
}

.dialect-card h3 a:hover {
  color: #2563eb;
}

.dialect-card dl.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.875rem;
}

.dialect-card .card-meta .stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dialect-card .card-meta .stat dt {
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dialect-card .card-meta .stat dt code {
  text-transform: none;
  font-size: 0.85em;
  letter-spacing: normal;
}

.dialect-card .card-meta .stat dd {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.35;
}

.dialect-card .card-meta .stat .percent {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2563eb;
  display: block;
  line-height: 1.2;
}

.dialect-card .card-meta .stat .fraction {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 400;
  display: block;
  margin-top: 0.15rem;
}

.no-snapshot {
  color: #94a3b8;
  font-style: italic;
  margin: 0;
}

.matrix-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1.5rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

table.matrix {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

table.matrix thead th {
  border-bottom: 1px solid #e2e8f0;
  top: 0;
  text-transform: none;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  position: sticky;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: normal;
  background: #f8fafc;
  color: #64748b;
}

table.matrix thead th.matrix-row-label {
  text-align: left;
  position: sticky;
  left: 0;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}

table.matrix tbody tr {
  border-bottom: 1px solid #f1f5f9;
}

table.matrix tbody tr:last-child {
  border-bottom: none;
}

table.matrix tbody td {
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
  white-space: nowrap;
}

table.matrix tbody td.matrix-row-label {
  position: sticky;
  left: 0;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  font-weight: 500;
  text-align: left;
}

table.matrix thead th.matrix-col-label {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

table.matrix thead th.matrix-col-label a {
  color: #64748b;
}

table.matrix thead th.matrix-col-label a:hover {
  color: #2563eb;
}

table.matrix tbody td.matrix-cell {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

table.matrix tbody td.matrix-cell a {
  color: #0f172a;
}

table.matrix tbody td.matrix-cell a:hover {
  color: #2563eb;
}

table.matrix tbody td.matrix-cell .fraction {
  color: #64748b;
  font-size: 0.8125rem;
  margin-left: 0.25rem;
}

table.matrix tbody td.matrix-empty {
  color: #94a3b8;
  text-align: center;
}

.crumbs {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0 0 1.5rem 0;
}

.crumbs a {
  color: #64748b;
}

.crumbs a:hover {
  color: #2563eb;
}

.detail-header {
  padding: 1.5rem 0 2rem 0;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1.5rem;
}

.detail-header h1 {
  margin: 0 0 2rem 0;
}

.headline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem;
  margin: 0;
}

.headline .stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.headline .stat dt {
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.headline .stat dt code {
  text-transform: none;
  font-size: 0.85em;
  letter-spacing: normal;
}

.headline .stat dd {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 500;
  line-height: 1.3;
}

.headline .percent {
  font-size: 1.875rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
}

.headline .fraction {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 400;
  display: block;
  margin-top: 0.25rem;
}

.deep-dive-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1.5rem;
  margin: 1rem 0 2rem 0;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
}

.deep-dive-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.deep-dive-stats .stat dt {
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deep-dive-stats .stat dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.deep-dive-stats .stat dd.muted-stat {
  color: #64748b;
  font-weight: 500;
}

.deep-dive-stats .stat .percent {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  display: block;
  line-height: 1.1;
}

.deep-dive-stats .stat .fraction {
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 400;
  display: block;
  margin-top: 0.25rem;
}

.section-note {
  color: #64748b;
  font-size: 0.875rem;
  max-width: 44rem;
  margin: 0.5rem 0 1rem 0;
}

.empty {
  color: #94a3b8;
  font-style: normal;
  margin: 0.5rem 0;
  font-size: 0.875rem;
}

dt {
  color: #64748b;
  font-weight: 500;
}

dd {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5rem 0 1.5rem 0;
  font-size: 0.875rem;
}

thead tr {
  border-bottom: 1px solid #e2e8f0;
}

tbody tr {
  border-bottom: 1px solid #f1f5f9;
}

tbody tr:last-child {
  border-bottom: none;
}

th {
  text-align: left;
  padding: 0.75rem 0.75rem;
  font-weight: 500;
  color: #64748b;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

td {
  text-align: left;
  padding: 0.75rem 0.75rem;
  vertical-align: top;
}

td.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

td.muted {
  color: #64748b;
}

td.strong {
  font-weight: 600;
}

th.num {
  text-align: right;
}

table.mismatches td {
  font-size: 0.875rem;
}

table.summary td {
  vertical-align: middle;
}

table.summary td.ns {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
}

table.summary td.ns a {
  color: #0f172a;
}

table.summary td.ns a:hover {
  color: #2563eb;
}

table.summary td.implemented {
  line-height: 1.4;
}

table.summary td.implemented .pct {
  font-weight: 700;
  color: #0f172a;
  margin-right: 0.5rem;
}

table.summary td.implemented .fraction {
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 400;
}

table.var-table {
  font-size: 0.875rem;
}

table.var-table td {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 0.5rem 0.75rem;
}

table.var-table td.ns {
  color: #64748b;
  width: 1%;
  white-space: nowrap;
}

.entry-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.entry-list, li {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 0;
}

.entry-list h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.entry-list dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1rem;
  row-gap: 0.5rem;
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
}

.entry-list dt {
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

details.category {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  margin: 0.75rem 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

details.category:hover {
  border-color: #94a3b8;
}

details.category summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  list-style-position: outside;
  user-select: none;
}

details.category summary .count {
  color: #64748b;
  font-weight: 400;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

details.category summary:hover {
  color: #2563eb;
}

details.category .category-body {
  padding: 0 1rem 0.75rem 1rem;
}

.site-footer {
  max-width: 72rem;
  margin: 4rem auto 3rem auto;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 0.875rem;
}

@media (max-width: 40rem) {

  html {
    font-size: 16px;
  }
  
  main {
    padding: 2rem 1rem 3rem;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  
  
  .headline .percent {
    font-size: 2rem;
  }
  
  .deep-dive-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .banner {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }
  
  .dialect-list {
    grid-template-columns: 1fr;
  }

}