/* Northeast Professional - shared stylesheet
 *
 * A rewrite of the original CSS-Main.css. The palette, proportions and page
 * rhythm are carried over unchanged; the float-and-inline-block layout that
 * produced them has been replaced with flexbox and grid, and the per-site
 * differences are expressed as custom properties rather than forked files.
 */

/* ---------------------------------------------------------------- tokens - */

:root {
  --blue: #396e8e;
  --blue-dark: #0b5784;
  --blue-link: #0365a7;
  --blue-pale: #d8edfa;
  --blue-chip-text: #0067b6;

  --green: #73c37a;
  --green-hover: #f36b5f;

  --red: #e91f36;
  --red-soft: #fb796e;
  --yellow: #e9e808;

  --slate: #4b5d68;
  --slate-text: #d3d8e1;
  --ink: #454b4f;
  --paper: #fff;
  --panel: #e2e4e6;
  --field: #efeff1;

  --container: 1330px;
  --radius: 7px;
  --radius-lg: 10px;
  --shadow: 0 0 8px rgb(83 78 78 / 0.85);

  --step: 1.75;
  --gap: 2rem;
  --section-gap: 3.75rem;

  /* Backdrop for the service-area band. Both sites ship the same photograph
   * under assets/img/, so one declaration covers them. */
  --band-image: url("../assets/img/Service-Area-Background.jpg");
}

/* ------------------------------------------------------------- structure - */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 100%;
  color: var(--ink);
  background-color: var(--paper);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

p,
li {
  line-height: var(--step);
}

img {
  max-width: 100%;
  height: auto;
  border-style: none;
}

a {
  color: var(--blue-dark);
}

a:hover {
  color: var(--red);
  text-decoration: none;
}

textarea {
  resize: vertical;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  color: var(--blue-dark);
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(var(--container), 90%);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------- top row - */

.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.375rem;
  padding: 0.8125rem 5%;
  background-color: var(--blue);
  font-size: 0.8125rem;
}

/* :where() keeps this at class specificity so the rules below can still set
 * their own colour on a single link without having to out-specify the row. */
.top-row :where(a) {
  color: #c1cbd1;
  text-decoration: none;
}

.top-row :where(a:hover) {
  color: var(--paper);
}

.top-row__sibling {
  display: flex;
  align-items: center;
  gap: 0.6875rem;
  margin-right: auto;
  max-width: 358px;
  color: var(--blue-pale);
  text-align: left;
}

.top-row__sibling i {
  font-size: 2em;
}

.top-row .button {
  padding: 5px 10px;
  border-radius: 9px;
  background-color: var(--red);
  color: var(--paper);
}

.top-row .button:hover {
  background-color: var(--paper);
  color: var(--red);
}

.top-row .button--yellow {
  background-color: var(--yellow);
  color: var(--blue);
}

/* ---------------------------------------------------------------- header - */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--container), 90%);
  margin-inline: auto;
  /* Small on purpose. The original header had no vertical padding; the room
   * around the logo came from the descender space of two nested inline-blocks,
   * which this layout does not produce. 4px reproduces that height to within a
   * pixel, so the logo and nav sit where they always have. */
  padding-block: 0.25rem;
}

.site-header__logo img {
  width: 221px;
}

.site-header__aside {
  text-align: center;
}

.site-header__aside i {
  color: #f7163f;
}

.site-header__cta {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--green);
}

.site-header__cta a {
  color: var(--blue);
  text-decoration: none;
}

/* ------------------------------------------------------------------- nav - */

.site-nav {
  background-color: var(--green);
}

