/* ===== Guides — shared styles ===== */
/* Linked after /styles.css on every /guides/* page. */

/* ===== Guide layout ===== */
.guide-hero {
  padding: 6rem 0 3rem;
  max-width: var(--content-width);
}

.guide-body {
  max-width: var(--content-width);
}

/* ===== TL;DR table ===== */
.tldr {
  margin: 0 0 3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tldr__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.55;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tldr__table thead {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.14) 0%, rgba(100, 180, 255, 0.08) 100%);
}

.tldr__table thead th {
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-align: left;
  border-bottom: 1px solid rgba(0, 212, 170, 0.2);
  white-space: nowrap;
}

.tldr__table thead th:first-child {
  color: var(--text-muted);
}

.tldr__table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.tldr__table tbody tr:last-child {
  border-bottom: none;
}

.tldr__table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.tldr__table tbody td {
  padding: 0.9rem 1.25rem;
  color: var(--text-soft);
  vertical-align: top;
}

.tldr__table tbody td:first-child {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
}

.tldr__table tbody td:not(:first-child) {
  border-left: 1px solid var(--border);
}

/* Odd rows slightly elevated */
.tldr__table tbody tr:nth-child(odd) {
  background: var(--bg-card);
}
.tldr__table tbody tr:nth-child(odd):hover {
  background: var(--bg-card-hover);
}
.tldr__table tbody tr:nth-child(even) {
  background: var(--bg-elevated);
}
.tldr__table tbody tr:nth-child(even):hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ===== Guide section headings ===== */
.guide-section {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.guide-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.guide-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1rem;
}

.guide-section__lead {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 65ch;
  margin: 0 0 1.1rem;
}

/* ===== Guide bullet list ===== */
.guide-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 62ch;
}

.guide-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.guide-list li::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.55rem;
  flex-shrink: 0;
  margin-top: 0.45em;
  opacity: 0.8;
}

/* ===== Cost / time callout cards ===== */
.guide-callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.guide-callout {
  padding: 1.4rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease;
}

.guide-callout:hover {
  border-color: var(--border-hover);
}

.guide-callout__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

.guide-callout__value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
  line-height: 1.2;
}

.guide-callout__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ===== Decision framework ===== */
.decision-framework {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
  max-width: 64ch;
}

.decision-item {
  padding: 1.1rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent);
}

.decision-item__q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 0.3rem;
}

.decision-item__a {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumb__sep {
  color: var(--border-strong);
  font-size: 0.7rem;
}

.breadcrumb__current {
  color: var(--text-soft);
}

/* ===== Guide CTA block ===== */
.guide-cta {
  margin: 3rem 0 2rem;
  padding: 2.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.08) 0%, rgba(160, 100, 255, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.guide-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.guide-cta p {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .guide-callout-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tldr__table {
    font-size: 0.88rem;
  }

  .tldr__table thead th,
  .tldr__table tbody td {
    padding: 0.75rem 0.85rem;
  }
}

@media (max-width: 420px) {
  .guide-callout-grid {
    grid-template-columns: 1fr;
  }
}
