/*
 * Stonybrook Wiltshires — site stylesheet
 * ---------------------------------------
 * The only stylesheet the site loads (plus the Font Awesome icon sheet, and
 * the flipbook sheet on /ram-catalogue/).
 *
 * 1. Brand tokens ............ every colour on the site, by name
 * 2. WordPress blocks ........ layout CSS for the block markup the pages use
 * 3. Twenty Twenty-One ....... the original theme, trimmed to what the pages use
 * 4. Spectra modal ........... the CARLA "Learn more" pop-up
 * 5. Site ................... Stonybrook styles (was the child theme)
 * 6. Components ............. auction, sale cards, catalogue banner, form, FAQ
 * 7. Focus .................. keyboard focus for every control
 * 8. Print
 *
 * Sections 2–4 are vendor CSS: generated in Oct 2026 by keeping only the rules
 * that match something on the homepage or /ram-catalogue/, with every colour
 * pointed at a brand token. Edit sections 5–7 for site changes.
 *
 * Colour rules (design system: "Stonybrook Wiltshires" in Claude):
 * - Use the tokens below; no other colour values anywhere.
 * - Text on light grounds is slate-900, never pure black.
 * - Black is only for dimming photos.
 */

/* ===========================================================================
   1. Brand tokens
   =========================================================================== */

:root {
  /* Palette — all on one cool slate hue, so lights and darks sit together. */
  --sb-slate-900: #28303d; /* brand ink: all text on light grounds, primary buttons, dark bands */
  --sb-slate-700: #39414d; /* tick bar, footer, hover on slate, secondary text */
  --sb-stone-300: #d7d9db; /* breeding cards, borders, dividers */
  --sb-stone-100: #f0f1f3; /* quiet panels: auction, info bands */
  --sb-white: #ffffff; /* page ground; text on slate and photos */
  --sb-black: #000000; /* photo dimming only — never text */
  --sb-error: #990000; /* form errors only */

  /* Translucent slate, for things laid over photos or the page. */
  --sb-slate-900-88: rgb(40 48 61 / 0.88); /* auction ribbon over the hero photo */
  --sb-slate-900-60: rgb(40 48 61 / 0.6); /* hero scrim, top */
  --sb-slate-900-45: rgb(40 48 61 / 0.45); /* hero scrim, behind the title */
  --sb-slate-900-35: rgb(40 48 61 / 0.35); /* hero scrim, foot */
  --sb-slate-900-30: rgb(40 48 61 / 0.3); /* hero scrim, /ram-catalogue/ */
  --sb-overlay: rgb(40 48 61 / 0.8); /* behind pop-ups */
  --sb-shadow: rgb(40 48 61 / 0.45); /* text shadow on photos */
  --sb-white-25: rgb(255 255 255 / 0.25); /* loading spinner track */
  --sb-white-50: rgb(255 255 255 / 0.5);
  --sb-white-85: rgb(255 255 255 / 0.85); /* loading spinner */

  /* Focus ring. Light grounds: slate. Dark grounds set it to white (section 7). */
  --sb-focus: var(--sb-slate-900);

  /* Shape */
  --sb-radius-sm: 2px; /* buttons, fields */
  --sb-radius-md: 4px; /* floating panels */
}

/* ===========================================================================
   2. WordPress blocks
   ===========================================================================
   Vendor: WordPress block-library and block support CSS, trimmed to the
   blocks these pages use. */

img:is([sizes="auto" i], [sizes^="auto," i]) {
  contain-intrinsic-size: 3000px 1500px;
}
.wp-block-navigation
  .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within
  > .wp-block-navigation__submenu-container {
  height: auto;
  min-width: 200px;
  opacity: 1;
  overflow: visible;
  visibility: visible;
  width: auto;
}
.entry-content {
  counter-reset: footnotes;
}
.wp-element-button {
  cursor: pointer;
}
:root {
  --wp--preset--font-size--huge: 42px;
}
.has-huge-font-size {
  font-size: var(--wp--preset--font-size--huge);
}
.has-text-align-center {
  text-align: center;
}
.has-text-align-left {
  text-align: left;
}
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
html :where(img[class*="wp-image-"]) {
  height: auto;
  max-width: 100%;
}
:where(figure) {
  margin: 0 0 1em;
}

.wp-block-button__link {
  align-content: center;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  height: 100%;
  text-align: center;
  word-break: break-word;
}
:where(.wp-block-button__link) {
  border-radius: var(--sb-radius-sm);
  box-shadow: none;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  text-decoration: none;
}
.wp-block-buttons > .wp-block-button.has-custom-width {
  max-width: none;
}
.wp-block-buttons > .wp-block-button.has-custom-width .wp-block-button__link {
  width: 100%;
}
.wp-block-buttons > .wp-block-button.wp-block-button__width-100 {
  flex-basis: 100%;
  width: 100%;
}
:root :where(.wp-block-button.is-style-outline > .wp-block-button__link) {
  border: 2px solid;
  padding: 0.667em 1.333em;
}
:root :where(.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color)) {
  color: currentColor;
}
:root :where(.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background)) {
  background-color: initial;
  background-image: none;
}

.wp-block-cover {
  align-items: center;
  background-position: 50%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-height: 430px;
  overflow: hidden;
  overflow: clip;
  padding: 1em;
  position: relative;
}
.wp-block-cover .has-background-dim:not([class*="-background-color"]) {
  background-color: var(--sb-black);
}
.wp-block-cover .has-background-dim.has-background-gradient {
  background-color: initial;
}
.wp-block-cover .wp-block-cover__background,
.wp-block-cover .wp-block-cover__gradient-background {
  bottom: 0;
  left: 0;
  opacity: 0.5;
  position: absolute;
  right: 0;
  top: 0;
}
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0 {
  opacity: 0;
}
.wp-block-cover .wp-block-cover__inner-container {
  color: inherit;
  position: relative;
  width: 100%;
}
.wp-block-cover.is-position-top-center {
  align-items: flex-start;
  justify-content: center;
}
.wp-block-cover.has-custom-content-position.has-custom-content-position
  .wp-block-cover__inner-container {
  margin: 0;
}
.wp-block-cover .wp-block-cover__image-background {
  border: none;
  bottom: 0;
  box-shadow: none;
  height: 100%;
  left: 0;
  margin: 0;
  max-height: none;
  max-width: none;
  object-fit: cover;
  outline: none;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}
.wp-block-cover.has-parallax,
.wp-block-cover__image-background.has-parallax {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}
@supports (-webkit-touch-callout: inherit) {
  .wp-block-cover.has-parallax,
  .wp-block-cover__image-background.has-parallax {
    background-attachment: scroll;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wp-block-cover.has-parallax,
  .wp-block-cover__image-background.has-parallax {
    background-attachment: scroll;
  }
}
:where(.wp-block-cover:not(.has-text-color)) {
  color: var(--sb-white);
}
:where(.wp-block-cover.is-light:not(.has-text-color)) {
  color: var(--sb-slate-900);
}
:root :where(.wp-block-cover h1:not(.has-text-color)),
:root :where(.wp-block-cover h2:not(.has-text-color)),
:root :where(.wp-block-cover p:not(.has-text-color)) {
  color: inherit;
}

.wp-block-image img {
  box-sizing: border-box;
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
}
.wp-block-image.alignfull img {
  height: auto;
  width: 100%;
}

.wp-block-image {
  margin: 0 0 1em;
}

ul {
  box-sizing: border-box;
}

.wp-block-media-text {
  box-sizing: border-box;
  direction: ltr;
  display: grid;
  grid-template-columns: 50% 1fr;
  grid-template-rows: auto;
}
.wp-block-media-text.has-media-on-the-right {
  grid-template-columns: 1fr 50%;
}
.wp-block-media-text.is-vertically-aligned-center > .wp-block-media-text__content,
.wp-block-media-text.is-vertically-aligned-center > .wp-block-media-text__media,
.wp-block-media-text > .wp-block-media-text__content,
.wp-block-media-text > .wp-block-media-text__media {
  align-self: center;
}
.wp-block-media-text > .wp-block-media-text__media {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
.wp-block-media-text > .wp-block-media-text__content {
  direction: ltr;
  grid-column: 2;
  grid-row: 1;
  padding: 0 8%;
  word-break: break-word;
}
.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__media {
  grid-column: 2;
  grid-row: 1;
}
.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__content {
  grid-column: 1;
  grid-row: 1;
}
.wp-block-media-text__media img {
  height: auto;
  max-width: unset;
  vertical-align: middle;
  width: 100%;
}
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
  height: 100%;
  min-height: 250px;
  position: relative;
}
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}
@media (max-width: 600px) {
  .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 100% !important;
  }
  .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 1;
  }
  .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content {
    grid-column: 1;
    grid-row: 2;
  }
}

