/*
  Page layout for the Xelence Interactive Roadmap. Colours, type and radii come from tokens.css
  (the Xelence Design System); shared components come from xr-components.css.
  Fonts: Palanquin and Palanquin Dark, self-hosted in fonts/ (copied there by tools/prepare_app.py).
  No Google Fonts request, and no inline styles: the Content-Security-Policy allows neither.
*/

@font-face {
  font-family: "Palanquin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/palanquin-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Palanquin";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/palanquin-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Palanquin";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/palanquin-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Palanquin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/palanquin-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Palanquin Dark";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/palanquin-dark-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Palanquin Dark";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/palanquin-dark-latin-700.woff2") format("woff2");
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  /* Keeps a focused element from hiding under the sticky top bar. */
  scroll-padding-top: 5rem;
}

/* The page ground: the design system's radial gradient from white through bg. */
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 0 0, #ffffff 0, var(--bg) 45%, #edf2f7 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Reading text: Palanquin's small x-height needs a little more leading. */
.xr-card-section,
.xr-prose-block,
.xr-glossary dd,
.xr-status-table dd,
.xr-summary dd {
  line-height: 1.6;
}

/* Fewer one-word last lines. */
p,
li,
dd,
.xr-breadcrumb li {
  text-wrap: pretty;
}

h1,
h2 {
  text-wrap: balance;
}

.xr-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: transparent;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  text-wrap: balance;
}

p {
  margin: 0;
}

.app-icon {
  display: inline-block;
  flex: none;
  vertical-align: -0.15em;
}

.xr-container {
  width: min(1280px, 100% - 2rem);
  margin-inline: auto;
}

.xr-muted {
  color: var(--text-secondary);
}

/* Links in the page body: link colour, always underlined (link is only 2.3:1 against text-primary). */
:where(.xr-main) a:not([class]),
.xr-arrow-link {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:where(.xr-main) a:not([class]):hover,
.xr-arrow-link:hover {
  color: var(--sag-blue-dark);
}

.xr-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}

.xr-arrow-link .app-icon {
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.xr-arrow-link:hover .app-icon {
  transform: translateX(2px);
}

/* Top bar: Sagitec blue with the orange rule under it. */
.xr-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sag-blue);
  border-bottom: 3px solid var(--sag-orange);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.xr-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 60px;
  padding-block: 0.4rem;
}

.xr-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.xr-wordmark {
  font-family: var(--font-display);
  font-size: var(--type-wordmark-size);
  font-weight: var(--type-wordmark-weight);
  line-height: 1;
}

.xr-wordmark-dot {
  color: var(--sag-orange);
}

.xr-brand-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.35);
}

.xr-product-name {
  font-size: var(--type-product-name-size);
  font-weight: var(--type-product-name-weight);
  letter-spacing: 0.02em;
  color: #fff;
}

.xr-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xr-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: var(--type-nav-link-size);
  font-weight: var(--type-nav-link-weight);
  text-decoration: none;
  transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.xr-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* The current page: a lighter fill plus an orange underline, so it isn't told by fill alone. */
.xr-nav a.active {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 -3px 0 var(--sag-orange);
  font-weight: 600;
}

.xr-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 1.5rem 3.5rem;
}

.xr-main:focus {
  outline: none;
}

/* Footer */
.xr-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: var(--type-helper-size);
}

.xr-footer-inner {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 3fr;
  gap: 1rem 2rem;
  padding-block: 1.5rem 1.75rem;
}

.xr-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--text-primary);
  font-weight: 500;
}

.xr-footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
}

.xr-footer-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.xr-footer-asof {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--text-primary);
}

/* Hero: flat deep blue (the explorer's gradient ends at a colour white text fails on). */
.xr-hero {
  position: relative;
  padding: 2rem 2rem 2.1rem;
  border-radius: var(--radius-lg);
  background: var(--sag-blue-deep);
  color: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.xr-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sag-orange), var(--sag-orange-dark));
}

.xr-hero h1,
.xr-page-header h1,
.xr-card-header h1 {
  font-family: var(--font-display);
  font-size: var(--type-hero-title-size);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.xr-hero h1 {
  max-width: 30ch;
}

.xr-hero > p:not(.xr-eyebrow) {
  max-width: 34em;
  margin-top: 0.6rem;
  font-size: 1.125rem;
}

.xr-hero-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
}

