/* Shared look for the static guides and tools (public/guides, public/tools, public/sites, guides.html).
   about.html, privacy.html and 404.html inline the same base rules. */
:root {
  color-scheme: dark;
  --ink: #f4efe6;
  --muted: rgba(244, 239, 230, 0.68);
  --line: rgba(244, 239, 230, 0.16);
  --accent: #f2b56b;
  --caution: #fab219;
  --stop: #ff8a80;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(900px 420px at 10% -10%, rgba(242, 181, 107, 0.35), transparent 60%), linear-gradient(165deg, #1d3d55, #10141c 70%) fixed;
  background-color: #10141c;
}
main { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; line-height: 1.6; }
.mark { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.mark a { color: inherit; text-decoration: none; padding: 10px 0; }
h1, h2, h3 { font-family: Fraunces, serif; font-weight: 560; line-height: 1.1; }
h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 12px; }
h2 { font-size: 24px; margin: 36px 0 8px; }
h3 { font-size: 19px; margin: 26px 0 6px; }
p, li { color: var(--muted); }
li { margin: 6px 0; }
.lead { font-size: 19px; color: var(--ink); }
strong { color: var(--ink); }
a { color: var(--accent); }
.cta {
  display: inline-block;
  margin-top: 12px;
  background: var(--accent);
  color: #1a1206;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.formula {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 14px;
}
.note { font-size: 14px; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer a { display: inline-block; padding: 6px 0; }

/* Calculators */
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; }
.calc label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.calc input, .calc select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: rgba(8, 10, 14, 0.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}
.result { margin: 18px 0 0; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; background: rgba(8, 10, 14, 0.28); }
.result p { margin: 4px 0 0; }
.result .big { font-family: Fraunces, serif; font-size: 46px; line-height: 1; color: var(--ink); margin: 0 0 10px; }
.level-ok { color: #8fd99f; }
.level-caution { color: var(--caution); }
.level-stop { color: var(--stop); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; color: var(--ink); }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
thead th { border-top: 0; color: var(--muted); font-weight: 500; font-size: 12px; white-space: normal; vertical-align: bottom; }
tbody th { font-weight: 500; }
td.text, th.text { white-space: normal; text-align: left; min-width: 16ch; }
td.caution { background: rgba(250, 178, 25, 0.18); }
td.stop { background: rgba(229, 72, 77, 0.28); }
caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--muted); padding-top: 10px; }

/* Guide index */
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.cards li { margin: 0; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; background: rgba(8, 10, 14, 0.2); }
.cards a { font-weight: 600; text-decoration: none; }
.cards p { margin: 4px 0 0; font-size: 15px; }

@media (max-width: 560px) {
  .calc { grid-template-columns: 1fr; }
}

/* Top bar: the page's mark on the left, Lumen Sites on the right. */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin: 0 0 8px; }
.bar .mark { margin: 0; }
.bar-sites { color: #1a1206; background: var(--accent); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; text-decoration: none; }
.bar-sites:hover { background: #f6c587; }
@media (max-width: 560px) {
  .bar-sites span { display: none; }
}

/* Lumen Sites box near the end of each guide and tool. */
.sites-cta { margin: 36px 0 0; border: 1px solid rgba(242, 181, 107, 0.55); border-radius: 20px; padding: 18px 20px; background: rgba(242, 181, 107, 0.08); }
.sites-cta p { margin: 6px 0 0; }
.sites-cta .sites-cta-head { margin: 0; font-family: Fraunces, serif; font-size: 22px; color: var(--ink); }
.sites-cta .cta { margin-right: 14px; }
.cta-alt { display: inline-block; margin-top: 12px; color: var(--ink); }

/* Printable templates: fill-in cells and the print button. */
td.blank { min-width: 14ch; height: 2.2em; white-space: normal; }
.print { font: inherit; font-weight: 600; color: #1a1206; background: var(--accent); border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }

/* Mine weather index (/mines, rendered by the Worker). */
h2 small { font-family: Outfit, system-ui, sans-serif; font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.mine-list { list-style: none; padding: 0; margin: 10px 0 0; columns: 2 260px; column-gap: 28px; }
.mine-list li { margin: 0; padding: 7px 0; border-top: 1px solid var(--line); break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; }
.mine-list a { text-decoration: none; color: var(--ink); }
.mine-list a:hover { text-decoration: underline; }
.mine-list span { color: var(--muted); font-size: 13px; text-align: right; }

/* Month-by-month tables in the regional guides (scripts/build-guide-charts.mjs). Cells are shaded on one
   amber ramp, more days brighter (validated for this dark page: one hue, monotone lightness, faintest
   step 2:1 on the surface). The number is printed in every cell, so the shade is never the only cue. */
.month-chart { margin: 18px 0 0; }
.month-chart h3 { margin-top: 0; }
.heat-table { border-collapse: separate; border-spacing: 2px; }
.heat-table th, .heat-table td { border-top: 0; }
.heat-table thead th { text-align: center; padding: 4px 2px; }
.heat-table thead th:first-child, .heat-table tbody th { text-align: left; padding: 6px 10px 6px 0; }
.heat-table tbody th a { color: var(--ink); text-decoration: none; }
.heat-table tbody th a:hover { text-decoration: underline; }
.heat-table td { min-width: 30px; padding: 6px 2px; text-align: center; border-radius: 4px; font-size: 13px; font-weight: 600; }
.heat-table .b0, .heat-legend i.b0 { color: var(--muted); font-weight: 400; }
.b1 { background: #68441a; }
.b2 { background: #8d5d24; }
.b3 { background: #b27832; }
.heat-table .b4 { background: #d99441; color: #1a1206; }
.heat-table .b5 { background: #ffb256; color: #1a1206; }
.heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 0; font-size: 13px; }
.heat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.heat-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.heat-legend i.b0 { box-shadow: inset 0 0 0 1px var(--line); }
.heat-legend i.b4 { background: #d99441; }
.heat-legend i.b5 { background: #ffb256; }
@media print {
  .heat-table td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Lumen Sites pages: top-bar links beside the Get started button. */
.bar-links { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.bar-links a:not(.bar-sites) { color: var(--muted); }

/* The comparison table on /sites/lightning-detection-options: Lumen Sites first and lightly marked, and
   wider than the text column on big screens so no column hides off to the side. */
.ours { background: rgba(242, 181, 107, 0.1); }
thead .ours { color: var(--accent); }
@media (min-width: 1100px) {
  .table-wrap.wide { width: 1040px; margin-left: -156px; }
}
