/* ==========================================================================
   Staydays: guide, support and legal page styles
   Loaded after main.css on /guides/, /support/, /privacy/, /terms/ only.
   ========================================================================== */

/* Article layout: single column; sticky TOC rail from 1100px up */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding-block: 40px 64px;
}
@media (min-width: 1100px) {
  .article-layout {
    grid-template-columns: 220px minmax(0, 720px);
    justify-content: center;
    gap: 64px;
    padding-block: 64px 88px;
  }
}

.article-toc {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
@media (min-width: 1100px) {
  .article-toc {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }
  .article-toc-inner { position: sticky; top: 96px; }
}
.article-toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.article-toc-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.article-toc-links a { font-size: 13px; color: var(--text-dim); line-height: 1.4; }
.article-toc-links a:hover { color: var(--text-hi); }

.article { min-width: 0; }

.article-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-kicker .kicker-type { color: var(--accent); }
.article-kicker .kicker-topic { color: var(--muted); }
.kicker-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }

.article-title {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 34px;
}

/* Answer-first box */
.answer-box {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 26px;
  margin-bottom: 36px;
}
.answer-box-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.answer-box p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-hi);
  font-weight: 500;
}
.answer-box strong { color: var(--accent); }

/* Prose */
.prose p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 18px;
}
.prose p strong { color: var(--text-hi); font-weight: 600; }
.prose h2 {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 40px 0 16px;
  scroll-margin-top: 90px;
  text-wrap: balance;
}
.prose h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 28px 0 12px;
}
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--text); }
.prose li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.prose li strong { color: var(--text-hi); font-weight: 600; }

/* Tables */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 6px 0 26px;
}
.table-wrap table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}
.table-wrap th {
  text-align: left;
  padding: 13px 16px;
  background: var(--surface);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.table-wrap td {
  padding: 13px 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--text);
  vertical-align: top;
}
.table-wrap td:first-child { font-weight: 600; color: var(--text-hi); }
.table-wrap .num { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Worked example card */
.example-card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 0 0 24px;
}
.example-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.example-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.example-card p { font-size: 15px; line-height: 1.7; color: var(--text); margin: 0 0 14px; }
.example-card p:last-child { margin-bottom: 0; }
.example-card .table-wrap { margin: 4px 0 16px; background: var(--bg); }
.example-card .table-wrap th { background: var(--surface); }

/* Inline CTA card */
.cta-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 36px 0;
}
@media (min-width: 720px) {
  .cta-card { flex-direction: row; align-items: center; gap: 26px; }
  .cta-card-copy { flex: 1; }
}
.cta-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.cta-card p { font-size: 14px; line-height: 1.55; color: var(--text-dim); margin: 0; }
.cta-card .btn, .cta-card .btn-appstore { flex-shrink: 0; align-self: flex-start; }
@media (min-width: 720px) {
  .cta-card .btn, .cta-card .btn-appstore { align-self: center; }
}

/* Related links */
.related-block { margin-top: 44px; }
.related-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.related-links { display: flex; flex-direction: column; gap: 10px; }
.related-links a { font-size: 15px; font-weight: 600; }

/* Article footer: disclaimer + updated stamp */
.article-foot {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article-foot p { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 480px; margin: 0; }
.article-foot .stamp {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Guide hub cards */
.card-link { display: block; color: inherit; transition: border-color 0.15s ease-out; }
.card-link:hover { color: inherit; border-color: rgba(255, 255, 255, 0.22); }
.card-link .h3 { margin-bottom: 8px; }
.card-link p { font-size: 14px; line-height: 1.6; color: var(--text-dim); margin-bottom: 14px; }
.card-link .link-arrow { pointer-events: none; }

/* Legal and simple text pages */
.page-plain {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 48px 72px;
}
@media (min-width: 768px) { .page-plain { padding-block: 64px 88px; } }
.page-plain .article-title { margin-bottom: 12px; }
.page-plain .article-meta { margin-bottom: 30px; }
.legal h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 34px 0 12px;
  scroll-margin-top: 90px;
}
.legal p { font-size: 15px; line-height: 1.75; color: var(--text); margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; color: var(--text); }
.legal li { font-size: 15px; line-height: 1.7; margin-bottom: 6px; }
.legal strong { color: var(--text-hi); font-weight: 600; }

/* Support page contact card */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 40px;
}
.contact-card h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.contact-card p { font-size: 15px; line-height: 1.65; color: var(--text-dim); margin: 0 0 6px; }
.contact-card p:last-child { margin-bottom: 0; }
