/* Zoad V4: brand roles are defined in sdeira-tokens.css. */
html[data-brand="zoad"] body :focus-visible {
  outline-color: var(--zoad-focus-on-light);
}
html[data-brand="zoad"] body :is(footer, .cta-band) :focus-visible {
  outline-color: var(--zoad-focus-on-dark);
}
main section:not(.hero) .kicker::before {
  content: none;
}

/* The complete supplied lockup replaces the cropped wordmark in every state. */
#hd,
#hd.scrolled {
  --logo-h: var(--zoad-logo-height);
}
#hd.scrolled .nav::before {
  background: var(--surface-base);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#navLogo,
.logo img,
.menu-logo img {
  height: var(--zoad-logo-height);
  width: auto;
  object-fit: contain;
}
.foot-brand .logo {
  inline-size: var(--zoad-footer-logo-width);
  aspect-ratio: var(--zoad-logo-ratio);
}
.foot-brand .logo img {
  height: 100%;
  width: 100%;
}
footer :is(.foot-col h3, .foot-col h4, .foot-legal-heading) {
  color: var(--zoad-footer-heading);
}
@media (max-width: 980px) {
  #hd,
  #hd.scrolled {
    --logo-h: var(--zoad-logo-height-mobile);
  }
  #navLogo,
  .menu-logo img {
    height: var(--zoad-logo-height-mobile);
  }
}

/* The outline emblem is a quiet section ground; dots belong to corners. */
.pad--sunken::before,
.pad--edge::before,
.pad--field::before {
  background-image: var(--zoad-pattern-outline);
  opacity: var(--zoad-pattern-opacity);
}
.pad--sunken,
.pad--field,
.pad--edge {
  background-color: var(--surface-inverse);
}
.pad--sunken,
.pad--field,
.pad--edge {
  --zoad-card-surface: var(--brand-white);
}
/* A card on the Yeast ground is white. The surface token was set only for the
   dark grounds, so on Yeast a card took the section's own colour and vanished
   (owner, 19 Oct 2026). */
.pad--yeast {
  --zoad-card-surface: var(--brand-white);
}
.pad--inverse {
  --zoad-card-surface: var(--card-dark);
}
html[data-brand="zoad"] main :is(.row-item, .stat-strip, .stat, .icon-item, .news-item, .news-item-body, .project-card-copy, .company-card, .needs-route-copy, .step-list, .faq-item, .logo-tile) {
  background-color: var(--zoad-card-surface);
}
.pad--sunken > .wrap > .sec-head :is(h2, p, .kicker),
.pad--field > .wrap > .sec-head :is(h2, p, .kicker) {
  color: var(--brand-white);
}
/* A split on the dark ground reads white, the same as a section head. */
.pad--sunken .split-copy :is(h2, p, .kicker),
.pad--field .split-copy :is(h2, p, .kicker) {
  color: var(--brand-white);
}

.menu {
  --drawer-corner-art: var(--zoad-pattern-mark);
}
.menu::after {
  aspect-ratio: var(--brand-pattern-ratio);
}

/* Editorial cards inherit the same surface role as the other card families. */
.news-list--cols .news-item,
.news-list--cols .news-item .news-item-body {
  background: var(--zoad-card-surface);
  color: var(--ink);
}
.news-list--cols .news-item .action-link {
  color: var(--accent-strong);
}
.news-list--cols .news-item:is(:hover, :focus-within) .action-link {
  color: var(--link-hover);
}
.news-list--cols .news-item--wipe:is(:hover, :focus-within) .action-link {
  color: var(--brand-white);
}
.news-item--wipe:focus-within .action-link:focus-visible {
  outline-color: var(--zoad-focus-on-dark);
}
/* The photograph mark keeps the field as artwork plus a turn and a fade,
   which this host still states itself. Card marks are not
   here: every card draws its corner mark through the shared card-mark tokens
   (sdeira-tokens.css, Zoad block), and the artwork carries its own turn and
   fade (patterns/zoad-dots-card.svg). */
