.guide-page,
.guides-hub {
  background: #f4f3ef;
  color: #171b18;
}

.guide-container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.guide-hero,
.guides-hub-hero {
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: radial-gradient(circle at 82% 0%, rgba(0, 168, 107, 0.13), transparent 38%), #101612;
  color: #fff;
}

.guide-breadcrumb {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
}

.guide-breadcrumb a { color: inherit; }
.guide-breadcrumb a:hover { color: #fff; }

.guide-kicker {
  margin-bottom: 1rem;
  color: #47d49c;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.guide-hero h1,
.guides-hub-hero h1 {
  max-width: 880px;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.guide-dek,
.guides-hub-hero > .guide-container > p:last-child {
  max-width: 760px;
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.67);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.guide-answer {
  max-width: 860px;
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(71, 212, 156, 0.3);
  border-radius: 18px;
  background: rgba(71, 212, 156, 0.07);
}

.guide-answer p { font-size: 1.05rem; line-height: 1.7; }
.guide-byline { margin-top: 1.2rem; color: rgba(255,255,255,.48); font-size: .78rem; }

.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  justify-content: space-between;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.guide-layout > * { min-width: 0; }

.guide-aside { position: sticky; top: 7rem; align-self: start; font-size: .82rem; }
.guide-aside > p { font-weight: 750; margin-bottom: .8rem; }
.guide-aside ol { display: grid; gap: .65rem; padding-left: 1rem; color: #667069; }
.guide-aside a { color: inherit; }
.guide-aside a:hover { color: #007b50; }
.guide-parent { display: block; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid #d7dbd8; color: #007b50 !important; font-weight: 700; }

.guide-body section + section,
.guide-body figure + section { margin-top: clamp(3rem, 7vw, 5rem); }
.guide-body h2 { margin-bottom: 1.1rem; font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.1; }
.guide-body > section > p { color: #414943; font-size: 1.03rem; line-height: 1.82; }
.guide-body > section > p + p { margin-top: 1rem; }
.guide-citations { margin-top: 1rem !important; font-size: .78rem !important; color: #59635d !important; }
.guide-citations a { color: #007b50; text-decoration: underline; text-underline-offset: 3px; }

.guide-diagram {
  margin: 2.25rem 0 0;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid #d8ddda;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(12, 25, 18, .05);
}
.guide-diagram h3 { font-family: var(--font-heading); font-size: 1.05rem; }
.guide-diagram__canvas { display: grid; gap: .7rem; margin: 1.2rem 0; }
.guide-diagram--flow .guide-diagram__canvas { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.guide-diagram--flow .guide-diagram__node { position: relative; }
.guide-diagram--flow .guide-diagram__node:not(:last-child)::after { content: '→'; position: absolute; top: 50%; right: -.68rem; z-index: 2; color: #00a86b; transform: translateY(-50%); }
.guide-diagram--layers .guide-diagram__canvas { grid-template-columns: 1fr; }
.guide-diagram__node { display: grid; gap: .3rem; padding: .9rem; border-radius: 13px; background: color-mix(in srgb, #00a86b calc(5% + var(--node) * 2%), #f1f5f2); }
.guide-diagram__node strong { font-size: .84rem; }
.guide-diagram__node span { color: #5f6963; font-size: .76rem; line-height: 1.4; }
.guide-diagram figcaption { color: #68726c; font-size: .76rem; line-height: 1.5; }

.guide-table-wrap { margin-top: 1.5rem; overflow-x: auto; border: 1px solid #d7dcda; border-radius: 16px; background: #fff; }
.guide-table-wrap:focus { outline: 3px solid rgba(0, 168, 107, .28); outline-offset: 3px; }
.guide-table-wrap table { width: 100%; min-width: 680px; border-collapse: collapse; }
.guide-table-wrap caption { padding: 1.1rem; text-align: left; font-family: var(--font-heading); font-weight: 750; }
.guide-table-wrap th,
.guide-table-wrap td { padding: .85rem 1rem; border-top: 1px solid #e4e7e5; text-align: left; vertical-align: top; font-size: .82rem; line-height: 1.5; }
.guide-table-wrap thead th { background: #eef4f0; color: #334039; }

.guide-sources ol { display: grid; gap: .75rem; margin-top: 1.4rem; }
.guide-sources li { display: grid; gap: .2rem; padding: .8rem 0; border-bottom: 1px solid #dde1de; }
.guide-sources li a { color: #007b50; font-weight: 700; }
.guide-sources li span { color: #59635d; font-size: .75rem; }

.guide-cta { padding: clamp(4rem, 8vw, 7rem) 0; background: #dfeae4; }
.guide-cta h2 { margin-bottom: 1.5rem; font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.045em; }
.guide-cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.guide-cta-grid a { display: grid; gap: .55rem; min-height: 190px; padding: 1.3rem; border-radius: 18px; background: #fff; color: #172019; transition: transform .2s ease, box-shadow .2s ease; }
.guide-cta-grid a:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(10, 30, 18, .09); }
.guide-cta-grid span { color: #007844; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-cta-grid strong { font-family: var(--font-heading); font-size: 1.2rem; }
.guide-cta-grid p { color: #657069; font-size: .84rem; line-height: 1.55; }

.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding-block: clamp(3rem, 7vw, 6rem); }
.guides-grid article { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid #d8dcda; border-radius: 22px; background: #fff; }
.guides-grid article > p:first-child { color: #008a58; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.guides-grid h2 { margin: .8rem 0 1rem; font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.035em; }
.guides-grid h2 a { color: #172019; }
.guides-grid article > p { color: #58635d; font-size: .9rem; line-height: 1.65; }
.guides-grid article > a { display: inline-block; margin-top: 1.2rem; color: #007b50; font-weight: 700; font-size: .84rem; }

@media (max-width: 800px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-aside { position: static; padding: 1rem; border: 1px solid #d8ddda; border-radius: 16px; }
  .guide-cta-grid,
  .guides-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .guide-diagram--flow .guide-diagram__canvas { grid-template-columns: 1fr; }
  .guide-diagram--flow .guide-diagram__node:not(:last-child)::after { content: '↓'; top: auto; right: 50%; bottom: -.75rem; transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  .guide-cta-grid a { transition: none; }
}
