/* Bramwell-McKay main site: the few components the brick staining stylesheet
   (styles.css, copied unchanged) does not have. Tokens come from styles.css.
   No red anywhere, no corner clips on photographs.
   NO BOX WITH ONE HIGHLIGHTED SIDE (Vazul, Nov 29 2026): a card, panel or band
   gets an accent on every side or on none. No gold top line, no side stripe,
   no hover bar on one edge. Hairline dividers between rows are fine. */

/* ---------- Card bands (services, signs, benefits, cities) ---------- */
.svc-band {
  padding: 64px 0;
  background: var(--white);
}

.svc-band--light {
  background: var(--light-band);
}

.svc-band h2 {
  max-width: 860px;
  margin-bottom: 1rem;
}

.band-intro,
.band-outro {
  max-width: 760px;
}

.band-intro p,
.band-outro p {
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.band-intro ul,
.band-outro ul {
  margin: 0 0 1rem 1.2rem;
  line-height: 1.7;
}

.band-outro {
  margin-top: 2rem;
}

.band-intro a,
.band-outro a,
.svc-card p a {
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.svc-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .svc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .svc-cards--3,
  .svc-cards--1 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .svc-cards--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 26px 26px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.svc-band:not(.svc-band--light) .svc-card {
  background: var(--light-band);
}

.svc-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: var(--charcoal);
}

.svc-card h3 a {
  color: inherit;
}

/* The whole card is the link target when the title links somewhere. */
.svc-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.svc-card:has(h3 a):hover,
.svc-card:has(h3 a):focus-within {
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(29, 29, 30, 0.1);
  transform: translateY(-2px);
}

.svc-card p,
.svc-card li {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink);
}

.svc-card p + p {
  margin-top: 0.6rem;
}

.svc-card ul {
  margin: 0.5rem 0 0 1.1rem;
}

.svc-card__go {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.svc-card__go::after {
  content: " \2192";
}

.svc-card time {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

/* Numbered cards (consulting: assess, explain, guide) */
.svc-card__n {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-text);
  margin-bottom: 1.1rem;
}

/* Photo cards on the home page service grid */
.svc-card--photo {
  padding: 0;
  overflow: hidden;
}

.svc-card--photo figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--charcoal);
}

.svc-card--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-card--photo .svc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 24px;
}

/* ---------- Process band on service pages ---------- */
.process--main h2 {
  margin-bottom: 1rem;
}

.process--main .band-intro,
.process--main .band-outro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.process--main .proc-panel p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Prose that follows a band (no aside) ---------- */
.page-body--follow {
  padding-top: 48px;
}

.page-body + .page-body--follow {
  padding-top: 0;
}

/* ---------- Aside: contact card and section links ---------- */
.aside-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  padding: 28px 26px;
}

.aside-card__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.aside-card__phone {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.aside-card__phone a {
  color: var(--white);
}

.aside-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.1rem;
}

.aside-card .btn {
  width: 100%;
  text-align: center;
}

.aside-links h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.aside-links .related-links {
  display: grid;
  gap: 2px;
  margin: 0;
}

/* ---------- CTA band second button ---------- */
.cta-band .cta-band__call {
  margin-left: 12px;
}

@media (max-width: 520px) {
  .cta-band .cta-band__call {
    margin: 12px 0 0;
  }
}

/* ---------- Home: service area strip ---------- */
.area-strip {
  padding: 64px 0;
  background: var(--white);
}

.area-strip .section-subtitle {
  max-width: 760px;
}

/* ---------- Team grid on About ---------- */
.team-band {
  padding: 64px 0;
  background: var(--light-band);
}

/* ---------- FAQ on hand-written pages uses .faq from styles.css ---------- */

/* ---------- Fixes on borrowed components ---------- */
/* The intro photo box is 1332 x 685 on the staining site; hold that shape
   whatever the source photo's own ratio is. */
.intro-band__photo img {
  width: 100%;
  aspect-ratio: 1332 / 685;
  object-fit: cover;
}

