/* readable.css: readable layout for town pages listed in src/readable.mjs (owner approved 14 Nov 2026).
   Loaded only by those pages. Same brand tokens as site.css. */

/* 1 · comfortable reading width and rhythm */
.rd p, .rd li span { max-width: 68ch; }
.rd .sec { padding: clamp(44px, 6vw, 88px) 0; }
.rd .rd-sub { color: var(--mute); font-size: 17px; margin: 10px 0 0; max-width: 60ch; }
.rd h2.h2 { font-size: clamp(28px, 6.6vw, 46px); line-height: 1.05; }

/* 2 · short hero lead + direct contact buttons (call / WhatsApp) */
.rd .phero .lead.rd-short { font-size: clamp(18px, 4.6vw, 21px); line-height: 1.5; max-width: 40ch; }
.rd-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rd-act .btn { margin: 0; }
.rd-act .btn svg { width: 20px; height: 20px; flex: none; }
.btn.rd-wa { background: #fff; color: #111; }
.btn.rd-call { background: var(--yellow); color: #111; }
.rd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.rd-badges li { font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; padding: 6px 10px; background: rgba(255,255,255,.12); color: #fff; border-left: 3px solid var(--yellow); }

/* 3 · "Read more": full text stays in the page, closed by default */
details.rd-more { margin-top: 14px; border-top: 2px solid var(--line); }
details.rd-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-family: var(--display); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; color: var(--ink); }
details.rd-more > summary::-webkit-details-marker { display: none; }
details.rd-more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--yellow); color: #111; font-size: 20px; line-height: 1; }
details.rd-more[open] > summary::before { content: "–"; }
details.rd-more > div { padding: 4px 0 8px; }
details.rd-more > div p { font-size: 16px; color: #2b3238; }
.phero details.rd-more { border-color: rgba(255,255,255,.25); }
.phero details.rd-more > summary { color: #fff; }
.phero details.rd-more > div p { color: #dfe4e8; }

/* 4 · answer-first box */
.rd .quick-answer .qa p.rd-qa { font-size: clamp(18px, 4.4vw, 20px); line-height: 1.5; font-weight: 600; }

/* 5 · "pick your business" table → stacked cards on a phone */
@media (max-width: 760px) {
  .rd table.rd-stack thead { display: none; }
  .rd table.rd-stack, .rd table.rd-stack tbody, .rd table.rd-stack tr, .rd table.rd-stack th, .rd table.rd-stack td { display: block; width: 100%; }
  .rd table.rd-stack tr { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--yellow); margin: 0 0 12px; padding: 12px 14px; }
  .rd table.rd-stack th[scope=row] { font-size: 17px; padding: 0 0 6px; border: 0; background: none; }
  .rd table.rd-stack td { border: 0; padding: 2px 0; font-size: 15px; display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
  .rd table.rd-stack td::before { content: attr(data-l); font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--mute); }
  .rd .tbl-wrap:has(.rd-stack) { overflow: visible; border: 0; background: none; }
}

/* 6 · icon cards (one idea each, 1–2 lines) */
.rd-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 22px; }
.rd-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--yellow); padding: 18px 18px 16px; }
.rd-card .ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--steel); color: var(--yellow); margin-bottom: 10px; }
.rd-card .ic svg { width: 26px; height: 26px; }
.rd-card h3 { font-size: 22px; line-height: 1.1; }
.rd-card p { margin: 8px 0 0; font-size: 16px; color: #3a434b; }
.rd-card .spec-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
.rd-card .spec-line li { font-family: var(--mono); font-size: 13px; background: var(--paper); border: 1px solid var(--line); padding: 3px 7px; }
.sec.steel .rd-card, .rd-dark .rd-card { background: var(--steel-2); border-color: var(--steel-3); color: #fff; }

/* 7 · chips: long comma lists become tags */
.rd-chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rd-chips li { background: #fff; border: 1px solid var(--line); padding: 7px 11px; font-size: 15px; line-height: 1.3; }
.rd-chips li b { font-weight: 700; }

/* 8 · fact rows (icon + 2 lines) */
.rd-facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.rd-facts li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); padding: 14px; }
.rd-facts .ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--yellow); color: #111; }
.rd-facts .ic svg { width: 24px; height: 24px; }
.rd-facts b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 19px; letter-spacing: .02em; line-height: 1.15; }
.rd-facts span { display: block; font-size: 16px; color: #3a434b; margin-top: 4px; }

/* 9 · numbered steps */
.rd-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; counter-reset: s; }
.rd-steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 0 0 18px; position: relative; }
.rd-steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 22px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--steel); color: var(--yellow); position: relative; z-index: 1; }
.rd-steps li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 3px; background: var(--hazard); }
.rd-steps b { font-family: var(--display); text-transform: uppercase; font-size: 20px; display: block; line-height: 1.2; padding-top: 4px; }
.rd-steps span { display: block; font-size: 16px; color: #3a434b; margin-top: 4px; }
@media (min-width: 960px) { .rd-steps { grid-template-columns: repeat(3, 1fr); gap: 0 28px; } .rd-steps li::after { display: none; } }

/* 12 · bigger tap targets in long lists */
.rd .side-list a, .rd .rd-links a { display: flex; align-items: center; min-height: 44px; }
.rd-links { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rd-links a { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--yellow); padding: 10px 14px; text-decoration: none; font-weight: 700; gap: 10px; justify-content: space-between; }
.rd-links a::after { content: "→"; font-weight: 800; }

/* 13 · small cards two-up on a phone instead of four tall blocks */
@media (max-width: 760px) { .rd .grid.g4 { grid-template-columns: 1fr 1fr; } .rd .grid.g4 h3 { font-size: 20px !important; } .rd-chips li { font-size: 14px; padding: 6px 9px; } }

/* 14 · quick-answer box holds a table + "read more" in the samples, so stack it on every screen size */
.rd .quick-answer .qa:has(.tbl-wrap, details) { display: block; }
.rd .quick-answer .qa:has(.tbl-wrap, details) .qa-k { display: inline-block; margin-bottom: 12px; }
