/* Guides (templates/core/guides/): the index and the articles. Same look as
   the Welcome page (landing.css): Inter, dark green, gold. Scoped to .gd. */

.gd {
  --gd-green-950: #0b2a19;
  --gd-green-900: #10351f;
  --gd-green: #1a5632;
  --gd-green-600: #2d8a4e;
  --gd-green-50: #eef5f0;
  --gd-gold: #c8a951;
  --gd-gold-300: #e2cd8f;
  --gd-gold-50: #faf6ea;
  --gd-ink: #13201a;
  --gd-body: #2c3a33;
  --gd-muted: #55645c;
  --gd-line: #e3e8e4;
  --gd-radius: 16px;
  --gd-shadow: 0 1px 2px rgba(16, 53, 31, 0.06), 0 8px 24px rgba(16, 53, 31, 0.08);

  /* Full width: break out of main's centered container and padding. */
  margin: -20px calc(50% - 50vw) -5rem;
  padding-bottom: 72px;
  background: #fbfcfb;
  color: var(--gd-ink);
  font-family: 'Inter', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html:has(.gd), body:has(.gd) { overflow-x: clip; }
body:has(.gd) .site-footer { margin-top: 0; }
.gd *, .gd *::before, .gd *::after { box-sizing: border-box; }

.gd-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.gd-hero {
  background:
    radial-gradient(1200px 400px at 85% -20%, rgba(200, 169, 81, 0.18), transparent 60%),
    linear-gradient(180deg, var(--gd-green-950), var(--gd-green-900));
  color: #fff;
  padding: 64px 0 56px;
}
.gd-crumbs { margin: 0 0 18px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }
.gd-crumbs a { color: var(--gd-gold-300); text-decoration: none; }
.gd-crumbs a:hover { text-decoration: underline; }
.gd-crumbs span[aria-hidden] { margin: 0 8px; opacity: 0.6; }
.gd-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gd-gold);
}
.gd h1, .gd h2, .gd h3 { font-family: 'Inter', Arial, sans-serif; color: inherit; }
.gd-hero h1 {
  max-width: 22em;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.gd-lede {
  max-width: 40em;
  margin: 18px 0 0;
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}
.gd-meta { margin: 22px 0 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.62); }

/* ── Article layout ───────────────────────────────────────────────────── */
.gd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  align-items: start;
  padding-top: 48px;
}
.gd-article { max-width: 720px; min-width: 0; }
.gd-aside { position: sticky; top: 92px; }

.gd-toc {
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  background: #fff;
  padding: 20px 22px;
}
.gd-toc h2 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gd-muted);
}
.gd-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.gd-toc li { margin: 0; counter-increment: toc; }
.gd-toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--gd-body);
  text-decoration: none;
}
.gd-toc a::before { content: counter(toc); min-width: 1.2em; color: var(--gd-gold); font-weight: 700; }
.gd-toc a:hover { color: var(--gd-green); }
.gd-aside .gd-btn { width: 100%; margin-top: 16px; }

/* ── Article text ─────────────────────────────────────────────────────── */
.gd-article section { scroll-margin-top: 92px; }
.gd-article section + section { margin-top: 48px; }
.gd-article h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gd-ink);
}
.gd-article h3 { margin: 28px 0 8px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; color: var(--gd-ink); }
.gd-article p, .gd-article li { font-size: 1.04rem; line-height: 1.75; color: var(--gd-body); }
.gd-article p { margin: 0 0 16px; }
.gd-article ul, .gd-article ol { margin: 0 0 18px; padding-left: 1.3rem; }
.gd-article li { margin: 0 0 8px; }
.gd-article li::marker { color: var(--gd-green-600); }
.gd-article strong { color: var(--gd-ink); }
.gd-article a { color: var(--gd-green); text-decoration: underline; text-underline-offset: 2px; }
.gd-article a:hover { color: var(--gd-green-600); }
.gd-article a.gd-btn { text-decoration: none; }

/* "In Ready Golf League" note */
.gd-note {
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--gd-green-50);
  border-left: 4px solid var(--gd-green-600);
}
.gd-note p:last-child, .gd-note ul:last-child { margin-bottom: 0; }
.gd-note-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gd-green);
}
.gd-tip { background: var(--gd-gold-50); border-left-color: var(--gd-gold); }
.gd-tip .gd-note-label { color: #8a6d1d; }

/* Formula and worked example */
.gd-formula {
  margin: 18px 0 20px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--gd-green-950);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}
.gd-formula span { color: var(--gd-gold-300); }

