/* Appliance Watts. Visual idea: the plug-in energy meter. A dark meter face with seven-segment-style
   readouts, appliance figures set like the yellow-and-black energy label, warm off-white paper,
   near-black ink and one signal yellow. Type: humanist serif for reading, condensed grotesk for labels,
   monospace for every number. No web fonts, no gradients, no shadows. */

:root {
  --bg: #f6f2e7;
  --surface: #fffdf6;
  --tint: #eee8d8;
  --ink: #1b1a16;
  --muted: #57524a;
  --rule: #d6cfbb;
  --yellow: #f5c400;
  --on-yellow: #1b1a16;
  --face: #1d1c17;
  --face-ink: #ece7d8;
  --face-muted: #b9b29f;
  --lcd: #0f0e0b;
  --lcd-on: #f5c400;
  --lcd-ghost: #2a2716;
  --ok: #2f6b2f;
  --tight: #8a5a00;
  --over: #a8231c;
  --face-ok: #f5c400;
  --face-tight: #ffb066;
  --face-over: #ff8a80;
  --focus: #1b1a16;
  --link: #1b1a16;
  --f-read: "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
  --f-label: "Avenir Next Condensed", "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --f-num: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151410; --surface: #1e1d18; --tint: #1a1914; --ink: #f0ebdd; --muted: #bcb4a0; --rule: #3d3a30;
    --face: #0f0e0b; --face-ink: #ece7d8; --face-muted: #b9b29f; --lcd: #000000; --lcd-ghost: #221f12;
    --ok: #8fd18f; --tight: #f0b34a; --over: #ff8a80; --focus: #f5c400; --link: #f0ebdd;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151410; --surface: #1e1d18; --tint: #1a1914; --ink: #f0ebdd; --muted: #bcb4a0; --rule: #3d3a30;
  --face: #0f0e0b; --face-ink: #ece7d8; --face-muted: #b9b29f; --lcd: #000000; --lcd-ghost: #221f12;
  --ok: #8fd18f; --tight: #f0b34a; --over: #ff8a80; --focus: #f5c400; --link: #f0ebdd;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-read);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.label-card :focus-visible { outline-color: #1b1a16; }
.meter-face :focus-visible { outline-color: var(--yellow); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--yellow); color: var(--on-yellow); padding: 10px 14px; z-index: 50; font-family: var(--f-label); font-weight: 600; }
.skip:focus { top: 8px; }