.xr-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.xr-hero-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.xr-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: var(--type-helper-size);
}

.xr-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.xr-eyebrow {
  margin: 0 0 0.4rem;
  color: var(--sag-orange);
  font-size: var(--type-eyebrow-size);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* On a light ground the orange eyebrow would fail contrast: use the brand blue. */
.xr-eyebrow--on-light {
  color: var(--sag-blue);
}

.xr-page-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.xr-lede {
  max-width: 34em;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* A quiet information note (the disclaimer). */
.xr-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--sag-blue-mid);
  border-radius: var(--radius-md);
  background: var(--sag-blue-light);
  color: var(--sag-blue-ink);
  font-size: var(--type-helper-size);
}

.xr-note .app-icon {
  margin-top: 0.2em;
}

/* Loading */
.xr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin: 18vh auto;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  text-align: center;
}

.xr-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--sag-blue-mid);
  border-top-color: var(--sag-blue);
  border-radius: 50%;
  animation: xr-spin 0.9s linear infinite;
}

@keyframes xr-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty, not-found and error states */
.xr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 3rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.xr-empty-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.25rem;
  border-radius: 50%;
  background: var(--sag-blue-light);
  color: var(--sag-blue);
}

.xr-empty--error {
  border-color: var(--sag-red);
}

.xr-empty--error .xr-empty-icon {
  background: #fdecec;
  color: var(--danger-text);
}

.xr-empty h1,
.xr-empty h2 {
  font-size: var(--type-section-title-size);
}

.xr-empty-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 30em;
  color: var(--text-secondary);
}

.xr-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* Controls */
.xr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid var(--sag-blue);
  border-radius: var(--radius-pill);
  background: var(--sag-blue);
  color: #fff;
  font: inherit;
  font-size: var(--type-button-size);
  font-weight: var(--type-button-weight);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.xr-button:hover {
  background: var(--sag-blue-dark);
  border-color: var(--sag-blue-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.xr-button--secondary {
  background: var(--surface);
  color: var(--sag-blue);
}

.xr-button--secondary:hover {
  background: var(--sag-blue-light);
  color: var(--sag-blue-dark);
}

.xr-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-end;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: var(--type-helper-size);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.xr-link-button:hover {
  color: var(--sag-blue-dark);
}

.xr-input,
.xr-select {
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.xr-input:hover,
.xr-select:hover {
  border-color: var(--sag-blue);
}

/* The blue border and halo are extra; the focus ring from xr-components.css is the real cue. */
.xr-input:focus,
.xr-select:focus {
  border-color: var(--sag-blue);
  box-shadow: 0 0 0 3px var(--sag-blue-light);
}

.xr-input::placeholder {
  color: var(--text-secondary);
}

.xr-input-icon {
  position: relative;
  display: flex;
  flex: 1 1 12rem;
}

.xr-input-icon .app-icon {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  color: var(--text-secondary);
  transform: translateY(-50%);
  pointer-events: none;
}

.xr-input-icon .xr-input {
  width: 100%;
  padding-left: 2.3rem;
}

/* Filters */
.xr-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.75rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.xr-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.xr-filter-group .xr-select {
  min-width: 15rem;
}

.xr-filter-search {
  flex: 1 1 20rem;
}

.xr-chip-row,
.xr-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.xr-result-count {
  color: var(--text-secondary);
}

.xr-result-count strong {
  color: var(--text-primary);
}

/* The filters' fold toggle only shows on phones (see the 880px query). */
.xr-filter-toggle {
  display: none;
}

/* Jump to an area: the full grid is 13 rows on wide screens. */
.xr-area-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
}

.xr-area-jump[hidden] {
  display: none;
}

.xr-area-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xr-area-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-primary);
  font-size: var(--type-chip-size);
  text-decoration: none;
}

.xr-area-jump a:hover {
  border-color: var(--link);
  color: var(--link);
}

.xr-filter-help {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--link);
  font-size: var(--type-helper-size);
}

/* Roadmap grid: areas as rows, horizons as columns. */
.xr-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.xr-grid-head,
.xr-grid-row {
  display: grid;
  grid-template-columns: minmax(12.5rem, 1fr) repeat(4, minmax(0, 1.25fr));
  gap: 0.5rem;
}