.site-nav__toggle {
  display: none;
  width: 100%;
  padding: 0.75rem 5%;
  border: 0;
  background: none;
  color: var(--paper);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  width: min(var(--container), 90%);
  /* The block margins have to be zeroed explicitly. .site-nav has no padding
   * or border, so a list that kept the user agent's 1em would collapse those
   * margins out through it, leaving a white band above and below the green. */
  margin: 0 auto;
  /* Both values reproduce the spacing of the original nav, which laid the items
   * out as inline-blocks and so picked up a 4px word space between each one and
   * a 3px indent before the first. Stated here because the flex layout that
   * replaced it produces neither on its own. */
  padding: 0 0 0 3px;
  column-gap: 4px;
  list-style: none;
}

.site-nav__list > li {
  position: relative;
}

.site-nav__list a,
.site-nav__list .site-nav__label {
  display: block;
  padding: 15px 16px;
  border-right: 1px solid rgb(255 255 255 / 0.27);
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font: inherit;
  cursor: pointer;
}

/* The green band is 55px tall: 15px of padding either side of a 25px line. The
 * line height is stated rather than left to the cascade because `font: inherit`
 * above pulls in the 1.75 body-copy line height from the list item, which is
 * meant for paragraphs and made the band three pixels too tall. */
.site-nav__list > li > a,
.site-nav__list > li > .site-nav__label {
  line-height: 25px;
}

.site-nav__list > li > a:hover,
.site-nav__list > li > .site-nav__label:hover,
.site-nav__list > li:focus-within > .site-nav__label,
.site-nav__list > li[data-open] > .site-nav__label {
  background-color: var(--green-hover);
}

.site-nav__list a[aria-current="page"] {
  background-color: rgb(0 0 0 / 0.12);
}

.site-nav__label {
  border: 0;
  background: none;
  /* Buttons centre their text by default; match the anchors beside them. */
  text-align: left;
}

/* Submenus open on hover for pointers and on focus/click for keyboards. */
.site-nav__list ul {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 20;
  display: none;
  min-width: 15rem;
  margin: 0;
  padding: 0 0 0.75rem;
  list-style: none;
  background-color: rgb(255 255 255 / 0.95);
  border-radius: 0 11px 11px;
  box-shadow: 4px 4px 8px rgb(73 71 71 / 0.9);
}

.site-nav__list li:hover > ul,
.site-nav__list li:focus-within > ul,
.site-nav__list li[data-open] > ul {
  display: block;
}

.site-nav__list ul a {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  color: var(--blue-link);
  text-transform: none;
}

.site-nav__list ul a:hover {
  background-color: var(--red-soft);
  color: var(--paper);
  border-radius: 0 8px 8px;
}

.site-nav__sub {
  display: block;
  font-size: x-small;
}

/* ------------------------------------------------------------------ hero - */

.hero img {
  display: block;
  width: 100%;
}

/* -------------------------------------------------------------- sections - */

.section {
  width: min(var(--container), 90%);
  margin-inline: auto;
  margin-block-start: var(--section-gap);
}

.section--tight {
  margin-block-start: var(--gap);
}

.page-intro {
  text-align: left;
}

.page-intro h2 {
  font-weight: 400;
}

/* Two-column body copy; single column below the tablet breakpoint. */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap) 6%;
  align-items: start;
  text-align: left;
}

/* Three equal cards with an image, heading and blurb. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--gap);
  margin-block-start: 2.8125rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.card img {
  width: 100%;
}

.card h2,
.card h3,
.card p,
.card ul {
  width: 90%;
  margin-inline: auto;
}

.card p,
.card ul {
  text-align: left;
}

/* Push each card's call to action to the bottom so a row of cards lines up
 * even when the blurbs are different lengths. */
.card .button-row {
  margin-top: auto;
  padding-top: 0.5rem;
  justify-content: center;
}

/* Three columns of list content, no card chrome on wide screens. */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--gap) 4%;
  margin-block-start: var(--gap);
  text-align: left;
}

