:root {
  --paper: #ffffff;
  --surface: #fff;
  --soft: #f4f6f8;
  --ink: #26313b;
  --muted: #697581;
  --line: #dfe3e8;
  --line-dark: #c8cfd7;
  --navy: #17212b;
  --navy-2: #263542;
  --yellow-soft: #fdf3d7;
  --shell: 1200px;
  --radius: 0.5rem;
  --shadow: 0 8px 22px rgb(23 33 43 / 8%);
  --sans: "PingFang SC", "Source Han Sans CN", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --serif: var(--sans);
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
}

.home-v2-page {
  color: var(--ink);
  background: var(--paper);
}

.home-v2 a {
  text-underline-offset: 0.2em;
}

.home-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 23rem);
  align-items: stretch;
  gap: clamp(2.75rem, 4vw, 4rem);
  padding-block: clamp(2.6rem, 3.75vw, 3rem) clamp(2.6rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}

.home-board__selector {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: center;
}

.home-board__selector h1 {
  margin: 0;
  color: #1a1c1f;
  font-family: var(--sans);
  font-size: clamp(2.5rem, 4.6vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.16;
  text-wrap: balance;
}

.home-board__lead {
  max-width: none;
  margin: 1.15rem 0 0;
  color: #53606c;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.home-today {
  min-width: 0;
  padding-left: clamp(1.75rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
}

.home-today > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--navy);
}

.home-today h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.42rem;
  font-weight: 700;
}

.home-today header a {
  color: var(--brand-red);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-today__row {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr) 1.125rem;
  gap: 0.8rem;
  align-items: center;
  min-height: 6.95rem;
  color: inherit;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.home-today__row time {
  color: #67737e;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: nowrap;
}

.home-today__row small,
.home-today__row strong {
  display: block;
}

.home-today__row small {
  color: #6b7680;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.home-today__row strong {
  display: -webkit-box;
  margin-top: 0.3rem;
  overflow: hidden;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-today__row svg {
  justify-self: end;
  color: #5e6a75;
  transition: transform 160ms ease, color 160ms ease;
}

.home-today__row:hover strong,
.home-today__row:hover svg {
  color: var(--brand-red);
}

.home-today__row:hover svg {
  transform: translateX(0.2rem);
}

.home-board__carousel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-carousel__controls {
  display: flex;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  gap: 0.45rem;
}

.home-carousel__controls button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgb(31 35 41 / 18%);
  cursor: pointer;
}

.home-carousel__controls button:hover {
  color: #fff;
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.home-carousel__controls button:focus-visible,
.home-carousel__dots button:focus-visible,
.home-carousel__slide:focus-visible {
  outline: 3px solid rgb(230 0 18 / 26%);
  outline-offset: 2px;
}

.home-carousel__stage {
  flex: 1;
  min-height: 21rem;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border-radius: 0.875rem;
}

.home-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 420ms cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

.home-carousel__slide {
  min-width: 100%;
  display: grid;
  position: relative;
  overflow: hidden;
  flex: 0 0 100%;
  color: #fff;
  background: var(--navy);
  text-decoration: none;
}

.home-carousel__slide > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms cubic-bezier(.16, 1, .3, 1);
}

.home-carousel__slide.is-question > img {
  padding: 2.5rem 5rem 6rem;
  object-fit: contain;
  background: var(--soft);
}

.home-carousel__content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgb(31 35 41 / 4%) 18%, rgb(31 35 41 / 96%) 100%);
}

.home-carousel__content small,
.home-carousel__content strong,
.home-carousel__content em,
.home-carousel__action {
  display: block;
  font-style: normal;
}

.home-carousel__content small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #e8e9ec;
  font-size: 0.8125rem;
  font-weight: 700;
}

.home-carousel__content small b {
  color: #fff;
  font-weight: 800;
}

.home-carousel__content strong {
  display: -webkit-box;
  max-width: 28ch;
  margin-top: 0.45rem;
  overflow: hidden;
  color: #fff;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-carousel__content em {
  display: -webkit-box;
  max-width: 58ch;
  margin-top: 0.6rem;
  overflow: hidden;
  color: #e8e9ec;
  font-size: 0.875rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-carousel__action {
  width: fit-content;
  margin-top: 0.8rem;
  padding-bottom: 0.12rem;
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 58%);
  font-size: 0.8125rem;
  font-weight: 800;
}

.home-carousel__slide:hover,
.home-carousel__slide:focus-visible {
  color: #fff;
}

.home-carousel__slide:hover > img {
  transform: scale(1.035);
}

.home-carousel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.home-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.home-carousel__dots button {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.home-carousel__dots button span {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--line-dark);
  border-radius: 999px;
  transition: width 180ms ease-out, background-color 180ms ease-out;
}

.home-carousel__dots button[aria-current="true"] span {
  width: 1.15rem;
  background: var(--brand-red);
}

.home-v2-query {
  width: min(100%, 52rem);
  margin-top: 2rem;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 0.5rem;
  box-shadow: none;
}

.home-v2-query__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
}

.home-v2-query__spark {
  flex: none;
  color: var(--brand-red);
}

.home-v2-query textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  padding: 0.5rem 0;
  color: #30383e;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  caret-color: var(--brand-red);
}

.home-v2-query textarea::placeholder {
  color: #9aa1a6;
}

.home-v2-query:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgb(215 25 32 / 11%);
}

.home-v2-query__main button {
  min-height: 3.4rem;
  padding: 0 1.45rem;
  color: #fff;
  background: var(--brand-red);
  border: 0;
  border-radius: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.home-v2-query__main button:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
}

.home-v2-query .home-query-error {
  margin: 0;
}

.home-v2-query .home-query-error:not(:empty) {
  margin-top: 0.5rem;
}

.home-v2-stages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.home-v2-stages__label {
  flex: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.home-v2-stages ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-v2-stages button {
  padding: 0.18rem 0;
  color: #4f575d;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.home-v2-stages button:hover {
  color: var(--brand-red);
  background: transparent;
  border-color: var(--brand-red);
}

.home-v3-hero-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  margin: 1.25rem 0 0;
  color: #5d666c;
  font-size: 0.84rem;
  font-weight: 500;
}

.home-v3-hero-note a {
  color: #5d666c;
  text-decoration: underline;
}

.home-v3-hero-note a:hover {
  color: var(--brand-red);
}

.home-v2-section {
  padding-block: clamp(3.6rem, 5.5vw, 5.4rem);
}

.home-v2-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.home-v2-heading > div {
  display: grid;
  gap: 0.45rem;
}

.home-v2-heading h2 {
  position: relative;
  margin: 0;
  padding-left: 0.85rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.35vw, 2.15rem);
  font-weight: 700;

  line-height: 1.3;
}

.home-v2-heading h2::before {
  content: "";
  position: absolute;
  top: 0.16em;
  bottom: 0.16em;
  left: 0;
  width: 0.3rem;
  background: var(--brand-red);
  border-radius: 2px;
}

.home-v2-heading p {
  margin: 0;
  color: #697581;
  font-size: 0.95rem;
}

.home-v2-heading > a {
  color: var(--brand-red);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.home-v3-question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  border-top: 1px solid var(--line-dark);
}

.home-v3-question-row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) minmax(7.5rem, auto);
  gap: 1rem;
  align-items: center;
  min-height: 8.4rem;
  padding: 1.15rem 0;
  color: inherit;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.home-v3-question-row:hover {
  background: #fafbfc;
}

.home-v3-question-row:nth-child(odd) {
  padding-right: 1.25rem;
  border-right: 1px solid var(--line);
}

.home-v3-question-row:nth-child(even) {
  padding-left: 1.25rem;
}

.home-v3-question-index {
  align-self: start;
  padding-top: 0.12rem;
  color: var(--brand-red);
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 700;
}

.home-v3-question-copy {
  min-width: 0;
}

.home-v3-question-copy > span {
  display: block;
  margin-bottom: 0.35rem;
  color: #697581;
  font-size: 0.8125rem;
  font-weight: 600;
}

.home-v3-question-copy h3,
.home-v3-question-copy p {
  margin: 0;
}

.home-v3-question-copy h3 {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
}

.home-v3-question-copy p {
  margin-top: 0.45rem;
  overflow: hidden;
  color: #5f6a74;
  font-size: 0.86rem;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-v3-question-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.6rem;
  align-items: center;
  justify-items: end;
  min-width: 0;
  color: #5f6a74;
  text-align: right;
}

.home-v3-question-meta small,
.home-v3-question-meta strong {
  display: block;
  grid-column: 1;
}

.home-v3-question-meta small {
  color: #7a858f;
  font-size: 0.8125rem;
}

.home-v3-question-meta strong {
  max-width: 10rem;
  overflow: hidden;
  color: #303a43;
  font-size: 0.84rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-v3-question-meta svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  transition: transform 160ms ease, color 160ms ease;
}

.home-v3-question-row:hover .home-v3-question-meta svg {
  color: var(--brand-red);
  transform: translateX(0.2rem);
}

.home-question-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  color: #5f6a74;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  font-size: 0.84rem;
  line-height: 1.6;
}

.home-question-note a {
  flex: none;
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: none;
}

.home-v2-solutions {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.home-v4-comparison-scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line-dark);
}

.home-v4-comparison {
  width: 100%;
  min-width: 54rem;
  border-collapse: collapse;
  table-layout: fixed;
}

.home-v4-comparison thead {
  color: var(--navy);
  background: var(--surface);
}

.home-v4-comparison thead th {
  background: var(--surface);
}

.home-v4-comparison th,
.home-v4-comparison td {
  padding: 1.15rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-v4-comparison tr > *:last-child {
  border-right: 0;
}

.home-v4-comparison tbody tr:last-child > * {
  border-bottom: 0;
}

.home-v4-comparison thead > tr > th:first-child,
.home-v4-comparison tbody th {
  width: 8.5rem;
  color: #454c51;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 700;
}

.home-v4-comparison thead th:not(:first-child) {
  padding: 0.9rem 1.1rem;
}

.home-v4-comparison thead a {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.home-v4-comparison thead img {
  width: 5rem;
  height: 3.75rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.home-v4-comparison thead strong,
.home-v4-comparison thead small,
.home-v4-comparison tbody td > small,
.home-v4-comparison tbody td > strong,
.home-v4-comparison tbody td > a {
  display: block;
}

.home-v4-comparison thead strong {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
}

.home-v4-comparison thead small,
.home-v4-comparison tbody td > small {
  margin-top: 0.18rem;
  color: #737b80;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.home-v4-comparison tbody td > strong {
  margin-top: 0.2rem;
  color: #30373c;
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-v4-comparison tbody td > a {
  margin-top: 0.5rem;
  color: var(--brand-red);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.home-v4-comparison tbody tr:hover > * {
  background: #fafbfc;
}

.home-v4-comparison-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  color: #6d7479;
  font-size: 0.84rem;
}

.home-v4-comparison-footer a {
  color: var(--brand-red);
  font-weight: 900;
  text-decoration: none;
}

.home-v2-news {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.home-news-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-dark);
}

.home-news-col {
  min-width: 0;
}

.home-news-col > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--navy);
}

.home-news-col h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.home-news-col > header a {
  flex: none;
  color: var(--brand-red);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.home-news-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-news-col li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.66rem 0;
  border-bottom: 1px solid var(--line);
}

.home-news-col li a {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-col li a:hover {
  color: var(--brand-red);
}

.home-news-col li time {
  flex: none;
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.home-news-col__empty {
  margin: 0;
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.home-v2-news-empty {
  padding: 2rem;
  background: var(--soft);
}

.home-v2-news-empty h3,
.home-v2-news-empty p {
  margin: 0;
}

.home-v2-news-empty p {
  margin-top: 0.5rem;
  color: #5d666c;
}

.home-v3-news-nav,
.articles-index__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 1rem;
  border-block: 1px solid var(--line);
}

.home-v3-news-nav button,
.articles-index__nav button {
  border: 0;
  padding: 0.78rem 1.2rem;
  color: #454c51;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}

.home-v3-news-nav button:hover,
.articles-index__nav button:hover {
  color: var(--brand-red);
  background: rgb(230 0 18 / 6%);
}

.home-v3-news-nav button[aria-selected="true"],
.articles-index__nav button[aria-selected="true"] {
  color: #fff;
  background: var(--brand-red);
}

.home-v3-news-nav button:focus-visible,
.articles-index__nav button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-red) 38%, white);
  outline-offset: -3px;
}

.home-v3-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr);
  gap: 1.25rem;
  align-items: stretch;
}

.home-v3-news-feature {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(17rem, 1fr) auto;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  border-radius: 0.35rem;
  text-decoration: none;
}

.home-v3-news-feature > img {
  width: 100%;
  height: 100%;
  position: static;
  object-fit: cover;
  object-position: center;
  transition: transform 320ms cubic-bezier(.16, 1, .3, 1);
}

.home-v3-news-feature__content {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.4rem 1.35rem;
  background: var(--navy);
}

.home-v3-news-feature__content small,
.home-v3-news-feature__content strong,
.home-v3-news-feature__content em,
.home-v3-news-feature__content > span {
  display: block;
  font-style: normal;
}

.home-v3-news-feature__content small {
  color: #e8eef3;
  font-size: 0.8125rem;
  font-weight: 800;
}

