/*
 * Webtron Auction Site — global stylesheet.
 *
 * theme.json drives the visual system. This file is a thin layer for things
 * that can't yet be expressed in theme.json: focus styles, screen-reader text,
 * a few small element resets.
 */

:root {
  color-scheme: light;
}

*:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* The default outline is navy, invisible against the header's navy background
 * and the footer's dark photo — swap it for white in both. */
.site-header *:focus-visible,
.site-footer *:focus-visible {
  outline-color: #fff;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* The page background and body text colour come from theme.json; leave them
 * there rather than setting them on body here. */

.is-menu-open {
  background-color: var(--wp--preset--color--secondary);
  padding: 1rem;
}

.woa-container {
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  .woa-container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .woa-container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .woa-container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .woa-container {
    max-width: 1288px;
  }
}

.cover-img figure {
  height: 100%;
}
.cover-img img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

/*
 * Inherited from the upstream theme, which forced every button white on hover
 * with !important. That overrode theme.json's own :hover (accent) and made any
 * button with white text unreadable — the outline "How to Bid" button in the
 * hero went white-on-white — while also making button colour unsettable in the
 * editor, since !important beats the block's own inline styles.
 *
 * theme.json owns the hover colour now. Only the transition is kept.
 */
.wp-element-button {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

/*
 * Outline buttons fill navy on hover, with white text. theme.json sets the
 * same :hover on the variation; this repeats it for buttons an editor has
 * given a palette text colour.
 *
 * The !important on `color` is not decoration — WordPress emits its colour
 * classes (.has-primary-color and friends) with !important, so without it the
 * label keeps its resting colour and disappears against the navy fill.
 */
.wp-block-button.is-style-outline > .wp-element-button:hover {
  background-color: var(--wp--preset--color--navy);
  border-color: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--white) !important;
}

@media (prefers-reduced-motion: reduce) {
  .wp-element-button {
    transition: none;
  }
}

/* The Past Auctions band has a heading of its own; hide the whole band when
 * the block rendered no tiles, or the heading sits above nothing. */
.ml-past-auctions:not(:has(.webtron-auction-tile)) {
  display: none;
}

/* --- Page section stacks -------------------------------------------------
 *
 * The theme's global blockGap puts a 16px top margin on every block after the
 * first, which is right inside content and wrong for the page's structural
 * bands: each of those carries its own vertical padding, so the extra margin
 * reads as a stray white seam — most visibly where two coloured bands meet.
 *
 * Two levels need it:
 *
 *   .wp-site-blocks > *   header / main / footer. Note that <main> is also
 *                         #wp--skip-link--target, and it sits inside this
 *                         wrapper rather than being a child of <body> — so a
 *                         rule targeting main's children does not reach main
 *                         itself, and the gap under the header survives.
 *
 *   .home main > *        the front page's own band stack (hero, auction dates,
 *                         portal, bidder guide, newsletter).
 *
 * blockGap keeps working normally inside post content everywhere else.
 */
.wp-site-blocks > * {
  margin-block-start: 0;
}

/* Short pages: keep the footer on the bottom of the viewport instead of
 * floating mid-screen over blank page background. */
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}

.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group:has(> main),
.wp-site-blocks > main.wp-block-group {
  flex: 1 0 auto;
}

.home main.wp-block-group > * {
  margin-block-start: 0;
}

/* Header row: logo left, member login right, and the menu takes the space
 * between them so it sits centred regardless of the two ends' widths. */
.site-header__row > .wp-block-navigation {
  flex: 1 1 0;
}
.site-header__row > .wp-block-site-logo {
  flex: 0 0 auto;
}

/*
 * Sticky header with a scrim that extrudes below it, over the hero.
 *
 * The header bar itself is solid navy. The ::after pseudo-element hangs off
 * its bottom edge — outside the header's own box — fading navy to transparent
 * so the bar dissolves into the hero image rather than ending on a hard line.
 * theme.js adds .is-scrolled once the page scrolls past the header, fading the
 * scrim out: over arbitrary page content a translucent overhang muddies
 * whatever is beneath it, so only the crisp bar should remain.
 *
 * position: sticky is on the wp-block-template-part WRAPPER, not .site-header
 * itself. .site-header's immediate parent (that wrapper) is exactly its own
 * height — it contains nothing else — so a sticky element has no room to
 * travel inside its own parent's box before the parent scrolls out of view,
 * and it never appears to stick. :has() scopes this to the header part only;
 * the footer part uses the same wrapper class.
 */