.wp-block-buttons {
  box-sizing: border-box;
}
.wp-block-buttons > .wp-block-button {
  display: inline-block;
  margin: 0;
}
.wp-block-buttons .wp-block-button__link {
  width: 100%;
}

.wp-block-columns {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap !important;
}
@media (min-width: 782px) {
  .wp-block-columns {
    flex-wrap: nowrap !important;
  }
}
.wp-block-columns {
  align-items: normal !important;
}
@media (max-width: 781px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
  }
}
@media (min-width: 782px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 0;
    flex-grow: 1;
  }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis"] {
    flex-grow: 0;
  }
}
:where(.wp-block-columns) {
  margin-bottom: 1.75em;
}
:where(.wp-block-columns.has-background) {
  padding: 1.25em 2.375em;
}
.wp-block-column {
  flex-grow: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.wp-block-column.is-vertically-aligned-center {
  align-self: center;
}
.wp-block-column.is-vertically-aligned-center {
  width: 100%;
}

.wp-block-group {
  box-sizing: border-box;
}

.wp-block-spacer {
  clear: both;
}

.wp-block-button__link {
  color: var(--sb-white);
  background-color: var(--sb-slate-900);
  border-radius: var(--sb-radius-sm);
  box-shadow: none;
  text-decoration: none;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  font-size: 1.125em;
}

:root {
  --wp--preset--color--white: var(--sb-white);
  --wp--preset--font-size--large: 24px;
  --wp--preset--font-size--huge: 96px;
  --wp--preset--spacing--30: 0.67rem;
  --wp--preset--spacing--50: 1.5rem;
  --wp--preset--spacing--70: 3.38rem;
}
:where(.is-layout-flex) {
  gap: 0.5em;
}
body .is-layout-flex {
  display: flex;
}
.is-layout-flex {
  flex-wrap: wrap;
  align-items: center;
}
.is-layout-flex > :is(*, div) {
  margin: 0;
}
.has-white-color {
  color: var(--wp--preset--color--white) !important;
}
.has-white-background-color {
  background-color: var(--wp--preset--color--white) !important;
}
.has-large-font-size {
  font-size: var(--wp--preset--font-size--large) !important;
}
:where(.wp-block-columns.is-layout-flex) {
  gap: 2em;
}

.wp-container-core-columns-is-layout-01629885 {
  flex-wrap: nowrap;
}

:root :where(.wp-block-button.is-style-outline--1 .wp-block-button__link) {
  background: transparent none;
  border-color: currentColor;
  border-width: 2px;
  border-style: solid;
  color: currentColor;
  padding-top: 0.667em;
  padding-right: 1.33em;
  padding-bottom: 0.667em;
  padding-left: 1.33em;
}

.wp-container-core-columns-is-layout-9d6595d7 {
  flex-wrap: nowrap;
}
.wp-container-core-columns-is-layout-53642b31 {
  flex-wrap: nowrap;
}

/* ===========================================================================
   3. Twenty Twenty-One
   ===========================================================================
   Vendor: the original WordPress theme, trimmed to rules that match the
   pages. Its colours are pointed at the brand tokens in section 5. */

:root {
  --global--font-primary: var(
    --font-headings,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen-Sans,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    sans-serif
  );
  --global--font-secondary: var(
    --font-base,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen-Sans,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    sans-serif
  );
  --global--font-size-base: 1.25rem;
  --global--font-size-xs: 1rem;
  --global--font-size-sm: 1.125rem;
  --global--font-size-lg: 1.5rem;
  --global--font-size-xl: 2.25rem;
  --global--font-size-xxl: 4rem;
  --global--font-size-page-title: var(--global--font-size-xxl);
  --global--letter-spacing: normal;
  --global--line-height-body: 1.7;
  --global--line-height-heading: 1.3;
  --global--line-height-page-title: 1.1;
  --heading--font-family: var(--global--font-primary);
  --heading--font-size-h3: calc(1.25 * var(--global--font-size-lg));
  --heading--font-size-h2: var(--global--font-size-xl);
  --heading--font-size-h1: var(--global--font-size-page-title);
  --heading--letter-spacing-h3: var(--global--letter-spacing);
  --heading--letter-spacing-h2: var(--global--letter-spacing);
  --heading--letter-spacing-h1: var(--global--letter-spacing);
  --heading--line-height-h3: var(--global--line-height-heading);
  --heading--line-height-h2: var(--global--line-height-heading);
  --heading--line-height-h1: var(--global--line-height-page-title);
  --heading--font-weight: normal;
  --heading--font-weight-page-title: 300;
  --list--font-family: var(--global--font-secondary);
  --global--color-black: var(--sb-black);
  --global--color-dark-gray: var(--sb-slate-900);
  --global--color-gray: var(--sb-slate-700);
  --global--color-light-gray: var(--sb-stone-100);
  --global--color-white: var(--sb-white);
  --global--color-white-50: var(--sb-white-50);
  --global--color-primary: var(--global--color-dark-gray);
  --global--color-secondary: var(--global--color-gray);
  --global--color-primary-hover: var(--global--color-primary);
  --global--color-background: var(--sb-white);
  --global--color-border: var(--global--color-primary);
  --global--spacing-unit: 20px;
  --global--spacing-measure: unset;
  --global--spacing-horizontal: 25px;
  --global--spacing-vertical: 30px;
  --form--font-size: var(--global--font-size-sm);
  --form--color-text: var(--global--color-dark-gray);
  --form--label-weight: 500;
  --form--border-color: var(--global--color-secondary);
  --form--border-width: 3px;
  --form--border-radius: 0;
  --form--spacing-unit: calc(0.5 * var(--global--spacing-unit));
  --cover--height: calc(15 * var(--global--spacing-vertical));
  --cover--color-foreground: var(--global--color-white);
  --cover--color-background: var(--global--color-black);
  --button--color-text-active: var(--global--color-secondary);
  --button--color-background: var(--global--color-secondary);
  --button--font-family: var(--global--font-primary);
  --button--font-size: var(--global--font-size-base);
  --button--font-weight: 500;
  --button--line-height: 1.5;
  --button--border-width: 3px;
  --button--border-radius: 0;
  --button--padding-vertical: 15px;
  --button--padding-horizontal: calc(2 * var(--button--padding-vertical));
  --entry-header--color: var(--global--color-primary);
  --entry-header--font-size: var(--heading--font-size-h2);
  --entry-content--font-family: var(--global--font-secondary);
  --branding--color-text: var(--global--color-primary);
  --branding--color-link: var(--global--color-primary);
  --branding--title--font-size: var(--global--font-size-lg);
  --branding--title--text-transform: uppercase;
  --primary-nav--padding: calc(0.66 * var(--global--spacing-unit));
  --footer--color-text: var(--global--color-primary);
  --footer--color-link: var(--global--color-primary);
  --footer--color-link-hover: var(--global--color-primary-hover);
  --footer--font-family: var(--global--font-primary);
  --footer--font-size: var(--global--font-size-sm);
}

@media only screen and (min-width: 652px) {
  :root {
    --global--font-size-xl: 2.5rem;
    --global--font-size-xxl: 6rem;
    --heading--font-size-h3: 2rem;
    --heading--font-size-h2: 3rem;
  }
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
main {
  display: block;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
a {
  background-color: transparent;
  text-decoration-thickness: 1px;
}
strong {
  font-weight: bolder;
}
img {
  border-style: none;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
[type="button"] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
textarea {
  overflow: auto;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
details {
  display: block;
}
summary {
  display: list-item;
}
:root {
  --responsive--spacing-horizontal: calc(2 * var(--global--spacing-horizontal) * 0.6);
  --responsive--aligndefault-width: calc(100vw - var(--responsive--spacing-horizontal));
  --responsive--alignwide-width: calc(100vw - var(--responsive--spacing-horizontal));
  --responsive--alignfull-width: 100%;
}

@media only screen and (min-width: 482px) {
  :root {
    --responsive--aligndefault-width: min(
      calc(100vw - 4 * var(--global--spacing-horizontal)),
      610px
    );
    --responsive--alignwide-width: calc(100vw - 4 * var(--global--spacing-horizontal));
  }
}
@media only screen and (min-width: 822px) {
  :root {
    --responsive--aligndefault-width: min(
      calc(100vw - 8 * var(--global--spacing-horizontal)),
      610px
    );
    --responsive--alignwide-width: min(calc(100vw - 8 * var(--global--spacing-horizontal)), 1240px);
  }
}
.post-thumbnail,
.entry-content
  > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator),
*[class*="inner-container"]
  > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(
    .wp-block-separator
  ) {
  max-width: var(--responsive--aligndefault-width);
  margin-left: auto;
  margin-right: auto;
}

.site-footer,
.site-header,
.alignwide {
  max-width: var(--responsive--alignwide-width);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: var(--responsive--alignfull-width);
  width: var(--responsive--alignfull-width);
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (min-width: 482px) {
  .alignfull {
    max-width: var(--responsive--alignfull-width);
    width: auto;
    margin-left: auto;
    margin-right: auto;
  }
}

.entry-header .post-thumbnail,
.singular .post-thumbnail,
.alignfull [class*="inner-container"] > .alignwide,
.alignwide [class*="inner-container"] > .alignwide {
  margin-left: auto;
  margin-right: auto;
  width: var(--responsive--alignwide-width);
  max-width: var(--responsive--alignfull-width);
}
.site-header,
.site-main,
.site-footer {
  padding-top: var(--global--spacing-vertical);
  padding-bottom: var(--global--spacing-vertical);
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  padding-top: calc(0.75 * var(--global--spacing-vertical));
  padding-bottom: calc(2 * var(--global--spacing-vertical));
}
@media only screen and (min-width: 482px) {
  .site-header {
    padding-bottom: calc(3 * var(--global--spacing-vertical));
  }
}
.site-main > * {
  margin-top: calc(3 * var(--global--spacing-vertical));
  margin-bottom: calc(3 * var(--global--spacing-vertical));
}

.site-main > *:first-child {
  margin-top: 0;
}

.site-main > *:last-child {
  margin-bottom: 0;
}
.entry-header,
.post-thumbnail,
.entry-content {
  margin-top: var(--global--spacing-vertical);
  margin-right: auto;
  margin-bottom: var(--global--spacing-vertical);
  margin-left: auto;
}
.site-main > article > *,
.entry-content > *,
[class*="inner-container"] > * {
  margin-top: calc(0.666 * var(--global--spacing-vertical));
  margin-bottom: calc(0.666 * var(--global--spacing-vertical));
}
@media only screen and (min-width: 482px) {
  .site-main > article > *,
  .entry-content > *,
  [class*="inner-container"] > * {
    margin-top: var(--global--spacing-vertical);
    margin-bottom: var(--global--spacing-vertical);
  }
}

.site-main > article > *:first-child,
.entry-content > *:first-child,
[class*="inner-container"] > *:first-child {
  margin-top: 0;
}

.site-main > article > *:last-child,
.entry-content > *:last-child,
[class*="inner-container"] > *:last-child {
  margin-bottom: 0;
}

.site-footer > * {
  margin-top: calc(0.666 * var(--global--spacing-vertical));
  margin-bottom: calc(0.666 * var(--global--spacing-vertical));
}
@media only screen and (min-width: 482px) {
  .site-footer > * {
    margin-top: var(--global--spacing-vertical);
    margin-bottom: var(--global--spacing-vertical);
  }
}
.entry-header > *,
.post-thumbnail > * {
  margin-top: var(--global--spacing-unit);
  margin-bottom: var(--global--spacing-unit);
}

.entry-header > *:first-child,
.post-thumbnail > *:first-child {
  margin-top: 0;
}

.entry-header > *:last-child,
.post-thumbnail > *:last-child {
  margin-bottom: 0;
}
.entry-content > * {
}

.entry-content > *.alignfull.has-background {
  margin-top: 0;
}

.entry-content > *:last-child,
.entry-content > *.alignfull.has-background {
  margin-bottom: 0;
}
html,
body,
p,
ul,
li,
figure,
textarea,
iframe,
h1,
h2,
h3 {
  padding: 0;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
html {
  box-sizing: border-box;
  font-family: var(--global--font-secondary);
  line-height: var(--global--line-height-body);
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-size: var(--global--font-size-base);
  font-weight: normal;
  color: var(--global--color-primary);
  text-align: left;
  background-color: var(--global--color-background);
}

button {
  cursor: pointer;
}

.entry-content:before,
.entry-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
  content: "";
  display: table;
  table-layout: fixed;
}

.entry-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
  clear: both;
}

input[type="text"] {
  border: var(--form--border-width) solid var(--form--border-color);
  border-radius: var(--form--border-radius);
  color: var(--form--color-text);
  line-height: var(--global--line-height-body);
  padding: var(--form--spacing-unit);
  margin: 0 2px;
  max-width: 100%;
}

input[type="text"]:disabled {
  opacity: 0.7;
}

/* Flipbook "Share" box link (the flipbook's own sheet sets 2px padding). */
textarea.df-share-url {
  border: var(--form--border-width) solid var(--form--border-color);
  color: var(--form--color-text);
  line-height: var(--global--line-height-body);
  padding: var(--form--spacing-unit);
}

textarea {
  width: 100%;
}

label {
  font-size: var(--form--font-size);
  font-weight: var(--form--label-weight);
  margin-bottom: calc(var(--global--spacing-vertical) / 3);
}

::-moz-placeholder {
  opacity: 1;
}

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}
.entry-content img {
  max-width: 100%;
}
embed,
iframe {
  max-width: 100%;
}
strong {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}
a {
  cursor: pointer;
  color: var(--wp--style--color--link, var(--global--color-primary));
  text-underline-offset: 3px;
  text-decoration-skip-ink: all;
}

a:hover {
  text-decoration-style: dotted;
  text-decoration-skip-ink: none;
}
button,
.wp-block-button .wp-block-button__link {
  border: var(--button--border-width) solid transparent;
  border-radius: var(--button--border-radius);
  cursor: pointer;
  font-weight: var(--button--font-weight);
  font-family: var(--button--font-family);
  font-size: var(--button--font-size);
  line-height: var(--button--line-height);
  padding: var(--button--padding-vertical) var(--button--padding-horizontal);
  text-decoration: none;
}

button:hover,
button:active,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:active {
  background-color: transparent;
  border-color: currentColor;
  color: inherit;
}

button:disabled,
.wp-block-button .wp-block-button__link:disabled {
  background-color: var(--global--color-white-50);
  border-color: var(--global--color-white-50);
  color: var(--button--color-text-active);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:active {
  border-color: currentColor !important;
  background-color: transparent !important;
  color: inherit !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:active {
  border-color: transparent !important;
  background-color: var(--global--color-primary) !important;
  color: var(--global--color-background) !important;
}

.has-background .wp-block-button.is-style-outline .wp-block-button__link:hover,
.has-background .wp-block-button.is-style-outline .wp-block-button__link:active {
  background-color: var(--local--color-primary, var(--global--color-primary)) !important;
  color: var(--local--color-background, var(--global--color-background)) !important;
}

.has-text-color .wp-block-button.is-style-outline .wp-block-button__link:hover,
.has-text-color .wp-block-button.is-style-outline .wp-block-button__link:active {
  color: var(--local--color-background, var(--global--color-background)) !important;
}

.wp-block-columns:not(.alignwide):not(.alignfull) {
  clear: both;
}

.wp-block-columns .wp-block-column > * {
  margin-top: calc(0.66 * var(--global--spacing-vertical));
  margin-bottom: calc(0.66 * var(--global--spacing-vertical));
}
@media only screen and (min-width: 482px) {
  .wp-block-columns .wp-block-column > * {
    margin-top: var(--global--spacing-vertical);
    margin-bottom: var(--global--spacing-vertical);
  }
}

.wp-block-columns .wp-block-column > *:first-child {
  margin-top: 0;
}

.wp-block-columns .wp-block-column > *:last-child {
  margin-bottom: 0;
}

.wp-block-columns .wp-block-column:last-child {
  margin-bottom: 0;
}

.wp-block-columns .wp-block-column:not(:last-child) {
  margin-bottom: calc(0.66 * var(--global--spacing-vertical));
}
@media only screen and (min-width: 482px) {
  .wp-block-columns .wp-block-column:not(:last-child) {
    margin-bottom: var(--global--spacing-vertical);
  }
}
@media only screen and (min-width: 822px) {
  .wp-block-columns .wp-block-column:not(:last-child) {
    margin-bottom: 0;
  }
}

.wp-block-columns.alignfull .wp-block-column p:not(.has-background),
.wp-block-columns.alignfull .wp-block-column h2:not(.has-background) {
  padding-left: var(--global--spacing-unit);
  padding-right: var(--global--spacing-unit);
}

.wp-block-cover {
  background-color: var(--cover--color-background);
  min-height: var(--cover--height);
  margin-top: inherit;
  margin-bottom: inherit;
}

.wp-block-cover.alignfull {
  margin-top: 0;
  margin-bottom: 0;
}

.wp-block-cover .wp-block-cover__inner-container {
  color: currentColor;
  margin-top: var(--global--spacing-vertical);
  margin-bottom: var(--global--spacing-vertical);
}

.wp-block-cover
  .wp-block-cover__inner-container
  a:not(.wp-block-button__link):not(.wp-block-file__button) {
  color: currentColor;
}

.wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container {
  color: var(--cover--color-foreground);
}

.wp-block-cover h2 {
  font-size: var(--heading--font-size-h2);
  letter-spacing: var(--heading--letter-spacing-h2);
  line-height: var(--heading--line-height-h2);
  max-width: inherit;
  text-align: inherit;
  padding: 0;
}

.wp-block-cover h2.has-text-align-center {
  text-align: center;
}

.wp-block-cover .wp-block-cover__inner-container {
  width: calc(100% - 2 * var(--global--spacing-vertical));
}

.wp-block-cover .wp-block-cover__inner-container > * {
  margin-top: calc(0.666 * var(--global--spacing-vertical));
  margin-bottom: calc(0.666 * var(--global--spacing-vertical));
}
@media only screen and (min-width: 482px) {
  .wp-block-cover .wp-block-cover__inner-container > * {
    margin-top: var(--global--spacing-vertical);
    margin-bottom: var(--global--spacing-vertical);
  }
}

.wp-block-cover .wp-block-cover__inner-container > *:first-child {
  margin-top: 0;
}

.wp-block-cover .wp-block-cover__inner-container > *:last-child {
  margin-bottom: 0;
}

.wp-block-group {
  display: block;
  clear: both;
  display: flow-root;
}

.wp-block-group:before,
.wp-block-group:after {
  content: "";
  display: block;
  clear: both;
}

.wp-block-group .wp-block-group__inner-container {
  margin-left: auto;
  margin-right: auto;
}

.wp-block-group .wp-block-group__inner-container > * {
  margin-top: calc(0.666 * var(--global--spacing-vertical));
  margin-bottom: calc(0.666 * var(--global--spacing-vertical));
}
@media only screen and (min-width: 482px) {
  .wp-block-group .wp-block-group__inner-container > * {
    margin-top: var(--global--spacing-vertical);
    margin-bottom: var(--global--spacing-vertical);
  }
}

.wp-block-group .wp-block-group__inner-container > *:first-child {
  margin-top: 0;
}

.wp-block-group .wp-block-group__inner-container > *:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  clear: both;
  font-family: var(--heading--font-family);
  font-weight: var(--heading--font-weight);
}

h1 {
  font-size: var(--heading--font-size-h1);
  letter-spacing: var(--heading--letter-spacing-h1);
  line-height: var(--heading--line-height-h1);
}

h2 {
  font-size: var(--heading--font-size-h2);
  letter-spacing: var(--heading--letter-spacing-h2);
  line-height: var(--heading--line-height-h2);
}

h3 {
  font-size: var(--heading--font-size-h3);
  letter-spacing: var(--heading--letter-spacing-h3);
  line-height: var(--heading--line-height-h3);
}

.wp-block-image {
  text-align: center;
}

ul {
  font-family: var(--list--font-family);
  margin: 0;
  padding-left: calc(2 * var(--global--spacing-horizontal));
}

ul {
  list-style-type: disc;
}

.wp-block-media-text {
}

.wp-block-media-text.alignfull {
  margin-top: 0;
  margin-bottom: 0;
}

.wp-block-media-text .wp-block-media-text__content {
  padding: var(--global--spacing-horizontal);
}
@media only screen and (min-width: 592px) {
  .wp-block-media-text .wp-block-media-text__content {
    padding: var(--global--spacing-vertical);
  }
}

.wp-block-media-text .wp-block-media-text__content > * {
  margin-top: calc(0.666 * var(--global--spacing-vertical));
  margin-bottom: calc(0.666 * var(--global--spacing-vertical));
}
@media only screen and (min-width: 482px) {
  .wp-block-media-text .wp-block-media-text__content > * {
    margin-top: var(--global--spacing-vertical);
    margin-bottom: var(--global--spacing-vertical);
  }
}

.wp-block-media-text .wp-block-media-text__content > *:first-child {
  margin-top: 0;
}

.wp-block-media-text .wp-block-media-text__content > *:last-child {
  margin-bottom: 0;
}
@media only screen and (min-width: 482px) {
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
    padding-top: var(--global--spacing-vertical);
    padding-bottom: var(--global--spacing-vertical);
  }
}

p {
  line-height: var(--wp--typography--line-height, var(--global--line-height-body));
}

:root .has-large-font-size {
  font-size: var(--global--font-size-lg);
  line-height: var(--global--line-height-heading);
}

:root .has-huge-font-size {
  font-size: var(--global--font-size-xxl);
  line-height: var(--global--line-height-heading);
  font-weight: var(--heading--font-weight-page-title);
}
.alignwide {
  clear: both;
}
.alignfull {
  clear: both;
}

.has-parallax {
  background-attachment: fixed;
}
.site-header {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  row-gap: var(--global--spacing-vertical);
}
@media only screen and (min-width: 482px) {
  .site-header {
    padding-top: calc(var(--global--spacing-vertical) / 0.75);
  }
}
@media only screen and (min-width: 822px) {
  .site-header {
    padding-top: calc(2.4 * var(--global--spacing-vertical));
  }
}

.site-branding {
  color: var(--branding--color-text);
  margin-right: 140px;
}

.site-branding:last-child {
  margin-right: 0;
  width: 100%;
  text-align: center;
}
@media only screen and (min-width: 482px) {
  .site-branding {
    margin-right: initial;
    margin-top: 4px;
  }
}

@media only screen and (max-width: 481px) {
  .site-header:not(.has-menu) {
    justify-content: center;
  }
}

.site-footer {
  padding-top: 0;
  padding-bottom: calc(1.7 * var(--global--spacing-vertical));
}

.no-widgets .site-footer {
  margin-top: calc(6 * var(--global--spacing-vertical));
}
@media only screen and (max-width: 481px) {
  .no-widgets .site-footer {
    margin-top: calc(3 * var(--global--spacing-vertical));
  }
}

.site-footer > .site-info {
  padding-top: var(--global--spacing-vertical);
  color: var(--footer--color-text);
  font-family: var(--footer--font-family);
  font-size: var(--footer--font-size);
  line-height: var(--global--line-height-body);
  border-top: 3px solid var(--global--color-border);
}

.site-footer > .site-info .site-name {
  text-transform: var(--branding--title--text-transform);
  font-size: var(--branding--title--font-size);
}

.site-footer > .site-info .powered-by {
  margin-top: calc(0.5 * var(--global--spacing-vertical));
}
@media only screen and (min-width: 822px) {
  .site-footer > .site-info {
    display: flex;
    align-items: center;
  }

  .site-footer > .site-info .site-name {
    margin-right: calc(0.5 * var(--global--spacing-vertical));
  }

  .site-footer > .site-info .powered-by {
    margin-top: initial;
    margin-left: auto;
  }
}

.site-footer > .site-info a {
  color: var(--footer--color-link);
}

.site-footer > .site-info a:link,
.site-footer > .site-info a:visited,
.site-footer > .site-info a:active {
  color: var(--footer--color-link);
}

.site-footer > .site-info a:hover {
  color: var(--footer--color-link-hover);
}

.singular .entry-header {
  border-bottom: 3px solid var(--global--color-border);
  padding-bottom: calc(2 * var(--global--spacing-vertical));
  margin-bottom: calc(3 * var(--global--spacing-vertical));
}

.singular .has-post-thumbnail .entry-header {
  border-bottom: none;
  padding-bottom: calc(1.3 * var(--global--spacing-vertical));
  margin-bottom: 0;
}

.entry-title {
  color: var(--entry-header--color);
  font-size: var(--entry-header--font-size);
  letter-spacing: var(--heading--letter-spacing-h2);
  line-height: var(--heading--line-height-h2);
  overflow-wrap: break-word;
}

.singular .entry-title {
  font-size: var(--global--font-size-page-title);
}

h1.entry-title {
  line-height: var(--heading--line-height-h1);
  font-weight: var(--heading--font-weight-page-title);
}
.entry-content {
  font-family: var(--entry-content--font-family);
}

.entry-content p {
  word-wrap: break-word;
}
.post-thumbnail {
  text-align: center;
}

.post-thumbnail .wp-post-image {
  display: block;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: calc(2 * var(--global--spacing-vertical));
}

.footer-navigation {
  margin-top: calc(2 * var(--global--spacing-vertical));
  margin-bottom: var(--global--spacing-vertical);
  color: var(--footer--color-text);
  font-size: var(--global--font-size-xs);
  font-family: var(--footer--font-family);
}

.footer-navigation-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 0;
}

.footer-navigation-wrapper li {
  display: inline;
  line-height: 3;
}

.footer-navigation-wrapper li a {
  padding: calc(1.25 * var(--primary-nav--padding)) var(--primary-nav--padding);
  color: var(--footer--color-link);
}

.footer-navigation-wrapper li a:link,
.footer-navigation-wrapper li a:visited,
.footer-navigation-wrapper li a:active {
  color: var(--footer--color-link);
}

.footer-navigation-wrapper li a:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-skip-ink: none;
  color: var(--footer--color-link-hover);
}

.footer-navigation-wrapper li .svg-icon {
  vertical-align: middle;
  fill: var(--footer--color-link);
}

.footer-navigation-wrapper li .svg-icon:hover {
  transform: scale(1.1);
}
@media (prefers-reduced-motion: no-preference) {
  .footer-navigation-wrapper li .svg-icon {
    transition: transform 0.1s ease;
  }
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
  word-break: normal;
}

.has-white-color[class] {
  color: var(--global--color-white);
}

.has-background a,
.has-background p,
.has-background h2,
.has-background h3 {
  color: currentColor;
}

.has-dark-gray-background-color[class] {
  background-color: var(--global--color-dark-gray);
}

.has-gray-background-color[class] {
  background-color: var(--global--color-gray);
}

.has-white-background-color[class] {
  background-color: var(--global--color-white);
}

.has-background:not(.has-text-color).has-gray-background-color[class] {
  color: var(--global--color-white);
}

.has-background:not(.has-text-color).has-white-background-color[class] {
  color: var(--global--color-dark-gray);
}

header *,
main *,
footer * {
  max-width: var(--global--spacing-measure);
}

html,
body,
div,
header,
nav,
article,
figure,
main,
section,
footer {
  max-width: none;
}

/* ===========================================================================
   4. Spectra modal
   ===========================================================================
   Vendor: Spectra plugin CSS for the CARLA "Learn more" pop-up. */

body.hide-scroll {
  overflow: hidden;
}
.uagb-modal-popup {
  visibility: hidden;
  position: fixed;
}
.uagb-modal-popup.active {
  top: 0;
  bottom: 0;
  justify-content: center;
  align-items: center;
  background: var(--sb-overlay);
  left: 0;
  right: 0;
  display: flex;
  visibility: visible;
}
.uagb-modal-popup.active .uagb-modal-popup-close {
  opacity: 1;
  display: flex;
  align-items: center;
  position: absolute;
  text-align: center;
  cursor: pointer;
  fill: var(--sb-white);
}
.uagb-modal-popup.active .uagb-modal-popup-close svg {
  -webkit-transition-property: filter, transform;
  -moz-transition-property: filter, transform;
  -o-transition-property: filter, transform;
  transition-property: filter, transform;
  -webkit-transition-duration: 250ms;
  -moz-transition-duration: 250ms;
  -o-transition-duration: 250ms;
  transition-duration: 250ms;
}
.uagb-modal-popup .uagb-modal-popup-close {
  display: none;
  border: none;
  background: transparent;
  padding: 0;
}
.uagb-modal-popup .uagb-modal-popup-content {
  padding: 35px 35px;
  overflow-x: hidden;
  overflow-y: overlay;
  height: 100%;
}
.uagb-modal-popup .uagb-modal-popup-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 700px;
  height: 450px;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--sb-white);
  color: var(--sb-slate-900);
  position: relative;
}
.uagb-modal-popup .uagb-modal-popup-wrap .uagb-modal-popup-content::-webkit-scrollbar {
  width: 5px;
}
.uagb-modal-popup .uagb-modal-popup-wrap .uagb-modal-popup-content::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 6px var(--sb-shadow);
  border-radius: 100px;
}
.wp-block-uagb-modal {
  width: 100%;
}
.entry .entry-content a.uagb-modal-button-link {
  text-decoration: inherit;
  align-items: center;
}
.entry .entry-content a.uagb-modal-button-link:hover {
  color: inherit;
}
.uagb-modal-trigger:not(img) {
  display: flex;
}
div.uagb-spectra-button-wrapper {
  line-height: 1;
}
div.uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.uagb-effect-default .uagb-modal-popup-wrap {
  opacity: 0;
}
.uagb-effect-default.active .uagb-modal-popup-wrap {
  opacity: 1;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.uagb-google-map__wrap {
  display: flex;
}
.uagb-google-map__wrap .uagb-google-map__iframe {
  width: 100%;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: 0;
}
.uagb-block-5a4a3724.uagb-modal-popup .uagb-modal-popup-wrap {
  height: auto;
  width: 800px;
  max-height: 90vh;
  border-style: none;
  border-color: none;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
.uagb-block-5a4a3724 .uagb-modal-popup-close svg {
  width: 25px;
  height: 25px;
  line-height: 25px;
  font-size: 25px;
}
.uagb-block-5a4a3724.uagb-modal-popup.active {
  background: var(--sb-overlay);
  z-index: 99999;
}
.uagb-block-5a4a3724 .uagb-modal-popup-content {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
.uagb-block-5a4a3724 .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger {
  border-top-width: 1px;
  border-left-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  border-style: solid;
}
.uagb-block-5a4a3724.uagb-modal-wrapper
  .uagb-spectra-button-wrapper
  .uagb-modal-button-link.uagb-modal-trigger {
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--sb-white);
  background-color: var(--sb-slate-900);
}
.uagb-block-5a4a3724 .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger:hover {
  color: var(--sb-slate-900);
}
.uagb-block-5a4a3724.uagb-modal-popup.active .uagb-modal-popup-close {
  top: -25px;
  right: -25px;
}
.uagb-block-5a4a3724.uagb-modal-wrapper {
  text-align: center;
}
.uagb-block-5a4a3724 .wp-block-button__link {
  width: unset;
}
.uagb-block-5a4a3724 .uagb-modal-trigger {
  justify-content: center;
}
.uagb-block-f9938326 .uagb-google-map__iframe {
  height: 300px;
}
@media only screen and (max-width: 976px) {
  .uagb-block-5a4a3724.uagb-modal-popup .uagb-modal-popup-wrap {
    height: auto;
    border-style: none;
    border-color: none;
  }
  .uagb-block-5a4a3724 .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger {
    border-style: solid;
  }
  .uagb-block-5a4a3724 .uagb-modal-trigger {
    justify-content: center;
  }
  .uagb-block-f9938326 .uagb-google-map__iframe {
    height: 300px;
  }
}
@media only screen and (max-width: 767px) {
  .uagb-block-5a4a3724.uagb-modal-popup .uagb-modal-popup-wrap {
    height: auto;
    border-style: none;
    border-color: none;
  }
  .uagb-block-5a4a3724 .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger {
    border-style: solid;
  }
  .uagb-block-5a4a3724 .wp-block-button__link {
    width: unset;
  }
  .uagb-block-5a4a3724 .uagb-modal-trigger {
    justify-content: center;
  }
  .uagb-block-f9938326 .uagb-google-map__iframe {
    height: 300px;
  }
}

@media (max-width: 767px) {
  body .uag-hide-mob {
    display: none !important;
  }
}

/* ===========================================================================
   5. Site
   =========================================================================== */

/* Theme variables pointed at the brand palette. */
:root {
  --global--color-background: var(--sb-white);
  --global--color-primary: var(--sb-slate-900);
  --global--color-secondary: var(--sb-slate-900);
  --button--color-background: var(--sb-slate-900);
  --branding--color-link: var(--sb-white);
  --global--font-primary:
    "a_song_for_jennifer", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  /* Body and fallback heading stacks pinned, so the form embed at
     app.stonybrook.co.nz can copy the same stack and match exactly. */
  --font-base:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
    "Helvetica Neue", sans-serif;
  --font-headings: var(--font-base);
  --footer--color-text: var(--sb-slate-700);
  --footer--color-link: var(--sb-slate-700);
}

@font-face {
  font-family: "a_song_for_jennifer";
  src: url("/wp-content/themes/stonybrookwiltshires/assets/fonts/a_song_for_jennifer/a_song_for_jennifer.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "a_song_for_jennifer";
  src: url("/wp-content/themes/stonybrookwiltshires/assets/fonts/a_song_for_jennifer/a_song_for_jennifer_bold.woff")
    format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: var(--sb-white);
}

/* Layout: no theme header; full-width content. */
header {
  display: none;
}

#main {
  padding-top: 0;
}

/* The theme's (empty) header is pulled up over the hero; this also crops the
   top 46px of the hero photo. Kept as on the original site. */
#masthead {
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  z-index: 100;
  margin-top: -50px;
  position: relative;
  top: 60px;
}

.site-header,
.site-main,
.site-footer {
  padding-bottom: 0;
}

.entry-content {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.site-footer,
.no-widgets .site-footer {
  margin-top: 0;
  max-width: 100%;
}

.footer-navigation {
  margin-top: 0;
  margin-bottom: 0;
}

.site-footer > .site-info {
  max-width: var(--responsive--alignwide-width);
  margin-left: auto;
  margin-right: auto;
  border-top: none;
  padding-top: 0;
}

.site-footer > .site-info .powered-by {
  text-align: center;
}

/* Hero: a slate scrim keeps the white title at 3:1 or better over bright
   cloud (large-text minimum), and darkens the foot for the auction ribbon. */
.shift-main-image > .wp-block-cover__background {
  opacity: 1 !important;
  background: linear-gradient(
    180deg,
    var(--sb-slate-900-60) 0%,
    var(--sb-slate-900-45) 35%,
    transparent 60%,
    transparent 70%,
    var(--sb-slate-900-35) 100%
  ) !important;
}

/* /ram-catalogue/: shorter hero with the title in the middle. A light, even
   wash keeps the photo bright; the title stays above 3:1 at the 95th
   percentile of the photo behind it. */
body:not(.home) .shift-main-image > .wp-block-cover__background {
  background: var(--sb-slate-900-30) !important;
}

.wp-block-cover__inner-container h1 {
  text-shadow: 1px 1px 5px var(--sb-shadow);
}

h1 a {
  text-decoration: none;
}

/* Lists with tick icons ("Why Wiltshire sheep?"). */
ul.custom-icon-list {
  list-style-type: none;
  padding-left: 30px;
}

ul.custom-icon-list li::before {
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  margin-left: -30px;
  padding-right: 10px;
  color: var(--sb-slate-900);
}

/* A drawn tick (was a Font Awesome glyph; the icon font is no longer loaded). */
ul.list-check li {
  position: relative;
}

ul.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  box-sizing: border-box;
  width: 0.4em;
  height: 0.75em;
  margin: 0 0 0 -24px;
  padding: 0;
  border: solid currentColor;
  border-width: 0 0.16em 0.16em 0;
  transform: rotate(45deg);
}

/* Tick bar ("No shearing" … "No fly strike"). On phones: smaller text, two
   per row, so it takes a third of the height. */
@media (max-width: 600px) {
  .has-gray-background-color .mobile-vertical-gap-10.flex-auto.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 10px 32px !important;
    font-size: 1.0625rem !important;
  }

  .has-gray-background-color .mobile-vertical-gap-10.flex-auto > .wp-block-column {
    margin: 0 !important;
  }

  .has-gray-background-color .mobile-vertical-gap-10.flex-auto p {
    margin: 0;
    text-align: left;
  }
}