/* The column heads stay in view under the sticky top bar while the rows scroll. */
.xr-grid-head {
  position: sticky;
  top: 63px;
  z-index: 10;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  background: rgba(245, 247, 250, 0.94);
  color: var(--text-secondary);
  font-size: var(--type-field-label-size);
  font-weight: 600;
}

.xr-grid-head-area {
  align-self: end;
  padding: 0.5rem 0.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.xr-grid-horizon {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.xr-horizon-name {
  font-size: var(--type-card-title-size);
  font-weight: 700;
}

.xr-horizon-value,
.xr-horizon-release {
  color: var(--text-secondary);
  font-size: var(--type-helper-size);
  font-weight: 400;
}

.xr-grid-row {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.xr-grid-area {
  padding: 0.5rem 0.4rem;
}

.xr-grid-area h2 {
  /* Clear the sticky top bar and column heads when a jump link scrolls here. */
  scroll-margin-top: 10.5rem;
  font-size: var(--type-card-title-size);
}

.xr-grid-area a {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-primary);
  text-decoration: none;
}

.xr-grid-area a > span:last-child {
  padding-top: 0.2rem;
}

.xr-grid-area a:hover .xr-area-icon {
  background: var(--sag-blue);
  color: #fff;
}

.xr-grid-area a:hover {
  color: var(--link);
}

.xr-grid-area-chevron {
  color: var(--sag-blue);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.xr-grid-area a:hover .xr-grid-area-chevron {
  transform: translateX(2px);
}

.xr-grid-area p {
  margin-top: 0.3rem;
  color: var(--text-secondary);
  font-size: var(--type-helper-size);
}

/* The phone-only area index (see the max-width: 880px block). */
.xr-grid-summary {
  display: none;
}

.xr-grid-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
}

.xr-grid-summary li {
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--type-helper-size);
}

.xr-grid-cell {
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-md);
  min-width: 0;
}

.xr-grid-cell-heading {
  /* Column headers name the horizon on wide screens; this heading takes over when rows stack. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.xr-horizon--today {
  background: var(--horizon-today-bg);
}

.xr-horizon--now {
  background: var(--horizon-now-bg);
}

.xr-horizon--next {
  background: var(--horizon-next-bg);
}

.xr-horizon--later {
  background: var(--horizon-later-bg);
  border: 1px dashed var(--border-strong);
}

/* Items in a cell: a list of navigation links, so they aren't underlined until hovered. */
.xr-item-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xr-item-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.35rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: var(--type-item-title-size);
  line-height: 1.4;
}

/* The whole row is the link's target (the ::after below); hovering anywhere on it colors the title. */
.xr-item-list li {
  position: relative;
}

.xr-item-list a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
}

.xr-item-list a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.xr-item-list a {
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.xr-item-list li:hover a,
.xr-item-list a:focus-visible {
  color: var(--link);
}

/* "Show N more" / "Show less" under a cell's list. */
.xr-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  margin-top: 0.2rem;
  padding: 0 0.4rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--link);
  font: inherit;
  font-size: var(--type-helper-size);
  font-weight: 600;
  cursor: pointer;
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.xr-more-toggle:hover {
  color: var(--sag-blue-dark);
}

.xr-more-toggle-chevron {
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.xr-more-toggle[aria-expanded="true"] .xr-more-toggle-chevron {
  transform: rotate(180deg);
}

/* Capability area icon: brand blue on a light blue tile. */
.xr-area-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background: var(--sag-blue-light);
  color: var(--sag-blue);
  transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.xr-area-icon--large {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
}

.xr-area-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.xr-cell-note {
  padding: 0.35rem 0.4rem;
  color: var(--text-secondary);
  font-size: var(--type-helper-size);
  font-style: italic;
}

/* Detail card and area pages */
.xr-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--type-helper-size);
}

.xr-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.xr-breadcrumb li + li::before {
  content: "";
  width: 0.9em;
  height: 0.9em;
  background: var(--text-secondary);
  /* Fluent's chevron-right as a mask, so the separator needs no markup of its own. */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.65 3.15a.5.5 0 0 0 0 .7L9.79 8l-4.14 4.15a.5.5 0 0 0 .7.7l4.5-4.5a.5.5 0 0 0 0-.7l-4.5-4.5a.5.5 0 0 0-.7 0Z'/%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 16 16'%3E%3Cpath d='M5.65 3.15a.5.5 0 0 0 0 .7L9.79 8l-4.14 4.15a.5.5 0 0 0 .7.7l4.5-4.5a.5.5 0 0 0 0-.7l-4.5-4.5a.5.5 0 0 0-.7 0Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.xr-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.xr-breadcrumb [aria-current="page"] {
  color: var(--text-secondary);
}

