/* ============================================================
   SevenTicker — Guide Pages
   ============================================================ */

.guides-hero {
  padding: 48px 0 32px;
}

.guides-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.guides-hero__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ── Guide Hub Cards ── */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.guide-card:hover {
  border-color: rgba(245, 197, 24, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.guide-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.guide-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.guide-card__arrow {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 4px;
}

/* ── Individual Guide Page ── */
.guide-hero {
  padding: 48px 0 32px;
}

.guide-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.guide-hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.guide-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity var(--transition);
}

.guide-hero__cta:hover {
  opacity: 0.85;
}

.guide-hero__back {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.guide-hero__back:hover {
  color: var(--text-primary);
}

/* ── Guide Content ── */
.guide-content {
  padding-bottom: 48px;
}

.guide-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text-primary);
}

.guide-content h2:first-child {
  margin-top: 0;
}

.guide-content p,
.guide-content ul,
.guide-content li {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.97rem;
}

.guide-content ul {
  padding-left: 20px;
  margin-top: 8px;
}

.guide-content li {
  margin-bottom: 8px;
}

.guide-content a {
  color: var(--accent);
}

/* ── Worked Example ── */
.worked-example {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 28px 28px 24px;
  margin: 48px 0 32px;
}

.worked-example__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 10px;
}

.worked-example__scenario {
  font-size: 0.97rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 20px;
}

.worked-example__rows {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.worked-example__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  gap: 16px;
}

.worked-example__row:last-child {
  border-bottom: none;
}

.worked-example__row--result {
  background: rgba(245, 197, 24, 0.06);
}

.worked-example__key {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.worked-example__val {
  color: var(--text-primary);
  font-family: var(--font-heading);
  text-align: right;
}

.worked-example__row--result .worked-example__key {
  font-weight: 600;
  color: var(--text-primary);
}

.worked-example__row--result .worked-example__val {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.worked-example__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.worked-example__cta:hover {
  color: var(--accent);
}