/* Process panels: fill the row when there are three or four steps. */
@media (min-width: 1024px) {
  .proc-panels.proc-panels--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proc-panels.proc-panels--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .proc-panels.proc-panels--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Second button on the dark CTA band */
.cta-band .btn-secondary.cta-band__call {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.cta-band .btn-secondary.cta-band__call:hover {
  background: var(--white);
  color: var(--charcoal);
}

/* No JavaScript: show the hero text without the entrance. */
html:not(.hdr-over) .hero-cine .rv__in {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- One-sided accents removed from borrowed components ---------- */
/* Footer: the 3px gold line across its top edge. */
.site-footer {
  border-top: 0;
}

/* Process panels: the gold bar that wiped across the top edge on hover. The
   lift and the numeral already answer the pointer. */
.proc-panel__rule {
  display: none;
}

/* ==========================================================================
   HEADER MENU (Nov 29 2026, Kate: one big panel with every service, grouped,
   gold category headings). Markup comes from NAV in build.py; behavior is
   js/nav.js. Without JavaScript the panels open on hover and keyboard focus.
   Classes are mm-* so none of the staining site's menu rules apply.
   ========================================================================== */
.mm-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mm-caret {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mm.open > .mm-tab .mm-caret,
.mm-sec.open > .mm-sec__toggle .mm-caret {
  transform: rotate(180deg);
}

.mm-panel {
  --ink: #333333;
}

.mm-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links .mm-panel a {
  display: block;
  min-height: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
}

.mm-group__label,
.nav-links .mm-panel a.mm-group__label {
  display: block;
  color: var(--gold-text);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.nav-links .mm-panel a.mm-sec__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.mm-arrow {
  flex-shrink: 0;
  color: var(--gold-hover);
  transition: transform 0.2s ease;
}

.nav-links .mm-panel a[aria-current="page"] {
  color: var(--charcoal);
  font-weight: 600;
}

.mm-tab:focus-visible,
.mm-sec__toggle:focus-visible,
.nav-links .mm-panel a:focus-visible,
.nav-links > .nav-item > a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Desktop: panels under the bar ---------- */
@media (min-width: 1024px) {
  .mm-tab {
    height: 100%;
  }

  .mm-tab:hover,
  .mm.open > .mm-tab,
  .mm.is-current > .mm-tab,
  .nav-links > .nav-item > a[aria-current="page"] {
    color: var(--gold-text);
  }

  .mm-panel {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--hairline), 0 30px 54px rgba(29, 29, 30, 0.16);
    max-height: calc(100vh - var(--nav-height));
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    /* Nothing is animated on the closed state, so the panel leaves at once. */
  }

  .mm.open > .mm-panel,
  .nav-links:not(.mm-js) .mm:hover > .mm-panel,
  .nav-links:not(.mm-js) .mm:focus-within > .mm-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.16s ease-out, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mm-sec__toggle {
    display: none;
  }

  .mm-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 28px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 26px 40px 24px;
  }

  .mm-block {
    display: flex;
    flex-direction: column;
    gap: 26px;
    min-width: 0;
  }

  .mm-block--2 { grid-column: span 2; }
  .mm-block--3 { grid-column: span 3; }
  .mm-block--4 { grid-column: span 4; }

  .nav-links .mm-panel a.mm-sec__title {
    font-size: 1.02rem;
    padding: 0 0 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--hairline);
  }

  .mm-sec__title:hover .mm-arrow {
    transform: translateX(4px);
  }

  .mm-cols {
    display: grid;
    column-gap: 28px;
  }

  .mm-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mm-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .mm-group + .mm-group {
    margin-top: 18px;
  }

  .mm-group__label {
    margin-bottom: 6px;
  }

  .nav-links .mm-panel .mm-group li a {
    padding: 3.5px 0;
  }

  .nav-links .mm-panel .mm-group li a:hover,
  .nav-links .mm-panel a.mm-group__label:hover {
    color: var(--charcoal);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
  }

  .mm-foot {
    background: var(--light-band);
  }

  .mm-foot__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 40px;
  }

  .mm-foot p {
    color: var(--ink-soft);
    font-size: 0.9rem;
  }

  .mm-foot__act {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .nav-links .mm-panel a.mm-foot__tel {
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
  }

  .nav-links .mm-panel a.mm-foot__cta {
    background: var(--gold);
    border-radius: 2px;
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 10px 20px;
    transition: background-color 0.2s ease;
  }

  .nav-links .mm-panel a.mm-foot__cta:hover {
    background: var(--gold-hover);
  }

  /* Small dropdown (About): hangs under its own tab. */
  .mm--drop {
    position: relative;
  }

  .mm--drop > .mm-panel {
    top: calc(50% + var(--nav-height) / 2);
    left: 50%;
    right: auto;
    width: max-content;
    margin-left: -170px;
    border-radius: 0 0 4px 4px;
  }

  .mm-drop {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, auto));
    column-gap: 44px;
    padding: 26px 32px 28px;
  }

  .mm-drop .mm-group + .mm-group {
    margin-top: 0;
  }

  /* Home page: the clear header turns its links white over the photo. The
     tabs follow the same value; the panels keep real ink. */
  html.hdr-over .site-header .mm-panel {
    --ink: #333333;
  }
}