.columns--2 {
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.columns ul {
  line-height: var(--step);
}

.columns--boxed > * {
  padding: 0 0 1rem;
}

.columns--boxed img {
  width: 100%;
}

.columns--boxed h2 {
  margin-block: 0.75rem;
}

hr {
  margin-block-start: var(--section-gap);
  border: 0;
  border-top: 1px solid rgb(69 75 79 / 0.2);
}

/* ---------------------------------------------------------------- chips - */

/* Both chip groups are marked up as lists for semantics, so the default
 * markers and indentation have to come off. */
.callouts,
.chips {
  margin: 0;
  padding: 0;
  list-style: none;
}

.callouts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.625rem;
}

.callouts > * {
  padding: 5px 10px;
  background-color: var(--blue-pale);
  color: var(--blue);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips > * {
  padding: 5px 10px;
  background-color: rgb(255 255 255 / 0.89);
  color: var(--blue-chip-text);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------- buttons - */

.button {
  display: inline-block;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius);
  background-color: var(--green);
  color: var(--paper);
  font: inherit;
  font-size: 1.15em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.button:hover {
  background-color: var(--green-hover);
  color: var(--paper);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 1rem;
}

.button--corner {
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
  padding: 5px 10px;
  background-color: var(--red);
  font-size: 1rem;
}

.button--corner:hover {
  background-color: var(--green);
}

/* --------------------------------------------------------- banded region - */

/* The service-area band: a fixed photographic backdrop with a solid panel of
 * text sitting to its right. The panel goes full width on small screens. */
.band {
  margin-block-start: var(--section-gap);
  background-image: var(--band-image);
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.band__panel {
  width: min(48%, 46rem);
  margin-left: 52%;
  padding: 2rem 2%;
  background-color: var(--blue);
  color: var(--paper);
  text-align: left;
}

.band__panel h3 {
  margin-block: 1.1875rem 1.625rem;
}

.band__panel img {
  width: 100%;
  max-width: 555px;
}

/* ---------------------------------------------------- office info panels - */

.offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: var(--gap);
  margin-block-start: var(--gap);
}

.office {
  position: relative;
  padding-bottom: 3.5rem;
  background-color: var(--panel);
  text-align: left;
}

.office--plain {
  background-color: transparent;
  padding-bottom: 0;
}

.office img {
  width: 100%;
}

.office__body {
  padding: 0 5% 1.25rem;
}

.office__body h2 {
  margin-block: 1rem 0.5rem;
}

.office__body h3 {
  margin-block: 1rem 0.25rem;
  font-size: 1rem;
}

.office a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

/* ----------------------------------------------------------------- forms - */

.contact-band {
  margin-block-start: var(--section-gap);
  padding-block: 1.25rem 2rem;
  background-color: var(--blue);
  color: var(--paper);
  text-align: left;
}

.contact-band__lead {
  font-size: 2em;
}

.form {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.form--inline {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  align-items: start;
  font-size: 0.875rem;
}

.form--panel {
  max-width: 40rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field > label {
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--blue);
  border-bottom-width: 2px;
  border-radius: 3px;
  background-color: var(--field);
  color: var(--ink);
  font: inherit;
}

.form--panel .field input,
.form--panel .field textarea {
  background-color: #f5f5f5;
  border-radius: var(--radius-lg);
}

.field textarea {
  min-height: 6rem;
}

.field[data-required] > label::after {
  content: " *";
  color: var(--red);
}

/* Bot trap: never shown, never announced, never tabbable. */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
}

.form__status:empty {
  display: none;
}

.form__status[data-state="error"] {
  background-color: #fdecee;
  color: #8f1122;
}

.form__status[data-state="success"] {
  background-color: #eaf6eb;
  color: #1f5d29;
}

.form__status[data-state="pending"] {
  background-color: rgb(255 255 255 / 0.15);
  color: inherit;
}

.contact-band .form__status[data-state="error"],
.contact-band .form__status[data-state="success"] {
  color: var(--ink);
}

.form__submit {
  grid-column: 1 / -1;
  justify-self: start;
}

.form__submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* -------------------------------------------------------- review ratings - */

.rating {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  margin: 0;
}

.rating legend {
  padding: 0;
  text-align: center;
}

.rating__star {
  padding: 0.5em;
  border: 0;
  background: none;
  color: #ffe14d;
  font-size: 1.1em;
  line-height: 1;
  cursor: pointer;
}

.rating__star[aria-pressed="true"] i,
.rating__star[data-filled] i {
  font-weight: 900;
}

.review-form {
  width: min(325px, 80%);
  padding: 1em 2em 1em 1em;
  background-color: var(--blue);
  color: var(--paper);
}

.review-form .field input,
.review-form .field textarea {
  border-color: transparent;
}

/* ---------------------------------------------------------------- footer - */

.site-footer {
  margin-block-start: 0;
  padding-block: 2.1875rem 5.625rem;
  background-color: var(--slate);
  color: #fffefd;
  text-align: left;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  width: min(var(--container), 90%);
  margin-inline: auto;
}

.site-footer h2 {
  margin-bottom: 1.3125rem;
  color: var(--slate-text);
}

.site-footer h3 {
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.site-footer a {
  color: var(--slate-text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--paper);
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.1875rem 1rem;
}

.site-footer__links a {
  display: block;
}

.site-footer__stack a {
  display: block;
  margin-bottom: 1.1875rem;
}

.site-footer hr {
  margin-block: 1.5rem;
  border-top-color: rgb(255 255 255 / 0.2);
}

.site-footer__cta a {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--radius);
  background-color: var(--red);
  color: var(--paper);
  font-size: 0.875rem;
}

.site-footer__cta a:hover {
  background-color: var(--green);
}

.site-footer__note {
  font-size: 0.875rem;
}

/* -------------------------------------------------------- quick actions - */

.quick-actions {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 30;
  display: flex;
  align-items: stretch;
  gap: 0.625rem;
  padding: 10px;
  border-radius: 5px;
  background-color: #fcf7f7;
  font-size: 0.875rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s;
}

.quick-actions[data-visible] {
  opacity: 1;
  visibility: visible;
}

.quick-actions a,
.quick-actions__top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 0;
  border-radius: 5px;
  background-color: var(--red);
  box-shadow: 0 0 5px rgb(0 0 0 / 0.5);
  color: var(--paper);
  font: inherit;
  font-size: 0.8em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s;
}

.quick-actions a:hover,
.quick-actions__top:hover {
  background-color: var(--green);
  color: var(--paper);
}

.quick-actions__top {
  width: 50px;
  font-size: 20px;
}

.quick-actions__dismiss {
  position: absolute;
  left: -10px;
  top: -10px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgb(0 0 0 / 0.2);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------- embeds - */

.map-embed {
  display: block;
  width: 100%;
  height: 600px;
  margin-block-start: var(--gap);
  border: 0;
}

audio {
  width: 100%;
  max-width: 30rem;
}

.audio-block {
  margin-block: 1rem;
  text-align: center;
}

/* ---------------------------------------------------------- breakpoints - */

@media (max-width: 1200px) {
  .site-footer__inner {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}

@media (max-width: 1100px) {
  .site-nav__toggle {
    display: block;
  }

  .site-nav__list {
    display: none;
    width: 100%;
    flex-direction: column;
    /* The 3px indent the desktop band carries is a horizontal detail; a stacked
     * nav has no use for it and would only sit crooked. */
    padding: 0 0 0.5rem;
  }

  .site-nav[data-open] .site-nav__list {
    display: flex;
  }

  .site-nav__list a,
  .site-nav__list .site-nav__label {
    display: block;
    width: 100%;
    border-right: 0;
    padding: 0.6rem 5%;
  }

  /* Submenus are always expanded on small screens; hover has no meaning. */
  .site-nav__list ul {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 0.5rem 1.5rem;
    background: none;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav__list ul a {
    color: var(--paper);
  }

  .site-nav__list ul a:hover {
    background-color: var(--green-hover);
    border-radius: 0;
  }

  .split,
  .form--panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .band {
    background-attachment: scroll;
  }

  .band__panel {
    width: 100%;
    margin-left: 0;
  }

  .top-row__sibling {
    display: none;
  }

  .quick-actions {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
  }
}

@media (max-width: 750px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .site-header {
    justify-content: center;
    text-align: center;
  }

  .site-header__logo img {
    max-width: 250px;
  }

  .site-header__aside {
    width: 100%;
    text-align: center;
  }

  .map-embed {
    height: 400px;
  }
}

@media (max-width: 375px) {
  .quick-actions {
    font-size: 0.7em;
  }

  .site-header__aside i {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .top-row,
  .site-nav,
  .quick-actions,
  .contact-band,
  .skip-link {
    display: none;
  }
}

/* ------------------------------------------------------ knowledge center - */

.kc {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: var(--gap) 3rem;
  align-items: start;
  text-align: left;
}

.kc__sidebar {
  position: sticky;
  top: 1rem;
  padding: 1.25rem;
  background-color: var(--field);
  border-radius: var(--radius);
}

.kc-search .field {
  margin-bottom: 1rem;
}

.kc-search input[type="search"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--blue);
  border-bottom-width: 2px;
  border-radius: 3px;
  font: inherit;
}

.kc-lang {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.kc-lang legend {
  padding: 0;
  font-weight: 700;
}

.kc-lang label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
}

.kc-suggestions {
  margin-top: 1.5rem;
}

.kc-suggestions ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.kc-suggestions li {
  margin-bottom: 0.35rem;
}

.kc-status {
  margin: 0 0 1rem;
  color: var(--blue);
  font-weight: 700;
}

.kc-status:empty {
  display: none;
}

.kc-result {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgb(69 75 79 / 0.15);
}

.kc-result:last-child {
  border-bottom: 0;
}

.kc-result__title {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.kc-result__also {
  margin: 0 0 0.5rem;
  color: var(--blue);
  font-size: 0.875rem;
}

.kc-result__summary {
  margin: 0;
}

/* Visitor-facing text from a third party: keep line breaks, never markup. */
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.kc-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.kc-pager__button {
  font-size: 1rem;
}

.kc-pager__button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.kc-pager__position {
  color: var(--ink);
}

.kc-attribution {
  margin-top: var(--gap);
  font-size: 0.875rem;
  color: var(--ink);
  text-align: left;
}

@media (max-width: 1100px) {
  .kc {
    grid-template-columns: minmax(0, 1fr);
  }

  .kc__sidebar {
    position: static;
  }
}

/* --------------------------------------------------- environment badge - */

/* Every build except production carries a badge naming its environment, so a
 * tester can never mistake QA for the live site. It is a layer over the page,
 * not part of it: fixed, generated content, and pointer-events: none, so it
 * occupies no space, shifts nothing and can never intercept a click.
 *
 * The colours are deliberately outside the site palette. This is chrome, not
 * design, and it should never read as part of the page. They match the
 * environment pill in Workplace.
 *
 * A page with no data-environment at all also gets the badge. If the attribute
 * is ever lost, showing it on a live site is a nuisance; hiding it on a test
 * site is the failure that matters. */
body:not([data-environment="production"])::before {
  content: attr(data-environment) " test site";
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100;
  padding: 0.3125rem 1rem;
  border: 1px solid #ffc400;
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background-color: rgb(38 30 0 / 0.92);
  color: #ffc400;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

/* There is less room to spare over the top row on a phone, so take up less. */
@media (max-width: 700px) {
  body:not([data-environment="production"])::before {
    padding: 0.1875rem 0.625rem;
    font-size: 0.6875rem;
  }
}

@media print {
  body:not([data-environment="production"])::before {
    display: none;
  }
}
