@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f3f5f3;
  --paper: rgba(255, 255, 255, 0.9);
  --paper-strong: #ffffff;
  --blue-wash: #eaf4f9;
  --green-wash: #edf7f2;
  --sand-wash: #fbf4e4;
  --peach-wash: #fff0e8;
  --violet-wash: #f1effb;
  --rose-wash: #faeef1;
  --ink: #173246;
  --ink-soft: #596978;
  --ink-faint: #7d8c98;
  --line: rgba(23, 50, 70, 0.12);
  --line-strong: rgba(23, 50, 70, 0.2);
  --navy: #214761;
  --navy-soft: rgba(33, 71, 97, 0.12);
  --teal: #3e8876;
  --teal-soft: rgba(62, 136, 118, 0.14);
  --coral: #c7765a;
  --coral-soft: rgba(199, 118, 90, 0.14);
  --gold: #a8874a;
  --gold-soft: rgba(168, 135, 74, 0.14);
  --slate: #607486;
  --slate-soft: rgba(96, 116, 134, 0.14);
  --shadow-lg: 0 28px 68px rgba(23, 50, 70, 0.11);
  --shadow-md: 0 16px 36px rgba(23, 50, 70, 0.08);
  --shadow-sm: 0 10px 24px rgba(23, 50, 70, 0.06);
  --radius-xl: 14px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --max-width: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(62, 136, 118, 0.06), transparent 26%),
    radial-gradient(circle at top right, rgba(33, 71, 97, 0.08), transparent 30%),
    linear-gradient(180deg, #f8faf8 0%, #f2f5f4 52%, #f9faf8 100%);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(23, 50, 70, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 50, 70, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 84%);
  opacity: 0.52;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
}

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

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: clamp(2.2rem, 5vw, 4rem) 0;
}

