:root {
  color-scheme: light;
  --ink: #152e43;
  --muted: #476075;
  --blue: #005b89;
  --deep: #083553;
  --line: #d4dfe8;
  --page: #f7f9fc;
  --pale: #edf4FA;
  --white: #ffffff;
  --gutter: clamp(1rem, 3.25vw, 3rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.55; }
a { color: var(--blue); text-underline-offset: .16em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #0a71a7; outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; }
.wrap { max-width: 85rem; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 5; top: 1rem; left: 1rem; background: white; padding: .5rem .8rem; }
.site-header, .site-footer { background: var(--white); }
.site-header { border-bottom: 1px solid var(--line); }
.masthead, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.masthead { min-height: 4.3rem; }
.brand { display: inline-flex; align-items: center; gap: .58rem; color: var(--ink); font-size: 1.27rem; font-weight: 760; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.plus { color: #b34621; }
.masthead nav, .footer-inner nav { display: flex; flex-wrap: wrap; gap: .55rem 1.45rem; }
.masthead nav a, .footer-inner nav a { font-size: .94rem; font-weight: 600; text-decoration: none; }
.masthead nav a:hover, .footer-inner nav a:hover { text-decoration: underline; }
.hero {
  background: linear-gradient(120deg, #f1f7fc 12%, #e4eef8 82%, #e7f1f9);
  border-bottom: 1px solid #cedde9;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .85fr);
  gap: clamp(2rem, 6.4vw, 7rem);
  align-items: center;
  padding-block: clamp(2.2rem, 5vw, 4.65rem);
}
.breadcrumb { display: flex; gap: .6rem; align-items: center; color: var(--muted); font-size: .875rem; font-weight: 650; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.hero h1 { margin-block: .46rem .93rem; color: var(--deep); font-size: clamp(3rem, 5.6vw, 5.1rem); line-height: .99; font-weight: 760; letter-spacing: -.048em; }
.intro { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 36ch; }
.lookup {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  max-width: 35rem;
  min-height: 3.65rem;
  background: white;
  padding: .28rem;
  border: 1px solid #b4cada;
  border-radius: .72rem;
  box-shadow: 0 4px 12px #203f5a11;
}
.lookup:focus-within { outline: 2px solid #0a71a7; outline-offset: 2px; }
.lookup input { border: 0; flex: 1; min-width: 0; padding: .6rem .7rem; min-height: 2.8rem; color: var(--ink); background: transparent; }
.lookup input:focus-visible { outline: none; }
.lookup input::placeholder { color: #526980; opacity: 1; }
.lookup button, .empty button {
  border: 1px solid #005b89;
  border-radius: .49rem;
  background: var(--blue);
  color: white;
  padding: .58rem 1.02rem;
  font-weight: 690;
}
.lookup button:hover, .empty button:hover { background: #053e64; }
.magnifier { position: relative; flex: 0 0 1.02rem; height: 1.02rem; margin-left: .9rem; border: 2px solid #436683; border-radius: 50%; }
.magnifier::after { position: absolute; width: .43rem; height: 2px; top: .78rem; left: .7rem; transform: rotate(45deg); background: #436683; content: ""; }
.hero-plate {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #b9d0e0;
  border-radius: 1.05rem;
  background: #bdd2e2;
  box-shadow: 0 .85rem 2.5rem #1a486a12;
}
.hero-tile { display: grid; align-content: center; justify-items: center; min-height: clamp(6.75rem, 10vw, 9.4rem); padding: .7rem .25rem; gap: .38rem; background: var(--tile, white); color: #27455d; font-size: .875rem; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.25; }
.hero-tile:hover { background: white; text-decoration: underline; }
.hero-tile:focus-visible { outline-offset: -4px; }
.hero-tile img { width: clamp(2.85rem, 4.5vw, 3.9rem); height: auto; aspect-ratio: 1; }
.catalog-layout { display: grid; grid-template-columns: minmax(11.5rem, 14.2rem) minmax(0, 1fr); gap: clamp(1.5rem, 3.1vw, 3.4rem); padding-block: 2.35rem 3.8rem; }
.catalog-nav { min-width: 0; }
.desktop-categories { position: sticky; top: 1.2rem; max-height: calc(100vh - 2.4rem); overflow: auto; padding: .1rem .3rem .4rem; scrollbar-width: thin; }
.desktop-categories h2 { padding: .05rem .6rem .55rem; font-size: 1rem; }
.category-list { margin: 0; padding: 0; list-style: none; }
.category-list a { display: flex; align-items: center; justify-content: space-between; gap: .45rem; color: var(--muted); text-decoration: none; font-weight: 560; border-radius: .4rem; font-size: .875rem; line-height: 1.22; padding: .48rem .5rem .48rem .56rem; min-height: 2.05rem; }
.category-list a:hover, .category-list a[aria-current="location"] { background: #e1effa; color: #064e78; }
.category-count { color: #49657a; font-size: .78rem; font-variant-numeric: tabular-nums; }
.mobile-categories { display: none; }
.catalog-bar { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem .75rem; padding: 0 0 .95rem; border-bottom: 1px solid var(--line); }
.catalog-bar h2, .references h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.036em; line-height: 1.13; }
#symbol-count { font-size: .9rem; font-weight: 650; color: var(--muted); }
.group { margin-top: 2.25rem; }
.group:first-of-type { margin-top: 1.45rem; }
.group-header { margin-bottom: .9rem; }
.group-header h3 { font-size: clamp(1.23rem, 1.9vw, 1.54rem); line-height: 1.2; letter-spacing: -.027em; }
.group-header p { color: var(--muted); margin-top: .3rem; font-size: .975rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .78rem; list-style: none; margin: 0; padding: 0; }
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: var(--white);
  transition: border-color .15s;
}
.card:hover, .card:focus-within, .card:target { border-color: #729ab6; }
.card:target { box-shadow: 0 0 0 3px #85b8dc; }
.symbol-image {
  display: grid;
  place-items: center;
  min-height: 6.45rem;
  border-bottom: 1px solid #e1e8ef;
  background: var(--tile, #edf4fa);
}
.symbol-image img { width: 3.85rem; height: 3.85rem; object-fit: contain; }
.card-copy { padding: .8rem .8rem .95rem; }
.card h4 { font-size: 1rem; line-height: 1.26; letter-spacing: -.015em; overflow-wrap: anywhere; }
.card h4 a { color: var(--ink); text-decoration: none; }
.card h4 a:hover { color: var(--blue); text-decoration: underline; }
.card p { margin-top: .35rem; color: #3d576c; font-size: .925rem; line-height: 1.43; }
.empty { margin-top: 1.4rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: .72rem; background: white; }
.empty p { margin: .35rem 0 .85rem; color: var(--muted); }
.references { margin-top: 3rem; padding: 1.45rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.references p { margin-top: .65rem; color: var(--muted); max-width: 70ch; }
.references ul { columns: 2; margin-bottom: 0; padding-inline-start: 1.3rem; }
.references li { break-inside: avoid; margin-bottom: .4rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { flex-wrap: wrap; padding-block: 1.5rem; }
@media (max-width: 71rem) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 54rem) {
  .catalog-layout { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.15rem; }
  .desktop-categories { display: none; }
  .mobile-categories { display: block; background: white; border: 1px solid var(--line); border-radius: .58rem; }
  .mobile-categories summary { cursor: pointer; font-weight: 680; padding: .66rem .85rem; }
  .mobile-categories nav { padding: 0 .64rem .65rem; }
  .mobile-categories .category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem .45rem; }
  .mobile-categories .category-list a { min-height: 2.5rem; }
  .hero-inner { gap: 1.5rem; }
}
@media (max-width: 42rem) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 1.7rem 1.25rem; gap: 1.25rem; }
  .hero h1 { margin-top: .53rem; }
  .hero-break { display: none; }
  .hero-tile { min-height: 5.15rem; font-size: .83rem; padding-block: .45rem; gap: .3rem; }
  .hero-tile img { width: 2.57rem; }
  .lookup { margin-top: 1.05rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .62rem; }
  .references ul { columns: 1; }
}
@media (max-width: 25rem) {
  .masthead nav { gap: .8rem; }
  .symbol-image { min-height: 5.25rem; }
  .card-copy { padding: .65rem .65rem .8rem; }
  .lookup button { padding-inline: .64rem; }
  .lookup input { font-size: .95rem; padding-inline: .45rem; }
  .magnifier { margin-left: .55rem; flex-basis: .85rem; height: .85rem; }
  .magnifier::after { top: .62rem; left: .59rem; }
}
@media print {
  .site-header, .site-footer, .catalog-nav, .lookup, .hero-plate, .breadcrumb { display: none; }
  .hero, body, .card, .symbol-image { background: white !important; }
  .hero-inner, .catalog-layout { display: block; padding-block: .7rem; }
  .hero h1 { font-size: 2.7rem; }
  .hero-break { display: none; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { break-inside: avoid; }
  .group-header { break-after: avoid; }
  .symbol-image { min-height: 4.5rem; }
  .symbol-image img { width: 3rem; height: 3rem; }
}
.tile-sand { --tile: #fff5e5; }
.tile-blue { --tile: #eaf3fa; }
.tile-mint { --tile: #edf7f1; }
.tile-lilac { --tile: #f3f0fa; }
.tile-plain { --tile: #fff; }
