/* ==================================================================
   Inner pages in the Modulo baseline (loads with home-2.css everywhere).
   ================================================================== */

.rt2-h1--page {
  font-size: clamp(2.75rem, 1rem + 5vw, 6rem);
  letter-spacing: -0.05em;
}

.rt2-hero--page .rt2-hero__title {
  padding: 48px var(--rt2-inset) 36px;
}

.rt2-hero--page .rt2-hero__title .rt2-h1 {
  max-width: 16ch;
}

/* Block-built label cells (archives, singles) */
.rt2-hero__labels .rt2-cell.wp-block-group {
  gap: 6px;
}

.rt2-hero__labels .rt2-cell p,
.rt2-hero__labels .rt2-cell .wp-block-post-terms,
.rt2-hero__labels .rt2-cell .wp-block-post-date {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

.rt2-hero__labels a {
  color: var(--rt2-fg);
}

.rt2-figure--hero.wp-block-post-featured-image img {
  aspect-ratio: 1658 / 1060;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Cells: numbered items with a title and a line of copy */
.rt2-cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rt2-cells--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rt2-cells--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rt2-cellcard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 300px;
  padding: 24px var(--rt2-inset) 32px;
  border-right: 1px solid var(--rt2-line);
  border-bottom: 1px solid var(--rt2-line);
}

.rt2-cells > .rt2-cellcard:last-child,
.rt2-cells:not(.rt2-cells--2):not(.rt2-cells--3) > .rt2-cellcard:nth-child(4n),
.rt2-cells--2 > .rt2-cellcard:nth-child(2n),
.rt2-cells--3 > .rt2-cellcard:nth-child(3n) {
  border-right: 0;
}

.rt2-cellcard .rt2-h3 {
  margin-top: auto;
}

.rt2-cellcard .rt2-body {
  max-width: 40ch;
}

.rt2-cellcard--lead {
  grid-column: span 2;
  justify-content: flex-start;
}

.rt2-cellcard--lead .rt2-h2 {
  margin-top: 24px;
}

/* People */
.rt2-person .rt2-label {
  margin-top: 6px;
}

.rt2-person .rt2-body {
  margin-top: 12px;
}

/* Long copy from the editor */
.rt2-prose-row .rt2-cell {
  padding-top: 40px;
  padding-bottom: 56px;
}

.rt2-prose > *:not(:first-child) {
  margin-top: 1.25em;
}

.rt2-prose p,
.rt2-prose li {
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--rt2-fg-60);
  max-width: 64ch;
}

.rt2-prose h2,
.rt2-prose h3 {
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--rt2-fg);
  margin-top: 2em;
}

.rt2-prose a {
  color: var(--rt2-link);
  text-decoration: underline;
}

.rt2-prose img,
.rt2-prose figure {
  max-width: 100%;
  height: auto;
}

/* Project details (rt/project-details renders a dl) become a four-column sheet */
.rt2 .rt-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--rt2-line);
}

.rt2 .rt-details__term,
.rt2 .rt-details__value {
  margin: 0;
}

.rt2 .rt-details__term {
  display: none;
}

.rt2 .rt-details__value {
  position: relative;
  min-height: 140px;
  padding: 44px var(--rt2-inset) 20px;
  border-right: 1px solid var(--rt2-line);
  border-bottom: 1px solid var(--rt2-line);
  font-size: 1.125rem;
  line-height: 1.3;
}

.rt2 .rt-details__value:nth-of-type(4n) {
  border-right: 0;
}

.rt2 .rt-details__value::before {
  content: attr(data-term);
  position: absolute;
  top: 16px;
  left: var(--rt2-inset);
  font-family: var(--rt2-cond);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rt2-fg-60);
}

/* Highlights (rt/project-highlights) and gallery (rt/project-gallery) */
.rt2 .rt-highlights__heading {
  display: none;
}

.rt2 .rt-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rt2 .rt-highlights__item {
  padding: 24px var(--rt2-inset) 32px;
  border-right: 1px solid var(--rt2-line);
  border-bottom: 1px solid var(--rt2-line);
  border-radius: 0;
  background: transparent;
}

.rt2 .rt-highlights__item:nth-child(4n) {
  border-right: 0;
}

.rt2 .rt-highlights__title {
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.rt2 .rt-highlights__text {
  margin: 0;
  color: var(--rt2-fg-60);
}

.rt2 .rt-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rt2 .rt-gallery__item {
  margin: 0;
  padding: var(--rt2-inset);
  border-right: 1px solid var(--rt2-line);
  border-bottom: 1px solid var(--rt2-line);
}

.rt2 .rt-gallery li:nth-child(2n) .rt-gallery__item {
  border-right: 0;
}

.rt2 .rt-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.rt2 .rt-gallery__caption {
  margin-top: 10px;
  font-family: var(--rt2-cond);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rt2-fg-60);
}

/* Query grids of cards */
.rt2-cards .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt2-cards .wp-block-post-template > li {
  margin: 0;
}

.rt2-card--post {
  height: 100%;
}

.rt2-cards .wp-block-post-template > li:nth-child(3n) .rt2-card--post {
  border-right: 0;
}

.rt2-card--post .rt2-card__media {
  margin: 0;
  overflow: hidden;
}

.rt2-card--post .rt2-card__media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 600ms var(--rt2-ease);
}

.rt2-card--post:hover .rt2-card__media img {
  transform: scale(1.02);
}

