/* =====================================================================
   SECTION 3 — Gear & Tips
   ===================================================================== */

/* ---------- HERO (smaller than Section 1) ---------- */

.gear-hero {
  padding: 4.5rem 0 2.5rem;
  background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-divider);
}

.gear-hero-inner {
  max-width: var(--container-narrow);
  text-align: center;
}

.gear-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.gear-hero-subtitle {
  font-size: clamp(1.05rem, 1.75vw, 1.25rem);
  color: var(--color-fg-muted);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .gear-hero { padding: 3rem 0 2rem; }
}

/* ---------- IN-PAGE TOC ---------- */

.gear-toc {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.875rem;
}

.gear-toc-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  overflow-x: auto;
}

.gear-toc-label {
  font-family: var(--font-display);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  white-space: nowrap;
}

.gear-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.gear-toc-list li { margin: 0; }

.gear-toc-list a {
  text-decoration: none;
  color: var(--color-fg-muted);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.gear-toc-list a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

@media (max-width: 768px) {
  .gear-toc-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .gear-toc-list { gap: 0.875rem; }
}

/* ---------- CONTENT SECTIONS ---------- */

.gear-section {
  max-width: var(--container-narrow);
  padding: 3.5rem 1.5rem 1.5rem;
  scroll-margin-top: 4rem;   /* clear sticky TOC when anchor-jumping */
}

.gear-section + .gear-section {
  border-top: 1px solid var(--color-divider);
  padding-top: 3.5rem;
}

.gear-section h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  margin: 0 0 1rem;
}

.gear-section h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
  font-style: italic;
  font-weight: 600;
}

.gear-lead {
  margin-bottom: 1.5rem;
}

.gear-section p { line-height: 1.65; }
.gear-section li { line-height: 1.55; }

.gear-section code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-elevated);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  border: 1px solid var(--color-divider);
}

.gear-placeholder {
  background: var(--color-bg-elevated);
  border-left: 3px solid var(--color-neutral);
  padding: 1rem 1.25rem;
  color: var(--color-fg-muted);
  margin: 1.5rem 0;
}

/* ---------- STARLINK BY-THE-NUMBERS + PER-DAY USAGE CHART ---------- */

.starlink-stats {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.starlink-stats li {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--color-bg-elevated);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.starlink-stats strong {
  color: var(--color-fg);
}

.starlink-chart-figure {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1rem 1rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-divider);
  border-radius: 6px;
}

.starlink-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 280px;
}

.starlink-chart-caption {
  margin-top: 0.875rem;
  text-align: center;
  font-size: 0.825rem;
  font-style: italic;
  color: var(--color-fg-muted);
  line-height: 1.45;
}

@media (max-width: 600px) {
  .starlink-chart-canvas-wrap { height: 240px; }
}

/* ---------- INLINE FIGURES (per-section photos) ---------- */

.gear-figure {
  margin: 2rem 0;
  text-align: center;
}

.gear-figure a {
  display: block;
  border-bottom: none;
  cursor: zoom-in;
}

.gear-figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gear-figure a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
}

.gear-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-fg-muted);
  line-height: 1.45;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Figure nested inside a list item — tighter top/bottom spacing so it
   reads as part of the bullet, not as a section break. */
.gear-figure-inline {
  margin: 1rem 0 0.5rem;
}

/* ---------- CTA LINES (per-section affiliate slots) ---------- */

.gear-cta-line {
  margin: 2rem 0 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.gear-cta {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  background: var(--color-accent-2);
  color: #f4ead0;
  border-radius: 3px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gear-cta:hover {
  color: #f4ead0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

.gear-cta-note {
  font-size: 0.8rem;
  color: var(--color-fg-muted);
  font-style: italic;
}

/* ---------- COST BREAKDOWN ---------- */

.cost-toggle {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg-elevated);
  border: 1px dashed var(--color-divider);
  border-radius: 4px;
  font-size: 0.875rem;
}

.cost-toggle-label {
  font-family: var(--font-display);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
}

.cost-toggle-btn {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--color-divider);
  background: transparent;
  color: var(--color-fg-muted);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cost-toggle-btn.is-active {
  background: var(--color-accent);
  color: #f4ead0;
  border-color: var(--color-accent);
}
.cost-toggle-btn:not(.is-active):hover {
  background: var(--color-bg);
}

.cost-toggle-hint {
  flex-basis: 100%;
  font-style: italic;
  color: var(--color-fg-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* ---------- COST CHART (interactive doughnut, sits above the table) ---------- */

.cost-chart-figure {
  margin: 0 0 2rem;
  padding: 1.25rem 1rem 1rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-divider);
  border-radius: 6px;
}

.cost-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  margin: 0 auto;
}

.cost-chart-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.825rem;
  font-style: italic;
  color: var(--color-fg-muted);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .cost-chart-canvas-wrap { height: 380px; }
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
}

.cost-table th,
.cost-table td {
  text-align: left;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}

.cost-table thead th {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  border-bottom: 2px solid var(--color-divider);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.cost-table tbody th[scope="row"] {
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-fg);
}

.cost-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 500;
}

.cost-table tfoot th,
.cost-table tfoot td {
  border-top: 2px solid var(--color-divider);
  border-bottom: none;
  padding-top: 1rem;
  font-size: 1.05rem;
}

@media (max-width: 600px) {
  .cost-table {
    font-size: 0.875rem;
  }
  .cost-table th,
  .cost-table td {
    padding: 0.625rem 0.5rem;
  }
}

/* ---------- RECOMMENDATIONS ---------- */

.recommendations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.875rem;
}

.recommendations-list li {
  margin: 0;
  padding: 1rem 1.125rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  line-height: 1.5;
}

.recommendations-list a {
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
}
.recommendations-list a:hover {
  border-bottom-color: var(--color-link-hover);
}

/* ---------- BACK CTA ---------- */

.gear-back-cta {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