/* Column spacing helpers used by the tick bar and breeding cards. */
.mobile-no-vertical-gap {
  gap: 0 40px !important;
}

.flex-auto.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
  flex-basis: auto !important;
}

.mobile-vertical-gap-10 {
  gap: 10px 0 !important;
}

.mobile-vertical-gap-10.wp-block-columns .wp-block-column {
  margin-bottom: 0 !important;
}

.breeding-strategy-top-row {
  margin-bottom: 40px;
}

/* "Learn more" pop-up (CARLA): close button inside the white panel. The
   script in the page head moves the button into the panel. */
.uagb-modal-popup-wrap {
  position: relative;
}

.uagb-modal-popup-wrap > .uagb-modal-popup-close {
  position: absolute !important;
  top: 0.5rem !important;
  right: 0.5rem !important;
  width: 2rem !important;
  height: 2rem !important;
  padding: 0.4rem !important;
  background: var(--sb-stone-100) !important;
  fill: var(--sb-slate-900) !important;
  border: 0 !important;
  border-radius: var(--sb-radius-md) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background-color 150ms ease !important;
  z-index: 10;
}

.uagb-modal-popup-wrap > .uagb-modal-popup-close:hover {
  background: var(--sb-stone-300) !important;
}

.uagb-modal-popup-wrap > .uagb-modal-popup-close svg {
  width: 100% !important;
  height: 100% !important;
}