/* Narrow laptops: four tabs, the button and the full logo share 1024px. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-links {
    justify-content: flex-end;
    gap: 22px;
  }

  .nav-links > .nav-item > a,
  .mm-tab {
    font-size: 0.9rem;
    letter-spacing: 0.01em;
  }

  .nav-item--cta {
    margin-left: 0;
  }

  .nav-links > .nav-item--cta > a {
    padding: 10px 22px;
  }

  .nav-links .mm-panel a.mm-sec__title {
    font-size: 0.95rem;
  }

  /* Keep the About dropdown on the screen. */
  .mm--drop > .mm-panel {
    left: auto;
    right: -72px;
    margin-left: 0;
  }
}

@media (min-width: 1200px) {
  .mm-tab {
    font-size: 1.02rem;
    letter-spacing: 0.03em;
  }

  .mm-inner {
    column-gap: 40px;
  }

  .mm-cols {
    column-gap: 40px;
  }

  .nav-links .mm-panel a {
    font-size: 0.9rem;
  }
}

/* ---------- Phones and tablets: two-level accordion in the overlay ---------- */
@media (max-width: 1023px) {
  .nav-links {
    max-height: calc(100dvh - var(--nav-height));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links > .nav-item > a,
  .mm-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    padding: 16px 24px;
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: left;
  }

  .mm-caret {
    width: 13px;
    height: 13px;
    color: var(--ink-soft);
  }

  /* Rows open by growing a grid track, so height animates without measuring. */
  .mm-panel,
  .mm-sec__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mm.open > .mm-panel,
  .mm-sec.open > .mm-sec__body {
    grid-template-rows: 1fr;
  }

  .mm-clip {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: visibility 0s linear 0.28s;
  }

  .mm.open > .mm-panel > .mm-clip,
  .mm-sec.open > .mm-sec__body > .mm-clip {
    visibility: visible;
    transition-delay: 0s;
  }

  .mm-panel {
    background: var(--light-band);
  }

  .mm-block {
    display: contents;
  }

  .mm-sec {
    border-top: 1px solid var(--hairline);
  }

  .mm-sec__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 14px 24px 14px 40px;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }

  .mm-sec__body {
    background: var(--white);
  }

  .nav-links .mm-panel a.mm-sec__title {
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 24px 12px 40px;
    font-size: 0.95rem;
  }

  .mm-group__label,
  .nav-links .mm-panel a.mm-group__label {
    padding: 16px 24px 6px 40px;
  }

  .nav-links .mm-panel .mm-group li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 24px 9px 40px;
    font-size: 0.95rem;
  }

  .mm-sec .mm-cols {
    padding-bottom: 10px;
  }

  .mm-drop {
    padding: 2px 0 12px;
  }

  .mm-foot {
    display: none;
  }

  /* The fixed call bar would sit on the last rows of an open menu. */
  body:has(.nav-links.open) .mobile-cta {
    transform: translateY(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-panel,
  .mm-sec__body,
  .mm-clip,
  .mm-caret,
  .mm-arrow,
  .mm.open > .mm-panel {
    transition: none !important;
  }
}

/* ---------- Kate's Nov 30 menu: one-column Consulting list, visual panels for
   Masonry Staining and Portfolio, the About "Book a Lunch and Learn" row.
   Panels have an even outline (the shared .mm-panel shadow) and no one-sided
   accents. ---------- */
.mm-feature__title {
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-weight: 600;
}

.mm-feature__text,
.mm-feature__note {
  color: var(--ink-soft);
}

.nav-links .mm-panel a.mm-feature__cta,
.nav-links .mm-panel a.mm-drop__btn {
  display: inline-block;
  background: var(--gold);
  border-radius: 2px;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.nav-links .mm-panel a.mm-feature__cta:hover,
.nav-links .mm-panel a.mm-drop__btn:hover {
  background: var(--gold-hover);
}

@media (min-width: 1024px) {
  .mm-drop--1 { grid-template-columns: minmax(230px, auto); }
  .mm-drop--3 { grid-template-columns: repeat(3, minmax(140px, auto)); }

  .mm-drop .mm-group li a {
    padding: 4px 0;
  }

  .nav-links .mm-panel .mm-drop .mm-group li a:hover,
  .nav-links .mm-panel .mm-feature__links a:hover {
    color: var(--charcoal);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
  }

  .mm-drop__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 32px;
    background: var(--light-band);
  }

  .mm-drop__cta .mm-group__label {
    margin: 0;
  }

  .nav-links .mm-panel a.mm-drop__btn {
    font-size: 0.86rem;
    padding: 10px 20px;
  }

  /* Each small panel hangs where it fits under its own tab. */
  .mm--drop-consulting > .mm-panel {
    left: 0;
    margin-left: -28px;
  }

  #mm-staining {
    margin-left: -250px;
  }

  #mm-portfolio,
  .mm--drop-about > .mm-panel {
    left: auto;
    right: -40px;
    margin-left: 0;
  }

  .mm-feature {
    display: grid;
    grid-template-columns: 210px 260px;
    gap: 22px;
    padding: 22px 24px 24px;
  }

  .mm-feature__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 2px;
  }

  .mm-feature__title {
    font-size: 1.02rem;
    margin-bottom: 6px;
  }

  .mm-feature__text {
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .mm-feature__links li a {
    padding: 3px 0;
  }

  .mm-feature__note {
    font-size: 0.75rem;
    margin-top: 8px;
  }

  .nav-links .mm-panel a.mm-feature__cta {
    margin-top: 14px;
    font-size: 0.84rem;
    padding: 9px 18px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .mm--drop-about > .mm-panel,
  #mm-portfolio {
    right: -24px;
  }

  #mm-staining {
    margin-left: -300px;
  }
}

