/* Shared editorial layouts. The static pages require no additional JavaScript. */
.guides-menu {
  position: relative;
}
.guides-menu summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  font-size: 0.83rem;
  font-weight: 500;
}
.guides-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(430px, 85vw);
  max-height: min(650px, calc(100dvh - 130px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid #d6ddcb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px #263b2b26;
}
.guides-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
  text-decoration: none;
}
.guides-menu-panel a:hover {
  background: #edf1e5;
  text-decoration: underline;
}
@media (max-width: 820px) {
  .js .nav {
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .guides-menu {
    width: 100%;
    order: 1;
  }
  .guides-menu-panel {
    position: static;
    width: 100%;
    max-height: none;
    box-shadow: none;
    margin-top: 6px;
  }
}
.guides-section {
  background: #edf0e5;
  border-block: 1px solid var(--line);
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 26px;
  background: #fff;
  border: 1px solid #d6ddcb;
  border-radius: 14px;
  text-decoration: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.guide-card:hover {
  border-color: #81956c;
  box-shadow: 0 5px 16px #263b2b0a;
}
.guide-card .eyebrow {
  margin-bottom: 12px;
  font-size: 0.64rem;
}
.guide-card h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0 0 12px;
}
.guide-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.guide-card-action {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}
.guide-card:hover .guide-card-action {
  text-decoration: underline;
}
.guide-page {
  padding-block: 36px 70px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--muted);
}
.breadcrumbs li {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.breadcrumbs li + li::before {
  content: "/";
  color: #69775f;
}
.breadcrumbs a {
  display: inline-block;
  min-height: 30px;
}
.breadcrumbs [aria-current] {
  overflow-wrap: anywhere;
}
.guide-header {
  max-width: 900px;
  padding-block: 42px 36px;
}
.guide-header .eyebrow {
  margin-bottom: 17px;
}
.guide-header h1 {
  font-size: clamp(2.1rem, 3.7vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -1.8px;
  margin-bottom: 24px;
  text-wrap: pretty;
}
.guide-lead {
  max-width: 790px;
  font-size: 1.13rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 23px;
}
.guide-context {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #d6ddcb;
  background: #edf1e5;
  border-radius: 8px;
  color: #3f5535;
  font-size: 0.78rem;
  margin: 0;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  grid-template-areas: "body toc";
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 38px;
}
.guide-side {
  grid-area: toc;
  position: sticky;
  top: 116px;
  min-width: 0;
}
.guide-toc {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
  background: #fff;
}
.guide-toc h2 {
  font-size: 0.93rem;
  letter-spacing: 0;
  line-height: 1.5;
  margin-bottom: 13px;
}
.guide-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 9px;
  color: #425539;
  font-size: 0.83rem;
  line-height: 1.6;
  text-decoration: none;
}
.guide-toc a:hover {
  text-decoration: underline;
}
.guide-side-note {
  margin: 16px 3px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.8;
}
.guide-prose {
  grid-area: body;
  min-width: 0;
  font-size: 1.04rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}
.guide-prose > h2 {
  font-size: clamp(1.65rem, 2.2vw, 2.12rem);
  line-height: 1.3;
  letter-spacing: -0.7px;
  margin: 48px 0 19px;
  scroll-margin-top: 12px;
}
.guide-prose > h2:first-child {
  margin-top: 0;
}
.guide-prose h3 {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 28px 0 12px;
}
.guide-prose p {
  line-height: inherit;
  margin-bottom: 20px;
}
.guide-prose ul,
.guide-prose ol {
  padding-left: 25px;
  margin-block: 18px 25px;
}
.guide-prose li {
  margin-bottom: 14px;
  padding-left: 4px;
}
.guide-prose a {
  color: #375332;
  text-decoration-thickness: 1px;
}
.guide-prose a:hover {
  color: #233e20;
  text-decoration-thickness: 2px;
}
.guide-prose strong {
  font-weight: 650;
}
.guide-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-block: 25px;
}
.guide-table-wrap:focus-visible,
.guide-prose pre:focus-visible {
  outline: 3px solid #68802f;
  outline-offset: 4px;
}
.guide-prose table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.7;
}
.guide-prose caption {
  padding: 17px;
  color: #425539;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  background: #edf1e5;
}
.guide-prose th,
.guide-prose td {
  padding: 15px;
  vertical-align: top;
  border-top: 1px solid var(--line);
  text-align: left;
}
.guide-prose thead th {
  font-weight: 650;
  background: #f6f8f1;
}
.guide-prose tbody th {
  font-weight: 600;
}
.guide-prose code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: #e9eddf;
  border-radius: 4px;
  padding: 2px 5px;
}
.guide-prose pre {
  max-width: 100%;
  overflow: auto;
  padding: 22px;
  color: #edf7e1;
  background: #223326;
  border-radius: 12px;
  line-height: 1.7;
  font-size: 0.87rem;
  margin-block: 24px;
}
.guide-prose pre code {
  color: inherit;
  background: transparent;
  padding: 0;
  font-size: inherit;
  white-space: pre;
}
.guide-figure {
  margin: 28px 0;
  padding: 24px;
  border-radius: 12px;
  background: #edf1e5;
  border: 1px solid #d6ddcb;
}
.guide-figure svg {
  width: min(100%, 460px);
  height: auto;
  margin-inline: auto;
}
.guide-figure figcaption {
  margin-top: 14px;
  color: #54634b;
  font-size: 0.78rem;
  line-height: 1.75;
}
.guide-example {
  padding: 25px;
  margin-block: 26px;
  border: 1px solid #cad6be;
  border-left: 4px solid #658653;
  border-radius: 9px;
  background: #edf1e5;
}
.guide-example .eyebrow {
  font-size: 0.65rem;
}
.guide-example p:last-child {
  margin-bottom: 0;
}
.guide-related {
  border-top: 1px solid var(--line);
  margin-top: 58px;
  padding-top: 36px;
}
.guide-related h2 {
  font-size: 1.8rem;
  letter-spacing: -0.6px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.related-grid .guide-card {
  padding: 23px;
}
.related-grid .guide-card h3 {
  font-size: 1.05rem;
}
.related-grid .guide-card p {
  font-size: 0.85rem;
}
.guide-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border: 1px solid #c9d6bc;
  border-radius: 14px;
  margin-top: 32px;
  background: #e6eddb;
}
.guide-purchase h2 {
  font-size: 1.45rem;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.guide-purchase p {
  font-size: 0.88rem;
  color: #4d6041;
  margin: 0;
}
.guide-purchase .button {
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 35px;
  }
}
@media (max-width: 820px) {
  .guide-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "toc" "body";
    gap: 35px;
  }
  .guide-side {
    position: static;
  }
  .guide-toc ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
  .guide-toc a {
    font-size: 0.88rem;
  }
  .guide-prose {
    font-size: 1rem;
  }
  .guide-header {
    padding-block: 30px;
  }
  .guide-header h1 {
    font-size: 2.45rem;
  }
  .guide-lead {
    font-size: 1.05rem;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .guide-purchase {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .guides-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .guide-card {
    padding: 23px;
  }
  .guide-card h3 {
    font-size: 1.17rem;
  }
  .guide-page {
    padding-block: 25px 45px;
  }
  .breadcrumbs ol {
    font-size: 0.75rem;
  }
  .guide-header h1 {
    font-size: 2.1rem;
    letter-spacing: -1.1px;
  }
  .guide-lead {
    font-size: 1rem;
  }
  .guide-context {
    font-size: 0.76rem;
  }
  .guide-toc {
    padding: 19px;
  }
  .guide-toc ul {
    grid-template-columns: 1fr;
  }
  .guide-prose > h2 {
    font-size: 1.65rem;
    margin-top: 37px;
  }
  .guide-prose pre {
    padding: 16px;
    font-size: 0.78rem;
  }
  .guide-figure,
  .guide-example {
    padding: 18px;
  }
  .guide-purchase {
    padding: 23px;
  }
  .guide-purchase .button {
    width: 100%;
    font-size: 0.8rem;
  }
}
@media (forced-colors: active) {
  .guide-card,
  .guide-toc,
  .guide-context,
  .guide-example,
  .guide-figure,
  .guide-purchase {
    border: 1px solid CanvasText;
  }
}