.rt2-card--post .rt2-card__meta > * {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.rt2-card--post .wp-block-post-terms a,
.rt2-card--post .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

.rt2-card--post .wp-block-post-title {
  margin-top: 8px;
}

.rt2-card--post .rt2-card__tags {
  margin-top: 8px;
}

.rt2-empty {
  grid-column: 1 / -1;
  padding: 40px var(--rt2-inset);
}

.rt2-pagination {
  display: flex;
  justify-content: space-between;
  padding: 16px var(--rt2-inset);
  border-top: 1px solid var(--rt2-line);
}

.rt2-pagination a {
  color: var(--rt2-fg);
}

/* Career rows reuse the service row */
.rt2-service--career .rt2-service__index {
  display: flex;
  gap: 6px;
}

.rt2-service--career .rt2-service__index a {
  color: inherit;
}

.rt2-service--career .wp-block-post-title {
  margin: 0;
}

.rt2-service--career .wp-block-post-title a {
  color: inherit;
}

.rt2-service--career .rt2-service__more {
  justify-content: flex-end;
}

/* Next project band */
.rt2-next__row .rt2-cell {
  padding: 56px var(--rt2-inset) 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rt2-next__title {
  margin: 8px 0 0;
}

.rt2-next__title a {
  color: inherit;
  text-decoration: none;
}

.rt2-next__town a {
  color: inherit;
}

.rt2-next__media {
  margin: 0;
}

.rt2-next__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Contact band on inner pages */
.rt2-cta {
  background: var(--rt2-sunken);
}

.rt2-cta .rt2-contact__title {
  padding: 72px var(--rt2-inset) 72px;
}

.rt2-cta .rt2-contact__aside {
  padding-top: 72px;
}

.rt2-cta .rt2-contact__aside .rt2-btn {
  align-self: flex-start;
}

/* Timeline (When to Bring Us In) reuses .rt2-phases on a light surface */
.rt2-phases--light .rt2-phase__num {
  -webkit-text-stroke: 1px rgba(25, 47, 57, 0.45);
}

.rt2-phases--light .rt2-phase__art {
  stroke: var(--rt2-fg);
}

.rt2-figure--plain img {
  aspect-ratio: 16 / 9;
}

@media (max-width: 899px) {
  .rt2-cells,
  .rt2-cells--2,
  .rt2-cells--3,
  .rt2 .rt-details,
  .rt2 .rt-highlights,
  .rt2 .rt-gallery,
  .rt2-cards .wp-block-post-template,
  .rt2-next__row {
    grid-template-columns: 1fr;
  }

  .rt2-cellcard,
  .rt2 .rt-details__value,
  .rt2 .rt-highlights__item,
  .rt2 .rt-gallery__item,
  .rt2-card--post,
  .rt2-next__row .rt2-cell {
    border-right: 0;
  }

  .rt2-cellcard {
    min-height: 0;
    gap: 12px;
  }

  .rt2-cellcard--lead {
    grid-column: auto;
  }

  .rt2-next__media,
  .rt2-next__text {
    grid-column: 1 / -1;
  }

  .rt2-cta .rt2-contact__title,
  .rt2-cta .rt2-contact__aside {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Mobile header: smaller brand so the Menu button always clears the edge */
@media (max-width: 899px) {
  .rt2-header__brand a {
    font-size: 1.125rem;
  }

  .rt2-header__actions {
    padding-right: 12px;
  }
}

/* Core-block versions of the system (patterns page-hero-2, statement-2, cells-2): WordPress grid layout and buttons */
.rt2 .rt2-grid.is-layout-grid,
.rt2 .rt2-head.is-layout-grid,
.rt2 .rt2-cells.is-layout-grid {
  gap: 0;
}

.rt2 .rt2-head.is-layout-grid > p {
  margin: 0;
}

.rt2 .rt2-head.is-layout-grid > p:last-child {
  grid-column: 4;
}

.rt2 .rt2-hero__actions.is-layout-flex {
  gap: 24px;
}

.rt2 .rt2-hero__actions .rt2-link {
  margin: 0;
}

.rt2 .rt2-buttons {
  margin: 0;
}

.rt2 .rt2-buttons .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  min-width: 220px;
  padding: 14px 18px;
  font-family: var(--rt2-sans);
  font-size: 0.9375rem;
  line-height: 1.2;
  border: 0;
  border-radius: 0;
  background: var(--rt2-ink);
  color: #fff;
  text-decoration: none;
  transition: background 200ms var(--rt2-ease);
}

.rt2 .rt2-buttons .wp-block-button__link::after {
  content: "";
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--rt2-icon-ground) center / contain no-repeat;
  mask: var(--rt2-icon-ground) center / contain no-repeat;
  rotate: -90deg;
  display: inline-block;
  transition: transform 200ms var(--rt2-ease);
}

/* The arrow tips 45 degrees down on hover and keyboard focus. */
.rt2 .rt2-buttons .wp-block-button__link:hover::after,
.rt2 .rt2-buttons .wp-block-button__link:focus-visible::after {
  transform: rotate(45deg);
}

/* Mail button: envelope icon before the label. */
.rt2 .rt2-buttons .rt2-button--mail .wp-block-button__link {
  justify-content: flex-start;
  gap: 12px;
}

.rt2 .rt2-buttons .rt2-button--mail .wp-block-button__link::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 5h18v14H3z'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 5h18v14H3z'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rt2 .rt2-buttons .rt2-button--mail .wp-block-button__link::after {
  margin-left: auto;
  padding-left: 12px;
}

.rt2 .rt2-buttons .wp-block-button__link:hover {
  background: var(--rt2-ink-hover);
}

.rt2 .rt2-buttons .rt2-button--cta .wp-block-button__link {
  background: var(--rt2-cta);
  color: var(--rt2-cta-on);
}

.rt2 .rt2-buttons .rt2-button--cta .wp-block-button__link:hover {
  background: var(--rt2-cta-hover);
}

.rt2 .rt2-work__intro .rt2-cell .rt2-buttons {
  margin-top: 32px;
}

.rt2 .rt2-figure--hero .wp-element-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  padding: 8px 12px;
  background: #fff;
  color: var(--rt2-ink);
  font-family: var(--rt2-cond);
  font-size: var(--rt2-size-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
}

.rt2 .rt2-figure--hero .wp-element-caption::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--rt2-accent);
  vertical-align: 1px;
}

