/* ==========================================================================
   guides.css — /guides hub and guide articles (2026-09-30). Builds on
   regions.css (rg-grid, rg-card) and palmerston-north.css (pn-*). Prefix .gd-*.
   ========================================================================== */

/* Hero art: a small stack of guide "pages". */
.gd-stack { position: relative; width: min(100%, 380px); aspect-ratio: 5 / 3; margin-inline: auto; }
.gd-stack__page {
  position: absolute;
  inset: 0;
  border: 1px solid var(--nx-line);
  border-radius: 22px;
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-soft);
}
.gd-stack__page--3 { transform: rotate(6deg) translate(18px, 10px); opacity: .55; }
.gd-stack__page--2 { transform: rotate(3deg) translate(9px, 5px); opacity: .8; }
.gd-stack__page--1 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  box-shadow: var(--nx-shadow-lift);
}
.gd-stack__tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--nx-orange);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gd-stack__page--1 b { color: var(--nx-ink); font-size: 1.45rem; line-height: 1.2; font-weight: 800; }
.gd-stack__page--1 i { display: block; height: 10px; border-radius: 6px; background: var(--nx-line); }
.gd-stack__page--1 .gd-stack__short { width: 60%; }

/* ---- Guide article layout ---- */
.gd-article__wrap { width: min(100% - 32px, 760px); margin-inline: auto; }
.gd-article__head { padding: clamp(40px, 7vw, 76px) 0 clamp(24px, 4vw, 36px); background: linear-gradient(180deg, var(--nx-orange-tint) 0%, var(--nx-surface) 100%); }
.gd-crumbs { margin-bottom: 18px; color: var(--nx-ink-soft); font-size: .88rem; }
.gd-crumbs a { color: var(--nx-ink-soft); text-decoration: none; }
.gd-crumbs a:hover { color: var(--nx-orange-dark); text-decoration: underline; }
.gd-article h1 { margin: 0 0 16px; color: var(--nx-ink); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.gd-article__lead { margin: 0 0 14px; color: var(--nx-ink-soft); font-size: clamp(1.08rem, 2vw, 1.25rem); line-height: 1.6; }
.gd-article__meta { margin: 0; color: var(--nx-ink-soft); font-size: .88rem; }
.gd-article__body { padding-bottom: clamp(48px, 7vw, 80px); }
.gd-article__body h2 { margin: 44px 0 14px; color: var(--nx-ink); font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.2; font-weight: 800; scroll-margin-top: 96px; }
.gd-article__body p { margin: 0 0 16px; color: var(--nx-ink-soft); font-size: 1.04rem; line-height: 1.75; }
.gd-article__body a { color: var(--nx-orange-dark); font-weight: 600; }
.gd-note { font-size: .9rem !important; }

.gd-summary { margin-top: 8px; padding: 26px 26px 12px; border: 1px solid rgba(247, 148, 29, .35); border-radius: 20px; background: var(--nx-orange-tint); }
.gd-summary h2 { margin: 0 0 14px !important; font-size: 1.2rem !important; }
.gd-summary dl { margin: 0; }
.gd-summary dl > div { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid rgba(26, 26, 46, .1); }
@media (min-width: 640px) { .gd-summary dl > div { grid-template-columns: 1fr 1.2fr; gap: 16px; } }
.gd-summary dt { color: var(--nx-ink); font-weight: 700; }
.gd-summary dd { margin: 0; color: var(--nx-ink-soft); }

.gd-table-wrap { overflow-x: auto; margin: 0 0 12px; border: 1px solid var(--nx-line); border-radius: 16px; }
.gd-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.gd-table caption { padding: 14px 16px 6px; color: var(--nx-ink-soft); font-size: .86rem; text-align: left; }
.gd-table th, .gd-table td { padding: 12px 16px; border-top: 1px solid var(--nx-line); color: var(--nx-ink-soft); text-align: left; vertical-align: top; }
.gd-table thead th { color: var(--nx-ink); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--nx-surface-soft, #faf7f2); }
.gd-table tbody th { color: var(--nx-ink); font-weight: 700; }

.gd-list { margin: 0 0 16px; padding-left: 20px; }
.gd-list li { margin-bottom: 12px; color: var(--nx-ink-soft); font-size: 1.04rem; line-height: 1.7; }
.gd-list strong { color: var(--nx-ink); }

.gd-example { display: grid; gap: 10px; margin: 6px 0 16px; }
.gd-example > div { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--nx-surface); border: 1px solid var(--nx-line); box-shadow: var(--nx-shadow-soft); }
@media (min-width: 640px) { .gd-example > div { grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: center; } }
.gd-example span { color: var(--nx-ink-soft); }
.gd-example b { color: var(--nx-ink); }

.gd-article .sp-faq { margin-top: 8px; }
.gd-article__body h3.gd-h3 { margin: 28px 0 10px; color: var(--nx-ink); font-size: 1.15rem; font-weight: 800; }

/* Phones: each table row becomes a small labelled card. */
@media (max-width: 600px) {
  .gd-table-wrap { overflow: visible; border: 0; }
  .gd-table, .gd-table tbody, .gd-table tr, .gd-table th, .gd-table td { display: block; width: 100%; }
  .gd-table caption { display: block; padding: 0 0 10px; }
  .gd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gd-table tbody tr { margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--nx-line); border-radius: 14px; background: var(--nx-surface); }
  .gd-table tbody th { padding: 0 0 8px; border: 0; font-size: 1rem; }
  .gd-table td { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border: 0; border-top: 1px solid var(--nx-line); }
  .gd-table td::before { content: attr(data-label); flex: none; max-width: 45%; color: var(--nx-ink); font-weight: 700; font-size: .82rem; }
  .gd-table td[data-label=""]::before { content: none; }
}

/* Numbered checklist and sources list (privacy guide, 2026-09-30). */
.gd-list--numbered { padding-left: 26px; list-style: decimal; }
.gd-list--numbered li { display: list-item; padding-left: 4px; }
.gd-list--numbered li::marker { color: var(--nx-orange-dark); font-weight: 800; }
.gd-sources li { margin-bottom: 6px; font-size: .95rem; }