/* "Learn more" button: the standard slate button, with the standard hover
   (the old theme flipped it to an outline on hover). */
.uagb-block-5a4a3724.uagb-modal-wrapper
  .uagb-spectra-button-wrapper
  .uagb-modal-button-link.uagb-modal-trigger {
  border-radius: var(--sb-radius-sm) !important;
  border-color: transparent !important;
  min-height: 50px;
  padding: 0 20px !important;
  font-family: var(--global--font-secondary) !important; /* same as .sb-btn */
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  transition: background-color 0.15s ease;
}

.uagb-block-5a4a3724.uagb-modal-wrapper
  .uagb-spectra-button-wrapper
  .uagb-modal-button-link.uagb-modal-trigger:hover {
  background-color: var(--sb-slate-700) !important;
  color: var(--sb-white) !important;
}

@media only screen and (min-width: 861px) {
  .wp-block-columns {
    flex-wrap: nowrap !important;
  }

  .wp-block-columns .wp-block-column:not(:last-child) {
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 860px) {
  .wp-block-columns {
    flex-wrap: wrap !important;
  }

  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100%;
  }

  .wp-block-columns .wp-block-column:not(:last-child) {
    margin-bottom: var(--global--spacing-vertical);
  }

  .breeding-strategy-top-row {
    margin-bottom: 30px;
  }

  .our-story.wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 100% !important;
  }

  .our-story.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 2;
  }

  .our-story.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
    grid-column: 1;
    grid-row: 1;
  }

  .uag-hide-mob {
    display: none;
  }

  .uagb-modal-popup-wrap {
    width: 90% !important;
  }
}