.gd-example {
  margin: 22px 0;
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  background: #fff;
  box-shadow: var(--gd-shadow);
  overflow: hidden;
}
.gd-example-head {
  padding: 14px 22px;
  border-bottom: 1px solid var(--gd-line);
  background: #f7f9f7;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gd-ink);
}
.gd-example-body { padding: 18px 22px 6px; }
.gd-example-body p, .gd-example-body li { font-size: 0.98rem; }

/* Tables */
.gd-table-wrap { margin: 18px 0 22px; overflow-x: auto; border: 1px solid var(--gd-line); border-radius: 14px; background: #fff; }
.gd-example .gd-table-wrap { border-radius: 10px; }
.gd-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.gd-table caption { padding: 12px 16px 0; text-align: left; font-size: 0.85rem; color: var(--gd-muted); caption-side: bottom; padding-bottom: 12px; }
.gd-table th, .gd-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--gd-line); vertical-align: top; }
.gd-table thead th { background: #f4f7f5; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gd-muted); white-space: nowrap; }
.gd-table tbody tr:last-child th, .gd-table tbody tr:last-child td { border-bottom: 0; }
.gd-table tbody th { font-weight: 600; color: var(--gd-ink); }
.gd-table td.num, .gd-table th.num { text-align: center; font-variant-numeric: tabular-nums; }
.gd-table-compact th, .gd-table-compact td { white-space: nowrap; }
.gd-win { background: var(--gd-green-50); color: var(--gd-green); font-weight: 700; }
.gd-carry { color: #8a6d1d; font-weight: 600; }

/* Format cards (trip formats) */
.gd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 24px; }
.gd-card {
  padding: 18px 20px;
  border: 1px solid var(--gd-line);
  border-radius: 14px;
  background: #fff;
}
.gd-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.gd-card p { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.gd-card a { text-decoration: none; }

/* Buttons */
.gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.gd-btn:hover { text-decoration: none; }
.gd-btn-gold { background: var(--gd-gold); color: #1a1405; }
.gd-btn-gold:hover { background: #d6b862; color: #1a1405; }
.gd-btn-green { background: var(--gd-green); color: #fff; }
.gd-btn-green:hover { background: var(--gd-green-600); color: #fff; }
.gd-btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #fff; }
.gd-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.gd a:focus-visible { outline: 3px solid var(--gd-gold); outline-offset: 2px; }

/* ── Related and call to action ───────────────────────────────────────── */
.gd-related { margin-top: 64px; }
.gd-related > h2,
.gd-index-list > h2 { margin: 0 0 18px; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.gd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gd-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  background: #fff;
  color: var(--gd-ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.gd-tile:hover { border-color: #c9d6cd; box-shadow: var(--gd-shadow); transform: translateY(-2px); color: var(--gd-ink); text-decoration: none; }
.gd-tile h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.gd-tile p { margin: 0; font-size: 0.94rem; line-height: 1.6; color: var(--gd-muted); }
.gd-tile .gd-tile-meta { margin-top: auto; padding-top: 6px; font-size: 0.82rem; font-weight: 600; color: var(--gd-green-600); }

.gd-cta {
  margin-top: 56px;
  padding: 40px;
  border-radius: 22px;
  background:
    radial-gradient(700px 260px at 100% 0%, rgba(200, 169, 81, 0.22), transparent 60%),
    var(--gd-green-950);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.gd-cta h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.gd-cta p { margin: 0; max-width: 34em; color: rgba(255, 255, 255, 0.78); line-height: 1.6; }
.gd-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Index page ───────────────────────────────────────────────────────── */
.gd-index-list { padding-top: 48px; }
.gd-index-list .gd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-index-list .gd-tile { padding: 26px; }
.gd-index-list .gd-tile h3 { font-size: 1.25rem; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .gd-aside { position: static; order: -1; margin-bottom: 32px; }
  .gd-aside .gd-btn { display: none; }
  .gd-article { max-width: none; }
  .gd-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .gd-wrap { padding: 0 16px; }
  .gd-hero { padding: 44px 0 40px; }
  .gd-lede { font-size: 1.02rem; }
  .gd-cards, .gd-index-list .gd-grid { grid-template-columns: minmax(0, 1fr); }
  .gd-article p, .gd-article li { font-size: 1rem; }
  .gd-formula { font-size: 0.95rem; padding: 16px; }
  .gd-example-head, .gd-example-body { padding-left: 16px; padding-right: 16px; }
  .gd-table th, .gd-table td { padding: 9px 10px; }
  .gd-table-compact { font-size: 0.84rem; }
  .gd-table-compact th, .gd-table-compact td { padding: 8px 6px; }
  .gd-table-compact thead th { letter-spacing: 0; }
  .gd-cta { padding: 28px 22px; }
  .gd-cta-actions, .gd-cta-actions .gd-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-tile, .gd-btn { transition: none; }
  .gd-tile:hover { transform: none; }
}