.xr-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  align-items: start;
  gap: 1.5rem;
}

.xr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  padding: 1.75rem 2rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* The design system's 3px card top bar. */
.xr-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sag-blue), rgba(0, 128, 224, 0.8));
}

.xr-card-header h1 {
  margin-top: 0.75rem;
}

.xr-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.xr-horizon-tag {
  padding: 0.14rem 0.6rem;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: var(--type-badge-size);
  font-weight: 600;
}

.xr-card-technical {
  margin-top: 0.4rem;
  color: var(--text-secondary);
  font-size: var(--type-helper-size);
}

.xr-card-section h2,
.xr-panel h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.xr-card-section h2 {
  font-size: var(--type-section-title-size);
}

.xr-card-section p + p {
  margin-top: 0.85em;
}

.xr-card-section p,
.xr-card-section ul {
  max-width: 34em;
}

.xr-card-section ul {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}

.xr-card-section li + li {
  margin-top: 0.4em;
}

.xr-card-section ul + p {
  margin-top: 0.85em;
}

.xr-card-pending {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text-secondary);
}

.xr-card-pending .app-icon {
  margin-top: 0.15rem;
  color: var(--sag-blue);
}

.xr-card-pending-title {
  margin-bottom: 0.2rem;
  color: var(--text-primary);
  font-weight: 600;
}

.xr-card-plan {
  padding: 1.1rem 1.25rem;
  border: 1px solid #ffe2b3;
  border-radius: var(--radius-md);
  background: var(--sag-orange-lite);
}

.xr-card-plan h2 .app-icon {
  color: #a45200;
}

.xr-check-list {
  list-style: none;
  padding-left: 0 !important;
}

.xr-check-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.xr-check-list .app-icon {
  color: var(--sag-green-ink);
}

.xr-link-list {
  list-style: none;
  padding-left: 0 !important;
}

.xr-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.xr-link-list .xr-muted {
  display: block;
  font-size: var(--type-helper-size);
}

/* The aside on an item page */
.xr-aside {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.xr-panel {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.xr-panel h2 {
  font-size: var(--type-detail-title-size);
}

.xr-panel--cta {
  border-color: var(--sag-blue-mid);
  background: var(--sag-blue-light);
  color: var(--sag-blue-ink);
}

.xr-panel--cta h2 {
  color: var(--text-primary);
}

.xr-panel--cta h2 .app-icon {
  color: var(--sag-blue);
}

.xr-facts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

.xr-facts dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: var(--type-field-label-size);
  font-weight: 600;
}

.xr-facts dt .app-icon {
  color: var(--sag-blue);
}

.xr-facts dd {
  margin: 0.1rem 0 0 1.4rem;
  font-weight: 500;
}

.xr-facts a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.xr-related {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.xr-related li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: var(--type-item-title-size);
  line-height: 1.4;
}

.xr-related a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.xr-related a::after {
  content: "";
  position: absolute;
  inset: -0.2rem -0.3rem;
}

.xr-related li:hover a,
.xr-related a:hover {
  color: var(--link);
  text-decoration-color: currentColor;
}

.xr-panel .xr-arrow-link {
  font-size: var(--type-helper-size);
}

/* Area page */
.xr-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.xr-summary dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.xr-summary dt .app-icon {
  color: var(--sag-blue);
}

.xr-summary dd {
  margin: 0.2rem 0 0;
  color: var(--text-secondary);
}

.xr-area-horizons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
}

.xr-area-horizon {
  padding: 1rem 0.75rem 0.75rem;
  border-radius: var(--radius-lg);
}

.xr-area-horizon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-inline: 0.4rem;
}

.xr-area-horizon h2 {
  font-size: var(--type-detail-title-size);
}

.xr-area-horizon > .xr-horizon-value {
  margin-bottom: 0.5rem;
  padding-inline: 0.4rem;
}

.xr-count {
  min-width: 1.6rem;
  padding: 0 0.45rem;
  border: 1px solid var(--sag-blue-mid);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--sag-blue-ink);
  font-size: var(--type-badge-size);
  font-weight: 600;
  text-align: center;
}