.wp-block-template-part:has(.site-header) {
  position: sticky;
  top: 0;
  z-index: 999;
}

/*
 * The scrim sits below the header, not behind it: top:100% places it past the
 * header's bottom edge, and it must not intercept clicks on the hero content
 * it overhangs. It cannot be clipped by the sticky wrapper's own box, so the
 * wrapper must not gain overflow:hidden.
 *
 * The stops are the `primary` preset (#131B4D) written out as rgba rather than
 * var() + relative colour syntax: a gradient needs the colour at varying alpha,
 * and rgb(from var(--...) ...) is unsupported in older browsers, where the
 * whole declaration is dropped and the scrim vanishes. Keep in sync with
 * theme.json's primary colour.
 */
/*.site-header::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 90px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(19, 27, 77, 1) 0%,
    rgba(19, 27, 77, 0.55) 45%,
    rgba(19, 27, 77, 0) 100%
  );
  opacity: 1;
  transition: opacity 0.3s ease;
}

.site-header.is-scrolled::after {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .site-header::after {
    transition: none;
  }
}*/

/*
 * Transitions written into a block's own Custom CSS (Advanced -> Custom CSS)
 * honour prefers-reduced-motion.
 *
 * Core compiles per-block Custom CSS to a scoped .wp-custom-css-<hash> rule,
 * and its parser treats a nested @media as a SELECTOR, emitting
 * `.wp-block-x@media (...)` — so a transition there cannot carry its own
 * media query. The guard has to live here, where an at-rule is just an
 * at-rule. It also still covers any content saved by the retired
 * Interaction States panel.
 */
@media (prefers-reduced-motion: reduce) {
  .has-custom-css {
    transition: none !important;
  }
}

/* --- Header treatments (opt-in via Advanced -> Additional CSS class) ------
 *
 * Both are ports of the effects on rma.com.au, measured from the live site
 * rather than guessed.
 */

/*
 * .ml-header-wedge - the angled navy panel behind the logo.
 *
 * The shape is NOT a triangle drawn on the header. It is the page background
 * colour, skewed 45deg and laid over a navy header, so the navy that remains
 * visible reads as a wedge with a diagonal right edge. Drawing it this way
 * (rather than a clip-path on the header) keeps the header a plain rectangle,
 * so sticky positioning and box-shadows still behave.
 *
 * --ml-wedge-width sets where the diagonal crosses; override per site.
 */
.ml-header-wedge {
  position: relative;
  background-color: var(--wp--preset--color--primary);
}

.ml-header-wedge > * {
  position: relative;
  z-index: 1;
}

.ml-header-wedge::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ml-wedge-width, 310px);
  width: 100vw;
  background-color: var(--wp--preset--color--base);
  transform: skewX(45deg);
  transform-origin: top left;
  z-index: 0;
  pointer-events: none;
}

/* Below the nav's breakpoint the menu stacks and the diagonal would cut
 * through it, which is why the original hides it on small screens too. */
@media (max-width: 991px) {
  .ml-header-wedge::before {
    display: none;
  }
}

/*
 * .ml-nav-underline - the gradient underline under the current page's link.
 *
 * Applied to a Navigation block; it targets the descendant items rather than
 * the block itself. The bar fades out at both ends (white -> lime -> white),
 * which is what stops it reading as a plain border-bottom.
 *
 * scaleX is animated instead of width so the transition runs on the compositor
 * and cannot reflow the nav.
 */
.ml-nav-underline .wp-block-navigation-item__content {
  position: relative;
}

.ml-nav-underline .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35em;
  left: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--wp--preset--color--accent),
    transparent
  );
  transform: scaleX(0);
  transition: transform var(--wp--custom--transition--medium, 240ms ease);
  pointer-events: none;
}

.ml-nav-underline .current-menu-item > .wp-block-navigation-item__content::after,
.ml-nav-underline .wp-block-navigation-item__content:hover::after,
.ml-nav-underline .wp-block-navigation-item__content:focus-visible::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .ml-nav-underline .wp-block-navigation-item__content::after {
    transition: none;
  }
}