.rt2 .wp-block-image.rt2-figure {
  position: relative;
  margin: 0;
}

.rt2 .rt2-cellcard.wp-block-group > * {
  margin: 0;
}

.rt2 .rt2-cellcard.wp-block-group > .rt2-h3 {
  margin-top: auto;
}

.rt2 .rt2-statement.is-layout-grid > .rt2-h2,
.rt2 .rt2-statement.is-layout-grid > p {
  margin: 0;
}

/* Phone rhythm for the inner pages (see the scale at the end of home-2.css) */
@media (max-width: 899px) {
  .rt2-hero--page .rt2-hero__title {
    padding: 32px var(--rt2-inset) var(--rt2-action);
  }

  .rt2-cellcard {
    gap: var(--rt2-tight);
    padding: var(--rt2-action) var(--rt2-inset) 28px;
  }

  .rt2-cellcard .rt2-body {
    margin-top: 4px;
  }

  .rt2-cellcard--lead .rt2-h2 {
    margin-top: var(--rt2-text);
  }

  .rt2-prose-row .rt2-cell {
    padding-top: 32px;
    padding-bottom: 0;
  }

  .rt2-prose-row .rt2-cell + .rt2-cell {
    padding-top: var(--rt2-text);
    padding-bottom: var(--rt2-band);
  }

  .rt2 .rt-details__value {
    min-height: 0;
    padding-bottom: 16px;
  }

  .rt2 .rt-highlights__item {
    padding: var(--rt2-stack) var(--rt2-inset) var(--rt2-action);
  }

  .rt2-next__row .rt2-cell {
    padding: 32px var(--rt2-inset) 32px;
    gap: var(--rt2-text);
  }

  .rt2-cta .rt2-contact__title {
    padding: var(--rt2-band) var(--rt2-inset) 16px;
  }

  .rt2-cta .rt2-contact__aside {
    padding: 0 var(--rt2-inset) var(--rt2-band);
  }

  .rt2 .rt2-work__intro .rt2-cell .rt2-buttons {
    margin-top: var(--rt2-text);
  }
}

/* ==================================================================
   Core-block pages (scripts/build-pages.py): the whole site is core
   groups, headings, paragraphs, images, tables, lists, quotes and
   buttons. These rules replace the inline styles and the raw HTML the
   first pixel pass used. Modifier classes: --band (40 top, 48 bottom),
   --row (24 both), --flush (no padding), --chip (figure caption as the
   white chip), --square (1:1 photo with a label caption).
   ================================================================== */

/* WordPress flow layout adds a block gap between siblings; the system sets its own */
.rt2 .wp-block-group.is-layout-flow > * {
  margin-block: 0;
}

.rt2 .wp-block-image {
  margin: 0;
}

.rt2 .rt2-link a,
.rt2 .rt2-guides a,
.rt2 .rt2-mini a,
.rt2 .rt2-service__title a {
  color: inherit;
  text-decoration: none;
}

/* Cell modifiers */
.rt2 .rt2-cell--band {
  padding-top: 40px;
  padding-bottom: 48px;
}

.rt2 .rt2-cell--row {
  padding-top: 24px;
  padding-bottom: 24px;
}

.rt2 .rt2-cell--flush {
  padding: 0;
}

.rt2 .rt2-cell--band .rt2-h2 + .wp-block-list,
.rt2 .rt2-list--spaced {
  margin-top: 32px;
}

.rt2 .rt2-num + .rt2-label {
  margin-top: 12px;
}

.rt2 .rt2-head--flush {
  border-top: 0;
}

/* Figure caption as the chip (the hero rule in the section above covers --hero) */
.rt2 .rt2-figure--chip .wp-element-caption,
.rt2 .rt2-quote__media .wp-element-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  padding: 8px 12px;
  background: #fff;
  color: var(--rt2-ink);
  font-family: var(--rt2-cond);
  font-size: var(--rt2-size-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.15;
}

.rt2 .rt2-figure--chip .wp-element-caption::before,
.rt2 .rt2-quote__media .wp-element-caption::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--rt2-accent);
  vertical-align: 1px;
}

.rt2 .rt2-figure--inset .wp-element-caption {
  left: calc(var(--rt2-inset) + 2.5% + 16px);
  bottom: 88px;
}

.rt2 .rt2-figure--pad {
  padding: 0 16px;
}

.rt2 .rt2-figure--pad .wp-element-caption {
  left: 32px;
}

.rt2 .rt2-figure--plain img {
  width: 100%;
}

/* Square photos with a label caption (About, Off the clock) */
.rt2 .wp-block-image.rt2-cellcard {
  min-height: 0;
  gap: 12px;
}

.rt2 .rt2-figure--square img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.rt2 .rt2-figure--square .wp-element-caption {
  margin: 0;
  padding: 0;
  font-family: var(--rt2-cond);
  font-size: var(--rt2-size-label);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--rt2-fg-60);
}

/* Extra chips beside a figure (the coordinates on the home hero) */
.rt2 .rt2-figure-wrap {
  position: relative;
}

.rt2 .rt2-figure-wrap .rt2-chip {
  margin: 0;
}

/* Tables as core table blocks: columns carry the style, not cell classes */
.rt2 .wp-block-table.rt2-table,
.rt2 .wp-block-table.rt2-facts {
  margin: 0;
  width: 100%;
}

.rt2 .rt2-table table,
.rt2 .rt2-facts table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
}

.rt2 .rt2-table td,
.rt2 .rt2-table th {
  border: 0;
  border-bottom: 1px solid var(--rt2-line);
  border-right: 1px solid var(--rt2-line);
  font-weight: 400;
}

