/* ScentSearch — shared stylesheet for long-form guide pages (site/guides/).
   Loaded AFTER ../scent-notes.css, which supplies the base: body background
   #0f1410, the gold accent (#f3e5ab / rgba(212,175,55,…)), h1/h2 treatment,
   .search-cta, .chip, .back and .data-panel. This file adds only what a
   3,000-word technical page needs on top of that.

   Extracted rather than inlined because everything under guides/ shares it —
   the making hub, the four candle spokes (candle-wicks, wax, vessels,
   fragrance-oils) and the how-to-make-a-candle overview. Same reasoning that
   produced scent-notes.css: one cached file beats 5KB duplicated per page.

   Two page shapes use it:
     HUBS     (making.html)      ambient fixed .bg from scent-notes.css, like
                                 guides.html — see the .hub-* block at the end.
     ARTICLES (candle-wicks.html) the .guide-hero band, then an opaque body
                                 surface. Long prose over a photo is unreadable. */

/* ===== Full-bleed hero =====
   A fixed height, not an aspect-ratio, so the box is known before the image
   loads and cannot reflow as the viewport changes. Deliberately NOT the
   .bg fixed-attachment treatment the note pages use — long technical prose
   over a photo is hard to read, so the hero is a discrete band at the top
   and all body copy sits on an opaque surface below it. */
.guide-hero {
  position: relative;
  height: clamp(240px, 40vh, 400px);
  background-color: #0f1410;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  /* background-image (gradient + photo) is set inline per page — the one
     thing genuinely unique to each guide, same convention as .bg. */
}
.guide-hero-inner {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 30px;
}
.guide-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(243,229,171,0.85);
  border: 1px solid rgba(212,175,55,0.4);
  background: rgba(15,20,16,0.5);
  border-radius: 30px;
  padding: 5px 14px;
  margin-bottom: 14px;
}
.guide-hero h1 {
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1.15;
  margin-bottom: 10px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}
.guide-hero .guide-standfirst {
  font-size: clamp(15px, 2vw, 17px);
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}

/* ===== Readable body surface =====
   Opaque-ish panel lifted off the page background. Legibility first. */
.guide-body {
  max-width: 820px;
  margin: -28px auto 0;
  position: relative;
  z-index: 1;
  background: #141b16;
  border: 1px solid rgba(212,175,55,0.16);
  border-radius: 16px;
  padding: 34px 38px 44px;
}
.guide-body h2 {
  font-size: 21px;
  margin: 36px 0 12px;
  scroll-margin-top: 20px;      /* TOC anchors clear the top edge */
}
.guide-body h2:first-of-type { margin-top: 8px; }
.guide-body h3 {
  color: rgba(243,229,171,0.9);
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
  scroll-margin-top: 20px;
}
.guide-body p, .guide-body li { font-size: 15.5px; line-height: 1.72; }
.guide-body > p + p { margin-top: 14px; }
.guide-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(212,175,55,0.14);
  padding-bottom: 16px;
  margin-bottom: 8px;
}

/* ===== "On this page" ===== */
.guide-toc {
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0 30px;
}
.guide-toc h2 {
  font-size: 12px !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 10px !important;
}
.guide-toc ol { margin: 0; padding-left: 20px; }
.guide-toc li { margin-bottom: 6px; font-size: 14.5px; }
.guide-toc a { color: rgba(243,229,171,0.92); }

/* ===== Expanders =====
   NOTE: no height/max-height transition here, on purpose. Animating height
   emits a layout shift on every frame of the tween — that is exactly what
   .results-toolbar-spacer and .search-sticky-spacer were doing on the main
   page. The disclosure snaps. If softness is ever wanted, transition the
   summary's background or the marker's transform, never the panel height. */
.guide-expander {
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 12px;
  background: rgba(212,175,55,0.04);
  margin: 16px 0;
  overflow: hidden;
}
.guide-expander > summary {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #f3e5ab;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(212,175,55,0.06);
  transition: background 0.15s ease;   /* colour only — never layout */
}
.guide-expander > summary:hover { background: rgba(212,175,55,0.13); }
.guide-expander > summary::-webkit-details-marker { display: none; }
.guide-expander > summary::before {
  content: "";
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-right: 2px solid #f3e5ab;
  border-bottom: 2px solid #f3e5ab;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;    /* transform does not reflow */
  margin-left: 2px;
}
.guide-expander[open] > summary::before { transform: rotate(45deg); }
.guide-expander > summary:focus-visible {
  outline: 2px solid rgba(212,175,55,0.7);
  outline-offset: -2px;
}
.guide-expander-body { padding: 4px 18px 18px; }
.guide-expander-body > p:first-child { margin-top: 10px; }

/* ===== Tables =====
   Wrapper scrolls on its own so a wide table never makes the PAGE scroll
   horizontally on mobile. */
.guide-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 460px;
}
.guide-table caption {
  caption-side: bottom;
  text-align: left;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  padding: 10px 14px;
}
.guide-table th, .guide-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(212,175,55,0.12);
  vertical-align: top;
}
.guide-table thead th {
  background: rgba(212,175,55,0.09);
  color: #f3e5ab;
  font-weight: 600;
  white-space: nowrap;
}
.guide-table tbody tr:last-child td { border-bottom: none; }

/* ===== Safety callout =====
   These guides are AUTHORED INSTRUCTIONS about hot wax and open flame —
   a different liability position from describing a merchant's product.
   Given its own component so it cannot be mistaken for body copy. */
