@charset "UTF-8";
:root {
  --ink: #1d1d1f;
  --muted: #646469;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --line: #d2d2d7;
  --wash: #f5f5f7;
  --tint: #eaf3ff;
  --white: #fff;
  --radius: 16px;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  font-size: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--wash);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button svg,
a svg {
  flex-shrink: 0;
}
button {
  color: inherit;
}
a:hover {
  color: var(--accent);
}
p {
  line-height: 1.9;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
}
h1 {
  line-height: 1.3;
}
h2 {
  font-size: 1.35294rem;
  line-height: 1.4;
}
h3 {
  font-size: 1rem;
  line-height: 1.5;
}
small {
  font-size: 0.88235rem;
  line-height: 1.7;
}
svg {
  vertical-align: middle;
}
input,
textarea,
select {
  min-width: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #0071e3;
  outline-offset: 4px;
}
button svg {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 100;
  background: var(--accent);
  color: white;
  padding: 14px;
  left: 10px;
  top: 10px;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.warning-text {
  color: #795213;
}
.prose {
  line-height: 1.95;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.prose a,
.facts a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose h2 {
  margin-top: 30px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose li {
  margin-bottom: 12px;
}
.eyebrow {
  font-size: 0.88235rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  line-height: 1.6;
}
.eyebrow span {
  padding: 0 3px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  padding: 12px 19px;
  background: var(--accent);
  color: white;
  font-weight: 550;
  white-space: nowrap;
  min-height: 44px;
  transition: background 0.18s;
}
.button:hover {
  background: var(--accent-hover);
  color: white;
}
.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.button.small {
  font-size: 0.88235rem;
  padding: 9px 13px;
  min-height: 38px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88235rem;
  font-weight: 550;
}
.text-link svg {
  width: 16px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--tint);
  color: var(--accent);
}
.icon-button[aria-pressed="true"] {
  background: var(--tint);
  color: var(--accent);
}
.icon-button[aria-pressed="true"] svg {
  fill: #cce4ff;
}
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 33px 18px 25px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 33px;
}
.brand > span {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.brand small {
  display: block;
  font-size: 0.94rem;
  letter-spacing: 0.16em;
  margin-top: 4px;
  font-weight: 500;
  color: var(--muted);
}
.nav-caption {
  font-size: 0.94rem;
  color: var(--muted);
  padding: 6px 17px 12px;
  letter-spacing: 0.1em;
}
.sidebar nav {
  display: grid;
  gap: 5px;
  margin-bottom: 24px;
}
.nav-link {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 17px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 1rem;
}
.nav-link svg {
  width: 18px;
  height: 18px;
}
.nav-link.active {
  color: var(--accent);
  background: var(--wash);
  font-weight: 600;
}
.nav-link:hover {
  background: var(--wash);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 8px 0;
  font-size: 1rem;
  display: grid;
  gap: 20px;
}
.sidebar-bottom .side-submit {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  padding: 13px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--accent);
  background: var(--wash);
}
.sidebar-bottom > a:not(.side-submit) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.sidebar-bottom svg {
  width: 16px;
  height: 16px;
}
.sidebar-bottom > span {
  color: var(--muted);
  font-size: 0.88235rem;
}
.workspace {
  margin-left: 220px;
}
.topbar {
  height: 79px;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.65);
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar-nav::-webkit-scrollbar {
  display: none;
}
.top-nav-link {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88235rem;
  white-space: nowrap;
}
.top-nav-link:hover,
.top-nav-link.active {
  color: var(--accent);
  background: var(--tint);
}
.category-nav {
  padding-bottom: 18px;
}
.category-nav .nav-link {
  font-size: 1rem;
  min-height: 45px;
}
.category-nav .nav-link svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  padding: 5px;
  border-radius: 8px;
  color: var(--category-color, #0071e3);
  background: color-mix(in srgb, var(--category-color, #0071e3) 10%, transparent);
}
.category-nav a[href$="/news"] { --category-color: #0071e3; }
.category-nav a[href$="/share"] { --category-color: #16834a; }
.category-nav a[href$="/vpn"] { --category-color: #00849b; }
.category-nav a[href$="/media"] { --category-color: #b13bce; }
.category-nav a[href$="/learning"] { --category-color: #bc7010; }
.category-nav a[href$="/software"] { --category-color: #6750cf; }
.category-nav a[href$="/books"] { --category-color: #b85b36; }
.category-nav a[href$="/ios"] { --category-color: #4878b8; }
.category-nav a[href$="/blog"] { --category-color: #8d57b5; }
.category-nav a[href$="/wallpapers"] { --category-color: #168b79; }
.category-nav a[href$="/fun"] { --category-color: #c78300; }
.category-nav a[href$="/software_group"] { --category-color: #5065d5; }
.category-nav a[href$="/interest_group"] { --category-color: #cf4382; }
.category-nav a[href$="/group_management"] { --category-color: #427c89; }
.category-nav a[href$="/messaging"] { --category-color: #21844a; }
.topbar-label {
  font-size: 0.88235rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 0.88235rem;
}
.new-badge {
  font-size: 0.88235rem;
  border-radius: 4px;
  background: var(--wash);
  color: var(--muted);
  padding: 3px 5px;
  margin-left: 3px;
}
.mobile-menu {
  display: none;
}
main {
  max-width: 1380px;
  margin: auto;
  padding: 0 44px 55px;
  min-height: 65vh;
}
.hero {
  min-height: 303px;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  padding: 44px 15px 24px;
  overflow: hidden;
}
.hero-copy {
  z-index: 1;
  flex-shrink: 0;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88235rem;
  letter-spacing: 0.08em;
  margin-bottom: 17px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--wash);
}
.hero h1 {
  font-size: 2.88235rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.28;
  margin-bottom: 18px;
  position: relative;
}
.hero h1 span {
  color: var(--accent);
}
.underline {
  position: absolute;
  bottom: -4px;
  left: 190px;
  width: 190px;
  height: 10px;
  z-index: -1;
}
.hero p {
  color: var(--muted);
  font-size: 0.88235rem;
  line-height: 2.05;
  margin-bottom: 0;
}
.hero-art {
  position: relative;
  width: 430px;
  height: 270px;
  flex-shrink: 1;
  isolation: isolate;
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 0 -50px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 113, 227, 0.08),
    transparent 66%
  );
  z-index: -1;
}
.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
}
.orbit-one {
  width: 310px;
  height: 210px;
}
.orbit-two {
  width: 400px;
  height: 280px;
  opacity: 0.6;
}
.plane {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) rotate(-12deg);
  filter: drop-shadow(0 17px 17px #0071e322);
}
.plane svg {
  width: 92px;
  height: 92px;
}
.art-tag {
  position: absolute;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.88235rem;
  box-shadow: 0 8px 24px #00000008;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.art-tag svg {
  width: 15px;
  height: 15px;
}
.art-tag-one {
  left: 10%;
  top: 12%;
  transform: rotate(-5deg);
}
.art-tag-two {
  right: 0;
  top: 38%;
  transform: rotate(7deg);
}
.art-tag-three {
  left: 16%;
  bottom: 9%;
  transform: rotate(-4deg);
}
.spark {
  position: absolute;
  color: var(--muted);
  font-size: 1.88235rem;
}
.spark-one {
  left: 15%;
  top: 46%;
}
.spark-two {
  right: 13%;
  top: 3%;
  font-size: 1.47059rem;
}
.search-section {
  padding: 4px 15px 0;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px 9px 21px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 5px 15px #00000006;
  min-height: 65px;
}
.search-form > svg {
  color: var(--muted);
  flex-shrink: 0;
}
.search-form input {
  border: 0;
  outline: none !important;
  background: none;
  flex: 1;
  color: var(--ink);
  height: 35px;
  font-size: 0.88235rem;
}
.search-form input::placeholder {
  color: var(--muted);
}
.search-form:focus-within {
  border-color: var(--line);
  box-shadow: 0 0 0 3px #cce4ff;
}
.search-form kbd {
  border: 1px solid var(--line);
  border-radius: 5px;
  font: inherit;
  color: var(--muted);
  padding: 4px 6px;
  white-space: nowrap;
}
.search-form button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 13px 21px;
  font-size: 0.88235rem;
  display: flex;
  align-items: center;
  gap: 20px;
}
.search-form button svg {
  width: 17px;
  height: 17px;
}
.search-form.compact {
  margin: 24px 0;
}
.search-hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.88235rem;
  color: var(--muted);
  padding: 14px 1px;
}
.search-hints > span {
  color: var(--muted);
}
.search-hints a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.intro-strip {
  display: flex;
  align-items: center;
  gap: 29px;
  padding: 22px 15px 23px;
  border-bottom: 1px solid var(--line);
  margin-top: 0;
}
.intro-strip > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.intro-strip strong {
  font-size: 1.17647rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.intro-strip span {
  color: var(--muted);
  font-size: 0.88235rem;
}
.intro-strip > a {
  margin-left: auto;
  font-size: 0.88235rem;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
}
.intro-strip > a svg {
  width: 13px;
  height: 13px;
}
.section {
  margin-top: 35px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > .text-link {
  color: var(--muted);
  font-size: 0.88235rem;
}
.section-heading .eyebrow {
  font-size: 0.88235rem;
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
}
.section-heading h2 {
  font-size: 1.23529rem;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.collection-tile {
  display: flex;
  position: relative;
  overflow: hidden;
  min-height: 151px;
  padding: 22px 21px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--wash);
}
.collection-tile > div {
  position: relative;
  z-index: 1;
}
.collection-tile .eyebrow {
  font-size: 0.88235rem;
  color: var(--muted);
}
.collection-tile h3 {
  font-size: 0.88235rem;
  margin: 10px 0 6px;
  letter-spacing: -0.015em;
}
.collection-tile p {
  font-size: 0.88235rem;
  color: var(--muted);
  margin: 0 0 17px;
  line-height: 1.6;
  max-width: 190px;
}
.collection-tile .text-link {
  font-size: 0.88235rem;
  font-weight: 400;
  color: var(--muted);
  gap: 6px;
}
.collection-tile .text-link svg {
  width: 13px;
  height: 13px;
}
.collection-1 {
  background: var(--wash);
  border-color: var(--line);
}
.collection-1 .eyebrow,
.collection-1 p {
  color: var(--muted);
}
.collection-2 {
  background: var(--wash);
  border-color: var(--line);
}
.collection-2 .eyebrow,
.collection-2 p {
  color: var(--muted);
}
.collection-symbol {
  position: absolute;
  font-size: 4.70588rem;
  right: 0;
  bottom: -5px;
  opacity: 0.1;
  transform: rotate(-15deg);
  font-family: inherit;
  line-height: 1;
}
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.filter-tabs > a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88235rem;
  padding: 9px 16px;
  border-radius: 7px;
  white-space: nowrap;
  color: var(--muted);
}
.filter-tabs > a svg {
  width: 14px;
  height: 14px;
}
.filter-tabs > a.selected {
  background: var(--accent);
  color: white;
}
.filter-tabs > span {
  margin-left: auto;
  font-size: 0.88235rem;
  color: var(--muted);
  white-space: nowrap;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.resource-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 19px 18px 0;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.resource-card:hover {
  border-color: var(--line);
  box-shadow: 0 7px 23px #0000000a;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  padding-right: 18px;
  min-width: 0;
}
.card-top > div {
  min-width: 0;
}
.card-top h3 {
  font-size: 0.88235rem;
  letter-spacing: -0.02em;
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.8;
}
.card-top .eyebrow {
  font-size: 0.88235rem;
  letter-spacing: 0;
  color: var(--muted);
}
.username {
  font-size: 0.88235rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.card-top .username {
  font-size: 0.88235rem;
}
.card-top .save-button {
  position: absolute;
  right: -10px;
  top: -8px;
  width: 30px;
  height: 30px;
}
.card-top .save-button svg {
  width: 15px;
  height: 15px;
}
.avatar {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  background: var(--wash);
  color: var(--muted);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.05em;
  font-weight: 600;
  font-size: 0.88235rem;
}
.avatar-tech {
  color: var(--muted);
  background: var(--wash);
}
.avatar-ai {
  background: var(--wash);
  color: var(--muted);
}
.avatar-dev {
  background: var(--wash);
  color: var(--muted);
}
.avatar-learning {
  background: var(--wash);
  color: var(--muted);
}
.avatar-design {
  background: var(--wash);
  color: var(--muted);
}
.avatar-news {
  background: var(--wash);
  color: var(--muted);
}
.avatar-tools {
  background: var(--wash);
  color: var(--muted);
}
.avatar-telegram {
  background: var(--wash);
  color: var(--muted);
}
.avatar.large {
  width: 76px;
  height: 76px;
  border-radius: 21px;
  font-size: 1.41176rem;
}
.avatar.large svg {
  width: 32px;
  height: 32px;
}
.avatar-image {
  overflow: hidden;
  background: var(--tint);
}
.avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-description {
  color: var(--muted);
  font-size: 0.88235rem;
  line-height: 1.9;
  margin: 15px 0 8px;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-audience {
  font-size: 0.88235rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-audience > span {
  display: inline-block;
  font-size: 0.88235rem;
  background: var(--wash);
  border-radius: 3px;
  color: var(--muted);
  padding: 0 4px;
  margin-right: 3px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.88235rem;
  margin-top: auto;
  padding-bottom: 15px;
  gap: 5px;
}
.card-meta > span:first-child {
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-meta svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
  margin-right: 1px;
}
.card-meta strong {
  font-size: 0.88235rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card-footer {
  border-top: 1px solid var(--line);
  padding: 9px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}
.card-footer > span {
  font-size: 0.88235rem;
}
.compare-button {
  font-size: 0.88235rem;
  display: flex;
  gap: 3px;
  align-items: center;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 5px 0 5px 7px;
  white-space: nowrap;
}
.compare-button svg {
  width: 11px;
  height: 11px;
}
.compare-button[aria-pressed="true"] {
  color: var(--accent);
}
.house-ad {
  background: var(--wash);
  border-radius: 12px;
  position: relative;
  padding: 28px 35px;
  overflow: hidden;
  margin-top: 30px;
  display: flex;
  min-height: 160px;
  border: 1px solid var(--line);
}
.house-ad > div {
  position: relative;
  z-index: 1;
}
.house-ad .eyebrow {
  font-size: 0.88235rem;
  color: var(--muted);
}
.house-ad h3 {
  font-size: 1.23529rem;
  margin: 8px 0;
  letter-spacing: -0.035em;
  display: inline-block;
}
.house-ad h3 br {
  display: none;
}
.house-ad p {
  font-size: 0.88235rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.house-ad a {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.88235rem;
  color: var(--muted);
}
.house-ad a svg {
  width: 15px;
  height: 15px;
}
.house-art {
  position: absolute;
  font-size: 11.17647rem;
  color: var(--muted);
  right: 50px;
  top: -15px;
  font-weight: 300;
  line-height: 1;
  transform: rotate(-10deg);
  font-family: inherit;
}
.paid-ad {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 30px;
}
.ad-label {
  display: inline-block;
  font-size: 0.88235rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 7px;
  margin-bottom: 16px;
}
.paid-ad p {
  color: var(--muted);
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.topic-grid a {
  border: 1px solid var(--line);
  padding: 16px 14px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88235rem;
}
.topic-grid a > span {
  font-size: 1.17647rem;
  line-height: 20px;
  color: var(--muted);
}
.topic-grid a > svg {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--muted);
}
.topic-grid a > div {
  display: grid;
  gap: 3px;
}
.topic-grid a strong {
  font-weight: 600;
}
.topic-grid a small {
  color: var(--muted);
  font-size: 0.75rem;
}
.submission-banner {
  margin-top: 42px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 27px;
}
.submission-banner h2 {
  font-size: 0.94118rem;
  line-height: 1.8;
  margin-bottom: 7px;
}
.submission-banner p {
  font-size: 0.88235rem;
  color: var(--muted);
  margin: 0;
}
.submission-banner .button {
  font-size: 0.88235rem;
  padding: 10px 15px;
}
footer {
  padding: 35px 44px 27px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 18px 30px;
  max-width: 1380px;
  margin: auto;
}
footer > div p {
  font-size: 0.88235rem;
  margin: 7px 0 0;
}
.footer-brand {
  font-size: 0.88235rem;
  font-weight: 600;
  color: var(--muted);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
  font-size: 0.88235rem;
}
footer > small {
  font-size: 0.88235rem;
  flex: 1 0 100%;
  color: var(--muted);
}
.page-heading {
  padding-top: 40px;
  margin-bottom: 25px;
}
.page-heading h1 {
  font-size: 2.05882rem;
  margin: 9px 0 13px;
}
.page-heading > p {
  font-size: 0.88235rem;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 0;
}
.page-heading .eyebrow {
  font-size: 0.88235rem;
  letter-spacing: 0.15em;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  background: var(--wash);
  border-radius: 11px;
  padding: 17px;
  margin: 25px 0;
}
.filters label {
  font-size: 0.88235rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 120px;
}
.filters select,
.filters input {
  height: 37px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.88235rem;
  max-width: 220px;
}
.filters > .muted {
  font-size: 0.88235rem;
  padding-bottom: 11px;
}
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 27px 0 20px;
}
.results-heading h2 {
  font-size: 1.05882rem;
  margin: 0;
}
.results-heading h2 span {
  display: inline-block;
  background: var(--wash);
  color: var(--muted);
  font-size: 0.88235rem;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 5px;
  letter-spacing: 0;
}
.results-heading > .muted {
  font-size: 0.88235rem;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
  margin: 30px 0;
  font-size: 0.88235rem;
}
.pagination a {
  background: white;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
}
.pagination > span {
  color: var(--muted);
}
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 27px;
  margin: 22px 0;
}
.panel h2 {
  font-size: 1.23529rem;
  margin-bottom: 18px;
}
.panel h3 {
  font-size: 0.94118rem;
}
.panel > p:last-child {
  margin-bottom: 0;
}
.panel p {
  color: var(--muted);
  font-size: 0.88235rem;
}
.narrow {
  max-width: 670px;
}
.empty-state {
  border: 1px dashed var(--line);
  background: var(--wash);
  padding: 55px 20px;
  text-align: center;
  border-radius: 16px;
  margin: 35px 0;
}
.empty-state > span {
  background: var(--tint);
  color: var(--muted);
  display: inline-flex;
  padding: 16px;
  border-radius: 50%;
  margin-bottom: 18px;
}
.empty-state h2 {
  font-size: 1.23529rem;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 0.88235rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 23px;
}
.empty-state .button {
  font-size: 0.88235rem;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 29px;
  color: var(--muted);
  font-size: 0.88235rem;
  line-height: 1.8;
}
.breadcrumbs > span:last-child {
  color: var(--muted);
}
.detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 34px 0 18px;
}
.detail-identity {
  display: flex;
  gap: 21px;
  align-items: center;
  min-width: 0;
}
.detail-identity h1 {
  font-size: 1.76471rem;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.detail-identity .username {
  font-size: 0.88235rem;
}
.detail-identity .eyebrow {
  font-size: 0.88235rem;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-actions .button {
  font-size: 0.88235rem;
  padding: 10px 14px;
}
.detail-actions svg {
  width: 16px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 25px;
  align-items: start;
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 2px 0 24px;
  margin-bottom: 25px;
}
.detail-stats > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.detail-stats span {
  color: var(--muted);
  font-size: 0.88235rem;
}
.detail-stats strong {
  font-size: 1.76471rem;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.detail-stats strong.small-value {
  font-size: 1rem;
  line-height: 36px;
  color: var(--muted);
}
.detail-stats small {
  font-size: 0.88235rem;
  color: var(--muted);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}
.tag-list a,
.pill {
  display: inline-block;
  font-size: 0.88235rem;
  border-radius: 5px;
  padding: 5px 8px;
  background: var(--wash);
  color: var(--muted);
}
.editorial-panel {
  background: var(--wash);
  border-color: var(--line);
}
.editorial-panel > .eyebrow {
  font-size: 0.88235rem;
}
.editorial-panel h2 {
  margin-top: 8px;
}
.editorial-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 25px 0 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.editorial-pair h3 {
  font-size: 0.88235rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.editorial-pair p {
  font-size: 0.88235rem;
  line-height: 1.9;
  margin-bottom: 0;
}
.editorial-panel small {
  font-size: 0.88235rem;
}
.detail-aside {
  position: sticky;
  top: 16px;
}
.detail-aside .panel {
  padding: 22px;
}
.detail-aside .panel h3 {
  margin-top: 12px;
  font-size: 0.94118rem;
}
.detail-aside .panel p {
  font-size: 0.88235rem;
}
.detail-aside .eyebrow {
  font-size: 0.88235rem;
}
.detail-aside .house-ad {
  padding: 25px;
  margin-top: 22px;
}
.detail-aside .house-ad h3 {
  font-size: 1.29412rem;
  line-height: 1.6;
}
.detail-aside .house-ad h3 br {
  display: block;
}
.detail-aside .house-art {
  font-size: 7.64706rem;
  right: 0;
  top: 105px;
  opacity: 0.6;
}
.detail-aside .house-ad p {
  max-width: 170px;
}
.help-panel .text-link {
  font-size: 0.88235rem;
}
.facts {
  margin: 0;
}
.facts > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.8;
  font-size: 0.88235rem;
}
.facts > div:last-child {
  border-bottom: 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.facts small {
  display: block;
  font-size: 0.88235rem;
  color: var(--muted);
  margin-top: 4px;
}
.footnote {
  font-size: 0.88235rem !important;
  line-height: 1.85;
  color: var(--muted) !important;
  margin: 18px 0 0;
}
.chart-empty {
  background: var(--wash);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  gap: 10px;
  padding: 20px;
  color: var(--muted);
}
.chart-empty strong {
  font-size: 0.88235rem;
  font-weight: 500;
}
.chart-empty p {
  font-size: 0.88235rem;
  margin: 0;
}
.growth-summary {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.88235rem;
}
.growth-summary strong {
  font-size: 1.47059rem;
  color: var(--accent);
}
.growth-chart {
  width: 100%;
  height: auto;
  margin: 20px 0;
}
.growth-chart text {
  font-size: 0.88235rem;
  fill: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88235rem;
  line-height: 1.8;
  text-align: left;
}
th {
  color: var(--muted);
  font-weight: 550;
}
td,
th {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td {
  color: var(--muted);
  overflow-wrap: anywhere;
}
table small {
  display: block;
  font-size: 0.88235rem;
  margin-top: 5px;
  color: var(--muted);
}
td a {
  color: var(--accent);
}
.compare-table {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.compare-table th:first-child {
  min-width: 150px;
  background: var(--wash);
}
.compare-table td,
.compare-table th:not(:first-child) {
  min-width: 220px;
  max-width: 320px;
}
.compare-table th > .avatar {
  display: flex;
  margin-bottom: 15px;
}
.compare-table th > .username {
  display: block;
  margin-top: 8px;
}
.compare-tray {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 110px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  box-shadow: 0 9px 50px #00000020;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 17px;
  z-index: 40;
  font-size: 0.88235rem;
  max-width: 90vw;
}
.compare-tray > span {
  white-space: nowrap;
}
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wash);
  color: white;
  padding: 12px 22px;
  border-radius: 9px;
  z-index: 60;
  box-shadow: 0 8px 30px #00000020;
  font-size: 0.88235rem;
  text-align: center;
  max-width: 85vw;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.form-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88235rem;
  color: var(--muted);
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  color: var(--muted);
  padding: 11px 12px;
  font-size: 0.88235rem;
  line-height: 1.7;
  max-width: 100%;
}
.field input::placeholder {
  color: var(--muted);
  font-size: 0.88235rem;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.form-panel .button {
  align-self: start;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88235rem;
  line-height: 1.8;
  flex-wrap: wrap;
}
.check-field input {
  margin-top: 4px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.check-field a {
  color: var(--accent);
  text-decoration: underline;
}
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.number-list {
  list-style: decimal;
  padding-left: 20px;
  color: var(--muted);
}
.number-list li {
  padding-left: 8px;
  margin-bottom: 25px;
}
.number-list strong {
  font-size: 0.88235rem;
}
.number-list p {
  font-size: 0.88235rem;
  margin: 6px 0;
}
.notice {
  padding: 15px 20px;
  border-radius: 9px;
  background: #f5ead2;
  color: #765817;
  font-size: 0.88235rem;
  margin: 20px 0;
}
.notice.success {
  background: #eaf3e4;
  color: #547d3a;
}
.ad-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ad-packages .panel {
  padding: 25px;
}
.package-number {
  font-size: 1.76471rem;
  font-family: inherit;
  color: var(--muted);
  display: block;
  margin-bottom: 20px;
}
.ad-packages h2 {
  font-size: 1.11765rem;
}
.ad-packages p {
  font-size: 0.88235rem;
}
.article {
  max-width: 850px;
  margin-top: 35px;
}
.article h2 {
  font-size: 1.17647rem;
}
.article p {
  font-size: 0.88235rem;
}
.admin-tabs {
  flex-wrap: wrap;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.admin-stats .panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.admin-stats span {
  font-size: 0.88235rem;
  color: var(--muted);
}
.admin-stats strong {
  font-size: 2.05882rem;
  color: var(--muted);
  font-weight: 550;
}
.admin-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: end;
}
.admin-inline .field {
  flex: 1 1 130px;
}
.admin-inline .button {
  min-height: 46px;
}
.admin-inline input,
.admin-inline select {
  font-size: 0.88235rem;
}
.admin-inline .field {
  font-size: 0.88235rem;
}
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  font-size: 0.88235rem;
  color: var(--muted);
}
details > .field,
details > .check-field {
  margin-top: 17px;
}
summary {
  cursor: pointer;
  line-height: 1.8;
  color: var(--muted);
}
details > p {
  font-size: 0.88235rem;
}
@media (min-width: 1600px) {
  main {
    padding: 0 60px 55px;
  }
  .topbar {
    padding: 0 60px;
  }
  .hero {
    min-height: 355px;
  }
  .hero h1 {
    font-size: 3.35294rem;
  }
  .hero-art {
    width: 480px;
    height: 300px;
  }
  .resource-card {
    padding: 23px 22px 0;
  }
  .card-description {
    font-size: 0.88235rem;
    min-height: 44px;
  }
  .card-top h3 {
    font-size: 0.88235rem;
  }
  .card-top .eyebrow {
    font-size: 0.88235rem;
  }
  .card-meta {
    font-size: 0.88235rem;
  }
  .card-meta strong {
    font-size: 0.88235rem;
  }
  .card-footer > span {
    font-size: 0.88235rem;
  }
  .collection-tile {
    min-height: 172px;
    padding: 25px;
  }
  .collection-tile h3 {
    font-size: 1rem;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 195px;
    padding-inline: 12px;
  }
  .brand > span {
    font-size: 1.05882rem;
  }
  .brand small {
    font-size: 0.88235rem;
  }
  .workspace {
    margin-left: 195px;
  }
  main {
    padding-inline: 28px;
  }
  .topbar {
    padding-inline: 28px;
  }
  .hero {
    padding-inline: 0;
  }
  .hero h1 {
    font-size: 2.58824rem;
  }
  .hero-art {
    width: 330px;
  }
  .art-tag {
    padding: 10px 11px;
    font-size: 0.88235rem;
  }
  .orbit-two {
    width: 330px;
    height: 250px;
  }
  .orbit-one {
    width: 250px;
    height: 175px;
  }
  .plane svg {
    width: 77px;
    height: 77px;
  }
  .intro-strip {
    padding-inline: 0;
    gap: 18px;
  }
  .search-section {
    padding-inline: 0;
  }
  .collection-tile {
    padding: 18px 15px;
  }
  .collection-tile h3 {
    font-size: 0.88235rem;
  }
  .resource-card {
    padding: 16px 13px 0;
  }
  .card-top {
    gap: 8px;
  }
  .card-top h3 {
    font-size: 0.88235rem;
  }
  .avatar {
    width: 36px;
    height: 36px;
    font-size: 0.88235rem;
    border-radius: 10px;
  }
  .card-top .eyebrow {
    font-size: 0.88235rem;
  }
  .card-footer > span {
    font-size: 0.88235rem;
  }
  .card-meta > span:first-child {
    gap: 2px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 20px;
  }
  .detail-stats {
    gap: 8px;
  }
  .detail-stats strong {
    font-size: 1.47059rem;
  }
  .detail-stats strong.small-value {
    font-size: 0.88235rem;
  }
  .form-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 20px;
  }
  .compare-tray {
    left: calc(50% + 97px);
  }
}
@media (max-width: 1000px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-grid {
    gap: 12px;
  }
  .collection-tile h3 {
    max-width: 130px;
    line-height: 1.7;
  }
  .collection-tile p {
    max-width: 130px;
    min-height: 32px;
  }
  .collection-symbol {
    font-size: 2.94118rem;
  }
  .hero-art {
    opacity: 0.8;
    width: 260px;
  }
  .hero h1 {
    font-size: 2.35294rem;
  }
  .hero p {
    font-size: 0.88235rem;
  }
  .hero-kicker {
    font-size: 0.88235rem;
  }
  .hero-copy {
    max-width: 65%;
  }
  .hero-art .art-tag-three {
    left: 0;
    font-size: 0.88235rem;
  }
  .hero-art .art-tag-two {
    right: -12px;
  }
  .intro-strip {
    gap: 15px;
  }
  .intro-strip > div {
    gap: 5px;
  }
  .intro-strip strong {
    font-size: 1.05882rem;
  }
  .intro-strip > a {
    font-size: 0.88235rem;
  }
  .intro-strip > a svg:last-child {
    display: none;
  }
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .detail-aside .help-panel {
    grid-column: 1/-1;
    margin-top: 0;
  }
  .detail-aside .house-ad {
    margin-bottom: 22px;
  }
  .form-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-layout > aside {
    margin-top: 0;
  }
  .form-layout > aside .number-list {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
  }
  .form-layout > aside .number-list > li {
    flex: 1 1 140px;
  }
  .ad-packages {
    gap: 12px;
  }
  .ad-packages .panel {
    padding: 19px;
  }
  .ad-packages h2 {
    font-size: 0.94118rem;
  }
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar-label {
    font-size: 0.88235rem;
  }
  .topbar-actions {
    gap: 15px;
  }
  .house-ad h3 br {
    display: block;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 225px;
    box-shadow: 15px 0 35px #0000001a;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
    position: relative;
    z-index: 31;
    background: #fff;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar-label {
    display: none;
  }
  .topbar-actions {
    gap: 18px;
  }
  .topbar-actions > a:first-child {
    font-size: 0.88235rem;
  }
  .topbar-actions .button {
    font-size: 0.88235rem;
    min-height: 35px;
    padding: 8px 10px;
  }
  main {
    padding: 0 22px 35px;
  }
  .hero {
    min-height: 292px;
    padding-top: 30px;
  }
  .hero h1 {
    font-size: 2.58824rem;
    margin-bottom: 18px;
  }
  .hero-copy {
    max-width: 72%;
  }
  .hero-art {
    width: 215px;
    height: 220px;
    position: absolute;
    right: -54px;
    top: 28px;
    opacity: 0.65;
  }
  .hero-art .orbit-one {
    width: 190px;
    height: 140px;
  }
  .hero-art .orbit-two {
    width: 270px;
    height: 205px;
  }
  .hero-art .art-tag-one {
    left: 0;
    top: 5%;
    font-size: 0.88235rem;
  }
  .hero-art .art-tag-two {
    right: 25px;
    top: 70%;
    font-size: 0.88235rem;
  }
  .hero-art .art-tag-three {
    display: none;
  }
  .hero-art .plane {
    top: 45%;
    left: 50%;
  }
  .hero-art .plane svg {
    width: 65px;
    height: 65px;
  }
  .hero-art .spark-one {
    font-size: 1.17647rem;
    left: 16%;
    top: 62%;
  }
  .hero-art .spark-two {
    display: none;
  }
  .hero-kicker {
    font-size: 0.88235rem;
    letter-spacing: 0.02em;
  }
  .hero p {
    font-size: 0.88235rem;
    max-width: 320px;
  }
  .underline {
    left: 160px;
    width: 168px;
  }
  .search-form {
    padding: 8px 9px 8px 15px;
    gap: 10px;
    min-height: 60px;
  }
  .search-form input {
    font-size: 0.88235rem;
    min-width: 0;
  }
  .search-form kbd {
    display: none;
  }
  .search-form button {
    padding: 12px;
    font-size: 0.88235rem;
    gap: 8px;
  }
  .search-form button svg {
    width: 14px;
  }
  .search-form > svg {
    width: 17px;
  }
  .search-hints {
    gap: 14px;
    font-size: 0.88235rem;
    line-height: 1.8;
    padding-top: 12px;
  }
  .search-hints > span {
    display: none;
  }
  .intro-strip {
    padding: 18px 0;
    gap: 20px;
    justify-content: space-between;
  }
  .intro-strip > div {
    gap: 5px;
  }
  .intro-strip strong {
    font-size: 1.17647rem;
  }
  .intro-strip span {
    font-size: 0.88235rem;
  }
  .intro-strip > a {
    display: none;
  }
  .section {
    margin-top: 29px;
  }
  .section-heading h2 {
    font-size: 1.17647rem;
  }
  .section-heading > .text-link {
    font-size: 0.88235rem;
  }
  .collection-grid {
    grid-template-columns: 1fr;
  }
  .collection-tile {
    min-height: 118px;
    padding: 19px 22px;
  }
  .collection-tile h3 {
    font-size: 1rem;
    max-width: none;
    margin-top: 8px;
  }
  .collection-tile p {
    max-width: none;
    min-height: 0;
    margin-bottom: 0;
    font-size: 0.88235rem;
  }
  .collection-tile .text-link {
    position: absolute;
    right: 0;
    top: 10px;
    white-space: nowrap;
    display: none;
  }
  .collection-symbol {
    font-size: 4.70588rem;
    right: 14px;
    bottom: -4px;
    opacity: 0.17;
  }
  .filter-tabs {
    gap: 5px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .filter-tabs > a {
    font-size: 0.88235rem;
    padding: 8px 12px;
  }
  .filter-tabs > span {
    display: none;
  }
  .resource-grid {
    gap: 13px;
  }
  .resource-card {
    padding: 15px 13px 0;
  }
  .card-top h3 {
    font-size: 0.88235rem;
  }
  .card-top .eyebrow {
    font-size: 0.88235rem;
  }
  .card-top .username {
    font-size: 0.88235rem;
  }
  .card-top {
    gap: 9px;
  }
  .card-description {
    font-size: 0.88235rem;
    margin-top: 14px;
    min-height: 38px;
  }
  .card-audience {
    font-size: 0.88235rem;
  }
  .card-meta strong {
    font-size: 0.88235rem;
  }
  .card-meta > span {
    font-size: 0.88235rem;
  }
  .card-meta {
    gap: 3px;
  }
  .card-meta svg {
    width: 11px;
  }
  .card-footer > span {
    font-size: 0.88235rem;
  }
  .card-footer .compare-button {
    font-size: 0.88235rem;
  }
  .card-footer .compare-button svg {
    width: 10px;
  }
  .house-ad {
    padding: 25px;
  }
  .house-art {
    font-size: 8.82353rem;
    right: 5px;
    top: 20px;
  }
  .house-ad h3 {
    font-size: 1.29412rem;
  }
  .topic-grid a {
    font-size: 0.88235rem;
    padding: 15px 12px;
  }
  .submission-banner {
    display: block;
    padding: 24px;
    margin-top: 30px;
  }
  .submission-banner h2 {
    font-size: 0.94118rem;
  }
  .submission-banner p {
    font-size: 0.88235rem;
    margin-bottom: 15px;
  }
  .submission-banner .button {
    font-size: 0.88235rem;
  }
  .page-heading {
    padding-top: 30px;
  }
  .page-heading h1 {
    font-size: 1.64706rem;
  }
  .page-heading > p {
    font-size: 0.88235rem;
  }
  .filters {
    gap: 12px;
    padding: 16px;
  }
  .filters > label {
    min-width: 0;
    flex: 1 1 calc(50% - 12px);
  }
  .filters select,
  .filters input {
    max-width: none;
  }
  .filters > .field input,
  .filters > .field select {
    width: 100%;
  }
  .results-heading {
    display: block;
  }
  .results-heading > .muted {
    display: block;
    margin-top: 10px;
    font-size: 0.88235rem;
  }
  .results-heading h2 {
    font-size: 1rem;
  }
  .panel {
    padding: 22px;
  }
  .panel h2 {
    font-size: 1.11765rem;
  }
  .detail-header {
    padding-top: 25px;
    gap: 20px;
  }
  .detail-identity {
    gap: 14px;
  }
  .detail-identity h1 {
    font-size: 1.52941rem;
  }
  .detail-identity .avatar.large {
    width: 62px;
    height: 62px;
    font-size: 1.35294rem;
  }
  .detail-actions {
    gap: 8px;
  }
  .detail-actions .button {
    font-size: 0.88235rem;
    padding: 10px 12px;
  }
  .detail-actions svg {
    width: 15px;
  }
  .detail-layout {
    gap: 0;
  }
  .detail-stats strong {
    font-size: 1.41176rem;
  }
  .detail-stats strong.small-value {
    font-size: 0.88235rem;
  }
  .detail-stats small {
    font-size: 0.88235rem;
  }
  .detail-stats span {
    font-size: 0.88235rem;
  }
  .detail-stats {
    gap: 8px;
  }
  .editorial-pair {
    gap: 20px;
  }
  .facts > div {
    grid-template-columns: 105px 1fr;
    gap: 15px;
    font-size: 0.88235rem;
  }
  .facts small {
    font-size: 0.88235rem;
  }
  .detail-aside {
    display: block;
  }
  .detail-aside .house-ad {
    min-height: 180px;
  }
  .detail-aside .house-art {
    right: 30px;
    top: 40px;
    font-size: 8.82353rem;
  }
  .detail-aside .panel {
    margin-top: 22px;
  }
  .compare-tray {
    left: 50%;
    gap: 10px;
    padding: 10px 12px;
    bottom: 17px;
    font-size: 0.88235rem;
  }
  .compare-tray .button {
    font-size: 0.88235rem;
  }
  .compare-tray > button {
    width: 28px;
    height: 28px;
  }
  .toast {
    font-size: 0.88235rem;
  }
  .ad-packages {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ad-packages .panel {
    margin: 10px 0;
    position: relative;
    padding: 23px;
  }
  .package-number {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2.35294rem;
  }
  .ad-packages h2 {
    font-size: 1.11765rem;
    max-width: 80%;
  }
  .ad-packages p {
    max-width: 80%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .field {
    font-size: 0.88235rem;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 0.94118rem;
  }
  .form-layout {
    gap: 0;
  }
  .form-layout > aside .number-list {
    display: block;
  }
  .admin-stats {
    gap: 13px;
  }
  .admin-stats .panel {
    margin: 10px 0;
  }
  .admin-stats strong {
    font-size: 1.76471rem;
  }
  .admin-inline {
    align-items: stretch;
  }
  .admin-inline .button {
    margin-top: 8px;
  }
  .admin-tabs {
    gap: 5px;
  }
  .admin-tabs > a {
    font-size: 0.88235rem;
    padding: 8px 10px;
  }
  footer {
    padding: 26px 22px;
    gap: 20px;
  }
  footer nav {
    margin-left: 0;
    gap: 16px;
    font-size: 0.88235rem;
    flex: 1 0 100%;
  }
  .house-ad p {
    max-width: 75%;
  }
}
@media (max-width: 440px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .resource-card {
    padding: 19px 19px 0;
  }
  .card-top h3 {
    font-size: 0.88235rem;
  }
  .card-top .eyebrow {
    font-size: 0.88235rem;
  }
  .card-top .username {
    font-size: 0.88235rem;
  }
  .avatar {
    width: 43px;
    height: 43px;
    font-size: 0.94118rem;
  }
  .card-top {
    gap: 12px;
  }
  .card-description {
    font-size: 0.88235rem;
    min-height: 0;
    margin: 17px 0 11px;
  }
  .card-audience {
    font-size: 0.88235rem;
    margin-bottom: 17px;
  }
  .card-meta strong {
    font-size: 0.88235rem;
  }
  .card-meta > span {
    font-size: 0.88235rem;
  }
  .card-meta svg {
    width: 14px;
  }
  .card-meta {
    padding-bottom: 16px;
  }
  .card-meta > span:first-child {
    gap: 5px;
  }
  .card-footer {
    padding: 10px 0;
  }
  .card-footer > span {
    font-size: 0.88235rem;
  }
  .card-footer .compare-button {
    font-size: 0.88235rem;
  }
  .card-footer .compare-button svg {
    width: 12px;
  }
  .hero h1 {
    font-size: 2.35294rem;
  }
  .hero-art {
    right: -75px;
    opacity: 0.4;
  }
  .hero {
    min-height: 276px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero p {
    font-size: 0.88235rem;
  }
  .hero-kicker {
    font-size: 0.88235rem;
  }
  .underline {
    left: 150px;
    width: 150px;
  }
  .hero-art .art-tag-one {
    display: none;
  }
  .search-form input {
    font-size: 0.88235rem;
  }
  .search-form button svg {
    display: none;
  }
  .search-hints {
    gap: 12px;
  }
  .intro-strip {
    gap: 11px;
  }
  .intro-strip strong {
    font-size: 1.05882rem;
  }
  .intro-strip span {
    font-size: 0.88235rem;
  }
  .intro-strip > div {
    gap: 3px;
  }
  .detail-stats {
    grid-template-columns: 1fr 1fr;
  }
  .detail-stats > div:last-child {
    grid-column: 1/-1;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    margin-top: 8px;
  }
  .detail-stats strong.small-value {
    line-height: 1.6;
  }
  .editorial-pair {
    grid-template-columns: 1fr;
  }
  .detail-identity h1 {
    font-size: 1.35294rem;
  }
  .detail-actions .button:first-child {
    width: 100%;
  }
  .topbar-actions {
    gap: 12px;
  }
  .compare-tray {
    width: calc(100% - 28px);
    justify-content: space-between;
  }
  .compare-tray .button {
    font-size: 0.88235rem;
    padding: 8px 10px;
  }
  .collection-tile h3 {
    font-size: 0.94118rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* 首页：让搜索与热门资源成为第一阅读路径。 */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  position: relative;
}
.topbar-nav { justify-self: center; width: max-content; overflow: visible; }
.topbar-actions {
  justify-self: end;
}
.discovery-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 28px 18px;
  margin-top: 24px;
  border: 1px solid #e1e7ef;
  border-radius: 18px;
  background: linear-gradient(125deg, #f8fbff 0%, #fff 48%, #f3f8ff 100%);
}
.discovery-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -100px;
  top: -155px;
  border-radius: 50%;
  background: radial-gradient(circle, #dbeaff 0%, #edf5ff 42%, transparent 70%);
  animation: discovery-glow 8s ease-in-out infinite;
  pointer-events: none;
}
.discovery-hero > div:first-child,
.hero-search,
.discovery-hero .intro-strip {
  position: relative;
  z-index: 1;
}
.discovery-hero .eyebrow {
  display: none;
  margin-bottom: 10px;
  color: var(--accent);
}
.discovery-hero h1 {
  max-width: 670px;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.045em;
}
.discovery-hero h1 span {
  color: var(--accent);
}
.discovery-hero > div:first-child > p {
  max-width: 590px;
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 0.94118rem;
  line-height: 1.8;
}
.hero-search {
  max-width: 900px;
}
.discovery-hero .search-section,
.discovery-hero .search-form {
  padding: 0;
}
.discovery-hero .intro-strip {
  margin-top: 8px;
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.popular-section {
  margin-top: 34px;
}
.popular-section-heading,
.popular-lane-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.popular-section-heading {
  margin-bottom: 18px;
}
.popular-section-heading .eyebrow {
  display: block;
  margin-bottom: 7px;
}
.popular-section-heading h2,
.popular-lane-heading h2 {
  margin: 0;
}
.popular-section-heading h2 {
  font-size: 1.55rem;
}
.popular-section-heading > a,
.popular-lane-heading > a {
  color: var(--muted);
  font-size: 0.82353rem;
  white-space: nowrap;
}
.popular-lanes { display: grid; gap: 20px; }
.popular-lane {
  position: relative;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #fbfdff);
  overflow: hidden;
}
.popular-lane::after {
  content: "";
  position: absolute;
  inset: auto -18% -90% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, #dcecff 0%, transparent 68%);
  pointer-events: none;
}
.popular-lane-heading {
  justify-content: flex-start;
  margin-bottom: 13px;
  position: relative;
  z-index: 1;
}
.popular-lane-heading h2 {
  font-size: 1.11765rem;
}
.popular-lane-heading p { margin: 0; color: var(--muted); font-size: 0.82353rem; }
.popular-lane-heading > a {
  margin-left: auto;
}
.popular-lane-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--tint);
  color: var(--accent);
}
.popular-lane-icon svg {
  width: 16px;
  height: 16px;
}
.hot-card-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hot-card {
  position: relative;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.hot-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 25%, #e3f0ff80 48%, transparent 70%); transform: translateX(-130%); }
.hot-card:hover { transform: translateY(-3px); border-color: #b8d7ff; box-shadow: 0 12px 24px #0071e316; }
.hot-card:hover::before { animation: hot-card-sheen .7s ease; }
.hot-card-main { display: flex; align-items: center; min-width: 0; gap: 9px; }
.hot-card .avatar { width: 37px; height: 37px; border-radius: 10px; }
.hot-card-main > span { display: grid; min-width: 0; gap: 1px; }
.hot-card small, .hot-card em { color: var(--muted); font-size: .70588rem; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-card strong { font-size: .82353rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-card-count { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76471rem; font-variant-numeric: tabular-nums; }
.hot-card-count svg { width: 13px; height: 13px; color: var(--accent); }
@keyframes hot-card-sheen { to { transform: translateX(130%); } }
.start-here {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 27px 30px;
  margin-top: 34px;
  border-radius: 14px;
  background: #182233;
  color: white;
}
.start-here .eyebrow { color: #9cc5ff; }
.start-here h2 { margin: 7px 0; font-size: 1.3rem; }
.start-here p { margin: 0; color: #bdc9d9; font-size: 0.88235rem; }
.start-here-actions { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 10px; }
.start-here-actions a { padding: 13px 14px; border: 1px solid #ffffff2e; border-radius: 10px; background: #ffffff0a; }
.start-here-actions a:hover { background: #ffffff16; }
.start-here-actions strong,
.start-here-actions span { display: block; }
.start-here-actions strong { font-size: 0.94118rem; }
.start-here-actions span { margin-top: 5px; color: #bdc9d9; font-size: 0.76471rem; }
.start-here-actions svg { width: 13px; vertical-align: middle; }
@keyframes discovery-glow { 50% { transform: translate(-18px, 22px) scale(1.08); } }
@media (max-width: 1100px) {
  .hot-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { display: flex; }
  .topbar-nav { flex: 1; width: auto; overflow-x: auto; }
  .discovery-hero { margin-top: 0; padding: 31px 20px 22px; border-inline: 0; border-radius: 0; }
  .discovery-hero h1 { font-size: 2rem; }
  .discovery-hero::after { right: -165px; }
  .discovery-hero .intro-strip { gap: 13px; overflow-x: auto; }
  .discovery-hero .intro-strip > a { display: none; }
  .hot-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-here { display: block; padding: 24px 20px; }
  .start-here-actions { margin-top: 18px; grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .discovery-hero::after, .hot-card:hover::before { animation: none; }
}

/* Apple system typography: 17px body, 15px supporting text, with room to read. */
body {
  -webkit-font-smoothing: antialiased;
}
p,
.prose {
  line-height: 1.75;
}
h1,
h2,
h3 {
  font-weight: 600;
}
h2,
.section-heading h2,
.panel h2,
.results-heading h2 {
  font-size: 1.64706rem;
}
h3,
.panel h3,
.collection-tile h3,
.card-top h3,
.detail-aside .panel h3 {
  font-size: 1.29412rem;
  line-height: 1.4;
}
.nav-link,
.button,
.button.small,
.topbar-actions,
.topbar-actions > a:first-child,
.topbar-actions .button,
.search-form input,
.search-form button,
.filter-tabs > a,
.card-description,
.card-audience,
.panel p,
.editorial-pair p,
.detail-aside .panel p,
.house-ad p,
.collection-tile p,
.submission-banner p,
.topic-grid a,
.facts > div,
table,
.field,
.field input,
.field select,
.field textarea,
.filters input,
.filters select,
.detail-actions .button,
.empty-state p,
.number-list p,
.ad-packages p {
  font-size: 1rem;
}
.hero p,
.page-heading > p {
  font-size: 1.11765rem;
  color: var(--muted);
}
.hero p {
  max-width: 540px;
  line-height: 1.65;
}
.hero h1 {
  font-size: clamp(2.35294rem, 4.5vw, 3.76471rem);
  line-height: 1.15;
}
.page-heading h1 {
  font-size: clamp(2rem, 4vw, 2.82353rem);
}
.detail-identity h1 {
  font-size: clamp(1.76471rem, 3vw, 2.35294rem);
}
.hero-copy {
  flex-shrink: 1;
  max-width: 64%;
}
.hero {
  min-height: 370px;
  padding-block: 56px 40px;
}
.hero p br {
  display: none;
}
.underline {
  display: none;
}
.hero-art {
  min-width: 260px;
}
.status-dot {
  background: var(--accent);
}
.sidebar {
  width: 250px;
}
.workspace {
  margin-left: 250px;
}
.brand > span {
  font-size: 1.35rem;
}
.brand small {
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}
.brand > svg {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.sidebar .brand {
  position: relative;
  width: 184px;
  height: 195px;
  min-height: 195px;
  margin: 0 auto 18px;
  padding: 0;
  overflow: hidden;
}
.brand-mark {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.nav-link {
  color: var(--ink);
  min-height: 48px;
}
.nav-link.active,
.new-badge {
  color: #0066cc;
  background: var(--tint);
}
.topbar {
  background: rgba(255, 255, 255, 0.85);
}
.button,
.search-form button {
  border-radius: 980px;
  min-height: 44px;
}
.button,
.button.small {
  padding: 11px 20px;
}
.button.secondary,
.icon-button {
  border-radius: 12px;
}
.search-form {
  min-height: 72px;
}
.search-form input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.search-hints {
  flex-wrap: wrap;
  row-gap: 12px;
}
.intro-strip {
  flex-wrap: wrap;
  gap: 24px;
  padding-block: 28px;
}
.intro-strip strong {
  font-size: 1.76471rem;
  color: var(--ink);
}
.section {
  margin-top: 48px;
}
.section-heading {
  flex-wrap: wrap;
  align-items: end;
  row-gap: 14px;
}
.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 24px;
}
.resource-card {
  border-radius: 20px;
  padding: 26px 24px 0;
}
.card-top {
  align-items: start;
  padding-right: 28px;
}
.card-top h3 {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  margin-block: 6px;
}
.card-top .save-button {
  width: 44px;
  height: 44px;
  right: -12px;
}
.card-top .save-button svg {
  width: 20px;
  height: 20px;
}
.avatar {
  width: 48px;
  height: 48px;
  color: #0066cc;
  background: var(--tint);
}
.card-description {
  display: block;
  overflow: visible;
  min-height: 0;
  line-height: 1.7;
  margin-block: 20px 12px;
  color: var(--ink);
}
.card-audience {
  white-space: normal;
  overflow: visible;
  margin-bottom: 22px;
}
.card-meta,
.card-footer {
  flex-wrap: wrap;
  gap: 10px;
}
.card-meta strong {
  font-size: 1.11765rem;
  color: var(--ink);
}
.card-footer {
  padding-block: 14px;
}
.compare-button {
  min-height: 44px;
}
.collection-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}
.collection-tile {
  padding: 28px;
  border-radius: 20px;
  min-height: 200px;
  background: white;
}
.collection-tile h3,
.collection-tile p {
  max-width: none;
}
.collection-symbol {
  color: #d2d2d7;
  opacity: 0.35;
}
.collection-tile .text-link {
  color: #0066cc;
}
.house-ad,
.editorial-panel {
  background: #edf4ff;
  border-color: #d6e5f8;
}
.house-ad h3,
.submission-banner h2 {
  font-size: 1.64706rem;
}
.house-art {
  color: #c2d9f5;
}
.house-ad a,
.prose a,
.facts a,
.text-link {
  color: #0066cc;
}
.filters input,
.filters select {
  height: auto;
  min-height: 48px;
}
.field input,
.field textarea,
.field select {
  color: var(--ink);
  background: white;
}
.panel {
  padding: 32px;
  border-radius: 20px;
}
.panel p,
.facts dd,
td {
  color: var(--ink);
}
.editorial-pair h3 {
  font-size: 1.11765rem;
  color: var(--ink);
}
.detail-stats strong {
  color: var(--ink);
}
.detail-stats {
  gap: 24px;
}
.detail-aside {
  min-width: 0;
}
.detail-aside .house-ad p,
.house-ad p {
  max-width: none;
}
.footnote {
  font-size: 0.88235rem !important;
  color: var(--muted) !important;
}
.toast {
  background: #1d1d1f;
}
.compare-tray {
  left: calc(50% + 125px);
}
@media (max-width: 1100px) {
  .topbar-label {
    display: none;
  }
  .topbar-actions {
    margin-left: auto;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-art {
    display: none;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-aside {
    position: static;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 270px;
  }
  .workspace {
    margin-left: 0;
  }
  main {
    padding-inline: 20px;
  }
  .topbar {
    min-height: 76px;
    height: auto;
    padding: 14px 20px;
    gap: 12px;
  }
  .topbar-actions {
    gap: 12px;
  }
  .new-badge {
    display: none;
  }
  .hero {
    min-height: 0;
    padding-block: 44px 32px;
  }
  .hero p {
    max-width: none;
  }
  .hero-kicker {
    letter-spacing: 0;
  }
  .intro-strip {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .intro-strip > div {
    flex-direction: column;
    align-items: start;
    gap: 6px;
  }
  .intro-strip span {
    white-space: normal;
  }
  .section {
    margin-top: 36px;
  }
  .section-heading h2 {
    font-size: 1.52941rem;
  }
  .section-heading > .text-link {
    font-size: 0.88235rem;
  }
  .filter-tabs {
    flex-wrap: wrap;
  }
  .resource-card,
  .collection-tile {
    padding: 24px;
  }
  .resource-card {
    padding-bottom: 0;
  }
  .collection-tile {
    min-height: 170px;
  }
  .panel {
    padding: 24px;
  }
  .detail-stats {
    grid-template-columns: 1fr 1fr;
  }
  .detail-stats > div:last-child {
    grid-column: 1/-1;
  }
  .editorial-pair {
    grid-template-columns: 1fr;
  }
  .facts > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .compare-tray {
    left: 50%;
    flex-wrap: wrap;
  }
  .compare-tray .button {
    min-height: 44px;
  }
  .search-form {
    padding: 8px 10px;
    gap: 8px;
  }
  .search-form > svg {
    display: none;
  }
  .search-form button {
    padding: 12px 16px;
  }
}
@media (max-width: 360px) {
  .topbar {
    padding-inline: 14px;
    gap: 8px;
  }
  .topbar-actions {
    gap: 10px;
  }
  .topbar-actions > a {
    white-space: nowrap;
  }
  .topbar-actions .button {
    padding-inline: 14px;
  }
}

/* Reading hierarchy: navigation and metadata support the content, they do not compete with it. */
body {
  font-size: 1rem;
}
.eyebrow,
.nav-caption,
.sidebar-bottom,
.topbar-label,
.new-badge,
.hero-kicker,
.collection-tile .eyebrow,
.card-top .eyebrow,
.card-top .username,
.username,
.card-meta,
.card-footer > span,
.search-hints,
.facts small,
.footnote,
footer > small {
  font-size: 0.8125rem;
}
.eyebrow,
.nav-caption,
.hero-kicker {
  font-weight: 600;
  letter-spacing: 0.08em;
}
.nav-link,
.sidebar-bottom .side-submit,
.sidebar-bottom > a:not(.side-submit),
.topbar-actions,
.button,
.button.small,
.text-link,
.filter-tabs > a,
.topic-grid a,
.pagination,
.compare-button {
  font-size: 0.9375rem;
}
.hero h1 {
  font-size: clamp(2.75rem, 4.2vw, 3.75rem);
  line-height: 1.13;
}
.hero p,
.page-heading > p {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.page-heading h1 {
  font-size: clamp(2.25rem, 3.3vw, 2.875rem);
}
.section-heading h2,
.panel h2,
.results-heading h2 {
  font-size: 1.75rem;
  line-height: 1.25;
}
.collection-tile h3,
.card-top h3,
.panel h3,
.detail-aside .panel h3 {
  font-size: 1.1875rem;
  line-height: 1.35;
}
.collection-tile p,
.card-description,
.card-audience,
.house-ad p,
.editorial-pair p,
.detail-aside .panel p,
.number-list p,
.ad-packages p {
  font-size: 0.9375rem;
  line-height: 1.65;
}
.card-description {
  color: var(--ink);
}
.card-meta strong {
  font-size: 1.0625rem;
}
.search-form input,
.field input,
.field select,
.field textarea {
  font-size: 1rem;
}
.filters label,
.results-heading > .muted,
.breadcrumbs,
.facts > div,
table {
  font-size: 0.875rem;
}
.filters select,
.filters input {
  font-size: 0.9375rem;
}
.panel p,
.prose,
.facts dd {
  font-size: 1rem;
  line-height: 1.75;
}
.detail-identity h1 {
  font-size: clamp(2rem, 3vw, 2.5rem);
}
.detail-stats strong {
  font-size: 2rem;
}
.detail-stats span,
.detail-stats small {
  font-size: 0.8125rem;
}
@media (max-width: 760px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p,
  .page-heading > p {
    font-size: 1rem;
  }
  .page-heading h1 {
    font-size: 2.125rem;
  }
  .section-heading h2,
  .panel h2,
  .results-heading h2 {
    font-size: 1.625rem;
  }
  .collection-tile h3,
  .card-top h3 {
    font-size: 1.1875rem;
  }
  .card-description,
  .card-audience,
  .collection-tile p {
    font-size: 0.9375rem;
  }
}

/* 固定顶部的半透明玻璃与缓慢光带。 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(255,255,255,.62) 48%, transparent 68%);
  transform: translateX(-125%);
  animation: glass-slide 10s ease-in-out infinite;
  pointer-events: none;
}
.topbar > * { position: relative; z-index: 1; }
@keyframes glass-slide { 45%, 100% { transform: translateX(125%); } }
@media (prefers-reduced-motion: reduce) { .topbar::before { animation: none; } }

/* 桌面两栏随整页共同滚动，并由同一网格拉伸至等高。 */
@media (min-width: 761px) {
  body {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    min-height: 100vh;
  }
  .sidebar {
    position: relative;
    inset: auto;
    width: auto;
    min-width: 0;
    overflow: visible;
    border-right: 0;
    background: linear-gradient(90deg, #fff 65%, #f0f5fc 85%, var(--wash));
  }
  .workspace {
    margin-left: 0;
    min-width: 0;
  }
  .sidebar-bottom {
    margin-top: 24px;
  }
}

/* 内容紧贴侧栏，避免固定最大宽度在宽屏产生额外空白。 */
.workspace > main { max-width: none; width: 100%; margin: 0; padding: 0 24px 40px; }
.workspace > footer { max-width: none; margin: 0; padding-inline: 24px; }
@media (min-width: 761px) {
  .sidebar { padding-inline: 12px; }
  .category-nav .nav-link { padding: 10px 12px; gap: 10px; }
}
@media (max-width: 760px) {
  .workspace > main { padding-inline: 16px; }
  .workspace > footer { padding-inline: 16px; }
}

/* 顶部品牌、导航、操作分别占据三列。 */
.topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(230px, 1fr);
  height: 76px;
  min-height: 76px;
  padding: 0 28px;
  gap: 20px;
  overflow: visible;
}
.topbar::before { display: none; }
.nav-brand { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; width: 158px; height: 50px; }
.nav-brand .brand-mark { width: 100%; height: 100%; object-fit: contain; }
.topbar-nav { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; }
.topbar-actions { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; display: flex; gap: 20px; white-space: nowrap; }
.topbar-actions .button.small { padding: 9px 16px; min-height: 40px; }
@media (min-width: 761px) {
  body { grid-template-rows: 76px auto; }
  .sidebar { grid-column: 1; grid-row: 2; padding-top: 22px; }
  .workspace { grid-column: 2; grid-row: 2; }
}
@media (max-width: 1000px) {
  .topbar { grid-template-columns: 1fr 1fr; height: auto; padding: 10px 20px; gap: 8px; }
  .topbar-nav { grid-column: 1 / -1; grid-row: 2; }
  .topbar-actions { grid-column: 2; }
  body { grid-template-rows: auto auto; }
}
@media (max-width: 760px) {
  .topbar { grid-template-columns: 30px 1fr auto; padding: 10px 12px; column-gap: 8px; }
  .topbar .mobile-menu { grid-column: 1; grid-row: 1; }
  .nav-brand { grid-column: 2; width: 112px; height: 40px; }
  .topbar-actions { grid-column: 3; gap: 10px; font-size: 12px; }
  .topbar-actions > a { font-size: 12px; }
  .topbar-actions .button.small { padding: 8px 10px; font-size: 12px; }
  .topbar-actions .button svg { display: none; }
  .topbar-nav { grid-column: 1 / -1; max-width: 100%; width: 100%; justify-content: center; }
  .sidebar { padding-top: 125px; }
}

/* 首页紧凑搜索面板。 */
.discovery-hero { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.4fr); align-items: center; gap: 14px 32px; }
.discovery-hero h1 { font-size: 24px; line-height: 1.4; letter-spacing: -.025em; }
.discovery-hero h1 span { display: block; }
.discovery-hero > div:first-child > p { font-size: 13px; line-height: 1.6; margin: 8px 0 0; max-width: 360px; }
.discovery-hero .hero-search { width: 100%; max-width: none; }
.discovery-hero .search-form { min-height: 54px; padding: 5px 5px 5px 16px; gap: 10px; border-radius: 16px; border-color: #d7e2ef; box-shadow: 0 4px 18px #275eac0a; }
.discovery-hero .search-form input { min-width: 0; width: 100%; height: 40px; font-size: 15px; }
.discovery-hero .search-form button { min-height: 42px; padding: 8px 19px; gap: 8px; border-radius: 11px; font-size: 14px; white-space: nowrap; }
.discovery-hero .search-form kbd { border: 0; background: #f5f6f8; font-size: 12px; padding: 3px 5px; }
.discovery-hero .search-hints { gap: 8px 14px; padding: 10px 3px 0; font-size: 12px; }
.discovery-hero .intro-strip { grid-column: 1 / -1; margin: 0; padding: 12px 0 0; gap: 18px; border-top: 1px solid #e7edf4; }
.discovery-hero .intro-strip > div { flex-direction: row; gap: 5px; }
.discovery-hero .intro-strip strong { font-size: 16px; font-weight: 600; }
.discovery-hero .intro-strip span, .discovery-hero .intro-strip > a { font-size: 12px; }
@media (max-width: 1100px) {
  .discovery-hero { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .discovery-hero h1 span { display: inline; }
  .discovery-hero > div:first-child > p { display: none; }
}
@media (max-width: 760px) {
  .discovery-hero { padding: 18px 16px; border-radius: 16px; border: 1px solid #e1e7ef; }
  .discovery-hero h1 { font-size: 20px; }
  .discovery-hero .intro-strip { gap: 12px; flex-wrap: wrap; overflow: visible; }
  .discovery-hero .search-form button { padding-inline: 14px; }
  .discovery-hero .search-form kbd { display: none; }
}

/* 列表筛选使用可样式化的原生菜单，保留表单及键盘语义。 */
.filters select { min-height: 44px; height: auto; min-width: 144px; color: var(--ink); border-radius: 12px; border-color: #dbe3ed; padding: 10px 13px; cursor: pointer; }
.filters select:focus-visible { outline: 3px solid #0071e333; outline-offset: 2px; }
@supports (appearance: base-select) {
  .filters select, .filters select::picker(select) { appearance: base-select; }
  .filters select { display: flex; align-items: center; gap: 20px; }
  .filters select::picker(select) { background: #fff; color: var(--ink); border: 1px solid #e0e6ef; border-radius: 14px; padding: 6px; margin-top: 7px; box-shadow: 0 12px 32px #182c4d24; max-height: min(360px, 60vh); overflow-y: auto; font-family: inherit; }
  .filters select::picker-icon { color: #748399; font-size: 12px; transition: rotate .18s; margin-left: auto; }
  .filters select:open { border-color: var(--accent); box-shadow: 0 0 0 3px #0071e314; }
  .filters select:open::picker-icon { rotate: 180deg; }
  .filters select option { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 9px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; }
  .filters select option:hover, .filters select option:focus { background: #f1f6fc; }
  .filters select option:checked { background: #eaf3ff; color: #0066cc; font-weight: 600; }
  .filters select option::checkmark { order: 1; margin-left: auto; color: #0071e3; }
}
@media (prefers-reduced-motion: reduce) { .filters select::picker-icon { transition: none; } }

/* 列表顶部共用紧凑工具区。 */
.listing-tools { margin: 24px 0; padding: 22px 24px 18px; border: 1px solid #e1e7ef; border-radius: 18px; background: linear-gradient(120deg, #fff, #f7faff); }
.listing-tools-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 24px; align-items: center; }
.listing-tools .page-heading { padding: 0; margin: 0; }
.listing-tools .eyebrow { display: none; }
.listing-tools .page-heading h1 { margin: 0; font-size: 24px; line-height: 1.35; letter-spacing: -.025em; }
.listing-tools .page-heading p { margin: 7px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.listing-tools .search-form { width: 100%; min-height: 50px; margin: 0; padding: 4px 4px 4px 14px; gap: 8px; border-radius: 13px; }
.listing-tools .search-form input { min-width: 0; width: 100%; height: 38px; font-size: 14px; }
.listing-tools .search-form button { min-height: 40px; padding: 8px 16px; border-radius: 10px; font-size: 14px; gap: 0; }
.listing-tools .search-form button svg, .listing-tools .search-form kbd { display: none; }
.listing-tools .filters { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid #e6ecf3; border-radius: 0; background: transparent; gap: 12px; }
.listing-tools .filters label { gap: 5px; font-size: 12px; }
.listing-tools .filters select { font-size: 14px; border-radius: 10px; }
.listing-tools .filters .button { min-height: 44px; padding: 10px 18px; border-radius: 10px; font-size: 14px; }
@media (max-width: 1100px) {
  .listing-tools-top { grid-template-columns: 1fr; gap: 16px; }
  .listing-tools .search-form { max-width: 480px; }
}
@media (max-width: 760px) {
  .listing-tools { padding: 18px 16px; margin-top: 18px; }
  .listing-tools .page-heading h1 { font-size: 21px; }
  .listing-tools .filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .listing-tools .filters label { width: auto; min-width: 0; }
  .listing-tools .filters select { width: 100%; min-width: 0; max-width: none; gap: 8px; }
  .listing-tools .filters > .muted { text-align: center; padding: 10px; }
}

/* Resource votes */
.vote-group {
  display: inline-flex;
  gap: 6px;
}
.vote-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}
.vote-button svg {
  width: 18px;
  height: 18px;
}
.vote-button:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.vote-button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.vote-button[data-vote="down"][aria-pressed="true"] {
  color: #b3261e;
  border-color: #b3261e;
  background: color-mix(in srgb, #b3261e 10%, transparent);
}
.vote-group.large .vote-button {
  padding: 9px 16px;
  font-size: 1rem;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.form-panel textarea[name="body"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Admin markdown editor (EasyMDE text toolbar) */
.editor-toolbar button {
  width: auto;
  padding: 0 8px;
  font-size: 0.875rem;
  font-family: inherit;
}

/* 2026 directory template: dense, calm and immediately searchable. */
:root {
  --ink: #25272b;
  --muted: #7d8490;
  --accent: #ff650f;
  --accent-hover: #ed5707;
  --line: #e9edf3;
  --wash: #f4f7fb;
  --tint: #fff2ea;
  --radius: 12px;
  background: var(--wash);
}
body {
  background: var(--wash);
  font-size: 14px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  height: 68px;
  min-height: 68px;
  padding: 0 28px;
  gap: 28px;
  color: #4d535c;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid #e8ebf0;
  box-shadow: 0 5px 22px rgba(31,45,68,.05);
  backdrop-filter: blur(16px);
}
.topbar::before { display: none; }
.nav-brand {
  width: 188px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.nav-brand .brand-mark { width: 104px; height: 42px; object-fit: contain; }
.nav-brand-title { padding-left: 15px; border-left: 1px solid #e2e5ea; color: #292d34; font-size: 16px; font-weight: 600; white-space: nowrap; }
.topbar-nav {
  justify-self: center;
  gap: 20px;
}
.top-nav-link {
  position: relative;
  padding: 24px 12px 22px;
  border-radius: 0;
  color: #626873;
  font-size: 14px;
}
.top-nav-link:hover,
.top-nav-link.active {
  color: #ff650f;
  background: transparent;
}
.top-nav-link.active::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #ff650f; }
.top-nav-link:nth-child(2)::after { content: ""; position: absolute; top: 18px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: #ff4b37; box-shadow: 0 0 0 4px rgba(255,75,55,.12); }
.topbar-actions { gap: 20px; color: #626873; font-size: 14px; }
.topbar-actions a:hover { color: #ff650f; }
.topbar-actions .button.small {
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: #ff812f;
}
.sidebar {
  background: #eef3f9;
  border: 0;
}
.category-nav { gap: 2px !important; }
.category-nav .nav-link {
  justify-content: center;
  min-height: 42px;
  margin: 0 6px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #555b62;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.category-nav .nav-link:hover { color: #ff5a0a; background: rgba(255,255,255,.72); transform: translateX(2px); }
.category-nav .nav-link.active {
  color: #fff;
  background: #ff5a0a;
  box-shadow: 0 8px 18px rgba(255,90,10,.2);
  transform: none;
}
.sidebar-bottom { font-size: 13px; }
.workspace > main { padding: 28px 28px 48px; }
.workspace > footer { padding-inline: 28px; }
.discovery-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 282px;
  margin: 0;
  padding: 38px 28px 30px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 9% 72%, rgba(96,234,190,.72) 0 8%, transparent 23%),
    radial-gradient(circle at 92% 50%, rgba(87,219,180,.72) 0 9%, transparent 25%),
    linear-gradient(150deg,#5578e8 0%,#6997ee 50%,#7db4ee 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.18);
}
.discovery-hero::after {
  width: 420px;
  height: 220px;
  right: -90px;
  top: -80px;
  border-radius: 44%;
  background: rgba(255,255,255,.08);
  transform: rotate(14deg);
  animation: none;
}
.discovery-hero > div:first-child { width: 100%; }
.discovery-hero .eyebrow { display: none; }
.discovery-hero h1 {
  max-width: none;
  margin: 0 0 24px;
  color: #fff;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: -.035em;
  font-weight: 600;
}
.discovery-hero h1 span { display: inline; color: #fff; }
.discovery-hero > div:first-child > p { display: none; }
.hero-search { width: min(720px, 88%); max-width: none; margin: 0 auto; }
.search-tabs {
  display: flex;
  justify-content: center;
  align-items: end;
  height: 31px;
}
.search-tabs a {
  min-width: 74px;
  padding: 7px 12px 8px;
  border-radius: 7px 7px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 14px;
}
.search-tabs a:hover { color: #fff; }
.search-tabs .active { color: #333943; background: #fff; }
.discovery-hero .search-form {
  min-height: 46px;
  padding: 0 0 0 18px;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 7px 22px rgba(33,67,130,.13);
}
.discovery-hero .search-form > svg { color: #9ba3af; }
.discovery-hero .search-form input { height: 46px; font-size: 14px; }
.discovery-hero .search-form kbd { display: none; }
.discovery-hero .search-form button {
  min-width: 126px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 0;
  background: #f36819;
}
.discovery-hero .search-hints {
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
  color: rgba(255,255,255,.82);
}
.discovery-hero .search-hints a {
  position: relative;
  overflow: hidden;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
  color: rgba(255,255,255,.9);
  background: rgba(57,92,171,.2);
  animation: hotword-in .55s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--hotword-index) * 70ms);
}
.discovery-hero .search-hints a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg,transparent 25%,rgba(255,255,255,.25) 50%,transparent 75%); transform: translateX(-130%); transition: transform .5s ease; }
.discovery-hero .search-hints a:hover { color: #fff; background: rgba(44,76,153,.35); border-color: rgba(255,255,255,.32); transform: translateY(-2px); text-decoration: none; }
.discovery-hero .search-hints a:hover::after { transform: translateX(130%); }
.hotword-label { display: inline-flex; align-items: center; gap: 7px; margin-right: 2px; color: rgba(255,255,255,.92); font-weight: 600; }
.hotword-label i { width: 7px; height: 7px; border-radius: 50%; background: #ffdf65; box-shadow: 0 0 0 0 rgba(255,223,101,.5); animation: hotword-pulse 1.8s ease-out infinite; }
@keyframes hotword-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hotword-pulse { 70%,100% { box-shadow: 0 0 0 8px rgba(255,223,101,0); } }
@media (prefers-reduced-motion: reduce) { .discovery-hero .search-hints a, .hotword-label i { animation: none; } }
.discovery-hero .intro-strip {
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
  padding: 14px 0 0;
  border-color: rgba(255,255,255,.16);
}
.discovery-hero .intro-strip strong,
.discovery-hero .intro-strip span,
.discovery-hero .intro-strip > a { color: rgba(255,255,255,.88); font-size: 12px; }
.discovery-hero .intro-strip strong { font-size: 14px; }
.start-here {
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  gap: 8px;
  border-radius: 0;
  color: #777f8b;
  background: #fff;
  border-bottom: 1px solid var(--line);
  justify-content: flex-end;
}
.start-here p { margin: 0 auto 0 0; color: #777f8b; font-size: 13px; }
.start-here strong { color: #555c65; }
.start-here > a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 14px;
  color: #777f8b;
  background: #f7f8fa;
  font-size: 12px;
}
.start-here svg { width: 12px; }
.popular-section { margin-top: 28px; }
.popular-section-heading { margin-bottom: 14px; align-items: end; }
.popular-section-heading .eyebrow { display: none; }
.popular-section-heading h2 { font-size: 20px; }
.popular-section-heading > a { padding: 5px 10px; border-radius: 14px; background: #fff; }
.popular-lanes { gap: 30px; }
.popular-lane {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.popular-lane::after { display: none; }
.popular-lane-heading { margin-bottom: 14px; }
.popular-lane-heading h2 { font-size: 19px; }
.popular-lane-heading p { display: none; }
.popular-lane-heading > a { padding: 5px 10px; border-radius: 14px; background: #fff; }
.popular-lane-icon {
  width: 28px;
  height: 28px;
  color: #fff;
  background: linear-gradient(135deg,#6e91f1,#4d73df);
}
.hot-card-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 18px; }
.hot-card {
  min-height: 122px;
  padding: 18px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(30,48,76,.02);
}
.hot-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 9px 26px rgba(38,62,101,.08);
}
.hot-card::before { display: none; }
.hot-card-main { align-items: flex-start; gap: 10px; }
.hot-card .avatar { width: 34px; height: 34px; border-radius: 50%; }
.hot-card-main > span { gap: 7px; }
.hot-card strong { color: #32363c; font-size: 15px; line-height: 1.35; }
.hot-card small {
  color: #8a909a;
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-card-count {
  justify-content: flex-end;
  margin-top: 9px;
  padding: 0;
  border: 0;
  color: #a0a6af;
  font-size: 11px;
}
.hot-card-count em {
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: normal;
  white-space: nowrap;
}
.hot-card-count svg { width: 11px; height: 11px; color: #98a0ab; }

.house-ad,
.submission-banner { border: 0; border-radius: 9px; background: #fff; }

@media (min-width: 761px) {
  body { grid-template-columns: 176px minmax(0,1fr); grid-template-rows: 68px auto; }
  .sidebar { padding: 18px 2px 24px; }
}
@media (max-width: 1250px) {
  .hot-card-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .topbar-nav { gap: 6px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  .hot-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .topbar-actions > a:first-child { display: none; }
}
@media (max-width: 760px) {
  body { display: block; }
  .topbar {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    height: 52px;
    min-height: 52px;
    padding: 4px 10px;
    gap: 6px;
  }
  .topbar .mobile-menu { display: inline-flex; color: #424852; }
  .nav-brand { width: 72px; height: 32px; }
  .nav-brand .brand-mark { width: 72px; height: 32px; }
  .nav-brand-title { display: none; }
  .topbar-nav { display: none; }
  .topbar-actions { grid-column: 3; gap: 0; }
  .topbar-actions > a:first-child { display: none; }
  .topbar-actions .button.small { min-height: 32px; padding: 6px 10px; font-size: 12px; }
  .sidebar { padding-top: 64px; background: #eef3f9; }
  .workspace > main { padding: 0 0 32px; }
  .workspace > footer { padding-inline: 16px; }
  .discovery-hero {
    min-height: 246px;
    padding: 22px 10px 14px;
    border-radius: 0;
  }
  .discovery-hero h1 { margin-bottom: 14px; font-size: 25px; }
  .hero-search { width: 100%; }
  .search-tabs { justify-content: flex-start; padding-left: 22px; }
  .search-tabs a { min-width: 66px; padding-inline: 9px; }
  .discovery-hero .search-form { border-radius: 7px; padding-left: 12px; }
  .discovery-hero .search-form > svg { display: none; }
  .discovery-hero .search-form button { min-width: 92px; padding-inline: 10px; }
  .discovery-hero .search-form button svg { display: none; }
  .discovery-hero .search-hints {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 14px 6px 0;
    overflow: hidden;
  }
  .discovery-hero .search-hints a { flex: 0 0 auto; font-size: 12px; }
  .discovery-hero .intro-strip { display: none; }
  .start-here { min-height: 42px; padding: 9px 12px; }
  .start-here p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .start-here > a:last-child { display: none; }
  .popular-section { margin: 18px 10px 0; }
  .popular-section-heading { padding: 0 4px; }
  .popular-section-heading h2 { font-size: 18px; }
  .popular-lanes { gap: 18px; }
  .popular-lane { border-radius: 9px; background: #fff; overflow: hidden; }
  .popular-lane-heading { margin: 0; padding: 15px 14px 10px; border-bottom: 1px solid #f0f1f4; }
  .popular-lane-heading h2 { font-size: 16px; }
  .popular-lane-icon { width: 24px; height: 24px; }
  .popular-lane-heading > a { padding: 0; background: none; }
  .hot-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; }
  .hot-card {
    min-height: 136px;
    padding: 14px;
    border-radius: 0;
    border-bottom: 1px solid #f0f1f4;
  }
  .hot-card:nth-child(odd) { border-right: 1px solid #f0f1f4; }
  .hot-card:hover { transform: none; box-shadow: none; }
  .hot-card-count { display: none; }

  .house-ad,
  .submission-banner { margin-inline: 10px; }
}
@media (max-width: 360px) {
  .discovery-hero h1 { font-size: 22px; }
  .search-tabs { padding-left: 4px; }
  .search-tabs a { min-width: 62px; }
}

/* Hot card footer: kind icon + category instead of the handle */
.hot-card-count em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.hot-card-count em svg {
  width: 13px;
  height: 13px;
  flex: none;
}

/* Sidebar actions: sit right under the last category, same row geometry as .nav-link, with gradient + shine */
.sidebar-bottom {
  margin-top: 6px;
  padding: 0 8px;
  gap: 8px;
}
.sidebar-bottom .side-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 11px 13px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sidebar-bottom .side-submit {
  background: linear-gradient(135deg, #0071e3, #3f9cff);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.28);
}
.sidebar-bottom .side-guide {
  background: linear-gradient(135deg, #16834a, #3cc47c);
  box-shadow: 0 6px 16px rgba(22, 131, 74, 0.28);
}
.sidebar-bottom .side-action svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  box-sizing: content-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  flex: none;
}
.sidebar-bottom .side-action::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.sidebar-bottom .side-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}
.sidebar-bottom .side-action:hover::after {
  left: 130%;
}
@media (prefers-reduced-motion: reduce) {
  .sidebar-bottom .side-action, .sidebar-bottom .side-action::after { transition: none; }
}

/* Submission banner: single larger line + primary button matching the top bar */
.submission-banner .submission-lead {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
@media (max-width: 760px) {
  .submission-banner .submission-lead { font-size: 1.15rem; }
}

/* Hero: shorter search bar, larger hot words, orange hover */
.hero-search { width: min(560px, 88%); }
.discovery-hero .search-hints { font-size: 14.5px; gap: 10px; }
.discovery-hero .search-hints a {
  padding: 7px 14px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.discovery-hero .search-hints a:hover {
  color: #fff;
  background: #f36819;
  border-color: #f36819;
  box-shadow: 0 6px 16px rgba(243, 104, 25, 0.35);
}
@media (max-width: 760px) {
  .hero-search { width: 100%; }
  .discovery-hero .search-hints a { font-size: 13px; }
}

/* Specificity fixes: earlier rules (.discovery-hero .hero-search, .sidebar-bottom > a:not(...)) outranked the overrides above */
.discovery-hero .hero-search { width: min(560px, 88%); max-width: none; }
.discovery-hero .hero-search .search-hints { font-size: 15px; gap: 10px; }
.discovery-hero .hero-search .search-hints a {
  font-size: 15px;
  padding: 7px 15px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
}
.discovery-hero .hero-search .search-hints a:hover {
  color: #fff;
  background: #f36819;
  border-color: #f36819;
  box-shadow: 0 6px 16px rgba(243, 104, 25, 0.35);
}
.sidebar-bottom > a.side-action,
.sidebar-bottom > a.side-action:hover,
.sidebar-bottom > a.side-action span {
  color: #fff;
}
.sidebar-bottom > a.side-action { line-height: 1.3; }
@media (max-width: 760px) {
  .discovery-hero .hero-search { width: 100%; }
  .discovery-hero .hero-search .search-hints a { font-size: 13px; }
}

/* Keep the hot-word row wide; only the input row is shorter */
.discovery-hero .hero-search { width: min(760px, 88%); }
.discovery-hero .hero-search .search-form { width: min(560px, 100%); margin: 0 auto; }
.discovery-hero .hero-search .search-hints { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 760px) {
  .discovery-hero .hero-search { width: 100%; }
  .discovery-hero .hero-search .search-form { width: 100%; }
  .discovery-hero .hero-search .search-hints { flex-wrap: wrap; white-space: normal; }
}

/* Sidebar actions sit directly under the last category (beats the earlier margin-top: auto rules) */
.sidebar > .sidebar-bottom { margin-top: 8px; }
.sidebar > .category-nav { margin-bottom: 6px; padding-bottom: 4px; }

/* Hero: brand block on the left of the search, hot-word label white, hot words slightly smaller */
.discovery-hero .hero-search .search-hints > span.hotword-label { color: #fff; }
.discovery-hero .hero-search .search-hints { font-size: 14px; }
.discovery-hero .hero-search .search-hints a { font-size: 14px; padding: 6px 14px; }
.hero-brand { display: none; }
@media (min-width: 1000px) {
  .discovery-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-areas: "brand title" "brand search";
    column-gap: 28px;
    row-gap: 0;
    align-items: center;
    padding-inline: 40px 28px;
  }
  .discovery-hero > div:first-child { grid-area: title; align-self: end; }
  .discovery-hero .hero-search { grid-area: search; align-self: start; }
  .hero-brand {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-right: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    text-align: left;
  }
  .hero-logo {
    width: 96px;
    height: 96px;
    padding: 8px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(20, 50, 120, 0.28), 0 0 0 6px rgba(255, 255, 255, 0.18);
    transform: rotate(-5deg);
    transition: transform 0.25s ease;
  }
  .hero-logo:hover { transform: rotate(0deg) scale(1.03); }
  .hero-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; display: block; }
  .hero-slogan strong {
    display: block;
    font-size: 27px;
    line-height: 1.32;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  }
  .hero-slogan span {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
  }
}

/* Hero brand: transparent logo blended into the gradient, no tile, no divider */
@media (min-width: 1000px) {
  .discovery-hero { grid-template-columns: 280px minmax(0, 1fr); column-gap: 20px; }
  .hero-brand { border-right: 0; padding-right: 0; gap: 10px; align-items: center; text-align: center; }
  .hero-logo {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: none;
  }
  .hero-logo:hover { transform: translateY(-3px); }
  .hero-logo img {
    width: 180px;
    height: auto;
    border-radius: 0;
    filter: drop-shadow(0 10px 22px rgba(10, 40, 100, 0.28)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
  }
  .hero-slogan strong { font-size: 25px; letter-spacing: 0.08em; }
  .hero-slogan span { margin-top: 8px; }
}

/* Hero: symmetric grid so the search block is centered in the banner; brand hugs it from the left */
@media (min-width: 1000px) {
  .discovery-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr);
    grid-template-areas: ". title ." "brand search .";
    column-gap: 0;
    padding-inline: 28px;
  }
  .discovery-hero .hero-search { width: 100%; max-width: 720px; }
  .hero-brand { justify-self: end; margin-right: 44px; gap: 6px; }
  .hero-logo img { width: 168px; }
  .hero-slogan strong { font-size: 23px; letter-spacing: 0.1em; }
}

/* Hero brand spans both rows, vertically centered, never wraps */
@media (min-width: 1000px) {
  .discovery-hero {
    grid-template-columns: minmax(200px, 1fr) minmax(0, 680px) minmax(200px, 1fr);
    grid-template-areas: "brand title ." "brand search .";
  }
  .discovery-hero .hero-search { max-width: 680px; }
  .hero-brand { align-self: center; margin-right: 26px; gap: 4px; }
  .hero-logo img { width: 150px; }
  .hero-slogan strong { font-size: 21px; letter-spacing: 0.06em; white-space: nowrap; }
}

/* ===== Newsroom (articles) — Apple Newsroom inspired ===== */
.nr-kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #f36819; }
.nr-kicker i { font-style: normal; margin: 0 8px; color: #c7c7cc; }
.nr-index { max-width: 1040px; margin: 0 auto; padding: 4px 0 32px; }
.nr-head { padding: 24px 0 20px; }
.nr-head h1 { margin: 10px 0 8px; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; color: #1d1d1f; }
.nr-head p { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.5; color: #6e6e73; }
.nr-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.nr-tabs a { padding: 7px 14px; border-radius: 999px; background: #f5f5f7; color: #1d1d1f; font-size: 14px; font-weight: 500; text-decoration: none; }
.nr-tabs a:hover { background: #e8e8ed; }
.nr-tabs a.selected { background: #1d1d1f; color: #fff; }
.nr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.nr-card {
  display: flex; flex-direction: column; min-height: 224px; padding: 28px;
  border-radius: 18px; background: #f5f5f7; color: inherit; text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nr-card:hover { background: #ededf0; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06); text-decoration: none; }
.nr-card .nr-kicker { color: #6e6e73; }
.nr-card h3 { margin: 12px 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; color: #1d1d1f; }
.nr-card p { margin: 0; font-size: 15px; line-height: 1.5; color: #6e6e73; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nr-card time { margin-top: auto; padding-top: 18px; font-size: 13px; color: #86868b; }
.nr-card.featured { grid-column: 1 / -1; padding: 40px; background: linear-gradient(135deg, #1d1d1f 0%, #3a3a3c 100%); }
.nr-card.featured:hover { background: linear-gradient(135deg, #2a2a2c 0%, #46464a 100%); }
.nr-card.featured .nr-kicker { color: #ffb37a; }
.nr-card.featured h3 { max-width: 760px; font-size: 32px; line-height: 1.15; color: #fff; }
.nr-card.featured p { max-width: 720px; font-size: 17px; color: rgba(255, 255, 255, 0.72); -webkit-line-clamp: 2; }
.nr-card.featured time { color: rgba(255, 255, 255, 0.6); }
.nr-grid-home { margin-top: 0; }
.nr-empty { padding: 60px 0; text-align: center; color: #6e6e73; }
.nr-index .pagination { margin-top: 28px; }

.nr-article { max-width: 680px; margin: 0 auto; padding: 16px 0 40px; }
.nr-crumbs { margin-bottom: 22px; font-size: 13px; color: #86868b; }
.nr-article h1 { margin: 12px 0 14px; font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; color: #1d1d1f; }
.nr-article .nr-sub { margin: 0 0 22px; font-size: 21px; line-height: 1.4; color: #6e6e73; }
.nr-meta { display: flex; flex-wrap: wrap; gap: 6px 0; padding: 14px 0; border-top: 1px solid #e5e5ea; border-bottom: 1px solid #e5e5ea; font-size: 14px; color: #6e6e73; }
.nr-meta span + span::before { content: "·"; margin: 0 10px; color: #c7c7cc; }
.nr-source { margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; background: #f5f5f7; font-size: 14px; line-height: 1.5; color: #6e6e73; }
.nr-source a { color: #0066cc; }
.nr-body { padding-top: 28px; font-size: 19px; line-height: 1.75; color: #1d1d1f; }
.nr-body > :first-child { margin-top: 0; }
.nr-body p { margin: 0 0 1.25em; }
.nr-body h2 { margin: 1.9em 0 0.6em; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.nr-body h3 { margin: 1.6em 0 0.5em; font-size: 22px; line-height: 1.3; font-weight: 700; }
.nr-body h4 { margin: 1.4em 0 0.4em; font-size: 19px; font-weight: 700; }
.nr-body ul, .nr-body ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.nr-body li { margin-bottom: 0.45em; }
.nr-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid #f36819; color: #515154; }
.nr-body blockquote p:last-child { margin-bottom: 0; }
.nr-body code { padding: 2px 6px; border-radius: 6px; background: #f5f5f7; font-size: 0.9em; }
.nr-body pre { margin: 0 0 1.25em; padding: 16px 18px; border-radius: 12px; background: #1d1d1f; color: #f5f5f7; overflow-x: auto; font-size: 15px; line-height: 1.55; }
.nr-body pre code { padding: 0; background: none; color: inherit; }
.nr-body a { color: #0066cc; text-decoration: underline; text-underline-offset: 3px; }
.nr-body img { max-width: 100%; height: auto; border-radius: 14px; }
.nr-body hr { margin: 2em 0; border: 0; border-top: 1px solid #e5e5ea; }
.nr-body table { width: 100%; margin: 0 0 1.25em; border-collapse: collapse; font-size: 16px; }
.nr-body th, .nr-body td { padding: 10px 12px; border-bottom: 1px solid #e5e5ea; text-align: left; vertical-align: top; }
.nr-body th { font-weight: 600; color: #6e6e73; font-size: 14px; }
.nr-body strong { font-weight: 700; }
.nr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.nr-tags a { padding: 6px 12px; border-radius: 999px; background: #f5f5f7; color: #1d1d1f; font-size: 13px; text-decoration: none; }
.nr-tags a:hover { background: #e8e8ed; }
.nr-related { max-width: 1040px; margin: 36px auto 0; padding-top: 32px; border-top: 1px solid #e5e5ea; }
.nr-related-head { display: flex; justify-content: space-between; align-items: baseline; }
.nr-related-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.01em; font-weight: 700; color: #1d1d1f; }
.nr-related-head a { color: #0066cc; font-size: 15px; text-decoration: none; }
.nr-related .nr-grid { margin-top: 18px; }
@media (max-width: 1000px) {
  .nr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nr-grid { grid-template-columns: 1fr; gap: 12px; }
  .nr-head h1 { font-size: 30px; }
  .nr-card { padding: 22px; min-height: 0; }
  .nr-card.featured { padding: 26px; }
  .nr-card.featured h3 { font-size: 24px; }
  .nr-article h1 { font-size: 30px; }
  .nr-article .nr-sub { font-size: 18px; }
  .nr-body { font-size: 17px; line-height: 1.7; }
  .nr-body h2 { font-size: 24px; }
  .nr-body h3 { font-size: 20px; }
}

/* Site footer: brand + slogan left, links centered, copyright right, all on one baseline */
.workspace > footer.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 28px;
  padding: 26px 28px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer-brand { display: flex; align-items: center; gap: 12px; }
.site-footer-brand img { height: 22px; width: auto; display: block; opacity: 0.9; }
.site-footer-brand p { margin: 0; font-size: 14px; color: var(--muted); }
.site-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 0; font-size: 14px; }
.site-footer-nav a { color: var(--muted); }
.site-footer-nav a:hover { color: var(--accent); }
.site-footer-copy { justify-self: end; flex: none; font-size: 13px; color: #86868b; white-space: nowrap; }
@media (max-width: 1000px) {
  .workspace > footer.site-footer { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .site-footer-brand { justify-content: center; }
  .site-footer-copy { justify-self: center; white-space: normal; }
}

/* Votes: labelled, colour-coded buttons; rating shown on cards and detail */
.vote-group { gap: 8px; }
.vote-button {
  min-height: 40px;
  padding: 6px 14px;
  gap: 6px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.vote-button svg { width: 17px; height: 17px; }
.vote-button .vote-count { font-variant-numeric: tabular-nums; opacity: 0.85; }
.vote-button[data-vote="up"] { color: #15803d; background: #e9f8ef; border-color: #bfe8cc; }
.vote-button[data-vote="up"]:hover { background: #d4f1df; border-color: #9fdcb3; transform: translateY(-1px); }
.vote-button[data-vote="up"][aria-pressed="true"] { color: #fff; background: #16a34a; border-color: #16a34a; box-shadow: 0 6px 14px rgba(22, 163, 74, 0.3); }
.vote-button[data-vote="down"] { color: #b3261e; background: #fdeeee; border-color: #f3c6c4; }
.vote-button[data-vote="down"]:hover { background: #fadcdb; border-color: #eba9a6; transform: translateY(-1px); }
.vote-button[data-vote="down"][aria-pressed="true"] { color: #fff; background: #dc2626; border-color: #dc2626; box-shadow: 0 6px 14px rgba(220, 38, 38, 0.3); }
.vote-group.large .vote-button { min-height: 46px; padding: 8px 18px; font-size: 15px; }
.vote-group.large .vote-button svg { width: 19px; height: 19px; }
.card-rating { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: #e9f8ef; color: #15803d; font-size: 12px; font-weight: 600; white-space: nowrap; }
.card-rating svg { width: 13px; height: 13px; }
.detail-rating strong { color: #15803d; }
.detail-rating strong em { font-style: normal; font-size: 0.55em; font-weight: 600; margin-left: 4px; }
.detail-rating strong.small-value { color: var(--muted); }
@media (min-width: 1000px) {
  .detail-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .vote-button .vote-label { display: none; }
}

/* ===== Listing header (category / kind / discover pages) ===== */
.lt { margin: 0 0 22px; padding: 22px 24px 18px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(20, 40, 80, 0.05); }
.lt-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lt-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lt-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #ffb37a, #f36819); color: #fff; font-size: 24px; box-shadow: 0 8px 18px rgba(243, 104, 25, 0.28); }
.lt-icon svg { width: 26px; height: 26px; }
.lt-title h1 { margin: 0 0 4px; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; color: #1d1d1f; }
.lt-title p { margin: 0; font-size: 14px; line-height: 1.5; color: #6e6e73; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lt-head .search-form.compact { flex: 0 1 380px; margin: 0; }
.lt-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0f1f4; }
.lt-group { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #f5f5f7; }
.lt-pill { position: relative; padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: #515154; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.lt-pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.lt-pill:hover { color: #1d1d1f; }
.lt-pill.selected { background: #fff; color: #f36819; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.lt-pill:has(input:focus-visible) { outline: 2px solid #f36819; outline-offset: 1px; }
.lt-selects { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.lt-select { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #6e6e73; }
.lt-select select { height: 34px; padding: 0 30px 0 12px; border: 1px solid #e5e5ea; border-radius: 999px; background: #fff; color: #1d1d1f; font-size: 13.5px; font-weight: 500; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.lt-select select:hover { border-color: #c7c7cc; }
.lt-reset { font-size: 13.5px; color: #0066cc; }
.lt-filters noscript .button { min-height: 34px; }
@media (max-width: 1000px) {
  .lt-head { flex-direction: column; align-items: stretch; }
  .lt-head .search-form.compact { flex-basis: auto; }
  .lt-selects { margin-left: 0; }
}
@media (max-width: 760px) {
  .lt { padding: 16px; border-radius: 12px; }
  .lt-icon { width: 42px; height: 42px; font-size: 20px; border-radius: 11px; }
  .lt-title h1 { font-size: 20px; }
  .lt-group { flex-wrap: wrap; }
}
.lt-head .search-form.compact { flex-basis: 460px; }
.lt-head .search-form.compact kbd { display: none; }
.lt-filters { gap: 10px 12px; }
.lt-group { flex-wrap: wrap; }
.lt-reset { margin-left: auto; }
/* Dropdown facets styled like the pill group */
.lt-filters .lt-select { gap: 0; padding: 4px 4px 4px 14px; border-radius: 999px; background: #f5f5f7; color: #6e6e73; font-size: 13.5px; }
.lt-filters .lt-select select { height: 30px; padding: 0 28px 0 10px; margin-left: 6px; border: 0; border-radius: 999px; background-color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); color: #1d1d1f; font-weight: 500; }
.lt-filters .lt-select select:focus-visible { outline: 2px solid #f36819; outline-offset: 1px; }
.lt-filters .lt-select { padding-left: 4px; }
.lt-filters .lt-select select { margin-left: 0; }

/* Home lane icons: same orange gradient tile as the listing header */
.popular-lane-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, #ffb37a, #f36819); color: #fff;
  box-shadow: 0 6px 14px rgba(243, 104, 25, 0.28);
}
.popular-lane-icon svg { width: 20px; height: 20px; }

/* Home: news and guides side by side, 3 cards each */
.home-articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-articles .nr-grid-home { grid-template-columns: 1fr; gap: 10px; }
.home-articles .nr-card { min-height: 0; padding: 18px 20px; }
.home-articles .nr-card h3 { font-size: 17px; margin: 8px 0 6px; }
.home-articles .nr-card p { -webkit-line-clamp: 2; font-size: 14px; }
.home-articles .nr-card time { padding-top: 10px; }
@media (max-width: 1000px) { .home-articles { grid-template-columns: 1fr; } }

/* ===== Theme toggle ===== */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--muted); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle svg:last-child { display: none; }
html[data-theme="dark"] .theme-toggle svg:first-child { display: none; }
html[data-theme="dark"] .theme-toggle svg:last-child { display: inline; }

/* ===== Dark mode ===== */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --line: #3a3a3c;
  --wash: #1c1c1e;
  --tint: #1e2b3d;
  --white: #2c2c2e;
  --accent-hover: #2b8cf0;
}
html[data-theme="dark"] body { background: #101012; color: #f5f5f7; }
html[data-theme="dark"] .topbar, html[data-theme="dark"] .sidebar { background: #161618; border-color: #2a2a2d; }
html[data-theme="dark"] .panel, html[data-theme="dark"] .resource-card, html[data-theme="dark"] .hot-card, html[data-theme="dark"] .popular-lane,
html[data-theme="dark"] .lt, html[data-theme="dark"] .start-here, html[data-theme="dark"] .submission-banner, html[data-theme="dark"] .house-ad,
html[data-theme="dark"] .paid-ad, html[data-theme="dark"] .collection-tile, html[data-theme="dark"] .compare-table, html[data-theme="dark"] .compare-tray,
html[data-theme="dark"] .topic-grid a, html[data-theme="dark"] .pagination a, html[data-theme="dark"] .editorial-panel, html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .chart-empty, html[data-theme="dark"] .filters { background: #1c1c1e; border-color: #2f2f32; color: #f5f5f7; }
html[data-theme="dark"] .popular-lane-heading > a, html[data-theme="dark"] .popular-section-heading > a, html[data-theme="dark"] .start-here-actions a,
html[data-theme="dark"] .button.secondary, html[data-theme="dark"] .search-tabs .active { background: #2c2c2e; color: #f5f5f7; border-color: #3a3a3c; }
html[data-theme="dark"] .nr-card, html[data-theme="dark"] .nr-tabs a, html[data-theme="dark"] .nr-tags a, html[data-theme="dark"] .nr-source,
html[data-theme="dark"] .nr-body code, html[data-theme="dark"] .lt-group, html[data-theme="dark"] .lt-filters .lt-select, html[data-theme="dark"] .tag-list a,
html[data-theme="dark"] .pill, html[data-theme="dark"] .results-heading h2 span { background: #232326; color: #e5e5ea; }
html[data-theme="dark"] .nr-card:hover, html[data-theme="dark"] .nr-tabs a:hover, html[data-theme="dark"] .nr-tags a:hover { background: #2c2c2e; }
html[data-theme="dark"] .nr-card.featured { background: linear-gradient(135deg, #2a2a2e, #3a3a3e); }
html[data-theme="dark"] .nr-tabs a.selected { background: #f5f5f7; color: #1d1d1f; }
html[data-theme="dark"] .lt-pill { color: #c7c7cc; }
html[data-theme="dark"] .lt-pill.selected, html[data-theme="dark"] .lt-filters .lt-select select, html[data-theme="dark"] .lt-select select { background-color: #3a3a3c; color: #fff; box-shadow: none; }
html[data-theme="dark"] .lt-title h1, html[data-theme="dark"] .nr-head h1, html[data-theme="dark"] .nr-article h1, html[data-theme="dark"] .nr-body,
html[data-theme="dark"] .nr-card h3, html[data-theme="dark"] .nr-related-head h2, html[data-theme="dark"] .hot-card strong, html[data-theme="dark"] .category-nav .nav-link,
html[data-theme="dark"] .nav-link, html[data-theme="dark"] .card-description, html[data-theme="dark"] .card-meta strong, html[data-theme="dark"] .detail-stats strong,
html[data-theme="dark"] .editorial-pair h3, html[data-theme="dark"] .intro-strip strong, html[data-theme="dark"] .panel p, html[data-theme="dark"] .facts dd, html[data-theme="dark"] td,
html[data-theme="dark"] .submission-banner .submission-lead, html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3 { color: #f5f5f7; }
html[data-theme="dark"] .nr-body blockquote, html[data-theme="dark"] .nr-card p, html[data-theme="dark"] .nr-head p, html[data-theme="dark"] .lt-title p,
html[data-theme="dark"] .hot-card small, html[data-theme="dark"] .nr-meta, html[data-theme="dark"] .nr-source { color: #a1a1a6; }
html[data-theme="dark"] .nr-body a, html[data-theme="dark"] .nr-related-head a, html[data-theme="dark"] .lt-reset, html[data-theme="dark"] .site-footer-nav a:hover { color: #4da3ff; }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field textarea, html[data-theme="dark"] .field select, html[data-theme="dark"] .filters select,
html[data-theme="dark"] .filters input, html[data-theme="dark"] .search-form, html[data-theme="dark"] .search-form input { background: #2c2c2e; color: #f5f5f7; border-color: #3a3a3c; }
html[data-theme="dark"] .search-form input::placeholder { color: #8e8e93; }
html[data-theme="dark"] .discovery-hero .search-form { background: #2c2c2e; }
html[data-theme="dark"] .card-footer, html[data-theme="dark"] .detail-stats, html[data-theme="dark"] .detail-stats > div:last-child, html[data-theme="dark"] .editorial-pair,
html[data-theme="dark"] .facts > div, html[data-theme="dark"] .filter-tabs, html[data-theme="dark"] .hot-card-count, html[data-theme="dark"] .lt-filters, html[data-theme="dark"] .nr-meta,
html[data-theme="dark"] .nr-related, html[data-theme="dark"] .nr-body hr, html[data-theme="dark"] .nr-body th, html[data-theme="dark"] .nr-body td, html[data-theme="dark"] .popular-lane-heading,
html[data-theme="dark"] .hot-card:nth-child(odd), html[data-theme="dark"] .workspace > footer.site-footer, html[data-theme="dark"] .intro-strip { border-color: #2f2f32; }
html[data-theme="dark"] .hot-card-count, html[data-theme="dark"] .hot-card-count em { color: #8e8e93; }
html[data-theme="dark"] .vote-button[data-vote="up"] { background: #14301f; border-color: #1f4a30; color: #4ade80; }
html[data-theme="dark"] .vote-button[data-vote="down"] { background: #3a1a19; border-color: #5a2624; color: #f87171; }
html[data-theme="dark"] .card-rating { background: #14301f; color: #4ade80; }
html[data-theme="dark"] .detail-rating strong { color: #4ade80; }
html[data-theme="dark"] .theme-toggle { background: #2c2c2e; color: #ffd60a; border-color: #3a3a3c; }
html[data-theme="dark"] .hero-brand, html[data-theme="dark"] .discovery-hero { color: #fff; }
html[data-theme="dark"] .toast { background: #2c2c2e; color: #f5f5f7; }
html[data-theme="dark"] .avatar { background: #2c2c2e; color: #f5f5f7; }
html[data-theme="dark"] img.brand-mark, html[data-theme="dark"] .site-footer-brand img { filter: brightness(1.15); }
html[data-theme="dark"] img.brand-mark, html[data-theme="dark"] .site-footer-brand img { filter: invert(1) hue-rotate(180deg) brightness(1.1); }
/* Dark mode: hot cards must stand out from their lane */
html[data-theme="dark"] .popular-lane { background: #161618; border: 1px solid #26262a; }
html[data-theme="dark"] .hot-card { background: #232327; border: 1px solid #303035; border-radius: 12px; }
html[data-theme="dark"] .hot-card:hover { background: #2a2a2f; border-color: #3a3a40; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
html[data-theme="dark"] .hot-card-count { border-color: #303035; }
html[data-theme="dark"] .hot-card:nth-child(odd) { border-right-color: #303035; }
/* Dark mode: white top navigation text (active item keeps the accent colour) */
html[data-theme="dark"] .top-nav-link:not(.active), html[data-theme="dark"] .topbar-actions > a, html[data-theme="dark"] .nav-brand-title { color: #f5f5f7; }
html[data-theme="dark"] .top-nav-link:not(.active):hover { color: #fff; background: #2c2c2e; }

/* ===== Top navigation redesign: larger pill links ===== */
.topbar-nav { gap: 6px; }
.top-nav-link {
  padding: 10px 18px;
  border-radius: 12px;
  color: #3a3f47;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
}
.top-nav-link:hover { color: #ff650f; background: #fff3ea; }
.top-nav-link.active { color: #ff650f; background: #fff1e6; }
.top-nav-link.active::before { display: none; }
.top-nav-link:nth-child(2)::after { top: 9px; right: 10px; }
.topbar-actions { font-size: 15px; }
html[data-theme="dark"] .top-nav-link:not(.active) { color: #f5f5f7; }
html[data-theme="dark"] .top-nav-link:not(.active):hover { color: #ffb37a; background: #2c2c2e; }
html[data-theme="dark"] .top-nav-link.active { color: #ffb37a; background: #3a2a1f; }
@media (max-width: 1000px) {
  .top-nav-link { padding: 8px 12px; font-size: 15px; }
}
.gtm-noscript { display: none; visibility: hidden; }
/* Hot-word entry delays via nth-child (no inline styles, keeps CSP strict) */
.discovery-hero .search-hints a:nth-of-type(1) { --hotword-index: 0; }
.discovery-hero .search-hints a:nth-of-type(2) { --hotword-index: 1; }
.discovery-hero .search-hints a:nth-of-type(3) { --hotword-index: 2; }
.discovery-hero .search-hints a:nth-of-type(4) { --hotword-index: 3; }
.discovery-hero .search-hints a:nth-of-type(5) { --hotword-index: 4; }
.discovery-hero .search-hints a:nth-of-type(6) { --hotword-index: 5; }
/* Home article cards: identical heights so the two lanes line up */
.home-articles .popular-section-heading { align-items: center; min-height: 48px; margin-bottom: 12px; }
.home-articles .nr-card.compact { height: 150px; padding: 16px 20px; }
.home-articles .nr-card.compact h3 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 6px; }
.home-articles .nr-card.compact p { -webkit-line-clamp: 2; min-height: calc(1.5em * 2); }
.home-articles .nr-card.compact time { padding-top: 8px; }
@media (max-width: 760px) { .home-articles .nr-card.compact { height: auto; } }
.home-articles .nr-card.compact h3 { display: block; -webkit-line-clamp: unset; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; line-height: 1.45; padding-top: 1px; }
.home-articles .nr-grid-home { grid-template-columns: minmax(0, 1fr); }
.home-articles .nr-card.compact { height: auto; min-width: 0; }
.home-articles .nr-card.compact .nr-kicker, .home-articles .nr-card.compact h3, .home-articles .nr-card.compact p { flex: none; }
.home-articles .nr-card.compact h3 { height: auto; max-height: none; }
.home-articles .nr-card.compact p { height: calc(1.5em * 2); min-height: 0; }
/* Home article cards: white cards with a hairline border so they read against the grey page */
.home-articles .nr-card.compact { background: #fff; border: 1px solid #e6e6ea; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.home-articles .nr-card.compact:hover { background: #fff; border-color: #d2d2d7; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }
html[data-theme="dark"] .home-articles .nr-card.compact { background: #232327; border-color: #303035; box-shadow: none; }
html[data-theme="dark"] .home-articles .nr-card.compact:hover { background: #2a2a2f; border-color: #3a3a40; }