.rt2 .rt2-table th,
.rt2 .rt2-table td:first-child,
.rt2 .rt2-table td:nth-child(n + 3) {
  font-family: var(--rt2-cond);
  font-size: var(--rt2-size-label);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rt2-fg-60);
}

.rt2 .rt2-table td:nth-child(2) {
  font-family: var(--rt2-sans);
  font-size: var(--rt2-size-lede);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--rt2-fg);
  padding-top: 22px;
  padding-bottom: 22px;
}

.rt2 .rt2-facts td,
.rt2 .rt2-facts th {
  border: 0;
  border-top: 1px solid var(--rt2-line);
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.rt2 .rt2-facts td:first-child {
  width: 36%;
  font-family: var(--rt2-cond);
  font-size: var(--rt2-size-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rt2-fg-60);
}

.rt2 .rt2-facts td:last-child {
  font-size: 1rem;
  text-align: left;
}

/* Lists */
.rt2 .wp-block-list.rt2-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rt2 .rt2-list__head {
  margin-bottom: 8px;
}

/* Featured project: side stack, photo and drawing toggle as a buttons block */
.rt2 .rt2-featured__side .rt2-h2,
.rt2 .rt2-featured__side .rt2-body {
  margin-top: 16px;
}

.rt2 .rt2-featured__side .rt2-buttons {
  margin-top: 24px;
}

.rt2 .rt2-featured__media {
  padding: 0;
}

.rt2 .rt2-figure--drawing .rt2-figure__alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms var(--rt2-ease);
}

.rt2 .rt2-figure--drawing .rt2-figure__alt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt2 .rt2-figure--drawing.is-drawing .rt2-figure__alt {
  opacity: 1;
}

.rt2 .wp-block-buttons.rt2-chip--toggle {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
}

.rt2 .rt2-chip--toggle .wp-block-button {
  margin: 0;
}

.rt2 .rt2-chip--toggle .wp-block-button__link {
  display: inline-block;
  min-width: 0;
  min-height: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rt2-fg-60);
  font-family: var(--rt2-cond);
  font-size: var(--rt2-size-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  cursor: pointer;
}

.rt2 .rt2-chip--toggle .wp-block-button.is-active .wp-block-button__link {
  background: var(--rt2-ink);
  color: #fff;
}

/* Service rows: the title link covers the row, two image blocks swap on hover */
.rt2 .rt2-service__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.rt2 .rt2-service__art .wp-block-image {
  position: absolute;
  inset: 0;
}

.rt2 .rt2-service__art .wp-block-image img {
  width: 100%;
  height: 100%;
  transition: opacity 260ms var(--rt2-ease);
}

.rt2 .rt2-service__icon img {
  object-fit: contain;
  padding: 0 33px;
}

.rt2 .rt2-service__photo {
  opacity: 0;
  transition: opacity 260ms var(--rt2-ease);
}

.rt2 .rt2-service:hover .rt2-service__photo,
.rt2 .rt2-service:focus-within .rt2-service__photo {
  opacity: 1;
}

.rt2 .rt2-service:hover .rt2-service__icon,
.rt2 .rt2-service:focus-within .rt2-service__icon {
  opacity: 0;
}

/* Phases: the line art is an image block */
.rt2 .wp-block-image.rt2-phase__art {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 28px 0 20px;
}

.rt2 .rt2-phase__art img {
  width: 100%;
  height: auto;
}

/* Approach */
.rt2 .rt2-approach__side .rt2-body {
  max-width: 44ch;
}

