/* =============================================================================
   bbqtemperature.com — styles for the generated guide pages.

   Deliberately NOT Tailwind: these pages are the SEO entry points, so they get
   one small render-blocking stylesheet instead of a 110 KB CDN script that has
   to compile classes in the browser. The interactive app at / still uses the
   Tailwind CDN, where the trade-off makes sense.
   ============================================================================= */

:root {
  --ink-900: #08090d;
  --ink-800: #0b0d12;
  --ink-700: #11141b;
  --ink-600: #171b24;
  --ink-500: #1f2430;
  --line: rgba(255, 255, 255, .07);
  --text: #e8eaf0;
  --muted: #94a3b8;
  --dim: #64748b;
  --ember: #f97316;
  --ember-light: #fb923c;
  --amber: #fbbf24;
  --green: #22c55e;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 9, 13, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: calc(env(safe-area-inset-top) + 10px) 0 10px;
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  overflow: hidden; display: block; text-decoration: none;
}
.logo svg { width: 100%; height: 100%; display: block; }
.brand { min-width: 0; flex: 1; }
.brand a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; display: block; line-height: 1.25; }
.brand span { color: var(--dim); font-size: 11px; }
.header-cta {
  flex: none; background: var(--ember); color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--ember-light); }

/* ---------- typography ---------- */
h1 { font-size: 30px; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; margin: 20px 0 10px; }
h2 { font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; margin: 36px 0 10px; }
h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
p { margin: 0 0 14px; color: #cbd5e1; }
a { color: var(--ember-light); }
strong, b { color: #fff; font-weight: 700; }
.lede { font-size: 17px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; color: var(--dim); line-height: 1.6; }
ul, ol { margin: 0 0 14px; padding-left: 20px; color: #cbd5e1; }
li { margin-bottom: 7px; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 12px; color: var(--dim); padding-top: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ember-light); }
.crumbs span { margin: 0 6px; opacity: .5; }

/* ---------- the answer box (featured-snippet bait) ---------- */
.answer {
  border: 1px solid rgba(249, 115, 22, .3);
  background: linear-gradient(135deg, var(--ink-600), var(--ink-800));
  border-radius: 20px; padding: 20px; margin: 18px 0 8px;
  box-shadow: 0 0 40px -14px rgba(249, 115, 22, .5);
}
.answer p:last-child { margin-bottom: 0; }
.answer .label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ember); margin-bottom: 8px;
}
.hero-temp { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 10px; }
.hero-temp .n { font-size: 54px; font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-temp .u { font-size: 20px; font-weight: 800; color: var(--muted); }
.hero-temp .alt { font-size: 14px; color: var(--dim); margin-left: auto; }

/* ---------- metric grid ---------- */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
@media (min-width: 560px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: var(--ink-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.metric .k { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.metric .v { font-size: 21px; font-weight: 900; margin-top: 6px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric .s { font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.metric.accent .v { color: var(--ember); }

/* ---------- cards & callouts ---------- */
.card { background: var(--ink-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.callout { border-radius: var(--radius); padding: 18px; margin: 18px 0; border: 1px solid; }
.callout h2, .callout h3 { margin-top: 0; }
.callout.warn { border-color: rgba(251, 191, 36, .32); background: rgba(251, 191, 36, .07); }
.callout.warn h2 { color: var(--amber); }
.callout.tip { border-color: rgba(34, 197, 94, .3); background: rgba(34, 197, 94, .07); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
thead { background: var(--ink-600); }
th {
  text-align: left; padding: 11px 13px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
td { padding: 11px 13px; border-top: 1px solid var(--line); color: #cbd5e1; }
tbody tr { background: rgba(17, 20, 27, .6); }
td.num { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; white-space: nowrap; }
td.hot { color: var(--ember); font-weight: 800; }
tr.is-current td { background: rgba(249, 115, 22, .1); }
tr.is-current td:first-child::after { content: ' ← this page'; color: var(--ember); font-size: 11px; font-weight: 700; }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 14px 0; }
.timeline li {
  display: flex; gap: 14px; padding: 11px 0;
  border-top: 1px solid var(--line); align-items: flex-start;
}
.timeline li:first-child { border-top: 0; }
.timeline .t {
  flex: none; min-width: 66px; font-variant-numeric: tabular-nums;
  font-weight: 800; color: var(--ember); font-size: 14px;
}
.timeline .d { font-size: 14.5px; color: #cbd5e1; }
.timeline .d b { display: block; }

/* ---------- affiliate ---------- */
.aff { display: flex; gap: 13px; align-items: center; background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; margin-bottom: 10px; }
.aff .ico { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--ink-500); display: grid; place-items: center; font-size: 23px; }
.aff .body { flex: 1; min-width: 0; }
.aff .tag { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ember); background: rgba(249, 115, 22, .14); padding: 2px 7px; border-radius: 5px; }
.aff .name { font-size: 14px; font-weight: 700; margin: 5px 0 2px; color: #fff; }
.aff .why { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 0; }
.aff .buy {
  flex: none; align-self: stretch; display: grid; place-items: center; text-align: center;
  background: var(--amber); color: #0b0d12; text-decoration: none;
  font-size: 11.5px; font-weight: 800; line-height: 1.25; padding: 0 13px; border-radius: 12px;
}
.aff .buy:hover { background: #fcd34d; }

/* ---------- link grids ---------- */
.links { display: grid; gap: 8px; margin: 14px 0; }
@media (min-width: 560px) { .links { grid-template-columns: repeat(2, 1fr); } }
.links a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--ink-700); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600;
}
.links a:hover { border-color: rgba(249, 115, 22, .45); background: var(--ink-600); }
.links a .n { color: var(--ember); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }

/* ---------- FAQ ---------- */
details.faq { background: var(--ink-700); border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; margin-bottom: 8px; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--ember); font-weight: 800; }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin: 10px 0 0; font-size: 14.5px; }

/* ---------- app CTA ---------- */
.cta {
  display: block; text-align: center; text-decoration: none; margin: 26px 0;
  background: linear-gradient(90deg, var(--ember-light), #ea580c);
  color: #fff; font-weight: 800; font-size: 16px; padding: 16px; border-radius: 18px;
  box-shadow: 0 0 40px -14px rgba(249, 115, 22, .7);
}
.cta small { display: block; font-weight: 600; font-size: 12px; opacity: .85; margin-top: 2px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 44px; padding: 26px 0 calc(env(safe-area-inset-bottom) + 34px); text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 16px; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.site-footer nav a:hover { color: var(--ember-light); }

@media (max-width: 400px) {
  h1 { font-size: 25px; }
  .hero-temp .n { font-size: 46px; }
}

/* =============================================================================
   CONTEXTUAL PRODUCT RECOMMENDATION
   Reads as an aside in the flow of the argument, not as a banner. Placed where
   the reader has just been told they need to measure something.
   ============================================================================= */
.rec {
  display: flex; align-items: center; gap: 13px;
  margin: 18px 0; padding: 14px 15px;
  border: 1px solid rgba(249, 115, 22, .22);
  border-left: 3px solid var(--ember);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(249, 115, 22, .07), rgba(249, 115, 22, .02));
}
.rec-ico { font-size: 24px; flex: none; line-height: 1; }
.rec-body { flex: 1; min-width: 0; }
.rec-why { margin: 0; font-size: 13.5px; line-height: 1.5; color: #cbd5e1; }
.rec-name { margin: 5px 0 0; font-size: 12.5px; font-weight: 700; color: #fff; }
.rec-buy {
  flex: none; align-self: center; white-space: nowrap;
  background: var(--amber); color: #0b0d12; text-decoration: none;
  font-size: 12px; font-weight: 800; padding: 9px 13px; border-radius: 10px;
}
.rec-buy:hover { background: #fcd34d; }
@media (max-width: 460px) {
  .rec { flex-wrap: wrap; }
  .rec-buy { width: 100%; text-align: center; }
}

/* =============================================================================
   DISPLAY AD SLOTS
   Height is reserved up front so enabling ads never shifts the layout. This is
   the single biggest CLS mistake on ad-monetised content sites.
   ============================================================================= */
.ad-slot {
  position: relative;
  margin: 26px 0;
  min-height: 280px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .02);
  border: 1px dashed var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.ad-slot .ad-label {
  position: absolute; top: 7px; left: 10px;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
@media (min-width: 720px) { .ad-slot { min-height: 250px; } }

/* =============================================================================
   EMAIL CAPTURE
   ============================================================================= */
.capture {
  margin: 30px 0;
  padding: 22px;
  border: 1px solid rgba(249, 115, 22, .25);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--ink-600), var(--ink-800));
}
.capture h2 { margin: 0 0 6px; font-size: 19px; }
.capture-compact h2 { font-size: 17px; }
.capture p { font-size: 14px; margin-bottom: 0; }
.capture-form { display: flex; gap: 8px; margin: 14px 0 10px; flex-wrap: wrap; }
.capture-form input[type=email] {
  flex: 1 1 190px; min-width: 0;
  background: var(--ink-900); color: var(--text);
  border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 14px; font-size: 15px; font-family: inherit;
}
.capture-form input[type=email]:focus {
  outline: none; border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .18);
}
.capture-form button {
  flex: none; cursor: pointer; font-family: inherit;
  background: var(--ember); color: #fff;
  border: 0; border-radius: 11px; padding: 12px 20px;
  font-size: 15px; font-weight: 800;
}
.capture-form button:hover { background: var(--ember-light); }
.capture .tiny { margin: 0; }
/* Honeypot: hidden from humans, irresistible to bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Affiliate-network verification token, shown only when a crawler needs to
   read it as rendered text. Off by default — see IMPACT_VISIBLE in build.js. */
.verify-token {
  margin: 0; padding: 6px 16px; max-width: 720px;
  margin-left: auto; margin-right: auto;
  font-size: 11px; color: var(--dim); font-family: ui-monospace, monospace;
}

/* The answer hook: a quiet line inside the answer box, where attention is
   total. Deliberately not a button — a banner here would cheapen the one
   element the page is judged on. */
.hook {
  margin: 14px 0 0; padding-top: 13px; overflow-wrap: anywhere;
  border-top: 1px solid rgba(249, 115, 22, .22);
  font-size: 13.5px; line-height: 1.5;
}
.hook-q { color: var(--muted); }
.hook a { color: var(--ember-light); font-weight: 700; text-decoration: none; }
.hook a:hover { text-decoration: underline; }
