:root {
  --next-paper: #f4efe8;
  --next-paper-deep: #e7ddd1;
  --next-ink: #161616;
  --next-ink-soft: #5d564e;
  --next-line: rgba(22, 22, 22, 0.1);
  --next-line-strong: rgba(22, 22, 22, 0.18);
  --next-accent: #81543a;
  --next-accent-soft: #d5b8a2;
  --next-dark: #181818;
  --next-dark-soft: #242424;
  --next-glow: rgba(129, 84, 58, 0.12);
  --next-shadow: 0 20px 50px rgba(22, 22, 22, 0.08);
  --next-radius: 22px;
  --next-max: 1180px;
}

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


html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Instrument Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--next-ink);
  background:
    radial-gradient(
      circle at top left,
      rgba(129, 84, 58, 0.08),
      transparent 30%
    ),
    linear-gradient(180deg, #f7f2eb 0%, #f1ebe3 55%, #ece5dc 100%);
}

h1,
h2,
h3,
.nav-logo,
.hero-eyebrow,
.hero-title {
  font-family: "Bodoni Moda", Georgia, serif;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--next-dark);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-100% - 24px));
  transition: transform 180ms ease, opacity 180ms ease;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-next-ribbon {
  position: sticky;
  top: 0;
  z-index: 2100;
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--next-dark), var(--next-dark-soft));
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-next-ribbon__inner {
  width: min(100%, var(--next-max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  font-size: 0.875rem;
}

.site-next-ribbon__inner strong {
  color: #fff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.site-next-ribbon__inner a {
  color: var(--next-accent-soft);
  text-decoration: none;
}

.navbar,
.nav {
  background: rgba(247, 242, 235, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  box-shadow: none;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 242, 235, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  box-shadow: none;
}

.nav-container,
.masthead-inner {
  width: min(100%, var(--next-max));
  max-width: var(--next-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.nav-container {
  gap: 24px;
}

.masthead-inner {
  gap: 16px;
}

.nav-logo {
  color: var(--next-ink);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

/* Brand lockup (masthead component — matching homepage design) */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(22, 22, 22, 0.14);
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(230, 221, 209, 0.75));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--next-ink);
}

.brand-copy strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-copy span {
  display: block;
  margin-top: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  color: rgba(22, 22, 22, 0.56);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead-nav-shell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.masthead-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.masthead-utility {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.demo-pill {
  border: 1px solid rgba(129, 84, 58, 0.2);
  background: rgba(129, 84, 58, 0.08);
  color: var(--next-accent);
  padding: 8px 11px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead-nav a,
.masthead-nav .nav-link {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(22, 22, 22, 0.78);
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.masthead-nav a:hover,
.masthead-nav a:focus-visible,
.masthead-nav a.is-active {
  background: rgba(255, 255, 255, 0.7);
  color: var(--next-ink);
}

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle-icon {
  display: none;
}

.nav-links {
  gap: 8px;
}

.nav-links,
.nav,
.navbar,
.nav-container {
  flex-wrap: wrap;
}

.nav-item,
.dropdown,
.masthead-item {
  position: relative;
}

.nav-item.dropdown::after,
.dropdown::after,
.masthead-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 28px;
}

.nav-links a,
.nav-link {
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(22, 22, 22, 0.78);
}

.nav-links a:hover,
.nav-link:hover,
.nav-links a.active,
.nav-link.active,
.nav-links a[aria-current="page"],
.nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.78);
  color: var(--next-ink);
}

/* ── Dropdown (desktop) ── */
.masthead-dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  display: none;
  padding: 8px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--next-shadow);
}

.masthead-dropdown:hover .masthead-dropdown-menu,
.masthead-dropdown:focus-within .masthead-dropdown-menu {
  display: block;
}

.masthead-dropdown-menu a {
  display: block;
  padding: 11px 14px;
  margin: 1px 0;
  border-radius: 12px;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(22, 22, 22, 0.78);
  text-decoration: none;
  line-height: 1.4;
}

.masthead-dropdown-menu a:hover,
.masthead-dropdown-menu a.is-active {
  background: rgba(255, 255, 255, 0.88);
  color: var(--next-ink);
}

.hero,
.hero-container {
  position: relative;
  overflow: clip;
  background: transparent;
  border-bottom: none;
  padding: clamp(42px, 8vw, 86px) 20px 34px;
}

.hero::before,
.hero-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 85% 18%,
      rgba(129, 84, 58, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at 12% 22%,
      rgba(255, 255, 255, 0.55),
      transparent 18%
    );
  pointer-events: none;
}

.hero-content {
  width: min(100%, var(--next-max));
  max-width: var(--next-max);
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

h1 {
  max-width: 15ch;
  margin-bottom: 16px;
  color: var(--next-ink);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: left;
}

.description {
  max-width: 42ch;
  color: var(--next-ink-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  text-align: left;
}

main,
.content-container {
  width: min(100%, var(--next-max));
  max-width: var(--next-max);
  margin: 0 auto;
  padding: 14px 20px 72px;
}

.content-container {
  max-width: none;
  display: grid;
  gap: 16px;
  align-content: start;
}

.toc-nav,
.quick-nav {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: none;
}

.quick-nav a,
.toc-nav a {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 22, 22, 0.08);
  color: var(--next-ink);
}

.content-section,
.card,
.result-card,
.tool-card,
.calculator-section,
.results-section,
.table-wrapper,
.comparison-table-wrapper {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: var(--next-radius);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.content-section,
.calculator-section,
.results-section,
.table-wrapper,
.comparison-table-wrapper {
  padding: clamp(22px, 3vw, 34px);
}

.content-section::before,
.card::before,
.result-card::before,
.tool-card::before,
.calculator-section::before,
.results-section::before,
.table-wrapper::before,
.comparison-table-wrapper::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(129, 84, 58, 0.26) 18%,
    rgba(22, 22, 22, 0.08) 100%
  );
}

.content-section + .content-section,
.calculator-section + .results-section,
.tool-card + .tool-card {
  margin-top: 0;
}

.next-hero-shell {
  width: min(100%, var(--next-max));
}

.next-hero-grid,
.next-split,
.next-two-column,
.next-tool-layout,
.next-route-grid {
  display: grid;
  gap: 20px;
}

.next-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: center;
}