/* ==========================================================================
 * RMA design layer
 *
 * Ports of the rma.com.au main site and the RMA Digital Stylescape. Only what
 * theme.json cannot express lives here: the asymmetric corner, the footer
 * shape, masks for decorative icons, and the scroll reveal. Radii come from
 * theme.json's settings.custom.radius so there is one set of numbers.
 * ========================================================================== */

:root {
  --rma-icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/%3E%3C/svg%3E");
  --rma-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
  --rma-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --rma-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* Icons from the theme sprite (webtron_icon()) carry no fill of their own; an
 * SVG defaults to black, so hand them the text colour. */
.webtron-icon {
  fill: currentColor;
  flex-shrink: 0;
}

/* --- Header -------------------------------------------------------------- */

.site-header__row {
  gap: var(--wp--preset--spacing--40);
}

.site-header__logo {
  margin: 0;
  flex: 0 0 auto;
}

.site-header__logo img {
  display: block;
  height: auto;
}

/* Lime on the chrome navy is 9.55:1. Scoped to the header: lime on a light
 * background would fail contrast. */
.site-header .wp-block-navigation-item__content {
  transition: color var(--wp--custom--transition--fast, 120ms ease);
}

.site-header .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--accent);
}

/* Member login — the main site's lime outline button with a user glyph. */
.rma-login-button > .wp-element-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.5625rem 0.6875rem 1rem;
  border: 2px solid var(--wp--preset--color--accent);
  border-radius: 10px;
  background-color: transparent;
  color: var(--wp--preset--color--white);
  font-size: 1.0625rem;
  font-weight: 400;
  white-space: nowrap;
}

.rma-login-button > .wp-element-button::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--wp--preset--color--accent);
  -webkit-mask: var(--rma-icon-user) center / contain no-repeat;
  mask: var(--rma-icon-user) center / contain no-repeat;
}

/* Navy on lime is 8.91:1. */
.rma-login-button > .wp-element-button:hover {
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary);
}

.rma-login-button > .wp-element-button:hover::before {
  background-color: var(--wp--preset--color--primary);
}

@media (max-width: 600px) {
  .site-header__logo img {
    width: 140px !important;
  }

  .rma-login-button > .wp-element-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .rma-login-button > .wp-element-button::before {
    display: none;
  }
}

/* --- Portal page ---------------------------------------------------------- */

/* The main site closes its headline with a lime full stop. Decorative, so the
 * lime-on-white contrast does not apply to it. */
.rma-portal-page__title::after {
  content: ".";
  color: var(--wp--preset--color--highlight);
}

/* --- Cards, pills, chips -------------------------------------------------- */

/*
 * The asymmetric corner. One heavy curve on the bottom-right, the other three
 * small — written out as four values because the three-value shorthand
 * (8px 8px 24px) is easy to misread as bottom-left.
 */
.rma-card {
  background-color: var(--wp--preset--color--white);
  border-radius: var(--wp--custom--radius--sm) var(--wp--custom--radius--sm) var(--wp--custom--radius--card) var(--wp--custom--radius--sm);
  padding: 2.25rem 1.5625rem 1.1875rem;
}

.rma-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--wp--custom--radius--pill);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}

.rma-pill--lime {
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary);
}

.rma-pill--stone {
  background-color: var(--wp--preset--color--neutral-light);
  color: var(--wp--preset--color--primary);
}

.rma-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--wp--custom--radius--chip);
  background-color: var(--wp--preset--color--highlight);
  color: var(--wp--preset--color--primary);
}

/* Chevron list rows: hairline-separated links with a chevron that nudges
 * right on hover. Apply .rma-link-rows to a List block. */
.rma-link-rows {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rma-link-rows > li {
  border-bottom: 1px solid var(--wp--preset--color--neutral-light);
}

.rma-link-rows > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  color: var(--wp--preset--color--slate);
  text-decoration: none;
}

.rma-link-rows > li > a::after {
  content: "";
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  background-color: var(--wp--preset--color--accent-dark);
  -webkit-mask: var(--rma-icon-chevron) center / contain no-repeat;
  mask: var(--rma-icon-chevron) center / contain no-repeat;
  transition: transform 0.2s ease;
}

