/* Guided package configurator — brand blue + gold (no green wash) */

.tn-guide {
  --guide-accent: var(--tn-accent, #007AFF);
  --guide-gold: var(--tk-brand-gold, #f0bf77);
  --guide-ink: var(--tn-ink, #0f172a);
  --guide-muted: var(--tn-ink-muted, #5a6b7d);
  --guide-line: rgba(0, 122, 255, 0.16);
  --guide-surface: #fff;
  --guide-soft: #eef5ff;
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(0, 122, 255, 0.1), transparent 55%),
    radial-gradient(70% 55% at 100% 0%, rgba(240, 191, 119, 0.22), transparent 50%),
    linear-gradient(180deg, #fffefb 0%, #f7f9fc 55%, #eef4ff 100%);
  min-height: 0;
  margin: 0 -0.75rem;
  padding: 1.25rem 0.75rem 2.5rem;
  border-radius: 1rem;
}

.tn-guide__shell {
  width: min(52rem, calc(100% - 2rem));
  margin-inline: auto;
}

.tn-guide__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tn-guide__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--guide-accent);
}

.tn-guide__head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 750;
  color: var(--guide-ink);
  letter-spacing: -0.02em;
}

.tn-guide__lede {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--guide-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.tn-guide__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: var(--guide-surface);
  border: 1px solid var(--guide-line);
  border-radius: 0.875rem;
  position: sticky;
  top: 4.25rem;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tn-guide__chip {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 0.5rem;
  background: var(--guide-soft);
  color: var(--guide-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.tn-guide__edit {
  margin-inline-start: auto;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--guide-accent);
  text-decoration: none;
}

.tn-guide__edit:hover {
  text-decoration: underline;
}

.tn-guide__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.tn-guide__steps li {
  text-align: center;
  padding: 0.45rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--guide-muted);
  border-bottom: 2px solid rgba(15, 23, 42, 0.1);
}

.tn-guide__steps li.is-done {
  color: #0b6bcb;
  border-bottom-color: var(--guide-gold);
}

.tn-guide__steps li.is-current {
  color: var(--guide-accent);
  border-bottom-color: var(--guide-accent);
}

.tn-guide__back {
  margin: 0 0 1rem;
}

.tn-guide__back a {
  color: var(--guide-muted);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.tn-guide__back a:hover {
  color: var(--guide-ink);
}

.tn-guide__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .tn-guide__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tn-guide__grid--results,
  .tn-guide__grid--schools {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tn-guide__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.15rem;
  min-height: 5.5rem;
  background: var(--guide-surface);
  border: 1.5px solid var(--guide-line);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--guide-ink);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tn-guide__card:hover,
.tn-guide__card:focus-visible {
  border-color: var(--guide-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.12);
  outline: none;
}

.tn-guide__card i {
  font-size: 1.25rem;
  color: var(--guide-accent);
  margin-bottom: 0.15rem;
}

.tn-guide__card strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tn-guide__card span {
  color: var(--guide-muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

.tn-guide__card--collab {
  border-style: dashed;
  background: linear-gradient(180deg, #fffefb, #eef5ff);
}

.tn-guide__badge {
  align-self: flex-start;
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(240, 191, 119, 0.28);
  color: #8a5a12;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tn-guide__section {
  margin: 1.75rem 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--guide-ink);
}

.tn-guide__offer,
.tn-guide__school {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem;
  background: var(--guide-surface);
  border: 1.5px solid var(--guide-line);
  border-radius: 1rem;
}

.tn-guide__offer h3,
.tn-guide__school h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--guide-ink);
}

.tn-guide__tag {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a5a12;
}

.tn-guide__price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--guide-ink);
}

.tn-guide__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--guide-muted);
}

.tn-guide__services {
  list-style: none;
  margin: 0.25rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tn-guide__services li {
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  background: var(--guide-soft);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--guide-ink);
}

.tn-guide__more {
  text-align: center;
  margin: 1.25rem 0 0;
}

.tn-guide__more a {
  font-weight: 650;
  color: var(--guide-accent);
}

.tn-guide__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.tn-guide__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--guide-surface);
  border: 1px solid var(--guide-line);
  border-radius: 0.75rem;
}