.next-hero-aside {
}

.next-tool-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: center;
}

.next-split,
.next-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.next-hero-copy {
  display: grid;
  gap: 16px;
  align-content: start;
  padding-top: 28px;
}

.next-eyebrow,
.next-section-kicker,
.next-panel-label,
.next-callout span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.56);
}

.next-panel {
  padding: 28px 28px 30px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: var(--next-radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--next-shadow);
  display: flex;
  flex-direction: column;
}

.next-panel .next-panel-label {
  flex-shrink: 0;
}

.next-panel .next-stat-list,
.next-panel .next-ordered-list,
.next-panel .next-list,
.next-panel .next-link-list {
  flex: 1;
  align-content: safe center;
  gap: 20px;
}

.next-panel--dark .next-stat-list li,
.next-panel--dark .next-ordered-list li,
.next-panel--dark .next-list li,
.next-panel--dark .next-link-list li {
  gap: 8px;
  padding-top: 18px;
  border-color: rgba(255, 255, 255, 0.1);
}

.next-panel--dark .next-stat-list li:first-child,
.next-panel--dark .next-ordered-list li:first-child,
.next-panel--dark .next-list li:first-child,
.next-panel--dark .next-link-list li:first-child {
  padding-top: 0;
  border-top: none;
}

.next-panel--dark,
.next-featured-tool {
  background:
    radial-gradient(
      circle at top right,
      rgba(213, 184, 162, 0.2),
      transparent 32%
    ),
    linear-gradient(155deg, #4a2a18 0%, #26140c 45%, #181512 100%);
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.08);
}

.next-panel--dark .next-panel-label,
.next-featured-tool .next-section-kicker,
.next-featured-tool p {
  color: rgba(255, 255, 255, 0.6);
}

.next-panel--dark strong,
.next-featured-tool h2 {
  color: #fff;
  font-size: 1.05em;
}

.next-panel--dark .next-stat-list span,
.next-panel--dark .next-ordered-list span,
.next-panel--dark .next-list span {
  font-size: 0.94em;
  line-height: 1.5;
}

.next-stat-list,
.next-list,
.next-link-list,
.next-ordered-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.next-stat-list li,
.next-list li,
.next-link-list li,
.next-ordered-list li {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
}

.next-panel--dark .next-stat-list li,
.next-panel--dark .next-ordered-list li,
.next-featured-tool .next-pill {
  border-color: rgba(255, 255, 255, 0.1);
}

.next-stat-list li:first-child,
.next-list li:first-child,
.next-link-list li:first-child,
.next-ordered-list li:first-child {
  padding-top: 0;
  border-top: none;
}

.next-stat-list strong,
.next-list strong,
.next-ordered-list strong {
  font-size: 1rem;
}

.next-stat-list span,
.next-list span,
.next-ordered-list span {
  color: var(--next-ink-soft);
}

.next-panel--dark .next-stat-list span,
.next-panel--dark .next-ordered-list span {
  color: rgba(255, 255, 255, 0.7);
}