.rt2 .rt2-approach__main {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.rt2 .rt2-approach__main .rt2-principles {
  margin-top: 40px;
}

.rt2 .rt2-approach__actions .rt2-buttons {
  margin: 0;
}

/* Process, credentials, quote, guides, office */
.rt2 .rt2-creds__side .rt2-body {
  margin-top: 16px;
}

.rt2 .rt2-quote__text p {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}

.rt2 .wp-block-quote.rt2-quote__text {
  border: 0;
  padding-left: 40px;
}

.rt2 .rt2-quote__media {
  position: relative;
  margin: 0;
}

.rt2 .rt2-quote__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt2 .rt2-guides__feature .rt2-h2 {
  margin-top: 10px;
}

.rt2 .rt2-guides__side .rt2-body {
  margin: 16px 0 24px;
}

.rt2 .rt2-guides__side .rt2-buttons {
  margin: 0;
}

.rt2 .rt2-mini .wp-block-group p + p {
  margin-top: 6px;
  font-size: 1rem;
}

.rt2 .rt2-office .rt2-body {
  margin-top: 8px;
}

.rt2 .rt2-office__card--last {
  border-right: 0;
}

@media (max-width: 899px) {
  .rt2 .rt2-cell--band {
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .rt2 .rt2-figure--inset .wp-element-caption {
    left: calc(var(--rt2-inset) + 16px);
    bottom: 48px;
  }

  .rt2 .rt2-figure--pad .wp-element-caption {
    left: 32px;
  }

  .rt2 .rt2-approach__main .rt2-principles {
    margin-top: 24px;
  }

  .rt2 .wp-block-image.rt2-phase__art {
    max-width: 160px;
    margin: 20px 0 16px;
  }

  .rt2 .rt2-service__icon img {
    padding: 0 8px;
  }
}

/* Core-block parts (cta-2, footer-2) and fixes from the first check */
.rt2 .rt2-service__icon img {
  opacity: 1;
}

.rt2 .rt2-hero__actions.is-layout-flex {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 12px;
}

.rt2 .rt2-cta .rt2-contact__aside .rt2-buttons {
  margin: 0;
  align-self: flex-start;
}

.rt2 .rt2-notes.is-layout-grid,
.rt2 .rt2-footer__cols.is-layout-grid,
.rt2 .rt2-footer__legal.is-layout-grid {
  gap: 0;
}

.rt2 .rt2-notes__text .rt2-h2 {
  margin-top: 16px;
}

.rt2 .rt2-footer__col p {
  font-size: 1.125rem;
  line-height: 1.5;
}

.rt2 .rt2-footer__col p a {
  color: inherit;
  text-decoration: none;
}

.rt2 .rt2-footer__col p a:hover {
  opacity: 0.6;
}

.rt2 .rt2-footer__clock {
  color: #fff;
}

.rt2 p.rt2-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--rt2-cond);
  font-size: 0.8125rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rt2 p.rt2-footer__top a {
  color: inherit;
}

.rt2 .rt2-footer__legal p {
  margin: 0;
}

/* Footer legal bar (Jake, 2026-11-14): copyright, legal links and the back-to-top icon all in the copyright's light grey blue,
   in the lightest weight Mona Sans Condensed has (300). Links and the icon turn white on hover. */
.rt2 .rt2-footer__legal,
.rt2 .rt2-footer__legal p,
.rt2 .rt2-footer__legal a,
.rt2 .rt2-footer__legal a:visited,
.rt2 .rt2-footer__legal.rt2-label a,
.rt2 .rt2-footer__legal.rt2-label a:visited {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 300;
}

.rt2 .rt2-footer__legal.rt2-label a:hover,
.rt2 .rt2-footer__legal.rt2-label a:focus-visible {
  color: #fff;
}

/* Footer logo sits at the top of its column, not the middle. */
.rt2 .rt2-footer__cols > .wp-block-image {
  align-self: start;
}

@media (max-width: 899px) {
  .rt2 .rt2-footer__col p {
    font-size: 1rem;
  }
}

.rt2 .rt2-footer__col p {
  overflow-wrap: anywhere;
}

/* Footer sign-up: the MailerPress Subscription Form block in the system's clothes */
.rt2 .wp-block-mailerpress-mailerpress-form.rt2-notes__form {
  grid-column: 3 / 5;
  align-self: center;
  padding: 0 var(--rt2-inset);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.rt2 .rt2-notes__form .mailerpress-optin-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.rt2 .rt2-notes__form .mailerpress-optin-form__field {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.rt2 .rt2-notes__form .mailerpress-optin-form__field label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--rt2-cond);
  font-size: var(--rt2-size-label);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rt2-fg-60);
}

.rt2 .rt2-notes__form .mailerpress-optin-form__field input {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--rt2-line);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--rt2-sans);
  font-size: 1.125rem;
  line-height: 1.3;
  box-shadow: none;
  outline: 0;
}

.rt2 .rt2-notes__form .mailerpress-optin-form__field input::placeholder {
  color: var(--rt2-fg-50);
}

.rt2 .rt2-notes__form .mailerpress-optin-form__field input:focus {
  border-bottom-color: #fff;
}

.rt2 .rt2-notes__form .mailerpress-optin-form__submit {
  margin: 0;
}

.rt2 .rt2-notes__form .mailerpress-optin-form__submit button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  min-width: 220px;
  border: 0;
  font-family: var(--rt2-sans);
  line-height: 1.2;
  cursor: pointer;
  transition: background 200ms var(--rt2-ease);
}

.rt2 .rt2-notes__form .mailerpress-optin-form__submit button::after {
  content: "";
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--rt2-icon-ground) center / contain no-repeat;
  mask: var(--rt2-icon-ground) center / contain no-repeat;
  rotate: -90deg;
}

.rt2 .rt2-notes__form .mailerpress-optin-form__submit button:hover {
  background-color: var(--rt2-ink-hover);
}

.rt2 .rt2-notes__form .mailerpress-notice {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  color: #fff;
}

.rt2 .rt2-notes__fine {
  grid-column: 3 / 5;
  padding: 12px var(--rt2-inset) 0;
  margin: 0;
}

@media (max-width: 899px) {
  /* The grid block's own four-column rule outranks the single column in home-2.css, so set it here */
  .rt2 .rt2-notes.is-layout-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }

  .rt2 .rt2-notes__text,
  .rt2 .wp-block-mailerpress-mailerpress-form.rt2-notes__form,
  .rt2 .rt2-notes__fine {
    grid-column: 1 / -1;
  }

  .rt2 .rt2-notes__form .mailerpress-optin-form {
    grid-template-columns: 1fr;
  }

  .rt2 .rt2-notes__form .mailerpress-optin-form__submit button {
    width: 100%;
  }
}

/* ------------------------------------------------------------------
   Brand and Style Guide (/brand/)
   ------------------------------------------------------------------ */

.rt2-guide {
  scroll-margin-top: var(--rt2-header-h);
}

.rt2-guide__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rt2-guide__intro > * {
  margin: 0;
}

.rt2-guide__note {
  margin: 0;
  padding: 16px var(--rt2-inset);
  max-width: 60ch;
}

.rt2-toc {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rt2-toc;
  columns: 2;
  column-gap: var(--rt2-inset);
}

.rt2-toc li {
  counter-increment: rt2-toc;
  break-inside: avoid;
  border-bottom: 1px solid var(--rt2-line);
}

