:root {
  --tv-bg: #ffffff;
  --tv-soft: #f7f6f4;
  --tv-soft-2: #f1efec;
  --tv-ink: #1a1a1a;
  --tv-body: #454a52;
  --tv-muted: #5f6570;
  --tv-faint: #666b73;
  --tv-line: #e3e0dc;
  --tv-accent: #e0533d;
  --tv-accent-btn: #c94328;
  --tv-accent-deep: #b23a24;
  --tv-accent-soft: #fbece8;
  --tv-radius: 14px;
  --tv-radius-sm: 9px;
  --tv-container: 1160px;
}

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

body {
  margin: 0;
  background-color: var(--tv-bg);
  color: var(--tv-body);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--tv-ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.1rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--tv-accent-deep);
}

a:hover {
  color: var(--tv-accent);
}

.tv-prose a,
.tv-source a,
.tv-note a,
.tv-faq__body a,
.tv-sec__note a,
.tv-cookie p a,
.tv-cta p a,
.tv-table td a,
.tv-foot__note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

table {
  border-collapse: collapse;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.55em;
}

code,
time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--tv-accent-deep);
  outline-offset: 2px;
  border-radius: 3px;
}

.tv-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  background: var(--tv-accent-deep);
  color: #ffffff;
  padding: 12px 18px;
  font-weight: 700;
}

.tv-skip:focus {
  left: 14px;
  top: 14px;
}

.tv-shell {
  max-width: var(--tv-container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.tv-head {
  border-bottom: 1px solid var(--tv-line);
  background: #fffffff2;
  position: sticky;
  top: 0;
  z-index: 40;
}

.tv-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
}

.tv-logo {
  color: var(--tv-ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.tv-logo span {
  color: var(--tv-accent);
}

.tv-nav {
  display: none;
  gap: 22px;
  align-items: center;
}

.tv-nav a {
  color: var(--tv-muted);
  font-size: 0.93rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.tv-nav a:hover,
.tv-nav a[aria-current="page"] {
  color: var(--tv-accent-deep);
}

.tv-burger {
  background: none;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-sm);
  padding: 11px 13px;
  cursor: pointer;
  min-height: 44px;
}

.tv-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--tv-ink);
}

.tv-burger span + span {
  margin-top: 5px;
}

.tv-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.tv-drawer.is-open {
  max-height: 460px;
  border-top: 1px solid var(--tv-line);
}

.tv-drawer a {
  display: block;
  padding: 13px 0;
  min-height: 44px;
  color: var(--tv-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--tv-line);
}

.tv-crumb {
  font-size: 0.84rem;
  color: var(--tv-faint);
  padding-top: 20px;
}

.tv-spot {
  background:
    linear-gradient(135deg, #fde8e2 0%, #f7d9cf 42%, #f3e7dd 72%, #ffffff 100%);
  border-bottom: 1px solid var(--tv-line);
  padding-top: 44px;
  padding-bottom: 48px;
}

.tv-spot__kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tv-accent-deep);
  font-weight: 700;
  margin-bottom: 16px;
}

.tv-spot__lead {
  font-size: 1.1rem;
  color: #4a4640;
  max-width: 60ch;
  margin-top: 20px;
}

.tv-spot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tv-spot__meta {
  margin-top: 26px;
  font-size: 0.86rem;
  color: #6c665e;
}

.tv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 26px;
  border-radius: var(--tv-radius-sm);
  background: var(--tv-accent-btn);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--tv-accent-btn);
  transition: 150ms ease;
}

.tv-btn:hover {
  background: var(--tv-accent-deep);
  border-color: var(--tv-accent-deep);
  color: #ffffff;
}

.tv-btn--line {
  background: transparent;
  color: var(--tv-ink);
  border-color: #d8cec6;
}

.tv-btn--line:hover {
  background: #ffffff;
  border-color: var(--tv-accent);
  color: var(--tv-accent-deep);
}

.tv-sec {
  padding-top: 40px;
  padding-bottom: 40px;
}

.tv-sec__head {
  margin-bottom: 22px;
}

.tv-sec__note {
  color: var(--tv-muted);
  max-width: 64ch;
  margin-top: 10px;
}

.tv-band {
  background: var(--tv-soft);
  border-top: 1px solid var(--tv-line);
  border-bottom: 1px solid var(--tv-line);
  padding-top: 44px;
  padding-bottom: 44px;
}

.tv-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

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

.tv-ladder > li {
  position: relative;
  margin-left: 19px;
  padding-left: 40px;
  padding-bottom: 34px;
  border-left: 2px solid var(--tv-line);
}

