/* 3119 Navigation Theme */
:root {
  --ink: #172033;
  --ink-soft: #354158;
  --muted: #768097;
  --line: #e6eaf2;
  --line-strong: #d8deea;
  --paper: #ffffff;
  --canvas: #f6f8fc;
  --primary: #315efb;
  --primary-dark: #1e42c8;
  --primary-soft: #eef2ff;
  --accent: #ffb347;
  --accent-soft: #fff5df;
  --success: #17a673;
  --danger: #dc5268;
  --shadow-sm: 0 8px 24px rgba(23, 32, 51, .055);
  --shadow-md: 0 18px 50px rgba(23, 32, 51, .09);
  --shadow-blue: 0 18px 36px rgba(49, 94, 251, .22);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1260px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.search-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 1.25em;
  height: 1.25em;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.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;
}

.page-anchor {
  position: absolute;
  inset: 0 auto auto 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(231, 235, 243, .78);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 7px 25px rgba(24, 34, 60, .07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 11px;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 38px;
  overflow: hidden;
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.6px;
  background: linear-gradient(135deg, #18255f 0%, var(--primary) 72%, #5d8cff 100%);
  box-shadow: 0 8px 18px rgba(49, 94, 251, .25);
}

.brand__mark::before {
  position: absolute;
  top: -14px;
  right: -8px;
  width: 33px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .3);
  transform: rotate(25deg);
  content: "";
}

.brand__mark i {
  position: absolute;
  bottom: -8px;
  left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  filter: blur(3px);
}

.brand__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand__copy strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.35px;
}

.brand__copy small {
  margin-top: 5px;
  color: #9aa3b6;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.55px;
}

.main-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 5px;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #58647b;
  font-size: 14px;
  font-weight: 650;
  transition: color .2s ease;
}

.main-nav a::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  content: "";
  transition: width .22s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.round-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.round-button:hover {
  color: var(--primary);
  border-color: #ccd7ff;
  box-shadow: 0 8px 20px rgba(49, 94, 251, .1);
  transform: translateY(-1px);
}

.header-submit {
  display: inline-flex;
  align-items: center;
  height: 40px;
  gap: 7px;
  padding: 0 16px;
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  background: var(--ink);
  transition: background .2s ease, transform .2s ease;
}

.header-submit span {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.header-submit:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(239, 244, 255, .95) 0%, rgba(248, 250, 255, .9) 72%, var(--canvas) 100%);
}

.hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(58, 91, 170, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 91, 170, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.hero__mesh::before,
.hero__mesh::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  filter: blur(2px);
}

.hero__mesh::before {
  top: -170px;
  left: 44%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(72, 119, 255, .18), rgba(72, 119, 255, 0) 68%);
}

.hero__mesh::after {
  top: 120px;
  right: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 181, 73, .12), rgba(255, 181, 73, 0) 68%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
  align-items: center;
  min-height: 548px;
  padding-top: 64px;
  padding-bottom: 66px;
  gap: 86px;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.8px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(49, 94, 251, .1);
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  color: #141d31;
  font-size: clamp(44px, 4.25vw, 66px);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: -2.2px;
}

.hero h1 span {
  color: var(--primary);
}

.hero__description {
  max-width: 640px;
  margin: 24px 0 30px;
  color: #667189;
  font-size: 16px;
  line-height: 1.85;
}

.hero-search {
  display: flex;
  align-items: center;
  width: min(660px, 100%);
  height: 64px;
  padding: 7px 7px 7px 20px;
  border: 1px solid rgba(210, 218, 233, .9);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(34, 52, 96, .12);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hero-search:focus-within {
  border-color: rgba(49, 94, 251, .38);
  box-shadow: 0 18px 55px rgba(49, 94, 251, .14);
}

.hero-search__icon {
  display: grid;
  place-items: center;
  flex: none;
  color: #858fa5;
}

.hero-search__icon svg {
  width: 22px;
  height: 22px;
}

.hero-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 15px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.hero-search input::placeholder {
  color: #9ca5b8;
}

.hero-search kbd {
  flex: none;
  padding: 4px 8px;
  border: 1px solid #e4e8f1;
  border-bottom-width: 2px;
  border-radius: 6px;
  color: #9aa3b6;
  font-family: inherit;
  font-size: 10px;
  background: #f8f9fc;
}

.hero-search button {
  flex: none;
  height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 750;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(49, 94, 251, .22);
  transition: background .2s ease, transform .2s ease;
}

.hero-search button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.hot-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  color: #9099ac;
  font-size: 12px;
}

.hot-search > span {
  margin-right: 2px;
}

.hot-search button {
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  color: #68748b;
  background: rgba(255, 255, 255, .62);
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.hot-search button:hover {
  color: var(--primary);
  background: #fff;
}

.hero__visual {
  position: relative;
  min-height: 370px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(65, 99, 188, .12);
  border-radius: 50%;
}

.orbit::after {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(49, 94, 251, .3);
  content: "";
}

.orbit--one {
  top: -84px;
  right: -120px;
  width: 520px;
  height: 520px;
  animation: orbit-spin 28s linear infinite;
}

.orbit--one::after {
  bottom: 88px;
  left: 40px;
}

.orbit--two {
  top: 34px;
  right: -28px;
  width: 340px;
  height: 340px;
  animation: orbit-spin 22s linear infinite reverse;
}

.orbit--two::after {
  top: 22px;
  right: 58px;
  background: var(--accent);
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.visual-card {
  position: absolute;
  z-index: 2;
  top: 47px;
  left: 50%;
  width: 330px;
  min-height: 284px;
  padding: 30px;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, .18), transparent 26%),
    linear-gradient(145deg, #19265d 0%, #2747bf 58%, #4b78fa 100%);
  box-shadow:
    0 32px 70px rgba(34, 56, 130, .24),
    inset 0 1px rgba(255, 255, 255, .2);
  transform: translateX(-50%) rotate(2.5deg);
}

.visual-card::before {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(255, 255, 255, .035),
    0 0 0 70px rgba(255, 255, 255, .025);
  content: "";
}

.visual-card__badge {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  color: rgba(255, 255, 255, .75);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.4px;
  background: rgba(255, 255, 255, .08);
}

.visual-card__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 24px 0;
}

.visual-card__brand span {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -2px;
}

.visual-card__brand i {
  width: 29px;
  height: 2px;
  background: var(--accent);
  transform: rotate(-62deg);
}

.visual-card > strong {
  display: block;
  font-size: 18px;
  font-weight: 760;
}

.visual-card > small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .6);
  font-size: 11px;
}

.visual-card__lines {
  display: flex;
  gap: 6px;
  margin-top: 26px;
}

.visual-card__lines i {
  width: 34px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .18);
}

.visual-card__lines i:first-child {
  width: 82px;
  background: var(--accent);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(225, 231, 241, .75);
  border-radius: 13px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 40px rgba(29, 49, 96, .13);
  backdrop-filter: blur(12px);
}

.float-chip--one {
  top: 11px;
  left: -4px;
  animation: float-soft 5s ease-in-out infinite;
}

.float-chip--two {
  right: -28px;
  bottom: 8px;
  animation: float-soft 6s ease-in-out infinite reverse;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-chip__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
  background: var(--primary-soft);
}