.rma-link-rows > li > a:hover::after {
  transform: translateX(4px);
}

/*
 * Auction tiles (webtron-auctions block) restyled as the Stylescape's image
 * card: photo on top with the heavy bottom-right curve cut into it, the type
 * as a pill over the photo, and the caption as a white body below.
 *
 * CSS only, against the plugin's existing markup — no plugin change or
 * rebuild. Selectors are block-scoped so they out-rank the block's own sheet
 * whatever order the two load in.
 */
.wp-block-webtron-auction-tiles .webtron-auction-tile {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  border-radius: var(--wp--custom--radius--md);
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--primary);
  box-shadow: var(--wp--preset--shadow--card);
  transition: box-shadow 0.2s ease;
}

.wp-block-webtron-auction-tiles .webtron-auction-tile:hover {
  box-shadow: var(--wp--preset--shadow--hover);
}

.wp-block-webtron-auction-tiles .webtron-auction-tile__image {
  position: relative;
  inset: auto;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 0 0 var(--wp--custom--radius--image) 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-webtron-auction-tiles .webtron-auction-tile:hover .webtron-auction-tile__image {
  transform: scale(1.05);
}

.wp-block-webtron-auction-tiles .webtron-auction-tile__scrim {
  display: none;
}

.wp-block-webtron-auction-tiles .webtron-auction-tile__caption {
  position: static;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}

.wp-block-webtron-auction-tiles .webtron-auction-tile__type {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 2px 8px;
  border-radius: var(--wp--custom--radius--pill);
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  box-shadow: var(--wp--preset--shadow--card);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: normal;
  text-transform: none;
  opacity: 1;
}

.wp-block-webtron-auction-tiles.is-scope-past .webtron-auction-tile__type {
  background-color: var(--wp--preset--color--neutral-light);
  color: var(--wp--preset--color--primary);
}

/* No photo: the pill would float over the white body, so keep it inline. */
.wp-block-webtron-auction-tiles .webtron-auction-tile.is-no-image .webtron-auction-tile__type {
  position: static;
  align-self: flex-start;
}

.wp-block-webtron-auction-tiles .webtron-auction-tile__title {
  order: 2;
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--large);
  font-weight: 500;
  line-height: 1.4;
  color: var(--wp--preset--color--primary);
}

.wp-block-webtron-auction-tiles .webtron-auction-tile__date {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--slate);
  opacity: 1;
}

.wp-block-webtron-auction-tiles .webtron-auction-tile__date::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background-color: currentColor;
  -webkit-mask: var(--rma-icon-calendar) center / contain no-repeat;
  mask: var(--rma-icon-calendar) center / contain no-repeat;
}

.wp-block-webtron-auction-tiles .webtron-auction-tile__cta {
  order: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  justify-self: stretch;
  margin-top: auto;
  padding: 1rem 0 0;
  border-top: 1px solid var(--wp--preset--color--neutral-light);
  border-radius: 0;
  background: none;
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.wp-block-webtron-auction-tiles .webtron-auction-tile__cta::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background-color: currentColor;
  -webkit-mask: var(--rma-icon-arrow) center / contain no-repeat;
  mask: var(--rma-icon-arrow) center / contain no-repeat;
  transition: transform 0.2s ease;
}

.wp-block-webtron-auction-tiles .webtron-auction-tile:hover .webtron-auction-tile__cta::after {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-webtron-auction-tiles .webtron-auction-tile__image,
  .wp-block-webtron-auction-tiles .webtron-auction-tile__cta::after,
  .rma-link-rows > li > a::after {
    transition: none;
  }

  .wp-block-webtron-auction-tiles .webtron-auction-tile:hover .webtron-auction-tile__image {
    transform: none;
  }
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--wp--preset--font-size--small);
}

