/* Comparison workspace only; the shared fixed partials own the hero and Article. */
.tn-ci-page {
  --ci-paper: #faf6ee;
  --ci-surface: #fffdf7;
  --ci-wash: #f5efdf;
  --ci-ink: #1a1208;
  --ci-muted: #5a4a30;
  --ci-line: #b8a888;
  --ci-soft: #ddd4be;
  --ci-accent: #c44a00;
  --ci-error: #8a2b15;
  --ci-button: #1a1208;
  --ci-button-hover: #823200;
  --ci-button-text: #faf6ee;
  --ci-quiet: #ede6d4;
  --ci-quiet-hover: #dfd4bb;
  --ci-scheme: light;
  --ci-sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif;
}
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-d="dark"], [data-scheme="auto"][data-l="dark"]) .tn-ci-page,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body:not([data-scheme="light"]) .tn-ci-page {
  --ci-paper: #241d12;
  --ci-surface: #322a1a;
  --ci-wash: #2c2418;
  --ci-ink: #efe6d2;
  --ci-muted: #c3b492;
  --ci-line: #826744;
  --ci-soft: #574a37;
  --ci-accent: #f29a5d;
  --ci-error: #f1a078;
  --ci-button: #4a3116;
  --ci-button-hover: #5d3c1b;
  --ci-button-text: #f7ead1;
  --ci-quiet: #2f2115;
  --ci-quiet-hover: #3a2a1b;
  --ci-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-ci-page,
  html[data-scheme="auto"] body:not([data-scheme="light"]):not([data-scheme="dark"]):not([data-scheme="inverse"]) .tn-ci-page {
    --ci-paper: #241d12;
    --ci-surface: #322a1a;
    --ci-wash: #2c2418;
    --ci-ink: #efe6d2;
    --ci-muted: #c3b492;
    --ci-line: #826744;
    --ci-soft: #574a37;
    --ci-accent: #f29a5d;
    --ci-error: #f1a078;
    --ci-button: #4a3116;
    --ci-button-hover: #5d3c1b;
    --ci-button-text: #f7ead1;
    --ci-quiet: #2f2115;
    --ci-quiet-hover: #3a2a1b;
    --ci-scheme: dark;
  }
}
.tn-ci-page [hidden] { display: none !important; }
/* The creative is SDK-sized; these wrappers reserve minimum space, never cap its height. */
.tn-ci-page .tn-ci-ad {
  width: 100%;
  max-width: 900px;
  min-height: 90px;
  height: auto;
  max-height: none;
  margin-inline: auto;
  overflow: visible;
  background: transparent;
}
.tn-ci-page .tn-ci-ad--top { margin-block: 54px 18px; }
.tn-ci-page .tn-ci-ad--bottom { margin-block: 28px 26px; }
.tn-ci-page .tn-ci-tool,
.tn-ci-page .tn-ci-tool *,
.tn-ci-page .tn-ci-tool *::before,
.tn-ci-page .tn-ci-tool *::after,
.tn-ci-page .tn-ci-comparison,
.tn-ci-page .tn-ci-comparison * { box-sizing: border-box; }
.tn-ci-page .tn-ci-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  margin-inline: auto;
  border: 1px solid var(--ci-line);
  border-block: 3px double var(--ci-line);
  background: var(--ci-paper);
  color: var(--ci-ink);
  -webkit-text-fill-color: currentColor;
  color-scheme: var(--ci-scheme);
  font: 14px/1.6 var(--ci-sans);
  overflow-wrap: break-word;
}
.tn-ci-page .tn-ci-tool :is(p, dl, dt, dd, fieldset) { margin: 0; }
.tn-ci-page .tn-ci-form,
.tn-ci-page .tn-ci-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 16px 14px;
  min-width: 0;
  padding: 28px;
}
.tn-ci-page .tn-ci-results {
  border-left: 1px solid var(--ci-line);
  background: var(--ci-wash);
}
.tn-ci-page :is(.tn-ci-form, .tn-ci-results) > :not(.tn-ci-field):not(.tn-ci-metric) { grid-column: 1 / -1; min-width: 0; }
.tn-ci-page .tn-ci-fields,
.tn-ci-page .tn-ci-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.tn-ci-page .tn-ci-fields > .tn-ci-field:last-child { grid-column: 1 / -1; }
.tn-ci-page .tn-ci-tool .tn-ci-kicker { color: var(--ci-muted); -webkit-text-fill-color: var(--ci-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.tn-ci-page :is(.tn-ci-form, .tn-ci-results) :is(h2, h3) {
  margin: 0;
  color: var(--ci-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  word-break: keep-all;
}
.tn-ci-page :is(.tn-ci-form, .tn-ci-results) p { color: var(--ci-muted); -webkit-text-fill-color: var(--ci-muted); font-size: 13px; line-height: 1.7; word-break: keep-all; }
.tn-ci-page .tn-ci-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.tn-ci-page .tn-ci-field label { color: var(--ci-ink); -webkit-text-fill-color: var(--ci-ink); font-size: 13px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.tn-ci-page .tn-ci-field .tn-ci-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding-inline: 12px;
  border: 1px solid var(--ci-line);
  background: var(--ci-surface);
  color: var(--ci-ink);
}
.tn-ci-page .tn-ci-field .tn-ci-control:focus-within { outline: 2px solid var(--ci-accent); outline-offset: 2px; }
.tn-ci-page .tn-ci-field .tn-ci-control:has([aria-invalid="true"]) { border-color: var(--ci-error); }
.tn-ci-page .tn-ci-field :is(input, select) {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ci-ink);
  -webkit-text-fill-color: var(--ci-ink);
  font: 600 16px/1.4 var(--ci-sans);
  font-variant-numeric: lining-nums tabular-nums;
}
.tn-ci-page .tn-ci-field > :is(input, select) { padding-inline: 12px; border: 1px solid var(--ci-line); background: var(--ci-surface); }
.tn-ci-page .tn-ci-field input::placeholder { color: var(--ci-ink); -webkit-text-fill-color: var(--ci-ink); opacity: .35; font-weight: 400; }
.tn-ci-page .tn-ci-field select { cursor: pointer; }
.tn-ci-page .tn-ci-field option { background: var(--ci-surface); color: var(--ci-ink); }
.tn-ci-page .tn-ci-field .tn-ci-control > span { flex: 0 0 auto; color: var(--ci-muted); -webkit-text-fill-color: var(--ci-muted); font-size: 13px; }
.tn-ci-page .tn-ci-field :is(small, .tn-ci-help) { color: var(--ci-muted); -webkit-text-fill-color: var(--ci-muted); font-size: 12px; line-height: 1.6; }
.tn-ci-page .tn-ci-tool :is(input, select, button):focus-visible,
.tn-ci-page .tn-ci-table-wrap:focus-visible { outline: 2px solid var(--ci-accent); outline-offset: 3px; }
.tn-ci-page .tn-ci-field .tn-ci-control :is(input, select):focus-visible { outline: none; }
.tn-ci-page .tn-ci-field [aria-invalid="true"]:not(:focus-visible) { outline: 1px solid var(--ci-error); outline-offset: -1px; }
.tn-ci-page .tn-ci-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tn-ci-page .tn-ci-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--ci-line);
  border-radius: 0;
  background: var(--ci-quiet);
  box-shadow: none;
  color: var(--ci-button-text);
  -webkit-text-fill-color: var(--ci-button-text);
  font: 700 13px/1.2 var(--ci-sans);
  text-align: center;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.tn-ci-page .tn-ci-actions button:not(#ci-compare) { color: var(--ci-ink); -webkit-text-fill-color: var(--ci-ink); }
.tn-ci-page .tn-ci-actions button:hover:not(#ci-compare):not(:disabled) { background: var(--ci-quiet-hover); }
.tn-ci-page .tn-ci-actions #ci-compare {
  border-color: var(--ci-button);
  background: var(--ci-button);
  color: var(--ci-button-text);
  -webkit-text-fill-color: var(--ci-button-text);
}
.tn-ci-page .tn-ci-actions #ci-compare:hover:not(:disabled) { background: var(--ci-button-hover); }
.tn-ci-page .tn-ci-actions button:disabled { opacity: .6; cursor: not-allowed; }
.tn-ci-page .tn-ci-error { grid-column: 1 / -1; color: var(--ci-error); -webkit-text-fill-color: var(--ci-error); font-size: 13px; font-weight: 700; line-height: 1.6; word-break: keep-all; }
.tn-ci-page .tn-ci-metric {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 16px 12px;
  border: 1px solid var(--ci-line);
  background: var(--ci-surface);
  text-align: center;
}
.tn-ci-page .tn-ci-primary { grid-column: 1 / -1; border-block: 3px double var(--ci-line); }
.tn-ci-page .tn-ci-metric :is(dt, span:first-child, small) { color: var(--ci-muted); -webkit-text-fill-color: var(--ci-muted); font-size: 13px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.tn-ci-page .tn-ci-metric :is(dd, output, strong, b) {
  max-width: 100%;
  color: var(--ci-ink);
  -webkit-text-fill-color: var(--ci-ink);
  font: 800 clamp(20px, 2.1vw, 28px)/1.3 var(--ci-sans);
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}
.tn-ci-page .tn-ci-primary :is(dd, output, strong, b) { font-size: clamp(27px, 3vw, 38px); }
.tn-ci-page .tn-ci-comparison {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  padding: 24px 28px;
  border-top: 1px solid var(--ci-line);
  background: var(--ci-paper);
  color: var(--ci-ink);
  color-scheme: var(--ci-scheme);
  font: 14px/1.6 var(--ci-sans);
}
.tn-ci-page .tn-ci-comparison-head { display: grid; gap: 6px; margin-bottom: 16px; }
.tn-ci-page .tn-ci-comparison-head p { margin: 0; }
.tn-ci-page .tn-ci-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--ci-line);
}
.tn-ci-page .tn-ci-comparison :is(h2, h3) { margin: 0 0 12px; font-size: 17px; line-height: 1.5; }
.tn-ci-page .tn-ci-scroll-hint { display: none; margin: 0 0 10px; color: var(--ci-muted); -webkit-text-fill-color: var(--ci-muted); font-size: 12px; }
.tn-ci-page .tn-ci-comparison table { width: 100%; min-width: 940px; margin: 0; border-collapse: collapse; background: var(--ci-surface); font-variant-numeric: lining-nums tabular-nums; }
.tn-ci-page .tn-ci-comparison :is(th, td) { padding: 11px 12px; border-bottom: 1px solid var(--ci-soft); color: var(--ci-ink); -webkit-text-fill-color: var(--ci-ink); font-size: 13px; line-height: 1.5; text-align: right; white-space: nowrap; }
.tn-ci-page .tn-ci-comparison th { font-weight: 700; }
.tn-ci-page .tn-ci-comparison thead th { border-bottom: 2px solid var(--ci-line); background: var(--ci-wash); }
.tn-ci-page .tn-ci-comparison :is(th, td):first-child { text-align: left; }
.tn-ci-page .tn-ci-comparison tbody tr:last-child :is(th, td) { border-bottom: 0; }
.tn-ci-page .tn-ci-comparison tbody td { font-weight: 800; }
.tn-ci-page .tn-ci-comparison #ci-scenarios td[colspan] { color: var(--ci-muted); -webkit-text-fill-color: var(--ci-muted); font-weight: 400; text-align: center; }
.tn-ci-page .tn-ci-comparison :is(caption, p) { color: var(--ci-muted); -webkit-text-fill-color: var(--ci-muted); font-size: 13px; line-height: 1.6; text-align: left; word-break: keep-all; }
.tn-ci-page .tn-ci-comparison caption { padding-bottom: 8px; }
.tn-ci-page .tn-ci-comparison > .tn-ci-caption { margin: 12px 0 0; }
.tn-ci-page .tn-ci-privacy,
.tn-ci-page .tn-ci-tool > noscript { grid-column: 1 / -1; margin: 0; padding: 12px 28px; border-top: 1px solid var(--ci-soft); color: var(--ci-muted); -webkit-text-fill-color: var(--ci-muted); font-size: 12px; line-height: 1.6; }
@media (max-width: 760px) {
  .tn-ci-page .tn-ci-ad--top { margin-top: 48px; }
  .tn-ci-page .tn-ci-tool { grid-template-columns: minmax(0, 1fr); }
  .tn-ci-page :is(.tn-ci-form, .tn-ci-results) { padding: 20px 16px; }
  .tn-ci-page .tn-ci-results { border-left: 0; border-top: 1px solid var(--ci-line); }
  .tn-ci-page .tn-ci-comparison { padding: 20px 16px; }
  .tn-ci-page .tn-ci-privacy,
  .tn-ci-page .tn-ci-tool > noscript { padding-inline: 16px; }
  .tn-ci-page .tn-ci-scroll-hint { display: block; }
}
@media (max-width: 390px) {
  .tn-ci-page :is(.tn-ci-form, .tn-ci-results) { gap: 14px 10px; padding: 18px 12px; }
  .tn-ci-page :is(.tn-ci-fields, .tn-ci-breakdown) { gap: 10px; }
  .tn-ci-page .tn-ci-field .tn-ci-control { gap: 4px; padding-inline: 8px; }
  .tn-ci-page .tn-ci-metric { padding: 14px 8px; }
  .tn-ci-page .tn-ci-metric :is(dd, output, strong, b) { font-size: 20px; }
  .tn-ci-page .tn-ci-primary :is(dd, output, strong, b) { font-size: 28px; }
  .tn-ci-page .tn-ci-actions button { flex: 1 1 auto; padding-inline: 10px; }
  .tn-ci-page .tn-ci-comparison { padding-inline: 12px; }
  .tn-ci-page .tn-ci-privacy,
  .tn-ci-page .tn-ci-tool > noscript { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-ci-page .tn-ci-actions button { transition: none; }
}