.float-chip__dot {
  width: 10px;
  height: 10px;
  margin: 0 12px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 7px rgba(23, 166, 115, .1);
}

.float-chip > span:last-child {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.float-chip small {
  display: block;
  margin-top: 2px;
  color: #8b95a9;
  font-size: 9px;
  font-weight: 500;
}

.hero-stats {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 83px;
  border-top: 1px solid rgba(221, 227, 240, .82);
}

.hero-stats > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 128px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--line-strong);
}

.hero-stats strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.7px;
}

.hero-stats span {
  color: #818b9f;
  font-size: 12px;
}

.hero-stats .hero-stats__note {
  min-width: 0;
  padding: 0;
  margin: 0 0 0 auto;
  border: 0;
  color: #778297;
}

.hero-stats__note span {
  color: #778297;
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(23, 166, 115, .1);
}

.section {
  padding: 92px 0;
}

.section--categories {
  padding-top: 82px;
  padding-bottom: 56px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.8px;
}

.section-heading h2,
.about-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 880;
  line-height: 1.25;
  letter-spacing: -1px;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 90px;
  gap: 14px;
  padding: 17px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.category-card::after {
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--category-color);
  opacity: .055;
  content: "";
  transition: transform .3s ease, opacity .3s ease;
}

.category-card:hover {
  border-color: color-mix(in srgb, var(--category-color) 32%, #fff);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.category-card:hover::after {
  opacity: .1;
  transform: scale(1.4);
}

.category-card__icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  flex: none;
  border-radius: 13px;
  color: var(--category-color);
  background: color-mix(in srgb, var(--category-color) 10%, #fff);
}

.category-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.category-card__copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

.category-card__copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #929bad;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card__count {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  color: #9ca5b5;
  font-size: 9px;
  font-weight: 750;
  background: #f4f6fa;
}

.section--featured {
  padding-top: 36px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-pills button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #69758b;
  font-size: 12px;
  font-weight: 650;
  background: #fff;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.filter-pills button:hover {
  color: var(--primary);
  border-color: #c8d4ff;
}

.filter-pills button.is-active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.site-card {
  min-width: 0;
}

.site-card[hidden] {
  display: none !important;
}

.site-card__link {
  position: relative;
  display: flex;
  min-height: 196px;
  height: 100%;
  flex-direction: column;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.site-card__link::after {
  position: absolute;
  top: -48px;
  right: -48px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  content: "";
  filter: blur(30px);
  transition: opacity .28s ease;
}

.site-card__link:hover {
  border-color: #d4ddf5;
  box-shadow: 0 16px 40px rgba(28, 45, 88, .09);
  transform: translateY(-4px);
}

.site-card__link:hover::after {
  opacity: .08;
}

.site-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.site-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: none;
  overflow: hidden;
  border-radius: 12px;
  color: var(--logo-color);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--logo-color) 13%, #fff), color-mix(in srgb, var(--logo-color) 7%, #fff));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--logo-color) 13%, #fff);
}

.site-logo::before {
  position: absolute;
  top: -13px;
  right: -13px;
  width: 35px;
  height: 35px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .16;
  content: "";
}

.site-logo__letter {
  position: relative;
  z-index: 1;
  max-width: 35px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.4px;
  text-overflow: clip;
  white-space: nowrap;
}

.site-logo img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  object-fit: cover;
}

.site-card__open {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #a1a9b8;
  background: #f6f8fb;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
}

.site-card__open svg {
  width: 13px;
  height: 13px;
}

.site-card__link:hover .site-card__open {
  color: var(--primary);
  opacity: 1;
  transform: translate(0, 0);
}

.site-card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  padding-top: 18px;
}

.site-card__title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.site-card h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-card__body p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: #8992a5;
  font-size: 11.5px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag {
  display: inline-flex;
  flex: none;
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 750;
  background: var(--primary-soft);
}

.tag--hot {
  color: #b86d00;
  background: var(--accent-soft);
}

.site-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 12px;
  border-top: 1px solid #f0f2f6;
  color: #9aa3b3;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .25px;
}

.site-card__arrow {
  color: #adb5c3;
  transition: color .2s ease, transform .2s ease;
}

.site-card__arrow svg {
  width: 14px;
  height: 14px;
}

.site-card__link:hover .site-card__arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.section--directory {
  padding-top: 74px;
  background:
    linear-gradient(180deg, #f6f8fc 0%, #f1f4f9 100%);
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 32px;
}

.directory-main {
  min-width: 0;
}

.directory-toolbar {
  position: sticky;
  z-index: 8;
  top: calc(var(--header-height) + 8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 12px;
  margin-bottom: 23px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 7px 22px rgba(28, 42, 77, .04);
  backdrop-filter: blur(16px);
}

.directory-jump {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.directory-jump a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 7px;
  color: #6e798d;
  font-size: 10px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease;
}

.directory-jump a:hover {
  color: var(--ink);
  background: #f4f6fa;
}

.directory-jump span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot-color);
}

.inline-filter {
  display: flex;
  align-items: center;
  width: 170px;
  flex: none;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9fc;
}

.inline-filter svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: #9ba4b5;
}

.inline-filter input {
  width: 100%;
  min-width: 0;
  height: 33px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
}

.category-section {
  scroll-margin-top: 110px;
  margin-bottom: 48px;
}

.category-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.category-section__title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.category-section__icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  color: var(--category-color);
  background: color-mix(in srgb, var(--category-color) 9%, #fff);
}

.category-section__title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 820;
  letter-spacing: -.3px;
}

.category-section__title p {
  margin: 2px 0 0;
  color: #929bad;
  font-size: 10px;
}

.category-section__count {
  color: #9ba4b5;
  font-size: 10px;
}

.directory-side {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.side-card--hot {
  padding: 21px;
}

.side-card__head span {
  color: var(--primary);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.4px;
}

.side-card__head h3 {
  margin: 5px 0 18px;
  font-size: 18px;
  font-weight: 840;
}

.ranking-list {
  display: flex;
  flex-direction: column;
}

.ranking-list a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #eff2f6;
}

.ranking-list__number {
  color: #bbc2ce;
  font-size: 11px;
  font-weight: 800;
}

.ranking-list a:first-child .ranking-list__number {
  color: var(--primary);
}

.ranking-list__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.ranking-list__copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list__copy small {
  color: #9ca4b3;
  font-size: 9px;
}

.ranking-list svg {
  width: 13px;
  height: 13px;
  color: #bcc3cf;
}

.ranking-list a:hover strong,
.ranking-list a:hover svg {
  color: var(--primary);
}

.side-card--submit {
  position: relative;
  min-height: 220px;
  padding: 23px;
  border-color: transparent;
  color: #fff;
  background:
    radial-gradient(circle at 92% 95%, rgba(255, 179, 71, .22), transparent 38%),
    linear-gradient(145deg, #17255e, #2b4cc3 75%, #315efb);
}

.side-card__eyebrow {
  color: rgba(255, 255, 255, .52);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.side-card--submit h3 {
  margin: 10px 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -.5px;
}

.side-card--submit p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
  line-height: 1.75;
}

.side-card--submit > a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
}

