/* WordPress-only rules. Shared design rules live in site.css (synced from the prototype: npm run sync:css). */

/* ---------- WordPress: inquiry form states (rm-inquiry plugin) ---------- */
.rm-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field__error { color: #9E0C11; font-weight: 600; font-size: 1rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent-press); border-width: 2px; }
.rm-inquiry { background: var(--paper); color: var(--ink-on-paper); padding: 36px 32px; }
.rm-inquiry--sent h3 { font: 600 var(--step-statement)/1.2 var(--font-text); }
.rm-inquiry--sent p { margin-top: 12px; }
.rm-inquiry--sent:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
button[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 599px) { .rm-inquiry { padding: 28px 20px; } }

/* ---------- WordPress: header/nav block adjustments ---------- */
.site-header .wp-block-navigation a { color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none; }
.site-header__end { gap: 28px; }
.site-main { padding-top: calc(var(--header-h) + 48px); padding-bottom: var(--section); }
.home .site-main { padding-top: 0; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--bg) !important; color: var(--ink) !important; }

/* ---------- WordPress: inner pages ---------- */
.site-main .page-title { font-size: var(--step-h2); margin-bottom: 32px; max-width: 18ch; }
.site-main .lede { font-size: var(--step-statement); line-height: 1.3; margin-bottom: 8px; }
.site-main h2.wp-block-heading { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: 56px; }
.site-main p + p { margin-top: 16px; }
.site-main ul.wp-block-list { margin: 16px 0 0; padding-left: 1.2em; list-style: disc; display: grid; gap: 6px; }
.site-main .wp-block-buttons { margin-top: 48px; gap: 16px; }
.site-main .rm-inquiry { margin-top: 32px; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); } /* taste-skill-ignore: outline button */

/* ---------- WordPress: layout fixes after first render review ---------- */
.site-header__end { margin-left: auto; align-items: center; }
.site-header .wp-block-button__link { min-height: 44px; padding: 12px 16px; font-size: 1rem; white-space: nowrap; display: inline-flex; align-items: center; }
.site-main h1.wp-block-post-title { font-size: var(--step-h2); line-height: 1; text-align: left; max-width: 760px; margin: 0 auto 32px; }
.site-main h2.wp-block-heading + p { margin-top: 12px; }
.site-main ul.wp-block-list + p { margin-top: 20px; }
@media (max-width: 599px) {
  .site-header__end { gap: 12px; }
  .site-header .wp-block-button__link { padding: 10px 14px; font-size: .9375rem; }
}
header.site-header { justify-content: space-between; }

/* ---------- WordPress: inner pages only (not the homepage) ---------- */
body:not(.home) .site-main > * { max-width: 760px; }

/* ---------- WordPress: homepage built from blocks (mirrors the approved prototype) ---------- */
.home .site-main { padding: 0; }
.home .entry-content > *,
.home :is(.hero, .intro, .stages, .stage, .process, .faq, .request) > * { margin-block: 0; }
.home figure.wp-block-image { margin: 0; }
.home :is(.hero__media, .stage__media) img { height: 100%; max-width: none; }
.home .intro__figure img { width: 100%; height: auto; }

.hero__actions { gap: 16px 28px; }
.link--light a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; display: inline-flex; min-height: 44px; align-items: center; }
.link--light a:hover { text-decoration-color: var(--accent); }

.intro__figure.is-concept > figcaption { right: 8px; bottom: 8px; }
.stage__media--prep { --focus: 32% 64%; }
@media (min-width: 768px) { .stage__media--prep { --focus: 50% 36%; } }
.stage__media--road { --focus: 74% 70%; }
.stage__media--arrival { --focus: 70% 55%; }