h1, h2, h3 { font-family: var(--f-read); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 2rem 0 .75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
p { margin: 0 0 1rem; }

/* ---------- header and footer */
.site-header { border-bottom: 3px solid var(--ink); background: var(--bg); }
.header-row { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; min-height: 64px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.logo-body { fill: var(--ink); }
.logo-lcd { fill: var(--lcd); }
.logo-seg { fill: var(--yellow); }
.logo-pin { fill: var(--bg); }
.wordmark { font-family: var(--f-label); font-size: 1.3rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.wordmark b { font-weight: 700; background: var(--yellow); color: var(--on-yellow); padding: 0 .2em; }
.nav { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-family: var(--f-label); font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.nav a:hover { text-decoration: underline; }
.header-row nav { margin-left: auto; }
.theme-toggle { min-height: 44px; min-width: 64px; padding: 0 12px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font-family: var(--f-label); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; border-radius: 2px; }

.site-footer { border-top: 3px solid var(--ink); margin-top: 3rem; padding: 1.5rem 0 2rem; font-size: .9375rem; color: var(--muted); }
.site-footer p { max-width: 70ch; }
.footer-brand { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); font-size: 1.1rem; }
.footer-brand b { background: var(--yellow); color: var(--on-yellow); padding: 0 .2em; }
.footer-nav { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0 8px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--ink); }
.copyright { font-family: var(--f-num); font-size: .8125rem; }

/* ---------- hero */
.hero { padding: 1.75rem 0 1rem; max-width: 62rem; }
.lede { font-size: 1.15rem; max-width: 66ch; }
.noscript { border-left: 4px solid var(--yellow); padding-left: 12px; }

/* ---------- forms and buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 2px; background: var(--surface); color: var(--ink);
  font-family: var(--f-label); font-weight: 600; font-size: 1rem; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; line-height: 1.1; text-align: center;
}
.btn:hover { background: var(--tint); }
.btn.primary { background: var(--yellow); color: var(--on-yellow); border-color: #1b1a16; }
.btn.primary:hover { background: #e2b500; }
.btn.quiet { border-width: 1px; border-color: var(--muted); }
.btn.small { padding: 0 10px; font-size: .9375rem; }
.linkish { background: none; border: 0; padding: 0 2px; min-height: 44px; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label, legend { font-family: var(--f-label); font-weight: 600; font-size: 1rem; letter-spacing: .02em; }
input[type="number"], input[type="text"], select {
  min-height: 44px; width: 100%; padding: 6px 10px; border: 2px solid var(--muted); border-radius: 2px;
  background: var(--surface); color: var(--ink); font-size: 1rem;
}
input[type="number"] { font-family: var(--f-num); font-variant-numeric: tabular-nums; text-align: right; }
input[type="text"], select { font-family: var(--f-read); }
input[aria-invalid="true"] { border-color: var(--over); border-width: 3px; }
.affix { display: flex; align-items: stretch; }
.affix input { border-right: 0; border-radius: 2px 0 0 2px; }
.affix .unit { display: inline-flex; align-items: center; padding: 0 10px; border: 2px solid var(--muted); border-left: 1px solid var(--rule); background: var(--tint); font-family: var(--f-num); font-size: .9375rem; white-space: nowrap; border-radius: 0 2px 2px 0; }
.hint { font-size: .875rem; color: var(--muted); }
.error { font-size: .9375rem; color: var(--over); font-family: var(--f-label); font-weight: 600; }
.error:empty, .hint:empty { display: none; }
fieldset { border: 0; border-top: 2px solid var(--ink); margin: 0 0 1.25rem; padding: .75rem 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
legend { padding: 0 8px 0 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; }
.status { font-family: var(--f-label); font-size: 1rem; min-height: 1.5em; }

/* ---------- planner */
.planner-section { border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: var(--tint); padding: 1rem 0 1.5rem; }
.planner { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "readout" "list" "power" "save"; }
.pl-readout { grid-area: readout; }
.pl-list { grid-area: list; }
.pl-power { grid-area: power; }
.pl-save { grid-area: save; }
.pl-list h3, .pl-save h3 { margin-top: .25rem; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .05em; font-size: 1.15rem; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }

.strip { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin: 0 -16px 12px; padding: 8px 16px; background: var(--face); color: var(--face-ink); font-family: var(--f-num); font-size: .9375rem; font-variant-numeric: tabular-nums; border-bottom: 2px solid var(--yellow); }
.strip b { color: var(--lcd-on); font-weight: 700; }

.meter-face { background: var(--face); color: var(--face-ink); border: 3px solid #000; border-radius: 3px; padding: 14px 14px 12px; }
.face-title { margin: 0 0 10px; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; color: var(--face-muted); }
.readouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rd { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; justify-content: start; align-items: end; column-gap: 6px; min-width: 0; }
.rd-label { grid-column: 1 / -1; font-family: var(--f-label); font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--face-muted); }
.lcd { display: inline-grid; background: var(--lcd); border: 1px solid #3a3626; padding: 2px 6px; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: clamp(1.25rem, 5.6vw, 1.9rem); line-height: 1.15; font-weight: 700; letter-spacing: .02em; }
.lcd > span { grid-area: 1 / 1; text-align: right; white-space: nowrap; }
.lcd-ghost { color: var(--lcd-ghost); }
.lcd-val { color: var(--lcd-on); }
.rd-unit { font-family: var(--f-num); font-size: .9375rem; color: var(--face-ink); padding-bottom: 4px; }
.verdict { margin: 14px 0 8px; font-size: 1.0625rem; line-height: 1.45; color: var(--face-ink); border-top: 1px solid #3a3626; padding-top: 10px; }
.meters { display: grid; gap: 10px; }
.meter-top { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 4px; font-family: var(--f-label); font-size: .9375rem; text-transform: uppercase; letter-spacing: .04em; }
.meter-state { font-weight: 700; }
.meter-ok .meter-state { color: var(--face-ok); }
.meter-tight .meter-state { color: var(--face-tight); }
.meter-over .meter-state { color: var(--face-over); }
.bar { position: relative; height: 18px; border: 2px solid var(--face-ink); background: #2b2920; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--face-ok); }
.meter-tight .bar-fill { background: var(--face-tight); }
.meter-over .bar-fill { background: var(--face-over); }
.bar-need { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: var(--face-ink); }
.bar-over { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-num); font-size: .75rem; font-weight: 700; color: #1b1a16; }
.meter-text { margin: 4px 0 0; font-family: var(--f-num); font-size: .8125rem; color: var(--face-muted); font-variant-numeric: tabular-nums; }
.meter-empty, .face-note { font-size: .875rem; color: var(--face-muted); margin: 8px 0 0; }
.face-note:empty { display: none; }

.add-form, .custom-form, .save-form { display: grid; gap: 10px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.add-form .pick, .add-form .wide, .custom-form .wide { grid-column: 1 / -1; }
.add-form .act, .custom-form .act, .save-form .act { grid-column: 1 / -1; }
.add-form .act .btn, .custom-form .act .btn, .save-form .act .btn { width: 100%; }
.add-form .hint { grid-column: 1 / -1; margin: 0; }
.custom { margin: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.custom summary, .calc summary, .faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-family: var(--f-label); font-weight: 600; font-size: 1.0625rem; }
.custom-form { padding: 4px 0 14px; }
.example-note { font-size: .9375rem; color: var(--muted); border-left: 4px solid var(--yellow); padding-left: 10px; margin-top: 12px; }

.table-wrap { overflow-x: auto; max-width: 100%; }
.table-wrap:focus-visible { outline-offset: 4px; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .96875rem; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.data thead th { border-bottom: 2px solid var(--ink); font-family: var(--f-label); font-weight: 600; font-size: .9375rem; text-transform: uppercase; letter-spacing: .04em; vertical-align: bottom; }
table.data tbody th { font-weight: 600; }
table.data .num { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data thead .num { font-family: var(--f-label); }
table.data tfoot th, table.data tfoot td { border-top: 2px solid var(--ink); font-weight: 700; }
table.data tbody th a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.sub { display: block; font-weight: 400; font-size: .8125rem; color: var(--muted); font-family: var(--f-read); white-space: normal; }
.num .sub { font-family: var(--f-num); }
.nil { color: var(--muted); font-family: var(--f-read); font-size: .875rem; white-space: normal; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border: 1px solid var(--ink); border-radius: 2px; font-family: var(--f-label); font-size: .875rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; color: var(--ink); background: var(--bg); white-space: nowrap; }
.chip:hover { background: var(--tint); }
.basis { display: inline-block; padding: 1px 6px; border: 1px solid var(--ink); font-family: var(--f-label); font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; }
.basis-rated { background: var(--ink); color: var(--bg); }
.basis-derived { border-style: dashed; }
.note { font-size: .9375rem; color: var(--muted); max-width: 75ch; }

/* list table: cells become a compact card on narrow screens */
table.list .cell { width: 5.5rem; min-height: 44px; }
table.list th, table.list td { padding: 8px 6px; }
table.list td.act { text-align: right; }
.it-name { display: block; }
.it-src { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; font-weight: 400; color: var(--muted); font-family: var(--f-label); }
.empty { color: var(--muted); font-style: italic; }
.list-actions { margin-top: 10px; }
@media (max-width: 759px) {
  table.list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.list, table.list tbody, table.list tfoot { display: block; }
  table.list tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; padding: 10px; border-bottom: 1px solid var(--rule); }
  table.list th, table.list td { border: 0; padding: 0; }
  table.list tbody th { grid-column: 1 / -1; }
  table.list td[data-l]::before { content: attr(data-l); display: block; font-family: var(--f-label); font-size: .8125rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: left; }
  table.list .cell { width: 100%; }
  table.list td.act { grid-column: 1 / -1; text-align: left; }
  table.list tfoot tr { border-top: 2px solid var(--ink); }
  table.list tfoot td:empty { display: none; }
  .list-wrap { overflow: visible; }
}

.cost-out { grid-column: 1 / -1; font-size: 1rem; margin: 0; }
.saved-list { list-style: none; margin: 10px 0; padding: 0; border-top: 1px solid var(--rule); }
.saved-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.sv-name { font-weight: 700; }
.sv-meta { font-family: var(--f-num); font-size: .8125rem; color: var(--muted); flex: 1 1 12rem; }
.save-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.visually-hidden-file:focus-visible + *, .file-btn:focus-within { outline: 3px solid var(--focus); }
.share-field input { font-family: var(--f-num); font-size: .875rem; text-align: left; }
.shared-banner { border: 2px solid var(--ink); background: var(--yellow); color: var(--on-yellow); padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shared-banner .btn { border-color: #1b1a16; background: #fffdf6; color: #1b1a16; }

.calc { margin-top: 1.5rem; border-top: 2px solid var(--ink); padding-top: 4px; }
.calc ol { padding-left: 1.4rem; max-width: 80ch; }
.calc li { margin-bottom: .5rem; }
.worked { font-family: var(--f-num); font-size: .875rem; background: var(--surface); border-left: 4px solid var(--yellow); padding: 10px 12px; max-width: 90ch; overflow-wrap: anywhere; }

@media (min-width: 960px) {
  .planner { grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "list readout" "power readout" "save readout"; align-items: start; column-gap: 32px; }
  .pl-readout { position: sticky; top: 12px; }
  .strip { display: none; }
  .add-form { grid-template-columns: minmax(0, 1fr) 7rem 7rem auto; }
  .add-form .pick { grid-column: auto; }
  .add-form .act { grid-column: auto; }
  .custom-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .save-form { grid-template-columns: minmax(0, 1fr) auto; }
  .save-form .act { grid-column: auto; }
  .lcd { font-size: 1.9rem; }
}

/* ---------- sections */
.section { padding: 1.5rem 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-lede { max-width: 70ch; }
.rates-wrap { max-width: 640px; }
table.rates tr.us th, table.rates tr.us td { background: var(--yellow); color: var(--on-yellow); font-weight: 700; }
.guide-list li, .app-links li { margin-bottom: .4rem; }
.guide-list a, .app-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.app-links { columns: 2 12rem; padding-left: 1.2rem; }
.faq { border-bottom: 1px solid var(--rule); }
.faq p { max-width: 70ch; }
.prose { max-width: 76ch; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- appliance and text pages */
.page { padding-top: 1rem; }
.crumb { font-family: var(--f-label); font-size: .9375rem; color: var(--muted); margin: .5rem 0 .25rem; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.meta { font-family: var(--f-num); font-size: .8125rem; color: var(--muted); }
.answer-row { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .answer-row { grid-template-columns: minmax(0, 1fr) 300px; } }
.answer { margin: 0; }

.label-card { background: var(--yellow); color: #1b1a16; border: 3px solid #1b1a16; border-radius: 2px; padding: 0 0 10px; }
.label-card a { color: #1b1a16; }
.lc-head { margin: 0; background: #1b1a16; color: var(--yellow); padding: 6px 12px; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lc-kind { font-weight: 500; }
.lc-name { font-weight: 700; }
.lc-figs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 3px solid #1b1a16; }
.lc-fig { margin: 0; padding: 10px 12px; display: flex; flex-direction: column; }
.lc-fig + .lc-fig { border-left: 2px solid #1b1a16; }
.lc-num { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: 2rem; font-weight: 700; line-height: 1.1; }
.lc-unit { font-family: var(--f-label); font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.lc-kwh { margin: 8px 12px; font-family: var(--f-num); font-size: .9375rem; font-weight: 700; }
.lc-src { margin: 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.label-card .chip { background: #fffdf6; border-color: #1b1a16; color: #1b1a16; }

.section-block { margin-top: 1rem; }
.calc-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: start; max-width: 900px; }
.calc-form .wide { grid-column: 1 / -1; }
.calc-out { margin-top: 12px; max-width: 900px; }
.calc-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; border: 2px solid var(--ink); background: var(--surface); }
.calc-figs div { padding: 10px 12px; border-right: 1px solid var(--rule); }
.calc-figs dt { font-family: var(--f-label); font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.calc-figs dd { margin: 0; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 700; }
.calc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sources { font-size: .9375rem; }
.related { border-top: 2px solid var(--ink); margin-top: 2rem; }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.related a { display: inline-flex; align-items: center; min-height: 44px; }
.article .lede { font-size: 1.15rem; }
.article table.data { margin-bottom: 1rem; }
.formula { font-family: var(--f-num); background: var(--surface); border-left: 4px solid var(--yellow); padding: 8px 12px; overflow-wrap: anywhere; }
.tool-link { border: 2px solid var(--ink); background: var(--surface); padding: 10px 12px; }

/* ---------- ads (off by default) */
.ad-slot { margin: 1.5rem 0; }
.ad-label { font-family: var(--f-label); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; }
.ad-box { min-height: 280px; border: 1px dashed var(--rule); }
@media (min-width: 601px) { .ad-box { min-height: 120px; } }

@media (max-width: 420px) {
  .header-row nav { margin-left: 0; order: 3; width: 100%; }
  .nav a { padding: 0 8px; font-size: .9375rem; }
  .theme-toggle { margin-left: auto; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.prose p, .prose li { overflow-wrap: anywhere; }

/* iOS zooms into text fields under 16px when focused */
#share-url { font-size: 16px; }
