/*
 * The "groundwork" theme (BrandSetting::THEMES): a theme for a home
 * services business (a landscaper, a plumber, a cleaner) that sells "call
 * us, get a quote" first. A solid primary contact bar over a white header
 * with a rounded call-to-action button (Theme header_topbar,
 * header_cta_label), a full-bleed photo hero under a translucent primary
 * overlay with an accent pill, a very heavy heading, and the Contact form
 * in a white quote card (Theme hero_quote_form), then white pages of
 * rounded, softly shadowed cards, the services as a grid of them.
 * Switching to it also puts the services right after the hero and hides
 * the food and drink sections (Theme default_sections).
 *
 * Colors and fonts come from the brand's CSS custom properties (set in
 * the public layout's <style> block). Fills take their --color-on-*
 * text; colored text on the white page is --color-heading or
 * --color-accent-text, never the raw brand color, so a business's own
 * colors stay readable. The muted text and rules are mixed from the text
 * and background colors. The markup is shared with every other theme, so
 * everything here hangs off neutral hook classes (site-topbar,
 * site-header, site-hero, service-offering, and so on) scoped to
 * data-theme="groundwork". Unlayered, so these rules win over Tailwind's
 * utilities. classic.css is linked on every public page too and supplies
 * the base hamburger, lightbox, and hero photo rules. Modelled on
 * shopkeeper.css.
 */