.section--compact {
  padding-top: 0;
  padding-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.95rem 0;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(248, 250, 248, 0.92), rgba(248, 250, 248, 0.78));
  border-bottom: 1px solid rgba(23, 50, 70, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(145deg, var(--navy), #3a6a8a);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 28px rgba(33, 71, 97, 0.18);
}

.brand-copy {
  display: grid;
  gap: 0.08rem;
  font-size: 0.86rem;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span:last-child {
  color: var(--ink-faint);
}

.site-nav {
  justify-self: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 50, 70, 0.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-sm);
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.header-cta,
.button,
.remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.86rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.header-cta,
.button-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 24px rgba(33, 71, 97, 0.16);
}

.button-secondary,
.remove-button {
  border-color: rgba(23, 50, 70, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.button-compact,
.remove-button {
  padding: 0.72rem 1rem;
}

.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible,
.remove-button:hover,
.remove-button:focus-visible {
  transform: translateY(-1px);
}

.intro-shell,
.workspace-grid {
  display: grid;
  gap: 1.25rem;
}

.intro-shell {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: end;
  padding-top: 1.75rem;
}

.intro-copy h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lede,
.stack-heading p:not(.eyebrow),
.intro-copy p:last-child,
.results-header p:not(.eyebrow),
.helper-text,
.note-card p,
.results-empty,
.meter-legend,
.diagram-caption,
.diagram-header p,
.summary-stats dt,
.result-card span,
.breakdown-item small,
.breakdown-item span,
.checkbox-field small {
  color: var(--ink-soft);
}

.intro-copy .lede {
  max-width: 60ch;
  margin: 0.95rem 0 0;
  font-size: 1rem;
}

.intro-actions {
  display: grid;
  gap: 0.9rem;
  justify-items: end;
}

.raceway-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.62rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.info-pill strong {
  color: var(--ink);
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: start;
}

.workspace-main {
  display: grid;
  gap: 1rem;
}

.workspace-side {
  position: sticky;
  top: 6.2rem;
}

.stack-card,
.results-shell,
.schedule-row,
.note-card,
.result-card,
.message-card,
.advisory-card,
.diagram-card,
.breakdown-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.stack-card::before,
.results-shell::before,
.schedule-row::before,
.note-card::before,
.message-card::before,
.advisory-card::before,
.diagram-card::before,
.breakdown-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stack-card--raceway::before {
  background: linear-gradient(135deg, rgba(33, 71, 97, 0.08), transparent 42%);
}

.stack-card--library::before {
  background: linear-gradient(135deg, rgba(62, 136, 118, 0.08), transparent 42%);
}

.stack-card--notes::before {
  background: linear-gradient(135deg, rgba(168, 135, 74, 0.1), transparent 42%);
}

.results-shell::before {
  background: linear-gradient(135deg, rgba(33, 71, 97, 0.08), transparent 46%);
}

.stack-card,
.results-shell {
  padding: 1.3rem;
}

.stack-card--raceway {
  background: linear-gradient(180deg, var(--blue-wash), rgba(255, 255, 255, 0.93));
  border-color: rgba(78, 126, 158, 0.24);
}

.stack-card--library {
  background: linear-gradient(180deg, var(--green-wash), rgba(255, 255, 255, 0.93));
  border-color: rgba(74, 155, 130, 0.24);
}

.stack-card--notes {
  background: linear-gradient(180deg, var(--sand-wash), rgba(255, 255, 255, 0.93));
  border-color: rgba(168, 135, 74, 0.24);
}

.results-shell {
  background: linear-gradient(180deg, var(--violet-wash), rgba(255, 255, 255, 0.94));
  border-color: rgba(123, 111, 176, 0.24);
}

.stack-heading,
.results-header,
.diagram-header {
  position: relative;
  z-index: 1;
}

.stack-heading h2,
.results-header h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.stack-heading p:not(.eyebrow),
.results-header p:not(.eyebrow) {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
}

.stack-heading--split {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.field-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

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

.field,
.row-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.field span,
.row-field span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

select,
input[type="number"],
input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.82rem 2.9rem 0.82rem 0.95rem;
  border: 1px solid rgba(23, 50, 70, 0.14);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.2;
}

select {
  appearance: none;
  text-overflow: ellipsis;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select:focus,
input:focus {
  outline: 2px solid rgba(33, 71, 97, 0.18);
  border-color: rgba(33, 71, 97, 0.32);
}

.checkbox-field {
  display: flex;
  gap: 0.85rem;
  align-items: start;
  min-height: 3rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(23, 50, 70, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
}

.checkbox-field input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--navy);
}

.checkbox-field span {
  display: grid;
  gap: 0.2rem;
}

.checkbox-field strong {
  font-size: 0.9rem;
}

.checkbox-field small {
  font-size: 0.82rem;
  line-height: 1.35;
}

.raceway-pills {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
}

.conductor-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

.schedule-row {
  padding: 1rem;
}

.schedule-row::before {
  background: linear-gradient(135deg, rgba(23, 50, 70, 0.04), transparent 48%);
}

.schedule-row[data-group-key="southwire-power"]::before {
  background: linear-gradient(135deg, rgba(78, 126, 158, 0.09), transparent 48%);
}

.schedule-row[data-group-key="leviton-ict"]::before {
  background: linear-gradient(135deg, rgba(74, 155, 130, 0.1), transparent 48%);
}

.schedule-row[data-group-key="security-access"]::before {
  background: linear-gradient(135deg, rgba(180, 140, 77, 0.12), transparent 48%);
}

.schedule-row[data-group-key="bms"]::before {
  background: linear-gradient(135deg, rgba(123, 111, 176, 0.12), transparent 48%);
}

.schedule-row[data-group-key="notifier-reference"]::before {
  background: linear-gradient(135deg, rgba(199, 118, 90, 0.11), transparent 48%);
}

.schedule-row[data-group-key="custom"]::before {
  background: linear-gradient(135deg, rgba(96, 116, 134, 0.11), transparent 48%);
}

.row-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.row-header h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
}

.row-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.row-grid--library {
  grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1fr) minmax(170px, 0.8fr);
}

.row-grid--library .row-field:nth-child(4) {
  grid-column: 1 / -1;
}

.row-grid--custom {
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1fr) minmax(115px, 0.6fr) minmax(170px, 0.8fr);
}

.row-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  background: rgba(23, 50, 70, 0.05);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.meta-chip--primary {
  background: rgba(33, 71, 97, 0.09);
  color: var(--ink);
}

.meta-chip strong {
  color: var(--ink);
}

.cutsheet-link,
.cutsheet-inline,
.diagram-item a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cutsheet-link {
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  background: rgba(33, 71, 97, 0.08);
}

.cutsheet-inline {
  margin-left: 0.45rem;
}

.helper-text {
  position: relative;
  z-index: 1;
  margin: 0.95rem 0 0;
  font-size: 0.9rem;
}

.note-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.note-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.84);
}

.note-card::before {
  background: linear-gradient(135deg, rgba(168, 135, 74, 0.08), transparent 50%);
}

.note-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.25;
}

.note-card p {
  margin: 0;
  font-size: 0.9rem;
}

