/*
  Relocate+ theme: base layer.
  The design system (colours, type, every page section, header and footer) lives in
  Appearance > Editor > Styles > Additional CSS. This file only sets up the page frame,
  plus the text-page and 404 layouts that ship with the theme.
*/

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
:where(img, video) { max-width: 100%; height: auto; }

/* Root-level blocks (header, main, footer) stack with no gaps. */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
.rl-main { margin: 0; }

/*
  Page content. Each Custom HTML block sits in its own .rl-block wrapper and the
  wrappers stack with no gaps, the way Elementor's container and HTML widgets did.
  .rl-html marks areas whose HTML the site stylesheet resets (headings, links, spacing).
*/
.rl-content { display: flex; flex-direction: column; }
.rl-content > * { margin-block: 0; }
.rl-block { position: relative; width: 100%; max-width: 100%; min-width: 0; }
.rl-site-header, .rl-site-footer { display: block; }

/*
  A few defaults the old theme (Astra) gave these pages, kept so every page looks
  exactly as before. Zero specificity, so the site stylesheet overrides them.
*/
:where(blockquote) { font-style: italic; }
:where(hr) { background-color: #ccc; }
:where(img) { vertical-align: middle; }
:where(a) { transition: all .2s linear; }

/* Text pages (the "Text page" template, e.g. the privacy policy) */
.rl-text-page { padding: clamp(48px, 6vw, 96px) var(--gutter, 24px) clamp(64px, 7vw, 110px); }
.rl-text-inner { max-width: 760px; margin-inline: auto; }
.rl-text-title { font-family: var(--display, sans-serif); font-weight: 800; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -1.4px; color: var(--true-black, #000); margin: 0 0 32px; }
/* When the page content starts with its own H1 (the privacy policy does), that H1 is the title. */
.rl-text-inner:has(> .rl-text-body > h1:first-child, > .rl-text-body > :first-child > h1:first-child) > .rl-text-title { display: none; }
.rl-text-body h1 { font-family: var(--display, sans-serif); font-weight: 800; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -1.4px; color: var(--true-black, #000); margin: 0 0 16px; }
.rl-text-body { font-family: var(--body, sans-serif); font-size: 17px; line-height: 1.7; color: var(--s-text-base, #303030); }
.rl-text-body > * { margin: 0 0 20px; }
.rl-text-body > *:last-child { margin-bottom: 0; }
.rl-text-body h2 { font-family: var(--display, sans-serif); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.4px; color: var(--true-black, #000); margin: 40px 0 14px; }
.rl-text-body h3 { font-family: var(--display, sans-serif); font-weight: 700; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.25; color: var(--true-black, #000); margin: 30px 0 10px; }
.rl-text-body strong { color: var(--true-black, #000); font-weight: 600; }
.rl-text-body a { color: var(--accent, #046BD2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rl-text-body ul, .rl-text-body ol { padding-left: 1.3em; }
.rl-text-body li + li { margin-top: 6px; }

/* 404 */
.rl-notfound-band { background: var(--mellow, #FFFDED); padding: clamp(64px, 9vw, 140px) var(--gutter, 24px); }
.rl-notfound-inner { max-width: 1180px; margin-inline: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.rl-notfound-code { font-family: var(--body, sans-serif); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--off-black, #4B5563); margin: 0; }
.rl-notfound-title { font-family: var(--display, sans-serif); font-weight: 800; font-size: clamp(40px, 5.1vw, 72px); line-height: 1.05; letter-spacing: -2px; color: var(--true-black, #000); margin: 0; }
.rl-notfound-lead { font-family: var(--body, sans-serif); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--off-black, #4B5563); margin: 0 0 12px; }

/* Fallback header and footer, only used if the template parts are ever deleted */
.rl-fallback-header, .rl-fallback-footer { padding: 20px var(--gutter, 24px); font-family: var(--body, sans-serif); }
.rl-fallback-header a { font-family: var(--display, sans-serif); font-weight: 800; font-size: 24px; color: #000; text-decoration: none; }

/* Preview banner (administrators only, while previewing the theme) */
.rl-preview-badge { position: fixed; z-index: 99999; left: 16px; bottom: 16px; background: #000; color: #fff; font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; padding: 10px 14px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.rl-preview-badge a { color: #8FD3FF; text-decoration: underline; }
