/* ============================================================================
   Oryn — content pages (guides + neighbourhood landers)
   Loaded only by generated pages, after oryn-site.css. Reuses its tokens so the
   palette stays in one place; adds the long-form typography the landing page
   never needed.
   ========================================================================== */

/* ---------------------------------------------------------------- doc hero */
.doc-hero {
  position: relative;
  padding: 148px 0 56px;
  background:
    radial-gradient(1000px 460px at 12% -10%, rgba(39,230,203,0.13), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  border-bottom: 1px solid var(--line-d);
}
.doc-hero h1 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 14px 0 0;
  max-width: 20ch;
  /* oryn-site.css sets `h1,h2,h3,h4 { color: var(--navy) }` globally, which is
     invisible against this dark hero. Override explicitly. */
  color: #fff;
}
.doc-hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.doc-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.62;
  color: var(--muted-d);
  margin: 20px 0 0;
  max-width: 62ch;
}
.doc-meta {
  margin: 26px 0 0;
  font-family: 'Space Grotesk', monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(214,228,242,0.5);
}

/* ---------------------------------------------------------------- crumbs */
.crumbs {
  display: flex; gap: 9px; align-items: center;
  font-size: 13.5px; color: rgba(214,228,242,0.6);
}
.crumbs a { color: rgba(214,228,242,0.82); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs span { color: rgba(214,228,242,0.34); }

/* ---------------------------------------------------------------- layout */
.doc { padding: 64px 0 8px; background: var(--paper); }
.doc-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 60px;
  align-items: start;
}
.doc-body { min-width: 0; color: var(--text); }

/* ---------------------------------------------------------------- prose */
.doc-body > p, .doc-body > ul, .doc-body > ol {
  font-size: 17.5px;
  line-height: 1.72;
  color: rgba(12,39,66,0.86);
  margin: 0 0 20px;
  max-width: 68ch;
}
.doc-body h2 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 650;
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 52px 0 16px;
  padding-top: 4px;
  scroll-margin-top: 96px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 19.5px;
  line-height: 1.35;
  color: var(--navy);
  margin: 34px 0 10px;
  scroll-margin-top: 96px;
}
.doc-body ul, .doc-body ol { padding-left: 24px; }
.doc-body li { margin: 0 0 9px; }
.doc-body li::marker { color: var(--green); font-weight: 700; }
.doc-body strong { color: var(--navy); font-weight: 650; }
.doc-body a { color: #0E7A57; text-decoration: underline; text-underline-offset: 2.5px;
              text-decoration-thickness: 1.5px; text-decoration-color: rgba(22,224,138,0.5); }
.doc-body a:hover { color: var(--navy); text-decoration-color: var(--navy); }
.doc-body code {
  font-family: 'Space Grotesk', monospace; font-size: 0.9em;
  background: var(--mist); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 6px; color: var(--navy);
}

/* ---------------------------------------------------------------- callout */
.callout {
  margin: 26px 0 28px;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(39,230,203,0.075), rgba(22,224,138,0.045));
  border: 1px solid rgba(22,224,138,0.28);
  border-left: 3px solid var(--green);
  border-radius: 4px var(--r) var(--r) 4px;
}
.callout p { margin: 0; font-size: 16.5px; line-height: 1.66; color: var(--navy); max-width: none; }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { margin: 26px 0 30px; overflow-x: auto; -webkit-overflow-scrolling: touch;
            border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; }
.tbl th {
  text-align: left; padding: 14px 18px;
  background: var(--mist);
  font-family: 'Space Grotesk', monospace;
  font-size: 11.5px; letter-spacing: 0.075em; text-transform: uppercase;
  color: rgba(12,39,66,0.68); font-weight: 600;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line);
          color: rgba(12,39,66,0.86); line-height: 1.55; vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:nth-child(even) { background: rgba(243,246,249,0.5); }
.tbl td strong { color: var(--navy); }

/* ---------------------------------------------------------------- doc foot */
.doc-foot { margin: 52px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.doc-foot p { font-size: 14px; line-height: 1.62; color: var(--muted); max-width: 74ch; margin: 0; }
.doc-foot strong { color: var(--navy); }

/* ---------------------------------------------------------------- aside */
.doc-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.aside-card {
  padding: 24px; border-radius: var(--r);
  background: linear-gradient(160deg, var(--ink) 0%, var(--navy) 100%);
  color: #fff; box-shadow: var(--shadow-sm);
}
.aside-card h4 {
  font-family: 'Sora', system-ui, sans-serif; font-weight: 650; font-size: 17px;
  margin: 0 0 8px; letter-spacing: -0.01em;
  color: #fff;   /* see note above: global heading colour is navy */
}
.aside-card p { font-size: 14.5px; line-height: 1.55; color: var(--muted-d); margin: 0 0 16px; }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-card.muted {
  background: var(--mist); color: var(--navy);
  border: 1px solid var(--line); box-shadow: none;
}
.aside-card.muted h4 { margin-bottom: 12px; color: var(--navy); }
.aside-card.muted a {
  display: block; padding: 8px 0; font-size: 14.5px; line-height: 1.45;
  color: rgba(12,39,66,0.78); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.aside-card.muted a:last-child { border-bottom: none; }
.aside-card.muted a:hover { color: #0E7A57; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 44px; }
  .doc-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .doc-aside .aside-card { flex: 1 1 260px; }
}
@media (max-width: 700px) {
  .doc-hero { padding: 124px 0 44px; }
  .doc-hero h1 { max-width: none; }
  .doc { padding-top: 46px; }
  .doc-body > p, .doc-body > ul, .doc-body > ol { font-size: 16.8px; }
  .doc-aside { flex-direction: column; }
  .tbl { font-size: 14.5px; }
  .tbl th, .tbl td { padding: 12px 14px; }
}
@media print {
  .nav, .doc-aside, .cta-band, .footer { display: none !important; }
  .doc-hero { background: none; color: #000; padding: 0 0 20px; }
  .doc-hero h1, .doc-lead, .doc-meta { color: #000; }
}

/* ---------------------------------------------------------------- quote band
   The CTA band on content pages reuses .dark-band / .cta-* from oryn-site.css.
   These two rules cover the bits that page only had inline on the landing page. */
.doc ~ .cta-band .cta-points, .cta-band .cta-points { display: grid; gap: 12px; margin-top: 26px; }
.cta-band .cp {
  display: flex; align-items: center; gap: 11px;
  font-size: 16px; color: var(--muted-d); line-height: 1.45;
}
.cta-band .cp svg { flex: 0 0 auto; }