.tv-ladder > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.tv-ladder__num {
  position: absolute;
  left: -20px;
  top: -4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tv-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.tv-ladder h3 {
  margin-bottom: 8px;
}

.tv-ladder p {
  color: var(--tv-muted);
  margin-bottom: 0;
}

.tv-grid {
  display: grid;
  gap: 18px;
}

.tv-card {
  background: #ffffff;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius);
  padding: 22px;
}

.tv-card--tint {
  background: var(--tv-accent-soft);
  border-color: #f2d8d0;
}

.tv-card__tag {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tv-accent-deep);
  font-weight: 700;
  margin-bottom: 9px;
}

.tv-card h3 {
  margin-bottom: 9px;
}

.tv-card p {
  color: var(--tv-muted);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.tv-bento {
  display: grid;
  gap: 16px;
}

.tv-bento__cell {
  background: var(--tv-soft);
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius);
  padding: 22px;
}

.tv-bento__cell--wide {
  background: #ffffff;
}

.tv-bento__num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tv-accent-deep);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tv-bento__label {
  color: var(--tv-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.tv-zig {
  display: grid;
  gap: 26px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.tv-zig + .tv-zig {
  border-top: 1px solid var(--tv-line);
}

.tv-zig p {
  color: var(--tv-muted);
}

.tv-split {
  display: grid;
  gap: 30px;
}

.tv-split__side h2 {
  margin-bottom: 12px;
}

.tv-split__side p {
  color: var(--tv-muted);
}

.tv-offset {
  display: grid;
  gap: 22px;
}

.tv-offset__a,
.tv-offset__b,
.tv-offset__c {
  min-width: 0;
}

.tv-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius);
  background: #ffffff;
}

.tv-table {
  width: 100%;
  min-width: 600px;
  font-size: 0.94rem;
}

.tv-table caption {
  text-align: left;
  padding: 15px 18px;
  color: var(--tv-muted);
  font-size: 0.86rem;
  font-style: italic;
  border-bottom: 1px solid var(--tv-line);
}

.tv-table th,
.tv-table td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--tv-line);
}

.tv-table thead th {
  background: var(--tv-soft);
  color: var(--tv-ink);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tv-table tbody th {
  color: var(--tv-ink);
  font-weight: 700;
}

.tv-table tbody td {
  color: var(--tv-muted);
}

.tv-table tbody tr:last-child th,
.tv-table tbody tr:last-child td {
  border-bottom: none;
}

.tv-source {
  color: var(--tv-faint);
  font-size: 0.84rem;
  font-style: italic;
  margin-top: 12px;
}

.tv-dl {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius);
  overflow: hidden;
}

.tv-dl div {
  padding: 16px 18px;
  border-bottom: 1px solid var(--tv-line);
  background: #ffffff;
}

.tv-dl div:last-child {
  border-bottom: none;
}

.tv-dl dt {
  color: var(--tv-accent-deep);
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.tv-dl dd {
  margin: 0;
  color: var(--tv-muted);
  font-size: 0.94rem;
}

.tv-faq {
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius);
  background: #ffffff;
  margin-bottom: 12px;
}

.tv-faq > summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 52px 17px 20px;
  position: relative;
  font-weight: 700;
  color: var(--tv-ink);
  min-height: 44px;
}

.tv-faq > summary::-webkit-details-marker {
  display: none;
}

.tv-faq > summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 13px;
  color: var(--tv-accent);
  font-size: 1.4rem;
  line-height: 1;
}

.tv-faq[open] > summary::after {
  content: "\2212";
}

.tv-faq__body {
  padding: 0 20px 18px;
  color: var(--tv-muted);
  font-size: 0.96rem;
}

.tv-note {
  border-left: 3px solid var(--tv-accent);
  background: var(--tv-accent-soft);
  border-radius: 0 var(--tv-radius-sm) var(--tv-radius-sm) 0;
  padding: 18px 20px;
  color: #6b4034;
  font-size: 0.97rem;
}

.tv-note strong {
  color: #55291f;
}

.tv-figure {
  margin: 0 0 22px;
}

.tv-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--tv-radius);
  border: 1px solid var(--tv-line);
}

.tv-figure svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--tv-radius);
  border: 1px solid var(--tv-line);
  background: #ffffff;
}

.tv-figure figcaption {
  color: var(--tv-muted);
  font-size: 0.87rem;
  margin-top: 9px;
}