.home-v3-news-feature__content strong {
  display: -webkit-box;
  max-width: 24ch;
  margin-top: 0.45rem;
  overflow: hidden;
  color: #fff;
  font-size: clamp(1.22rem, 1.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-v3-news-feature__content em {
  max-width: 60ch;
  margin-top: 0.6rem;
  color: #cad3da;
  font-size: 0.9rem;
  line-height: 1.65;
}

.home-v3-news-feature__content > span {
  margin-top: 0.7rem;
  color: #c3d4e0;
  font-size: 0.8125rem;
}

.home-v3-news-feature:hover,
.home-v3-news-feature:focus-visible {
  color: #fff;
}

.home-v3-news-feature:hover > img,
.home-v3-news-feature:focus-visible > img {
  transform: scale(1.025);
}

.home-v3-news-rail,
.articles-index__rail {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--brand-red);
}

.home-v3-news-rail .portal-news-item,
.articles-index__rail .portal-news-item {
  flex: 1;
}

.home-v3-news-guide {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
}

.home-v3-news-guide h3,
.home-v3-news-guide p {
  margin: 0;
}

.home-v3-news-guide p {
  max-width: 42ch;
  margin-top: 0.5rem;
  color: #5d666c;
  line-height: 1.65;
}

.home-v3-news-guide a {
  margin-top: 1rem;
  color: var(--brand-red);
  font-weight: 900;
  text-decoration: none;
}

.portal-news-item {
  border-radius: 0;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 0;
  color: #30373c;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.portal-news-item > img {
  width: 6.5rem;
  height: 4.55rem;
  object-fit: cover;
  background: var(--soft);
  mix-blend-mode: normal;
}

.portal-news-item > span,
.portal-news-item small,
.portal-news-item strong,
.portal-news-item em {
  min-width: 0;
  display: block;
  font-style: normal;
}

.portal-news-item small {
  color: #5d666c;
  font-size: 0.8125rem;
  font-weight: 700;
}

.portal-news-item strong {
  margin-top: 0.22rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.portal-news-item em {
  margin-top: 0.22rem;
  color: #5d666c;
  font-size: 0.85rem;
  line-height: 1.55;
}

.portal-news-item:hover strong {
  color: var(--brand-red);
}

.home-v3-news-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.1rem;
  color: #5d666c;
  font-size: 0.875rem;
}

.home-v3-news-footer a {
  color: var(--brand-red);
  font-weight: 900;
  text-decoration: none;
}




.site-footer--compact__divider {
  width: 1px;
  height: 2rem;
  background: #648097;
}




@media (max-width: 980px) {
  .home-board {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .home-board__lead {
    max-width: 40rem;
    white-space: normal;
  }

  .home-today {
    padding: 2rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .home-v3-question-list { grid-template-columns: 1fr; }
  .home-v3-question-row:nth-child(odd),
  .home-v3-question-row:nth-child(even) { padding-inline: 0; border-right: 0; }
  .home-v3-news-layout { grid-template-columns: 1fr; }
  .home-news-cols { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 700px) {
  .home-board { gap: 2.5rem; padding-block: 2.6rem 2.2rem; }
  .home-board__selector h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .home-board__lead { font-size: 0.95rem; line-height: 1.65; }
  .home-carousel__stage { height: 22rem; }
  .home-carousel__content { padding: 1.2rem; }
  .home-carousel__content strong { max-width: 100%; font-size: clamp(1.3rem, 6vw, 1.65rem); }
  .home-carousel__content em { font-size: 0.8125rem; -webkit-line-clamp: 2; }
  .home-carousel__slide.is-question > img { padding: 1.5rem 2rem 5.5rem; }
  .home-carousel__footer { gap: 0.4rem; }
  .home-carousel__dots { gap: 0; }
  .home-carousel__dots button { width: 1.5rem; }
  .home-v2-query { margin-top: 1.2rem; padding: 0.65rem 0.7rem; }
  .home-v2-query__main { grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; }
  .home-v2-query textarea { font-size: 0.95rem; }
  .home-v2-query__main button { grid-column: 1 / -1; width: 100%; min-height: 3rem; }
  .home-v2-stages { align-items: flex-start; }
  .home-v3-hero-note { font-size: 0.84rem; line-height: 1.55; }
  .home-v2-section { padding-block: 2rem; }
  .home-v2-heading { align-items: flex-start; }
  .home-v2-heading > div { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .home-v2-heading h2 { font-size: 1.55rem; }
  .home-v2-heading p { font-size: 0.84rem; line-height: 1.5; }
  .home-v2-heading > a { font-size: 0.84rem; }
  .home-today__row { grid-template-columns: 4.7rem minmax(0, 1fr) auto; min-height: 6.4rem; }
  .home-v3-question-row { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem; min-height: 0; padding-block: 1.15rem; }
  .home-v3-question-meta { grid-column: 2; justify-items: start; text-align: left; }
  .home-v3-question-meta svg { display: none; }
  .home-question-note { align-items: flex-start; flex-direction: column; gap: 0.65rem; }
  .home-v4-comparison-footer { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .home-v3-news-nav,
  .articles-index__nav { display: grid; grid-template-columns: repeat(3, 1fr); }
  .home-v3-news-nav button,
  .articles-index__nav button { padding: 0.65rem 0.3rem; font-size: 0.84rem; text-align: center; }
  .home-v3-news-feature { grid-template-rows: 15rem auto; }
  .home-v3-news-feature__content { min-height: 0; }
  .home-v3-news-feature__content { padding: 1.1rem; }
  .home-v3-news-feature__content em { font-size: 0.8125rem; }
  .portal-news-item { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.7rem; }
  .portal-news-item > img { width: 5.5rem; height: 4.1rem; }
  .portal-news-item strong { font-size: 0.92rem; }
  .portal-news-item em { display: none; }
  .home-v3-news-footer { justify-content: flex-start; flex-wrap: wrap; }
  .site-footer--compact > .shell { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.4rem; }
  .site-footer--compact__divider { display: none; }
  .site-footer--compact nav { flex-wrap: wrap; justify-content: flex-start; gap: 0.75rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-v2-query__main button { transition: none; }
  .home-v3-news-feature > img { transition: none; }
  .articles-index__feature > img,
  .home-carousel__track,
  .home-carousel__slide > img,
  .home-carousel__dots button span { transition: none; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-color: rgb(37 43 48 / 30%);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy-2);
}

button,
input {
  font: inherit;
}

::selection {
  color: #1a1c1f;
  background: rgb(230 0 18 / 14%);
}

input,
textarea,
select {
  caret-color: #e60012;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #e60012;
}

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

:focus-visible {
  outline: 3px solid rgb(180 35 50 / 40%);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 2.5rem), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  min-height: 4.8rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand__mark {
  width: 2.05rem;
  height: 2.05rem;
  flex: none;
  display: block;
  overflow: hidden;
  background: var(--navy);
  border-radius: 0.4rem;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.28rem;
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.brand small {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 1.6rem;
}

.main-nav a {
  position: relative;
  padding: 1.62rem 0;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1.05rem;
  left: 0;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

.doc-meta {
  margin: 0 0 0.55rem;
  color: var(--brand-red);
  font-size: 0.84rem;
  font-weight: 700;
}

.doc-no {
  margin-right: 0.6rem;
  color: var(--brand-red);
  font-size: 0.85rem;
  font-weight: 800;
}

.text-link {
  color: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 750;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  color: #fff;
  background: var(--brand-red-dark);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line-dark);
  color: #565b60;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
}

.state-text {
  color: #778892;
  font-size: 0.8125rem;
}

.block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 2px solid var(--navy);
}

.block-heading {
  padding: 0.55rem 0 0;
}

.block-heading p,
.block-heading h2 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.block-heading span,
.block-heading a {
  color: var(--muted);
  font-size: 0.8125rem;
}

.block-heading--large {
  margin-bottom: 0.5rem;
}

.block-heading--large h2 {
  font-size: 1.5rem;
  letter-spacing: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);

  line-height: 1.3;
}

.section-heading > p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.articles-index {
  padding-block: 1.5rem 3.5rem;
}

.articles-index__header {
  padding: 1.9rem 0 1rem;
}

.articles-index__header h1,
.articles-index__header p {
  margin: 0;
}

.articles-index__header h1 {
  color: var(--business-navy);
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);

  line-height: 1.12;
  text-wrap: balance;
}

.articles-index__header p {
  max-width: 65ch;
  margin-top: 0.7rem;
  color: #5d666c;
  font-size: 0.95rem;
  line-height: 1.7;
}

.articles-index__header .articles-index__nav {
  margin: 1.25rem 0 0;
}

.articles-index__portal {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(22rem, 0.88fr);
  gap: 1.3rem;
  align-items: stretch;
}

.articles-index__portal[hidden] {
  display: none;
}

.articles-index__feature {
  min-height: 25rem;
  display: grid;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--business-navy);
  border-radius: 0.875rem;
  text-decoration: none;
}

.articles-index__feature > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 320ms cubic-bezier(.16, 1, .3, 1);
}

.articles-index__feature > span {
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  padding: 1.7rem;
  background: linear-gradient(180deg, rgb(37 43 48 / 2%) 15%, rgb(37 43 48 / 94%) 100%);
}

.articles-index__feature small,
.articles-index__feature strong,
.articles-index__feature em,
.articles-index__feature span > span {
  display: block;
  font-style: normal;
}

.articles-index__feature small {
  color: #d3d2c7;
  font-size: 0.8125rem;
  font-weight: 800;
}

.articles-index__feature strong {
  max-width: 25ch;
  margin-top: 0.45rem;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.35;
}

.articles-index__feature em {
  max-width: 62ch;
  margin-top: 0.55rem;
  color: #dddcd2;
  font-size: 0.82rem;
  line-height: 1.6;
}

.articles-index__feature span > span {
  margin-top: 0.7rem;
  color: #c9c8bd;
  font-size: 0.8125rem;
}

.articles-index__feature:hover,
.articles-index__feature:focus-visible {
  color: #fff;
}

.articles-index__feature:hover > img,
.articles-index__feature:focus-visible > img {
  transform: scale(1.025);
}

.articles-index__empty {
  min-height: 25rem;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  padding: 2rem;
  color: #5d666c;
  background: var(--soft);
}

.articles-index__directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.articles-index__directory > section {
  border-top: 2px solid var(--brand-red);
}

.articles-index__directory header {
  min-height: 3.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--business-line);
}

.articles-index__directory h2 {
  margin: 0;
  color: var(--business-navy);
  font-size: 1.05rem;
}

.articles-index__directory header a {
  color: #5d666c;
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
}

.articles-index__directory-description,
.articles-index__directory-empty {
  margin: 0;
  padding: 0.8rem 0;
  color: #5d666c;
  border-bottom: 1px solid var(--business-line);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.articles-index__directory-empty {
  color: #7a8b98;
}

.articles-index__directory ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.articles-index__directory li {
  border-bottom: 1px solid var(--business-line);
}

.articles-index__directory li > a {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  color: #30373c;
  text-decoration: none;
}

.articles-index__directory li strong,
.articles-index__directory li span,
.articles-index__directory li em {
  display: block;
  font-style: normal;
}

.articles-index__directory li strong {
  font-size: 0.86rem;
  line-height: 1.4;
}

.articles-index__directory li span,
.articles-index__directory li em {
  margin-top: 0.25rem;
  color: #5d666c;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.articles-index__directory li > a:hover strong {
  color: var(--brand-red);
}

.article-category {
  padding-block: 1.5rem 4rem;
}

.article-category__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--business-line);
}

.article-category__header h1,
.article-category__header p {
  margin: 0;
}

.article-category__header h1 {
  color: var(--business-navy);
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);

}

.article-category__header p {
  max-width: 65ch;
  margin-top: 0.65rem;
  color: #5d666c;
  line-height: 1.7;
}

.article-category__nav {
  display: flex;
  gap: 1rem;
}

.article-category__nav a {
  color: #5d666c;
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
}