/* How to read */
.xr-horizon-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: horizon;
}

.xr-horizon-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--radius-lg);
  counter-increment: horizon;
}

.xr-horizon-steps li::before {
  content: counter(horizon);
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: var(--sag-blue);
  color: #fff;
  font-size: var(--type-badge-size);
  font-weight: 700;
}

.xr-horizon-step-name {
  font-size: var(--type-detail-title-size);
  font-weight: 700;
}

.xr-horizon-steps .xr-horizon-value {
  margin-bottom: 0.35rem;
}

.xr-status-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.6rem;
  margin: 0.25rem 0 0;
}

.xr-status-table > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.xr-status-table dd {
  margin: 0;
  color: var(--text-secondary);
}

.xr-prose-block {
  max-width: 36em;
}

.xr-note > span,
.xr-footer-text p {
  max-width: 36em;
}

/* An explainer shown in context (area pages, Plan ahead): the same words as How to read, in a tinted panel. */
.xr-explainer-panel {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--sag-blue-mid);
  border-radius: var(--radius-lg);
  background: var(--sag-blue-light);
}

.xr-explainer-panel h2 .app-icon {
  color: var(--sag-blue);
}

.xr-explainer-panel .xr-arrow-link {
  margin-top: 0.25rem;
}

/* The link under a fact in "At a glance", on its own line. */
.xr-fact-link {
  display: block;
  width: fit-content;
  margin-top: 0.2rem;
  font-size: var(--type-helper-size);
}

/* Plan ahead */
.xr-plan-areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  align-items: start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.xr-plan-area {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.xr-plan-area h3 {
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
}

.xr-plan-area h3 a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.xr-plan-area h3 a:hover {
  color: var(--link);
  text-decoration-color: currentColor;
}

.xr-plan-cta {
  max-width: 72ch;
}

/* Glossary */
.xr-glossary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.xr-glossary dt {
  font-weight: 600;
}

.xr-glossary dd {
  max-width: 34em;
  margin: 0.1rem 0 0;
  color: var(--text-secondary);
}

.xr-letter-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xr-letter-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.xr-letter-index a:hover {
  border-color: var(--link);
}

.xr-glossary--page {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  align-items: start;
  gap: 0.75rem;
}

.xr-glossary--page > div {
  padding: 1rem 1.15rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 5rem;
}

.xr-glossary--page dt {
  font-size: var(--type-detail-title-size);
  font-weight: 600;
}

.xr-glossary--page dd p {
  margin: 0.4em 0 0.3em;
}

.xr-glossary--page summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  color: var(--link);
  font-size: var(--type-helper-size);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.xr-glossary--page summary::-webkit-details-marker {
  display: none;
}

.xr-summary-chevron {
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.xr-glossary--page details[open] .xr-summary-chevron {
  transform: rotate(90deg);
}

.xr-glossary--page ul {
  margin: 0 0 0.6rem;
  padding-left: 1.25rem;
}

.xr-glossary--page li + li {
  margin-top: 0.25rem;
}

/* Release calendar */
.xr-calendar-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: start;
  gap: 1rem;
}

.xr-next-release h2 {
  font-size: var(--type-section-title-size);
}

.xr-next-release p + p {
  margin-top: 0.4rem;
}

.xr-next-release-version {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.xr-next-release-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.xr-release-types {
  grid-template-columns: 1fr;
}

.xr-release-types dt {
  font-weight: 700;
}

.xr-calendar-year + .xr-calendar-year {
  margin-top: 1.5rem;
}

.xr-calendar-year h3 {
  margin-bottom: 0.25rem;
  font-size: var(--type-card-title-size);
}

.xr-calendar-year > p {
  margin-bottom: 0.6rem;
}

/* A table scrolls inside its own box, never the page. */
.xr-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.xr-table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: var(--type-helper-size);
}

.xr-table--policy {
  min-width: 22rem;
}

/* The same column widths in every year's table, so the years line up. */
.xr-table thead th:first-child {
  width: 40%;
}

.xr-table-scroll + p,
.xr-calendar-year + .xr-note {
  margin-top: 0.75rem;
}

.xr-table caption {
  padding: 0.6rem 0.9rem 0.2rem;
  color: var(--text-secondary);
  font-size: var(--type-field-label-size);
  font-weight: 600;
  text-align: left;
}

.xr-table th,
.xr-table td {
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.xr-table thead th {
  border-top: 0;
  color: var(--text-secondary);
  font-size: var(--type-field-label-size);
  font-weight: 600;
}

.xr-table tbody th {
  font-weight: 600;
}

.xr-table-note {
  display: block;
  max-width: 40ch;
  margin-top: 0.15rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.xr-calendar-details + .xr-calendar-details {
  margin-top: 0.25rem;
}

.xr-calendar-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  color: var(--link);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.xr-calendar-details summary::-webkit-details-marker {
  display: none;
}

.xr-calendar-details[open] .xr-summary-chevron {
  transform: rotate(90deg);
}

.xr-calendar-details .xr-table-scroll {
  margin-bottom: 0.75rem;
}

/* Blazor's unhandled-error bar */
#blazor-error-ui {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-top: 3px solid var(--sag-red);
  box-shadow: var(--shadow-lg);
}

#blazor-error-ui .reload {
  margin-inline: 0.75rem;
  color: var(--link);
}

#blazor-error-ui .dismiss {
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Narrower screens */
@media (max-width: 1100px) {
  .xr-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .xr-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    align-items: start;
  }
}

