/* SolarDial golden hour calculator page. Written by hand: tools/landings.py owns style.css, not this file.
   Base rules are style.css as generated; the calculator rules are at the bottom. */
:root {
  --bg: #fdf7ee; --paper: #ffffff; --fg: #2a1f12; --muted: #76674f;
  --line: #efe3d0; --accent: #e0781d; --ink: #b85f12; --chip: #fbead6;
  --on-accent: #ffffff;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 20px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.bar a { color: var(--muted); text-decoration: none; }
.bar a:hover { color: var(--fg); }
.bar .id { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.bar .id img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.hero { padding: clamp(34px, 8vw, 60px) 0 clamp(18px, 5vw, 30px); }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; margin: 0 0 14px; }
.kicker img { width: 40px; height: 40px; border-radius: 10px; }
h1 { font-size: clamp(1.95rem, 6.2vw, 2.8rem); line-height: 1.09; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 700; }
h2 { font-size: clamp(1.3rem, 4vw, 1.6rem); letter-spacing: -0.02em; margin: 2.2em 0 0.6em; }
.sub { font-size: clamp(1.04rem, 3.2vw, 1.2rem); color: var(--muted); margin: 0 0 24px; max-width: 35rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 650; text-decoration: none; padding: 12px 20px; border-radius: 11px; }
.btn:hover { filter: brightness(1.07); }
section { margin: 2.4em 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin: 0.4em 0; }
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 2.4rem; margin: 1.1em 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0.05em; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--chip); color: var(--ink); font-weight: 650; font-size: 0.88rem; display: grid; place-items: center; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 0.96rem; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 0 20px 6px; margin: 0 -20px; }
.shots img { width: 232px; height: auto; border-radius: 14px; border: 1px solid var(--line); flex: none; }
.tablewrap { overflow-x: auto; margin: 1em -4px; padding: 0 4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
table.data td.n { font-family: var(--mono); }
table.data td.wrap-ok { white-space: normal; }
.limits li b { display: inline; }
.reviewed { color: var(--muted); font-size: 0.85rem; }
footer { border-top: 1px solid var(--line); margin-top: 3em; padding: 20px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--muted); }

/* ---- calculator */
.calc { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0 0 1.4em; }
.calc .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 12px; }
.calc label { display: block; }
.calc .lbl { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }
.calc input, .calc select { width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; }
.calc input:focus-visible, .calc select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc [hidden] { display: none; }
.calc #custom { margin-top: 12px; }
.answer { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px; margin: 18px 0 8px; }
.answer .card { background: var(--chip); border-radius: 12px; padding: 14px 16px; }
.answer .card.none { background: var(--bg); border: 1px dashed var(--line); }
.answer .k { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.answer b { display: block; font-size: clamp(1.25rem, 5vw, 1.6rem); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.answer .len { color: var(--muted); font-size: 0.92rem; }
.answer small, table.day small { font-size: 0.7em; color: var(--muted); font-weight: 400; }
table.day { margin-top: 10px; }
table.day td:first-child { color: var(--muted); }
.calc .note, .calc .warn { background: var(--bg); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 6px; font-size: 0.94rem; }
.calc .hint { color: var(--muted); font-size: 0.85rem; margin: 8px 0 0; }
