/* welcome.css: the News onboarding (#/welcome, /sources, /press). Three full pages of the
   paper: tokens only, so all eight looks carry it. No tab bar on these pages. */

html[data-tab="welcome"] .bar { display: none; }
html[data-tab="welcome"] body { padding-bottom: 0; }

.wl { min-height: 100vh; display: flex; flex-direction: column; }
.wl-body { flex: 1; padding: 0 var(--gutter) 24px; }

/* the mast: back, the step line, Skip */
.wl-mast .mast-top { grid-template-columns: 40px 1fr 40px; }
.wl-skip {
  justify-self: end; padding: 10px 0; color: var(--ink-2);
  font: 700 10.5px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase;
}
.wl-mast .section-title { margin-top: 12px; }

/* group heads: heavy rule, small caps, the count and Clear all on the right */
.wl-gh {
  display: flex; align-items: baseline; gap: 10px; margin: 24px 0 0; padding-top: 7px;
  border-top: calc(var(--rule-w) * 2.5) solid var(--rule-2);
  font: 700 11px/1.1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.wl-gn { font: italic 400 12.5px/1 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wl-clear {
  margin-left: auto; padding: 4px 0; background: none; border: 0; color: var(--accent); cursor: pointer;
  font: 700 10.5px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase;
}

/* 1. where you live */
.wl-field { margin: 20px 0 0; }
.wl-field input { width: 100%; padding: 12px 12px 11px; color: var(--ink); }
.wl-field input:focus { outline: calc(var(--rule-w) * 2) solid var(--ink); outline-offset: 0; }
.wl-hit .empty { margin: 12px 0 0; }
.wl-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wl-picks .pill { cursor: pointer; }
.wl-facts { margin-top: 12px; }
.wl-facts .fact { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0 8px; border-bottom: var(--rule-w) solid var(--rule); }
.wl-facts .fact:last-child { border-bottom: 0; }
.wl-facts .fact b { color: var(--ink-3); }
.wl-facts .fact span { color: var(--ink); text-align: right; }
.wl-wards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--rule-w); margin-top: 10px;
  background: var(--rule-2); border: var(--rule-w) solid var(--rule-2);
}
.wl-ward {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px 10px;
  background: var(--paper); border: 0; border-radius: 0; color: var(--ink); cursor: pointer;
}
.wl-ward b { font-family: var(--f-head); font-weight: var(--head-w); font-style: var(--head-style); font-size: calc(28px * var(--head-scale)); line-height: 1; font-variant-numeric: lining-nums; }
.wl-ward small { font: 700 9.5px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.wl-ward.on { background: var(--ink); color: var(--paper); }
.wl-ward.on small { color: var(--paper); opacity: .75; }

/* 2. your sources: checkbox rows on ruled lines */
.wl-rows { border-top: var(--rule-w) solid var(--rule-2); margin-top: 7px; }
.wl-src {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 0;
  border-bottom: var(--rule-w) solid var(--rule); cursor: pointer;
}
.wl-src[hidden] { display: none; }
.wl-src input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.wl-box {
  flex: none; width: 20px; height: 20px; display: grid; place-items: center;
  border: calc(var(--rule-w) * 1.5) solid var(--ink); background: transparent; color: var(--paper);
}
.wl-src input:checked + .wl-box { background: var(--ink); }
.wl-src input:checked + .wl-box::after { content: ""; width: 9px; height: 5px; margin-top: -3px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-45deg); }
.wl-src input:focus-visible + .wl-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.wl-name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--f-head); font-weight: var(--head-w); font-style: var(--head-style); text-transform: var(--head-tt);
  letter-spacing: var(--head-ls); font-size: calc(18px * var(--head-scale)); line-height: 1.2; color: var(--ink);
}
.wl-src input:not(:checked) ~ .wl-name { color: var(--ink-2); }
.wl-dom {
  flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 9.5px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.wl-more {
  display: block; width: 100%; padding: 12px 0 11px; background: none; border: 0; border-bottom: var(--rule-w) solid var(--rule);
  text-align: left; color: var(--accent); cursor: pointer;
  font: 700 10.5px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase;
}

/* the big ruled ink button, held at the foot of the screen */
.wl-next {
  position: sticky; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-top: calc(var(--rule-w) * 3) double var(--rule-2);
}
.wl-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px;
  background: var(--ink); color: var(--paper); border: calc(var(--rule-w) * 1.5) solid var(--ink); border-radius: 0;
  font: 700 12px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase;
}
.wl-btn-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-btn-r { flex: none; }
.wl-btn .wl-n { font-family: var(--f-head); font-weight: var(--head-w); font-style: var(--head-style); font-size: calc(24px * var(--head-scale)); letter-spacing: 0; vertical-align: -2px; font-variant-numeric: tabular-nums lining-nums; }
.wl-btn.off { background: none; color: var(--ink-3); border-color: var(--rule); pointer-events: none; }

/* 3. the press room: progress line, then two columns with dotted leaders */
.wl-prog { position: relative; height: 3px; margin-top: 16px; background: var(--rule); }
.wl-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--accent); transition: width .2s linear; }
.wl-tally {
  display: flex; justify-content: space-between; margin: 7px 0 0; padding-bottom: 8px; border-bottom: var(--rule-w) solid var(--rule-2);
  font: 700 10.5px/1.2 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); font-variant-numeric: tabular-nums;
}
.wl-cols {
  list-style: none; margin: 12px 0 0; padding: 0; columns: 2; column-gap: 26px;
  column-rule: var(--rule-w) solid var(--rule);
}
.wl-cols li {
  break-inside: avoid; display: flex; align-items: baseline; gap: 4px; padding: 5px 0 4px;
  color: var(--ink-3); transition: color .2s;
}
.wl-cols li.on { color: var(--ink); }
.wl-on {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--f-body); font-size: 14px; line-height: 1.3;
}
.wl-dots { flex: 1; min-width: 10px; border-bottom: calc(var(--rule-w) * 1.4) dotted var(--rule); transform: translateY(-3px); }
.wl-cols li.on .wl-dots { border-bottom-color: var(--ink-3); }
.wl-c { flex: none; font: 700 12px/1 var(--f-ui); font-variant-numeric: tabular-nums; color: inherit; }
.wl-cols li.on .wl-c { color: var(--accent); }
.wl-press.done .wl-prog i { background: var(--ink); }
.wl-cols li.on.zero .wl-c { color: var(--ink-3); font-weight: 600; }
