/* ==========================================================================
   LabAvailability.com — guide styles
   Loaded after styles.css on guide pages only.
   Identity: "Evergreen & Apricot on Oat" — editorial long-form treatment.
   ========================================================================== */

.guide {
  max-width: 54rem;
}

/* Hero / byline -------------------------------------------------------------- */

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

.guide-hero h1 {
  margin-bottom: 0.45em;
  max-width: 46rem;
}

.guide-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

.guide-answer {
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-left: 6px solid var(--evergreen);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.35rem 1.5rem;
  margin: 0 0 2rem;
  box-shadow: var(--shadow);
}

.guide-answer::before {
  content: "In short";
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold-ink);
  margin-bottom: 0.5rem;
}

.guide-answer p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink);
}

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

.guide-takeaways {
  background: var(--sand);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 0 0 2rem;
  box-shadow: var(--shadow-soft);
}

.guide-takeaways h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold-ink);
  margin: 0 0 1rem;
}

.guide-takeaways h2::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  transform: rotate(45deg);
  background: var(--clay);
}

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

.guide-takeaways li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
}

.guide-takeaways li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Long-form body ------------------------------------------------------------------- */

.guide-body,
.guide-content {
  font-size: 1.05rem;
  color: var(--ink);
}

.guide-body > p:first-of-type,
.guide-content > p:first-of-type {
  font-size: 1.09rem;
  color: var(--ink-soft);
}

.guide-body h2,
.guide-content h2 {
  margin: 2.3rem 0 0.75rem;
  padding-top: 1.3rem;
  border-top: 1px dashed var(--line-strong);
}

.guide-body h2:first-child,
.guide-content h2:first-child {
  border-top: 0;
  padding-top: 0;
}

.guide-body h3,
.guide-content h3 {
  margin: 1.7rem 0 0.5rem;
  color: var(--evergreen-dark);
}

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

.guide-body li,
.guide-content li {
  margin: 0.35rem 0;
}

.guide-body li::marker,
.guide-content li::marker {
  color: var(--clay);
  font-family: var(--mono);
}

.guide-body a,
.guide-content a {
  color: var(--evergreen);
  text-underline-offset: 3px;
}

.guide-body a:hover,
.guide-content a:hover {
  text-decoration-color: var(--marigold);
  text-decoration-thickness: 3px;
}

.guide-body blockquote,
.guide-content blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.35rem;
  background: var(--marigold-soft);
  border-left: 5px solid var(--marigold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--display);
  font-size: 1.08rem;
  color: var(--ink);
}

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

.guide-body table,
.guide-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.6rem 0;
  font-size: 0.95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.guide-body th,
.guide-content th {
  background: var(--sand);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.7rem 0.95rem;
  border-bottom: 1.5px solid var(--line-strong);
}

.guide-body td,
.guide-content td {
  padding: 0.7rem 0.95rem;
  border-bottom: 1px dashed var(--line);
  vertical-align: top;
}

.guide-body tr:last-child td,
.guide-content tr:last-child td {
  border-bottom: 0;
}

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

.guide-body pre,
.guide-content pre {
  background: var(--evergreen-deep);
  color: var(--cream);
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

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

.guide-body hr,
.guide-content hr {
  border: 0;
  border-top: 2px dashed var(--line-strong);
  margin: 2.1rem 0;
}

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

.guide-body figcaption,
.guide-content figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Section rhythm -------------------------------------------------------------------- */

.guide-faq,
.guide-cities,
.guide-more,
.guide-related,
.guide-sources {
  margin: 2.7rem 0;
}

.guide-more a {
  font-weight: 600;
}

/* Sources ---------------------------------------------------------------------------- */

.guide-sources ul {
  list-style: none;
  counter-reset: src;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.guide-sources li {
  counter-increment: src;
  position: relative;
  padding: 0.65rem 0.95rem 0.65rem 3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.guide-sources li::before {
  content: "[" counter(src) "]";
  position: absolute;
  left: 0.95rem;
  top: 0.65rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--marigold-ink);
}

.guide-sources a {
  font-weight: 600;
}

/* Guide index / cluster search (inline markup in index.js) ---------------------------- */

#gsearch {
  display: block;
  width: 100%;
  max-width: 520px;
  padding: 0.85rem 1.15rem !important;
  font: inherit !important;
  color: var(--ink) !important;
  background: var(--paper) !important;
  border: 1.5px solid var(--line-strong) !important;
  border-radius: 999px !important;
}

#gsearch:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--evergreen) !important;
}

#gresults {
  margin-top: 1rem;
}

#gresults .card-grid {
  margin-top: 0.75rem;
}