.results-header {
  display: grid;
  gap: 0.65rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(23, 50, 70, 0.08);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill.is-pass {
  background: var(--teal-soft);
  color: #256b5b;
}

.status-pill.is-fail {
  background: var(--coral-soft);
  color: #9e5c45;
}

.summary-stats {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
}

.summary-stats div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.summary-stats dt {
  font-size: 0.83rem;
  font-weight: 700;
}

.summary-stats dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.results-empty {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  background: rgba(23, 50, 70, 0.035);
  font-size: 0.92rem;
}

.results-body {
  margin-top: 1rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.result-card {
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.82);
}

.result-card:nth-child(1) {
  background: linear-gradient(180deg, #edf7f2, rgba(255, 255, 255, 0.86));
}

.result-card:nth-child(2) {
  background: linear-gradient(180deg, #eaf4f9, rgba(255, 255, 255, 0.86));
}

.result-card:nth-child(3) {
  background: linear-gradient(180deg, #fbf4e4, rgba(255, 255, 255, 0.88));
}

.result-card:nth-child(4) {
  background: linear-gradient(180deg, #fff0e8, rgba(255, 255, 255, 0.88));
}

.result-card span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
}

.meter-block {
  margin-top: 1rem;
}

.meter-track {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 50, 70, 0.08);
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), #4e7e9e, var(--teal));
  transition: width 180ms ease;
}

.meter-fill.is-fail {
  background: linear-gradient(90deg, #c16a4e, #d38b6e);
}

.meter-limit {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: rgba(23, 50, 70, 0.76);
}

.meter-legend {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.55rem;
  font-size: 0.84rem;
}

.message-card,
.advisory-card,
.diagram-card,
.breakdown-card {
  margin-top: 1rem;
  padding: 1rem;
}

.message-card {
  font-weight: 700;
}

.message-card.is-pass {
  border-color: rgba(62, 136, 118, 0.22);
  background: linear-gradient(180deg, rgba(62, 136, 118, 0.12), rgba(255, 255, 255, 0.86));
}

.message-card.is-fail {
  border-color: rgba(199, 118, 90, 0.24);
  background: linear-gradient(180deg, rgba(199, 118, 90, 0.14), rgba(255, 255, 255, 0.88));
}

.advisory-card {
  border-color: rgba(168, 135, 74, 0.24);
  background: linear-gradient(180deg, rgba(168, 135, 74, 0.12), rgba(255, 255, 255, 0.88));
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.diagram-card {
  background: linear-gradient(180deg, #edf7f2, rgba(255, 255, 255, 0.9));
  border-color: rgba(74, 155, 130, 0.22);
}

.diagram-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.diagram-header h3,
.breakdown-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.diagram-header p {
  margin: 0.28rem 0 0;
  font-size: 0.84rem;
}

.diagram-badge {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.diagram-surface {
  margin-top: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 50, 70, 0.08);
  background:
    radial-gradient(circle at center, rgba(238, 244, 248, 0.9), rgba(255, 255, 255, 0.88));
  padding: 0.7rem;
}

.diagram-surface svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-legend {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.diagram-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(23, 50, 70, 0.04);
}

.swatch {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(23, 50, 70, 0.16);
}

.diagram-item strong {
  display: block;
  font-size: 0.9rem;
}

.diagram-item small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.diagram-item span {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
}

.diagram-caption {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
}

.breakdown-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.breakdown-card {
  background: linear-gradient(180deg, #f8f4eb, rgba(255, 255, 255, 0.9));
  border-color: rgba(168, 135, 74, 0.2);
}

.breakdown-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.82rem;
  border-radius: var(--radius-sm);
  background: rgba(23, 50, 70, 0.04);
}

.breakdown-item strong {
  display: block;
  font-size: 0.92rem;
}

.breakdown-item small {
  display: block;
  font-size: 0.78rem;
}

.breakdown-item span {
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
}

.site-footer {
  padding: 0 0 2.1rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.9rem;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1180px) {
  .header-inner,
  .intro-shell,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-self: start;
  }

  .intro-actions {
    justify-items: start;
  }

  .workspace-side {
    position: static;
  }
}

@media (max-width: 900px) {
  .field-grid--three,
  .note-grid,
  .result-grid,
  .row-grid--library,
  .row-grid--custom {
    grid-template-columns: 1fr;
  }

  .stack-heading--split,
  .diagram-header,
  .meter-legend {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 2.4rem 0;
  }

  .section--compact {
    padding-top: 0;
    padding-bottom: 2.2rem;
  }

  .site-header {
    position: static;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .brand {
    align-items: flex-start;
  }

  .brand-copy span:last-child {
    font-size: 0.82rem;
  }

  .header-cta,
  .button,
  .remove-button {
    width: 100%;
  }

  .row-header {
    flex-direction: column;
    align-items: start;
  }

  .footer-inner {
    flex-direction: column;
  }
}