/* ===========================================================================
   6. Components
   =========================================================================== */

/* --- Buttons ------------------------------------------------------------- */
/* Primary = filled (always the email sign-up). Outline = secondary.          */

.sb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: var(--sb-radius-sm);
  /* The one button type style (design system "button"): sans, 18px, 500. */
  font-family: var(--global--font-secondary);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  white-space: nowrap;
  text-align: center;
  text-decoration: none !important;
  box-sizing: border-box;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

/* On light grounds */
.sb-btn--primary {
  background: var(--sb-slate-900);
  color: var(--sb-white) !important;
}

.sb-btn--primary:hover {
  background: var(--sb-slate-700);
}

.sb-btn--outline {
  border-color: var(--sb-slate-900);
  color: var(--sb-slate-900) !important;
  background: transparent;
}

.sb-btn--outline:hover {
  /* Same as a filled button's hover, so a hovered outline never looks like a
     resting filled button. */
  background: var(--sb-slate-700);
  border-color: var(--sb-slate-700);
  color: var(--sb-white) !important;
}

/* On slate grounds */
.sb-btn--on-dark {
  background: var(--sb-white);
  color: var(--sb-slate-900) !important;
}

.sb-btn--on-dark:hover {
  background: var(--sb-stone-300);
}

.sb-btn--outline-on-dark {
  border-color: var(--sb-white);
  color: var(--sb-white) !important;
}

