/* ==========================================================
   WordPress additions on top of the design stylesheet.
   Only things the static design did not need: nearest-branch
   button, real form states, rich text for news/legal pages,
   pagination and the admin bar.
   ========================================================== */

/* ---------- Branches: city tabs + nearest-branch button ---------- */
.branch-tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-bottom: 24px; }
.branch-tools .city-tabs { margin-bottom: 0; }
.near-btn { min-height: 46px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 15px; gap: 8px; }
.near-btn svg { width: 18px; height: 18px; }
.near-btn.is-busy { opacity: .7; pointer-events: none; }
.branch .branch-hours { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.branch .branch-dist { display: inline-block; font-size: 12px; font-weight: 700; color: var(--orange); margin-inline-start: 6px; }

/* ---------- Forms ---------- */
.sc-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; } /* honeypot, hidden without off-screen offsets (RTL-safe) */
.form-error { display: none; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: #fff3f0; color: #9a2a07; border-inline-start: 3px solid #c7400f; font-weight: 700; }
.form-error.is-visible { display: block; }
form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }
form.is-done .form-grid, form.is-done button[type="submit"], form.is-done .form-note { display: none; }

/* ---------- Rich text (news body, legal pages) ---------- */
.prose { max-width: 820px; margin-inline: auto; font-size: 17px; line-height: 1.9; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin-top: 1.6em; color: var(--ink); }
.prose h3 { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 24px); line-height: 1.35; margin-top: 1.4em; color: var(--ink); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin-block: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding: 12px 18px; border-inline-start: 3px solid var(--orange); background: var(--soft); border-radius: var(--radius-sm); }
.prose .alignleft { float: left; margin: 0 1.4em 1em 0; }
.prose .alignright { float: right; margin: 0 0 1em 1.4em; }
.prose .aligncenter { margin-inline: auto; }
.prose .wp-caption-text { font-size: 14px; color: var(--muted); margin-top: 6px; }
.updated-at { display: block; margin-top: 10px; font-size: 14px; opacity: .85; }

/* Single news page */
.news-single { max-width: 980px; margin-inline: auto; }
.news-single .news-article { cursor: default; }
.news-date { display: inline-block; font-size: 14px; color: var(--muted); margin-inline-start: 10px; }
.news-article h2 a:hover { color: var(--orange); }
.news-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 700; color: var(--orange); }
.news-back svg { width: 18px; height: 18px; transform: scaleX(-1); } /* the sprite arrow points "forward"; back = mirrored */

/* ---------- Pagination ---------- */
.sc-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.sc-pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; }
.sc-pagination .page-numbers.current { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: 40px 20px; }
.not-found .btn { margin-top: 24px; }