.tn-guide__list strong {
  display: block;
  color: var(--guide-ink);
}

.tn-guide__list span {
  color: var(--guide-muted);
  font-size: 0.875rem;
}

.tn-guide__also {
  margin-top: 1.5rem;
  text-align: center;
}

.tn-guide__empty {
  padding: 1.25rem;
  background: var(--guide-surface);
  border: 1px dashed var(--guide-line);
  border-radius: 0.875rem;
  color: var(--guide-muted);
  text-align: center;
}

.tn-guide__soon {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--guide-line);
}

.tn-guide__grid--soon {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .tn-guide__grid--soon {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .tn-guide__grid--soon {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tn-guide__soon-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem;
  border-radius: 1rem;
  border: 1.5px dashed rgba(0, 122, 255, 0.28);
  background: rgba(255, 255, 255, 0.7);
  opacity: 0.92;
}

.tn-guide__soon-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--guide-ink);
}

.tn-guide__soon-card p {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--guide-muted);
}

.tn-guide__soon-card .tn-guide__badge {
  background: #eef2f7;
  color: #4a5560;
}

.tn-guide__count {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--guide-accent);
}

.tn-guide__promo-hint {
  margin: -0.35rem 0 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--guide-muted);
}

.tn-growth-offer {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(240, 191, 119, 0.45);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(240, 191, 119, 0.28), transparent 55%),
    #fff;
}

.tn-growth-offer__badge {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a12;
}

.tn-growth-offer__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--guide-ink);
}

.tn-growth-offer__body,
.tn-growth-offer__legal,
.tn-growth-offer__delta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--guide-muted);
}

.tn-growth-offer__legal {
  font-size: 0.72rem;
}

.tn-growth-offer .tn-btn {
  margin-top: 0.7rem;
}

.tn-guide__packages {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--guide-line);
}

.tn-guide__packages-head {
  text-align: center;
  margin-bottom: 1rem;
}

.tn-guide__packages-lede {
  margin: 0.35rem auto 0;
  max-width: 28rem;
  font-size: 0.9rem;
  color: var(--guide-muted);
}

.tn-guide__grid--packages {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.tn-guide__offer--teaser,
.tn-guide__offer--recommended {
  border-color: rgba(0, 122, 255, 0.28);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.tn-guide__promo {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8a5a12;
  line-height: 1.35;
}

/* Buttons on guide: primary = blue, secondary/outline = gold */
.tn-guide .tn-btn--primary,
.tn-guide a.tn-btn--primary,
#main-content .tn-guide a.tn-btn--primary {
  background: var(--guide-accent) !important;
  border-color: var(--guide-accent) !important;
  color: #fff !important;
}

.tn-guide .tn-btn--primary:hover,
.tn-guide a.tn-btn--primary:hover,
#main-content .tn-guide a.tn-btn--primary:hover {
  background: #0066d6 !important;
  border-color: #0066d6 !important;
  color: #fff !important;
}

.tn-guide .tn-btn--outline,
.tn-guide .tn-btn--secondary,
.tn-guide a.tn-btn--outline,
.tn-guide a.tn-btn--secondary,
#main-content .tn-guide a.tn-btn--outline,
#main-content .tn-guide a.tn-btn--secondary {
  background: var(--guide-gold) !important;
  border-color: #e0a84a !important;
  color: #1c2433 !important;
}

.tn-guide .tn-btn--outline:hover,
.tn-guide .tn-btn--secondary:hover,
.tn-guide a.tn-btn--outline:hover,
.tn-guide a.tn-btn--secondary:hover,
#main-content .tn-guide a.tn-btn--outline:hover,
#main-content .tn-guide a.tn-btn--secondary:hover {
  background: #e8b45f !important;
  border-color: #d49a3a !important;
  color: #0f172a !important;
}

@media (max-width: 639px) {
  .tn-guide {
    padding: 1.25rem 0 3rem;
  }

  .tn-guide__summary {
    top: 3.6rem;
  }

  .tn-guide__steps li {
    font-size: 0.62rem;
  }

  .tn-guide__card {
    min-height: 4.75rem;
  }
}