.article-category__nav a[aria-current="page"] {
  color: var(--brand-red);
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.article-category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-category-list li {
  border-bottom: 1px solid var(--business-line);
}

.article-category-list a {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 0;
  color: #30373c;
  text-decoration: none;
}

.article-category-list small,
.article-category-list strong,
.article-category-list em {
  display: block;
  font-style: normal;
}

.article-category-list small {
  color: #5d666c;
  font-size: 0.8125rem;
  font-weight: 800;
}

.article-category-list strong {
  max-width: 42ch;
  margin-top: 0.25rem;
  color: var(--business-navy);
  font-size: 1.05rem;
  line-height: 1.45;
}

.article-category-list em {
  max-width: 72ch;
  margin-top: 0.35rem;
  color: #5d666c;
  font-size: 0.84rem;
  line-height: 1.6;
}

.article-category-list b {
  color: var(--brand-red);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.article-category-list a:hover strong {
  color: var(--brand-red);
}

.article-category-empty {
  padding: 3rem 0;
}

.article-category-empty h2,
.article-category-empty p {
  margin: 0;
}

.article-category-empty p {
  margin-top: 0.5rem;
  color: #5d666c;
}

@media (max-width: 840px) {
  .articles-index {
    padding-block: 1.2rem 3rem;
  }

  .articles-index__header {
    padding: 1.7rem 0 1.5rem;
  }

  .articles-index__portal,
  .articles-index__directory {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article-category__header {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .article-category__nav {
    flex-wrap: wrap;
  }

  .articles-index__feature,
  .articles-index__feature > span,
  .articles-index__empty {
    min-height: 20rem;
  }
}

.page-main,
.narrow-page {
  padding-block: 1.2rem 5rem;
}

.narrow-page {
  max-width: 900px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-block: 0.7rem 1.4rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.page-header {
  max-width: 52rem;
  margin: 2.2rem 0 2.8rem;
}

.page-header h1 {
  max-width: 20em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.22;
  text-wrap: balance;
}

.page-header > p:last-child {
  max-width: 47rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 4rem;
  align-items: start;
}

.evidence-article {
  min-width: 0;
}

.article-header {
  padding: 1.7rem 0 2.2rem;
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--line-dark);
}

.article-header h1 {
  max-width: 20em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.22;
  text-wrap: balance;

}

.article-intro {
  max-width: 52rem;
  margin: 1.25rem 0;
  color: #4a5459;
  font-size: 1.07rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.3rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.direct-answer {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.4rem;
  background: var(--navy);
  color: #fff;
}

.direct-answer h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.direct-answer > div p {
  margin: 0 0 0.35rem;
  color: #b0b5a9;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.direct-answer > p {
  margin: 0;
  color: #dddcd2;
}

.article-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.article-section > div {
  min-width: 0;
}


.article-section h2 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.55rem;

  line-height: 1.3;
}

.article-section p {
  color: #42534f;
}

.markdown-body {
  padding: 1.5rem 0 0;
  color: #42534f;
}

.markdown-body h2 {
  margin: 2.5rem 0 0.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;

  line-height: 1.3;
}

.markdown-body h3 {
  margin: 1.7rem 0 0.55rem;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.15rem;
}

.markdown-body p,
.markdown-body li {
  line-height: 1.8;
}

.markdown-body code {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 0.78em;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 1.2rem 0;
  border: 1px solid var(--line-dark);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

th,
td {
  padding: 0.75rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: #fff;
  background: var(--navy);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.formula-list {
  margin: 1.2rem 0;
  border-top: 1px solid var(--line-dark);
}

.formula-list > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.formula-list span {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
}

.formula-list strong {
  font-size: 1rem;
}

.warning-note {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  background: var(--yellow-soft);
  border: 1px solid #d9c477;
  border-radius: var(--radius);
}

.warning-note strong {
  font-size: 0.8125rem;
}

.warning-note p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.4rem;
  padding: 0;
  counter-reset: checks;
  list-style: none;
}

.check-list li {
  position: relative;
  min-height: 3rem;
  padding: 0.55rem 0 0.55rem 2.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  counter-increment: checks;
}

.check-list li::before {
  content: counter(checks, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--navy);
  font-family: var(--mono);
}

.source-list {
  padding: 0;
  list-style: none;
}

.source-list a {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  text-decoration: none;
}

.source-list span {
  color: var(--muted);
}

.revision-line {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.article-sidebar {
  position: sticky;
  top: 6.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.toc {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border-top: 2px solid var(--navy);
}

.toc p {
  margin: 0 0 0.7rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.toc a {
  display: block;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  text-decoration: none;
}

.sidebar-disclosure,
.source-card,
.unknown-card {
  padding: 1.1rem;
  background: var(--soft);
}

.sidebar-disclosure h2,
.source-card h2,
.unknown-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.sidebar-disclosure p,
.unknown-card li {
  font-size: 0.8125rem;
}

.sidebar-disclosure a {
  font-size: 0.8125rem;
  font-weight: 700;
}

.tool-page-main {
  padding-bottom: 5rem;
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3rem;
  align-items: end;
  padding: 2.8rem 0 2rem;
  border-top: 3px solid var(--navy);
}

.tool-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);

  line-height: 1.2;
}

.tool-hero > div:first-child > p:last-child {
  max-width: 46rem;
  color: var(--muted);
}

.tool-hero__formula {
  padding: 1rem 1.1rem;
  background: var(--soft);
  border-top: 3px solid var(--navy);
}

.tool-hero__formula span,
.tool-hero__formula strong {
  display: block;
}

.tool-hero__formula span {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
}

.tool-hero__formula strong {
  margin-top: 0.35rem;
  line-height: 1.35;
}

.tool-hero__formula p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.advisor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 1.2rem;
  align-items: start;
}

.advisor-form,
.advisor-result {
  background: var(--surface);
  border: 1px solid var(--line);
}

.advisor-form {
  padding: 1.25rem;
}

.advisor-form fieldset {
  margin: 0;
  padding: 1.3rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.advisor-form fieldset:first-child {
  padding-top: 0;
  border-top: 0;
}

.advisor-form legend {
  width: 100%;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.advisor-form legend span {
  margin-right: 0.7rem;
  color: var(--brand-red);
  font-size: 0.8125rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.choice-grid label,
.check-grid label {
  cursor: pointer;
}

.choice-grid label {
  position: relative;
}

.choice-grid input,
.check-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid label > span,
.check-grid label > span {
  display: block;
  min-height: 4.2rem;
  padding: 0.7rem 0.8rem;
  background: var(--soft);
  border: 1px solid var(--line);
}

.choice-grid strong,
.choice-grid small {
  display: block;
}

.choice-grid strong {
  font-size: 0.84rem;
}

.choice-grid small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.choice-grid input:checked + span,
.check-grid input:checked + span {
  background: var(--soft);
  border-color: var(--brand-red);
  box-shadow: inset 0 0 0 1px var(--brand-red);
}

.choice-grid input:focus-visible + span,
.check-grid input:focus-visible + span {
  outline: 3px solid rgb(180 35 50 / 40%);
  outline-offset: 2px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.field-grid label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.field-grid input {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  color: var(--ink);
  font-size: 0.85rem;
}

.field-grid small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 400;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.check-grid label {
  position: relative;
}

.check-grid label > span {
  min-height: auto;
  padding-left: 2rem;
  font-size: 0.8125rem;
}

.check-grid label > span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.8rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--line-dark);
  transform: translateY(-50%);
}

.check-grid input:checked + span::before {
  background: var(--brand-red);
  box-shadow: inset 0 0 0 2px #fff;
}

.advisor-submit {
  width: 100%;
  min-height: 3rem;
  color: #fff;
  background: var(--brand-red);
  border: 0;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.advisor-submit:hover {
  background: var(--brand-red-dark);
}

.advisor-result {
  position: sticky;
  top: 6.4rem;
  min-height: 32rem;
  padding: 1.25rem;
}

.result-empty {
  padding: 7rem 1.5rem;
  text-align: center;
}

.result-empty > span {
  color: var(--brand-red);
  font-size: 0.8125rem;
  font-weight: 800;
}

.result-empty h2 {
  margin: 0.4rem 0;
}

.result-empty p {
  color: var(--muted);
  font-size: 0.8125rem;
}

.result-summary {
  padding: 1rem;
  color: #fff;
  background: var(--navy);
}

.result-summary p,
.result-summary small {
  margin: 0;
  color: #b0b5a9;
  font-size: 0.8125rem;
}

.result-summary strong {
  display: block;
  margin: 0.2rem 0;
  font-size: 1.6rem;
}

.result-section {
  margin-top: 1rem;
}

.assessment-group + .assessment-group {
  margin-top: 0.8rem;
}

.assessment-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.8rem;
}

.candidate-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.candidate-row > span {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.candidate-row strong {
  font-size: 0.8125rem;
}

.candidate-row p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.candidate-row small {
  color: var(--muted);
  font-size: 0.8125rem;
}

.pending-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pending-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}

.pending-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  color: var(--brand-red);
  font-weight: 900;
}

.result-boundary {
  margin-top: 1rem;
  padding: 0.8rem;
  background: var(--yellow-soft);
}

.result-boundary strong {
  font-size: 0.8125rem;
}

.result-boundary p {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
}

.tool-evidence {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 3px solid var(--ink);
}

.formula-list--horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.formula-list--horizontal > div {
  display: block;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.formula-list--horizontal strong {
  display: block;
  margin-top: 0.35rem;
}

.tool-note {
  color: var(--muted);
  font-size: 0.8125rem;
}

.catalog-policy {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) 1.2fr auto;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.3rem;
  color: #fff;
  background: var(--navy);
}

.catalog-policy h2 {
  margin: 0;
  font-size: 1.25rem;
}

.catalog-policy ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #d3d2c7;
  font-size: 0.8125rem;
}

.catalog-policy .button-link {
  color: var(--brand-red);
  background: var(--surface);
}

.product-id {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  padding-top: 2.5rem;
}

.field-evidence-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 0.85fr) minmax(190px, 0.8fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.field-evidence-list dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.field-evidence-list dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0;
  font-size: 0.8125rem;
}

.field-evidence-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.product-detail__grid aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.source-card {
  background: var(--surface);
  border-top: 3px solid var(--navy);
}

.source-card dl {
  margin: 0.8rem 0;
}

.source-card dl div {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

.source-card dt {
  color: var(--muted);
}

.source-card dd {
  margin: 0.1rem 0 0;
  overflow-wrap: anywhere;
}

.unknown-card {
  background: var(--yellow-soft);
}

.unknown-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.source-record {
  background: var(--surface);
  border-top: 4px solid var(--navy);
}

.source-record__status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.source-record > dl {
  margin: 0;
  padding: 0 1rem;
}

.source-record > dl > div {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}

.source-record dt {
  color: var(--muted);
}

.source-record dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.source-record__claims {
  padding: 1.2rem;
}

.source-record__claims h2,
.method-section h2,
.about-sections h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.45rem;

}

.source-record__claims ul {
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.method-section,
.about-sections section {
  padding: 2rem 0;
  border-top: 1px solid var(--line-dark);
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.method-grid article {
  padding: 1rem;
  background: var(--surface);
  border-top: 3px solid var(--navy);
}

.method-grid article > span {
  color: var(--brand-red);
  font-size: 0.8125rem;
}

.method-grid h3 {
  margin: 0.6rem 0 0.25rem;
}

.method-grid p,
.method-section > p,
.about-sections p {
  color: var(--muted);
  font-size: 0.84rem;
}

.numbered-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0 0.75rem 2.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  counter-increment: method;
}

.numbered-list li::before {
  content: counter(method, decimal-leading-zero);
  position: absolute;
  margin-left: -2.6rem;
  color: var(--navy);
  font-family: var(--mono);
}

.numbered-list span {
  color: var(--muted);
}

.about-sections {
  max-width: 48rem;
}

.not-found {
  min-height: 58vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.25rem;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.not-found p {
  color: var(--muted);
}

.not-found > div > div {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.site-footer {
  color: #c8ccd2;
  background: #1f2329;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
  gap: 4rem;
  padding-block: 3.5rem;
}

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

.brand--footer .brand__mark {
  color: var(--business-navy);
  background: #fff;
}

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

.site-footer .brand--footer small {
  color: #9aa3ad;
}

.footer-grid > div:first-child > p {
  max-width: 34rem;
  color: #9aa3ad;
  font-size: 0.875rem;
}

.footer-grid h2 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.95rem;
}

.footer-grid > div:not(:first-child) a {
  display: block;
  padding: 0.3rem 0;
  color: #c3c9d1;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-bottom {
  display: grid;
  gap: 8px;
  padding-block: 1rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: #838983;
  font-size: 0.8125rem;
}

.footer-meta,
.footer-legal {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-legal { justify-content: space-between; gap: 8px 24px; }

.site-footer .footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: auto auto 1fr;
    gap: 1rem;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    padding: 0.3rem 0 0.8rem;
  }

  .site-header.is-menu-open .main-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav a {
    padding: 0.65rem 0.4rem;
    border-top: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line-dark);
    cursor: pointer;
  }

  .menu-toggle > span:first-child,
  .menu-toggle > span:first-child::before,
  .menu-toggle > span:first-child::after {
    width: 1rem;
    height: 1px;
    display: block;
    background: var(--ink);
  }

  .menu-toggle > span:first-child {
    position: relative;
  }

  .menu-toggle > span:first-child::before,
  .menu-toggle > span:first-child::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-toggle > span:first-child::before {
    top: -0.34rem;
  }

  .menu-toggle > span:first-child::after {
    top: 0.34rem;
  }
  .article-layout,
  .product-detail__grid {
    gap: 2rem;
  }
}

@media (max-width: 820px) {
  .article-layout,
  .tool-hero,
  .advisor-layout,
  .product-detail__grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar,
  .advisor-result {
    position: static;
  }

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

  .catalog-policy {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

.site-footer.site-footer--compact {
  padding: 0;
}

@media (max-width: 600px) {
  .shell {
    width: min(calc(100% - 1.5rem), var(--shell));
  }
  .brand small {
    display: none;
  }

  .site-header__inner {
    min-height: 4.1rem;
    grid-template-columns: 1fr auto;
  }

  .site-header.is-menu-open .main-nav {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p,
  .section-heading > a {
    display: block;
    margin-top: 0.6rem;
  }
  .article-sidebar,
  .choice-grid,
  .field-grid,
  .check-grid,
  .method-grid,
  .check-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-header {
    padding-top: 1rem;
  }

  .article-header h1 {
    font-size: 2.2rem;
  }

  .direct-answer,
  .article-section {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .direct-answer {
    padding: 1rem;
  }

  .article-section {
    padding: 2rem 0;
  }

  .formula-list > div,
  .source-list a,
  .source-record > dl > div,
  .numbered-list li,
  .field-evidence-list > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

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

  .formula-list--horizontal > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tool-hero {
    padding-top: 1.2rem;
    gap: 1rem;
  }

  .tool-hero h1 {
    font-size: 2.25rem;
  }

  .advisor-form,
  .advisor-result {
    padding: 0.85rem;
  }

  .candidate-row {
    grid-template-columns: 1.7rem 1fr;
  }

  .candidate-row small {
    grid-column: 2;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .footer-meta,
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .advisor-form {
    display: none !important;
  }

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

  .advisor-layout {
    display: block;
  }

  .advisor-result {
    border: 0;
  }
}

/* Portal MVP · 2026-08-16
   Industrial information-portal direction based on the approved prototype and
   docs/demo/cookingrobot.org.cn.html. Existing evidence pages keep their own layouts. */

body.home-page,
body.selector-page {
  color: var(--business-ink);
  background: var(--paper);
}

.portal-shell {
  width: min(calc(100% - 3rem), 1390px);
  margin-inline: auto;
}

.site-header {
  background: rgb(255 255 255 / 96%);
  border-color: #d4e1e9;
  box-shadow: 0 8px 28px rgb(8 39 67 / 5%);
}

.site-header .shell,
.site-footer .shell,

.site-header__inner {
  min-height: 5.25rem;
  gap: 2rem;
}

.brand__mark {
  position: relative;
  overflow: hidden;
  width: 2.45rem;
  height: 2.45rem;
  background: var(--business-navy);
  border-radius: 0.5rem;
}

.brand strong {
  color: var(--business-navy);
  font-size: 1.38rem;
}

.brand small {
  color: #668097;
}

.main-nav {
  gap: clamp(0.7rem, 1.5vw, 1.55rem);
}

.main-nav a {
  color: #28455e;
  font-size: 0.82rem;
}

.main-nav a::after {
  background: var(--brand-accent);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--business-navy);
}

/* Natural-language selector */
.selector-main {
  min-height: 70vh;
  padding: 1.8rem 0 5rem;
}

.selector-page .breadcrumbs {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.selector-query-form {
  overflow: hidden;
  background: var(--soft);
  border: 1px solid #aac8da;
  border-radius: 0.875rem;
  box-shadow: inset 0 1px 2px rgb(17 64 95 / 5%);
}

.selector-query-form textarea {
  width: 100%;
  min-height: 8rem;
  display: block;
  resize: vertical;
  padding: 1.2rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.95rem;
  line-height: 1.75;
}

.selector-query-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem;
  border-top: 1px solid #d7e5ed;
}

.selector-query-form small {
  padding-left: 0.5rem;
  color: #7b90a1;
  font-size: 0.8125rem;
}

.selector-query-form button {
  min-height: 3rem;
}

.selector-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.selector-examples button {
  padding: 0.38rem 0.7rem;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  font: inherit;
  cursor: pointer;
}

.selector-examples button:hover {
  color: #fff;
  background: #0d5f91;
}

.selector-result-shell {
  margin-top: 1.5rem;
  scroll-margin-top: 8rem;
}

.selector-result-shell:focus {
  outline: 0;
}

.selector-welcome,
.selector-loading,
.selector-empty-state {
  min-height: 18rem;
  display: grid;
  place-content: center;
  padding: 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 14px 36px rgb(17 64 95 / 7%);
  text-align: center;
}

.selector-welcome {
  grid-template-columns: auto minmax(0, 35rem);
  gap: 1.4rem;
  align-items: center;
  text-align: left;
}

.selector-welcome > span {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--business-navy);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
}

.selector-welcome h2,
.selector-loading h2,
.selector-empty-state h2 {
  margin: 0;
  color: var(--business-navy);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.selector-welcome p,
.selector-loading p,
.selector-empty-state p {
  color: #6d7479;
}

.selector-loading > span {
  width: 3.8rem;
  height: 3.8rem;
  display: block;
  margin: 0 auto 1.4rem;
  border: 4px solid #d4e7ef;
  border-top-color: var(--brand-red);
  border-radius: 50%;
  animation: selector-spin 850ms linear infinite;
}

.selector-loading > div {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.selector-loading > div span {
  padding: 0.35rem 0.6rem;
  color: var(--navy);
  background: var(--soft);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
}

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

.selector-empty-state > span {
  width: 4.4rem;
  height: 4.4rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.3rem;
  color: #fff;
  background: #a64a42;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 800;
}

.selector-empty-state button{
  justify-self: center;
  padding: 0.7rem 1rem;
  color: var(--business-navy);
  background: var(--surface);
  border: 1px solid #b7b6aa;
  border-radius: 0.5rem;
  font-weight: 800;
  cursor: pointer;
}

.selector-pill {
  padding: 0.45rem 0.65rem;
  background: var(--soft);
  border: 1px solid #c4dfe8;
  border-radius: 0.5rem;
}

.selector-pill small,
.selector-pill strong {
  display: block;
}

.selector-pill small {
  color: #73899a;
  font-size: 0.8125rem;
}

.selector-pill strong {
  color: var(--ink);
  font-size: 0.8125rem;
}

.selector-pill--default {
  background: #fff6e7;
  border-color: #efd5a9;
}

.selector-pill--muted {
  color: #728799;
  background: var(--soft);
  border-color: #d8e0e5;
}

.selector-comparison {
  margin-top: 1rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.selector-comparison summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  color: var(--business-navy);
  cursor: pointer;
  list-style: none;
}

.selector-comparison summary::-webkit-details-marker { display: none; }
.selector-comparison summary strong,
.selector-comparison summary small { display: block; }
.selector-comparison summary small { color: #6d7479; font-size: 0.8125rem; }
.selector-comparison summary i { color: var(--brand-red); font-size: 1.5rem; font-style: normal; }
.selector-comparison[open] summary i { transform: rotate(45deg); }

.selector-table-wrap {
  overflow-x: auto;
  border-top: 1px solid #d6e4ec;
}

.selector-comparison table {
  width: 100%;
  min-width: 56rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.selector-comparison th,
.selector-comparison td {
  padding: 0.9rem;
  border-right: 1px solid #d9d8ce;
  border-bottom: 1px solid #d9d8ce;
  text-align: left;
  vertical-align: top;
}

.selector-comparison thead th {
  color: #fff;
  background: var(--business-navy);
}

.selector-comparison tbody th span,
.selector-comparison tbody th strong,
.selector-comparison tbody th small {
  display: block;
}

.selector-comparison tbody th span { color: var(--brand-red); }
.selector-comparison tbody th small { color: #6d7479; font-weight: 400; }

.site-footer {
  color: #d0deea;
  background: #191e22;
}

.footer-grid {
  grid-template-columns: 1.4fr repeat(3, 0.6fr);
  gap: 3rem;
}

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

.brand--footer small,
.footer-grid > div:first-child > p,
.footer-grid > div:not(:first-child) a {
  color: #9fb4c5;
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .portal-shell,
  .site-header .shell,
  .site-footer .shell,
  .selector-main { padding-top: 0.8rem; }
  .selector-query-form > div { align-items: stretch; flex-direction: column; }
  .selector-query-form button { width: 100%; }
  .selector-welcome { grid-template-columns: 1fr; text-align: center; }
  .selector-welcome > span { margin: auto; }
  .selector-loading > div { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .selector-query-form button { transition: none; }
  .selector-loading > span { animation-duration: 2s; }
}

/* Compact business UI · 2026-08-19 */
:root {
  --business-navy: #17212b;
  --brand-red: #d71920;
  --brand-red-dark: #b9151b;
  --business-ink: #26313b;
  --business-muted: #697581;
  --business-line: #dfe3e8;
  --business-soft: #f4f6f8;
  --brand-accent: #d71920;
}

body {
  color: var(--business-ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(230 0 18 / 26%);
  outline-offset: 2px;
}

.shell,
.portal-shell {
  width: min(calc(100% - 2.5rem), 1200px);
}

.site-header {
  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid var(--business-line);
  box-shadow: none;
}

.site-header .shell,
.site-footer .shell {
  width: min(calc(100% - 2.5rem), 1200px);
}

.site-header__inner {
  min-height: 4.7rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1.6rem, 3vw, 3.2rem);
}

.brand {
  gap: 0.6rem;
  justify-self: start;
}

.brand__mark {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  background: var(--business-navy);
  border-radius: 0.5rem;
}

.brand strong {
  color: var(--business-navy);
  font-family: inherit;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand small {
  margin-top: 0.08rem;
  color: #72818c;
  font-size: 0.8125rem;
  letter-spacing: 0;
}

.main-nav {
  justify-content: center;
  gap: clamp(1rem, 2.3vw, 2.1rem);
}

.main-nav a {
  padding: 1.62rem 0;
  color: #3c4348;
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a::after {
  bottom: 0.9rem;
  background: var(--brand-red);
}


.header-cooperation-link {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  color: #fff;
  background: var(--brand-red);
  border: 1px solid var(--brand-red);
  border-radius: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-cooperation-link:hover {
  color: #fff;
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
}


.selector-query-form button,
.search-page-form button,
.selector-condition-editor button,
.cooperation-panel button {
  min-height: 3.1rem;
  padding: 0 1.15rem;
  color: #fff;
  background: var(--brand-red);
  border: 0;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.selector-query-form button:hover,
.search-page-form button:hover,
.selector-condition-editor button:hover,
.cooperation-panel button:hover {
  background: var(--brand-red-dark);
}

.compact-page-header h1,
.selector-page-heading h1 {
  margin: 0;
  color: var(--business-navy);
  font-family: var(--serif);
  font-weight: 700;

}

.catalog-row img,
.selector-solution__media img,
.product-summary img {
  object-fit: contain;
  background: var(--soft);
  mix-blend-mode: multiply;
}

.selector-main {
  min-height: 60vh;
  padding: 1.8rem 0 4.5rem;
  background: #f7f8fa;
}

.selector-page .breadcrumbs {
  margin: 0 0 1.5rem;
}

.selector-page-heading {
  max-width: 56rem;
  margin-bottom: 1.25rem;
}

.selector-page-heading h1 {
  font-size: clamp(2rem, 3.7vw, 3.05rem);
  letter-spacing: -0.025em;
}

.selector-page-heading > p:last-child {
  margin: 0.7rem 0 0;
  color: var(--business-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.selector-query-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  padding: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 0.5rem;
  box-shadow: none;
}

.selector-query-form textarea {
  min-height: 5.8rem;
  padding: 0.8rem;
  resize: vertical;
  color: var(--business-ink);
  background: var(--surface);
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.6;
}

.selector-query-form > div {
  width: 12.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0;
  border: 0;
}

.selector-query-form small {
  color: #788995;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.selector-query-form button {
  min-height: 3rem;
}

.selector-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0 1.2rem;
  color: #72838f;
  font-size: 0.8125rem;
}

.selector-examples span {
  margin-right: 0.25rem;
  font-weight: 700;
}

.selector-examples button {
  padding: 0.18rem 0;
  color: var(--brand-red);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(215 25 32 / 35%);
  border-radius: 0;
  font-size: 0.8125rem;
  cursor: pointer;
}

.selector-examples button:hover {
  color: var(--brand-red-dark);
  background: transparent;
  border-color: var(--brand-red-dark);
}

.selector-result-shell {
  min-height: 0;
}

.selector-welcome,
.selector-loading,
.selector-empty-state {
  min-height: 9rem;
  display: grid;
  place-content: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  box-shadow: none;
  text-align: center;
}

.selector-welcome {
  grid-template-columns: minmax(0, 38rem);
  gap: 0;
  text-align: center;
}

.selector-welcome h2,
.selector-loading h2,
.selector-empty-state h2 {
  margin: 0;
  color: var(--business-navy);
  font-family: inherit;
  font-size: 1.2rem;
}

.selector-welcome p,
.selector-loading p,
.selector-empty-state p {
  margin: 0.45rem 0 0;
  color: var(--business-muted);
  font-size: 0.8125rem;
}

.selector-loading > span {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.8rem;
  border-width: 3px;
}

.selector-empty-state button {
  margin: 1rem auto 0;
  padding: 0.65rem 0.9rem;
  color: var(--brand-red);
  background: var(--surface);
  border: 1px solid #9fb8c8;
  border-radius: 0.5rem;
}

.selector-result-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--business-line);
  border-radius: 0.5rem;
}

.selector-result-summary h2,
.selector-condition-editor h2 {
  margin: 0;
  color: var(--business-navy);
  font-family: inherit;
  font-size: 1.3rem;
}

.selector-result-summary p:not(.business-kicker) {
  margin: 0.35rem 0 0;
  color: var(--business-muted);
  font-size: 0.8125rem;
}

.selector-result-summary > button {
  flex: none;
  padding: 0.5rem 0.7rem;
  color: var(--brand-red);
  background: var(--surface);
  border: 1px solid #a9bdc9;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}

.selector-condition-editor {
  margin: 0.75rem 0;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--business-line);
  border-radius: 0.5rem;
}

.selector-condition-editor header,
.selector-condition-editor footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.selector-condition-editor header > p,
.selector-condition-editor footer > span {
  margin: 0;
  color: #5d666c;
  font-size: 0.8125rem;
}

.selector-condition-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.9rem 0;
}

.selector-condition-grid label,
.selector-condition-grid label > span {
  display: block;
}

.selector-condition-grid label > span {
  margin-bottom: 0.3rem;
  color: #647785;
  font-size: 0.8125rem;
  font-weight: 700;
}

.selector-condition-grid input,
.selector-condition-grid select {
  width: 100%;
  height: 2.45rem;
  padding: 0 0.55rem;
  color: var(--business-ink);
  background: var(--surface);
  border: 1px solid #c9d5dc;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.8125rem;
}

.selector-condition-editor button {
  min-height: 2.45rem;
  font-size: 0.8125rem;
}

.selector-solution-list {
  display: grid;
  gap: 0.75rem;
}

.selector-solution {
  display: grid;
  grid-template-columns: 8.5rem 14rem minmax(14rem, 1fr) minmax(12rem, 0.72fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--business-line);
  border-left: 4px solid #a9bac5;
  border-radius: 0.875rem;
}

.selector-solution--primary {
  border-left-color: var(--brand-red);
  box-shadow: 0 8px 22px rgb(31 70 94 / 7%);
}

.selector-solution__media img {
  width: 8.5rem;
  height: 6rem;
}

.selector-solution__identity > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.selector-solution__identity > div > span {
  padding: 0.22rem 0.42rem;
  color: #fff;
  background: var(--brand-red);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 800;
}

.selector-solution__identity > div > small {
  color: #5d666c;
  font-size: 0.8125rem;
}

.selector-solution__identity > p {
  margin: 0.55rem 0 0.15rem;
  color: #6a7b87;
  font-size: 0.8125rem;
}

.selector-solution__identity h3 {
  margin: 0;
  color: var(--business-navy);
  font-size: 1.2rem;
}

.selector-solution__identity dl {
  display: flex;
  gap: 1rem;
  margin: 0.65rem 0 0;
}

.selector-solution__identity dl div {
  min-width: 0;
}

.selector-solution__identity dt,
.selector-solution__identity dd {
  margin: 0;
  font-size: 0.8125rem;
}

.selector-solution__identity dt {
  color: #7b8a94;
}

.selector-solution__identity dd {
  margin-top: 0.15rem;
  color: #344b5a;
  font-weight: 700;
}

.selector-solution__reasons,
.selector-solution__limit {
  min-height: 6.4rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.selector-solution__reasons > strong,
.selector-solution__limit > strong {
  color: #506675;
  font-size: 0.8125rem;
}

.selector-solution__reasons ul {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  color: #536875;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.selector-solution__limit p {
  margin: 0.45rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.selector-solution__limit a {
  color: var(--brand-red);
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
}

.selector-comparison {
  margin-top: 0.75rem;
  border-color: var(--business-line);
  border-radius: 0.5rem;
  box-shadow: none;
}

.selector-comparison summary {
  padding: 0.9rem 1rem;
  color: var(--business-navy);
}

.selector-page-note {
  margin: 0.9rem 0 0;
  color: #71818c;
  font-size: 0.8125rem;
  text-align: center;
}

.tool-page-main {
  padding: 1.5rem 0 4rem;
}

.tool-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1rem;
  margin: 1.4rem 0 1rem;
  padding: 1.4rem;
  background: var(--business-soft);
  border: 1px solid var(--business-line);
  border-radius: 0;
  box-shadow: none;
}

.tool-hero h1 {
  max-width: 42rem;
  margin: 0;
  color: var(--business-navy);
  font-family: inherit;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.2;
}

.tool-hero > div:first-child > p:last-child {
  margin: 0.65rem 0 0;
  color: var(--business-muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.tool-hero__formula {
  min-height: 0;
  padding: 1rem;
  color: var(--business-navy);
  background: var(--surface);
  border: 1px solid #c9c8bd;
  border-radius: 0;
}

.tool-hero__formula span,
.tool-hero__formula strong,
.tool-hero__formula p {
  color: inherit;
}

.tool-hero__formula strong {
  margin-top: 0.45rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.compact-page,
.page-main,
.narrow-page {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.compact-page-header,
.page-header,
.article-header {
  max-width: 58rem;
  margin: 1.4rem 0 2rem;
}

.compact-page-header h1,
.page-header h1,
.article-header h1 {
  margin: 0;
  color: var(--business-navy);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;

  line-height: 1.22;
}

.compact-page-header > p:last-child,
.page-header > p:last-child,
.article-header .article-intro {
  margin-top: 0.75rem;
  color: var(--business-muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

.catalog-list {
  background: var(--surface);
  border: 1px solid var(--business-line);
}

.catalog-row {
  display: grid;
  grid-template-columns: 10rem minmax(12rem, 0.8fr) minmax(22rem, 1.35fr) 9rem;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem;
  border-bottom: 1px solid var(--business-line);
  scroll-margin-top: 5rem;
}

.catalog-row[hidden] {
  display: none;
}

.catalog-row:last-child {
  border-bottom: 0;
}

.catalog-row img {
  width: 10rem;
  height: 7rem;
}

.catalog-row__identity h2,
.catalog-row__identity p {
  margin: 0;
}

.catalog-row__identity h2 {
  color: var(--business-navy);
  font-size: 1.25rem;
}

.catalog-row__identity > p:last-child {
  margin-top: 0.42rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.catalog-row dl {
  margin: 0;
}

.catalog-row dl div {
  display: grid;
  grid-template-columns: 5.7rem 1fr;
  gap: 0.6rem;
  padding: 0.32rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}

.catalog-row dt {
  color: #778892;
}

.catalog-row dd {
  margin: 0;
  color: #344c5a;
}

.catalog-row dd .state-text {
  margin-left: 0.4rem;
}

.catalog-row__action {
  text-align: right;
}

.catalog-row__action > * {
  display: inline-flex;
}

.catalog-row__action a {
  margin-top: 0.75rem;
  color: var(--brand-red);
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
}

.catalog-policy--compact {
  margin-top: 1rem;
  padding: 1.25rem;
}

.product-summary {
  display: grid;
  grid-template-columns: 1fr 17.5rem;
  gap: 2rem;
  align-items: center;
  margin: 1.4rem 0 1.5rem;
  padding: 1.5rem;
  background: var(--soft);
  border: 1px solid var(--business-line);
}

.product-summary h1 {
  margin: 0;
  color: var(--business-navy);
  font-family: inherit;
  font-size: clamp(2rem, 4vw, 3rem);
}

.product-summary > div > p:not(.eyebrow) {
  max-width: 48rem;
  color: var(--business-muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.product-summary img {
  width: 17.5rem;
  height: 11.8rem;
}

.product-detail__grid {
  gap: 1rem;
}

.field-evidence-list > div,
.source-card,
.unknown-card,
.method-section,
.source-record,
.about-sections section {
  box-shadow: none;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  max-width: 52rem;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid #b7b6aa;
  border-radius: 0.875rem;
}

.search-page-form input {
  min-width: 0;
  padding: 0 0.85rem;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 0.8rem;
}

.search-page-form button {
  min-height: 2.9rem;
}

.search-results {
  margin-top: 1.2rem;
}

.search-empty {
  padding: 3rem 1.5rem;
  background: var(--business-soft);
  border: 1px dashed var(--line-dark);
  text-align: center;
}

.search-empty h2,
.search-empty p {
  margin: 0;
}

.search-empty h2 {
  color: var(--business-navy);
  font-size: 1.25rem;
}

.search-empty p {
  margin-top: 0.45rem;
  color: var(--business-muted);
  font-size: 0.8125rem;
}

.search-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--business-line);
}

.search-result-heading h2,
.search-result-heading p {
  margin: 0;
}

.search-result-heading h2 {
  color: var(--business-navy);
  font-size: 1rem;
}

.search-result-heading p {
  color: #758691;
  font-size: 0.8125rem;
}

.search-result-group {
  margin-top: 1.5rem;
}

.search-result-group > h2 {
  margin: 0 0 0.55rem;
  color: #607482;
  font-size: 0.8125rem;
}

.search-result-group > div {
  border-top: 1px solid var(--business-line);
}

.search-result-group a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  color: var(--business-ink);
  border-bottom: 1px solid var(--business-line);
  text-decoration: none;
}

.search-result-group strong,
.search-result-group p {
  margin: 0;
}

.search-result-group strong {
  color: var(--business-navy);
  font-size: 0.84rem;
}

.search-result-group p {
  margin-top: 0.3rem;
  color: #697b87;
  font-size: 0.8125rem;
}

.search-result-group a > span {
  color: var(--brand-red);
}

.cooperation-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--business-line);
  border-left: 1px solid var(--business-line);
}

.cooperation-actions article {
  min-height: 11rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  padding: 1.25rem;
  border-right: 1px solid var(--business-line);
  border-bottom: 1px solid var(--business-line);
}

.cooperation-actions article > span {
  color: var(--brand-red);
  font-size: 0.8125rem;
  font-weight: 800;
}

.cooperation-actions h2,
.cooperation-actions p {
  margin: 0;
}

.cooperation-actions h2 {
  color: var(--business-navy);
  font-size: 1rem;
}

.cooperation-actions p {
  margin-top: 0.45rem;
  color: var(--business-muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.cooperation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.cooperation-panel {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--business-line);
}

.cooperation-panel--contact {
  background: var(--business-soft);
}

.cooperation-panel h2,
.cooperation-panel p,
.cooperation-panel ul {
  margin-top: 0;
}

.cooperation-panel h2 {
  color: var(--business-navy);
  font-size: 1.2rem;
}

.cooperation-panel ul {
  padding-left: 1.1rem;
  color: #526875;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.cooperation-panel p:not(.business-kicker) {
  color: var(--business-muted);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.cooperation-panel a {
  color: var(--brand-red);
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
}

.cooperation-panel button {
  min-height: 2.55rem;
  font-size: 0.8125rem;
}

.copy-feedback {
  min-height: 1.2rem;
  margin: 0.45rem 0 0 !important;
}

.cooperation-rules {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1.4rem;
  color: #fff;
  background: var(--business-navy);
}

.cooperation-rules h2 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}


.cooperation-rules ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #ccd2d9;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.site-footer {
  padding-top: 2.2rem;
  color: #d3dce2;
  background: var(--business-navy);
}

.footer-grid {
  grid-template-columns: 1.45fr repeat(3, 0.65fr);
  gap: 2rem;
}

.footer-grid > div:first-child > p,
.footer-grid > div:not(:first-child) a,
.brand--footer small {
  color: #afbec8;
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-block: 1.1rem;
  color: #91a1ad;
}

@media (max-width: 1080px) {
  .site-header__inner {
    gap: 1.2rem;
  }

  .site-search-form {
    width: 2.45rem;
    grid-template-columns: 1fr;
  }

  .site-search-form input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .site-search-form button {
    width: 2.4rem;
    height: 2.35rem;
  }

  .selector-condition-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .selector-solution {
    grid-template-columns: 7.5rem 13rem 1fr;
  }

  .selector-solution__media img {
    width: 7.5rem;
  }

  .selector-solution__limit {
    grid-column: 3;
  }

  .catalog-row {
    grid-template-columns: 8rem 1fr minmax(18rem, 1.2fr);
  }

  .catalog-row img {
    width: 8rem;
  }

  .catalog-row__action {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 840px) {
  .tool-hero {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    min-height: 3.8rem;
  }

  .menu-toggle {
    grid-column: 2;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    padding: 0;
    background: var(--surface);
    border: 1px solid #c9c8bd;
    border-radius: 0.5rem;
  }

  .menu-toggle > span:first-child,
  .menu-toggle > span:first-child::before,
  .menu-toggle > span:first-child::after {
    width: 1rem;
    height: 2px;
    display: block;
    background: var(--business-navy);
  }

  .menu-toggle > span:first-child {
    position: relative;
  }

  .menu-toggle > span:first-child::before,
  .menu-toggle > span:first-child::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-toggle > span:first-child::before { top: -0.32rem; }
  .menu-toggle > span:first-child::after { top: 0.32rem; }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.7rem;
  }

  .site-header.is-menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 0.72rem 0;
    border-top: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none;
  }

  .header-balance {
    display: none;
  }

  .selector-solution {
    grid-template-columns: 7rem 1fr;
  }

  .selector-solution__reasons,
  .selector-solution__limit {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 0.8rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .catalog-row {
    grid-template-columns: 7rem 1fr;
  }

  .catalog-row img {
    width: 7rem;
    height: 5.5rem;
  }

  .catalog-row dl,
  .catalog-row__action {
    grid-column: 2;
  }

  .product-summary {
    grid-template-columns: 1fr 12rem;
  }

  .product-summary img {
    width: 12rem;
    height: 9rem;
  }

  .cooperation-actions {
    grid-template-columns: 1fr;
  }

  .cooperation-layout,
  .cooperation-rules {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .shell,
  .portal-shell,
  .site-header .shell,
  .site-footer .shell {
    width: min(calc(100% - 1.25rem), 1200px);
  }

  .brand small {
    display: none;
  }
  .selector-query-form,
  .search-page-form {
    grid-template-columns: 1fr;
  }
  .search-page-form button {
    width: 100%;
  }
  .selector-result-summary,
  .selector-condition-editor header,
  .selector-condition-editor footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .selector-page-heading h1,
  .compact-page-header h1,
  .page-header h1,
  .article-header h1 {
    font-size: 2rem;
  }

  .selector-query-form > div {
    width: auto;
  }

  .selector-condition-grid {
    grid-template-columns: 1fr 1fr;
  }

  .selector-solution {
    grid-template-columns: 5.5rem 1fr;
    padding: 0.8rem;
  }

  .selector-solution__media img {
    width: 5.5rem;
    height: 4.5rem;
  }

  .selector-solution__identity dl {
    flex-direction: column;
    gap: 0.35rem;
  }

  .catalog-row {
    grid-template-columns: 5.5rem 1fr;
    padding: 0.85rem;
  }

  .catalog-row img {
    width: 5.5rem;
    height: 4.5rem;
  }

  .catalog-row dl,
  .catalog-row__action {
    grid-column: 1 / -1;
  }

  .product-summary {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .product-summary img {
    width: min(100%, 15rem);
    height: 10rem;
    justify-self: start;
  }

  .search-result-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* Unified navigation, conversion and contact layer · 2026-08-25
   依赖 :root 统一 token（--brand-red / --business-navy / --soft 等），规范见 DESIGN.md。 */

.site-utility-bar {
  color: #dbe4ea;
  background: var(--business-navy);
}

.site-utility-bar .shell {
  min-height: 2.85rem;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  font-size: 0.8rem;
  font-weight: 500;
  scrollbar-width: none;
  white-space: nowrap;
}

.site-utility-bar .shell::-webkit-scrollbar {
  display: none;
}

.site-utility-bar span,
.site-utility-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.site-utility-bar span + span,
.site-utility-bar span + a,
.site-utility-bar a + span {
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgb(255 255 255 / 24%);
}

.site-utility-bar a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.7rem;
}

.site-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 15.5rem;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 0.4rem;
}

.site-search-form input {
  min-width: 0;
  height: 2.2rem;
  padding: 0 0.7rem;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.8rem;
}

.site-search-form button {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.2rem;
  padding: 0;
  color: var(--business-navy);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.site-search-form button:hover {
  color: var(--brand-red);
}

.site-search-form:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgb(230 0 18 / 10%);
}

.home-query-error {
  margin: 0;
  color: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 700;
}


.selector-input-error {
  margin: 0.6rem 0 0;
  color: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 700;
}

.conversion-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--navy);
  border-radius: 0;
}

.conversion-cta h2 {
  margin: 0;
  color: var(--business-navy);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.35rem;

}

.conversion-cta p {
  max-width: 62ch;
  margin: 0.45rem 0 0;
  color: #5d666c;
  font-size: 0.85rem;
  line-height: 1.65;
}

.conversion-cta__actions {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.article-section--cta .conversion-cta {
  margin-top: 0;
}

.contact-channels {
  display: grid;
  gap: 0.75rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-channels li {
  position: relative;
  padding-left: 1.05rem;
  color: #454e53;
  font-size: 0.84rem;
  line-height: 1.65;
}

.contact-channels li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--brand-red);
}

.contact-channels a {
  color: var(--brand-red);
  font-weight: 700;
}

.cooperation-note {
  margin: 1rem 0 0;
  color: var(--business-muted);
  font-size: 0.84rem;
}

.meta-code {
  color: var(--business-muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.revision-detail {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.revision-detail summary {
  color: var(--business-muted);
  font-size: 0.84rem;
  cursor: pointer;
}

.revision-detail summary:hover {
  color: var(--brand-red);
}

.revision-detail .revision-line {
  padding-top: 0.5rem;
  border-top: 0;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(18rem, 1fr);
  gap: 1rem 1.5rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
}

.catalog-toolbar__summary strong,
.catalog-toolbar__summary span {
  display: block;
}

.catalog-toolbar__summary strong {
  color: var(--business-navy);
  font-size: 1rem;
}

.catalog-toolbar__summary span,
.catalog-toolbar__result {
  color: #5d666c;
  font-size: 0.8125rem;
}

.catalog-toolbar__summary span {
  margin-top: 0.2rem;
}

.catalog-toolbar__search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  color: #454950;
  font-size: 0.8125rem;
  font-weight: 700;
}

.catalog-toolbar__search input {
  min-width: 0;
  height: 2.55rem;
  padding: 0 0.8rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 500;
}

.catalog-toolbar__search input:focus {
  outline: 3px solid rgb(230 0 18 / 16%);
  outline-offset: 1px;
  border-color: var(--brand-red);
}

.catalog-toolbar__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.catalog-toolbar__brands button,
.catalog-empty button {
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  color: #454950;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}

.catalog-toolbar__brands button span {
  margin-left: 0.25rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.catalog-toolbar__brands button:hover,
.catalog-toolbar__brands button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.catalog-toolbar__brands button[aria-pressed="true"] span {
  color: #fff;
}

.catalog-toolbar__result {
  align-self: center;
  justify-self: end;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.catalog-row {
  transition: background-color 160ms ease-out;
}

.catalog-row:hover {
  background: var(--soft);
}

.catalog-row__identity .doc-meta {
  color: var(--brand-red);
  font-family: var(--sans);
  font-weight: 800;
}

.catalog-empty {
  padding: 2.4rem;
  text-align: center;
  background: var(--soft);
  border: 1px solid var(--line);
}

.catalog-empty h2,
.catalog-empty p {
  margin: 0;
}

.catalog-empty p {
  margin-top: 0.35rem;
  color: #5d666c;
}

.catalog-empty button {
  margin-top: 1rem;
  color: #fff;
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.articles-index__source-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.3rem;
  padding: 0.85rem 1rem;
  color: #454950;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  font-size: 0.8125rem;
}

.articles-index__source-note strong {
  color: var(--business-navy);
  font-size: 1rem;
}

.articles-index__source-note a {
  color: var(--brand-red);
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.portal-news-item.is-cover > img {
  object-fit: cover;
  mix-blend-mode: normal;
}

.article-category-list a {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) auto;
}

.article-category-list img {
  width: 10rem;
  height: 6.75rem;
  object-fit: cover;
  background: var(--soft);
  border-radius: 0.5rem;
}

.source-card > p {
  margin: 0.9rem 0 0;
  color: #5d666c;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.digest-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.digest-cover {
  margin: 1.5rem 0 0;
}

.digest-cover img {
  width: 100%;
  max-height: 34rem;
  display: block;
  object-fit: cover;
  aspect-ratio: 12 / 7;
  background: var(--soft);
  border-radius: 0.875rem;
}

.digest-cover figcaption {
  margin-top: 0.55rem;
  color: #5d666c;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.digest-overview p {
  max-width: 72ch;
  line-height: 1.8;
}

.digest-record {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.1rem 0 0;
  border-top: 1px solid var(--line);
}

.digest-record > div {
  min-width: 0;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.digest-record dt,
.digest-record dd {
  margin: 0;
}

.digest-record dt {
  color: #5d666c;
  font-size: 0.8125rem;
  font-weight: 700;
}

.digest-record dd {
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
  color: var(--business-navy);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.digest-permission {
  max-width: 72ch;
  margin: 1rem 0 0;
  color: #5d666c;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.digest-boundary-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
  padding-left: 1.1rem;
  color: #454950;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.source-card > a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--brand-red);
  font-size: 0.8125rem;
  font-weight: 800;
  text-underline-offset: 0.2rem;
}

@media (max-width: 840px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-actions {
    order: 4;
    gap: 0.5rem;
  }

  .menu-toggle {
    order: 2;
    grid-column: 2;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
  }

  .header-cooperation-link {
    display: none;
  }

  .conversion-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .conversion-cta__actions {
    align-items: stretch;
    width: 100%;
  }

  .conversion-cta__actions .button-link {
    justify-content: center;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .catalog-toolbar__result {
    justify-self: start;
  }

  .articles-index__source-note {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .article-category-list a {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1rem;
  }

  .article-category-list img {
    width: 7rem;
    height: 5.2rem;
  }

  .article-category-list b {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding-block: 0.6rem;
  }

  .header-actions {
    order: 4;
    grid-column: 1 / -1;
    width: 100%;
  }

  .main-nav {
    order: 3;
  }

  .menu-toggle {
    order: 2;
    grid-column: 2;
  }

  .brand strong {
    font-size: 1rem;
  }

  .site-utility-bar span:first-child {
    display: none;
  }

  .site-utility-bar span:first-child + a {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .site-utility-bar .shell {
    font-size: 0.75rem;
  }

  .site-search-form {
    width: 100%;
  }

  .catalog-toolbar__search {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .catalog-toolbar__brands {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .catalog-toolbar__brands button {
    flex: none;
  }

  .article-category-list a {
    grid-template-columns: 6rem minmax(0, 1fr);
    align-items: start;
  }

  .article-category-list img {
    width: 6rem;
    height: 4.8rem;
  }

  .article-category-list strong {
    font-size: 1rem;
  }

  .article-category-list em {
    display: none;
  }

  .digest-record {
    grid-template-columns: 1fr;
  }
}

/* ---------- 问答页：对话式（用户提问 / Agent 回答） ---------- */

.qa-page .qa-header {
  max-width: 44rem;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.qa-page .qa-header h1 {
  margin: 0 0 0.9rem;
  color: #1a1c1f;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}

.qa-page .qa-header .article-meta {
  justify-content: center;
}

.qa-chat {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.chat-turn {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.chat-turn--user {
  justify-content: flex-end;
}

.chat-avatar {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.chat-avatar--agent {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line-dark);
}

.chat-turn--user .chat-bubble {
  max-width: 30rem;
  padding: 0.85rem 1.1rem;
  border-radius: 1.1rem 1.1rem 0.25rem 1.1rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.7;
}

.chat-turn--user .chat-bubble p {
  margin: 0;
}

.chat-turn--agent {
  flex: 1;
}

.chat-turn--agent .chat-bubble {
  flex: 1;
  min-width: 0;
  padding: 1.4rem 1.5rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem 1.1rem 1.1rem 1.1rem;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.96rem;
  line-height: 1.85;
  color: #33383f;
}

.chat-turn--agent .chat-bubble > p {
  margin: 0 0 0.6rem;
}

.chat-lead {
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--line-dark);
}

.chat-lead strong {
  color: var(--navy);
}

.chat-turn--agent .chat-bubble h2 {
  margin: 1.3rem 0 0.35rem;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 800;
}

.chat-formula {
  margin: 0.5rem 0 0.2rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--soft);
  border-left: 3px solid var(--navy);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chat-formula span {
  color: var(--muted);
  font-size: 0.82rem;
}

.chat-formula strong {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--navy);
}

.chat-note {
  margin: 0.6rem 0 0;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  background: var(--yellow-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

.chat-products {
  margin: 0.7rem 0 0.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.chat-product {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-product:hover {
  border-color: var(--navy-2);
  box-shadow: var(--shadow);
}

.chat-product img {
  flex: none;
  width: 5.2rem;
  height: 3.9rem;
  object-fit: cover;
  border-radius: 0.5rem;
  background: var(--soft);
}

.chat-product__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chat-product__body strong {
  color: var(--navy);
  font-size: 0.94rem;
}

.chat-product__body strong i {
  font-style: normal;
  color: var(--muted);
}

.chat-product__body span {
  color: #3d454b;
  font-size: 0.84rem;
  line-height: 1.5;
}

.chat-product__body em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.5;
}

.chat-checklist {
  margin: 0.4rem 0 0.2rem;
  padding-left: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 1.2rem;
  font-size: 0.88rem;
  line-height: 1.65;
}

.chat-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.2rem;
}

.chat-followup {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.chat-sources {
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

.chat-sources > p {
  margin: 0 0 0.3rem;
  font-weight: 700;
  color: var(--navy-2);
}

.chat-sources ol {
  margin: 0;
  padding-left: 1.2rem;
}

.chat-sources a {
  color: var(--navy-2);
}

.chat-revision {
  margin: 0.6rem 0 0;
}

@media (max-width: 640px) {
  .chat-turn--agent .chat-bubble {
    padding: 1.1rem 1rem 1rem;
  }

  .chat-products,
  .chat-checklist {
    grid-template-columns: 1fr;
  }

  .chat-turn--user .chat-bubble {
    max-width: 100%;
  }
}

/* Unified selector and answer view */
.selector-page,
.selector-page button,
.selector-page input,
.selector-page select,
.selector-page textarea {
  font-family: var(--sans);
}

.selector-page {
  color: #20252a;
  background: #fff;
}

.selector-page .portal-shell {
  width: min(100% - 2.5rem, 1380px);
  max-width: none;
}

.selector-main {
  padding: 1rem 0 4rem;
  background: #fff;
}

.selector-main .breadcrumbs {
  margin-bottom: 1.1rem;
}

.selector-intake {
  max-width: 960px;
  margin: 3rem auto 0;
}

.selector-page-heading {
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.selector-page-heading > span,
.selector-welcome span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.selector-page-heading h1 {
  max-width: none;
  margin: 0;
  color: #171a1d;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.selector-page-heading p {
  max-width: 720px;
  margin: 0.85rem 0 0;
  color: #626b73;
  font-size: 1rem;
  line-height: 1.75;
}

.selector-query-form {
  padding: 0;
  border: 1px solid #cfd4d9;
  border-radius: 0.7rem;
  background: #fff;
  box-shadow: 0 10px 34px rgb(23 28 32 / 7%);
  overflow: hidden;
}

.selector-query-form textarea {
  display: block;
  width: 100%;
  min-height: 9rem;
  padding: 1.25rem 1.35rem;
  resize: vertical;
  color: #1f2429;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #fff;
  font-size: 1.05rem;
  line-height: 1.75;
}

.selector-query-form textarea:focus {
  box-shadow: inset 0 0 0 2px #23282d;
}

.selector-query-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.9rem 0.85rem 1.35rem;
  border-top: 1px solid #e2e5e8;
  background: #f7f8f9;
}

.selector-query-form small {
  color: #737b82;
  font-size: 0.82rem;
}

.selector-query-form button,
.selector-filter-submit,
.selector-restart button,
.selector-empty-state button {
  min-height: 2.8rem;
  padding: 0.7rem 1.15rem;
  color: #fff;
  border: 1px solid var(--brand-red);
  border-radius: 0.38rem;
  background: var(--brand-red);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.selector-query-form button:hover,
.selector-filter-submit:hover,
.selector-restart button:hover,
.selector-empty-state button:hover {
  border-color: var(--brand-red-dark);
  background: var(--brand-red-dark);
}

.selector-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.selector-examples > span {
  margin-right: 0.25rem;
  color: #7a8289;
  font-size: 0.78rem;
}

.selector-examples button {
  padding: 0.45rem 0.72rem;
  color: #4d555c;
  border: 1px solid #d9dde1;
  border-radius: 999px;
  background: #fff;
  font-size: 0.8rem;
  cursor: pointer;
}

.selector-examples button:hover {
  color: #171a1d;
  border-color: #8e969d;
}

.selector-result-shell {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.selector-result-shell:focus {
  outline: 0;
}

.selector-welcome,
.selector-empty-state,
.selector-loading {
  max-width: 760px;
  margin: 4rem auto 0;
  padding: 3rem;
  text-align: center;
  border: 1px solid #e0e3e6;
  border-radius: 0.7rem;
  background: #fafafa;
}

.selector-welcome h2,
.selector-empty-state h2,
.selector-loading h2 {
  margin: 0;
  color: #1d2125;
  font-size: 1.5rem;
}

.selector-welcome p,
.selector-empty-state p,
.selector-loading p {
  margin: 0.7rem auto 0;
  color: #687078;
  line-height: 1.7;
}

.selector-empty-state button {
  margin-top: 1.2rem;
}

.selector-loading span {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0 auto 1rem;
  border: 2px solid #d8dce0;
  border-top-color: #22272b;
  border-radius: 50%;
  animation: selector-agent-spin 0.8s linear infinite;
}

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

.selector-agent-layout {
  display: grid;
  grid-template-columns: 18.5rem minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.25rem);
  align-items: start;
  padding-top: 0.35rem;
}

.selector-filter-panel {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 6.5rem);
  border: 1px solid #d8dce0;
  border-radius: 0.55rem;
  background: #f8f9fa;
  overflow-x: hidden;
  overflow-y: auto;
}

.selector-filter-panel form {
  margin: 0;
}

.selector-filter-panel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 0.9rem;
  border-bottom: 1px solid #dde1e4;
}

.selector-filter-panel__header span,
.selector-agent-conclusion > span,
.selector-agent-section__heading span {
  display: block;
  margin-bottom: 0.22rem;
  color: #757d84;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.selector-filter-panel__header h2 {
  margin: 0;
  color: #1b1f23;
  font-size: 1.1rem;
}

.selector-filter-panel__header small {
  color: #737b82;
  font-size: 0.72rem;
  white-space: nowrap;
}

.selector-filter-fields {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
}

.selector-filter-fields label > span:first-child {
  display: block;
  margin-bottom: 0.38rem;
  color: #565e65;
  font-size: 0.76rem;
  font-weight: 600;
}

.selector-filter-fields input,
.selector-filter-fields select {
  width: 100%;
  height: 2.55rem;
  padding: 0 0.7rem;
  color: #22272b;
  border: 1px solid #cfd4d8;
  border-radius: 0.35rem;
  outline: 0;
  background: #fff;
  font-size: 0.88rem;
}

.selector-filter-fields input:focus,
.selector-filter-fields select:focus {
  border-color: #4c535a;
  box-shadow: 0 0 0 2px rgb(31 36 41 / 8%);
}

.selector-mode-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.selector-mode-field legend {
  margin-bottom: 0.38rem;
  color: #565e65;
  font-size: 0.76rem;
  font-weight: 600;
}

.selector-mode-editor {
  border: 1px solid #cfd4d8;
  border-radius: 0.35rem;
  background: #fff;
  overflow: hidden;
}

.selector-mode-editor summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.55rem;
  padding: 0 0.7rem;
  color: #22272b;
  list-style: none;
  cursor: pointer;
}

.selector-mode-editor summary::-webkit-details-marker {
  display: none;
}

.selector-mode-editor summary small {
  color: #757d84;
  font-size: 0.68rem;
}

.selector-mode-editor[open] summary {
  border-bottom: 1px solid #dfe3e6;
}

.selector-mode-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.55rem;
}

.selector-mode-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.selector-mode-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.selector-mode-options label > span:first-child {
  display: block;
  margin: 0;
  padding: 0.38rem 0.15rem;
  color: #626a71;
  text-align: center;
  border: 1px solid #d4d8dc;
  border-radius: 0.3rem;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
}

.selector-mode-options input:checked + span {
  color: #22272b;
  border-color: #4e555b;
  background: #eceff1;
  font-weight: 700;
}

.selector-mode-options input:focus-visible + span {
  outline: 2px solid #4e555b;
  outline-offset: 1px;
}

.selector-field-with-unit {
  position: relative;
  display: block;
}

.selector-field-with-unit input {
  padding-right: 3.3rem;
}

.selector-field-with-unit i {
  position: absolute;
  top: 50%;
  right: 0.72rem;
  color: #747c83;
  font-size: 0.74rem;
  font-style: normal;
  transform: translateY(-50%);
  pointer-events: none;
}

.selector-missing-brief {
  margin: 0 1.15rem;
  padding: 0.95rem 0;
  border-top: 1px solid #dde1e4;
}

.selector-missing-brief h3 {
  margin: 0 0 0.55rem;
  color: #464d53;
  font-size: 0.78rem;
}

.selector-missing-brief ul {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.selector-missing-brief li {
  color: #747c83;
  font-size: 0.76rem;
  line-height: 1.45;
}

.selector-missing-brief li::before {
  content: "—";
  margin-right: 0.4rem;
  color: #a2a8ad;
}

.selector-filter-submit {
  width: calc(100% - 2.3rem);
  margin: 0.15rem 1.15rem 1.15rem;
}

.selector-agent-answer {
  min-width: 0;
  max-width: 940px;
}

.selector-user-message {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dfe3e6;
  border-radius: 0.65rem;
  background: #f7f8f9;
}

.selector-user-message > span,
.selector-agent-identity > span {
  display: grid;
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #2a2f34;
  font-size: 0.72rem;
  font-weight: 700;
}

.selector-user-message div {
  min-width: 0;
}

.selector-user-message small {
  display: block;
  margin-bottom: 0.2rem;
  color: #757d84;
  font-size: 0.72rem;
}

.selector-user-message p {
  margin: 0;
  color: #2a3035;
  font-size: 0.95rem;
  line-height: 1.65;
}

.selector-agent-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.selector-agent-identity > span {
  border-radius: 0.45rem;
  background: var(--brand-red);
}

.selector-agent-identity strong,
.selector-agent-identity small {
  display: block;
}

.selector-agent-identity strong {
  color: #252a2e;
  font-size: 0.9rem;
}

.selector-agent-identity small {
  margin-top: 0.1rem;
  color: #7a8289;
  font-size: 0.72rem;
}

.selector-agent-conclusion {
  padding-bottom: 2rem;
  border-bottom: 1px solid #dfe3e6;
}

.selector-agent-conclusion h1 {
  max-width: 760px;
  margin: 0;
  color: #171a1d;
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.selector-agent-conclusion > p {
  max-width: 790px;
  margin: 0.85rem 0 0;
  color: #555e65;
  font-size: 0.96rem;
  line-height: 1.8;
}

.selector-agent-conclusion dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.35rem 0 0;
  padding: 0.95rem 0;
  border-block: 1px solid #dfe3e6;
}

.selector-agent-conclusion dl > div {
  padding: 0 1.15rem;
  border-left: 1px solid #e1e4e7;
}

.selector-agent-conclusion dl > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.selector-agent-conclusion dt {
  color: #7a8289;
  font-size: 0.73rem;
}

.selector-agent-conclusion dd {
  margin: 0.28rem 0 0;
  color: #1d2226;
  font-size: 1.08rem;
  font-weight: 700;
}

.selector-agent-conclusion ul,
.selector-agent-boundary ul {
  display: grid;
  gap: 0.48rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: #434a50;
  font-size: 0.9rem;
  line-height: 1.65;
}

.selector-agent-section {
  padding: 2.2rem 0;
  border-bottom: 1px solid #dfe3e6;
}

.selector-agent-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.selector-agent-section__heading h2 {
  margin: 0;
  color: #1c2024;
  font-size: 1.32rem;
  line-height: 1.35;
}

.selector-agent-section__heading > small {
  color: #7b838a;
  font-size: 0.74rem;
  white-space: nowrap;
}

.selector-agent-section__intro {
  margin: 0.65rem 0 0;
  color: #697178;
  font-size: 0.86rem;
  line-height: 1.65;
}

.selector-device-list {
  margin-top: 0.95rem;
  border-top: 1px solid #dfe3e6;
}

.selector-device-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e2e5e8;
}

.selector-device-row:last-child {
  border-bottom: 0;
}

.selector-device-row__image {
  display: grid;
  min-height: 8rem;
  place-items: center;
  border: 1px solid #e1e4e7;
  border-radius: 0.45rem;
  background: #f7f8f9;
  overflow: hidden;
}

.selector-device-row__image img {
  width: 100%;
  height: 8rem;
  padding: 0.35rem;
  object-fit: contain;
}

.selector-device-row__title {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.selector-device-row__title > span {
  flex: none;
  margin-top: 0.05rem;
  padding: 0.22rem 0.42rem;
  color: #fff;
  border-radius: 0.25rem;
  background: #343a40;
  font-size: 0.66rem;
  font-weight: 700;
}

.selector-device-row--primary .selector-device-row__title > span {
  background: var(--brand-red);
}

.selector-device-row__title small {
  display: block;
  color: #7b838a;
  font-size: 0.69rem;
}

.selector-device-row__title h3 {
  margin: 0.12rem 0 0;
  color: #191d20;
  font-size: 1.18rem;
}

.selector-device-row dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.3rem;
  margin: 0.65rem 0 0;
}

.selector-device-row dl > div {
  display: flex;
  gap: 0.4rem;
}

.selector-device-row dt,
.selector-device-row dd {
  margin: 0;
  font-size: 0.78rem;
}

.selector-device-row dt {
  color: #7b838a;
}

.selector-device-row dd {
  color: #353b40;
  font-weight: 600;
}

.selector-device-row p {
  margin: 0.52rem 0 0;
  color: #545c63;
  font-size: 0.8rem;
  line-height: 1.6;
}

.selector-device-row p strong {
  color: #30363b;
}

.selector-device-row__limit {
  color: #6d757c !important;
}

.selector-device-row__link,
.selector-agent-boundary > a {
  display: inline-block;
  margin-top: 0.55rem;
  color: #24292e;
  font-size: 0.78rem;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.selector-table-wrap {
  margin-top: 1rem;
  border: 1px solid #dfe3e6;
  border-radius: 0.45rem;
  overflow-x: auto;
}

.selector-comparison table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.77rem;
  line-height: 1.5;
}

.selector-comparison th,
.selector-comparison td {
  padding: 0.75rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e5e8;
}

.selector-comparison thead th {
  color: #646c73;
  background: #f5f6f7;
  font-size: 0.69rem;
  font-weight: 700;
}

.selector-comparison tbody tr:last-child th,
.selector-comparison tbody tr:last-child td {
  border-bottom: 0;
}

.selector-comparison tbody th {
  white-space: nowrap;
}

.selector-comparison tbody th span {
  margin-right: 0.4rem;
  color: #8b9298;
  font-size: 0.65rem;
}

.selector-comparison tbody th a {
  color: #20252a;
}

.selector-formulas {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.selector-formulas > div {
  display: grid;
  grid-template-columns: minmax(15rem, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  padding: 0.95rem 1rem;
  border-left: 3px solid #3c4248;
  background: #f6f7f8;
}

.selector-formulas span {
  color: #6c747b;
  font-size: 0.79rem;
  line-height: 1.55;
}

.selector-formulas strong {
  color: #262b30;
  font-size: 0.82rem;
  line-height: 1.55;
}

.selector-agent-note {
  margin: 0.8rem 0 0;
  color: #626a71;
  font-size: 0.82rem;
  line-height: 1.65;
}

.selector-agent-boundary {
  border-bottom: 0;
}

.selector-restart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.4rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid #d9dde1;
  border-radius: 0.55rem;
  background: #f7f8f9;
}

.selector-restart strong {
  color: #23282d;
  font-size: 0.94rem;
}

.selector-restart p {
  margin: 0.22rem 0 0;
  color: #747c83;
  font-size: 0.78rem;
  line-height: 1.55;
}

.selector-restart button {
  flex: none;
  min-width: 7rem;
}

@media (max-width: 960px) {
  .selector-page .portal-shell {
    width: min(100% - 2rem, 920px);
  }

  .selector-agent-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .selector-filter-panel {
    position: static;
    max-height: none;
    overflow: hidden;
  }

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

  .selector-filter-submit {
    width: auto;
    min-width: 12rem;
  }

  .selector-agent-answer {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .selector-page .portal-shell {
    width: min(100% - 1.25rem, 620px);
  }

  .selector-main {
    padding-top: 0.55rem;
  }

  .selector-intake {
    margin-top: 1.6rem;
  }

  .selector-page-heading h1 {
    font-size: 2rem;
  }

  .selector-query-form textarea {
    min-height: 10rem;
    padding: 1rem;
    font-size: 1rem;
  }

  .selector-query-form > div {
    align-items: stretch;
    flex-direction: column;
    padding: 0.85rem 1rem 1rem;
  }

  .selector-query-form button {
    width: 100%;
  }

  .selector-welcome,
  .selector-empty-state,
  .selector-loading {
    margin-top: 2rem;
    padding: 2rem 1.2rem;
  }

  .selector-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .selector-mode-field {
    grid-column: 1 / -1;
  }

  .selector-missing-brief {
    display: none;
  }

  .selector-filter-submit {
    width: calc(100% - 2.3rem);
  }

  .selector-user-message {
    padding: 0.9rem;
  }

  .selector-agent-conclusion h1 {
    font-size: 1.75rem;
  }

  .selector-agent-conclusion dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .selector-agent-conclusion dl > div,
  .selector-agent-conclusion dl > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-left: 0;
    border-bottom: 1px solid #e3e6e8;
  }

  .selector-agent-conclusion dl > div:last-child {
    border-bottom: 0;
  }

  .selector-agent-conclusion dd {
    font-size: 0.95rem;
  }

  .selector-device-row {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.85rem;
  }

  .selector-device-row__image,
  .selector-device-row__image img {
    min-height: 6.2rem;
    height: 6.2rem;
  }

  .selector-device-row__title {
    display: block;
  }

  .selector-device-row__title > span {
    display: inline-block;
    margin-bottom: 0.35rem;
  }

  .selector-device-row dl {
    display: grid;
    gap: 0.25rem;
  }

  .selector-formulas > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .selector-restart {
    align-items: stretch;
    flex-direction: column;
  }

  .selector-restart button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .selector-loading span {
    animation: none;
  }
}

/* Conversation layout refinement: match the approved open, agent-like result view. */
.selector-page .site-utility-bar,
.selector-page .header-actions,
.selector-page .breadcrumbs {
  display: none;
}

.selector-page .site-header__inner {
  grid-template-columns: auto minmax(0, 1fr);
}

.selector-page .main-nav {
  justify-self: center;
}

.selector-page .portal-shell {
  width: min(100% - 2rem, 1440px);
}

.selector-page .selector-main {
  padding: 0 0 3.5rem;
}

.selector-page .selector-result-shell {
  margin: 0;
}

.selector-page .selector-agent-layout {
  grid-template-columns: 20rem minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 4.5rem);
  padding: 0;
}

.selector-page .selector-filter-panel {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  max-height: calc(100vh - 4.5rem);
  padding: 2rem 2.2rem 2rem 0.25rem;
  border: 0;
  border-right: 1px solid #dfe3e6;
  border-radius: 0;
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
}

.selector-page .selector-filter-panel__header {
  display: block;
  padding: 0 0 1.4rem;
  border: 0;
}

.selector-page .selector-filter-panel__header h2 {
  margin: 0;
  color: #202428;
  font-size: 1.08rem;
  font-weight: 700;
}

.selector-page .selector-filter-panel__header p {
  margin: 0.35rem 0 0;
  color: #747b82;
  font-size: 0.78rem;
  line-height: 1.55;
}

.selector-page .selector-filter-fields {
  display: grid;
  gap: 0.95rem;
  padding: 0;
}

.selector-page .selector-filter-fields > label,
.selector-page .selector-mode-field {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.selector-page .selector-filter-fields label > span:first-child,
.selector-page .selector-mode-field > span:first-child {
  margin: 0;
  color: #353a3f;
  font-size: 0.78rem;
  font-weight: 600;
}

.selector-page .selector-filter-fields input,
.selector-page .selector-filter-fields select,
.selector-page .selector-mode-editor summary {
  height: 2.75rem;
  min-height: 2.75rem;
  border-color: #d4d9de;
  border-radius: 0.4rem;
  background: #fff;
  font-size: 0.82rem;
}

.selector-page .selector-mode-editor {
  border-color: #d4d9de;
  border-radius: 0.4rem;
}

.selector-page .selector-mode-options {
  padding: 0.55rem;
}

.selector-page .selector-filter-submit {
  width: 100%;
  min-height: 2.75rem;
  margin: 1.15rem 0 0;
  border-radius: 0.35rem;
}

.selector-filter-missing {
  margin-top: 1.55rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dfe3e6;
}

.selector-filter-missing h3 {
  margin: 0 0 0.7rem;
  color: #2d3237;
  font-size: 0.88rem;
}

.selector-filter-missing dl {
  margin: 0;
}

.selector-filter-missing dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.42rem 0;
  color: #676f76;
  font-size: 0.74rem;
}

.selector-filter-missing dt,
.selector-filter-missing dd {
  margin: 0;
}

.selector-filter-missing dd {
  color: #8a9197;
}

.selector-filter-missing p {
  margin: 0.7rem 0 0;
  color: #858c92;
  font-size: 0.7rem;
  line-height: 1.55;
}

.selector-conversation {
  min-width: 0;
  padding: 2rem 0 4rem 2.6rem;
}

.selector-user-turn {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.7rem;
  width: min(72%, 48rem);
  margin: 0 0 1.8rem auto;
}

.selector-user-turn > div {
  min-width: 0;
  flex: 1;
}

.selector-user-turn p {
  margin: 0;
  padding: 0.85rem 1rem;
  color: #2c3237;
  border: 1px solid #dce1e5;
  border-radius: 0.55rem 0.15rem 0.55rem 0.55rem;
  background: #f5f6f7;
  font-size: 0.86rem;
  line-height: 1.65;
}

.selector-chat-avatar {
  display: grid;
  flex: none;
  width: 2rem;
  height: 2rem;
  place-items: center;
}

.selector-chat-avatar--user {
  color: #fff;
  border-radius: 50%;
  background: #30363b;
  font-size: 0.66rem;
  font-weight: 700;
}

.selector-chat-avatar--agent {
  color: #20252a;
  border: 1px solid #d9dee2;
  border-radius: 50%;
  background: #fff;
}

.selector-chat-avatar--agent svg {
  width: 1.8rem;
  height: 1.8rem;
}

.selector-agent-turn {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.selector-agent-bubble {
  position: relative;
  min-width: 0;
  flex: 1;
  padding: 1.15rem 1.35rem 1.35rem;
  border: 0;
  border-radius: 0.2rem 0.65rem 0.65rem 0.65rem;
  background: #fafafa;
}

.selector-agent-bubble::before {
  position: absolute;
  top: 0.8rem;
  left: -0.42rem;
  width: 0.75rem;
  height: 0.75rem;
  background: #fafafa;
  content: "";
  transform: rotate(45deg);
}

.selector-agent-bubble > header {
  margin-bottom: 0.75rem;
}

.selector-agent-bubble > header strong {
  color: #22272b;
  font-size: 0.9rem;
}

.selector-agent-bubble > h1 {
  margin: 0;
  color: #1e2327;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.selector-agent-lead {
  max-width: 54rem;
  margin: 0.55rem 0 0;
  color: #454c52;
  font-size: 0.82rem;
  line-height: 1.75;
}

.selector-answer-summary {
  width: min(100%, 29rem);
  margin: 0.85rem 0 0;
  border-top: 1px solid #d8dde1;
}

.selector-answer-summary > div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #d8dde1;
  font-size: 0.77rem;
  line-height: 1.5;
}

.selector-answer-summary dt,
.selector-answer-summary dd {
  margin: 0;
}

.selector-answer-summary dt {
  color: #555d64;
}

.selector-answer-summary dd {
  color: #252a2f;
  font-weight: 600;
}

.selector-answer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.75fr);
  gap: 2rem;
  margin-top: 1.35rem;
}

.selector-device-panel > h2,
.selector-capacity-panel > h2 {
  margin: 0;
  color: #252a2e;
  font-size: 0.92rem;
  line-height: 1.55;
}

.selector-device-list {
  margin-top: 0.55rem;
  border-top: 1px solid #dfe3e6;
}

.selector-page .selector-device-row {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #dfe3e6;
}

.selector-page .selector-device-row__image {
  min-height: 5.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.selector-page .selector-device-row__image img {
  width: 100%;
  height: 5.2rem;
  padding: 0;
  object-fit: contain;
}

.selector-device-row__body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.selector-device-row__body h3 a {
  color: #1d2226;
  text-decoration: none;
}

.selector-page .selector-device-row dl {
  display: grid;
  gap: 0.2rem;
  margin: 0;
}

.selector-page .selector-device-row dl > div {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.35rem;
}

.selector-page .selector-device-row dt,
.selector-page .selector-device-row dd {
  font-size: 0.7rem;
  line-height: 1.45;
}

.selector-page .selector-device-row > ul {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  padding-left: 1rem;
  color: #555d64;
  font-size: 0.7rem;
  line-height: 1.45;
  grid-column: 2;
}

.selector-device-panel > p {
  margin: 0.5rem 0 0;
  color: #7b838a;
  font-size: 0.68rem;
}

.selector-capacity-formula {
  margin-top: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #d9dee2;
  border-radius: 0.4rem;
  background: #fff;
}

.selector-capacity-formula p,
.selector-capacity-formula strong {
  display: block;
  margin: 0;
  color: #40474d;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.55;
}

.selector-capacity-formula strong {
  margin: 0.22rem 0;
  color: #23282d;
  font-size: 0.82rem;
  font-weight: 700;
}

.selector-capacity-panel > h3 {
  margin: 0.85rem 0 0.35rem;
  color: #353b40;
  font-size: 0.77rem;
}

.selector-capacity-panel > ul {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding-left: 1.05rem;
  color: #4e565c;
  font-size: 0.72rem;
  line-height: 1.5;
}

.selector-comparison-disclosure,
.selector-trial-disclosure {
  margin-top: 0.8rem;
  border-block: 1px solid #dfe3e6;
}

.selector-comparison-disclosure summary,
.selector-trial-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 2.45rem;
  color: #343a3f;
  list-style: none;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
}

.selector-comparison-disclosure summary::-webkit-details-marker,
.selector-trial-disclosure summary::-webkit-details-marker {
  display: none;
}

.selector-comparison-disclosure summary span,
.selector-trial-disclosure summary span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.selector-comparison-disclosure summary svg,
.selector-trial-disclosure summary svg {
  width: 1rem;
  height: 1rem;
}

.selector-comparison-disclosure[open] summary > svg,
.selector-trial-disclosure[open] summary > svg {
  transform: rotate(90deg);
}

.selector-comparison-disclosure .selector-table-wrap {
  margin: 0 0 0.65rem;
  border: 0;
  border-radius: 0;
}

.selector-comparison-disclosure table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.68rem;
}

.selector-comparison-disclosure th,
.selector-comparison-disclosure td {
  padding: 0.55rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e3e6e8;
}

.selector-comparison-disclosure th {
  color: #555d64;
  background: #f5f6f7;
}

.selector-comparison-disclosure a {
  color: #252a2f;
}

.selector-trial-disclosure ol {
  display: grid;
  gap: 0.28rem;
  margin: 0 0 0.7rem;
  padding-left: 1.2rem;
  color: #596168;
  font-size: 0.7rem;
  line-height: 1.5;
}

.selector-answer-source {
  margin: 0.75rem 0 0;
  color: #8a9197;
  font-size: 0.66rem;
  line-height: 1.65;
}

.selector-new-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem;
  width: calc(100% - 2.75rem);
  margin: 1.2rem 0 0 2.75rem;
}

.selector-new-question textarea {
  min-height: 3.7rem;
  max-height: 8rem;
  padding: 0.85rem 1rem;
  resize: vertical;
  color: #2c3237;
  border: 1px solid #d6dbe0;
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  outline: 0;
  background: #fff;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.55;
}

.selector-new-question textarea:focus {
  border-color: #9da4aa;
  box-shadow: inset 0 0 0 1px #9da4aa;
}

.selector-new-question button {
  display: grid;
  min-height: 3.7rem;
  place-items: center;
  color: #fff;
  border: 1px solid var(--brand-red);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--brand-red);
  cursor: pointer;
}

.selector-new-question button:hover {
  background: var(--brand-red-dark);
}

.selector-new-question button svg {
  width: 1.4rem;
  height: 1.4rem;
}

.selector-new-question > small,
.selector-new-question > p {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  color: #8a9197;
  font-size: 0.66rem;
  line-height: 1.45;
}

.selector-new-question > p {
  color: var(--brand-red-dark);
}

@media (max-width: 1120px) {
  .selector-answer-columns {
    grid-template-columns: 1fr;
  }

  .selector-capacity-panel {
    padding-top: 1rem;
    border-top: 1px solid #dfe3e6;
  }
}

@media (max-width: 900px) {
  .selector-page .selector-agent-layout {
    grid-template-columns: 1fr;
  }

  .selector-page .selector-filter-panel {
    position: static;
    max-height: none;
    padding: 1.25rem 0 1.4rem;
    border-right: 0;
    border-bottom: 1px solid #dfe3e6;
    overflow: visible;
  }

  .selector-page .selector-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selector-page .selector-filter-fields > label,
  .selector-page .selector-mode-field {
    display: block;
  }

  .selector-page .selector-filter-fields label > span:first-child,
  .selector-page .selector-mode-field > span:first-child {
    display: block;
    margin-bottom: 0.35rem;
  }

  .selector-page .selector-mode-field {
    grid-column: 1 / -1;
  }

  .selector-page .selector-filter-submit {
    width: min(100%, 18rem);
  }

  .selector-filter-missing {
    display: none;
  }

  .selector-conversation {
    padding: 1.4rem 0 3rem;
  }
}

@media (max-width: 640px) {
  .selector-page .portal-shell {
    width: min(100% - 1.25rem, 620px);
  }

  .selector-user-turn {
    width: 92%;
  }

  .selector-agent-turn {
    gap: 0.45rem;
  }

  .selector-agent-bubble {
    padding: 1rem 0.85rem 1.15rem;
  }

  .selector-answer-summary {
    width: 100%;
  }

  .selector-answer-summary > div {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .selector-page .selector-device-row {
    grid-template-columns: 5.6rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .selector-page .selector-device-row__image,
  .selector-page .selector-device-row__image img {
    min-height: 4.7rem;
    height: 4.7rem;
  }

  .selector-page .selector-device-row > ul {
    grid-column: 2;
  }

  .selector-new-question {
    width: calc(100% - 2.45rem);
    margin-left: 2.45rem;
  }
}

/* ==========================================================================
   v10 统一字号阶梯层（DESIGN.md v2.0 的实现层，视觉规则以此为准）
   六级阶梯：display 30 / h2 20 / title 15 / body 15 / small 13 / micro 12
   面板级标题唯一例外：16px/700（--fs-panel）
   禁止在此层之外新增首页字号；历史层的冲突字号视为待清理债。
   ========================================================================== */

:root {
  --fs-display: 1.875rem; /* 30px 仅首页 H1 */
  --fs-h2: 1.25rem;       /* 20px 章节标题（红杠） */
  --fs-panel: 1rem;       /* 16px 面板/侧栏标题（唯一例外档） */
  --fs-title: 0.9375rem;  /* 15px 列表与卡片标题 */
  --fs-body: 0.9375rem;   /* 15px 正文与表单输入 */
  --fs-small: 0.8125rem;  /* 13px 摘要/注释/meta */
  --fs-micro: 0.75rem;    /* 12px 日期/来源 ID/栏目标签 */
}

/* ---------- 首页 Hero：收敛标题、统一密度 ---------- */

.home-board {
  gap: clamp(2rem, 3vw, 2.75rem);
  padding-block: clamp(2rem, 3vw, 2.6rem) clamp(2.2rem, 3.2vw, 2.8rem);
}

.home-board__selector h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.home-board__lead {
  margin-top: 0.8rem;
  font-size: var(--fs-body);
  line-height: 1.6;
  letter-spacing: 0;
  white-space: normal;
}

.home-v2-query {
  margin-top: 1.4rem;
  padding: 0.55rem 0.55rem 0.55rem 0.9rem;
}

.home-v2-query textarea {
  font-size: var(--fs-body);
}

.home-v2-query__main button {
  min-height: 2.9rem;
  font-size: var(--fs-body);
}

.home-v2-stages__label,
.home-v2-stages button {
  font-size: var(--fs-small);
}

.home-v3-hero-note {
  margin-top: 1rem;
  font-size: var(--fs-micro);
}

/* ---------- 今日更新：经典门户密排行 ---------- */

.home-today h2 {
  font-size: var(--fs-panel);
}

.home-today header a {
  font-size: var(--fs-micro);
}

.home-today__row {
  grid-template-columns: minmax(0, 1fr) 1.125rem;
  gap: 0.6rem;
  min-height: 0;
  padding: 0.7rem 0;
}

.home-today__row time {
  grid-column: 1 / -1;
  grid-row: 2;
  order: 3;
  font-size: var(--fs-micro);
  color: var(--muted);
}

.home-today__row small {
  font-size: var(--fs-micro);
}

.home-today__row strong {
  margin-top: 0.15rem;
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.home-today__row svg {
  grid-row: 1 / span 2;
  align-self: center;
}

/* ---------- 章节标题（红杠签名组件）：统一 20px ---------- */

.home-v2-heading h2 {
  font-size: var(--fs-h2);
}

.home-v2-heading p {
  font-size: var(--fs-small);
}

.home-v2-heading > a {
  font-size: var(--fs-small);
  font-weight: 700;
}

.home-v2-section {
  padding-block: clamp(2.4rem, 4vw, 3.4rem);
}

/* ---------- 采购问题行：标题 15px、摘要 13px、行高收紧 ---------- */

.home-v3-question-row {
  min-height: 0;
  padding: 0.95rem 0;
}

.home-v3-question-index {
  font-size: var(--fs-small);
}

.home-v3-question-copy > span {
  font-size: var(--fs-micro);
}

.home-v3-question-copy h3 {
  font-size: var(--fs-title);
}

.home-v3-question-copy p {
  font-size: var(--fs-small);
}

.home-v3-question-meta small {
  font-size: var(--fs-micro);
}

.home-v3-question-meta strong {
  font-size: var(--fs-small);
}

.home-question-note {
  font-size: var(--fs-small);
}

/* ---------- 行业资讯：feature 与列表统一进阶梯 ---------- */

.home-v3-news-feature__content strong {
  font-size: var(--fs-h2);
  font-weight: 700;
}

.home-v3-news-feature__content small {
  font-size: var(--fs-micro);
}

.home-v3-news-feature__content em {
  font-size: var(--fs-small);
}

.home-v3-news-feature__content > span {
  font-size: var(--fs-small);
}

.portal-news-item small {
  font-size: var(--fs-micro);
}

.portal-news-item strong {
  font-size: var(--fs-title);
  font-weight: 600;
}

.portal-news-item em {
  font-size: var(--fs-small);
}

.home-news-col h3 {
  font-size: var(--fs-panel);
  font-weight: 700;
}

.home-news-col > header a {
  font-size: var(--fs-micro);
}

.home-news-col li a {
  font-size: var(--fs-title);
  font-weight: 400;
}

.home-news-col li time {
  font-size: var(--fs-micro);
}

/* ---------- 设备对比表：字号并入阶梯 ---------- */

.home-v4-comparison thead strong {
  font-size: var(--fs-title);
}

.home-v4-comparison thead small,
.home-v4-comparison tbody td > small {
  font-size: var(--fs-micro);
}

.home-v4-comparison tbody th {
  font-size: var(--fs-small);
}

.home-v4-comparison tbody td > strong {
  font-size: var(--fs-small);
}

.home-v4-comparison tbody td > a,
.home-v4-comparison-footer {
  font-size: var(--fs-small);
}

/* ---------- 页头与运营栏：并入阶梯 ---------- */

.main-nav a {
  font-size: var(--fs-body);
}

.site-utility-bar span,
.site-utility-bar a {
  font-size: var(--fs-micro);
}

.header-cooperation-link {
  font-size: var(--fs-body);
}

/* ---------- 移动端整体降档 ---------- */

@media (max-width: 700px) {
  .home-board__selector h1 {
    font-size: 1.5rem; /* 24px，Display 档移动端降档 */
  }

  .home-today__row strong {
    font-size: var(--fs-title);
  }
}

/* ==========================================================================
   v11 首屏门户板（替代 v10 的营销式 Hero；DESIGN.md v2.0 结构层）
   首屏 = 单行选型条 + 三栏门户板（焦点图 / 资讯密排 / 问题密排）。
   首屏只用三档字号：标题 15、面板题 16、meta 12；红色只给主按钮、
   MORE+ 与问题序号。
   ========================================================================== */

.portal-board {
  padding-block: 1.1rem 0;
}

/* ---------- 单行选型条 ---------- */

.portal-query {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0.45rem 0.45rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 0.35rem;
}

.portal-query__title {
  margin: 0;
  color: var(--navy);
  font-size: var(--fs-panel);
  font-weight: 700;
  white-space: nowrap;
}

.portal-query__main {
  min-width: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.portal-query__main textarea {
  width: 100%;
  resize: none;
  padding: 0.55rem 0;
  overflow: hidden;
  color: #30383e;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: var(--fs-body);
  line-height: 1.5;
  caret-color: var(--brand-red);
}

.portal-query__main textarea::placeholder {
  color: #9aa1a6;
}

.portal-query:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgb(215 25 32 / 11%);
}

.portal-query > button {
  min-height: 2.5rem;
  padding: 0 1.3rem;
  color: #fff;
  background: var(--brand-red);
  border: 0;
  border-radius: 0.35rem;
  font-size: var(--fs-body);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.portal-query > button:hover {
  background: var(--brand-red-dark);
}

.portal-query .home-query-error {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--fs-small);
}

.portal-query .home-query-error:not(:empty) {
  padding-top: 0.35rem;
}

.portal-query__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: var(--fs-micro);
}

.portal-query__try {
  flex: none;
  font-weight: 600;
}

.portal-query__meta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-query__meta button {
  padding: 0 0 0.1rem;
  color: #4f575d;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: var(--fs-micro);
  cursor: pointer;
  white-space: nowrap;
}

.portal-query__meta button:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.portal-query__stat {
  margin-left: auto;
}

.portal-query__stat a {
  color: inherit;
}

/* ---------- 三栏门户板 ---------- */

.portal-board__grid {
  display: grid;
  grid-template-columns: 5fr 4.5fr 3.5fr;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

/* 焦点图：实底说明条，不用渐变 */

.portal-focus {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  text-decoration: none;
}

.portal-focus > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-focus__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding: 0.7rem 1rem 0.8rem;
  background: rgb(23 33 43 / 92%);
}

.portal-focus__caption small,
.portal-focus__caption strong {
  display: block;
}

.portal-focus__caption small {
  color: #b9c2ca;
  font-size: var(--fs-micro);
}

.portal-focus__caption strong {
  display: -webkit-box;
  margin-top: 0.25rem;
  overflow: hidden;
  color: #fff;
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 资讯密排 */

.portal-feed,
.portal-ask {
  min-width: 0;
}

.portal-feed > header,
.portal-ask > header {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--navy);
}

.portal-feed h2,
.portal-ask h2 {
  margin: 0;
  color: var(--navy);
  font-size: var(--fs-panel);
  font-weight: 700;
  white-space: nowrap;
}

.portal-feed header nav {
  display: flex;
  gap: 0.8rem;
  min-width: 0;
  overflow: hidden;
}

.portal-feed header nav a {
  color: #454c51;
  font-size: var(--fs-small);
  text-decoration: none;
  white-space: nowrap;
}

.portal-feed header nav a:hover {
  color: var(--brand-red);
}

.portal-more {
  flex: none;
  margin-left: auto;
  color: var(--brand-red);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.portal-feed ul,
.portal-ask ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-feed li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.portal-feed li a {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--fs-title);
  font-weight: 400;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-feed li a:hover {
  color: var(--brand-red);
}

.portal-feed li time {
  flex: none;
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-micro);
}

/* 问题密排 */

.portal-ask ol {
  counter-reset: ask;
}

.portal-ask li a {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.6rem 0;
  color: inherit;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.portal-ask__num {
  flex: none;
  color: var(--brand-red);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
}

.portal-ask__title {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--fs-title);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-ask li a:hover .portal-ask__title {
  color: var(--brand-red);
}

.portal-board__note {
  margin: 0.9rem 0 0;
  padding-top: 0.7rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
}

.portal-board__note a {
  margin-left: 0.5rem;
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- 响应式降档 ---------- */

@media (max-width: 980px) {
  .portal-board__grid {
    grid-template-columns: 1fr 1fr;
  }

  .portal-focus {
    grid-column: 1 / -1;
    min-height: 16rem;
  }
}

@media (max-width: 700px) {
  .portal-query {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.8rem 0.9rem;
  }

  .portal-query__main {
    padding-left: 0;
    border-left: 0;
  }

  .portal-query > button {
    width: 100%;
  }

  .portal-query__stat {
    margin-left: 0;
  }

  .portal-board__grid {
    grid-template-columns: 1fr;
  }

  .portal-focus {
    min-height: 13rem;
  }
}

/* ==========================================================================
   v12 首屏做减法：门户板收窄为两栏（焦点图 | 资讯密排），
   问题区移回第二屏双列行，删除与首屏重复的资讯大板。
   ========================================================================== */

.portal-board__grid {
  grid-template-columns: 5.5fr 4.5fr;
  gap: 2rem;
}

.portal-focus {
  min-height: 23rem;
}

/* 第二屏问题区与首屏拉开节奏：加顶部分隔与灰底带 */
.home-v2-questions {
  margin-top: 1.6rem;
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.home-v2-questions .home-v3-question-list,
.home-v2-questions .home-v3-question-row {
  background: transparent;
}

.home-v2-questions .home-v3-question-row:hover {
  background: rgb(255 255 255 / 65%);
}

@media (max-width: 980px) {
  .portal-board__grid {
    grid-template-columns: 1fr;
  }

  .portal-focus {
    min-height: 15rem;
  }
}
