.tc-page {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3.75rem;
}

.tc-hero {
  padding: 1.35rem 0 0.75rem;
}

.tc-hero h1 {
  margin: 0.15rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.6vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 16ch;
}

.tc-hero__lead {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.tc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.tc-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.2rem 0 1.1rem;
}

.tc-strip__item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-soft);
}

.tc-strip__item span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tc-strip__item strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
}

.tc-tool {
  margin: 0.4rem 0 2rem;
  padding: 1.15rem 1.15rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.92));
  box-shadow: var(--shadow);
}

.tc-tool__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tc-tool__head h2 {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
}

.tc-tool__sub {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.55;
}

.tc-tool__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.4rem 0 1.1rem;
}

.tc-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tc-tabs button:hover,
.tc-tabs button.is-active {
  background: var(--blue-deep);
  color: #fff;
  border-color: var(--navy);
}

.tc-panel h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.tc-panel__lead {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.tc-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.tc-field {
  display: grid;
  gap: 0.3rem;
}

.tc-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tc-field input,
.tc-field select,
.tc-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.tc-field textarea {
  min-height: 120px;
  resize: vertical;
}

.tc-field--grow {
  grid-column: 1 / -1;
}

.tc-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.35rem 0 0.9rem;
}

.tc-ops label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  cursor: pointer;
}

.tc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.5rem 0 1rem;
}

.tc-out {
  min-height: 4.5rem;
}

.tc-result {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.tc-result__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.tc-result__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
}

.tc-result__grid dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.tc-result__grid dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
  font-size: 1.02rem;
}

.tc-hint,
.tc-error {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
}

.tc-hint {
  background: var(--blue-mist);
  color: var(--blue-deep);
}

.tc-error {
  background: #ffe8e8;
  color: #8a1f1f;
}

.tc-week {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.tc-week__row {
  display: grid;
  grid-template-columns: 3.5rem repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: end;
}

.tc-week__day {
  font-weight: 750;
  padding-bottom: 0.7rem;
}

.tc-section {
  margin: 2.4rem 0 0;
}

.tc-section h2 {
  margin: 0.2rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.tc-section > p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 65ch;
  line-height: 1.6;
}

.tc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.tc-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow-soft);
}

.tc-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.tc-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.tc-faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
}

.tc-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.tc-faq details p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.tc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.tc-table th,
.tc-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.65rem 0.4rem;
}

.tc-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-hub {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 3.5rem;
}

.calc-hub h1 {
  margin: 0.15rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.calc-hub__lead {
  margin: 0 0 1.5rem;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.calc-tile {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, rgba(244, 248, 255, 0.95));
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calc-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.calc-tile h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.calc-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.calc-tile__tag {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-mist);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .tc-strip,
  .tc-cards,
  .calc-grid,
  .tc-result__grid {
    grid-template-columns: 1fr;
  }

  .tc-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tc-week__row {
    grid-template-columns: 1fr;
  }

  .tc-week__day {
    padding-bottom: 0;
  }
}

/* Mobile only: title → calculator immediately */
@media (max-width: 768px) {
  .tc-page {
    width: min(100%, calc(100% - 1.25rem));
    padding: 0.65rem 0 2.75rem;
    display: flex;
    flex-direction: column;
  }

  .tc-page > .wc-crosslink,
  .tc-hero__lead,
  .tc-hero__actions,
  .tc-strip {
    display: none !important;
  }

  .tc-hero {
    order: 1;
    padding: 0.35rem 0 0.25rem;
  }

  .tc-hero .eyebrow {
    margin-bottom: 0.15rem;
    font-size: 0.7rem;
  }

  .tc-hero h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.7rem, 8.5vw, 2.15rem);
    max-width: none;
  }

  .tc-tool {
    order: 2;
    margin: 0 0 1.5rem;
    padding: 0.85rem 0.8rem 1.1rem;
    border-radius: 18px;
  }

  .tc-tool__head > div:first-child {
    display: none;
  }

  .tc-tool__head {
    margin-bottom: 0.65rem;
  }

  .tc-tool__toggles {
    width: 100%;
    justify-content: space-between;
  }

  .tc-tool__toggles .btn {
    flex: 1 1 auto;
    min-height: 40px;
    padding-inline: 0.65rem;
    font-size: 0.84rem;
  }

  .tc-tabs {
    margin: 0 0 0.85rem;
    gap: 0.35rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .tc-tabs::-webkit-scrollbar {
    display: none;
  }

  .tc-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.48rem 0.78rem;
    font-size: 0.82rem;
  }

  .tc-panel h3 {
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
  }

  .tc-panel__lead {
    display: none;
  }

  .tc-fields {
    gap: 0.5rem;
  }

  .tc-field input,
  .tc-field select,
  .tc-field textarea {
    min-height: 44px;
    font-size: 16px; /* prevent iOS zoom */
  }

  .tc-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .tc-result__grid {
    grid-template-columns: 1fr;
  }

  .tc-section,
  .tc-page .calc-grid {
    display: none !important;
  }
}