.next-pill-row,
.next-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.next-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}

.next-section-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 360px);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.next-lead-copy {
  display: grid;
  gap: 12px;
}

.next-lead-copy h2,
.next-featured-tool h2,
.next-cta-panel h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.25;
  letter-spacing: -0.05em;
}

.next-callout,
.next-cta-panel {
  padding: 24px 26px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: var(--next-radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.next-callout strong {
  display: block;
  margin-top: 8px;
  font-size: 1.125rem;
  line-height: 1.5;
}

.next-featured-tool {
  padding: 28px;
  border-radius: 28px;
  box-shadow: 0 20px 42px rgba(22, 22, 22, 0.12);
}

.next-stack {
  display: grid;
  gap: 20px;
}

.next-link-list a {
  text-decoration: none;
  font-weight: 600;
}

.next-link-list a:hover {
  color: var(--next-accent);
}

.next-cta-panel {
  margin-top: 20px;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--next-ink);
  border-color: rgba(22, 22, 22, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.96);
}

.content-section h2,
.section-title,
.results-title {
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
  color: var(--next-ink);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.card h2,
.calculator-container h2,
.input-section h3,
.result-section h3,
.tips-section h3 {
  margin: 0 0 12px;
  padding: 0;
  border-bottom: none;
  color: var(--next-ink);
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.card h3,
.input-section h4,
.result-section h4 {
  color: var(--next-ink);
}

.content-section h2,
.content-section > p,
.content-section > ul,
.content-section > ol,
.content-section > .table-responsive,
.content-section > .table-wrapper,
.content-section > .comparison-table-wrapper {
  max-width: 76ch;
}

.content-section > * + *,
.calculator-section > * + *,
.results-section > * + *,
.card > * + *,
.tool-card > * + * {
  margin-top: 14px;
}

.content-section p,
.content-section li,
.tool-card p,
.table-note,
.faq-answer,
.faq p {
  color: var(--next-ink-soft);
  font-size: 1rem;
}

.content-section h3,
.card h3,
.tool-card h3,
.faq h3 {
  margin-top: 18px;
  color: var(--next-ink);
  font-size: 1.25rem;
  line-height: 1.25;
}

.content-section
  ul:not(.next-list):not(.next-link-list):not(.next-ordered-list),
.content-section ol:not(.next-ordered-list),
.card ul:not(.next-list):not(.next-link-list):not(.next-ordered-list),
.tool-card ul:not(.next-list):not(.next-link-list):not(.next-ordered-list) {
  display: grid;
  gap: 12px;
  padding-left: 1.2rem;
}

.content-section strong,
.card strong,
.tool-card strong,
.faq strong {
  color: var(--next-ink);
}

.card,
.tool-card,
.result-card {
  padding: 24px;
  border-radius: 18px;
}

.card + .card,
.tool-card + .tool-card,
.result-card + .result-card {
  margin-top: 12px;
}

.calculator-container,
.currency-selector,
.input-section,
.result-section,
.tips-section,
.warning,
.detail-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
}

.calculator-container,
.input-section,
.result-section,
.tips-section,
.warning,
.detail-panel {
  padding: 22px;
}

.calculator-container::before,
.currency-selector::before,
.input-section::before,
.result-section::before,
.tips-section::before,
.warning::before,
.detail-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(129, 84, 58, 0.26) 18%,
    rgba(22, 22, 22, 0.08) 100%
  );
}

.currency-selector {
  padding: 14px 16px;
  margin-bottom: 18px;
}

.calc-grid,
.grid,
.detail-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.calc-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.94fr);
  align-items: start;
}

/* 分享块与推荐面板跨满两列，平铺在 calc-grid 下方 */
.calc-grid .share-block,
.calc-grid .rec-panel {
  grid-column: 1 / -1;
}

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

.input-section,
.result-section {
  display: grid;
  gap: 16px;
}

.results {
  display: grid;
  gap: 16px;
}

.result-row {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
}

.result-row:first-child {
  padding-top: 0;
  border-top: none;
}

.result-label,
.cost-label,
.hint,
.result-sub,
.warning,
.copy-text,
.detail-panel,
.detail-panel summary {
  font-family: "Instrument Sans", sans-serif;
}

.result-label,
.cost-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.56);
}