.side-card--submit > a svg {
  width: 13px;
  height: 13px;
}

.submit-orb {
  position: absolute;
  right: -35px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, .035);
}

.side-card--note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
}

.side-card--note .pulse-dot {
  flex: none;
  margin-top: 7px;
}

.side-card--note p {
  margin: 0;
  color: #8a94a7;
  font-size: 9px;
  line-height: 1.75;
}

.directory-empty {
  padding: 80px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, .65);
}

.directory-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 18px;
}

.section--about {
  padding-top: 72px;
}

.about-panel {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
  padding: 48px 52px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 18%, rgba(49, 94, 251, .08), transparent 23%),
    #fff;
}

.about-panel__mark {
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  border-radius: 34px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1.2px;
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 255, 255, .2), transparent 23%),
    linear-gradient(145deg, #17255b, var(--primary));
  box-shadow: 0 25px 45px rgba(37, 70, 177, .2);
  transform: rotate(-5deg);
}

.about-panel__copy h2 {
  max-width: 680px;
  font-size: 30px;
}

.about-panel__copy p {
  max-width: 760px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.about-panel__principles {
  display: flex;
  gap: 22px;
}

.about-panel__principles div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 70px;
}

.about-panel__principles strong {
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
}

.about-panel__principles span {
  color: #707b90;
  font-size: 11px;
  font-weight: 650;
}

.site-footer {
  margin-top: 48px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(74, 115, 255, .18), transparent 28%),
    #11192d;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(460px, .7fr);
  gap: 90px;
  padding-top: 68px;
  padding-bottom: 58px;
}

.brand--footer .brand__copy strong {
  color: #fff;
}

.brand--footer .brand__copy small {
  color: rgba(255, 255, 255, .36);
}

.footer-brand > p {
  max-width: 460px;
  margin: 23px 0 18px;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  line-height: 1.9;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
}

.footer-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4bd9aa;
  box-shadow: 0 0 0 5px rgba(75, 217, 170, .08);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.footer-links h3 {
  margin: 3px 0 16px;
  color: rgba(255, 255, 255, .8);
  font-size: 11px;
  font-weight: 720;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin-top: 9px;
  color: rgba(255, 255, 255, .42);
  font-size: 10px;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-top: 1px solid rgba(255, 255, 255, .075);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .32);
  font-size: 9px;
}

.back-to-top {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  color: rgba(255, 255, 255, .7);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.back-to-top:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .05);
}

.mobile-dock {
  display: none;
}

.search-modal {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 9vh 20px 30px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .22s ease, visibility .22s ease;
}

.search-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 39, .55);
  backdrop-filter: blur(8px);
}

.search-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: 80vh;
  padding: 27px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(12, 20, 39, .25);
  transform: translateY(-12px) scale(.985);
  transition: transform .24s ease;
}

.search-modal.is-open .search-modal__dialog {
  transform: translateY(0) scale(1);
}

.search-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.search-modal__head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.7px;
}

.modal-search {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 11px;
  padding: 0 16px;
  margin-top: 23px;
  border: 1px solid #dce2ee;
  border-radius: 13px;
  background: #f8fafd;
  box-shadow: inset 0 1px 2px rgba(25, 40, 70, .025);
}

.modal-search:focus-within {
  border-color: #b7c7fb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(49, 94, 251, .07);
}

.modal-search > svg {
  flex: none;
  color: #75819a;
}

.modal-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.modal-search > span {
  flex: none;
  padding: 3px 7px;
  border: 1px solid #e0e5ef;
  border-bottom-width: 2px;
  border-radius: 5px;
  color: #9aa4b6;
  font-size: 8px;
  background: #fff;
}

.modal-hot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  color: #939daf;
  font-size: 10px;
}

.modal-hot button {
  padding: 3px 8px;
  border: 0;
  border-radius: 5px;
  color: #6e798d;
  font-size: 10px;
  background: #f2f5f9;
  cursor: pointer;
}

.modal-hot button:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.modal-results {
  max-height: calc(80vh - 215px);
  padding-top: 17px;
  margin-top: 16px;
  overflow-y: auto;
  border-top: 1px solid #edf0f5;
}

.search-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  color: #a1a9b8;
}

.search-placeholder svg {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
}

.search-placeholder p {
  margin: 0;
  font-size: 11px;
}

.modal-result {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px;
  border-radius: 11px;
  transition: background .18s ease;
}

.modal-result:hover {
  background: #f6f8fc;
}

.modal-result .site-logo {
  width: 39px;
  height: 39px;
  border-radius: 10px;
}

.modal-result__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.modal-result__copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.modal-result__copy small {
  overflow: hidden;
  color: #919bad;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-result__category {
  flex: none;
  padding: 3px 8px;
  border-radius: 5px;
  color: #8b95a8;
  font-size: 9px;
  background: #f3f5f8;
}

.modal-result > svg {
  width: 15px;
  height: 15px;
  color: #aab3c2;
}

.modal-no-result {
  padding: 45px 10px;
  color: #939daf;
  text-align: center;
  font-size: 12px;
}

.inner-page {
  min-height: 65vh;
}

.inner-hero {
  padding: 88px 0 68px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 76% 20%, rgba(49, 94, 251, .12), transparent 25%),
    linear-gradient(180deg, #f0f4ff, #f8faff);
}

.inner-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -2px;
}

.inner-hero p {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
}