@media (max-width: 880px) {
  .xr-topbar {
    position: static;
  }


  .xr-grid-head {
    display: none;
  }

  .xr-grid-row {
    grid-template-columns: 1fr;
  }

  .xr-grid--compactable .xr-grid-cell {
    display: none;
  }

  .xr-grid--compactable .xr-grid-summary {
    display: block;
  }

  .xr-grid-cell-heading {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    margin: 0 0 0.25rem 0.4rem;
    font-size: var(--type-field-label-size);
  }

  .xr-filter-group,
  .xr-filter-group .xr-select {
    width: 100%;
    min-width: 0;
  }

  .xr-search-row .xr-button {
    flex: 1 1 100%;
  }

  /* A shorter hero, so the filters and the first areas are nearer the top on a phone. */
  .xr-hero {
    padding: 1.15rem 1.1rem 1.35rem;
  }

  .xr-hero .xr-eyebrow,
  .xr-area-jump {
    display: none;
  }

  .xr-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--link);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }

  .xr-filter-toggle::-webkit-details-marker {
    display: none;
  }

  .xr-filter-toggle-chevron {
    margin-left: auto;
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .xr-filter-panel[open] > .xr-filter-toggle {
    margin-bottom: 0.6rem;
  }

  .xr-filter-panel[open] .xr-filter-toggle-chevron {
    transform: rotate(180deg);
  }

  .xr-hero > p:not(.xr-eyebrow) {
    font-size: var(--type-body-size);
  }

  .xr-hero-footer {
    margin-top: 0.9rem;
  }

  .xr-grid-area h2 {
    scroll-margin-top: 1rem;
  }

  .xr-card {
    padding: 1.4rem 1.2rem 1.5rem;
  }

  .xr-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Print: the card or the grid, without site chrome. */
@media print {
  body {
    background: #fff;
  }

  .xr-topbar,
  .xr-skip-link,
  .xr-filters,
  .xr-panel--cta,
  #blazor-error-ui {
    display: none !important;
  }

  .xr-grid-head,
  .xr-aside {
    position: static;
  }

  .xr-detail {
    grid-template-columns: 1fr;
  }

  .xr-card,
  .xr-panel,
  .xr-grid-row,
  .xr-hero {
    box-shadow: none;
    break-inside: avoid;
  }

  .xr-hero {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border);
  }
}

/*
  Prerendered pages (tools/prerender.py, js/app.js): the static copy is the page and Blazor doesn't start, so
  #app (which only holds the loading message) stays hidden. Without the class, as on a filtered view of the
  home page, the static copy is hidden and Blazor renders into #app.
*/
.xr-prerendered #app {
  display: none;
}

html:not(.xr-prerendered) #xr-static {
  display: none;
}

/* The hidden attribute must win over display rules such as .xr-item-list li { display: flex }. */
[hidden] {
  display: none !important;
}

/* A long grid cell shows its first items until "Show more" (items past the limit are always in the page). */
.xr-item-list--collapsed .xr-item-extra {
  display: none;
}

/* A status chip's check icon shows only while the chip is pressed. */
.xr-chip:not([aria-pressed="true"]) .xr-chip-check {
  display: none;
}
