/* Paikkakunta- ja operaattorisivut. Perustyylit tulevat style.css:stä. */

/* ---------- sisältö ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 18px 16px 8px; }
.doc h1 { font: 700 2rem/1.15 "Barlow Semi Condensed", sans-serif; margin: 6px 0 8px; }
.doc h2 { font: 700 1.35rem/1.2 "Barlow Semi Condensed", sans-serif; margin: 0; }
.lead { margin: 0 0 16px; color: var(--muted); max-width: 65ch; }
.muted { color: var(--muted); margin: 4px 0 10px; font-size: .95rem; }
.crumb { margin: 0; font-size: .9rem; color: var(--muted); }
.crumb a { color: var(--muted); }

.filter { display: grid; gap: 4px; max-width: 360px; margin: 0 0 12px; }
.filter input {
  font: inherit; min-height: 44px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
}

.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.letters a {
  min-width: 34px; min-height: 34px; display: grid; place-items: center; border-radius: 6px;
  background: var(--surface); text-decoration: none; font-weight: 600;
}
.letter { margin-bottom: 18px; }
.letter h2 { margin-bottom: 6px; color: var(--muted); }
.letter[hidden], .clist li[hidden] { display: none; }

.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
         grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.clist a {
  display: grid; gap: 2px; padding: 12px 14px; height: 100%; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink);
}
.clist a:hover { border-color: var(--sign); }
.ci-name { font-weight: 600; color: var(--sign); }
.ci-meta { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ci-price { font-size: .88rem; font-weight: 600; color: var(--free); }
.clist.ops { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 14px; width: min(100%, 420px); }
.tabs a {
  display: grid; place-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600;
}
.tabs a[aria-current="page"] { background: var(--sign); border-color: var(--sign); color: var(--sign-ink); }
.op-prices { display: flex; align-items: flex-end; gap: 16px; margin-top: 6px; }
.op-prices span { display: grid; }
.op-prices small { font-size: .78rem; color: var(--muted); }
.op-prices b { font: 700 1.5rem/1 "Barlow Semi Condensed", sans-serif; font-variant-numeric: tabular-nums; }
.op-prices .op-unit { color: var(--muted); font: 400 .88rem "Barlow", sans-serif; padding-bottom: 2px; }
.op-prices.none { color: var(--muted); font-size: .92rem; }
.small { color: var(--muted); font-size: .85rem; margin: 14px 2px 0; max-width: 70ch; }
.cov { justify-self: start; margin-top: 4px; font-size: .78rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.cov.ok { background: color-mix(in srgb, var(--free) 15%, transparent); color: var(--free); }
.cov.part { background: var(--warn-bg); color: var(--warn-ink); }
.cov.none { background: var(--bg); color: var(--muted); }

/* ---------- paikkakunta ---------- */
.hero-mini {
  background: var(--surface); border: 2px solid var(--sign); border-radius: var(--radius-lg);
  padding: 14px 16px; margin: 0 0 22px; display: grid; gap: 2px;
}
.hero-mini p { margin: 0; }
.hm-k { color: var(--sign); font-weight: 600; font-size: .95rem; }
.hm-name { font: 700 1.4rem/1.2 "Barlow Semi Condensed", sans-serif; }
.hm-op { color: var(--muted); }
.hm-price { margin-top: 6px !important; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hm-price b { font: 700 1.8rem/1 "Barlow Semi Condensed", sans-serif; font-variant-numeric: tabular-nums; }

.cat { margin: 0 0 26px; }
.cat > h2 { margin-bottom: 10px; }
.cat-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-sec {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--sign); color: var(--sign); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.btn-sec:hover { background: var(--sign); color: var(--sign-ink); }
.pages .st { cursor: default; }
.pages .st:hover { background: var(--surface); }

/* ---------- operaattori ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 10px 0 18px; }
.facts div { background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.doc > .warn { margin: 0 0 18px; font-size: .92rem; padding: 10px 12px; }

@media (max-width: 520px) {
  .doc { padding: 12px 12px 8px; }
  .doc h1 { font-size: 1.65rem; }
}

/* ---------- päivitysaika ja usein kysyttyä ---------- */
.updated { margin: -2px 0 10px; font-size: .85rem; color: var(--muted); }
.faq { margin: 30px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 70ch; }
.faq h2 { margin-bottom: 6px; }
.faq h3 { font-size: 1.02rem; font-weight: 600; margin: 16px 0 4px; }
.faq p { margin: 0; }

.op-typ { margin-top: 6px; color: var(--muted); font-size: .9rem; }
.op-typ b { font: 700 1.5rem/1 "Barlow Semi Condensed", sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.op-typ small { display: block; font-size: .78rem; margin-top: 2px; }
.tiers { margin: 0 0 22px; }
.tiers h2 { margin-bottom: 8px; }

/* ---------- operaattorin paikkakunnat avattavina ---------- */
.citylist { display: grid; gap: 6px; }
.cityd { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.cityd[hidden] { display: none; }
.cityd summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; justify-content: space-between;
                 gap: 10px; align-items: baseline; min-height: 44px; }
.cityd summary::-webkit-details-marker { display: none; }
.cityd summary::after { content: "+"; color: var(--muted); font-weight: 600; }
.cityd[open] summary::after { content: "–"; }
.stl { list-style: none; margin: 0; padding: 0 14px 6px; }
.stl li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.stl li span { grid-column: 1; color: var(--muted); font-size: .88rem; }
.stl li b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.more-link { display: block; padding: 4px 14px 12px; font-size: .9rem; }

/* ---------- asemasivu ---------- */
.st-sub { margin: -2px 0 6px; color: var(--muted); }
.st-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 22px; }
.st-actions .btn { min-height: 44px; }
.prices, .devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line);
                    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.prices li { background: var(--surface); padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pr-what { display: grid; }
.pr-what span { color: var(--muted); font-size: .88rem; }
.pr-price { text-align: right; display: grid; justify-items: end; }
.pr-price b { font: 700 1.6rem/1 "Barlow Semi Condensed", sans-serif; font-variant-numeric: tabular-nums; }
.pr-price small { color: var(--muted); font-size: .82rem; margin-top: 4px; max-width: 32ch; }
.devices li { background: var(--surface); padding: 10px 14px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.devices li small { color: var(--muted); }
.devices .free { min-width: 120px; }
.cat h2 .free { font: 600 .9rem "Barlow", sans-serif; margin-left: 8px; vertical-align: 3px; }
.good { margin: 0; padding: 12px 14px; background: color-mix(in srgb, var(--free) 12%, var(--surface)); border-radius: 10px; color: var(--ink); }
.list .st h3 a { color: inherit; text-decoration: none; }
.list .st h3 a:hover { text-decoration: underline; }
.hm-name a { color: inherit; text-decoration: none; }
.hm-name a:hover { text-decoration: underline; }
.price .delta { font-size: .82rem; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.price .delta.down { color: var(--free); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  background: var(--sign); color: var(--sign-ink); border-radius: 10px; text-decoration: none; font: 600 1rem "Barlow", sans-serif;
}
.btn:hover { filter: brightness(1.08); }

.unpriced { margin-top: 10px; }
.unpriced summary {
  cursor: pointer; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--sign); font-weight: 600; list-style: none; min-height: 44px;
}
.unpriced summary::-webkit-details-marker { display: none; }
.unpriced summary::before { content: "+ "; }
.unpriced[open] summary { margin-bottom: 8px; }
.unpriced[open] summary::before { content: "– "; }

/* ---------- tietosivut ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin: 22px 0 6px; }
.prose p, .prose ul { margin: 0 0 10px; }
.prose li { margin: 2px 0; }

/* ---------- palaute ---------- */
.fbform { display: grid; gap: 14px; max-width: 560px; background: var(--surface); border: 1px solid var(--line);
          border-radius: var(--radius-lg); padding: 18px; }
.fbform input[type="text"], .fbform input[type="email"], .fbform textarea, .fbform select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; min-height: 44px;
}
.fbform textarea { resize: vertical; min-height: 140px; }
.fbform .btn { justify-self: start; border: 0; cursor: pointer; }
.fbform .btn:disabled { opacity: .6; cursor: default; }
.fbform[hidden], .fbdone[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fberr { margin: 0; color: var(--busy); font-size: .9rem; }
.fberr:empty { display: none; }
.fbdone { max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.fbdone p { margin: 0 0 6px; }
.report { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }

/* Alapalkki aina sivun alalaidassa myös lyhyillä sivuilla */
body.pages { min-height: 100vh; display: flex; flex-direction: column; }
body.pages .doc { flex: 1 0 auto; width: 100%; }

/* ---------- latauksen hinta -sivu ---------- */
.pcards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 4px 0 26px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.pcard h2 { font-size: 1.15rem; margin: 0 0 6px; }
.pc-big { margin: 0 0 10px; color: var(--muted); }
.pc-big b { font: 700 2.4rem/1 "Barlow Semi Condensed", sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.pc-big small { display: block; font-size: .82rem; margin-top: 2px; }
.pcard ul { margin: 0 0 8px; padding-left: 18px; font-size: .93rem; }
.pcard li { margin: 3px 0; }
.pc-n { margin: 0; font-size: .82rem; color: var(--muted); }
.psec { margin: 0 0 28px; }
.psec > h2 { margin-bottom: 6px; }
.psec > p { margin: 0 0 10px; }
.psec h3 { font-size: 1rem; margin: 14px 0 6px; }
.ptable { width: 100%; max-width: 560px; border-collapse: collapse; background: var(--surface);
          border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { padding: 9px 12px; text-align: right; border-top: 1px solid var(--line); }
.ptable thead th { border-top: 0; font-size: .85rem; color: var(--muted); font-weight: 600; }
.ptable th:first-child { text-align: left; }
.ptable tbody th { font-weight: 600; }
.plist { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line);
         border-radius: 10px; max-width: 560px; }
.plist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); }
.plist li:first-child { border-top: 0; }
.plist small { color: var(--muted); }
.plist b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 8px; }
.pcols h3 { margin-top: 0; }
