/* ==========================================================================
   LabDirectories.com — guide styles
   Loaded after styles.css on guide pages only.
   Identity: "Pine & Chartreuse on Bone".

   Deliberately article-shaped: warm paper shell, serif display headings,
   chartreuse tab underline, mono labels, generous measure (~46rem).
   ========================================================================== */

.guide {
  max-width: 46rem;
  margin-inline: auto;
}

/* Guide hero / byline ----------------------------------------------------- */

.guide-hero {
  padding: 0.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}

.guide-hero h1 {
  margin-bottom: 0.4em;
  letter-spacing: -0.01em;
}

.guide-byline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
  padding: 0.3rem 0.7rem;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

/* Answer-first callout ---------------------------------------------------- */

.guide-answer {
  position: relative;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-left: 5px solid var(--accent-line);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.35rem;
  margin: 0 0 2rem;
}

.guide-answer::before {
  content: "Quick answer";
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-line);
}

.guide-answer p {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
}

/* Key takeaways ----------------------------------------------------------- */

.guide-takeaways {
  background: var(--brand-deep);
  border: 0;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 0 0 2.25rem;
  color: #e9f1ec;
  box-shadow: var(--shadow-sm);
}

.guide-takeaways h2 {
  font-size: var(--fs-lg);
  color: #fffdf7;
  margin-bottom: 0.75rem;
}

.guide-takeaways ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.guide-takeaways li {
  position: relative;
  padding-left: 1.5rem;
  color: #dce8e0;
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.guide-takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.62rem;
  height: 0.62rem;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 1px;
}

/* -------------------------------------------------------------------------- */


/* Article body ------------------------------------------------------------ */

.guide-body,
.guide-content {
  font-size: var(--fs-md);
  line-height: 1.7;
}

.guide-body h2,
.guide-content h2 {
  position: relative;
  margin-top: 2.35rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.4rem;
}

.guide-body h2::after,
.guide-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.6rem;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.guide-body h3,
.guide-content h3 {
  margin-top: 1.85rem;
  margin-bottom: 0.5rem;
}

.guide-body p,
.guide-body li,
.guide-content p,
.guide-content li {
  color: var(--ink-soft);
}

.guide-body ul,
.guide-body ol,
.guide-content ul,
.guide-content ol {
  padding-left: 1.35rem;
}

.guide-body li,
.guide-content li {
  margin-bottom: 0.4rem;
}

.guide-body li::marker,
.guide-content li::marker {
  color: var(--accent-line);
}

.guide-body strong,
.guide-content strong {
  color: var(--ink);
}

.guide-body a,
.guide-content a {
  color: var(--brand);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}

.guide-body a:hover,
.guide-content a:hover {
  color: var(--brand-deep);
  text-decoration-color: var(--brand-deep);
}

/* Tables ---------------------------------------------------------------- */

.guide-body table,
.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: var(--fs-sm);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.guide-body th,
.guide-body td,
.guide-content th,
.guide-content td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.guide-body thead th,
.guide-content thead th {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.guide-body tbody tr:nth-child(even),
.guide-content tbody tr:nth-child(even) {
  background: var(--paper-tint);
}

.guide-body th,
.guide-content th {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-deep);
}

.guide-body td,
.guide-content td {
  color: var(--ink-soft);
}

/* Quotes, code, media --------------------------------------------------- */

.guide-body blockquote,
.guide-content blockquote {
  margin: 1.6rem 0;
  padding: 0.6rem 0 0.6rem 1.35rem;
  border-left: 4px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
  font-size: var(--fs-md);
}

.guide-body blockquote p:last-child,
.guide-content blockquote p:last-child {
  margin-bottom: 0;
}

.guide-body code,
.guide-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.35em;
}

.guide-body pre,
.guide-content pre {
  overflow-x: auto;
  padding: 1rem 1.15rem;
  background: var(--brand-deep);
  color: #e9f1ec;
  border-radius: var(--radius);
}

.guide-body pre code,
.guide-content pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.guide-body img,
.guide-content img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.guide-body hr,
.guide-content hr {
  border: 0;
  border-top: 1px solid var(--line-strong);
  margin: 2.25rem 0;
}

/* Closing sections -------------------------------------------------------- */

.guide-faq,
.guide-cities,
.guide-related,
.guide-sources,
.guide-more {
  margin-top: 2.75rem;
}

.guide-faq h2,
.guide-cities h2,
.guide-related h2,
.guide-sources h2,
.guide-more h2 {
  position: relative;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.guide-faq h2::after,
.guide-cities h2::after,
.guide-related h2::after,
.guide-sources h2::after,
.guide-more h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.6rem;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.guide-cities .link-list a,
.guide-related .link-list a {
  padding-block: 0.65rem;
}

.guide-sources ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: var(--fs-sm);
}

.guide-sources li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.guide-sources li:last-child {
  border-bottom: 0;
}

.guide-sources a {
  color: var(--brand);
}

p.guide-more {
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

p.guide-more a {
  color: var(--brand);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 37.5rem) {
  .guide-hero {
    padding-top: 0;
  }

  .guide-takeaways {
    padding: 1.15rem 1.25rem;
  }

  .guide-body,
  .guide-content {
    font-size: var(--fs-base);
  }

  .guide-body table,
  .guide-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Print ------------------------------------------------------------------- */

@media print {
  .guide-answer,
  .guide-takeaways {
    background: none !important;
    color: #000;
    border: 1px solid #999;
  }

  .guide-takeaways h2,
  .guide-takeaways li {
    color: #000;
  }

  .guide-takeaways li::before {
    background: #000;
  }

  .guide-body h2::after,
  .guide-content h2::after,
  .guide-faq h2::after,
  .guide-cities h2::after,
  .guide-related h2::after,
  .guide-sources h2::after,
  .guide-more h2::after {
    background: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.82em;
    color: #444;
  }

  .guide-body pre,
  .guide-content pre {
    background: none;
    color: #000;
    border: 1px solid #999;
  }
}