@media (max-width: 1023px) {
  .mm-feature__media,
  .mm-feature__note {
    display: none;
  }

  .mm-feature__body {
    padding: 4px 24px 18px 40px;
  }

  .mm-feature__title {
    font-size: 0.95rem;
    padding-top: 10px;
  }

  .mm-feature__text {
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 4px 0 6px;
  }

  .nav-links .mm-panel .mm-feature__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.95rem;
  }

  .nav-links .mm-panel a.mm-feature__cta,
  .nav-links .mm-panel a.mm-drop__btn {
    margin-top: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .mm-drop__cta {
    padding: 8px 24px 20px 40px;
  }

  .mm-drop__cta .mm-group__label {
    padding: 8px 0 6px;
  }
}

/* ---------- Services tabs (Nov 30 2026, Intertek's pattern from Kate): two
   vertical tabs on the left (Residential, Commercial), the chosen tab's links
   on the right under gold headings. The selected tab is a filled block, never
   a one-sided bar. Phones: the tabs become accordion rows. ---------- */
.mm-vtab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-heading);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.mm-vtab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.mm-tp__blurb {
  color: var(--ink-soft);
}

@media (min-width: 1024px) {
  /* The tab column's band runs to the left edge of the screen; the tabs and
     the lists still line up with the page's max width. */
  .mm-tabs {
    display: grid;
    grid-template-columns: calc(max(0px, (100% - var(--max-width)) / 2) + 240px) minmax(0, 1fr);
  }

  .mm-tablist {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 26px 16px;
    background: var(--light-band);
  }

  .mm-vtab {
    max-width: 200px;
    padding: 15px 16px 15px 18px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .mm-vtab .mm-arrow {
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.2s ease;
  }

  .mm-vtab:hover {
    color: var(--charcoal);
  }

  .mm-vtab[aria-selected="true"] {
    background: var(--white);
    color: var(--charcoal);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--hairline);
  }

  .mm-vtab[aria-selected="true"] .mm-arrow {
    opacity: 1;
  }

  .mm-tpanes {
    min-width: 0;
    max-width: calc(var(--max-width) - 240px);
    padding: 26px 40px 26px;
  }

  .mm-js .mm-tp:not(.is-on) {
    display: none;
  }

  .mm-tp .nav-links .mm-panel a.mm-sec__title,
  .nav-links .mm-panel .mm-tp a.mm-sec__title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .mm-tp__blurb {
    font-size: 0.88rem;
    margin: 0 0 22px;
  }

  .mm-tp .mm-group__label {
    margin-bottom: 8px;
  }

  /* Dark version (navy panel, Intertek-like): set 'theme': 'dark' on the
     Services entry in NAV (build.py). Off by default so Services matches the
     other light panels. */
  .mm-panel.mm-dark {
    --ink: rgba(255, 255, 255, 0.86);
    background: var(--navy);
    box-shadow: 0 30px 54px rgba(29, 29, 30, 0.22);
  }

  .mm-dark .mm-tablist {
    background: var(--navy-hover);
  }

  .mm-dark .mm-vtab {
    color: rgba(255, 255, 255, 0.78);
  }

  .mm-dark .mm-vtab:hover {
    color: var(--white);
  }

  .mm-dark .mm-vtab[aria-selected="true"] {
    background: var(--navy);
    color: var(--white);
    box-shadow: none;
  }

  .mm-dark .mm-group__label,
  .nav-links .mm-dark a.mm-group__label {
    color: var(--gold);
  }

  .nav-links .mm-dark a.mm-sec__title,
  .nav-links .mm-dark a[aria-current="page"] {
    color: var(--white);
  }

  .mm-dark .mm-tp__blurb {
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-links .mm-panel.mm-dark .mm-group li a:hover,
  .nav-links .mm-panel.mm-dark a.mm-group__label:hover {
    color: var(--white);
  }

  .mm-dark .mm-foot {
    background: var(--navy-hover);
  }

  .mm-dark .mm-foot p {
    color: rgba(255, 255, 255, 0.75);
  }

  .nav-links .mm-panel.mm-dark a.mm-foot__tel {
    color: var(--white);
  }
}

@media (max-width: 1023px) {
  .mm-tablist,
  .mm-tp__blurb {
    display: none;
  }
}

/* ---------- Home page type cues from Kate's Dec 1 2026 email: bold
   headline, italic subline, italic underlined sub-heads (the underline is a
   text decoration, not a box edge). ---------- */
.hero-full.hero-cine .hero-full__display--bold {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-full__sub--em {
  font-style: italic;
}

.h-em {
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.h-bold,
.svc-band h2.h-bold,
section h2.h-bold {
  font-weight: 700;
}

/* ---------- Contrast and target fixes from the launch accessibility pass
   (axe-core 4.10, Dec 2 2026). Gold that is read as text on white uses
   --gold-text (5.0:1); the plain --gold stays for rules, buttons and the
   header over the home photo. ---------- */
html:not(.hdr-over) .nav-logo .logo-sub {
  color: var(--gold-text);
}

.nav-links > .nav-item--cta > a[aria-current="page"] {
  color: var(--white);
}

.route--form .route__label {
  color: var(--gold-text);
}

.route--call .route__label {
  color: #E0BE7A;
}

/* Over the home photo the tabs are white; a hover keeps a light gold. */
html.hdr-over .site-header .mm-tab:hover {
  color: var(--gold);
}

@media (min-width: 1024px) {
  .nav-links .mm-panel .mm-feature__links li a {
    padding: 5px 0;
    min-height: 24px;
  }
}

/* The certifications strip scrolls sideways when motion is reduced, so it
   takes keyboard focus (home.html). */
.affil-marquee:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- Photo heroes: the outline button sits on a dark photograph ---------- */
.page-hero--photo .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.page-hero--photo .btn-secondary:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--charcoal);
}