.process__list > .process__step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
.process__list > .process__step::before {
  content: ""; grid-row: 1 / span 2; width: 56px; height: 24px; margin-top: 6px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 24'%3E%3Cpath d='M0 14h18l4-10 6 18 5-20 5 12h18' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 24'%3E%3Cpath d='M0 14h18l4-10 6 18 5-20 5 12h18' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.process__step > * { margin: 0; }
.process__step > p { margin-top: 8px; }

.faq__list .wp-block-details > p { margin-top: 10px; }

.request > .rm-inquiry { grid-column: 7 / 13; align-self: start; margin: 0; }
@media (max-width: 959px) { .request > .rm-inquiry { grid-column: 1; margin-top: 32px; } }
@media (max-width: 599px) {
  .process__list > .process__step { grid-template-columns: 40px 1fr; column-gap: 14px; }
  .process__list > .process__step::before { width: 40px; }
}
.home .entry-content > * { max-width: none; margin-inline: 0; }
.hero__actions > * { margin: 0; }
@media (max-width: 959px) { .home .hero--split .hero__media { margin-top: var(--header-h); } }
.hero__actions { align-items: center; }
@media (max-width: 959px) { .home .faq > .faq__list { margin-top: 48px; } }

/* ---------- Inner pages: dominant title, concept image, readable measure (Taste + Impeccable review) ---------- */
.page-figure.is-concept, .intro__figure.is-concept { position: relative; }
body:not(.home) .site-main h1.wp-block-post-title { font-size: clamp(2.6rem, 5.5vw, 4.75rem); line-height: .95; letter-spacing: -0.03em; }
body:not(.home) .site-main p { max-width: 65ch; }
.page-figure { margin: 40px 0 8px; }
.page-figure img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.page-figure.is-concept > figcaption { top: 12px; bottom: auto; right: 12px; }
.wp-block-button.is-style-outline .wp-block-button__link { box-shadow: none; border: 2px solid var(--ink); padding: 17px 22px; }
.page-figure--kit img { object-position: 40% 62%; }
.page-figure--vehicle img { object-position: 62% 58%; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; } /* taste-skill-ignore: drawn chevron */
.legal-draft { padding: 16px 20px; background: var(--surface); outline: 2px dashed #6B6760; outline-offset: -2px; }
.home .response > * { margin-block-start: 0; } .home .response > .response__lede { margin-top: 20px; } .home .response > .response__steps { margin-top: 56px; } .home .response > .response__limits { margin-top: 56px; } .response__step > * { margin: 0; } .response__step > p { margin-top: 10px; }

/* ---------- Claims gating ---------- */
.stage__text:empty, .site-main p:empty { display: none; }
.rm-pending--inline { outline: none; display: inline; }
.rm-pending--inline .rm-pending__tag { margin: 0 4px 0 0; }
/* Intro without an illustration: statement and note share one reading column */
.home .intro:not(:has(figure)) .intro__statement { grid-column: 2 / 11; text-indent: 0; }
.home .intro:not(:has(figure)) .intro__note { grid-column: 2 / 8; grid-row: 2; margin-top: 32px; align-self: start; }
@media (max-width: 959px) { .home .intro:not(:has(figure)) .intro__statement, .home .intro:not(:has(figure)) .intro__note { grid-column: 1 / -1; } }
.hero--split .hero__media--convoy img { object-position: 80% 62%; }
@media (max-width: 959px) { .hero--split .hero__media--convoy img { object-position: 78% 60%; } }

/* Signed-in view only: keep the fixed header below the WordPress toolbar (32px desktop, 46px at ≤782px) so the logo
   and menu stay visible while reviewing. Visitors never see the toolbar. */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

/* Owner decision (15 Oct 2026): no image labels on the site. Hides captions left in content created before that. */
.is-concept > figcaption { display: none; }

/* Owner decision (15 Oct 2026): hero shows only the Request Event Support button. Hides the secondary link in content
   created before that. */
.hero__actions .link--light { display: none; }

/* Portrait photo in a stage panel (class added in functions.php): on wide screens use a split layout. The photo fills
   the right half at full height, so it is neither cropped hard nor letterboxed; title and line sit on the left half.
   Phones keep the full-bleed layout. */
@media (min-width: 768px) {
  .stage__media.is-portrait { left: 50%; width: 50%; }
  .stage__media.is-portrait img { object-position: 50% 55%; }
  .stage:has(.is-portrait) { background: var(--bg); }
  .stage:has(.is-portrait)::after { left: 50%; background: linear-gradient(to right, rgb(11 11 12 / .55), transparent 30%); }
  .stage:has(.is-portrait) .stage__verb { right: 50%; place-items: center start; padding-left: var(--margin); }
  .stage:has(.is-portrait) .stage__verb h3 { text-align: left; font-size: clamp(2.6rem, 5.6vw, 6.5rem); padding: 0; }
  .stage:has(.is-portrait) .stage__text { max-width: min(30ch, calc(50% - 2 * var(--margin))); }
}

/* ---------- Guides ---------- */
body:not(.home) .site-main .guide-crumb + h1.wp-block-post-title { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.05; max-width: 22ch; }
.guide-crumb { margin-bottom: 12px; font-size: var(--step-small); letter-spacing: .08em; text-transform: uppercase; }
.guide-crumb a { color: var(--muted); text-decoration: none; }
.guide-crumb a:hover { color: var(--ink); }
.guide-intro { color: var(--muted); font-size: 1.2rem; }
.guide-answer { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; font-size: 1.2rem; line-height: 1.5; }
.guide-cta { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgb(244 242 238 / .12); }
.guide-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.guide-card__link { display: grid; gap: 8px; padding: 28px; background: var(--surface); border: 1px solid rgb(244 242 238 / .1); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.guide-card__link:hover, .guide-card__link:focus-visible { border-color: var(--accent); }
.guide-card__title { font-family: var(--font-display); font-style: italic; font-weight: 800; font-variation-settings: "wdth" 112; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.15; }
.guide-card__text { color: var(--muted); }
.guide-card__more { color: var(--accent); font-weight: 600; font-size: var(--step-small); margin-top: 4px; }

.footer__legal-links { white-space: nowrap; margin-left: 8px; }
.footer__legal-links a { color: var(--muted); }
.footer__legal-links a:hover { color: var(--ink); }
