@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/fraunces-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/source-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/source-sans-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root, [data-theme="night"] {
  --bg: #09090b;
  --bg-deep: #18181b;
  --ink: #fafafa;
  --muted: #a1a1aa;
  --card: #121214;
  --line: #27272a;
  --accent: #fafafa;
  --accent-ink: #09090b;
  --chip: #1c1c1f;
  --chip-ink: #e4e4e7;
  --chip-on: #fafafa;
  --chip-on-ink: #09090b;
  --brand: #e8b86d;
  --shadow: none;
  --font-display: "Fraunces", "Iowan Old Style", "Songti SC", "Noto Serif SC", "WenQuanYi Zen Hei", "Noto Sans CJK SC", serif;
  --font-body: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Zen Hei", "Noto Sans CJK SC", sans-serif;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); }
body { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
main { width: min(1140px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 80px; flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 1; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>");
}
.top, main, .site-footer { position: relative; z-index: 2; }

.top {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.brand span { font-size: .98rem; white-space: nowrap; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }

.hero { padding: 56px 0 12px; max-width: 40rem; }
.page-head { margin: 8px 0 22px; }
.eyebrow { letter-spacing: .18em; text-transform: uppercase; color: var(--brand); font-size: .72rem; margin: 0 0 12px; font-weight: 600; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .35em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; }
.lede, .meta, .note { color: var(--muted); }
.lede { max-width: 38rem; font-size: 1.08rem; line-height: 1.55; }

.tool-search {
  display: flex; gap: 8px; align-items: center;
  margin: 28px 0 0; padding: 6px 6px 6px 14px;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 18px;
}
.tool-ico { color: var(--muted); display: grid; place-items: center; }
.tool-search input[type="search"] {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  padding: 12px 10px; font: inherit; outline: none;
}
.tool-search input[type="search"]::placeholder { color: #71717a; }
.tool-search button, .tool-search select {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 14px; padding: 10px 14px; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.tool-search select { min-width: 8.8rem; }
.tool-search button[aria-expanded="true"] { border-color: #52525b; background: #1c1c1f; }

.tool-filters {
  margin-top: 10px; padding: 18px 18px 14px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card);
}
.facet + .facet { margin-top: 16px; }
.facet h3 { font-family: var(--font-body); font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.facet-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.facet-chips button, .facet-chips a {
  border: 1px solid var(--line); background: var(--chip); color: var(--chip-ink);
  border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .88rem; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center;
}
.facet-chips button:hover, .facet-chips a:hover { border-color: #3f3f46; }
.facet-chips button[aria-pressed="true"], .facet-chips a[aria-pressed="true"] {
  background: var(--chip-on); color: var(--chip-on-ink); border-color: var(--chip-on);
}
.facet-chips .n { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.facet-chips [aria-pressed="true"] .n { color: inherit; opacity: .5; }
.linkish { background: none; border: 0; color: var(--muted); padding: 12px 0 0; font: inherit; cursor: pointer; }
.linkish:hover { color: var(--ink); }

.catalog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 10px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--chip); color: var(--chip-ink); border-radius: 999px;
  padding: 4px 10px; font-size: .82rem;
}
.pill button { all: unset; cursor: pointer; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip, .chips a {
  display: inline-block; background: var(--chip); color: var(--chip-ink);
  border-radius: 999px; padding: 6px 12px; text-decoration: none; font-size: .86rem;
}
.chip-geo { background: var(--bg-deep); }
.block { margin-top: 42px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.block-head a { color: var(--muted); text-decoration: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px; min-height: 168px; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #3f3f46; transform: translateY(-1px); }
.card-hit { color: inherit; text-decoration: none; display: flex; gap: 14px; align-items: flex-start; }
.card-body { min-width: 0; }
.card-kicker { margin: 0 0 4px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.card h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; }
.card-desc {
  margin: 8px 0 0; font-size: .92rem; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { margin: 6px 0 0; font-size: .9rem; }
.card-stats {
  display: flex; flex-direction: column; gap: 8px;
  margin: 16px 0 0; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.card-stats .stat { display: flex; align-items: center; min-width: 0; }
.card-stats dt, .card-stats dd { margin: 0; }
.card-stats dt {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: .88rem; font-weight: 400; flex: none;
}
.card-stats .stat-ico { color: var(--muted); flex: none; }
.card-stats .stat-rule {
  flex: 1 1 auto; min-width: 20px; height: 0;
  margin: 0 10px; border-bottom: 1px dotted #71717a;
  transform: translateY(-3px);
}
.card-stats dd {
  font-size: .92rem; font-weight: 600; text-align: right; flex: none;
  max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile .lede { margin: 8px 0 0; max-width: 42rem; }
.profile-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  list-style: none; margin: 16px 0 0; padding: 0;
}
.profile-meta li {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
}
.profile-meta svg { flex: none; }
.profile-meta span { color: var(--ink); font-size: .95rem; font-weight: 600; }
.mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--bg-deep); color: var(--ink); font-weight: 600;
  overflow: hidden; position: relative;
}
.mark::before { content: attr(data-letter); }
.mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.mark.lg { width: 56px; height: 56px; font-size: 1.4rem; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }

.geo-grid, .cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.geo-tile, .cap-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; text-decoration: none; color: inherit;
}
.geo-tile:hover, .cap-card:hover { border-color: #3f3f46; }
.geo-tile strong { display: block; font-family: var(--font-display); font-size: 1.5rem; margin-top: 6px; }
.cap-dim { opacity: .72; }
.crumb { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.crumb a { color: inherit; }
.profile { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 36px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 32px 0 8px; color: var(--muted); }
.pager a, .pager button {
  color: var(--ink); background: none; border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 14px; font: inherit; text-decoration: none; cursor: pointer;
}
.pager button:disabled { opacity: .35; cursor: default; }
.empty, .note { margin-top: 8px; }
.prose { max-width: 40rem; line-height: 1.7; }
.prose h2 { margin-top: 1.6em; }
.cta {
  background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 999px; padding: 12px 20px; font: inherit; font-weight: 600; text-decoration: none; display: inline-block;
}
.site-footer {
  margin-top: auto; border-top: 1px solid var(--line); padding: 48px 0 28px;
  background: var(--bg-deep); color: var(--muted);
}
.site-footer .wrap { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }
.site-footer p { margin: 0 0 10px; line-height: 1.55; max-width: 28rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr .8fr 1fr 1fr; gap: 32px;
  margin-bottom: 36px; align-items: start;
}
.footer-grid--i18n {
  grid-template-columns: 1.35fr .7fr .85fr .85fr .95fr;
}
.site-footer__language .footer-heading { margin-bottom: 10px; }
.language-select-label { display: block; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.language-select {
  width: 100%; max-width: 220px;
  appearance: none; -webkit-appearance: none;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 36px 10px 12px; font: inherit; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23a1a1aa' d='M1.2.6 6 5.4 10.8.6 12 1.8 6 7.8 0 1.8z'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; margin-bottom: 12px;
}
.footer-logo img { border-radius: 8px; }
.footer-brand-domain { color: var(--brand); font-size: .86rem; margin: -4px 0 12px; letter-spacing: .01em; }
.footer-heading {
  color: var(--brand); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 12px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--brand); }
.footer-disclaimer { color: #71717a; font-size: 13px; }
.foot-note {
  margin: 0; padding-top: 18px; border-top: 1px solid var(--line);
  color: #71717a; font-size: 13px;
}
.apply { max-width: 44rem; margin: 48px 0 0; }
.apply h2 { font-size: 1.8rem; margin-bottom: 18px; }
.apply-card {
  display: grid; gap: 18px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px;
}
.apply-form label { display: grid; gap: 8px; color: var(--ink); font-size: .92rem; }
.apply-form label > span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.apply-form input[type="text"],
.apply-form input[type="search"],
.apply-form select,
.apply-form textarea {
  width: 100%; border: 1px solid var(--line); background: var(--bg-deep); color: var(--ink);
  border-radius: 10px; padding: 11px 12px; font: inherit; outline: none;
}
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  border-color: #52525b; box-shadow: 0 0 0 3px rgba(250,250,250,.06);
}
.apply-form select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23a1a1aa' d='M1.2.6 6 5.4 10.8.6 12 1.8 6 7.8 0 1.8z'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.apply-form textarea { resize: vertical; min-height: 7rem; }
.apply-form small { color: var(--muted); font-size: .8rem; }
.apply-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.combo { position: relative; }
.combo-field { position: relative; }
.combo-field::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 12px; height: 8px;
  transform: translateY(-50%); pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23a1a1aa' d='M1.2.6 6 5.4 10.8.6 12 1.8 6 7.8 0 1.8z'/></svg>") center / contain no-repeat;
}
.combo-field input { padding-right: 36px; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 8;
  max-height: 240px; overflow: auto; margin: 0; padding: 6px 0;
  list-style: none; background: #1c1c1f; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.combo-list li { padding: 8px 12px; cursor: pointer; color: var(--ink); }
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: #27272a; }
.file-control {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px;
  border: 1px dashed #3f3f46; background: var(--bg-deep); border-radius: 10px; padding: 8px 12px;
}
.file-control input[type="file"] {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer;
}
.file-btn {
  flex: 0 0 auto; pointer-events: none;
  border: 1px solid var(--line); background: #27272a; color: var(--ink);
  border-radius: 999px; padding: 7px 14px; font-size: .88rem;
}
.file-name { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.captcha-row { display: flex; align-items: end; gap: 12px; }
.captcha-row label { flex: 1; }
.captcha-btn {
  border: 1px solid var(--line); background: var(--bg-deep); border-radius: 10px;
  padding: 0; cursor: pointer; height: 48px; width: 148px; overflow: hidden; flex: 0 0 148px;
}
.captcha-btn img { display: block; height: 48px; width: 148px; object-fit: cover; }
.apply-submit { justify-self: start; margin-top: 6px; cursor: pointer; }
.apply-submit:disabled { opacity: .45; cursor: default; }
.apply-err { color: #fca5a5; margin: 0; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.toast {
  position: fixed; right: 20px; bottom: 24px; z-index: 40;
  max-width: 22rem; padding: 14px 16px; border-radius: 14px;
  background: #fafafa; color: #09090b; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  font-size: .95rem; line-height: 1.45;
}
@media (max-width: 720px) {
  .apply-row { grid-template-columns: 1fr; }
  .captcha-row { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .top { flex-wrap: wrap; }
  .nav { margin-left: 0; width: 100%; }
  .hero { padding-top: 28px; }
  .tool-search { flex-wrap: wrap; padding: 10px; }
  .tool-search input { width: 100%; }
  .tool-ico { display: none; }
  .profile { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