body[data-layout="public"][data-theme="groundwork"] {
  --gw-muted: color-mix(in srgb, var(--color-text) 62%, var(--color-background));
  --gw-rule: color-mix(in srgb, var(--color-text) 16%, var(--color-background));
  --gw-tint: color-mix(in srgb, var(--color-primary) 9%, var(--color-background));
  --gw-shadow: 0 4px 18px rgb(0 0 0 / 0.08);
  --gw-shadow-lift: 0 10px 30px rgb(0 0 0 / 0.14);
  --gw-radius: 1rem;
  --gw-width: 1200px;
  --gw-gutter: max(1.25rem, calc((100% - var(--gw-width)) / 2 + 1.25rem));

  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body[data-layout="public"][data-theme="groundwork"] a {
  color: inherit;
}

body[data-layout="public"][data-theme="groundwork"] main a.underline {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

body[data-layout="public"][data-theme="groundwork"] a:focus-visible,
body[data-layout="public"][data-theme="groundwork"] button:focus-visible,
body[data-layout="public"][data-theme="groundwork"] input:focus-visible,
body[data-layout="public"][data-theme="groundwork"] textarea:focus-visible {
  outline: 2px solid var(--color-accent-text);
  outline-offset: 2px;
}

body[data-layout="public"][data-theme="groundwork"] h1,
body[data-layout="public"][data-theme="groundwork"] h2,
body[data-layout="public"][data-theme="groundwork"] h3 {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Rounded corners and one rule color everywhere. */
body[data-layout="public"][data-theme="groundwork"] main .rounded {
  border-radius: 0.75rem;
}

body[data-layout="public"][data-theme="groundwork"] main .border {
  border-color: var(--gw-rule);
}

/* ---------- Buttons: solid primary, rounded; accent on the hero ---------- */

/* main a.site-button comes after main a.underline, so a section's button
   link (site-button underline) gets the button's look. */
body[data-layout="public"][data-theme="groundwork"] .site-button,
body[data-layout="public"][data-theme="groundwork"] main a.site-button,
body[data-layout="public"][data-theme="groundwork"] .merch-variant__add,
body[data-layout="public"][data-theme="groundwork"] .merch-cart__checkout {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

body[data-layout="public"][data-theme="groundwork"] main section > .site-button,
body[data-layout="public"][data-theme="groundwork"] main section > .reviews-actions > .site-button {
  align-self: flex-start;
}

body[data-layout="public"][data-theme="groundwork"] .site-button:hover,
body[data-layout="public"][data-theme="groundwork"] main a.site-button:hover,
body[data-layout="public"][data-theme="groundwork"] .merch-variant__add:hover,
body[data-layout="public"][data-theme="groundwork"] .merch-cart__checkout:not(:disabled):hover {
  background: var(--color-secondary);
  color: var(--color-on-secondary);
  box-shadow: var(--gw-shadow);
  transform: translateY(-1px);
}

/* ---------- Top bar: the address left, phone and email right (Theme header_topbar) ---------- */

body[data-layout="public"][data-theme="groundwork"] .site-topbar {
  padding: 0.55rem var(--gw-gutter);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 600;
  line-height: 1.4;
}

body[data-layout="public"][data-theme="groundwork"] .site-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
}

body[data-layout="public"][data-theme="groundwork"] .site-topbar__address {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

body[data-layout="public"][data-theme="groundwork"] .site-topbar__address svg {
  flex-shrink: 0;
}

/* The phone sits at the right on a wide screen, however many items there are. */
body[data-layout="public"][data-theme="groundwork"] .site-topbar__contact {
  margin-left: auto;
}

body[data-layout="public"][data-theme="groundwork"] .site-topbar a {
  text-decoration: none;
}

body[data-layout="public"][data-theme="groundwork"] .site-topbar a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* On a phone the bar shows just the phone (and email), centered. */
@media (max-width: 639px) {
  body[data-layout="public"][data-theme="groundwork"] .site-topbar__address {
    display: none;
  }

  body[data-layout="public"][data-theme="groundwork"] .site-topbar__inner {
    justify-content: center;
  }

  body[data-layout="public"][data-theme="groundwork"] .site-topbar__contact {
    margin-left: 0;
    text-align: center;
  }
}

/* ---------- Header name and logo: shown once the hero's name is under the header ----------
 * On the home page when it opens with the hero ([data-header-overlay]),
 * the hero already shows the name, so the header's stays hidden until
 * the hero's name has scrolled up under the sticky header
 * (site_header_controller.js sets data-past-hero-name), and fades back out
 * on the way up. It keeps its space, so the row never shifts; hidden also
 * takes the link out of the tab order until it shows. Every other page
 * shows it as usual. Like themes/shoply.css and themes/shopkeeper.css,
 * which use a fixed scroll distance instead. */

body[data-layout="public"][data-theme="groundwork"][data-header-overlay] .site-header__brand {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

body[data-layout="public"][data-theme="groundwork"][data-header-overlay] .site-header[data-past-hero-name] .site-header__brand {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

/* ---------- Header: white and roomy, plain links, a green button ---------- */

body[data-layout="public"][data-theme="groundwork"] .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.08);
}

body[data-layout="public"][data-theme="groundwork"] .site-header nav {
  max-width: var(--gw-width);
  margin: 0 auto;
  min-height: 5rem;
  padding-block: 1rem;
  row-gap: 0.5rem;
}

body[data-layout="public"][data-theme="groundwork"] .site-header__brand {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  gap: 0.7rem;
  text-decoration: none;
}

body[data-layout="public"][data-theme="groundwork"] .site-header__logo {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

body[data-layout="public"][data-theme="groundwork"] .site-header__links {
  gap: 0.25rem 1.75rem;
}

body[data-layout="public"][data-theme="groundwork"] .site-header__links a {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

body[data-layout="public"][data-theme="groundwork"] .site-header__links a:hover,
body[data-layout="public"][data-theme="groundwork"] .site-header__links a[aria-current="page"] {
  color: var(--color-heading);
  border-bottom-color: var(--color-accent);
}

/* The call-to-action: outside the links (like the cart), so it stays
   beside the hamburger on a phone; last in the row on a wide screen. */
body[data-layout="public"][data-theme="groundwork"] .site-header__cta {
  flex-shrink: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, box-shadow 0.15s;
}

body[data-layout="public"][data-theme="groundwork"] .site-header__cta:hover {
  background: var(--color-secondary);
  color: var(--color-on-secondary);
  box-shadow: var(--gw-shadow);
}

@media (min-width: 640px) {
  body[data-layout="public"][data-theme="groundwork"] .site-header__cta {
    order: 2;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }
}

/* ---------- Header: narrow-screen hamburger nav ----------
 * classic.css hides the toggle above the phone breakpoint and collapses
 * the links below it once site_header_controller.js sets [data-js]; this
 * only restyles the toggle and the open panel. */

body[data-layout="public"][data-theme="groundwork"] .site-header__toggle {
  border-radius: 0.5rem;
  color: var(--color-heading);
}

@media (max-width: 639px) {
  body[data-layout="public"][data-theme="groundwork"] .site-header nav {
    min-height: 4rem;
    padding-block: 0.6rem;
    gap: 0.5rem;
  }

  body[data-layout="public"][data-theme="groundwork"] .site-header__brand {
    font-size: 1.1rem;
  }

  body[data-layout="public"][data-theme="groundwork"] .site-header[data-compact] .site-header__logo {
    display: none;
  }

  body[data-layout="public"][data-theme="groundwork"] .site-header[data-js][data-open] .site-header__links[data-collapsible] {
    gap: 0;
    padding: 0.25rem 0 0.75rem;
    background: var(--color-background);
    border-top: 1px solid var(--gw-rule);
  }

  body[data-layout="public"][data-theme="groundwork"] .site-header[data-js][data-open] .site-header__links[data-collapsible] a {
    border-bottom: 1px solid var(--gw-rule);
  }

  body[data-layout="public"][data-theme="groundwork"] .site-header[data-js][data-open] .site-header__links[data-collapsible] .social-links a {
    border-bottom: 0;
  }
}

/* ---------- Hero: the photo under a translucent primary overlay ----------
 * One column: the pill, the heavy heading, the description, and the
 * buttons, with the quote card under them (Theme hero_quote_form). From
 * 900px up the card sits to the right of the text. Without a photo the
 * hero is a solid primary band. */

body[data-layout="public"][data-theme="groundwork"] .site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem var(--gw-gutter);
  background: var(--color-primary);
  color: var(--color-on-primary);
  text-align: left;
}

body[data-layout="public"][data-theme="groundwork"] .site-hero--photo {
  min-height: 28rem;
  color: var(--color-on-primary);
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__overlay {
  background: color-mix(in srgb, var(--color-primary) 70%, transparent);
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__content {
  align-items: flex-start;
  max-width: 46rem;
  gap: 1.25rem;
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__content > div {
  justify-content: flex-start;
  margin-top: 0.5rem;
}

body[data-layout="public"][data-theme="groundwork"] .site-hero h1 {
  color: inherit;
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

/* The logo and the location pill come first, ahead of the heading. */
body[data-layout="public"][data-theme="groundwork"] .site-hero__logo {
  order: -2;
  border-radius: 0.75rem;
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__location {
  order: -1;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__description {
  max-width: 36rem;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
}

/* The About summary in the hero (Theme hero_about) sits in a box of the
   brand's secondary color, so it reads over any photo. It is Markdown:
   space its paragraphs and lists, and keep links in the box's own color. */
body[data-layout="public"][data-theme="groundwork"] .site-hero__about {
  padding: 1.25rem 1.5rem;
  border-radius: var(--gw-radius);
  background: var(--color-secondary);
  color: var(--color-on-secondary);
  box-shadow: var(--gw-shadow-lift);
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__about > * + * {
  margin-top: 0.75em;
}

/* The hero text is light (300), so "bolder" would only reach 400. */
body[data-layout="public"][data-theme="groundwork"] .site-hero__about strong {
  font-weight: 700;
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__about a {
  color: inherit;
  text-decoration: underline;
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__about ul,
body[data-layout="public"][data-theme="groundwork"] .site-hero__about ol {
  padding-left: 1.25em;
}

/* Hero buttons are accent fills, which read against the green. */
body[data-layout="public"][data-theme="groundwork"] .site-hero .site-button,
body[data-layout="public"][data-theme="groundwork"] .site-hero a.site-button {
  padding: 0.9rem 1.8rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
}

body[data-layout="public"][data-theme="groundwork"] .site-hero .site-button:hover,
body[data-layout="public"][data-theme="groundwork"] .site-hero a.site-button:hover {
  background: var(--color-background);
  color: var(--color-heading);
}

/* The quote card: the Contact form on white. */
body[data-layout="public"][data-theme="groundwork"] .site-hero__quote {
  width: 100%;
  max-width: 34rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: var(--color-background);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.28);
  color: var(--color-text);
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__quote-title {
  margin-bottom: 1.1rem;
  color: var(--color-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__quote .contact-form {
  max-width: none;
  gap: 0.85rem;
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__quote textarea {
  height: 6.5rem;
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__quote .contact-form .site-button,
body[data-layout="public"][data-theme="groundwork"] .site-hero__quote .contact-form input[type="submit"] {
  align-self: stretch;
  width: 100%;
  padding: 0.95rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
}

body[data-layout="public"][data-theme="groundwork"] .site-hero__quote .contact-form input[type="submit"]:hover {
  background: var(--color-secondary);
  color: var(--color-on-secondary);
}

@media (min-width: 900px) {
  body[data-layout="public"][data-theme="groundwork"] .site-hero {
    padding-block: 3rem;
  }

  /* Both columns start at the top, just under the header, so the text
     doesn't drop to the middle of a tall quote card. */
  body[data-layout="public"][data-theme="groundwork"] .site-hero--quote {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
    gap: 3.5rem;
  }

  body[data-layout="public"][data-theme="groundwork"] .site-hero--quote .site-hero__quote {
    justify-self: end;
  }
}

@media (max-width: 639px) {
  body[data-layout="public"][data-theme="groundwork"] .site-hero {
    padding-block: 2rem;
  }

  body[data-layout="public"][data-theme="groundwork"] .site-hero__description {
    font-size: 1.1rem;
  }

  body[data-layout="public"][data-theme="groundwork"] .site-hero__about {
    padding: 1rem 1.15rem;
  }

  body[data-layout="public"][data-theme="groundwork"] .site-hero__quote {
    padding: 1.25rem;
  }
}

/* ---------- Sections and pages: one roomy column, titles over an accent bar ---------- */

body[data-layout="public"][data-theme="groundwork"] main > section:not(.site-hero),
body[data-layout="public"][data-theme="groundwork"] main > article,
body[data-layout="public"][data-theme="groundwork"] main > div.merch-page {
  width: 100%;
  max-width: var(--gw-width);
  margin-inline: auto;
  padding-block: 3.5rem;
  gap: 1.75rem;
}

body[data-layout="public"][data-theme="groundwork"] main > section:not(.site-hero) > h1,
body[data-layout="public"][data-theme="groundwork"] main > article > h1,
body[data-layout="public"][data-theme="groundwork"] .merch-page__title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
}

body[data-layout="public"][data-theme="groundwork"] .section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

body[data-layout="public"][data-theme="groundwork"] .section-title::after,
body[data-layout="public"][data-theme="groundwork"] .services-page > h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: 0.6rem;
  border-radius: 2px;
  background: var(--color-accent);
}

/* The service request form and the pages' text stay a readable width. */
body[data-layout="public"][data-theme="groundwork"] .service-page,
body[data-layout="public"][data-theme="groundwork"] .service-request {
  max-width: 48rem;
}

body[data-layout="public"][data-theme="groundwork"] .service-page__price,
body[data-layout="public"][data-theme="groundwork"] .job-posting__type {
  align-self: flex-start;
}

/* ---------- Service cards: the strongest part of the page after the hero ----------
 * One column on a phone, two from 640px, three from 1024px. The name's
 * link stretches over the whole card. */

body[data-layout="public"][data-theme="groundwork"] .services-list,
body[data-layout="public"][data-theme="groundwork"] .careers-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  body[data-layout="public"][data-theme="groundwork"] .services-list,
  body[data-layout="public"][data-theme="groundwork"] .careers-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body[data-layout="public"][data-theme="groundwork"] .services-list,
  body[data-layout="public"][data-theme="groundwork"] .careers-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body[data-layout="public"][data-theme="groundwork"] .service-offering,
body[data-layout="public"][data-theme="groundwork"] .job-posting,
body[data-layout="public"][data-theme="groundwork"] .review-card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--gw-rule);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--gw-radius);
  background: var(--color-background);
  box-shadow: var(--gw-shadow);
  gap: 0.75rem;
}

body[data-layout="public"][data-theme="groundwork"] .service-offering {
  transition: box-shadow 0.2s, transform 0.2s;
}

body[data-layout="public"][data-theme="groundwork"] .service-offering:hover,
body[data-layout="public"][data-theme="groundwork"] .service-offering:focus-within {
  box-shadow: var(--gw-shadow-lift);
  transform: translateY(-3px);
}

body[data-layout="public"][data-theme="groundwork"] .service-offering > a {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

body[data-layout="public"][data-theme="groundwork"] .service-offering > a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--gw-radius);
}

body[data-layout="public"][data-theme="groundwork"] .service-offering__price {
  align-self: flex-start;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--gw-tint);
  color: var(--color-heading);
  font-size: 0.8rem;
  font-weight: 700;
}

body[data-layout="public"][data-theme="groundwork"] .service-offering__excerpt {
  color: var(--gw-muted);
  font-size: 0.95rem;
}

body[data-layout="public"][data-theme="groundwork"] .service-offering::after {
  content: "Learn more \2192";
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--color-heading);
  font-size: 0.9rem;
  font-weight: 700;
}

body[data-layout="public"][data-theme="groundwork"] .job-posting__type {
  color: var(--color-heading);
  font-weight: 700;
}

body[data-layout="public"][data-theme="groundwork"] .review-card__stars {
  color: var(--color-accent-text);
}

/* ---------- Service request, contact, and review forms ---------- */

body[data-layout="public"][data-theme="groundwork"] .contact-form label,
body[data-layout="public"][data-theme="groundwork"] .contact-form .font-semibold {
  font-size: 0.9rem;
  font-weight: 700;
}

body[data-layout="public"][data-theme="groundwork"] main input[type="text"],
body[data-layout="public"][data-theme="groundwork"] main input[type="email"],
body[data-layout="public"][data-theme="groundwork"] main input[type="tel"],
body[data-layout="public"][data-theme="groundwork"] main input[type="number"],
body[data-layout="public"][data-theme="groundwork"] main select,
body[data-layout="public"][data-theme="groundwork"] main textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--gw-rule);
  border-radius: 0.5rem;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
}

body[data-layout="public"][data-theme="groundwork"] main input:focus,
body[data-layout="public"][data-theme="groundwork"] main select:focus,
body[data-layout="public"][data-theme="groundwork"] main textarea:focus {
  border-color: var(--color-primary);
}

body[data-layout="public"][data-theme="groundwork"] main [aria-invalid="true"] {
  border-color: #b91c1c;
}

body[data-layout="public"][data-theme="groundwork"] main input[type="submit"] {
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

body[data-layout="public"][data-theme="groundwork"] main input[type="submit"]:hover {
  background: var(--color-secondary);
  color: var(--color-on-secondary);
}

/* ---------- Hours and location ---------- */

body[data-layout="public"][data-theme="groundwork"] .hours-location__day {
  max-width: 24rem;
  border-bottom: 1px solid var(--gw-rule);
  padding-block: 0.4rem;
}

/* ---------- About: a rounded photo, beside the story on a wide screen ----------
 * The home About section's photo (and the /about page's) floats right from
 * 640px, with the story around it; flow-root keeps a tall photo inside the
 * section. On a phone it stays above the story. */

body[data-layout="public"][data-theme="groundwork"] .about-photo {
  height: auto;
  border-radius: var(--gw-radius);
  box-shadow: var(--gw-shadow);
}

@media (min-width: 640px) {
  body[data-layout="public"][data-theme="groundwork"] main > section:has(> .about-photo),
  body[data-layout="public"][data-theme="groundwork"] .about-page > div:has(> .about-photo) {
    display: flow-root;
  }

  body[data-layout="public"][data-theme="groundwork"] main > section > .about-photo {
    float: right;
    width: 24rem;
    max-width: 45%;
    margin: 0 0 1rem 2rem;
  }

  body[data-layout="public"][data-theme="groundwork"] .about-page > div > .about-photo {
    float: right;
    max-width: 50%;
    margin: 0 0 1rem 2rem;
  }

  body[data-layout="public"][data-theme="groundwork"] main > section:has(> .about-photo) > .section-title {
    margin-bottom: 1.5rem;
  }

  body[data-layout="public"][data-theme="groundwork"] main > section:has(> .about-photo) > .about-summary {
    display: block;
  }

  body[data-layout="public"][data-theme="groundwork"] main > section:has(> .about-photo) > .site-button {
    margin-top: 1.5rem;
  }
}

/* ---------- Gallery and blog: rounded photos ---------- */

body[data-layout="public"][data-theme="groundwork"] .gallery-grid img,
body[data-layout="public"][data-theme="groundwork"] main a > img.object-cover {
  border-radius: var(--gw-radius);
}

body[data-layout="public"][data-theme="groundwork"] .gallery-grid a {
  overflow: hidden;
  border-radius: var(--gw-radius);
  box-shadow: var(--gw-shadow);
}

body[data-layout="public"][data-theme="groundwork"] .blog-card__title {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

body[data-layout="public"][data-theme="groundwork"] .blog-card__more {
  color: var(--color-heading);
}

/* ---------- Store: product cards ---------- */

body[data-layout="public"][data-theme="groundwork"] .merch-list {
  gap: 1.25rem;
}

body[data-layout="public"][data-theme="groundwork"] .merch-product {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gw-rule);
  border-radius: var(--gw-radius);
  background: var(--color-background);
  box-shadow: var(--gw-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

body[data-layout="public"][data-theme="groundwork"] .merch-product:hover {
  box-shadow: var(--gw-shadow-lift);
  transform: translateY(-3px);
}

body[data-layout="public"][data-theme="groundwork"] .merch-product__link {
  gap: 0;
  text-decoration: none;
}

body[data-layout="public"][data-theme="groundwork"] .merch-product__photo {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--gw-tint);
}

body[data-layout="public"][data-theme="groundwork"] .merch-product__name,
body[data-layout="public"][data-theme="groundwork"] .merch-tile__name {
  padding: 0.75rem 1rem 0;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

body[data-layout="public"][data-theme="groundwork"] .merch-product__price {
  padding: 0.2rem 1rem 1rem;
  color: var(--color-heading);
  font-weight: 800;
}

body[data-layout="public"][data-theme="groundwork"] .merch-group__title {
  font-size: 1.4rem;
}

body[data-layout="public"][data-theme="groundwork"] .merch-group__title a {
  text-decoration: none;
}

body[data-layout="public"][data-theme="groundwork"] .merch-page__description,
body[data-layout="public"][data-theme="groundwork"] .merch-page__empty,
body[data-layout="public"][data-theme="groundwork"] .merch-cart__empty {
  color: var(--gw-muted);
}

body[data-layout="public"][data-theme="groundwork"] .merch-page__categories {
  gap: 0.5rem;
}

body[data-layout="public"][data-theme="groundwork"] .merch-page__categories a {
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: var(--gw-tint);
  color: var(--color-heading);
  font-weight: 700;
  text-decoration: none;
}

body[data-layout="public"][data-theme="groundwork"] .merch-page__categories a:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

body[data-layout="public"][data-theme="groundwork"] .merch-page__back,
body[data-layout="public"][data-theme="groundwork"] .merch-product-page__back {
  align-self: flex-start;
  color: var(--gw-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

body[data-layout="public"][data-theme="groundwork"] .merch-page__back::before,
body[data-layout="public"][data-theme="groundwork"] .merch-product-page__back::before {
  content: "\2190\00a0";
}

/* ---------- Product page: photos beside the details on a wide screen ---------- */

body[data-layout="public"][data-theme="groundwork"] .merch-product-page {
  width: 100%;
  max-width: var(--gw-width);
  margin-inline: auto;
  padding-block: 2.5rem 4rem;
  gap: 1rem;
}

body[data-layout="public"][data-theme="groundwork"] .merch-product-page__photo {
  width: 100%;
  height: auto;
  border-radius: var(--gw-radius);
  background: var(--gw-tint);
}

body[data-layout="public"][data-theme="groundwork"] .merch-product-page__title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
}

body[data-layout="public"][data-theme="groundwork"] .merch-product-page__price {
  color: var(--color-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

body[data-layout="public"][data-theme="groundwork"] .merch-product-page__variants {
  gap: 0.6rem;
}

body[data-layout="public"][data-theme="groundwork"] .merch-variant {
  gap: 1rem;
  padding: 0.6rem 0.6rem 0.6rem 1rem;
  border: 1px solid var(--gw-rule);
  border-radius: 0.75rem;
}

body[data-layout="public"][data-theme="groundwork"] .merch-variant__label {
  flex: 1 1 auto;
  font-weight: 700;
}

body[data-layout="public"][data-theme="groundwork"] .merch-variant__price,
body[data-layout="public"][data-theme="groundwork"] .merch-variant__sold-out {
  color: var(--gw-muted);
}

body[data-layout="public"][data-theme="groundwork"] .merch-variant__add {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* ---------- Cart: a rounded, shadowed panel with boxed fields ---------- */

body[data-layout="public"][data-theme="groundwork"] .merch-cart {
  width: 100%;
  max-width: 38rem;
  margin-top: 1.5rem;
  padding: 1.75rem;
  gap: 1rem;
  border: 1px solid var(--gw-rule);
  border-radius: 1.25rem;
  background: var(--color-background);
  box-shadow: var(--gw-shadow);
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__title,
body[data-layout="public"][data-theme="groundwork"] .merch-checkout__heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__item {
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gw-rule);
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__thumb,
body[data-layout="public"][data-theme="groundwork"] .merch-cart__thumb img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 0.75rem;
  object-fit: cover;
  overflow: hidden;
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__step {
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--gw-rule);
  border-radius: 0.5rem;
  background: none;
  color: inherit;
  cursor: pointer;
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__step:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__subtotal,
body[data-layout="public"][data-theme="groundwork"] .merch-cart__shipping,
body[data-layout="public"][data-theme="groundwork"] .merch-cart__total {
  text-align: right;
}

@media (max-width: 639px) {
  body[data-layout="public"][data-theme="groundwork"] .merch-cart__item {
    grid-template-columns: 96px 1fr;
  }
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__remove {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gw-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__errors,
body[data-layout="public"][data-theme="groundwork"] .merch-checkout__errors {
  border-color: currentColor;
  border-radius: 0.75rem;
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__form,
body[data-layout="public"][data-theme="groundwork"] .merch-checkout__form {
  max-width: none;
  gap: 0.85rem;
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__field label,
body[data-layout="public"][data-theme="groundwork"] .merch-checkout__field label {
  font-size: 0.875rem;
  font-weight: 700;
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__checkout {
  align-self: stretch;
  margin-top: 0.5rem;
  padding: 0.95rem;
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__checkout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__continue {
  align-self: stretch;
  padding: 0.95rem;
  border-radius: 0.5rem;
  box-shadow: inset 0 0 0 2px var(--color-primary);
  color: var(--color-heading);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

body[data-layout="public"][data-theme="groundwork"] .merch-order-status {
  width: 100%;
  margin-inline: auto;
  padding-block: 3rem;
}

/* ---------- Footer: a dark secondary band ---------- */

body[data-layout="public"][data-theme="groundwork"] .site-footer {
  padding: 3rem var(--gw-gutter);
  border: 0;
  background: var(--color-secondary);
  color: var(--color-on-secondary);
}

body[data-layout="public"][data-theme="groundwork"] .site-footer__name {
  color: inherit;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

body[data-layout="public"][data-theme="groundwork"] .site-footer a {
  text-decoration: none;
}

body[data-layout="public"][data-theme="groundwork"] .site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (prefers-reduced-motion: reduce) {
  body[data-layout="public"][data-theme="groundwork"] .site-button,
  body[data-layout="public"][data-theme="groundwork"] .site-header__cta,
  body[data-layout="public"][data-theme="groundwork"] .service-offering,
  body[data-layout="public"][data-theme="groundwork"] .merch-product,
  body[data-layout="public"][data-theme="groundwork"] .merch-variant__add,
  body[data-layout="public"][data-theme="groundwork"] .merch-cart__checkout {
    transition: none;
    transform: none;
  }
}

body[data-layout="public"][data-theme="groundwork"] .merch-cart__checkout[hidden] {
  display: none;
}