.rt2-toc a {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  font-size: var(--rt2-size-lede);
  line-height: 1.25;
  color: var(--rt2-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* The number is the list counter, set out of the text flow so the link underline runs under the name only (Jake, 2026-11-14). */
.rt2-toc a {
  position: relative;
  padding-left: calc(var(--rt2-size-label) * 1.6 + 16px);
}

.rt2-toc a::before {
  content: counter(rt2-toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--rt2-cond);
  font-size: var(--rt2-size-label);
  line-height: 2;
  color: var(--rt2-accent);
}

.rt2-toc a:hover,
.rt2-toc a:focus-visible {
  text-decoration: underline;
}

.rt2-logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: clamp(220px, 24vw, 340px);
  padding: var(--rt2-inset);
  padding-top: clamp(32px, 4vw, 48px);
  border-right: 1px solid var(--rt2-line);
  border-bottom: 1px solid var(--rt2-line);
}

.rt2-logo-tile > * {
  margin: 0;
}

/* The logo sits centered in the free space. Its label is pinned to the bottom left of the tile. */
.rt2 .wp-block-group.rt2-logo-tile > .rt2-logo-tile__mark {
  margin-block: auto;
}

.rt2-logo-tile > .rt2-label {
  align-self: flex-start;
}

/* Phones: each logo gets a square tile. The label is centered and sits close to the bottom edge. */
@media (max-width: 599px) {
  .rt2-logo-tile {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding-bottom: 14px;
  }

  .rt2-logo-tile > .rt2-label {
    align-self: center;
    text-align: center;
  }
}

/* Tonal logo: the logo shape in a tone of its ground. The image stays for size and alt text. */
.rt2-logo-tile__mark--tonal {
  background: color-mix(in srgb, var(--rt2-ink) 11%, var(--rt2-sunken));
  -webkit-mask: url("../img/rockin-t-electric-logo-mark.svg") center / contain no-repeat;
  mask: url("../img/rockin-t-electric-logo-mark.svg") center / contain no-repeat;
}

.rt2-logo-tile__mark--tonal.rt2-logo-tile__mark--wide {
  -webkit-mask-image: url("../img/rockin-t-electric-logo-horizontal.svg");
  mask-image: url("../img/rockin-t-electric-logo-horizontal.svg");
}

.rt2-logo-tile--dark .rt2-logo-tile__mark--tonal {
  background: color-mix(in srgb, var(--rt2-ink), #000 30%);
}

.rt2-logo-tile__mark--tonal img {
  opacity: 0;
}

/* Logos fill most of the tile: sized as a share of the tile width, capped for wide single-column tiles. */
.rt2-logo-tile__mark {
  width: 80%;
  max-width: 240px;
}

.rt2-logo-tile__mark img {
  display: block;
  width: 100%;
  height: auto;
}

.rt2-logo-tile--mist {
  background: var(--rt2-sunken);
}

.rt2-logo-tile--dark {
  background: var(--rt2-ink);
}

/* Horizontal and stacked lockups in the logo tiles. */
.rt2-logo-tile__mark--wide {
  width: 100%;
  max-width: 540px;
}

.rt2-logo-tile__mark--stacked {
  width: 84%;
  max-width: 270px;
}

.rt2-logo-tile--dark .rt2-label {
  color: #fff;
}

.rt2-logo-tile--yellow {
  background: var(--rt2-cta);
}

.rt2-logo-tile--yellow .rt2-label {
  color: var(--rt2-cta-on);
}

/* Download link under each logo, to the logo package. */
.rt2-logo-tile--yellow {
  --rt2-link: var(--rt2-cta-on);
  --rt2-link-hover: var(--rt2-ink);
}

/* One logo download link under the Logo intro: "Download" then the lightning bolt. */
.rt2 .rt2-logo-download {
  margin: 20px 0 0;
}

.rt2-logo-download .rt2-lightning::after {
  left: 0.35em;
  bottom: -0.12em;
  width: 0.62em;
}

.rt2-swatch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--rt2-inset);
  border-right: 1px solid var(--rt2-line);
  border-bottom: 1px solid var(--rt2-line);
  background: var(--rt2-base);
}

.rt2-swatch > * {
  margin: 0;
}

.rt2-swatch__chip {
  display: flex;
  align-items: flex-end;
  min-height: clamp(96px, 11vw, 150px);
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid var(--rt2-line);
}

.rt2-swatch__chip .rt2-label {
  margin: 0;
  color: #fff;
}

.rt2-swatch__chip--grey-blue { background: var(--wp--preset--color--primary); }
.rt2-swatch__chip--yellow { background: var(--wp--preset--color--primary-alt); }
.rt2-swatch__chip--orange { background: var(--wp--preset--color--orange); }
.rt2-swatch__chip--brown { background: var(--wp--preset--color--brown); }
.rt2-swatch__chip--white { background: var(--wp--preset--color--base); }
.rt2-swatch__chip--mist { background: var(--wp--preset--color--tertiary); }
.rt2-swatch__chip--pale { background: var(--wp--preset--color--primary-accent); }
.rt2-swatch__chip--ink { background: var(--wp--preset--color--primary-alt-accent); }

.rt2-swatch__chip--yellow .rt2-label,
.rt2-swatch__chip--white .rt2-label,
.rt2-swatch__chip--mist .rt2-label,
.rt2-swatch__chip--pale .rt2-label {
  color: var(--rt2-cta-on);
}

.rt2-specimen {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  align-items: baseline;
  gap: var(--rt2-inset);
  padding: 20px var(--rt2-inset);
  border-bottom: 1px solid var(--rt2-line);
}

.rt2-specimen > * {
  margin: 0;
}

/* Font download links under the type specimens. */
.rt2 .rt2-specimen__download {
  display: inline-block;
  margin: 0;
  padding: 20px 0 20px var(--rt2-inset);
}