.inner-content {
  padding-top: 50px;
  padding-bottom: 30px;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-list__item {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.article-list__item h2 {
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.4;
}

.article-list__item h2 a:hover {
  color: var(--primary);
}

.article-list__item p {
  color: var(--muted);
  font-size: 13px;
}

.content-card {
  max-width: 900px;
  padding: 48px;
  margin-top: 52px;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.back-link {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.content-card__head {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
}

.content-card__head h1 {
  margin: 13px 0 10px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.3;
  letter-spacing: -1.2px;
}

.content-meta {
  margin: 0;
  color: #939daf;
  font-size: 11px;
}

.rich-content {
  padding-top: 25px;
  color: #3c485f;
  font-size: 15px;
  line-height: 1.95;
}

.rich-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-content img {
  height: auto;
  margin: 20px auto;
  border-radius: 12px;
}

.content-card__footer {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
}

.button--primary {
  color: #fff;
  background: var(--primary);
}

.empty-state {
  padding: 70px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 18px;
}

.empty-state a {
  color: var(--primary);
}

.pagebar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 30px 0;
}

.pagebar a,
.pagebar span {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #68748a;
  font-size: 11px;
  background: #fff;
}

.pagebar .is-current {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

@media (max-width: 1180px) {
  .main-nav a {
    padding: 0 10px;
  }

  .hero__inner {
    gap: 40px;
  }

  .hero__visual {
    transform: scale(.9);
    transform-origin: center right;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .directory-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
  }

  .about-panel {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .about-panel__mark {
    width: 100px;
    height: 100px;
  }

  .about-panel__principles {
    grid-column: 2;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .main-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 15px;
    visibility: hidden;
    opacity: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .site-header.is-menu-open .mobile-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 11px 13px;
    border-radius: 8px;
    color: #4f5b71;
    font-size: 13px;
    font-weight: 650;
  }

  .mobile-nav a:hover {
    color: var(--primary);
    background: #f4f7ff;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 68px;
    padding-bottom: 54px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero__visual {
    display: none;
  }

  .hero-stats .hero-stats__note {
    display: none;
  }

  .directory-layout {
    grid-template-columns: 1fr;
  }

  .directory-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-card--note {
    grid-column: 1 / -1;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .container {
    width: calc(100% - 28px);
  }

  .site-header__inner {
    gap: 12px;
  }

  .brand__mark {
    width: 43px;
    height: 34px;
    border-radius: 9px;
    font-size: 11px;
  }

  .brand__copy strong {
    font-size: 15px;
  }

  .brand__copy small {
    display: none;
  }

  .header-submit {
    display: none;
  }

  .header-actions {
    gap: 7px;
  }

  .round-button {
    width: 38px;
    height: 38px;
  }

  .hero__inner {
    padding-top: 52px;
    padding-bottom: 42px;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1.18;
    letter-spacing: -1.8px;
  }

  .hero__description {
    margin: 18px 0 24px;
    font-size: 13px;
    line-height: 1.8;
  }

  .hero-search {
    height: 56px;
    padding-left: 16px;
    border-radius: 14px;
  }

  .hero-search input {
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-search kbd {
    display: none;
  }

  .hero-search button {
    height: 43px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 12px;
  }

  .hot-search {
    margin-top: 13px;
    font-size: 10px;
  }

  .hot-search button {
    padding: 3px 7px;
    font-size: 10px;
  }

  .hero-stats {
    min-height: 72px;
  }

  .hero-stats > div {
    min-width: 0;
    flex: 1;
    align-items: center;
    flex-direction: column;
    gap: 0;
    padding: 0 8px;
    margin: 0;
  }

  .hero-stats strong {
    font-size: 21px;
  }

  .hero-stats span {
    font-size: 9px;
  }

  .section {
    padding: 66px 0;
  }

  .section--categories {
    padding-top: 54px;
    padding-bottom: 36px;
  }

  .section--featured {
    padding-top: 25px;
  }

  .section-heading {
    margin-bottom: 23px;
  }

  .section-heading--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .section-heading h2,
  .about-panel h2 {
    font-size: 28px;
  }

  .section-heading p {
    margin-top: 7px;
    font-size: 12px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .category-card {
    min-height: 80px;
    gap: 10px;
    padding: 13px 11px;
    border-radius: 13px;
  }

  .category-card__icon {
    width: 37px;
    height: 37px;
    border-radius: 10px;
  }

  .category-card__icon svg {
    width: 19px;
    height: 19px;
  }

  .category-card__copy strong {
    font-size: 12px;
  }

  .category-card__copy small {
    max-width: 90px;
    font-size: 8px;
  }

  .category-card__count {
    display: none;
  }

  .filter-pills {
    width: 100%;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .filter-pills button {
    flex: none;
  }

  .site-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .site-card__link {
    min-height: 178px;
    padding: 14px;
    border-radius: 14px;
  }

  .site-logo {
    width: 39px;
    height: 39px;
    border-radius: 10px;
  }

  .site-card__open {
    display: none;
  }

  .site-card__body {
    padding-top: 14px;
  }

  .site-card h3 {
    font-size: 13px;
  }

  .site-card__body p {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .site-card__footer {
    padding-top: 11px;
    margin-top: 9px;
    font-size: 8px;
  }

  .tag {
    padding: 1px 5px;
    font-size: 8px;
  }

  .section--directory {
    padding-top: 54px;
  }

  .directory-toolbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }

  .directory-jump {
    flex-wrap: nowrap;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .directory-jump::-webkit-scrollbar {
    display: none;
  }

  .directory-jump a {
    flex: none;
    background: #f7f8fb;
  }

  .inline-filter {
    width: 100%;
  }

  .category-section {
    margin-bottom: 38px;
  }

  .category-section__title h3 {
    font-size: 16px;
  }

  .category-section__title p {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .directory-side {
    grid-template-columns: 1fr;
  }

  .side-card--note {
    grid-column: auto;
  }

  .section--about {
    padding-top: 52px;
  }

  .about-panel {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 30px 24px;
    border-radius: 20px;
  }

  .about-panel__mark {
    width: 82px;
    height: 82px;
    border-radius: 23px;
    font-size: 18px;
  }

  .about-panel__copy h2 {
    font-size: 25px;
  }

  .about-panel__principles {
    gap: 25px;
  }

  .site-footer {
    margin-bottom: 0;
  }

  .footer-main {
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 38px;
  }

  .footer-brand > p {
    margin: 18px 0 14px;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .back-to-top {
    position: absolute;
    top: 16px;
    right: 0;
  }

  .mobile-dock {
    position: fixed;
    z-index: 180;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 58px;
    padding: 5px;
    border: 1px solid rgba(222, 228, 238, .9);
    border-radius: 17px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 15px 40px rgba(17, 28, 56, .16);
    backdrop-filter: blur(18px);
  }

  .mobile-dock a,
  .mobile-dock button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: #8b94a5;
    font-size: 8px;
    background: transparent;
  }

  .mobile-dock svg {
    width: 19px;
    height: 19px;
  }

  .mobile-dock .is-active {
    color: var(--primary);
    background: var(--primary-soft);
  }

  .search-modal {
    align-items: end;
    padding: 0;
  }

  .search-modal__dialog {
    width: 100%;
    max-height: 90vh;
    padding: 21px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    transform: translateY(25px);
  }

  .search-modal__head h2 {
    font-size: 21px;
  }

  .modal-results {
    max-height: calc(90vh - 235px);
  }

  .inner-hero {
    padding: 55px 0 44px;
  }

  .inner-hero h1 {
    font-size: 34px;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 25px 19px;
    margin-top: 26px;
  }

  .content-card__head h1 {
    font-size: 30px;
  }
}

@media (max-width: 390px) {
  .header-actions .round-button {
    display: none;
  }

  .site-grid {
    grid-template-columns: 1fr;
  }

  .site-card__link {
    min-height: 165px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* m123-inspired directory layout */
:root {
  --ink: #1b2337;
  --ink-soft: #46536b;
  --muted: #7b879d;
  --line: #e7ebf2;
  --line-strong: #dbe1eb;
  --canvas: #f7f9fc;
  --primary: #2b5ff5;
  --primary-dark: #1d4ce0;
  --primary-soft: #eef3ff;
  --accent: #ff8a00;
  --accent-soft: #fff4e5;
  --container: 1380px;
  --header-height: 66px;
}

body {
  background: var(--canvas);
}

.container {
  width: min(var(--container), calc(100% - 32px));
}

.site-header {
  height: var(--header-height);
  border-bottom-color: #e9edf4;
  background: #fff;
  backdrop-filter: none;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 8px rgba(36, 55, 93, .07);
}

.site-header__inner {
  gap: 28px;
}

.brand__mark {
  width: 54px;
  height: 34px;
  border-radius: 6px;
  font-size: 13px;
  background: linear-gradient(135deg, #1f56f3, #4e87ff);
  box-shadow: none;
}

.brand__copy strong {
  font-size: 16px;
}

.brand__copy small {
  font-size: 7px;
  letter-spacing: 1.2px;
}

.main-nav {
  gap: 2px;
}

.main-nav a {
  padding: 0 18px;
  color: #47536a;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a::after {
  bottom: 10px;
  height: 2px;
}

.main-nav a.is-active {
  font-weight: 650;
}

.header-actions {
  gap: 9px;
}

.header-submit {
  height: 36px;
  border: 1px solid #c8d7ff;
  border-radius: 4px;
  color: var(--primary);
  background: #f5f8ff;
}

.header-submit:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.round-button {
  border-radius: 8px;
}

.portal-hero {
  padding-top: 14px;
}

.portal-hero__panel {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(430px, 1fr) 300px;
  min-height: 232px;
  padding: 24px 24px 22px;
  overflow: hidden;
  border: 1px solid #e4ebfa;
  border-radius: 3px;
  background:
    radial-gradient(circle at 7% 9%, rgba(104, 143, 255, .09), transparent 24%),
    linear-gradient(104deg, #eef3ff 0%, #eaf2ff 50%, #f3f7ff 100%);
}

.portal-hero__panel::before,
.portal-hero__panel::after {
  position: absolute;
  border: 1px solid rgba(67, 111, 233, .09);
  border-radius: 50%;
  content: "";
}

.portal-hero__panel::before {
  top: -160px;
  left: 290px;
  width: 420px;
  height: 420px;
}

.portal-hero__panel::after {
  right: -120px;
  bottom: -190px;
  width: 390px;
  height: 390px;
}

.portal-art {
  position: relative;
  min-height: 180px;
}

.portal-art__window {
  position: absolute;
  top: 20px;
  left: 34px;
  width: 178px;
  height: 136px;
  overflow: hidden;
  border: 2px solid #1f2639;
  border-radius: 11px;
  background: #fff;
  box-shadow: 8px 9px 0 rgba(74, 113, 221, .08);
  transform: rotate(-4deg);
}

.portal-art__toolbar {
  display: flex;
  align-items: center;
  height: 24px;
  gap: 4px;
  padding-left: 9px;
  border-bottom: 1px solid #e9edf5;
  background: #fafbfe;
}

.portal-art__toolbar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff7a74;
}

.portal-art__toolbar i:nth-child(2) {
  background: #ffc44d;
}

.portal-art__toolbar i:nth-child(3) {
  background: #40c998;
}

.portal-art__screen {
  position: relative;
  height: 110px;
  padding: 17px 14px;
  background:
    linear-gradient(rgba(77, 107, 181, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 107, 181, .045) 1px, transparent 1px);
  background-size: 14px 14px;
}

.portal-art__badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 25px;
  border-radius: 4px;
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  background: var(--primary);
}

.portal-art__chart {
  display: flex;
  align-items: flex-end;
  height: 43px;
  gap: 7px;
  margin-top: 8px;
}

.portal-art__chart i {
  width: 25px;
  border-radius: 3px 3px 0 0;
  background: #8fb2ff;
}

.portal-art__chart i:nth-child(1) {
  height: 16px;
}

.portal-art__chart i:nth-child(2) {
  height: 30px;
  background: #5f8fff;
}

.portal-art__chart i:nth-child(3) {
  height: 23px;
  background: #ffbe62;
}

.portal-art__chart i:nth-child(4) {
  height: 38px;
  background: var(--primary);
}

.portal-art__rows {
  position: absolute;
  top: 43px;
  right: 10px;
  display: flex;
  width: 55px;
  flex-direction: column;
  gap: 5px;
}

.portal-art__rows i {
  height: 4px;
  border-radius: 5px;
  background: #dfe6f5;
}

.portal-art__rows i:nth-child(2) {
  width: 72%;
}

.portal-art__dot {
  position: absolute;
  border-radius: 50%;
}

.portal-art__dot--one {
  top: 28px;
  right: 19px;
  width: 17px;
  height: 17px;
  background: #ffc043;
}

.portal-art__dot--two {
  bottom: 15px;
  left: 15px;
  width: 15px;
  height: 15px;
  background: #3a68f4;
}

.portal-art__line {
  position: absolute;
  bottom: 29px;
  left: 92px;
  width: 74px;
  height: 2px;
  background: #252c40;
  transform: rotate(-24deg);
}

.portal-art__spark {
  position: absolute;
  color: #315efb;
  font-size: 20px;
}

.portal-art__spark--one {
  top: 14px;
  left: 10px;
  color: #39b997;
}

.portal-art__spark--two {
  right: 10px;
  bottom: 8px;
  color: #f3a92e;
  font-size: 15px;
}

.portal-hero__center {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 600px;
}

.portal-count {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4c5870;
  font-size: 17px;
  font-weight: 600;
}

.portal-count__mark {
  color: var(--primary);
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -1.4px;
}

.portal-count strong {
  color: var(--primary);
  font-size: 23px;
  font-weight: 900;
}

.portal-hero h1 {
  margin: 4px 0 13px;
  color: #7f8ca4;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}

.portal-hero h1 span::before {
  margin: 0 6px;
  content: "·";
}

.hero-switch {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-bottom: 8px;
}

.hero-switch a {
  position: relative;
  padding: 0 1px 7px;
  color: #62708a;
  font-size: 12px;
  font-weight: 650;
}

.hero-switch a.is-active {
  color: var(--primary);
}

.hero-switch a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  content: "";
}

.portal-search {
  display: flex;
  align-items: center;
  width: min(540px, 100%);
  height: 44px;
  padding-left: 15px;
  overflow: hidden;
  border: 1px solid #d7deeb;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(46, 75, 145, .06);
}

.portal-search__icon {
  display: grid;
  place-items: center;
  flex: none;
  color: #9aa5b8;
}

.portal-search__icon svg {
  width: 19px;
  height: 19px;
}

.portal-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 11px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.portal-search button {
  width: 78px;
  height: 100%;
  flex: none;
  border: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  background: var(--primary);
  cursor: pointer;
}

.portal-hot-search {
  margin-top: 9px;
  font-size: 10px;
}

.portal-hot-search button {
  padding: 1px 3px;
  color: #7b879c;
  font-size: 10px;
  background: transparent;
}

.hero-news {
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 176px;
  padding: 17px 18px 13px;
  border: 1px solid rgba(219, 226, 239, .8);
  border-radius: 3px;
  background: rgba(255, 255, 255, .92);
}

.hero-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f5;
}

.hero-news__head strong {
  color: #253049;
  font-size: 14px;
  font-weight: 750;
}

.hero-news__head a {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #9ba5b8;
  font-size: 9px;
}

.hero-news__head svg {
  width: 11px;
  height: 11px;
}

.hero-news ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 0 0;
  margin: 0;
  list-style: none;
}

.hero-news li a {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #647188;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-news li a:hover {
  color: var(--primary);
}

.hero-news__bullet {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--dot-color);
}

.hero-news__foot {
  position: absolute;
  right: 18px;
  bottom: 9px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #a2abba;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-news__foot i {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #28b883;
}

.portal-layout {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding-top: 16px;
}

.portal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 14px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.portal-sidebar__all {
  display: flex;
  align-items: center;
  height: 49px;
  gap: 9px;
  padding: 0 15px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #edf0f5;
}

.portal-sidebar__all span {
  display: grid;
  place-items: center;
}

.portal-sidebar__all svg {
  width: 20px;
  height: 20px;
}

.portal-sidebar__group {
  padding: 15px 12px 12px;
  border-bottom: 1px solid #edf0f5;
}

.portal-sidebar__group h2 {
  padding: 0 3px 7px;
  margin: 0;
  color: #9aa4b5;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
}

.portal-sidebar__group a {
  display: flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  padding: 0 8px;
  border-radius: 4px;
  color: #39465d;
  font-size: 12px;
  transition: color .18s ease, background .18s ease;
}

.portal-sidebar__group a:hover {
  color: var(--primary);
  background: #f2f6ff;
}

.sidebar-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--dot-color);
}

.portal-sidebar__group em {
  margin-left: auto;
  color: #b2bac8;
  font-size: 8px;
  font-style: normal;
}

.portal-sidebar__submit {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 19px 10px;
  color: #5d6b82;
  text-align: center;
  background: #f8faff;
}

.portal-sidebar__submit > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-bottom: 7px;
  border-radius: 50%;
  color: var(--primary);
  font-size: 17px;
  background: #e8efff;
}

.portal-sidebar__submit strong {
  font-size: 10px;
  font-weight: 650;
}

.portal-sidebar__submit small {
  margin-top: 3px;
  color: #9aa4b5;
  font-size: 8px;
}

.portal-main {
  min-width: 0;
}

.quick-board {
  padding: 17px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.quick-board__head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f5;
}

.quick-board__title {
  display: flex;
  align-items: center;
  flex: none;
  gap: 7px;
  color: #1e2a40;
  font-size: 13px;
}

.quick-board__title span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 4px;
  color: #fff;
  background: var(--primary);
}

.quick-board__title svg {
  width: 16px;
  height: 16px;
}

.quick-board__tabs {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-board__tabs::-webkit-scrollbar {
  display: none;
}

.quick-board__tabs button {
  flex: none;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  color: #6f7b90;
  font-size: 10px;
  background: transparent;
  cursor: pointer;
}

.quick-board__tabs button:hover {
  color: var(--primary);
  background: #f2f6ff;
}

.quick-board__tabs button.is-active {
  color: #fff;
  background: var(--primary);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding-top: 9px;
}

.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 76px;
  gap: 8px;
  padding: 8px 5px;
  border-radius: 4px;
  transition: background .18s ease;
}

.brand-tile[hidden] {
  display: none;
}

.brand-tile:hover {
  background: #f6f8fc;
}

.brand-tile .site-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-tile .site-logo__letter {
  font-size: 10px;
}

.brand-tile__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand-tile__copy strong {
  overflow: hidden;
  color: #364258;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-tile__copy small {
  overflow: hidden;
  color: #a1aaba;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-section {
  padding: 26px 0 4px;
}

.portal-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 14px;
}

.portal-section__heading h2 {
  margin: 2px 0 0;
  color: var(--primary);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.4px;
}

.portal-section__heading p {
  margin: 4px 0 0;
  color: #9aa4b5;
  font-size: 10px;
}

.portal-section__heading > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8994a8;
  font-size: 10px;
}

.portal-section__heading > a svg {
  width: 12px;
  height: 12px;
}

.portal-section__eyebrow {
  color: #9ba5b6;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.site-grid--portal {
  gap: 12px;
}

.site-grid--portal .site-card__link {
  min-height: 178px;
  border-radius: 4px;
}

.site-grid--portal .site-card__body {
  padding-top: 14px;
}

.site-grid--portal .site-card__footer {
  padding-top: 10px;
  margin-top: 9px;
}

.portal-directory {
  padding-top: 28px;
}

.portal-section__heading--directory {
  align-items: center;
}

.portal-filter {
  display: flex;
  align-items: center;
  width: 190px;
  height: 34px;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.portal-filter svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: #9aa4b6;
}

.portal-filter input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 10px;
  background: transparent;
}

.directory-group {
  padding: 16px 18px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  scroll-margin-top: 82px;
}

.directory-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  margin-bottom: 12px;
  border-bottom: 1px solid #edf0f5;
}

.directory-group__head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.directory-group__icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 7px;
  color: var(--category-color);
  background: color-mix(in srgb, var(--category-color) 10%, #fff);
}

.directory-group__head h3 {
  margin: 0;
  color: #263249;
  font-size: 14px;
  font-weight: 700;
}

.directory-group__head p {
  margin: 1px 0 0;
  color: #9ba5b6;
  font-size: 9px;
}

.directory-group__head > span {
  color: #a4adbc;
  font-size: 9px;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.compact-card[hidden] {
  display: none !important;
}

.compact-card > a {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 58px;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid #eff2f6;
  border-radius: 3px;
  background: #fff;
  transition: border-color .18s ease, background .18s ease;
}

.compact-card > a:hover {
  border-color: #dce4fb;
  background: #f8faff;
}

.compact-card .site-logo {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.compact-card .site-logo__letter {
  font-size: 9px;
}

.compact-card__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.compact-card__copy strong {
  overflow: hidden;
  color: #354157;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card__copy small {
  overflow: hidden;
  color: #a1aaba;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card__hot {
  flex: none;
  padding: 1px 3px;
  border-radius: 3px;
  color: #ff8a00;
  font-size: 7px;
  font-style: normal;
  background: #fff5e7;
}

.compact-card > a > svg {
  width: 12px;
  height: 12px;
  flex: none;
  color: #c2c9d4;
}

.directory-empty {
  border-radius: 3px;
  background: #fff;
}

.portal-about {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.portal-about__mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(145deg, #1f56f3, #4f86ff);
}

.portal-about__copy h2 {
  margin: 3px 0 4px;
  color: #263249;
  font-size: 20px;
  letter-spacing: -.3px;
}

.portal-about__copy p {
  max-width: 700px;
  margin: 0;
  color: #8e98aa;
  font-size: 10px;
}

.portal-about__stats {
  display: flex;
  gap: 24px;
}

.portal-about__stats div {
  display: flex;
  align-items: baseline;
  flex-direction: column;
}

.portal-about__stats strong {
  color: var(--primary);
  font-size: 20px;
}

.portal-about__stats span {
  color: #9ba5b6;
  font-size: 8px;
}

.site-footer {
  margin-top: 32px;
  color: var(--ink);
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-main {
  grid-template-columns: minmax(0, 1.3fr) minmax(460px, .7fr);
  gap: 80px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.brand--footer .brand__copy strong {
  color: var(--ink);
}

.brand--footer .brand__copy small {
  color: #9da6b6;
}

.footer-brand > p {
  margin: 14px 0 12px;
  color: #8d97aa;
  font-size: 10px;
}

.footer-status {
  color: #8894a8;
  font-size: 9px;
}

.footer-links h3 {
  margin-bottom: 12px;
  color: #334057;
  font-size: 10px;
}

.footer-links a {
  color: #929caf;
  font-size: 9px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  min-height: 58px;
  border-top-color: #edf0f5;
}

.footer-bottom p {
  color: #a2abba;
}

.back-to-top {
  color: #7e899d;
  border-color: var(--line);
}

.back-to-top:hover {
  color: var(--primary);
  border-color: #c8d7ff;
  background: #f5f8ff;
}

@media (max-width: 1180px) {
  .portal-hero__panel {
    grid-template-columns: 185px minmax(390px, 1fr) 275px;
    gap: 10px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .portal-art__window {
    left: 13px;
    transform: scale(.9) rotate(-4deg);
    transform-origin: left center;
  }

  .brand-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .portal-hero__panel {
    grid-template-columns: 165px minmax(0, 1fr) 255px;
    min-height: 225px;
  }

  .portal-hero__center {
    max-width: 100%;
  }

  .portal-count {
    font-size: 14px;
  }

  .portal-count__mark {
    font-size: 25px;
  }

  .portal-layout {
    display: block;
  }

  .portal-sidebar {
    position: static;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    overflow-x: auto;
    border-radius: 3px;
    scrollbar-width: none;
  }

  .portal-sidebar::-webkit-scrollbar {
    display: none;
  }

  .portal-sidebar__all {
    min-width: 118px;
    height: 44px;
    flex: none;
    border-right: 1px solid #edf0f5;
    border-bottom: 0;
  }

  .portal-sidebar__group {
    display: flex;
    align-items: center;
    flex: none;
    gap: 2px;
    padding: 5px 8px;
    border-right: 1px solid #edf0f5;
    border-bottom: 0;
  }

  .portal-sidebar__group h2 {
    padding: 0 4px;
    white-space: nowrap;
  }

  .portal-sidebar__group a {
    min-height: 32px;
    padding: 0 9px;
    white-space: nowrap;
  }

  .portal-sidebar__group a:nth-of-type(n+6),
  .portal-sidebar__group em,
  .portal-sidebar__submit {
    display: none;
  }

  .brand-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 24px);
  }

  .site-header__inner {
    gap: 8px;
  }

  .portal-hero {
    padding-top: 10px;
  }

  .portal-hero__panel {
    display: block;
    min-height: 0;
    padding: 20px 17px 16px;
  }

  .portal-art,
  .hero-news {
    display: none;
  }

  .portal-hero__panel::before {
    left: -100px;
  }

  .portal-count {
    gap: 6px;
    font-size: 13px;
  }

  .portal-count__mark {
    font-size: 24px;
  }

  .portal-count strong {
    font-size: 18px;
  }

  .portal-hero h1 {
    margin: 5px 0 11px;
    font-size: 10px;
  }

  .hero-switch {
    gap: 18px;
    margin-bottom: 8px;
  }

  .hero-switch a {
    font-size: 11px;
  }

  .portal-search {
    width: 100%;
    height: 43px;
  }

  .portal-search button {
    width: 63px;
  }

  .portal-hot-search {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .portal-hot-search::-webkit-scrollbar {
    display: none;
  }

  .portal-hot-search > span,
  .portal-hot-search button {
    flex: none;
  }

  .portal-layout {
    padding-top: 10px;
  }

  .portal-sidebar__group:first-of-type {
    max-width: calc(100vw - 145px);
    overflow-x: auto;
  }

  .portal-sidebar__group:first-of-type h2,
  .portal-sidebar__group:first-of-type a:nth-of-type(n+7) {
    display: none;
  }

  .portal-sidebar__group:last-of-type {
    display: none;
  }

  .quick-board {
    padding: 13px 10px 14px;
  }

  .quick-board__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .quick-board__tabs {
    width: 100%;
  }

  .quick-board__tabs button {
    padding: 5px 10px;
  }

  .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .brand-tile {
    min-height: 72px;
    flex-direction: column;
    gap: 5px;
    padding: 7px 2px;
  }

  .brand-tile .site-logo {
    width: 33px;
    height: 33px;
  }

  .brand-tile__copy {
    align-items: center;
    width: 100%;
  }

  .brand-tile__copy strong {
    max-width: 100%;
    font-size: 9px;
  }

  .brand-tile__copy small {
    font-size: 7px;
  }

  .portal-section {
    padding-top: 20px;
  }

  .portal-section__heading {
    padding-right: 2px;
    padding-left: 2px;
  }

  .portal-section__heading h2 {
    font-size: 18px;
  }

  .site-grid--portal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-grid--portal .site-card__link {
    min-height: 164px;
    padding: 13px;
    border-radius: 3px;
  }

  .site-grid--portal .site-card__body p {
    font-size: 9px;
  }

  .portal-section__heading--directory {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .portal-filter {
    width: 100%;
  }

  .directory-group {
    padding: 13px 10px 12px;
    border-radius: 2px;
  }

  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .compact-card > a {
    height: 55px;
    gap: 7px;
    padding: 7px 6px;
  }

  .compact-card .site-logo {
    width: 30px;
    height: 30px;
  }

  .compact-card__copy strong {
    font-size: 10px;
  }

  .compact-card__copy small {
    max-width: 94px;
    font-size: 7px;
  }

  .compact-card__hot,
  .compact-card > a > svg {
    display: none;
  }

  .portal-about {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 17px;
    margin-top: 20px;
  }

  .portal-about__mark {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    font-size: 14px;
  }

  .portal-about__copy h2 {
    font-size: 16px;
  }

  .portal-about__stats {
    grid-column: 2;
    gap: 20px;
  }

  .footer-main {
    width: 100%;
    padding-top: 32px;
    padding-bottom: 25px;
  }

  .footer-links {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .portal-count {
    flex-wrap: wrap;
  }

  .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-grid--portal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Resource detail pages */
.page-product {
  background: #f5f7fb;
}

.product-page {
  min-height: 67vh;
  padding: 18px 0 0;
}

.product-back {
  text-decoration: none;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  min-height: 38px;
  gap: 9px;
  color: #929caf;
  font-size: 11px;
}

.product-breadcrumb a:hover {
  color: var(--primary);
}

.product-breadcrumb strong {
  color: #546077;
  font-weight: 600;
}

.product-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 146px;
  gap: 28px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.product-hero__identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 20px;
}

.product-hero__identity > .site-logo {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 16px;
}

.product-hero__identity > .site-logo .site-logo__letter {
  font-size: 22px;
}

.product-hero__identity > .site-logo img {
  object-fit: contain;
  padding: 8px;
}

.product-hero__identity > div:last-child {
  min-width: 0;
}

.product-hero__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-hero__title h1 {
  margin: 0;
  color: #1c263b;
  font-size: 27px;
  font-weight: 760;
  letter-spacing: -.7px;
}

.product-hero__title > span {
  padding: 2px 7px;
  border-radius: 3px;
  color: #ff8600;
  font-size: 9px;
  font-weight: 650;
  background: #fff4e7;
}

.product-hero__tags {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.product-hero__tags a,
.product-hero__tags span {
  display: inline-flex;
  padding: 2px 8px;
  border: 1px solid #dce4f6;
  border-radius: 2px;
  color: #5270ac;
  font-size: 9px;
  background: #f7f9ff;
}

.product-hero__identity p {
  max-width: 850px;
  margin: 9px 0 0;
  overflow: hidden;
  color: #7f8aa0;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-hero__actions {
  display: flex;
  flex: none;
  gap: 9px;
}

.product-primary-button,
.product-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 40px;
  gap: 6px;
  padding: 0 17px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 650;
}

.product-primary-button {
  color: #fff;
  border: 1px solid var(--primary);
  background: var(--primary);
}

.product-primary-button:hover {
  color: #fff;
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.product-primary-button svg,
.product-preview__body a svg {
  width: 13px;
  height: 13px;
}

.product-secondary-button {
  color: var(--primary);
  border: 1px solid #b9ccff;
  background: #fff;
}

.product-secondary-button:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: #f7f9ff;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}

.product-main,
.product-side {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.product-tabs {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 55px;
  padding: 0 38px;
  border-bottom: 1px solid #edf0f5;
}

.product-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  color: #7b879a;
  font-size: 12px;
}

.product-tabs a.is-active,
.product-tabs a:hover {
  color: var(--primary);
}

.product-tabs a.is-active::after,
.product-tabs a:hover::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--primary);
  content: "";
}

.product-content {
  padding: 28px 38px 34px;
  border-bottom: 1px solid #edf0f5;
  scroll-margin-top: 82px;
}

.product-content:last-child {
  border-bottom: 0;
}

.product-content h2 {
  margin: 0 0 18px;
  color: #28344a;
  font-size: 17px;
  font-weight: 700;
}

.product-content blockquote {
  padding: 12px 16px;
  margin: 0 0 20px;
  border-left: 3px solid var(--primary);
  color: #526079;
  font-size: 12px;
  line-height: 1.8;
  background: #f7f8fa;
}

.product-content > p {
  margin: 0;
  color: #5d6980;
  font-size: 12px;
  line-height: 2;
}

.product-preview {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #e5e9f1;
  border-radius: 4px;
  background:
    linear-gradient(rgba(65, 102, 190, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 102, 190, .035) 1px, transparent 1px),
    #f7f9fe;
  background-size: 22px 22px;
}

.product-preview__top {
  display: flex;
  align-items: center;
  height: 38px;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid #e5eaf3;
  background: #fff;
}

.product-preview__top > span {
  display: flex;
  gap: 4px;
}

.product-preview__top i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff8179;
}

.product-preview__top i:nth-child(2) {
  background: #ffc04d;
}

.product-preview__top i:nth-child(3) {
  background: #40c797;
}

.product-preview__top em {
  padding: 3px 35px;
  border-radius: 3px;
  color: #9ca5b4;
  font-size: 8px;
  font-style: normal;
  background: #f6f8fb;
}

.product-preview__body {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 42px 20px;
  text-align: center;
}

.product-preview__body .site-logo {
  width: 58px;
  height: 58px;
  border-radius: 13px;
}

.product-preview__body strong {
  margin-top: 13px;
  color: #2e3a50;
  font-size: 17px;
}

.product-preview__body p {
  max-width: 510px;
  margin: 5px 0 16px;
  color: #8c97aa;
  font-size: 10px;
}

.product-preview__body a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  gap: 5px;
  padding: 0 14px;
  border-radius: 3px;
  color: #fff;
  font-size: 10px;
  background: var(--primary);
}

.product-information {
  padding-top: 27px;
}

.product-information dl {
  margin: 0;
}

.product-information dl > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 44px;
  align-items: center;
  border-bottom: 1px dashed #edf0f4;
}

.product-information dt {
  color: #929caf;
  font-size: 10px;
}

.product-information dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #4b586e;
  font-size: 10px;
}

.product-information dd a {
  color: var(--primary);
}

.product-status {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 3px;
  color: #139a6c;
  background: #ecfaf5;
}

.product-side {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  overflow: hidden;
}

.product-side__head {
  display: flex;
  align-items: center;
  min-height: 58px;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f5;
}

.product-side__head > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #fff;
  background: var(--primary);
}

.product-side__head svg {
  width: 17px;
  height: 17px;
}

.product-side__head div {
  display: flex;
  flex-direction: column;
}

.product-side__head strong {
  color: #2b374d;
  font-size: 13px;
}

.product-side__head small {
  color: #a0a9b8;
  font-size: 7px;
  letter-spacing: .7px;
}

.product-related {
  padding: 7px 15px;
}

.product-related article {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #eff1f5;
}

.product-related .site-logo {
  width: 35px;
  height: 35px;
  border-radius: 7px;
}

.product-related article > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product-related article strong {
  overflow: hidden;
  color: #3a465c;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-related article small {
  overflow: hidden;
  color: #a0a9b8;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-related__detail,
.product-related__direct {
  padding: 3px 5px;
  border-radius: 2px;
  font-size: 8px;
  white-space: nowrap;
}

.product-related__detail {
  color: #7e899c;
  border: 1px solid #e2e7ef;
}

.product-related__direct {
  color: var(--primary);
  background: #edf3ff;
}

.product-side__cta {
  padding: 22px 18px;
  margin: 5px 15px 15px;
  border-radius: 3px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 90%, rgba(79, 134, 255, .6), transparent 40%),
    #203b8e;
}

.product-side__cta > span {
  font-size: 20px;
}

.product-side__cta strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.product-side__cta p {
  margin: 5px 0 12px;
  color: rgba(255, 255, 255, .62);
  font-size: 9px;
}

.product-side__cta a {
  color: #fff;
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-footer {
  padding: 26px 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.product-footer > .container {
  display: flex;
  align-items: center;
  gap: 18px;
}

.product-footer p {
  margin: 0 0 0 auto;
  color: #a0a9b8;
  font-size: 9px;
}

.product-footer > .container > a:last-child {
  color: #7e899c;
  font-size: 9px;
}

.product-not-found {
  max-width: 660px;
  padding: 80px 30px;
  margin: 30px auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: center;
  background: #fff;
}

.product-not-found > span {
  color: #dce5ff;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
}

.product-not-found h1 {
  margin: 12px 0 7px;
  font-size: 25px;
}

.product-not-found p {
  margin: 0 0 22px;
  color: #8994a8;
  font-size: 11px;
}

@media (max-width: 980px) {
  .product-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-hero__actions {
    width: 100%;
  }

  .product-hero__actions a {
    flex: 1;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .product-page {
    padding-top: 8px;
  }

  .product-breadcrumb {
    padding: 0 3px;
    overflow: hidden;
    white-space: nowrap;
  }

  .product-hero {
    padding: 20px 16px;
    gap: 18px;
  }

  .product-hero__identity {
    align-items: flex-start;
    gap: 13px;
  }

  .product-hero__identity > .site-logo {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }

  .product-hero__title h1 {
    font-size: 21px;
  }

  .product-hero__identity p {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-tabs {
    height: 51px;
    gap: 32px;
    padding: 0 18px;
  }

  .product-content {
    padding: 22px 17px 24px;
  }

  .product-preview__top em {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-preview__body {
    padding: 30px 16px;
  }

  .product-information dl > div {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .product-related {
    padding-right: 12px;
    padding-left: 12px;
  }

  .product-footer > .container {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .product-footer p {
    margin-left: 0;
  }
}