.guide-safety {
  border: 1px solid rgba(224,122,95,0.5);
  background: rgba(224,122,95,0.09);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
}
.guide-safety strong { color: #f0b7a4; }
.guide-safety p { color: rgba(255,255,255,0.88); }

/* ===== Footnotes ===== */
.fn-ref {
  font-size: 0.72em;
  vertical-align: super;
  line-height: 0;
  padding: 0 1px 0 2px;
  font-weight: 600;
}
.fn-ref a { text-decoration: none; }
.fn-ref a:hover { text-decoration: underline; }
.guide-sources { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(212,175,55,0.2); }
.guide-sources ol { padding-left: 22px; }
.guide-sources li {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 12px;
  scroll-margin-top: 24px;      /* so the jump target is not flush to the edge */
}
.guide-sources li:target {
  background: rgba(212,175,55,0.12);
  border-radius: 6px;
  box-shadow: 0 0 0 6px rgba(212,175,55,0.12);
}
.fn-back { font-size: 13px; margin-left: 6px; text-decoration: none; }

/* ===== Footer nav between the four guides ===== */
.guide-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.guide-next a {
  flex: 1 1 220px;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 14px 18px;
  background: rgba(18,24,20,0.6);
  text-decoration: none;
}
.guide-next a:hover { border-color: rgba(212,175,55,0.7); text-decoration: none; }
.guide-next span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}

/* Respect a reduced-motion preference for the TOC/footnote jumps. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (max-width: 700px) {
  .guide-body {
    margin-top: -20px;
    padding: 26px 20px 34px;
    border-radius: 14px;
  }
  .guide-hero-inner { padding: 0 20px 24px; }
}

/* ===== Hub pages =====
   For index pages inside guides/ (currently making.html). Mirrors the card
   language of guides.html so the two read as siblings, but wider than
   scent-notes.css's 720px .page because a card grid needs the room.

   NOTE: transitions name their properties. guides.html's .card uses
   `transition: all`, which is fine today because its hover only touches
   colour and transform — but `all` silently starts animating a layout
   property the moment one is added to the hover state, and that emits a
   shift every frame. Not copied here. */
.hub-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 46px 24px 80px;
  position: relative;
  z-index: 1;
}
.hub-header { text-align: center; margin-bottom: 22px; }
.hub-header h1 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 10px; }
.hub-divider {
  width: 54px;
  height: 1px;
  background: rgba(212,175,55,0.55);
  margin: 0 auto 14px;
}
.hub-header p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  letter-spacing: 0.4px;
}
.hub-intro {
  max-width: 640px;
  margin: 0 auto 38px;
  text-align: center;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}
.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}
.hub-card {
  display: block;
  background: rgba(18,24,20,0.72);
  border: 1px solid rgba(212,175,55,0.28);
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.hub-card:hover {
  border-color: rgba(212,175,55,0.7);
  background: rgba(212,175,55,0.08);
  transform: translateY(-4px);
  text-decoration: none;
}
.hub-card-icon { font-size: 28px; margin-bottom: 14px; opacity: 0.9; }
.hub-card h2 { font-size: 17px; color: #f3e5ab; font-weight: 500; margin: 0 0 8px; }
.hub-card p { font-size: 14px; color: rgba(255,255,255,0.68); margin: 0; }
.hub-cta {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(243,229,171,0.9);
  letter-spacing: 0.4px;
}

/* A guide that does not exist yet. Rendered as a <div>, never an <a> — a
   link to an unwritten page is a 404 for a reader and a broken internal
   link for a crawler. It states its own status rather than looking broken. */
.hub-card--soon {
  border-style: dashed;
  border-color: rgba(212,175,55,0.22);
  background: rgba(18,24,20,0.4);
  cursor: default;
}
.hub-card--soon .hub-card-icon { opacity: 0.45; }
.hub-card--soon h2 { color: rgba(243,229,171,0.6); }
.hub-card--soon p { color: rgba(255,255,255,0.45); }
.hub-card--soon .hub-cta {
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.2px;
}

/* ===== AUTHOR BYLINE =====
   Sits above the source list. Deliberately states what the author's training
   does and does not cover: thermal systems, not chandlery. Do not let this
   drift into implying industry standing — the honest claim is the useful one,
   and an overstated one is the failure mode this whole page set is built
   against. */
.guide-author {
  margin: 40px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 12px;
  background: rgba(18,24,20,0.5);
}
.guide-author p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}
.guide-author strong { color: #f3e5ab; }
.guide-author a { color: rgba(243,229,171,0.85); white-space: nowrap; }

/* ADDED 2026-08-28, extended 2026-08-29 — the ?v= cache buster on every page
   linking this file was bumped to 20260829 in the same commit. Cloudflare caches CSS on this zone
   even though it does not cache HTML, so a stylesheet change without a bump
   ships the new markup against the old rules. That is exactly how
   guides/making.html went live visibly broken on 2026-08-25. */

/* ===== FOOTER LINKS =====
   Matches the convention already used on the other content pages —
   about.html, contact.html and terms.html each end with a plain row of links
   separated by middots, in the normal content flow.

   Deliberately NOT index.html's .site-footer. That one is
   `position: fixed; bottom: 0` with a blur backdrop: a persistent overlay bar,
   which suits a single-screen search app but would sit on top of the text in
   every viewport of a 6,800-word article. Same links, right treatment for the
   page type. */
.guide-footer-links {
  margin: 44px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(212,175,55,0.15);
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  text-align: center;
}
.guide-footer-links a {
  color: rgba(243,229,171,0.7);
  text-decoration: none;
  white-space: nowrap;
}
.guide-footer-links a:hover {
  color: #f3e5ab;
  text-decoration: underline;
}
