/* =============================================================================
   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;
  background: linear-gradient(135deg, var(--ember-light), #dc2626);
  display: grid; place-items: center; font-size: 19px; text-decoration: none;
}
.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; }
}
