/* guide.css — House of Canopies customer guides (hub-guide.php,
   accounts-guide.php).

   Port of JB's guide furniture (css/pages.css page-hero / section-heading /
   content-card / callout / table-clean / steps, plus the hg-* bits that lived
   inline in JB's two guide pages) onto HOC's brand tokens: hairlines not
   boxes, sharp corners, tabular numerals, green reserved for action.
   Every rule is scoped under .hg so nothing leaks into the rest of the site.
   Cascade trap: <main class="wrap hg"> carries .wrap → NO shorthand `padding`
   on .hg itself. */

.hg { padding-top: 0; padding-bottom: 72px; }
.hg-anchor { scroll-margin-top: 110px; }

/* ---- hero -------------------------------------------------------------- */
.hg-hero { padding-top: 56px; padding-bottom: 40px; max-width: 760px; }
.hg-hero h1 {
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 10px 0 18px;
}
.hg-hero h1 .green { color: var(--green); }
.hg-hero .lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.hg-hero .lede strong { color: var(--ink); }

/* ---- two-column layout: contents rail + body ---------------------------- */
.hg-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.hg-body { max-width: 780px; min-width: 0; }

.hg-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.hg-toc { position: sticky; top: 96px; align-self: start; }
.hg-toc ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: toc; }
.hg-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.hg-toc li:last-child { border-bottom: 0; }
.hg-toc a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
}
.hg-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.hg-toc a:hover { color: var(--green-text); }

@media (max-width: 900px) {
  .hg-layout { grid-template-columns: 1fr; gap: 28px; }
  .hg-toc { position: static; }
}

/* ---- PDF download card -------------------------------------------------- */
.hg-dl {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 44px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color .15s, background .15s;
}
.hg-dl:hover { border-color: var(--green); }
.hg-dl__badge {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
}
.hg-dl__title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.hg-dl__meta { display: block; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hg-dl__go { margin-left: auto; color: var(--green-text); font-size: 18px; transition: transform .15s; }
.hg-dl:hover .hg-dl__go { transform: translateY(2px); }
@media (max-width: 520px) { .hg-dl__go { display: none; } }

/* ---- sections ---------------------------------------------------------- */
.hg .section-heading { margin: 52px 0 16px; }
.hg .section-heading:first-of-type { margin-top: 0; }
.hg-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--green-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.hg .section-heading h2 {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hg .content-card { margin: 0 0 18px; }
.hg .content-card p,
.hg .content-card li { font-size: 15.5px; line-height: 1.68; color: var(--ink-2); }
.hg .content-card p + p { margin-top: 14px; }
.hg .content-card strong { color: var(--ink); font-weight: 600; }
.hg .content-card em { font-style: normal; color: var(--ink); font-weight: 500; }
.hg .content-card a { color: var(--green-text); border-bottom: 1px solid currentColor; }
.hg .content-card ul { margin: 12px 0 14px 20px; }
.hg .content-card ul li { margin: 4px 0; }

/* Lead-in panel: the one idea to take from a section. */
.hg .content-card--accent {
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  padding: 18px 22px;
}
.hg .content-card--accent p { color: var(--ink); }

/* Callouts */
.hg .callout {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--green);
  background: var(--paper-2);
}
.hg .callout p { font-size: 14.5px; }
.hg .callout--warn { border-left-color: var(--load); }

/* Numbered steps */
.hg .steps { list-style: none; margin: 22px 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
.hg .steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 56px;
  border-bottom: 1px solid var(--line);
}
.hg .steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 15px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--green-text);
  font-variant-numeric: tabular-nums;
}
.hg .steps li strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* Tables */
.hg .table-clean { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.hg .table-clean th {
  text-align: left;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 14px 10px 0;
  border-bottom: 1px solid var(--ink);
}
.hg .table-clean td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
  line-height: 1.55;
}
.hg .table-clean td strong { color: var(--ink); }
.hg .table-clean tr.highlight td { background: var(--green-soft); }
.hg .table-clean tr.highlight td:first-child { padding-left: 10px; }
@media (max-width: 600px) {
  .hg .table-clean { font-size: 13.5px; }
  .hg .table-clean th, .hg .table-clean td { padding-right: 8px; }
}

/* Side-by-side notes */
.hg-split { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 28px; align-items: start; margin: 24px 0 8px; }
.hg-split__divider { background: var(--line); align-self: stretch; }
.hg-split p { font-size: 14.5px !important; }
@media (max-width: 700px) {
  .hg-split { grid-template-columns: 1fr; gap: 18px; }
  .hg-split__divider { height: 1px; width: 100%; }
}

/* Term list: word on the left, one-line meaning on the right. */
.hg-terms { margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hg-terms div { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hg-terms dt { font-weight: 600; color: var(--ink); font-size: 15px; }
.hg-terms dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 600px) { .hg-terms div { grid-template-columns: 1fr; gap: 2px; } }

.hg-note { font-size: 13.5px !important; font-style: italic; color: var(--ink-3) !important; margin-top: 14px; }

/* Closing call to action */
.hg .content-card--cta {
  margin-top: 52px;
  padding: 28px 28px 30px;
  background: var(--night);
  color: #f4f4f4;
}
.hg .content-card--cta h3 { font-size: 24px; letter-spacing: -0.015em; margin-bottom: 8px; color: #fff; }
.hg .content-card--cta p { color: #c9c9c9; }
.hg .content-card--cta strong { color: #fff; }
.hg .content-card--cta .hg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hg .content-card--cta .btn { border-bottom: 0; }
.hg .content-card--cta a.btn.solid { color: #fff; }
.hg .content-card--cta a.btn.ghost-dark { color: #f4f4f4; }
