/* ScentSearch — shared stylesheet for scent-note pages
   Extracted from the per-page inline <style> blocks (Phase 1 cleanup).
   One cached file instead of ~2.7KB duplicated inline on every note page. */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0f1410;
  color: rgba(255,255,255,0.9);
  min-height: 100vh;
  line-height: 1.6;
}

.bg {
  position: fixed;
  inset: 0;
  background-color: #0f1410;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  /* background-image (gradient + per-note photo) is set inline per page,
     since it's the one thing that's genuinely unique to each note. */
}

/* ===== Header (new — ties note pages back to the live app) ===== */
.note-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 24px 0;
}
.note-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.note-header-logo img {
  height: 34px;
  width: auto;
  display: block;
}
.note-header-logo span {
  color: #f3e5ab;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.note-header-search {
  flex-shrink: 0;
  padding: 8px 18px;
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 30px;
  color: #f3e5ab;
  font-size: 13px;
  text-decoration: none;
  background: rgba(212,175,55,0.08);
  white-space: nowrap;
}
.note-header-search:hover {
  background: rgba(212,175,55,0.18);
  text-decoration: none;
}
@media (max-width: 480px) {
  .note-header-logo span { display: none; }
  .note-header { padding: 16px 18px 0; }
}

/* ===== Page content ===== */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}
h1 {
  color: #f3e5ab;
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 500;
}
.subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  margin-bottom: 32px;
}
h2 {
  color: #f3e5ab;
  font-size: 18px;
  margin: 28px 0 12px;
  font-weight: 500;
}
p, li {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}
p + p { margin-top: 12px; }
ul { padding-left: 20px; margin-bottom: 16px; }
li { margin-bottom: 8px; }
strong { color: #f3e5ab; font-weight: 600; }
a { color: #f3e5ab; text-decoration: none; }
a:hover { text-decoration: underline; }

.back {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 30px;
  font-size: 14px;
  color: #f3e5ab;
}
.back:hover {
  background: rgba(212,175,55,0.1);
  text-decoration: none;
}

.search-cta {
  display: inline-block;
  margin: 12px 0 8px;
  padding: 10px 20px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 30px;
  color: #f3e5ab;
  text-decoration: none;
  font-size: 14px;
}
.search-cta:hover {
  background: rgba(212,175,55,0.2);
  text-decoration: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.chip {
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  color: #f3e5ab;
  font-size: 13px;
  text-decoration: none;
}
.chip:hover {
  background: rgba(212,175,55,0.22);
  text-decoration: none;
}

/* ===== Generated catalogue data (scripts\generate_note_pages.py) =====
   Everything between the SS:GENERATED sentinels on a note page. Set apart from
   the editorial prose so a reader can see which claims are measured. */
.data-panel {
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 4px 0 8px;
}
.data-panel .chip-row { margin-bottom: 4px; }
.data-updated {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 14px;
}

/* ===== Pages rendered from a spec row (data\note-specs\, scripts\generate_note_pages.py) =====
   ⚠️ Cloudflare caches this file. Rendered pages link it as scent-notes.css?v=<CSS_VERSION>;
   bump CSS_VERSION in the generator whenever these rules change. */
.quick-answer {
  margin: 12px 0 8px;
  padding: 16px 20px;
  border-left: 3px solid rgba(212,175,55,0.55);
  border-radius: 0 12px 12px 0;
  background: rgba(255,255,255,0.04);
}
.qa-text {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}
.chip-text {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.16);
}
.chip-text:hover { background: rgba(255,255,255,0.05); }
.qa-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.note-hook {
  margin-top: 14px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px dashed rgba(212,175,55,0.3);
  border-radius: 10px;
}
a.src {
  font-size: 13px;
  color: rgba(243,229,171,0.85);
  border-bottom: 1px dotted rgba(243,229,171,0.5);
}
a.src:hover { text-decoration: none; border-bottom-style: solid; }
.page-footnote {
  margin-top: 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