.sb-btn--outline-on-dark:hover {
  background: var(--sb-stone-300); /* same as .sb-btn--on-dark:hover */
  border-color: var(--sb-stone-300);
  color: var(--sb-slate-900) !important;
}

/* --- Auction ribbon (under the site title on the hero photo) ------------ */
/* Desktop: in the title's column, directly under it, so it never covers the
   sheep in the photo. */

.wp-block-cover .sb-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  width: max-content;
  max-width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  margin: 28px auto 0;
  padding: 10px 22px;
  background: var(--sb-slate-900-88);
  color: var(--sb-white) !important;
  border-radius: var(--sb-radius-md);
  font-family: var(--global--font-secondary);
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none !important;
  --sb-focus: var(--sb-white);
}

.sb-ribbon:hover {
  background: var(--sb-slate-900);
}

.sb-ribbon strong {
  font-weight: 700;
}

.sb-ribbon__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

/* Phones: the title takes the sky, so the ribbon sits at the foot of the
   photo instead (the inner column is stretched to the photo's height). */
@media (max-width: 600px) {
  .shift-main-image > .wp-block-cover__inner-container {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
  }

  .wp-block-cover .sb-ribbon {
    align-self: center;
    width: auto;
    margin: auto auto 0 !important; /* foot of the photo, centred */
    font-size: 0.9375rem;
    padding: 8px 16px;
  }
}