.result-value,
.cost-value {
  color: var(--next-ink);
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.result-sub,
.hint,
.warning,
.list,
.copy-text {
  color: var(--next-ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.list {
  display: grid;
  gap: 12px;
  padding-left: 1.2rem;
}

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

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.875rem;
  color: rgba(22, 22, 22, 0.82);
}

.check input {
  flex-shrink: 0;
  margin: 0;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: rgba(22, 22, 22, 0.82);
  font-size: 0.875rem;
  font-weight: 600;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.form-group select,
.form-group textarea,
.copy-text {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--next-ink);
  box-shadow: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.copy-text:focus {
  outline: 2px solid rgba(129, 84, 58, 0.18);
  outline-offset: 1px;
  border-color: rgba(129, 84, 58, 0.26);
  box-shadow: 0 0 0 4px rgba(129, 84, 58, 0.06);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(129, 84, 58, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.check input[type="checkbox"]:hover,
.check input[type="radio"]:hover {
  accent-color: var(--next-accent);
}

.actions,
.copy-row,
.range-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.range-container input[type="range"] {
  flex: 1;
}

.copy-row .copy-text {
  flex: 1 1 260px;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  text-decoration: none;
}

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

.secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--next-ink);
}

.warning {
  color: #7b4a30;
  background: rgba(129, 84, 58, 0.08);
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(22, 22, 22, 0.08);
  color: var(--next-ink);
}

.risk-med {
  background: rgba(129, 84, 58, 0.12);
  color: #7b4a30;
}

.cost-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.tldr {
  margin-top: 14px;
  max-width: 42rem;
  padding: 16px 18px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.tldr ul {
  display: grid;
  gap: 8px;
  padding-left: 1.1rem;
}

.detail-panel summary {
  cursor: pointer;
  color: var(--next-ink);
  font-weight: 600;
}

.detail-panel[open] summary {
  margin-bottom: 12px;
}

label {
  color: rgba(22, 22, 22, 0.84);
  font-weight: 600;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  border: 1px solid rgba(22, 22, 22, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.1em;
  height: 1.1em;
  margin: 0 6px 0 0;
  accent-color: var(--next-accent);
  cursor: pointer;
  vertical-align: middle;
}

input[type="range"] {
  height: 6px;
  margin: 8px 0;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: rgba(22, 22, 22, 0.12);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--next-accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--next-accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

button,
.button,
.btn,
.shop-btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  background: var(--next-dark);
  color: #fff;
  border: 1px solid var(--next-dark);
  box-shadow: none;
  transition: background 180ms ease;
}

button:hover,
.button:hover,
.btn:hover,
.shop-btn:hover,
.cta-button:hover {
  background: var(--next-dark-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  padding: 14px 12px;
  text-align: left;
}

tbody tr:nth-child(even) {
  background: rgba(129, 84, 58, 0.03);
}

tbody tr:hover {
  background: rgba(129, 84, 58, 0.06);
}

thead th {
  background: rgba(129, 84, 58, 0.08);
  color: var(--next-ink);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-responsive,
.table-wrapper,
.comparison-table-wrapper {
  max-width: none;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 18px;
}

.table-responsive {
  padding: 8px 10px;
}

.site-footer {
  background:
    radial-gradient(
      circle at top right,
      rgba(213, 184, 162, 0.12),
      transparent 22%
    ),
    linear-gradient(180deg, #1c1c1c 0%, #131313 100%);
  color: rgba(255, 255, 255, 0.76);
}

.footer-container,
.footer-bottom {
  width: min(100%, var(--next-max));
  max-width: var(--next-max);
  margin: 0 auto;
}

.footer-container {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 40px 24px 24px;
  align-items: start;
}

.footer-col h4 {
  color: #fff;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer-col a,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-col p,
.footer-col p[style] {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1rem;
  line-height: 1.7;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom p[style] {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

@media (max-width: 1040px) {
  .next-hero-grid,
  .next-tool-layout,
  .next-section-lead {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: min(12ch, 100%);
    font-size: clamp(2.9rem, 8vw, 4.8rem);
  }
}

@media (max-width: 860px) {
  .site-next-ribbon {
    position: static;
  }

  .masthead {
    backdrop-filter: none;
  }

  .masthead-inner {
    flex-wrap: wrap;
  }

  .brand-lockup {
    flex: 1;
  }

  /* Hamburger */
  .nav-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    cursor: pointer;
    border: none;
    background: none;
  }

  .nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--next-ink);
    border-radius: 2px;
  }

  /* Overlay */
  .masthead-nav-shell {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(247, 242, 235, 0.98);
    padding: 90px 28px 40px;
    overflow-y: auto;
  }

  html.nav-open .masthead-nav-shell {
    display: block;
  }

  /* Nav list */
  .masthead-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 420px;
    margin: 0 auto;
  }

  .masthead-nav > a {
    display: block;
    padding: 16px 0;
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--next-ink);
    border-bottom: 1px solid rgba(22, 22, 22, 0.06);
    text-decoration: none;
  }

  /* Tools accordion */
  .masthead-dropdown {
    border-bottom: 1px solid rgba(22, 22, 22, 0.06);
  }

  .masthead-dropdown > a {
    display: flex;
    align-items: center;
    padding: 16px 0;
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--next-ink);
    text-decoration: none;
    cursor: pointer;
  }

  .masthead-dropdown > a::after {
    content: "+";
    margin-left: auto;
    font-size: 1.8rem;
    font-weight: 300;
    opacity: 0.4;
  }

  .masthead-dropdown.open > a::after {
    content: "−";
  }

  .masthead-dropdown-menu {
    position: static;
    display: none;
    padding: 0 0 12px 20px;
  }

  .masthead-dropdown.open .masthead-dropdown-menu {
    display: block;
  }

  .masthead-dropdown-menu a {
    display: block;
    padding: 10px 0;
    font-family: "Instrument Sans", sans-serif;
    font-size: 1rem;
    color: rgba(22, 22, 22, 0.72);
    text-decoration: none;
  }

  .hero,
  .hero-container {
    padding-top: 34px;
  }

  .next-hero-grid,
  .next-tool-layout,
  .next-split,
  .next-two-column,
  .next-grid-3,
  .next-route-grid,
  .next-section-lead {
    grid-template-columns: 1fr;
  }

  .calc-grid,
  .grid,
  .detail-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-container {
    padding-top: 24px;
  }

  .next-hero-copy {
    padding-top: 16px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .content-section,
  .calculator-section,
  .results-section,
  .table-wrapper,
  .comparison-table-wrapper {
    padding: 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}

/* ── Share block ── */
.share-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  margin-top: 28px;
}

.share-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.5);
  margin-right: 4px;
}

.share-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(22, 22, 22, 0.14);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--next-ink);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.share-link:hover {
  border-color: rgba(129, 84, 58, 0.4);
  background: rgba(129, 84, 58, 0.05);
}

.share-block--inline {
  margin-top: 16px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
  border-bottom: none;
}

/* ── Product recommendation cards ── */
.rec-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.rec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.rec-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--next-ink);
  font-weight: 600;
}

.rec-note {
  font-size: 0.78rem;
  color: rgba(22, 22, 22, 0.55);
}

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

.rec-card {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 56px auto;
  grid-template-areas:
    "rank main  score cta"
    "rank specs score cta";
  align-items: center;
  gap: 3px 12px;
  padding: 12px 16px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  color: var(--next-ink);
  transition: border-color 180ms ease, transform 180ms ease;
}

.rec-card:hover {
  border-color: rgba(129, 84, 58, 0.35);
  transform: translateY(-1px);
}

.rec-rank {
  grid-area: rank;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.3rem;
  color: var(--next-accent);
  font-weight: 600;
}

.rec-main {
  grid-area: main;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rec-brand {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-model {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: rgba(22, 22, 22, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-specs {
  grid-area: specs;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(22, 22, 22, 0.72);
  white-space: normal;
}

.rec-score {
  grid-area: score;
  grid-row: 1 / 3;
  justify-self: end;
  align-self: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--next-accent);
  text-align: right;
  line-height: 1.25;
}

.rec-score small {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(22, 22, 22, 0.5);
}

.rec-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(129, 84, 58, 0.1);
  color: var(--next-accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.rec-cta {
  grid-area: cta;
  grid-row: 1 / 3;
  justify-self: end;
  align-self: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--next-accent);
  white-space: nowrap;
}

.rec-disclosure {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(22, 22, 22, 0.06);
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(22, 22, 22, 0.42);
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .rec-card {
    grid-template-columns: 24px minmax(0, 1fr) 52px;
    grid-template-areas:
      "rank main  score"
      "rank specs score";
    gap: 4px 10px;
  }
  .rec-cta {
    display: none;
  }
  .rec-specs {
    flex-wrap: wrap;
    gap: 4px 10px;
    white-space: normal;
  }
}

@media (max-width: 860px) {
  .share-block {
    gap: 8px;
  }
  .share-link {
    padding: 6px 11px;
    font-size: 0.78rem;
  }
}

@media (max-width: 1120px) {
  .nav-container,
  .masthead-inner {
    gap: 16px;
    justify-content: space-between;
  }

  .nav-logo {
    flex: 1 1 220px;
  }

  .nav-links,
  .masthead-nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 4px;
  }

  .nav-links a,
  .nav-link,
  .masthead-nav a {
    padding: 9px 11px;
    font-size: 0.875rem;
  }
}
