:root {
  --bg: #f6faf6;
  --bg-soft: rgba(255, 255, 255, 0.72);
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #1e2a22;
  --muted: #607064;
  --line: rgba(37, 57, 45, 0.11);
  --brand: #134e44;
  --brand-deep: #0d3a32;
  --accent: #d27645;
  --accent-soft: rgba(210, 118, 69, 0.12);
  --shadow: 0 24px 56px rgba(29, 50, 40, 0.12);
  --shadow-soft: 0 14px 32px rgba(29, 50, 40, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content: 1120px;
  --content-narrow: 980px;
  --font-body: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Iowan Old Style", "Noto Serif SC", "Songti SC", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 0% 0%, rgba(210, 118, 69, 0.16), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(19, 78, 68, 0.18), transparent 26%),
    linear-gradient(145deg, #fcfff9 0%, #f6faf6 45%, #eef6f0 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(19, 78, 68, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 78, 68, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

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

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

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

button {
  cursor: pointer;
}

.page-shell {
  width: min(calc(100% - 24px), var(--content));
  margin: 0 auto;
  padding: 14px 0 72px;
}

.page-shell-narrow {
  width: min(calc(100% - 24px), var(--content-narrow));
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(19, 78, 68, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(29, 50, 40, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy span {
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a:not(.button),
.site-nav button:not(.button) {
  padding: 10px 14px;
  border-radius: 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:not(.button):hover,
.site-nav button:not(.button):hover,
.site-nav a:not(.button):focus-visible,
.site-nav button:not(.button):focus-visible {
  color: var(--brand-deep);
  background: rgba(19, 78, 68, 0.08);
  transform: translateY(-1px);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  padding: 34px;
}

.page-hero {
  grid-template-columns: 1fr;
  text-align: left;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.question-card h3,
.result-panel h3,
.type-card h3 {
  margin: 0;
  line-height: 1.06;
}

.hero-copy h1,
.page-hero h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: -0.04em;
}

.eyebrow,
.section-kicker,
.result-panel-kicker,
.dim-model {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(19, 78, 68, 0.12);
  border-radius: 999px;
  background: rgba(19, 78, 68, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lead,
.hero-note,
.section-heading p,
.challenge-inline,
.feature-card p,
.mini-card p,
.faq-card p,
.result-subcopy,
.type-card p,
.dim-card p,
.secondary-box,
.copy-status,
.rank-item p,
.test-actions .hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.hero-lead {
  margin-top: 18px;
  max-width: 56ch;
  font-size: 18px;
}

.hero-note {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 14px;
}

.hero-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 24px;
}

.bullet-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.bullet-stats li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(19, 78, 68, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.hero-panel,
.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(19, 78, 68, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 250, 245, 0.95));
  box-shadow: var(--shadow-soft);
}

.mini-card h2,
.mini-card h3 {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.mini-card-accent {
  background: linear-gradient(180deg, rgba(248, 239, 233, 0.96), rgba(255, 249, 245, 0.92));
}

.mini-card-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 14px 28px rgba(19, 78, 68, 0.2);
}

.button-secondary {
  color: var(--brand-deep);
  border-color: rgba(19, 78, 68, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.button-tertiary {
  color: var(--accent);
  border-color: rgba(210, 118, 69, 0.18);
  background: rgba(210, 118, 69, 0.08);
}

.button-small {
  min-height: 40px;
  padding: 10px 14px;
}

.type-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.72fr);
  gap: 24px;
  padding: 34px;
}

.type-detail-main,
.type-detail-side,
.detail-copy {
  display: grid;
  gap: 16px;
}

.type-detail-side {
  justify-items: center;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(19, 78, 68, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 252, 247, 0.92));
}

.type-avatar-detail {
  width: 156px;
  height: 156px;
  border-radius: 36px;
  font-size: 28px;
}

.type-detail-code,
.type-detail-name {
  margin: 0;
  text-align: center;
}

.type-detail-code {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.type-detail-name {
  color: var(--brand-deep);
  font-size: 22px;
  font-weight: 700;
}

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

.detail-stat,
.detail-section {
  padding: 24px;
}

.detail-section {
  margin-top: 18px;
}

.detail-stat h2 {
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-family: var(--font-display);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.feature-card h3 {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-family: var(--font-display);
}

.feature-section,
.feature-card,
.compare-card,
.featured-types-card,
.challenge-card,
.test-card,
.result-card-shell,
.faq-card {
  padding: 28px;
  margin-top: 18px;
}

.challenge-card {
  background:
    radial-gradient(circle at top right, rgba(210, 118, 69, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(255, 255, 255, 0.9));
}

.challenge-inline {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(210, 118, 69, 0.16);
  background: rgba(210, 118, 69, 0.08);
  color: #824927;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  padding: 14px 12px;
  border-top: 1px solid rgba(19, 78, 68, 0.1);
  text-align: left;
}

th {
  color: var(--brand-deep);
  font-size: 14px;
}

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

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

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

.type-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  scroll-margin-top: 96px;
  border: 1px solid rgba(19, 78, 68, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 248, 0.92));
}

.type-card:target,
.type-card-highlight {
  box-shadow: 0 0 0 3px rgba(19, 78, 68, 0.14);
}

.type-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.type-card-copy h3 {
  font-size: 24px;
}

.type-card-code {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.type-card-intro {
  color: var(--brand-deep);
  font-weight: 600;
}

.type-card-compact h3 {
  font-size: 20px;
}

.article-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(19, 78, 68, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 251, 246, 0.92));
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(19, 78, 68, 0.18);
  box-shadow: 0 18px 34px rgba(29, 50, 40, 0.08);
}

.article-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.article-card-link {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.content-prose {
  display: grid;
  gap: 14px;
}

.content-prose p,
.content-prose li {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.content-prose ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.content-prose a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.content-prose a:hover,
.content-prose a:focus-visible {
  color: var(--brand-deep);
}

.type-avatar {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  word-break: break-word;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(145deg, var(--brand) 0%, var(--brand-deep) 100%);
}

.type-avatar-media {
  padding: 0;
  border: 1px solid rgba(19, 78, 68, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

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

.type-avatar-small {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 15px;
}

.progress-shell {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(19, 78, 68, 0.08);
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, #2d7568 100%);
  transition: width 180ms ease;
}

.progress-copy {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.question-list {
  display: grid;
  gap: 14px;
}

.question-card {
  padding: 20px;
  border: 1px solid rgba(19, 78, 68, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.question-card h3 {
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1.45;
}

.option-grid {
  display: grid;
  gap: 10px;
}

.option {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(19, 78, 68, 0.12);
  border-radius: 14px;
  background: rgba(248, 252, 248, 0.88);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.option:hover {
  transform: translateY(-1px);
  border-color: rgba(19, 78, 68, 0.22);
}

.option input {
  margin-top: 2px;
}

.option-code {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(19, 78, 68, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.option-copy {
  line-height: 1.6;
}

.test-actions {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.result-top,
.result-layout {
  display: grid;
  gap: 18px;
}

.result-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr);
  margin-top: 22px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.social-card {
  padding: 20px;
  border: 1px solid rgba(19, 78, 68, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 252, 247, 0.92));
}

.social-card-label {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-card h3,
.share-poster-main h3 {
  margin: 12px 0 10px;
  font-size: 28px;
  line-height: 1.18;
}

.social-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.social-card .social-card-label {
  color: var(--brand);
}

.social-card-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-card-link:hover,
.social-card-link:focus-visible {
  color: var(--brand-deep);
}

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

.challenge-result-box {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(19, 78, 68, 0.12);
  border-radius: 18px;
  background: rgba(248, 252, 248, 0.92);
}

.challenge-result-hit {
  background: linear-gradient(180deg, rgba(239, 249, 243, 0.95), rgba(255, 255, 255, 0.92));
}

.challenge-result-miss {
  background: linear-gradient(180deg, rgba(255, 247, 241, 0.95), rgba(255, 255, 255, 0.92));
  border-color: rgba(210, 118, 69, 0.2);
}

.challenge-result-box h3,
.challenge-result-box p {
  margin: 0;
}

.challenge-result-box h3 {
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.18;
}

.challenge-result-box p:last-child {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.72;
}

.poster-preview {
  margin-top: 20px;
}

.share-poster-surface {
  position: relative;
  display: grid;
  gap: 22px;
  min-height: 430px;
  padding: 28px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(210, 118, 69, 0.28), transparent 30%),
    linear-gradient(145deg, #0d3a32 0%, #134e44 52%, #1f6a5f 76%, #d27645 100%);
  box-shadow: 0 24px 54px rgba(29, 50, 40, 0.18);
}

.share-poster-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.share-poster-kicker,
.share-poster-signature {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.share-poster-main {
  display: grid;
  gap: 12px;
  align-content: start;
}

.share-poster-code,
.share-poster-footer,
.share-poster-flavor,
.share-poster-intro {
  margin: 0;
}

.share-poster-code {
  font-family: var(--font-display);
  font-size: clamp(58px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.share-poster-main h3 {
  font-size: clamp(30px, 4vw, 40px);
}

.share-poster-flavor {
  max-width: 28ch;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.22;
}

.share-poster-intro {
  max-width: 52ch;
  color: rgba(233, 246, 239, 0.88);
  line-height: 1.72;
}

.share-poster-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.share-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.share-pill strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(233, 246, 239, 0.78);
}

.share-pill span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.share-poster-footer {
  color: rgba(233, 246, 239, 0.84);
  font-size: 13px;
}

.type-hero {
  display: flex;
  align-items: center;
  gap: 18px;
}

.type-copy {
  display: grid;
  gap: 8px;
}

.type-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.04em;
}

.result-badge {
  margin: 0;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
}

.result-panel {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.result-panel h3 {
  margin: 10px 0 12px;
  font-size: 28px;
}

.rank-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(19, 78, 68, 0.1);
  border-radius: 14px;
  background: rgba(248, 252, 248, 0.9);
}

.rank-item strong {
  display: block;
  margin-bottom: 4px;
}

.rank-item span {
  color: var(--brand);
  font-weight: 800;
}

.secondary-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: #824927;
}

.dim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.dim-card {
  padding: 18px;
  border: 1px solid rgba(19, 78, 68, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.dim-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.dim-card h3 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.dim-score {
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

.faq-card details {
  padding: 16px 0;
  border-top: 1px solid rgba(19, 78, 68, 0.1);
}

.faq-card details:first-of-type {
  border-top: 0;
}

.faq-card summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-card summary + p {
  margin-top: 10px;
}

.site-footer {
  padding: 28px 4px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.noscript-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: #7f3b1a;
  box-shadow: 0 12px 28px rgba(29, 50, 40, 0.18);
}

@media (max-width: 960px) {
  .hero,
  .page-hero,
  .type-detail-hero,
  .detail-grid,
  .section-grid,
  .article-grid,
  .social-grid,
  .type-grid-compact,
  .result-layout,
  .dim-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 16px), var(--content));
  }

  .hero,
  .page-hero,
  .feature-section,
  .feature-card,
  .compare-card,
  .featured-types-card,
  .challenge-card,
  .test-card,
  .result-card-shell,
  .faq-card {
    padding: 22px;
  }

  .article-card h3 {
    font-size: 21px;
  }

  .question-card h3 {
    font-size: 18px;
  }

  .type-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .button,
  .site-nav a,
  .site-nav button {
    width: 100%;
  }

  .button-row,
  .hero-actions,
  .site-nav {
    flex-direction: column;
    align-items: stretch;
  }
}