/*
 * The chamfered leading edge. A mask rather than an <img> so the fill follows
 * the navy preset, and a pseudo-element so it is pure decoration with no
 * markup. It hangs above the footer, right-aligned, and is capped by width
 * so it can never cause horizontal scroll.
 */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(555px, 50%);
  /* 48px of the full-size 104px shape sits above the footer. Proportional,
   * so the shape stays attached to the footer when it scales down. */
  transform: translateY(-46%);
  aspect-ratio: 555.41 / 104;
  background-color: var(--wp--preset--color--navy);
  -webkit-mask: url("../images/footer-shape.svg") right top / 100% 100% no-repeat;
  mask: url("../images/footer-shape.svg") right top / 100% 100% no-repeat;
  pointer-events: none;
}

/* Clearance for the shape above the footer, equal to its overhang (46% of
 * its scaled height), so it never sits over the last row of page content.
 * Out-specifies the `.wp-site-blocks > *` margin reset further up. */
.wp-site-blocks > .wp-block-template-part:has(.site-footer) {
  margin-block-start: calc(min(555px, 50vw) * 0.0862);
}

/* The shape reaches down into the footer, and a positioned pseudo-element
 * paints over normal-flow content — so without this it covers the top of any
 * footer text beneath it (it hid "Connect with us"). */
.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--wp--preset--color--white);
}

.site-footer__logo {
  margin: 0 0 1.5rem;
}

.site-footer__heading {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--wp--preset--color--white);
}

.site-footer__contact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.site-footer__contact .webtron-icon {
  margin-top: 0.2em;
  color: var(--wp--preset--color--accent);
}

.site-footer__links {
  columns: 1;
  column-gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links > li {
  margin: 0 0 0.5rem;
  padding-left: 0;
  break-inside: avoid;
}

/*
 * The portal's custom-styles.css (served by BidJS on every page) contains an
 * unscoped `li { padding-left: 10px }`. Until that is scoped in the portal
 * CSS cleanup pass, cancel it on the theme's own navigation.
 */
.wp-block-navigation .wp-block-navigation-item {
  padding-left: 0;
}

.site-footer__social {
  gap: 1rem;
}

.site-footer__legal {
  margin-top: var(--wp--preset--spacing--50);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal a + a {
  margin-left: 1.5rem;
}

/* --- Scroll reveal (assets/js/reveal.js) ---------------------------------- *
 *
 * Ports the main site's .animate-el system. Nothing is hidden unless
 * html.rma-reveal is present — an inline head script adds it only when
 * IntersectionObserver exists and the visitor has not asked for reduced
 * motion. So content is always visible with JS off, in the editor canvas
 * (which never runs the script), and under reduced motion.
 *
 * The failsafe is CSS, not a JS timer: if reveal.js never loads, the
 * animation below reveals everything after 3s anyway. A JS fallback could not
 * run in exactly the case it exists for. Once the script is running it adds
 * html.rma-reveal-ready, which cancels the failsafe so content further down
 * the page still waits for its own scroll reveal.
 *
 * Classes, not data attributes, so editors can apply them from
 * Advanced -> Additional CSS class(es):
 *   animate-el            fade up (default)
 *   animate-fade-in | animate-fade-left | animate-fade-right | animate-zoom-in
 *   animate-stagger       on a container: its children reveal in sequence
 */
html.rma-reveal .animate-el:not(.is-revealed),
html.rma-reveal .animate-stagger > :not(.is-revealed) {
  opacity: 0;
  transform: translateY(40px);
  animation: rma-reveal-failsafe 0s linear 3s forwards;
}

html.rma-reveal-ready .animate-el:not(.is-revealed),
html.rma-reveal-ready .animate-stagger > :not(.is-revealed) {
  animation: none;
}

html.rma-reveal .animate-el.animate-fade-in:not(.is-revealed) {
  transform: none;
}

html.rma-reveal .animate-el.animate-fade-left:not(.is-revealed) {
  transform: translateX(-40px);
}

html.rma-reveal .animate-el.animate-fade-right:not(.is-revealed) {
  transform: translateX(40px);
}

html.rma-reveal .animate-el.animate-zoom-in:not(.is-revealed) {
  transform: scale(0.9);
}

html.rma-reveal .animate-el,
html.rma-reveal .animate-stagger > * {
  transition:
    opacity var(--wp--custom--transition--reveal),
    transform var(--wp--custom--transition--reveal);
}

@keyframes rma-reveal-failsafe {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.rma-reveal .animate-el,
  html.rma-reveal .animate-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