.rt2-specimen__sample--display {
  font-size: var(--rt2-size-section);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.rt2-specimen__sample--lede {
  font-size: var(--rt2-size-lede);
  line-height: 1.25;
}

.rt2-specimen__sample--body {
  font-size: 1rem;
  line-height: 1.3;
}

.rt2-specimen__sample--label {
  font-family: var(--rt2-cond);
  font-size: var(--rt2-size-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* The callout face: the light italic serif used for the second half of a split heading. */
.rt2-specimen__sample--callout {
  font-family: var(--rt2-serif);
  font-size: var(--rt2-size-section);
  font-style: italic;
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.rt2-table--compare td,
.rt2-table--compare th {
  width: 50%;
}

.rt2-table--compare td:last-child,
.rt2-table--compare th:last-child {
  text-align: left;
}

.rt2-table--compare td:last-child {
  color: var(--rt2-fg-60);
  text-decoration: line-through;
}

.rt2-pattern {
  margin: 0;
  border-bottom: 1px solid var(--rt2-line);
}

.rt2-pattern img {
  display: block;
  width: 100%;
  height: auto;
}

.rt2-demo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.rt2-demo > * {
  margin: 0;
}

.rt2-demo > :first-child {
  margin-bottom: 16px;
}

@media (max-width: 899px) {
  .rt2-toc {
    columns: 1;
  }

  .rt2-specimen {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ------------------------------------------------------------------
   Contact page (/hello/, template page-card: no menu or footer)
   ------------------------------------------------------------------ */

.rt2.rt2-card-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  background: var(--rt2-base);
}

.rt2-card-page > .wp-block-post-content,
.rt2-card-page > .entry-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
}

.rt2-hello {
  flex: 1;
}

.rt2-hello .rt2-hero__title {
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(32px, 5vw, 64px);
}

/* Logo on the left of the site title. */
.rt2-hello .rt2-hello__title {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
}

.rt2-hello .rt2-hello__title > * {
  margin: 0;
}

.rt2-hello .rt2-hello__title .rt2-hello__logo {
  flex: none;
}

.rt2-hello .rt2-hello__title .rt2-h1 {
  max-width: none;
}

/* Boxed: the title and the detail columns sit in a centred box (--rt2-box). The border lines still run the full width. */
.rt2-hello {
  --rt2-box: 1200px;
  --rt2-box-gutter: max(0px, calc((100% - var(--rt2-box)) / 2));
}

.rt2-hello .rt2-hello__title,
.rt2-hello .rt2-hello__meta {
  padding-left: var(--rt2-box-gutter);
  padding-right: var(--rt2-box-gutter);
}

.rt2-hello .rt2-hello__title {
  padding-left: calc(var(--rt2-box-gutter) + var(--rt2-inset));
  padding-right: calc(var(--rt2-box-gutter) + var(--rt2-inset));
}

.rt2-hello .rt2-hello__meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rt2-hello__meta .rt2-cell:first-child {
  border-left: 1px solid var(--rt2-line);
}

.rt2-hello__meta .rt2-cell:last-child {
  border-right: 1px solid var(--rt2-line);
}

.rt2-hello__meta .rt2-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(150px, 14vw, 210px);
}

.rt2-hello__meta .rt2-cell > * {
  margin: 0;
}

.rt2-hello__meta .rt2-cell,
.rt2-hello__meta .rt2-cell:last-child {
  padding-top: 20px;
  padding-bottom: 20px;
}

.rt2 .rt2-hello__logo {
  margin: 0;
}

/* The full horizontal logo stands in for the typed name. The H1 stays for screen readers. */
.rt2-hello .rt2-hello__title .rt2-hello__logo.rt2-hello__logo--full {
  flex: 1 1 auto;
  min-width: 0;
}

.rt2 .rt2-hello__logo.rt2-hello__logo--full img {
  width: min(100%, 880px);
}

.rt2 .rt2-hello__logo img {
  display: block;
  width: clamp(56px, 9.5vw, 168px);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* The phone number as a display line: large, no underline, closed by the lightning bolt. */
.rt2-phone {
  margin: 0;
  font-family: var(--rt2-sans);
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

@media (max-width: 599px) {
  .rt2-phone {
    font-size: 2.75rem;
  }
}

.rt2 .rt2-phone a,
.rt2 .rt2-phone a:hover,
.rt2 .rt2-phone a:focus-visible {
  color: var(--rt2-ink);
  text-decoration: none;
}

.rt2-hello__item .rt2-lede a {
  color: var(--rt2-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.rt2-hello__item .rt2-lede a:hover,
.rt2-hello__item .rt2-lede a:focus-visible {
  text-decoration: underline;
}

.rt2-hello .rt2-figure--hero img {
  aspect-ratio: 1658 / 720;
}

.rt2-hello__foot .rt2-cell {
  padding-top: 14px;
  padding-bottom: 14px;
}

@media (max-width: 899px) {
  .rt2-hello__foot .rt2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rt2-hello__foot .rt2-cell {
    border-bottom: 1px solid var(--rt2-line);
  }

  .rt2-hello__foot .rt2-cell:nth-child(2n),
  .rt2-hello__foot .rt2-cell.rt2-span-2 {
    border-right: 0;
  }

  .rt2-hello__foot .rt2-cell.rt2-span-2 {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .rt2-hello .rt2-figure--hero img {
    aspect-ratio: 4 / 3;
  }
}

/* Stacks at 767px and under: at 600 to 740 the email button was wider than a third-width column and the page scrolled sideways. */
@media (max-width: 767px) {
  .rt2-hello .rt2-hello__meta {
    grid-template-columns: 1fr;
  }

  .rt2-hello__meta .rt2-cell,
  .rt2-hello__meta .rt2-cell:first-child,
  .rt2-hello__meta .rt2-cell:last-child {
    min-height: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rt2-line);
  }

  .rt2-hello__meta .rt2-cell:last-child {
    border-bottom: 0;
  }

  .rt2-hello__item .rt2-button,
  .rt2-hello__item .wp-block-button__link {
    width: 100%;
  }
}

.rt2 .rt2-table--compare td:first-child {
  font-family: var(--rt2-sans);
  font-size: var(--rt2-size-lede);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--rt2-fg);
  padding-top: 22px;
  padding-bottom: 22px;
}

/* Small phones (479px and under): the mark, the title, the phone button and the menu button share one row without clipping. */
@media (max-width: 479px) {
  .rt2-header__brand {
    padding-right: 10px;
  }

  .rt2-header__brand a {
    font-size: 1rem;
  }

  .rt2-header__actions {
    gap: 6px;
    padding-left: 8px;
  }

  .rt2-nav2 .rt2-menu-toggle .wp-block-ollie-mega-menu__toggle {
    padding-left: 12px;
    padding-right: 12px;
    gap: 10px;
  }
}

@media (max-width: 374px) {
  .rt2-header__brand a {
    font-size: 0.875rem;
  }
}

/* Landing page (/hello/) on phones: the mark and "Rockin T Electric." stay on one line. The title is 6.85em wide, so the size is the room left beside the mark divided by 7.2. */
@media (max-width: 767px) {
  /* .rt2 .rt2-hero.rt2-hello: has to outrank the home hero size rule (.rt2-hero:not(.rt2-hero--page) ...). */
  .rt2 .rt2-hero.rt2-hello .rt2-hello__title .rt2-h1 {
    white-space: nowrap;
    font-size: calc((100vw - 2 * var(--rt2-inset) - max(56px, 9.5vw) - max(16px, 2.5vw)) / 7.2);
  }
}

/* The contact form is a link target (/contact/#message): stop below the fixed header. */
.rt2-form {
  scroll-margin-top: calc(var(--rt2-header-h) + 16px);
}

/* Jumps from the header breadcrumb land below the fixed header. */
.rt2-section[id] {
  scroll-margin-top: var(--rt2-header-h);
}

/* Narrow desktop (900 to 1023): a button is never wider than one grid column. */
@media (min-width: 900px) {
  .rt2 .rt2-btn,
  .rt2 .rt2-buttons .wp-block-button__link {
    min-width: min(220px, calc(25vw - 2 * var(--rt2-inset) - 1px));
  }
}

/* Brand guide hero: ink gradient and the white mark over the photo (Jake, 2026-11-12). */
.rt2 .rt2-figure--logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rt2-ink) 30%, transparent), color-mix(in srgb, var(--rt2-ink) 82%, transparent));
  pointer-events: none;
}

.rt2 .rt2-figure--logo::after {
  content: "";
  position: absolute;
  inset: 0;
  width: clamp(110px, 24%, 340px);
  aspect-ratio: 1000 / 922.4637;
  margin: auto;
  background: #fff;
  opacity: 0.88;
  -webkit-mask: url("../img/rockin-t-electric-logo-mark.svg") center / contain no-repeat;
  mask: url("../img/rockin-t-electric-logo-mark.svg") center / contain no-repeat;
  pointer-events: none;
}

.rt2 .rt2-figure--logo .wp-element-caption {
  z-index: 1;
}

/* Text links: one accessible color and an underline, site-wide (Jake, 2026-11-12).
   Link orange (#ac4f20) is 5.4 to 1 on white. On dark grounds links are white and underlined.
   Not underlined on purpose: the header, the menus, the footer page list, the breadcrumb, buttons and card titles. */
.rt2 {
  --rt2-link: var(--wp--preset--color--orange-dark);
  --rt2-link-hover: var(--wp--preset--color--main);
}

.rt2-section--dark,
.rt2-footer,
.rt2-logo-tile--dark {
  --rt2-link: #fff;
  --rt2-link-hover: var(--wp--preset--color--primary-alt);
}

.rt2 :where(p, li, dd, td, figcaption, .rt2-card__meta, .rt2-card__tags, .rt2-ed-card__meta, .rt2-head) a:where(:not([class])) {
  color: var(--rt2-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.rt2 :where(p, li, dd, td, figcaption, .rt2-card__meta, .rt2-card__tags, .rt2-ed-card__meta, .rt2-head) a:where(:not([class])):hover {
  color: var(--rt2-link-hover);
}

/* Data table: every cell reads as body text (audit and plan pages). */
.rt2 .rt2-table.rt2-table--data td:nth-child(n) {
  font-family: var(--rt2-sans);
  font-size: var(--rt2-size-lede);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
  text-align: left;
  color: var(--rt2-fg);
  padding-top: 22px;
  padding-bottom: 22px;
}

.rt2 .rt2-table.rt2-table--data th {
  text-align: left;
}

.rt2 .rt2-table.rt2-table--data td:first-child,
.rt2 .rt2-table.rt2-table--data th:first-child {
  width: 50%;
}

.rt2 .rt2-table.rt2-table--after td:first-child {
  color: var(--rt2-fg-60);
}

/* Project single: the Electrical details band hides until the project has details to show. */
.rt2-ed-details:not(:has(.rt-highlights__item)) {
  display: none;
}

/* Work area map under the For Builders statement (2026-11-14) */
.rt2 .rt2-map.is-layout-grid > * {
  margin: 0;
}

.rt2 .rt2-map {
  border-top: 1px solid var(--rt2-line);
}

.rt2 .rt2-map__credit {
  align-self: end;
}

.rt2 .rt2-map__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* On one column the credit reads after the map. */
@media (max-width: 899px) {
  .rt2 .rt2-map__credit {
    order: 2;
  }
}

/* Contact page: small work area map thumbnail, tap to open the full map (core lightbox). */
.rt2 .rt2-map-thumb .wp-block-image {
  margin: 8px 0;
}

.rt2 .rt2-map-thumb__image img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 1px solid var(--rt2-line);
}

.rt2 .rt2-map-thumb .rt2-map__credit {
  margin-top: 6px;
  opacity: 0.8;
}

/* Service area thumbnail: 4px corners (Jake, 2026-11-14). */
.rt2 .rt2-map-thumb__image img {
  border-radius: 4px;
}

/* The popup (expand) icon on lightbox images is always shown, not only on hover (Jake, 2026-11-14). */
.rt2 .wp-lightbox-container button,
.wp-lightbox-container button {
  opacity: 1;
}
