:root {
  --interior-measure: 1180px;
}

.interior-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--navy);
}

.interior-page main {
  color: var(--navy);
}

.interior-page .site-header {
  position: sticky;
}

.interior-page .site-nav [aria-current='page']::after {
  transform: scaleX(1);
}

.interior-main {
  min-height: calc(100vh - 76px);
}

.interior-hero {
  border-bottom: 1px solid var(--rule);
  padding: clamp(64px, 8vw, 112px) 0 clamp(58px, 7vw, 96px);
}

.interior-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: end;
}

.page-coordinate,
.section-coordinate {
  display: block;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.45;
}

.page-coordinate {
  margin-bottom: 28px;
}

.page-title {
  max-width: 12ch;
  font-size: clamp(3.7rem, 7vw, 7.4rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.page-title-wide {
  max-width: 16ch;
}

.page-lead {
  max-width: 58ch;
  margin-top: 32px;
  color: var(--navy-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.7;
}

.page-lead strong {
  color: var(--navy);
}

.hero-index {
  border-top: 2px solid var(--navy);
}

.hero-index > div,
.hero-index > a {
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  color: var(--navy);
  text-decoration: none;
}

.hero-index span {
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.hero-index strong {
  font-size: 0.95rem;
  font-weight: 650;
}

.hero-index a:hover strong,
.hero-index a:focus-visible strong {
  color: var(--cobalt);
}

.field-section {
  border-bottom: 1px solid var(--rule);
  padding: clamp(70px, 8vw, 120px) 0;
}

.field-section:last-child {
  border-bottom: 0;
}

.field-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(300px, 1.25fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
  margin-bottom: clamp(42px, 6vw, 82px);
}

.field-heading h2 {
  max-width: 14ch;
  font-size: clamp(2.45rem, 4vw, 4.6rem);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.field-heading p {
  max-width: 60ch;
  color: var(--navy-soft);
  line-height: 1.75;
}

.field-heading p + p {
  margin-top: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}

.field-cell {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 38px);
}

.field-cell .cell-index {
  margin-bottom: 44px;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.field-cell h3 {
  max-width: 22ch;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.15;
}

.field-cell p {
  max-width: 42ch;
  margin-top: 14px;
  color: var(--navy-soft);
  line-height: 1.65;
}

.field-cell .text-link {
  margin-top: auto;
  padding-top: 28px;
}

.route-sheet {
  border: 1px solid var(--rule-strong);
  background:
    linear-gradient(rgba(203, 213, 223, 0.36) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 213, 223, 0.36) 1px, transparent 1px),
    var(--plot);
  background-size: 44px 44px;
}

.route-sheet-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.82);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.route-sheet-head strong {
  letter-spacing: 0.08em;
}

.route-steps {
  list-style: none;
  margin: 0;
  padding: 0 clamp(24px, 5vw, 70px);
}

.route-steps li {
  position: relative;
  min-height: 128px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.route-steps li:last-child {
  border-bottom: 0;
}

.route-steps li:not(:last-child)::after {
  position: absolute;
  bottom: -18px;
  left: 29px;
  width: 1px;
  height: 36px;
  background: var(--cobalt);
  content: '';
}

.route-steps .step-index {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--mono);
}

.route-steps li:last-child .step-index {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.route-steps h3 {
  font-size: 1.2rem;
}

.route-steps p,
.route-steps small {
  color: var(--navy-soft);
  line-height: 1.55;
}

.route-steps small {
  font-family: var(--mono);
  font-size: 0.72rem;
}

.source-band {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 100px);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  padding: 30px 0;
}

.source-band strong {
  font-family: var(--mono);
  font-size: 0.76rem;
}

.source-band p {
  max-width: 70ch;
  color: var(--navy-soft);
}

.source-band a {
  color: var(--cobalt);
}

.split-list {
  border-top: 1px solid var(--rule-strong);
}

.split-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}

.split-row h3 {
  font-size: 1.05rem;
}

.split-row p {
  max-width: 60ch;
  color: var(--navy-soft);
}

.split-row code {
  color: var(--cobalt-dark);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.claim-note {
  border-left: 4px solid var(--rust);
  padding: 6px 0 6px 24px;
  color: var(--navy-soft);
}

.claim-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

/* Polly: routing surface */
.polly-page main {
  max-width: none;
  padding: 0;
}

.polly-page .hero,
.polly-page .section {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.polly-page .hero {
  min-height: 0;
  padding: clamp(64px, 8vw, 110px) 0;
}

.polly-page .hero::before {
  display: none;
}

.polly-page .hero-inner,
.polly-page .section-inner {
  width: min(var(--shell), calc(100% - (2 * var(--gutter))));
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

.polly-page .hero-grid {
  grid-template-columns: minmax(380px, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(44px, 7vw, 112px);
  align-items: stretch;
}

.polly-page .eyebrow {
  display: block;
  margin-bottom: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
}

.polly-page .eyebrow .dot {
  display: none;
}

.polly-page .hero-copy h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.7rem, 6.1vw, 6.9rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.polly-page .hero-copy h1 .gradient {
  background: none;
  color: var(--cobalt);
  -webkit-text-fill-color: currentColor;
}

.polly-page .hero-copy > p {
  max-width: 54ch;
  margin-top: 30px;
  color: var(--navy-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.polly-page .hero-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}

.polly-page .hero-points span {
  min-height: 54px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 12px 15px;
  background: transparent;
  color: var(--navy-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.polly-page .hero-ctas,
.polly-page .button-row {
  gap: 12px;
  margin-top: 32px;
}

.polly-page .btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cobalt);
  border-radius: 0;
  padding: 14px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.polly-page .btn-primary {
  background: var(--cobalt);
  color: var(--paper);
}

.polly-page .btn-secondary {
  background: var(--paper);
  color: var(--cobalt);
}

.polly-page .btn:hover {
  transform: none;
  background: var(--navy);
  color: var(--paper);
}

.polly-page .hero-panel {
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(rgba(203, 213, 223, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 213, 223, 0.34) 1px, transparent 1px),
    var(--plot);
  background-size: 38px 38px;
  box-shadow: none;
}

.polly-page .hero-panel h2 {
  color: var(--navy);
  font-size: 1.45rem;
}

.polly-page .hero-panel > p {
  max-width: 48ch;
  margin-top: 12px;
  color: var(--navy-soft);
}

.polly-page .status-card {
  margin-top: 24px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.polly-page .status-label,
.polly-page .recommendation-label,
.polly-page .catalog-type,
.polly-page .lane-name {
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: none;
}

.polly-page .status-detail {
  margin-top: 5px;
  color: var(--navy-soft);
}

.polly-page .quick-actions {
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--rule-strong);
}

.polly-page .quick-actions button {
  width: 100%;
  min-height: 76px;
  display: grid;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 15px 0;
  background: transparent;
  color: var(--navy);
  text-align: left;
}

.polly-page .quick-actions button:hover,
.polly-page .quick-actions button:focus-visible {
  border-color: var(--cobalt);
  background: rgba(19, 95, 189, 0.06);
  padding-inline: 12px;
}

.polly-page .quick-actions strong {
  color: var(--navy);
  font-size: 0.92rem;
}

.polly-page .quick-actions span {
  color: var(--navy-soft);
  font-size: 0.8rem;
}

.polly-page .section {
  padding: clamp(72px, 8vw, 120px) 0;
}

.polly-page .assistant-shell {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 0;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}

.polly-page .assistant-console,
.polly-page .assistant-sidebar,
.polly-page .catalog-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.polly-page .assistant-console {
  min-height: 680px;
  border-right: 1px solid var(--rule);
  padding: clamp(26px, 4vw, 48px);
}

.polly-page .assistant-sidebar {
  gap: 0;
  padding: 0;
}

.polly-page .sidebar-block {
  border-bottom: 1px solid var(--rule);
  padding: 30px;
}

.polly-page .sidebar-block:last-child {
  border-bottom: 0;
}

.polly-page .console-header h2,
.polly-page .catalog-header h2 {
  max-width: 17ch;
  color: var(--navy);
  font-size: clamp(2.1rem, 3.3vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.polly-page .console-header p,
.polly-page .catalog-header p,
.polly-page .sidebar-block p {
  color: var(--navy-soft);
}

.polly-page .assistant-history {
  min-height: 280px;
  max-height: 440px;
  margin-top: 28px;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 18px;
  background: var(--plot);
}

.polly-page .assistant-message {
  border: 0;
  border-left: 3px solid var(--cobalt);
  border-radius: 0;
  padding: 14px 16px;
  background: var(--paper);
  color: var(--navy);
}

.polly-page .assistant-message.user {
  border-left-color: var(--rust);
  background: #fff9f6;
}

.polly-page .assistant-message-label {
  color: var(--cobalt);
  font-family: var(--mono);
}

.polly-page .assistant-message-body,
.polly-page .assistant-message-body p,
.polly-page .assistant-message-body li {
  color: var(--navy-soft);
}

.polly-page .assistant-message-body a {
  color: var(--cobalt);
}

.polly-page .assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 16px;
}

.polly-page .assistant-form textarea {
  min-height: 96px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 15px;
  background: var(--paper);
  color: var(--navy);
  resize: vertical;
}

.polly-page .assistant-form textarea::placeholder {
  color: var(--navy-soft);
}

.polly-page .recommendation-card,
.polly-page .packet-preview {
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--plot);
  color: var(--navy);
}

.polly-page .recommendation-card h3 {
  color: var(--navy);
}

.polly-page .recommendation-link,
.polly-page .packet-download,
.polly-page .packet-button {
  color: var(--cobalt);
}

.polly-page .packet-button,
.polly-page .packet-download {
  border: 1px solid var(--cobalt);
  border-radius: 0;
  background: var(--paper);
}

.polly-page .packet-preview {
  color: var(--navy-soft);
}

.polly-page .catalog-header {
  margin-bottom: 52px;
}

.polly-page .lane-grid,
.polly-page .catalog-grid {
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}

.polly-page .lane-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.polly-page .catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.polly-page .lane-card,
.polly-page .catalog-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 28px;
  background: var(--paper);
  box-shadow: none;
}

.polly-page .lane-card:hover,
.polly-page .catalog-card:hover {
  border-color: var(--rule);
  background: var(--plot);
  transform: none;
}

.polly-page .lane-card p,
.polly-page .catalog-card p,
.polly-page .catalog-list {
  color: var(--navy-soft);
}

.polly-page .lane-card a,
.polly-page .catalog-actions a {
  margin-top: auto;
  color: var(--cobalt);
}

.polly-page .catalog-card h4 {
  color: var(--navy);
  font-size: 1.25rem;
}

.polly-page .catalog-card.restricted {
  border-top: 3px solid var(--rust);
  background: #fff9f6;
}

.polly-page .catalog-boundary {
  border-left: 3px solid var(--rust);
  padding-left: 12px;
}

.polly-page .section-stack + .section-stack {
  margin-top: 72px;
}

.polly-page .section-stack h3 {
  margin-bottom: 18px;
  color: var(--navy);
}

/* Architecture: keep the depth viewport, move its framing onto the paper system. */
.architecture-page main {
  width: min(var(--interior-measure), calc(100% - (2 * var(--gutter))));
  max-width: none;
  margin-inline: auto;
  padding: clamp(64px, 8vw, 112px) 0 110px;
}

.architecture-page .kicker {
  display: block;
  margin: 0 0 26px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: none;
}

.architecture-page main > h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.7rem, 6.2vw, 7rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.architecture-page main > h1 em {
  background: none;
  color: var(--cobalt);
  font-style: normal;
  -webkit-text-fill-color: currentColor;
}

.architecture-page .lede {
  max-width: 60ch;
  margin: 28px 0 52px;
  color: var(--navy-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.architecture-page .box-window {
  max-width: 880px;
  height: min(58vh, 520px);
  margin: 0 0 72px auto;
  border: 10px solid var(--navy);
  border-radius: 0;
  box-shadow: 22px 24px 0 var(--mist);
}

.architecture-page .cats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}

.architecture-page .cat {
  min-height: 235px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 28px;
  background: var(--paper);
}

.architecture-page .cat .n {
  color: var(--cobalt);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: none;
}

.architecture-page .cat h3 {
  color: var(--navy);
}

.architecture-page .cat p,
.architecture-page .cat ul {
  color: var(--navy-soft);
}

.architecture-page section.block {
  margin: 96px 0 0;
}

.architecture-page section.block > h2 {
  max-width: 14ch;
  margin-bottom: 36px;
  color: var(--navy);
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: none;
}

.architecture-page section.block > p {
  max-width: 65ch !important;
  margin: -16px 0 38px !important;
  color: var(--navy-soft) !important;
}

.architecture-page .fields-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}

.architecture-page .field-card {
  min-height: 180px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 22px;
  background: var(--paper);
}

.architecture-page .field-card .name,
.architecture-page .field-card .w {
  color: var(--navy-soft);
}

.architecture-page .field-card .field {
  color: var(--navy);
}

.architecture-page .browser-row {
  gap: 0;
  margin-top: 0;
}

.architecture-page .chip {
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--plot);
  color: var(--navy-soft);
}

.architecture-page .links {
  gap: 12px;
  margin-top: 56px;
}

.architecture-page .btn {
  border: 1px solid var(--cobalt);
  border-radius: 0;
  padding: 13px 17px;
  background: var(--paper);
  color: var(--cobalt);
}

.architecture-page .btn.gold {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: var(--paper);
}

.architecture-page .src-note {
  margin-top: 44px;
  border: 0;
  border-top: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 24px 0 0;
  color: var(--navy-soft);
}

.architecture-page .src-note code {
  color: var(--cobalt-dark);
}

/* Operations evidence explorer */
.operations-page main {
  width: min(var(--interior-measure), calc(100% - (2 * var(--gutter))));
  max-width: none;
  margin-inline: auto;
  padding: clamp(64px, 8vw, 112px) 0 110px;
}

.operations-page .hero-label {
  display: block;
  margin-bottom: 26px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: none;
}

.operations-page main > h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.8rem, 7vw, 7.4rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.operations-page main > h1 span {
  color: var(--navy);
}

.operations-page .subtitle {
  max-width: 64ch;
  margin: 30px 0 0;
  color: var(--navy-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.operations-page .hero-links {
  gap: 12px;
  margin: 34px 0 0;
}

.operations-page .hero-link {
  border: 1px solid var(--cobalt);
  border-radius: 0;
  padding: 13px 18px;
  background: var(--paper);
  color: var(--cobalt);
}

.operations-page .hero-link:hover {
  background: var(--navy);
  color: var(--paper);
  transform: none;
}

.operations-page .stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 72px 0 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}

.operations-page .stat {
  min-height: 150px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 24px;
  background: var(--paper);
}

.operations-page .stat strong {
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 1.65rem;
}

.operations-page .stat span {
  color: var(--navy-soft);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.operations-page .scope-note {
  margin: 42px 0 0;
  border: 0;
  border-left: 4px solid var(--rust);
  border-radius: 0;
  padding: 4px 0 4px 22px;
  background: transparent;
  color: var(--navy-soft);
}

.operations-page .scope-note strong {
  color: var(--navy);
}

.operations-page .explorer,
.operations-page .policy {
  margin: 96px 0 0;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: clamp(26px, 4vw, 48px);
  background: var(--paper);
  box-shadow: none;
}

.operations-page .explorer-header {
  gap: 40px;
  align-items: end;
}

.operations-page .explorer h2,
.operations-page .policy h2 {
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 3.35rem);
  letter-spacing: -0.045em;
}

.operations-page .explorer-header p,
.operations-page .policy p,
.operations-page .policy li {
  color: var(--navy-soft);
}

.operations-page .view-switcher {
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.operations-page .view-switcher button {
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  color: var(--navy-soft);
}

.operations-page .view-switcher button[aria-selected='true'] {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: var(--paper);
}

.operations-page .search-row {
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 26px 0;
  background: transparent;
}

.operations-page .search-field label,
.operations-page .result-count {
  color: var(--navy-soft);
}

.operations-page .search-field input {
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--navy);
}

.operations-page details.record {
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
}

.operations-page details.record[open] {
  border-color: var(--cobalt);
  box-shadow: none;
}

.operations-page details.record summary {
  color: var(--navy);
}

.operations-page details.record summary::before {
  color: var(--cobalt);
}

.operations-page .summary-main h3,
.operations-page .measure {
  color: var(--navy);
}

.operations-page .chip {
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--plot);
  color: var(--navy-soft);
}

.operations-page .record-body {
  border-left-color: var(--cobalt);
  background: var(--plot);
}

.operations-page .fact dt,
.operations-page .boundary,
.operations-page .source-line {
  color: var(--navy-soft);
}

.operations-page .fact dd {
  color: var(--navy);
}

.operations-page .record-links a {
  border: 1px solid var(--cobalt);
  border-radius: 0;
  color: var(--cobalt);
}

/* Support uses its existing information architecture with the common field sheet. */
.support-page .container {
  width: min(var(--interior-measure), calc(100% - (2 * var(--gutter))));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.support-page main.container {
  padding-top: 0;
  padding-bottom: 96px;
}

.support-page .hero {
  border-bottom: 1px solid var(--rule);
  padding: clamp(64px, 8vw, 112px) 0 70px;
  background: var(--paper);
}

.support-page .hero-card {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.support-page .eyebrow {
  margin-bottom: 26px;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: none;
}

.support-page h1 {
  max-width: 13ch;
  color: var(--navy);
  font-size: clamp(3.8rem, 7vw, 7.4rem);
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.support-page .lead {
  max-width: 62ch;
  margin-top: 30px;
  color: var(--navy-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.support-page .chip-row {
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}

.support-page .chip {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 10px 15px;
  background: var(--paper);
  color: var(--navy-soft);
}

.support-page .cta-row,
.support-page .actions {
  gap: 12px;
  margin-top: 30px;
}

.support-page .btn {
  min-height: 48px;
  border: 1px solid var(--cobalt);
  border-radius: 0;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--cobalt);
}

.support-page .btn-primary {
  background: var(--cobalt);
  color: var(--paper);
}

.support-page .btn:hover {
  background: var(--navy);
  color: var(--paper);
  transform: none;
}

.support-page .section {
  border-bottom: 1px solid var(--rule);
  padding: 82px 0;
}

.support-page .section > h2 {
  max-width: 13ch;
  color: var(--navy);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.support-page .section-intro {
  max-width: 60ch;
  margin-top: 18px;
  color: var(--navy-soft);
}

.support-page .card-grid {
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}

.support-page .card,
.support-page .article,
.support-page .side-card,
.support-page .callout {
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.support-page .card {
  min-height: 250px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px;
}

.support-page .card h3,
.support-page .article h3,
.support-page .side-card h3,
.support-page .callout h3 {
  color: var(--navy);
}

.support-page .card p,
.support-page .article p,
.support-page .side-card p,
.support-page .callout p,
.support-page li,
.support-page td,
.support-page th {
  color: var(--navy-soft);
}

.support-page .info-grid {
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--rule-strong);
}

.support-page .article {
  border: 0;
  padding: clamp(24px, 4vw, 42px);
}

.support-page .article + .article {
  border-left: 1px solid var(--rule);
}

.support-page .flow {
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.support-page .flow-step {
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: var(--plot);
}

.support-page .flow-step strong {
  color: var(--navy);
}

.support-page .table-wrap,
.support-page .side-card,
.support-page .callout {
  border-color: var(--rule);
}

.support-page .callout.success {
  border-left: 4px solid var(--cobalt);
  background: var(--plot);
}

.support-page code {
  color: var(--cobalt-dark);
}

.support-page .footer.container {
  width: min(var(--shell), calc(100% - (2 * var(--gutter))));
}

@media (max-width: 1100px) {
  .interior-hero-grid,
  .field-heading,
  .polly-page .hero-grid,
  .polly-page .assistant-shell {
    grid-template-columns: 1fr;
  }

  .hero-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid var(--rule);
  }

  .hero-index > div,
  .hero-index > a {
    border-right: 1px solid var(--rule);
    padding-inline: 18px;
  }

  .polly-page .assistant-console {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .architecture-page .cats,
  .architecture-page .fields-grid,
  .operations-page .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-title,
  .polly-page .hero-copy h1,
  .architecture-page main > h1,
  .operations-page main > h1,
  .support-page h1 {
    font-size: clamp(3.15rem, 14vw, 5rem);
  }

  .field-grid,
  .polly-page .lane-grid,
  .polly-page .catalog-grid,
  .architecture-page .cats,
  .architecture-page .fields-grid,
  .operations-page .stats {
    grid-template-columns: 1fr;
  }

  .field-cell {
    min-height: 190px;
  }

  .route-steps li {
    min-height: 150px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
  }

  .route-steps small {
    grid-column: 2;
  }

  .route-steps .step-index {
    width: 50px;
    height: 50px;
  }

  .route-steps li:not(:last-child)::after {
    left: 24px;
  }

  .source-band,
  .split-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .split-row .text-link {
    justify-self: start;
  }

  .polly-page .hero-points,
  .hero-index {
    grid-template-columns: 1fr;
  }

  .polly-page .assistant-form {
    grid-template-columns: 1fr;
  }

  .polly-page .assistant-form .btn {
    width: 100%;
  }

  .architecture-page .box-window {
    height: 440px;
    border-width: 6px;
    box-shadow: 12px 14px 0 var(--mist);
  }

  .architecture-page .browser-row,
  .support-page .info-grid {
    grid-template-columns: 1fr;
  }

  .support-page .article + .article {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .interior-page *,
  .interior-page *::before,
  .interior-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