/* --- Auction panel ------------------------------------------------------- */

.sb-auction {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  max-width: var(--responsive--alignwide-width, 1120px);
  /* Same rhythm as every other section: block gap + 40px spacer either side
     (the spacers are in the page HTML / CatalogueComingBanner). */
  margin: var(--global--spacing-vertical) auto 0 !important;
  background: var(--sb-stone-100);
  color: var(--sb-slate-900);
  overflow: hidden;
  font-family: var(--global--font-secondary);
}

.sb-auction__date {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 24px 32px;
  background: var(--sb-slate-900);
  color: var(--sb-white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
}

.sb-auction__day {
  font-family: var(--global--font-primary);
  font-weight: 400;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
}

.sb-auction__body {
  flex: 999 1 380px;
  min-width: 0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.sb-auction__body h2 {
  margin: 0 !important;
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--sb-slate-900);
}

.sb-auction__body p {
  margin: 0 !important;
  font-size: 1.125rem;
  line-height: 1.55;
}

.sb-auction__order {
  color: var(--sb-slate-700);
  font-size: 1rem !important;
}

.sb-auction__actions {
  flex: 1 1 300px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.sb-auction__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-size: 1rem;
  color: var(--sb-slate-900) !important;
}

@media (max-width: 600px) {
  .sb-auction {
    margin: calc(0.666 * var(--global--spacing-vertical)) auto 0 !important; /* the theme's phone block gap */
  }

  /* Date on one line, centred in the slate strip. */
  .sb-auction__date {
    flex: 1 1 100%;
    flex-direction: row;
    gap: 14px;
    justify-content: center;
    padding: 14px 20px;
  }

  .sb-auction__day {
    font-size: 2.75rem;
  }

  .sb-auction__body,
  .sb-auction__actions {
    padding: 20px;
  }

  .sb-auction__actions {
    padding-top: 0;
  }

  .sb-auction__body h2 {
    font-size: 2rem;
  }
}

/* --- Sale cards ("Wiltshire sheep for sale") ---------------------------- */
/* .sb-card is added to each card at build time (src/pages/index.astro), with
   one button for its action. The card itself isn't a link. */

.sb-card {
  --sb-focus: var(--sb-white);
}

.sb-card-action {
  margin-top: 1.5rem !important;
}

.sb-card .sb-card-btn {
  display: inline-flex;
  width: auto;
}

.sb-card-inline {
  color: var(--sb-white) !important;
}

.sb-card-extra {
  margin-top: 0.75rem !important;
}

/* --- Catalogue notice (/ram-catalogue/ before the new catalogue is out) - */
/* A slate box, deliberately unlike the auction panel: no date block, so the
   catalogue date can't be mistaken for the sale date.                      */

.sb-notice {
  max-width: var(--responsive--alignwide-width, 1120px);
  margin: var(--global--spacing-vertical) auto 0 !important;
  padding: 32px 40px;
  box-sizing: border-box;
  background: var(--sb-slate-900);
  color: var(--sb-white);
  font-family: var(--global--font-secondary);
  --sb-focus: var(--sb-white);
}

.sb-notice h2 {
  margin: 0 0 16px !important;
  color: var(--sb-white);
  font-size: 2.25rem;
  line-height: 1.15;
}

.sb-notice__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}

.sb-notice__text {
  flex: 999 1 420px;
  min-width: 0;
}

.sb-notice__text p {
  margin: 0 !important;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--sb-white);
}

.sb-notice__text p + p {
  margin-top: 6px !important;
}

.sb-notice__actions {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 600px) {
  .sb-notice {
    margin: calc(0.666 * var(--global--spacing-vertical)) auto 0 !important;
    padding: 24px 20px;
  }

  .sb-notice h2 {
    font-size: 1.875rem;
  }
}

/* --- Interest form (iframe from app.stonybrook.co.nz) ------------------- */

.wiltshires-interest-form {
  /* Override block-library's content-width clamp via specificity. */
  width: 100%;
  max-width: 900px !important;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  /* A height change in the iframe (e.g. after submit) must not yank the
     viewport back to the form. */
  overflow-anchor: none;
}

.wiltshires-interest-form iframe {
  width: 100%;
  border: 0;
  background: transparent;
  color-scheme: light;
  display: block;
  position: relative;
  z-index: 0;
  /* Hidden until loaded; layout is kept so the loader has a sized box. */
  visibility: hidden;
}

.wiltshires-interest-form[data-loading="false"] iframe {
  visibility: visible;
}

.wiltshires-interest-form__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* the band's photo shows through */
  z-index: 1;
  transition:
    opacity 250ms ease,
    visibility 0s linear 250ms;
}

.wiltshires-interest-form[data-loading="false"] .wiltshires-interest-form__loader {
  opacity: 0;
  visibility: hidden;
}

.wiltshires-interest-form__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--sb-white-25);
  border-top-color: var(--sb-white-85);
  border-radius: 50%;
  animation: sb-spin 0.9s linear infinite;
}

@keyframes sb-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Section links --------------------------------------------------- */
.sb-anchor {
  display: block;
  height: 0;
  margin: 0 !important;
}

/* Headings carry stable ids (#for-sale, #faq, #ram-lambs…) for links from
   emails, ads and posts; land with a little room above them. */
:where(h2, h3)[id],
#subscribe,
#auction,
.sb-anchor {
  scroll-margin-top: 24px;
}

/* --- Sign-up pop-up (InterestModal.astro) ------------------------------- */
/* The form opened from any "Email me…" / "Tell me…" button. A white panel
   over the slate overlay; the form inside uses its light theme. */