.tv-credit {
  display: block;
  color: var(--tv-faint);
  font-size: 0.77rem;
  margin-top: 5px;
}

.tv-calc {
  background: #ffffff;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius);
  padding: 22px;
}

.tv-calc__row {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.tv-calc label {
  display: block;
  font-size: 0.84rem;
  color: var(--tv-muted);
  margin-bottom: 6px;
  font-weight: 700;
}

.tv-calc input,
.tv-calc select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-sm);
  background: #ffffff;
  color: var(--tv-ink);
  font-size: 1rem;
}

.tv-calc__out {
  border-top: 1px solid var(--tv-line);
  margin-top: 18px;
  padding-top: 18px;
  color: var(--tv-muted);
  font-size: 0.95rem;
}

.tv-calc__big {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--tv-accent-deep);
  letter-spacing: -0.03em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tv-pre {
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius);
  background: var(--tv-soft);
  padding: 20px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.75;
  color: #4b5058;
  margin: 0 0 12px;
}

.tv-pre b {
  color: var(--tv-accent-deep);
  font-weight: 700;
}

.tv-cta {
  background: var(--tv-soft);
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius);
  padding: 34px 24px;
  text-align: center;
}

.tv-cta p {
  color: var(--tv-muted);
  max-width: 52ch;
  margin: 12px auto 22px;
}

.tv-prose h2 {
  margin-top: 32px;
  margin-bottom: 14px;
}

.tv-prose h3 {
  margin-top: 24px;
  margin-bottom: 10px;
}

.tv-prose strong {
  color: var(--tv-ink);
}

.tv-foot {
  border-top: 1px solid var(--tv-line);
  background: var(--tv-soft-2);
  padding-top: 38px;
  padding-bottom: 30px;
  margin-top: 44px;
}

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

.tv-foot__title {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tv-faint);
  font-weight: 700;
  margin-bottom: 10px;
}

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

.tv-foot__list a {
  display: inline-block;
  padding: 10px 0;
  min-height: 44px;
  color: var(--tv-muted);
  font-size: 0.91rem;
  text-decoration: none;
}

.tv-foot__list a:hover {
  color: var(--tv-accent-deep);
}

.tv-foot__note {
  border-top: 1px solid var(--tv-line);
  margin-top: 26px;
  padding-top: 20px;
  color: var(--tv-faint);
  font-size: 0.81rem;
  line-height: 1.7;
}

.tv-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #fffffffa;
  border-top: 1px solid var(--tv-line);
  padding: 18px 0;
  transform: translateY(115%);
  transition: transform 240ms ease;
}

.tv-cookie.is-open {
  transform: translateY(0);
}

.tv-cookie__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tv-cookie p {
  margin: 0;
  color: var(--tv-muted);
  font-size: 0.9rem;
  max-width: 66ch;
}

.tv-cookie__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tv-cookie__row .tv-btn {
  flex: 1 1 auto;
}

.tv-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #2b201cb8;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.tv-modal[data-open="true"] {
  display: flex;
}

.tv-modal__box {
  background: #ffffff;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius);
  padding: 24px;
  width: 100%;
  max-width: 460px;
}

.tv-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tv-line);
  color: var(--tv-muted);
  font-size: 0.93rem;
}

.tv-modal__close {
  background: none;
  border: none;
  color: var(--tv-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

@media (min-width: 620px) {
  .tv-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .tv-cookie__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .tv-cookie__row .tv-btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 800px) {
  .tv-shell {
    padding-left: 30px;
    padding-right: 30px;
  }

  .tv-spot {
    padding-top: 70px;
    padding-bottom: 74px;
  }

  .tv-sec {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .tv-band {
    padding-top: 60px;
    padding-bottom: 60px;
  }

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

  .tv-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tv-bento__cell--wide {
    grid-column: span 2;
    grid-row: span 2;
  }

  .tv-zig {
    grid-template-columns: 1fr 400px;
    gap: 40px;
  }

  .tv-zig--flip > :first-child {
    order: 2;
  }

  .tv-offset {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .tv-offset__a {
    grid-column: 1 / span 8;
  }

  .tv-offset__b {
    grid-column: 4 / span 9;
  }

  .tv-offset__c {
    grid-column: 2 / span 10;
  }

  .tv-foot__cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .tv-nav {
    display: flex;
  }

  .tv-burger,
  .tv-drawer {
    display: none;
  }

  .tv-split {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
  }

  .tv-split__side {
    position: sticky;
    top: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
