.hero.guide-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  min-height: 0;
  margin-block-end: clamp(1.5rem, 3.2vw, 3rem);
  padding: clamp(.5rem, 2.3vw, 2rem) 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.guide-hero h1 {
  max-width: 23ch;
  font-size: clamp(2.05rem, 4.2vw, 3.45rem);
  font-weight: 780;
  line-height: 1.08;
  text-wrap: balance;
}

.guide-hero .eyebrow { color: #40624a; }
.guide-hero .hero-subtitle { max-width: 54ch; margin-top: .95rem; color: var(--muted); }
.guide-hero .hero-actions { gap: .65rem 1rem; margin-top: 1.25rem; }
.guide-hero .text-link { color: var(--forest); }
.guide-hero :focus-visible { outline-color: #945326; }
.guide-read-button { gap: .55rem; background: var(--forest); color: #fff; }
.guide-read-button:hover { background: #254e3b; color: #fff; }

.guide-hero .gk-hero-media {
  position: relative;
  z-index: auto;
  aspect-ratio: 3 / 2;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.guide-hero .gk-hero-media img { height: 100%; }
.guide-hero .gk-hero-media::after { content: none; }

.guide-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  gap: clamp(1rem, 2.55vw, 2.5rem);
  align-items: start;
  margin-bottom: clamp(1.8rem, 3.5vw, 3.35rem);
}

.guide-index {
  position: sticky;
  top: calc(var(--navigation-header-height) + .9rem);
  max-height: calc(100dvh - var(--navigation-header-height) - 1.85rem);
  overflow: auto;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--white);
  scrollbar-width: thin;
}

.guide-index h2 { margin: 0 .55rem .6rem; font-size: .99rem; }
.guide-index ul { display: grid; gap: .16rem; margin: 0; padding: 0; list-style: none; }
.guide-index a {
  display: flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .55rem;
  border-inline-start: 3px solid transparent;
  border-radius: .28rem;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 620;
  line-height: 1.34;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.guide-index a:hover, .guide-index a[aria-current="location"] {
  border-inline-start-color: #6f9255;
  background: var(--soft);
  text-decoration: underline;
  text-underline-offset: .16em;
}

.guide-body, .guide-chapters { display: grid; gap: clamp(.8rem, 1.9vw, 1.35rem); min-width: 0; }
.guide-overview, .guide-panel {
  min-width: 0;
  padding: clamp(.9rem, 2.5vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--white);
}

.guide-overview { background: #edf3e7; }
.guide-overview h2, .guide-panel h2, .guide-extensions > h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  line-height: 1.17;
  letter-spacing: -.027em;
}

.guide-overview .benefit-grid { gap: .7rem; }
.guide-overview .benefit-grid > div { padding: .83rem; border-top: 2px solid #84a66b; }
.guide-overview .benefit-grid h3, .guide-steps h3 { font-size: .99rem; line-height: 1.28; }
.guide-overview .benefit-grid p, .guide-steps p { margin: .4rem 0 0; color: var(--muted); font-size: .91rem; line-height: 1.49; }
.guide-overview .benefit-grid a { margin-top: .48rem; }
.guide-plan { margin-top: .85rem; }
.guide-plan h2 { font-size: clamp(1.18rem, 2vw, 1.5rem); }
.guide-steps { display: grid; gap: .7rem; margin: 0; padding-inline-start: 1.35rem; }
.guide-steps li { padding-inline-start: .25rem; }
.guide-steps li::marker { color: #466e48; font-weight: 800; }

.guide-panel p, .guide-panel ul, .guide-panel ol { margin-block: .58rem; }
.guide-panel :is(p, li) { max-width: 78ch; }
.guide-panel :is(ul, ol) { padding-inline-start: 1.35rem; }
.guide-panel li + li { margin-top: .25rem; }
.guide-panel h3 { margin-block: 1rem .35rem; font-size: clamp(1.06rem, 1.8vw, 1.28rem); }
.guide-panel h3:first-child, .guide-steps h3 { margin-top: 0; }
.guide-panel :last-child { margin-bottom: 0; }
.guide-panel :is(th, td) { padding: .6rem .72rem; }
.guide-panel th { color: var(--ink); background: #ecf1e6; text-align: start; }
.guide-panel tr:nth-child(even) td { background: #f8f8f2; }
.guide-panel .table-scroll { margin-block: .8rem; }
.guide-panel .table-scroll:focus-visible { outline-offset: 2px; }
.guide-panel .table-scroll table { min-width: 29rem; }
.guide-panel .table-scroll :is(th, td) { overflow-wrap: anywhere; }
.guide-panel :target { outline: 2px solid #85a569; outline-offset: .3rem; border-radius: .35rem; }

.guide-extensions { display: grid; gap: .8rem; }
.guide-extensions > h2 { margin-bottom: 0; }
.guide-extension-links { display: flex; flex-wrap: wrap; gap: .25rem .95rem; margin: 0; padding-inline-start: 1.25rem; }
.guide-extension > h3 { margin-bottom: .6rem; font-size: 1.22rem; }
.guide-extension > .source-content { padding: .7rem 0; border-top: 1px solid var(--line); }
.guide-extension .source-content h2 { margin: 0 0 .4rem; font-size: 1.15rem; }

.guide-practice { border-inline-start: 4px solid #6c945b; background: #f0f5ea; }
.guide-practice-situation { color: var(--forest); font-weight: 680; }
.guide-questions .source-content { padding: 0; }
.guide-question-list { display: grid; gap: .65rem; }
.guide-question-list .guide-question { padding-block: .65rem; border-top: 1px solid var(--line); }
.guide-question-list .guide-question h3 { margin: 0 0 .28rem; }
.guide-question-list .guide-question p { margin: 0; }
.guide-source li + li { margin-top: .32rem; }
.guide-body > .garden-story { margin-block: 0; }

.guide-further .criterion { max-width: none; }
.guide-related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.guide-related-links a {
  display: flex;
  flex-direction: column;
  gap: .36rem;
  height: 100%;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--white);
  color: var(--ink);
  line-height: 1.42;
  text-decoration: none;
}

.guide-related-links a:hover { border-color: #84a76e; background: #f3f7ef; }
.guide-related-links a:hover strong { text-decoration: underline; }
.guide-related-links a > span { color: var(--muted); font-size: .88rem; }
.guide-related-links strong span, .guide-directory a span { color: #3e764a; }
.guide-directory { margin-top: 1.3rem; }
.guide-directory ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem .95rem;
  padding: 0;
  list-style: none;
}

.guide-directory a { display: block; min-height: 2.5rem; padding-block: .38rem; border-bottom: 1px solid var(--line); }
.guide-back { margin-block: 1rem 2.5rem; }

@media (max-width: 1050px) {
  .guide-layout { grid-template-columns: minmax(10.5rem, 12rem) minmax(0, 1fr); }
  .guide-overview .benefit-grid > div { padding: .68rem; }
}

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-index { position: static; max-height: none; overflow: visible; }
  .guide-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-index a { min-height: 2.75rem; padding-block: .25rem; }
  .guide-related-links, .guide-directory ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero.guide-hero { grid-template-columns: minmax(0, 1fr); gap: 1.12rem; padding: .2rem 0 .45rem; }
  .guide-hero h1 { font-size: clamp(1.95rem, 6.6vw, 2.72rem); text-wrap: pretty; }
  .guide-hero .hero-subtitle { margin-top: .7rem; font-size: 1rem; }
  .guide-hero .hero-actions { margin-top: .9rem; }
  .guide-hero .gk-hero-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 550px) {
  .guide-overview .benefit-grid, .guide-related-links { grid-template-columns: minmax(0, 1fr); }
  .guide-index h2 { margin-bottom: .36rem; }
  .guide-index a { overflow-wrap: normal; hyphens: auto; }
}

@media (max-width: 350px) {
  .guide-index ul, .guide-directory ul { grid-template-columns: minmax(0, 1fr); }
}