.sb-modal {
  /* Wide enough for the four interest boxes on one row (about 700px of form). */
  width: min(800px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--sb-radius-md);
  background: var(--sb-white);
  color: var(--sb-slate-900);
  box-shadow: 6px 6px 18px var(--sb-shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* A browser without <dialog> support would draw it inline at the foot of the
   page; the buttons fall back to #subscribe there, so keep it hidden. */
.sb-modal:not([open]) {
  display: none;
}

/* Keep the page from shifting sideways when the scrollbar is hidden. */
html {
  scrollbar-gutter: stable;
}

.sb-modal::backdrop {
  background: var(--sb-overlay);
}

html.sb-modal-open {
  overflow: hidden;
}

.sb-modal__panel {
  position: relative;
  padding: 32px 32px 24px;
}

.sb-modal__heading {
  margin: 0 44px 8px 0;
  font-family: var(--global--font-primary);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--sb-slate-900);
}

.sb-modal__lead {
  margin: 0 0 24px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--sb-slate-700);
}

.sb-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--sb-radius-sm);
  background: transparent !important;
  color: var(--sb-slate-900) !important;
  cursor: pointer;
}

.sb-modal__close:hover {
  background: var(--sb-stone-100) !important;
}

.sb-modal .wiltshires-interest-form {
  /* The form keeps 4px round its fields for the focus ring; pull it out so
     its text lines up with the heading. */
  width: calc(100% + 8px);
  max-width: none !important;
  margin: 0 -4px;
}

.sb-modal .wiltshires-interest-form__spinner {
  border-color: var(--sb-stone-300);
  border-top-color: var(--sb-slate-700);
}

@media (max-width: 600px) {
  .sb-modal {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .sb-modal__panel {
    padding: 24px 20px 20px;
  }

  .sb-modal__heading {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wiltshires-interest-form__spinner {
    animation: none;
  }
}

/* --- FAQ (native accordion: <details name="faq">, one open at a time) --- */

.sb-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: var(--responsive--aligndefault-width);
  margin-left: auto !important;
  margin-right: auto !important;
}

.sb-faq__item {
  background: var(--sb-white);
  border: 1px solid var(--sb-stone-300);
  border-radius: var(--sb-radius-sm);
  color: var(--sb-slate-900);
}

.sb-faq__q {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box; /* min-height includes the padding */
  min-height: 56px;
  padding: 12px 20px;
  cursor: pointer;
  font-size: inherit; /* same size and weight as the answers (they inherit too) */
  line-height: 1.5;
  list-style: none;
}

.sb-faq__q::-webkit-details-marker {
  display: none;
}

/* Plus / minus mark */
.sb-faq__q::before {
  content: "+";
  flex: 0 0 1ch;
  align-self: flex-start; /* stays on the first line when a question wraps */
  color: var(--sb-slate-700); /* same size and line height as the question, so it centres with it */
}

.sb-faq__item[open] > .sb-faq__q::before {
  content: "\2212";
}

.sb-faq__q:hover {
  color: var(--sb-slate-700);
}

/* Keep the focus ring inside the white panel (outside it sits on the photo). */
.sb-faq__q:focus-visible {
  outline-offset: -4px;
}

.sb-faq__a {
  box-sizing: border-box; /* so the slide animation's height includes the padding */
  padding: 0 20px 24px calc(20px + 1ch + 12px); /* aligned with the question text */
}

@media (max-width: 600px) {
  /* Use the full width inside the photo band (the theme leaves 50px a side),
     so questions wrap less. */
  .sb-faq-cover > .wp-block-cover__inner-container {
    width: 100%;
  }

  .sb-faq__q {
    padding: 10px 16px;
  }

  .sb-faq__a {
    padding: 0 16px 20px;
  }
}

.sb-faq__a p {
  margin: 0;
}

/* --- Tick bar icon (inline SVG; was a Font Awesome kit locked to the live
   domain, so previews showed no ticks) ----------------------------------- */

.sb-tick {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
}

/* --- Photo viewer (PhotoViewer.astro) ---------------------------------- */

.sb-zoomable {
  cursor: zoom-in;
}

.sb-viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.sb-viewer::backdrop {
  background: var(--sb-slate-900-88);
}

.sb-viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-viewer__img {
  display: block;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.sb-viewer__close {
  position: fixed;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--sb-radius-sm);
  background: transparent !important;
  color: var(--sb-white) !important;
  cursor: pointer;
  --sb-focus: var(--sb-white);
}

.sb-viewer__close:hover {
  background: var(--sb-slate-700) !important;
}

/* --- Photo bands: smaller files for smaller screens --------------------- */
/* The form and FAQ bands set their photo inline (the WordPress markup). These
   swap in resized copies (scripts/resize-images.mjs) so a phone doesn't fetch
   the full original; wide screens keep the original. */

@media (max-width: 1920px) {
  #subscribe > .wp-block-cover__image-background {
    background-image: url(/wp-content/uploads/2023/02/20230111_161905-01-01-1-1920w.jpg) !important;
  }

  .sb-faq-cover > .wp-block-cover__image-background {
    background-image: url(/wp-content/uploads/2023/02/IMG_20200214_192822-scaled-1920w.jpg) !important;
  }
}

@media (max-width: 781px) {
  #subscribe > .wp-block-cover__image-background {
    background-image: url(/wp-content/uploads/2023/02/20230111_161905-01-01-1-1280w.jpg) !important;
  }

  .sb-faq-cover > .wp-block-cover__image-background {
    background-image: url(/wp-content/uploads/2023/02/IMG_20200214_192822-scaled-1280w.jpg) !important;
  }
}

/* ===========================================================================
   7. Focus
   ===========================================================================
   Keyboard users get a clear 2px ring on every control. Taps and mouse
   clicks don't change how anything looks (the old theme turned focused
   links white, which blanked buttons after a tap). */

:where(a, button, summary, input, select, textarea, [tabindex]):focus {
  outline: none;
}

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--sb-focus);
  outline-offset: 3px;
}

/* Dark grounds: white ring. */
.has-dark-gray-background-color,
.has-gray-background-color,
.wp-block-cover,
.sb-auction__date {
  --sb-focus: var(--sb-white);
}

/* White panels inside dark grounds go back to slate. */
.sb-faq__item,
.uagb-modal-popup-wrap {
  --sb-focus: var(--sb-slate-900);
}

/* Skip link: the first thing keyboard and screen-reader users reach. Hidden
   until focused, then shown top-left; jumps past the hero to the content. */
.skip-link.screen-reader-text:focus {
  background-color: var(--sb-white);
  color: var(--sb-slate-900);
  border-radius: var(--sb-radius-sm);
  box-shadow: 0 0 0 2px var(--sb-slate-900);
  clip: auto !important;
  clip-path: none;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  height: auto;
  left: 6px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 7px;
  width: auto;
  z-index: 100000;
}

/* ===========================================================================
   8. Print
   ===========================================================================
   Vendor: Twenty Twenty-One print styles, plus site fixes at the end. */

@media print {
  @page {
    margin: 2cm;
  }

  .entry .entry-header,
  .entry {
    margin-top: 0;
    margin-bottom: 0;
  }

  .site-footer .site-info {
    margin: 0;
  }

  .site-header {
    padding: 0;
  }
  body {
    font:
      13pt Georgia,
      "Times New Roman",
      Times,
      serif;
    font: 13pt var(--global--font-secondary, Georgia, "Times New Roman", Times, serif);
    line-height: 1.3;
    background: var(--sb-white) !important;
    color: var(--sb-slate-900);
  }

  h1,
  .entry-title,
  .singular .entry-title {
    font-size: 22pt;
    font-weight: bold;
  }

  h2,
  h3,
  .has-large-font-size {
    font-size: 14pt;
    margin-top: 25px;
  }
  a {
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  img {
    page-break-inside: avoid;
    page-break-after: avoid;
  }

  figure {
    page-break-inside: avoid;
  }

  ul {
    page-break-before: avoid;
  }
  a:link,
  a:visited,
  a {
    background: transparent;
    font-weight: bold;
    text-decoration: underline;
    text-align: left;
  }

  a[href^="http"]:after {
    content: " < " attr(href) "> ";
  }

  article a[href^="#"]:after {
    content: "";
  }
  .footer-navigation {
    display: none !important;
  }

  .entry .entry-content .wp-block-button .wp-block-button__link {
    color: var(--sb-slate-900);
    background: none;
  }
}

@media print {
  /* Keep filled buttons legible (the theme clears link backgrounds). */
  .sb-btn--primary,
  .sb-auction__date,
  .sb-notice,
  .sb-ribbon {
    background: var(--sb-slate-900) !important;
    color: var(--sb-white) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