.split-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  inline-size: var(--zoad-corner-width);
  aspect-ratio: var(--brand-pattern-ratio);
  background: var(--zoad-pattern-dots) no-repeat right bottom / var(--zoad-card-corner-art-size);
  -webkit-mask-image: var(--zoad-card-corner-mask);
  mask-image: var(--zoad-card-corner-mask);
  rotate: var(--zoad-card-corner-rotation);
  transform-origin: center;
  opacity: var(--zoad-corner-opacity);
  pointer-events: none;
}
html[data-brand="zoad"] .ai-message-avatar::before {
  background: var(--brand-zoad-brown);
  -webkit-mask: var(--zoad-assistant-glyph) center / contain no-repeat;
  mask: var(--zoad-assistant-glyph) center / contain no-repeat;
}
html[data-brand="zoad"] .ai-chat-toggle .ai-star-field::before {
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  background: var(--brand-zoad-brown);
  -webkit-mask: var(--zoad-assistant-glyph) center / contain no-repeat;
  mask: var(--zoad-assistant-glyph) center / contain no-repeat;
  opacity: 1;
  transform: none;
}
html[data-brand="zoad"] .ai-chat-toggle:is(:hover, :focus-visible) .ai-star-field::before {
  transform: none;
}

/* Zoad has no grey: its sunken surface is White. A list opening on a White
   ground takes the brand's own wash (Brown at 12%, the tint its cards carry)
   over White, as an opaque fill, so it is a different surface from the one it
   covers. */
html[data-brand="zoad"] :is(.select-menu, .phone-country-menu).select-menu[data-on-white],
html[data-brand="zoad"] .phone-country-menu.phone-country-menu[data-on-white] {
  background: color-mix(in srgb, var(--brand-zoad-brown) 12%, var(--brand-white));
}

/* A FLAT YEAST GROUND FOR A FORM (owner, 19 Oct 2026). The dark ground with the
   outline emblem behind the enquiry form was busy; this is the brand's own
   Yeast (#FAF1EA), flat, with the form's white panel on it and the heading in
   the ordinary dark ink. */
html[data-brand="zoad"] .pad--yeast {
  background-color: var(--brand-zoad-yeast);
}
html[data-brand="zoad"] .pad--yeast .form-block--panel {
  padding: var(--sec-head-gap);
  background: var(--surface-raised);
}

/* EVERY FIELD STANDS OFF THE WHITE PANEL (owner, 19 Oct 2026). On the panel the
   controls were white, or one faint tint, on a white card, so they had no edge
   at all. All of them (text, email, telephone with its country picker, the
   select trigger, the message box) take Yeast with a touch of Blueberry (Zoad's Light
   Gray token resolves to white, so it cannot be used here), one rung below the
   panel, and step darker on hover and focus. */
html[data-brand="zoad"] .form-block--panel .field :is(input:not([type="checkbox"], [type="file"], [type="hidden"]), select, textarea),
html[data-brand="zoad"] .form-block--panel .field :is(.select-toggle, .phone-country-toggle),
html[data-brand="zoad"] .form-block--panel .field input[type="checkbox"] {
  background-color: color-mix(in srgb, var(--brand-zoad-yeast) 90%, var(--brand-zoad-blueberry));
}
html[data-brand="zoad"] .form-block--panel .field :is(input:not([type="checkbox"], [type="file"], [type="hidden"]), select, textarea, .select-toggle, .phone-country-toggle):is(:hover, :focus-visible) {
  background-color: color-mix(in srgb, var(--brand-zoad-yeast) 82%, var(--brand-zoad-blueberry));
}

/* THE CATALOGUE'S SEARCH AND TABS STAND OFF THE WHITE PAGE (owner, 19 Oct 2026).
   Zoad's Light Gray token is white, so the search box and the strip behind the
   category tabs had no edge against the page. They take the same Yeast and
   Blueberry tone as the form fields, and the active tab keeps its own fill. */
html[data-brand="zoad"] .jobs-search input,
html[data-brand="zoad"] .jobs-tabs {
  background-color: color-mix(in srgb, var(--brand-zoad-yeast) 90%, var(--brand-zoad-blueberry));
}

/* A SERVICE CARD ON HOVER READS WHITE ON THE MASONRY OVEN FILL (owner, 19 Oct
   2026). The label, its arrow and its underline fell back to Blueberry on the
   brown wipe, which is unreadable. Everything that carries text on the filled
   card is white while the card is hovered or holds focus. */
html[data-brand="zoad"] .news-item--project:is(:hover, :focus-within) :is(h3, h3 a, .tag, .action-link) {
  color: var(--brand-white);
}
html[data-brand="zoad"] .news-item--project:is(:hover, :focus-within) .action-link {
  border-color: var(--brand-white);
}

/* THE ARROW BESIDE A CARD'S ACTION IS THE SIZE OF ITS LABEL (owner, 19 Oct
   2026): 20px beside 15px text read as oversized. */
html[data-brand="zoad"] .action-link > i.ph {
  font-size: 15px;
  inline-size: 15px;
  block-size: 15px;
}
