/* =========================================================
   Zone Recovery: WordPress / GeneratePress compatibility
   site.css is the design (ported from the HTML site). This file only fixes places
   where GeneratePress or WordPress core styles clash with it.
   ========================================================= */

/* ---------- WordPress admin bar (logged-in users) ----------
   --adminbar pushes the sticky header, pinned sections and anchor jumps below it. */
.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --adminbar: 46px; } }
/* On small phones the admin bar scrolls away with the page, so nothing needs offsetting. */
@media (max-width: 600px) { .admin-bar { --adminbar: 0px; } }

/* ---------- GeneratePress resets ---------- */
/* GeneratePress gives every <button> a grey background and white text on hover/focus.
   Reset that for the design's buttons, then restore each one's own hover look. */
.zr .burger:hover, .zr .burger:focus,
.zr .chip:hover, .zr .chip:focus,
.zr .faq__q:hover, .zr .faq__q:focus { background: none; color: inherit; }
.zr .faq__q:hover { color: var(--tan-dark); }
.zr .chip[aria-pressed="true"],
.zr .chip[aria-pressed="true"]:hover,
.zr .chip[aria-pressed="true"]:focus { background: var(--ink); color: #fff; }
.zr .to-top, .zr .to-top:focus { background: var(--ink); color: #fff; }
.zr .to-top:hover { background: var(--tan-dark); color: #fff; }

/* GeneratePress's link hover colour (--contrast) only matters where a link has no hover
   colour of its own; these keep the design's light-on-dark links readable. */
.zr .cta-band .btn--white:hover,
.zr .plan--featured .btn--white:hover,
.zr .feature--cta .btn--white:hover { color: var(--ink); }

/* GeneratePress body font & size; the design's are in site.css but GP's dynamic CSS may load later. */
body.zr { font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
.zr h1, .zr h2, .zr h3, .zr h4 { font-family: var(--head); font-weight: 800; color: inherit; }

/* Zone template pages: no GeneratePress container/padding around the design's sections. */
/* overflow-x: clip is a safety net so nothing sliding in from the side can make the page
   wider than a phone screen. "clip" (not "hidden") keeps position: sticky working. */
.zr-site { max-width: none; padding: 0; margin: 0; background: transparent; overflow-x: clip; }
.zr-site-content { display: block; padding: 0; }
.zr-main { display: block; }

/* GeneratePress's footer wrapper (our footer sits inside it). */
.zr .site-footer { background: none; padding: 0; }

/* The footer headings are <h2> for accessibility but keep the small label look. */
.zr .footer__title { font-size: 0.78rem; letter-spacing: 0.14em; line-height: 1.4; font-stretch: 100%; }
.zr .toc__title { font-size: 0.78rem; letter-spacing: 0.14em; line-height: 1.4; font-stretch: 100%; }

/* ---------- Normal WordPress content (blog posts, ordinary pages, extra editor content) ----------
   site.css removes list bullets and margins everywhere; bring them back inside written content. */
.zr .entry-content,
.zr .zr-prose,
.zr .comment-content { font-size: 1.02rem; line-height: 1.7; }
.zr .entry-content p,
.zr .zr-prose p,
.zr .comment-content p { margin: 0 0 1.2em; }
.zr .entry-content ul, .zr .zr-prose ul,
.zr .entry-content ol, .zr .zr-prose ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.zr .entry-content ul, .zr .zr-prose ul { list-style: disc; }
.zr .entry-content ol, .zr .zr-prose ol { list-style: decimal; }
.zr .entry-content li, .zr .zr-prose li { margin-bottom: 0.35em; }
.zr .entry-content h2, .zr .zr-prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.4em 0 0.5em; }
.zr .entry-content h3, .zr .zr-prose h3 { margin: 1.3em 0 0.45em; }
.zr .entry-content a, .zr .zr-prose a { text-decoration: underline; text-decoration-color: var(--tan); text-underline-offset: 3px; }
.zr .entry-content a:hover, .zr .zr-prose a:hover { color: var(--tan-dark); }
.zr .entry-content img, .zr .zr-prose img { height: auto; border-radius: var(--radius); }
.zr .entry-content blockquote, .zr .zr-prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--tan); color: var(--grey); }
.zr .zr-prose > :first-child { margin-top: 0; }

/* Blog & ordinary pages keep GeneratePress's layout; give them some breathing room under the header. */
.zr:not(.zr-template) .site-content { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 48px); }
.zr:not(.zr-template) .entry-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }

/* Forms from plugins (contact form shortcode, comments). */
.zr .contact-form input[type="text"],
.zr .contact-form input[type="email"],
.zr .contact-form input[type="tel"],
.zr .contact-form textarea,
.zr .contact-form select { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; background: var(--white); }
.zr .contact-form input[type="submit"],
.zr .contact-form button[type="submit"] { background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 26px; font-weight: 600; }
.zr .contact-form input[type="submit"]:hover,
.zr .contact-form button[type="submit"]:hover { background: var(--tan); color: var(--ink); }

/* Screen-reader-only text (used by WordPress and plugins). */
.zr .screen-reader-text:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
