/*
  AzureGlossary shared visual system.
  Stable semantic selectors only: no release IDs, build numbers, or iteration-specific DOM contracts.
*/

:root {
  color-scheme: dark;
  --ag-bg-0: #020713;
  --ag-bg-1: #06101f;
  --ag-bg-2: #0a172a;
  --ag-surface-0: rgba(5, 13, 28, .82);
  --ag-surface-1: rgba(9, 22, 42, .88);
  --ag-surface-2: rgba(13, 31, 56, .9);
  --ag-surface-raised: rgba(12, 29, 53, .96);
  --ag-text: #f4f8ff;
  --ag-text-soft: #d6e2f2;
  --ag-muted: #9eafc7;
  --ag-muted-strong: #b9c8dc;
  --ag-blue: #44b9ff;
  --ag-blue-strong: #168eea;
  --ag-cyan: #79e1ff;
  --ag-violet: #9f8cff;
  --ag-magenta: #cf7cff;
  --ag-success: #65e3b1;
  --ag-warning: #d77cff;
  --ag-danger: #ff8d9b;
  --ag-line: rgba(141, 187, 225, .19);
  --ag-line-strong: rgba(118, 207, 255, .42);
  --ag-line-faint: rgba(141, 187, 225, .1);
  --ag-radius-xs: .55rem;
  --ag-radius-sm: .8rem;
  --ag-radius-md: 1.15rem;
  --ag-radius-lg: 1.65rem;
  --ag-radius-xl: 2.2rem;
  --ag-radius-pill: 999px;
  --ag-shadow-sm: 0 10px 30px rgba(0, 0, 0, .22);
  --ag-shadow-md: 0 24px 70px rgba(0, 0, 0, .34);
  --ag-shadow-lg: 0 42px 120px rgba(0, 0, 0, .48);
  --ag-inner-highlight: inset 0 1px 0 rgba(255, 255, 255, .07);
  --ag-serif: Georgia, "Times New Roman", ui-serif, serif;
  --ag-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ag-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ag-page-width: 94rem;
  --ag-reading-width: 76rem;
  --ag-header-height: 4.8rem;
  --site-bg: var(--ag-bg-0);
  --site-bg-soft: var(--ag-bg-1);
  --site-text: var(--ag-text);
  --site-muted: var(--ag-muted);
  --site-line: var(--ag-line);
  --site-accent: var(--ag-blue);
  --lux-serif: var(--ag-serif);
}

html {
  min-width: 20rem;
  background: var(--ag-bg-0);
  scrollbar-gutter: stable;
}

body.ag-app-shell {
  min-width: 20rem;
  color: var(--ag-text);
  background:
    radial-gradient(circle at 7% -8%, rgba(38, 163, 238, .2), transparent 30rem),
    radial-gradient(circle at 88% 4%, rgba(87, 93, 214, .16), transparent 34rem),
    linear-gradient(180deg, #020713 0%, #07101f 46%, #030916 100%);
  background-attachment: fixed;
  font-family: var(--ag-sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.ag-app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(119, 181, 226, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 181, 226, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}

body.ag-app-shell :where(h1, h2, h3, h4, p, ul, ol, dl, blockquote, pre, figure) {
  margin-block-start: 0;
}

body.ag-app-shell :where(h1, h2, h3, h4) {
  color: var(--ag-text);
  text-wrap: balance;
}

body.ag-app-shell :where(p, li, dd, dt, label, small) {
  text-wrap: pretty;
}

body.ag-app-shell :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--ag-cyan) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px var(--ag-bg-0) !important;
}

body.ag-app-shell :where(img, svg, video, canvas) {
  max-width: 100%;
  height: auto;
}

body.ag-app-shell :where(pre, code) {
  font-family: var(--ag-mono);
}

body.ag-app-shell pre {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
}

body.ag-app-shell :where(hr) {
  border: 0;
  border-top: 1px solid var(--ag-line);
}

/* Shared application header */
.site-header.ag-site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: block;
  min-height: var(--ag-header-height);
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(126, 181, 222, .16);
  background: linear-gradient(180deg, rgba(3, 10, 23, .96), rgba(4, 13, 28, .9));
  box-shadow: 0 16px 55px rgba(0, 0, 0, .28);
  backdrop-filter: blur(22px) saturate(135%);
}

.site-header-inner {
  width: min(var(--ag-page-width), calc(100vw - clamp(1rem, 4vw, 3rem)));
  min-height: var(--ag-header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .76rem;
  min-width: 0;
  color: var(--ag-text);
  text-decoration: none;
}

.site-brand-mark {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .92rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(121, 225, 255, .22), 0 12px 35px rgba(21, 131, 202, .24);
}

.site-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.site-brand-copy {
  min-width: 0;
}

.site-brand-copy strong {
  display: block;
  font-size: .98rem;
  letter-spacing: -.018em;
  line-height: 1.1;
}

.site-brand-copy small {
  display: block;
  margin-top: .16rem;
  color: var(--ag-muted);
  font-size: .72rem;
  line-height: 1.1;
}

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .16rem;
  min-width: 0;
  flex-wrap: nowrap;
}

.site-nav .site-nav-link,
.site-header-cta {
  min-height: 2.58rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--ag-radius-pill);
  padding: .55rem .78rem;
  color: var(--ag-muted-strong);
  text-decoration: none;
  font-size: .83rem;
  font-weight: 780;
  white-space: nowrap;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.site-nav .site-nav-link:hover,
.site-nav .site-nav-link:focus-visible {
  border-color: rgba(123, 201, 247, .22);
  background: rgba(26, 74, 111, .24);
  color: var(--ag-text);
}

.site-nav .site-nav-link[aria-current="page"] {
  border-color: rgba(100, 205, 255, .36);
  background: linear-gradient(135deg, rgba(16, 98, 151, .34), rgba(62, 54, 137, .24));
  color: #eefaff;
  box-shadow: var(--ag-inner-highlight);
}

.site-header-cta {
  min-height: 2.68rem;
  padding-inline: 1rem;
  border-color: rgba(112, 219, 255, .44);
  background: linear-gradient(135deg, #087cbf, #245bc7 58%, #594bb8);
  color: #fff;
  box-shadow: 0 13px 34px rgba(25, 122, 192, .24), var(--ag-inner-highlight);
}

.site-header-cta:hover,
.site-header-cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.site-nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  justify-self: end;
  min-height: 2.62rem;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-pill);
  background: rgba(10, 25, 45, .8);
  color: var(--ag-text-soft);
  padding: .5rem .75rem;
  font-weight: 800;
  cursor: pointer;
}

.site-nav-toggle-icon {
  display: grid;
  gap: 3px;
  width: 1rem;
}

.site-nav-toggle-icon i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .16s ease, opacity .16s ease;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-icon i:nth-child(2) { opacity: 0; }
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Current-exam context */
.site-context-bar {
  position: relative;
  z-index: 120;
  border-bottom: 1px solid rgba(134, 186, 224, .12);
  background: rgba(5, 15, 29, .76);
  backdrop-filter: blur(14px);
}

.site-context-bar.is-empty {
  display: none;
}

.site-context-bar-inner {
  width: min(var(--ag-page-width), calc(100vw - clamp(1rem, 4vw, 3rem)));
  min-height: 2.75rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-context-bar p {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  color: var(--ag-muted);
  font-size: .76rem;
}

.site-context-bar p span {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 850;
}

.site-context-bar p strong {
  color: var(--ag-cyan);
  font-size: .86rem;
}

.site-context-bar nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-context-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: .35rem .65rem;
  border-radius: var(--ag-radius-pill);
  color: var(--ag-muted-strong);
  text-decoration: none;
  font-size: .75rem;
  white-space: nowrap;
}

.site-context-bar a:hover,
.site-context-bar a:focus-visible {
  background: rgba(33, 105, 151, .24);
  color: var(--ag-text);
}

/* Main page geometry */
.site-main {
  box-sizing: border-box;
  width: min(var(--ag-page-width), calc(100vw - clamp(1rem, 4vw, 3rem)));
  min-height: 62vh;
  margin-inline: auto;
  padding-block: clamp(1rem, 2.4vw, 2rem) clamp(3rem, 8vw, 6rem);
}

body.azure-glossary-page .site-main > :first-child,
body.learner-workspace-page .site-main > :first-child,
body.pricing-page .site-main > :first-child,
body.teams-page .site-main > :first-child {
  width: 100%;
  margin-inline: auto;
}

body.ag-app-shell :where(.site-width, .azure-practice-frame, .azure-learn-frame, .learner-workspace-route-inner) {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

/* Reusable surfaces */
body.ag-app-shell :where(
  .ux-page-shell,
  .azure-glossary-shell,
  .learner-workspace-route,
  .diagnostic-entry,
  .diagnostic-session,
  .diagnostic-results-route,
  .exam-catalog,
  .exam-track,
  .universal-search-shell,
  .reference-hub-v2
) {
  position: relative;
  min-width: 0;
}

body.ag-app-shell :where(
  .ux-compact-hero,
  .azure-glossary-subpage-hero,
  .azure-learn-hero,
  .azure-practice-hero,
  .diagnostic-entry-hero,
  .diagnostic-results-route-header,
  .learner-workspace-route-head,
  .operational-reference-header,
  .azure-services-hero,
  .search-workspace-header
) {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-xl);
  background:
    radial-gradient(circle at 9% -15%, rgba(69, 183, 255, .2), transparent 30rem),
    radial-gradient(circle at 94% 0%, rgba(125, 92, 226, .15), transparent 28rem),
    linear-gradient(138deg, rgba(13, 31, 56, .96), rgba(4, 13, 28, .96));
  box-shadow: var(--ag-shadow-md), var(--ag-inner-highlight);
  padding: clamp(1.25rem, 3.4vw, 2.75rem);
}

body.ag-app-shell :where(
  .ux-compact-hero,
  .azure-glossary-subpage-hero,
  .azure-learn-hero,
  .azure-practice-hero,
  .diagnostic-entry-hero,
  .diagnostic-results-route-header,
  .learner-workspace-route-head,
  .operational-reference-header,
  .azure-services-hero,
  .search-workspace-header
)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .42;
  background:
    linear-gradient(90deg, transparent, rgba(115, 215, 255, .08), transparent 72%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4.5rem);
}

body.ag-app-shell :where(
  .ux-compact-hero,
  .azure-glossary-subpage-hero,
  .azure-learn-hero,
  .azure-practice-hero,
  .diagnostic-entry-hero,
  .diagnostic-results-route-header,
  .learner-workspace-route-head,
  .operational-reference-header,
  .azure-services-hero,
  .search-workspace-header
) > * {
  position: relative;
  z-index: 1;
}

body.ag-app-shell :where(
  .ux-compact-hero,
  .azure-glossary-subpage-hero,
  .azure-learn-hero,
  .azure-practice-hero,
  .diagnostic-entry-hero,
  .diagnostic-results-route-header,
  .learner-workspace-route-head,
  .operational-reference-header,
  .azure-services-hero,
  .search-workspace-header
) h1 {
  max-width: 15ch;
  margin: .28rem 0 .7rem;
  font-family: var(--ag-serif);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 700;
}

body.ag-app-shell :where(
  .ux-compact-hero,
  .azure-glossary-subpage-hero,
  .azure-learn-hero,
  .azure-practice-hero,
  .diagnostic-entry-hero,
  .diagnostic-results-route-header,
  .learner-workspace-route-head,
  .operational-reference-header,
  .azure-services-hero,
  .search-workspace-header
) > p:not(.eyebrow) {
  max-width: 76ch;
  margin-bottom: 0;
  color: var(--ag-text-soft);
  font-size: clamp(.98rem, 1.3vw, 1.13rem);
  line-height: 1.66;
}

.eyebrow,
body.ag-app-shell [class*="-kicker"] {
  color: var(--ag-cyan);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body.ag-app-shell :where(
  .intent-card,
  .learner-workspace-section,
  .azure-glossary-panel,
  .reference-hub-card,
  .azure-learn-outcome-card,
  .azure-learn-lane-card,
  .azure-learn-path-card,
  .azure-learn-library,
  .azure-learn-map-panel,
  .exam-catalog-card,
  .exam-track-card,
  .operational-reference-message,
  .operational-search-entry,
  .pricing-entitlement-table-wrap,
  .ux-table-wrap,
  .search-workspace-results-panel,
  .universal-search-results-panel,
  .diagnostic-results-host
) {
  border-color: var(--ag-line);
  background:
    radial-gradient(circle at 10% 0%, rgba(44, 158, 225, .1), transparent 23rem),
    linear-gradient(145deg, rgba(12, 28, 51, .9), rgba(4, 13, 28, .88));
  box-shadow: var(--ag-shadow-sm), var(--ag-inner-highlight);
}

body.ag-app-shell :where(.ux-action-row, .intent-cta-row, .study-plan-actions, [class*="-actions"]) {
  gap: .65rem;
}

/* Buttons, links and form controls */
body.ag-app-shell :where(
  button,
  .button,
  .btn,
  [class*="-actions"] a,
  [class*="-action"] a,
  .ux-action-row a,
  .intent-cta-row a
) {
  touch-action: manipulation;
}

body.ag-app-shell :where(
  button:not(.site-nav-toggle),
  .button,
  .btn,
  [class*="-actions"] > a,
  [class*="-action-row"] > a,
  .ux-action-row > a,
  .intent-cta-row > a
) {
  min-height: 2.72rem;
  border-radius: var(--ag-radius-pill);
}

body.ag-app-shell :where(input, select, textarea) {
  border: 1px solid rgba(145, 186, 219, .25);
  border-radius: var(--ag-radius-sm);
  background: rgba(2, 9, 20, .68);
  color: var(--ag-text);
  box-shadow: var(--ag-inner-highlight);
}

body.ag-app-shell :where(input, select) {
  min-height: 2.85rem;
}

body.ag-app-shell :where(input, select, textarea):hover {
  border-color: rgba(132, 207, 249, .42);
}

body.ag-app-shell :where(input, select, textarea):focus {
  border-color: var(--ag-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(68, 185, 255, .14), var(--ag-inner-highlight);
}

body.ag-app-shell :where(label) {
  color: var(--ag-text-soft);
  font-weight: 800;
}

body.ag-app-shell :where(table) {
  border-collapse: separate;
  border-spacing: 0;
}

body.ag-app-shell :where(th) {
  color: var(--ag-text);
  background: rgba(26, 72, 105, .3);
}

body.ag-app-shell :where(th, td) {
  border-color: var(--ag-line-faint);
}

body.ag-app-shell :where(code:not(pre code)) {
  border: 1px solid rgba(123, 207, 250, .16);
  border-radius: .45rem;
  background: rgba(3, 11, 24, .7);
  color: #c9f2ff;
  padding: .14em .36em;
}

/* Home and search */
.azure-home-page .site-main {
  padding-top: clamp(.8rem, 2vw, 1.45rem);
}

.azure-search-landing-hero,
.azure-search-first-layout > .azure-home-exam-picker-compact,
.universal-search-hero-card {
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-xl);
  background:
    radial-gradient(circle at 12% -10%, rgba(57, 180, 248, .22), transparent 32rem),
    radial-gradient(circle at 92% 4%, rgba(110, 84, 214, .18), transparent 30rem),
    linear-gradient(140deg, rgba(11, 28, 53, .97), rgba(3, 11, 25, .97));
  box-shadow: var(--ag-shadow-lg), var(--ag-inner-highlight);
}

.azure-search-landing-hero {
  padding: clamp(1.45rem, 4vw, 3.2rem);
}

.azure-search-landing-hero h1,
.universal-search-hero-card h1 {
  font-family: var(--ag-serif);
  font-size: clamp(3rem, 7.3vw, 7rem);
  line-height: .9;
  letter-spacing: -.062em;
}

.azure-search-landing-tool,
.universal-hero-search,
.universal-search-page-form,
.azure-query-autocomplete-host {
  border-color: rgba(107, 205, 255, .24);
  background: rgba(2, 10, 22, .62);
  box-shadow: var(--ag-inner-highlight), 0 24px 65px rgba(0, 0, 0, .22);
}

.azure-home-exam-compact-grid,
.exam-catalog-grid,
.intent-grid,
.reference-hub-grid {
  gap: clamp(.75rem, 1.5vw, 1rem);
}

.azure-home-exam-compact-grid > *,
.intent-grid > *,
.reference-hub-grid > * {
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-lg);
  background: linear-gradient(145deg, rgba(12, 29, 53, .9), rgba(4, 13, 28, .88));
  box-shadow: var(--ag-shadow-sm), var(--ag-inner-highlight);
}

/* Exam catalog and track pages */
.exams-catalog-page .site-main,
.exam-track-page .site-main {
  width: min(90rem, calc(100vw - clamp(1rem, 4vw, 3rem)));
}

.exams-catalog-page .site-main > section,
.exam-track-page .site-main > section {
  display: grid;
  gap: 1rem;
}

.exams-catalog-page .site-main header,
.exam-track-page .site-main header {
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-xl);
  background:
    radial-gradient(circle at 9% -10%, rgba(60, 180, 250, .2), transparent 31rem),
    radial-gradient(circle at 90% 0%, rgba(115, 83, 215, .14), transparent 28rem),
    linear-gradient(140deg, rgba(12, 30, 56, .97), rgba(3, 12, 26, .97));
  box-shadow: var(--ag-shadow-md), var(--ag-inner-highlight);
}

.exams-catalog-page .site-main header h1,
.exam-track-page .site-main header h1 {
  font-family: var(--ag-serif);
  letter-spacing: -.052em;
}

.exams-catalog-page :where(article, fieldset, .exam-catalog-group),
.exam-track-page :where(article, section:not(:first-child), aside) {
  border-color: var(--ag-line);
}

/* Diagnostic entry */
.diagnostic-entry-page .site-main {
  width: min(82rem, calc(100vw - clamp(1rem, 4vw, 3rem)));
}

.diagnostic-entry {
  display: grid;
  gap: 1rem;
}

.diagnostic-entry-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2.6vw, 1.8rem);
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-xl);
  background: linear-gradient(145deg, rgba(11, 27, 50, .93), rgba(3, 12, 27, .92));
  box-shadow: var(--ag-shadow-md), var(--ag-inner-highlight);
}

.diagnostic-entry-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.diagnostic-entry-select-row > div {
  min-width: 0;
}

.diagnostic-entry-select-row label,
.diagnostic-entry-select-row select {
  display: block;
  width: 100%;
}

.diagnostic-entry-select-row select {
  margin-top: .42rem;
  padding-inline: .85rem 2.4rem;
}

.diagnostic-entry-select-row button {
  min-width: 10rem;
  border: 1px solid rgba(116, 221, 255, .42);
  background: linear-gradient(135deg, #0a82c8, #2b5bc8 62%, #5d50bb);
  color: #fff;
  font-weight: 900;
  padding-inline: 1rem;
  box-shadow: 0 14px 35px rgba(21, 130, 199, .25), var(--ag-inner-highlight);
}

.diagnostic-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .72rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--ag-line-faint);
  border-radius: var(--ag-radius-lg);
  background: rgba(2, 10, 23, .38);
}

.diagnostic-entry-grid legend {
  padding-inline: .45rem;
  color: var(--ag-muted-strong);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.diagnostic-entry-grid button {
  min-height: 7rem;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .25rem;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-md);
  background: linear-gradient(145deg, rgba(13, 32, 58, .92), rgba(5, 15, 31, .88));
  color: var(--ag-text);
  padding: .82rem;
  text-align: left;
  box-shadow: var(--ag-inner-highlight);
}

.diagnostic-entry-grid button:hover,
.diagnostic-entry-grid button[aria-pressed="true"] {
  border-color: var(--ag-line-strong);
  background: linear-gradient(145deg, rgba(18, 75, 112, .48), rgba(29, 34, 82, .46));
  transform: translateY(-1px);
}

.diagnostic-entry-grid button span {
  color: var(--ag-cyan);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.diagnostic-entry-grid button strong {
  font-size: 1.18rem;
}

.diagnostic-entry-grid button small {
  color: var(--ag-muted);
}

.diagnostic-entry-selected,
.diagnostic-entry-secondary {
  border: 1px solid var(--ag-line-faint);
  border-radius: var(--ag-radius-md);
  background: rgba(5, 15, 30, .5);
}

.diagnostic-entry-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
}

.diagnostic-entry-selected span { color: var(--ag-muted); }

.diagnostic-entry-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .7rem;
}

.diagnostic-entry-secondary a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  border-radius: var(--ag-radius-pill);
  padding: .4rem .75rem;
  color: var(--ag-text-soft);
  text-decoration: none;
}

.diagnostic-entry-secondary a:hover { background: rgba(38, 116, 166, .22); }

/* Diagnostic session */
.diagnostic-session-page .site-main {
  width: min(100rem, calc(100vw - clamp(1rem, 3vw, 2rem)));
  padding-top: .9rem;
}

.diagnostic-session {
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2.2vw, 1.65rem);
  border: 1px solid rgba(107, 181, 226, .2);
  border-radius: clamp(1.5rem, 3vw, 2.45rem);
  background:
    radial-gradient(circle at 12% -10%, rgba(56, 171, 241, .2), transparent 32rem),
    radial-gradient(circle at 92% 0%, rgba(112, 83, 218, .18), transparent 30rem),
    linear-gradient(145deg, rgba(7, 20, 39, .97), rgba(2, 9, 21, .98));
  box-shadow: var(--ag-shadow-lg), var(--ag-inner-highlight);
}

.diagnostic-workspace-aurora {
  position: absolute;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(54px);
  opacity: .22;
  pointer-events: none;
}

.diagnostic-workspace-aurora-one { top: -14rem; left: -10rem; background: #27b5ff; }
.diagnostic-workspace-aurora-two { top: -13rem; right: -8rem; background: #7a5cff; }

.diagnostic-session-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem 2rem;
  padding: clamp(.25rem, 1vw, .7rem) clamp(.15rem, .8vw, .6rem) 1.1rem;
  border-bottom: 1px solid var(--ag-line-faint);
}

.diagnostic-workspace-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
}

.diagnostic-workspace-kicker .eyebrow { margin: 0; }

.diagnostic-workspace-badge,
.diagnostic-workspace-secure {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  border: 1px solid rgba(117, 218, 255, .28);
  border-radius: var(--ag-radius-pill);
  background: rgba(14, 75, 113, .28);
  color: #c8f3ff;
  padding: .28rem .65rem;
  font-size: .72rem;
  font-weight: 800;
}

.diagnostic-session-header h1 {
  max-width: 13ch;
  margin: .36rem 0 .5rem;
  font-family: var(--ag-serif);
  font-size: clamp(3.1rem, 7vw, 7.15rem);
  line-height: .87;
  letter-spacing: -.065em;
}

.diagnostic-session-header p:not(.eyebrow) {
  max-width: 75ch;
  margin: 0;
  color: var(--ag-text-soft);
  font-size: clamp(.98rem, 1.22vw, 1.11rem);
  line-height: 1.64;
}

.diagnostic-session-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.diagnostic-session-header nav :where(a, button),
.diagnostic-session-actions :where(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.68rem;
  border: 1px solid rgba(132, 196, 235, .28);
  border-radius: var(--ag-radius-pill);
  background: rgba(8, 23, 43, .75);
  color: var(--ag-text-soft);
  padding: .52rem .9rem;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.diagnostic-session-header nav :where(a, button):hover,
.diagnostic-session-actions :where(a, button):hover {
  border-color: var(--ag-line-strong);
  color: #fff;
  background: rgba(20, 71, 107, .38);
}

.diagnostic-workspace {
  display: grid;
  grid-template-columns: minmax(14.5rem, 18rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.diagnostic-workspace-sidecar,
.diagnostic-workspace-stage {
  min-width: 0;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-lg);
  background: linear-gradient(150deg, rgba(9, 24, 45, .93), rgba(3, 12, 26, .91));
  box-shadow: var(--ag-shadow-sm), var(--ag-inner-highlight);
}

.diagnostic-workspace-sidecar {
  display: grid;
  align-content: start;
  gap: .9rem;
  padding: 1rem;
}

.diagnostic-workspace-sidecar-heading span,
.diagnostic-workspace-stage-heading span:first-child {
  display: block;
  color: var(--ag-cyan);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.diagnostic-workspace-sidecar-heading strong,
.diagnostic-workspace-stage-heading strong {
  display: block;
  margin-top: .23rem;
  color: var(--ag-text);
}

.diagnostic-workspace-status-card,
.diagnostic-workspace-progress-panel,
.diagnostic-workspace-truth {
  border: 1px solid var(--ag-line-faint);
  border-radius: var(--ag-radius-md);
  background: rgba(2, 10, 23, .48);
}

.diagnostic-workspace-status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .6rem;
  padding: .75rem;
}

.diagnostic-workspace-beacon {
  width: .66rem;
  height: .66rem;
  border-radius: 50%;
  background: var(--ag-cyan);
  box-shadow: 0 0 0 5px rgba(121, 225, 255, .1), 0 0 25px rgba(121, 225, 255, .55);
  animation: ag-soft-pulse 2.4s ease-in-out infinite;
}

.diagnostic-session-status {
  margin: 0;
  color: var(--ag-text-soft);
  font-size: .82rem;
  font-weight: 760;
}

.diagnostic-workspace-progress-panel { padding: .8rem; }

.diagnostic-session-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
  color: var(--ag-muted);
  font-size: .76rem;
}

.diagnostic-session-progress-copy strong { color: var(--ag-text); }

.diagnostic-session-progress {
  height: .5rem;
  overflow: hidden;
  border-radius: var(--ag-radius-pill);
  background: rgba(118, 155, 194, .15);
}

.diagnostic-session-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ag-blue-strong), var(--ag-cyan), var(--ag-violet));
  box-shadow: 0 0 18px rgba(95, 207, 255, .44);
  transition: width .25s ease;
}

.diagnostic-workspace-steps {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diagnostic-workspace-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  padding: .68rem;
  border: 1px solid var(--ag-line-faint);
  border-radius: var(--ag-radius-md);
  background: rgba(4, 14, 28, .42);
}

.diagnostic-workspace-steps li > span {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid rgba(116, 213, 255, .3);
  border-radius: 50%;
  color: var(--ag-cyan);
  font-size: .72rem;
  font-weight: 900;
}

.diagnostic-workspace-steps strong { font-size: .82rem; }
.diagnostic-workspace-steps p { margin: .2rem 0 0; color: var(--ag-muted); font-size: .74rem; line-height: 1.45; }

.diagnostic-workspace-truth {
  margin: 0;
  padding: .72rem;
  color: var(--ag-muted);
  font-size: .72rem;
  line-height: 1.5;
}

.diagnostic-workspace-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: .75rem;
  padding: clamp(.75rem, 1.65vw, 1.2rem);
}

.diagnostic-workspace-stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: .15rem;
}

.diagnostic-session-question {
  min-width: 0;
}

.diagnostic-session-question > article,
.diagnostic-session-question > section,
.diagnostic-session-question > div {
  min-height: 31rem;
  border: 1px solid rgba(137, 190, 226, .18);
  border-radius: var(--ag-radius-lg);
  background:
    radial-gradient(circle at 9% -5%, rgba(43, 154, 220, .11), transparent 24rem),
    linear-gradient(145deg, rgba(10, 25, 47, .97), rgba(3, 12, 27, .96));
  box-shadow: var(--ag-inner-highlight);
  padding: clamp(1rem, 2.5vw, 1.8rem);
}

.diagnostic-session-question :where(h2) {
  max-width: 34ch;
  font-family: var(--ag-serif);
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.diagnostic-session-question :where([class*="-meta"]) {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
}

.diagnostic-session-question :where([class*="-meta"] > span) {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  border: 1px solid var(--ag-line-faint);
  border-radius: var(--ag-radius-pill);
  background: rgba(4, 15, 30, .56);
  color: var(--ag-muted-strong);
  padding: .25rem .62rem;
  font-size: .69rem;
  font-weight: 800;
}

.diagnostic-session-question :where([class*="-choices"], [data-assessment-format]) {
  display: grid;
  gap: .68rem;
  margin-top: 1rem;
}

.diagnostic-session-question :where([class*="-choices"] button, [data-assessment-format] button, [data-assessment-format] label) {
  min-height: 3.9rem;
  border: 1px solid rgba(140, 187, 222, .19);
  border-radius: var(--ag-radius-md);
  background: rgba(4, 14, 28, .58);
  color: var(--ag-text-soft);
  box-shadow: var(--ag-inner-highlight);
}

.diagnostic-session-question :where([class*="-choices"] button:hover, [data-assessment-format] button:hover, [data-assessment-format] label:hover) {
  border-color: rgba(115, 214, 255, .55);
  background: rgba(17, 67, 101, .35);
}

.diagnostic-session-question :where([aria-pressed="true"], .is-selected, input:checked + label) {
  border-color: var(--ag-cyan) !important;
  background: linear-gradient(145deg, rgba(20, 96, 142, .42), rgba(45, 45, 109, .38)) !important;
  box-shadow: 0 0 0 2px rgba(121, 225, 255, .1), var(--ag-inner-highlight) !important;
}

.diagnostic-session-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
}

.diagnostic-session-actions [data-diagnostic-next] {
  border-color: rgba(116, 220, 255, .46);
  background: linear-gradient(135deg, #0b82c6, #2d5ec8 60%, #5d50b8);
  color: #fff;
  min-width: 7.5rem;
}

.diagnostic-session-actions :disabled {
  opacity: .43;
  cursor: not-allowed;
  filter: saturate(.5);
}

.diagnostic-workspace-keyboard {
  border-top: 1px solid var(--ag-line-faint);
  padding-top: .7rem;
  color: var(--ag-muted);
}

.diagnostic-workspace-keyboard summary {
  width: fit-content;
  color: var(--ag-muted-strong);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
}

.diagnostic-session-keyboard {
  margin: .55rem 0 0;
  font-size: .75rem;
  line-height: 1.55;
}

.diagnostic-workspace-loading {
  display: grid;
  align-content: start;
  gap: .85rem;
}

.diagnostic-workspace-loading > *,
.diagnostic-workspace-loading-meta > span,
.diagnostic-workspace-loading-options > span {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(116, 153, 190, .1), rgba(174, 212, 239, .19), rgba(116, 153, 190, .1));
  background-size: 210% 100%;
  animation: ag-shimmer 1.55s ease-in-out infinite;
}

.diagnostic-workspace-loading-meta {
  display: flex;
  gap: .45rem;
  background: transparent !important;
  animation: none !important;
}

.diagnostic-workspace-loading-meta > span {
  width: 5.5rem;
  height: 1.65rem;
  border-radius: var(--ag-radius-pill);
}

.diagnostic-workspace-loading-meta > span:nth-child(2) { width: 8rem; }
.diagnostic-workspace-loading-meta > span:nth-child(3) { width: 6.5rem; }

.diagnostic-workspace-loading-title {
  display: block;
  width: min(92%, 58rem);
  height: clamp(1.45rem, 2.8vw, 2.35rem);
  margin-top: .32rem;
  border-radius: .55rem;
}

.diagnostic-workspace-loading-title.is-short { width: min(66%, 40rem); margin-top: -.34rem; }

.diagnostic-workspace-loading-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-top: .5rem;
  background: transparent !important;
  animation: none !important;
}

.diagnostic-workspace-loading-options > span {
  height: 5.5rem;
  border-radius: var(--ag-radius-md);
}

/* Diagnostic results */
.diagnostic-results-page .site-main {
  width: min(90rem, calc(100vw - clamp(1rem, 4vw, 3rem)));
}

.diagnostic-results-route {
  display: grid;
  gap: 1rem;
}

.diagnostic-results-status,
.diagnostic-results-truth,
.diagnostic-results-noscript {
  margin: 0;
  border: 1px solid var(--ag-line-faint);
  border-radius: var(--ag-radius-md);
  background: rgba(4, 14, 28, .52);
  color: var(--ag-muted-strong);
  padding: .8rem 1rem;
}

.diagnostic-results-host {
  min-height: 28rem;
  padding: clamp(.8rem, 2vw, 1.2rem);
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-xl);
}

.diagnostic-results-host :where(article, section) {
  border-color: var(--ag-line);
}

.diagnostic-results-loading {
  display: grid;
  gap: .75rem;
  min-height: 24rem;
  align-content: center;
}

.diagnostic-results-loading span {
  display: block;
  height: 1.2rem;
  border-radius: var(--ag-radius-pill);
  background: linear-gradient(90deg, rgba(116, 153, 190, .1), rgba(174, 212, 239, .19), rgba(116, 153, 190, .1));
  background-size: 210% 100%;
  animation: ag-shimmer 1.55s ease-in-out infinite;
}

.diagnostic-results-loading span:nth-child(2) { width: 78%; }
.diagnostic-results-loading span:nth-child(3) { width: 55%; }

/* Learner workspace: dashboard, practice, mocks */
.learner-workspace-page .site-main {
  width: min(96rem, calc(100vw - clamp(1rem, 3vw, 2rem)));
}

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

.learner-workspace-route-inner {
  display: grid;
  gap: 1rem;
}

.learner-workspace-section {
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-xl);
  padding: clamp(1rem, 2.4vw, 1.65rem);
}

.learner-workspace-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.learner-workspace-section-head h2 {
  margin-bottom: .25rem;
  font-family: var(--ag-serif);
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  letter-spacing: -.04em;
}

.learner-workspace-section-head p {
  margin: 0;
  color: var(--ag-muted);
}

.learner-workspace-page :where([class*="-card"], [class*="-panel"], [class*="-summary"]) {
  border-color: var(--ag-line);
}

/* Reference, operational, glossary and term pages */
.azure-reference-hub-page .site-main,
.operational-reference-page .site-main,
.azure-glossary-page:not(.diagnostic-session-page):not(.diagnostic-entry-page):not(.diagnostic-results-page) .site-main {
  max-width: var(--ag-page-width);
}

.operational-reference-shell,
.azure-command-center-shell,
.azure-resource-graph-shell,
.azure-ops-shell,
.azure-compare-shell,
.azure-glossary-term-detail-shell {
  display: grid;
  gap: 1rem;
}

.operational-reference-page :where(.operational-search-entry, .operational-reference-message, [class*="-panel"], [class*="-card"]),
.azure-reference-hub-page :where([class*="-card"], [class*="-panel"]),
.azure-glossary-term-detail-shell :where([class*="-panel"], [class*="-section"], article, aside) {
  border-color: var(--ag-line);
  border-radius: var(--ag-radius-lg);
}

.azure-glossary-term-detail-shell .azure-glossary-term-page-grid {
  gap: 1rem;
}

.azure-glossary-term-detail-shell h1 {
  font-family: var(--ag-serif);
  letter-spacing: -.05em;
}

/* Learn, case studies and runbooks */
.azure-learn-page .site-main,
.azure-case-study-page .site-main,
.azure-retake-runbook-page .site-main {
  width: min(96rem, calc(100vw - clamp(1rem, 3vw, 2rem)));
}

.azure-learn-frame,
.azure-practice-frame {
  display: grid;
  gap: 1rem;
}

.azure-learn-outcome-grid,
.azure-learn-map-grid,
.azure-learn-path-grid,
.azure-learn-fast-lanes {
  gap: 1rem;
}

.azure-learn-outcome-card,
.azure-learn-map-card,
.azure-learn-path-card,
.azure-learn-lane-card {
  border-radius: var(--ag-radius-lg);
}

.azure-case-study-player-host,
.adaptive-retake-runbook-host,
.azure-team-dashboard-shell-host {
  min-height: 18rem;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-xl);
  background: linear-gradient(145deg, rgba(11, 27, 50, .92), rgba(3, 12, 27, .9));
  box-shadow: var(--ag-shadow-md), var(--ag-inner-highlight);
  padding: clamp(1rem, 2.5vw, 1.7rem);
}

/* Account, pricing, teams and services */
.account-secondary-page .site-main,
.azure-learner-account-page .site-main,
.teams-page .site-main,
.pricing-page .site-main,
.azure-services-page .site-main,
.azure-team-dashboard-shell-page .site-main {
  width: min(88rem, calc(100vw - clamp(1rem, 4vw, 3rem)));
}

.intent-hub,
.learner-account-shell,
.azure-services-shell,
.azure-team-dashboard-route {
  display: grid;
  gap: 1rem;
}

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

.intent-card {
  border-radius: var(--ag-radius-lg);
  padding: clamp(1rem, 2vw, 1.35rem);
}

.pricing-entitlement-table-wrap,
.ux-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-lg);
}

/* Footer */
.site-footer.ag-site-footer {
  margin-top: 0;
  padding: clamp(2rem, 5vw, 4rem) 0 1.5rem;
  border-top: 1px solid var(--ag-line);
  background:
    radial-gradient(circle at 12% 0%, rgba(48, 164, 229, .1), transparent 28rem),
    linear-gradient(180deg, rgba(4, 13, 28, .86), rgba(2, 7, 18, .98));
  color: var(--ag-muted);
  text-align: left;
}

.site-footer-inner {
  width: min(var(--ag-page-width), calc(100vw - clamp(1rem, 4vw, 3rem)));
  margin-inline: auto;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.site-footer-brand strong {
  color: var(--ag-text);
}

.site-footer-brand p {
  margin: .16rem 0 0;
  color: var(--ag-muted);
  font-size: .84rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.site-footer-group {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--ag-line-faint);
  border-radius: var(--ag-radius-lg);
  background: rgba(4, 13, 27, .42);
}

.site-footer-group > strong {
  display: block;
  margin-bottom: .62rem;
  color: var(--ag-text-soft);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-footer-group nav {
  display: grid;
  gap: .1rem;
}

.site-footer-group a {
  min-height: 2rem;
  display: flex;
  align-items: center;
  border-radius: .55rem;
  color: var(--ag-muted);
  padding: .25rem .45rem;
  text-decoration: none;
  font-size: .82rem;
}

.site-footer-group a:hover,
.site-footer-group a:focus-visible {
  background: rgba(24, 86, 127, .22);
  color: var(--ag-text);
}

.site-footer-note {
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ag-line-faint);
  color: #7f90aa;
  font-size: .76rem;
  text-align: center;
}

/* Loading, empty and error states */
body.ag-app-shell :where(.ux-loading-skeleton, [class*="-loading"]) {
  color: var(--ag-muted-strong);
}

body.ag-app-shell :where([class*="-failure"], [class*="-error"]:not([hidden])) {
  border-color: rgba(255, 141, 155, .28);
}

body.ag-app-shell :where([role="alert"]) {
  color: #ffd9de;
}

@keyframes ag-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -10% 0; }
}

@keyframes ag-soft-pulse {
  0%, 100% { transform: scale(.92); opacity: .7; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Responsive layout */
@media (max-width: 1180px) {
  .site-header-inner {
    gap: 1rem;
  }

  .site-nav .site-nav-link {
    padding-inline: .62rem;
    font-size: .79rem;
  }

  .diagnostic-workspace {
    grid-template-columns: minmax(13.5rem, 16rem) minmax(0, 1fr);
  }

  .diagnostic-workspace-loading-options {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  :root { --ag-header-height: 4.35rem; }

  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-header-actions {
    position: absolute;
    top: calc(100% + .5rem);
    left: 50%;
    width: min(42rem, calc(100vw - 1rem));
    display: none;
    transform: translateX(-50%);
    align-items: stretch;
    flex-direction: column;
    padding: .75rem;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius-lg);
    background: rgba(4, 14, 29, .98);
    box-shadow: var(--ag-shadow-lg), var(--ag-inner-highlight);
  }

  .site-header-actions[data-open] {
    display: flex;
  }

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

  .site-nav .site-nav-link,
  .site-header-cta {
    justify-content: flex-start;
    width: 100%;
    border-radius: var(--ag-radius-md);
    padding-inline: .85rem;
  }

  .site-header-cta {
    justify-content: center;
  }

  .site-context-bar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
    padding-block: .48rem;
  }

  .site-context-bar nav {
    width: 100%;
  }

  .diagnostic-session-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .diagnostic-session-header nav {
    justify-content: flex-start;
  }

  .diagnostic-workspace {
    grid-template-columns: 1fr;
  }

  .diagnostic-workspace-sidecar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .diagnostic-workspace-sidecar-heading,
  .diagnostic-workspace-truth,
  .diagnostic-workspace-steps {
    grid-column: 1 / -1;
  }

  .diagnostic-workspace-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .diagnostic-session-question > article,
  .diagnostic-session-question > section,
  .diagnostic-session-question > div {
    min-height: 28rem;
  }

  .intent-grid,
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.ag-app-shell::before {
    background-size: 48px 48px;
  }

  .site-main {
    width: calc(100vw - 1rem) !important;
    padding-top: .65rem;
  }

  .site-brand-copy small {
    display: none;
  }

  .site-context-bar-inner,
  .site-footer-inner,
  .site-header-inner {
    width: calc(100vw - 1rem);
  }

  body.ag-app-shell :where(
    .ux-compact-hero,
    .azure-glossary-subpage-hero,
    .azure-learn-hero,
    .azure-practice-hero,
    .diagnostic-entry-hero,
    .diagnostic-results-route-header,
    .learner-workspace-route-head,
    .operational-reference-header,
    .azure-services-hero,
    .search-workspace-header
  ) {
    border-radius: var(--ag-radius-lg);
    padding: 1.15rem;
  }

  body.ag-app-shell :where(
    .ux-compact-hero,
    .azure-glossary-subpage-hero,
    .azure-learn-hero,
    .azure-practice-hero,
    .diagnostic-entry-hero,
    .diagnostic-results-route-header,
    .learner-workspace-route-head,
    .operational-reference-header,
    .azure-services-hero,
    .search-workspace-header
  ) h1 {
    font-size: clamp(2.45rem, 13.5vw, 4.3rem);
  }

  .diagnostic-entry-select-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .diagnostic-entry-select-row button {
    width: 100%;
  }

  .diagnostic-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: .75rem;
  }

  .diagnostic-session {
    padding: .75rem;
    border-radius: var(--ag-radius-lg);
  }

  .diagnostic-session-header h1 {
    font-size: clamp(2.75rem, 14.5vw, 4rem);
  }

  .diagnostic-session-header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .diagnostic-session-header nav :where(a, button) {
    width: 100%;
  }

  .diagnostic-session-header nav button {
    grid-column: 1 / -1;
  }

  .diagnostic-workspace-stage {
    order: 1;
  }

  .diagnostic-workspace-sidecar {
    order: 2;
    grid-template-columns: 1fr;
  }

  .diagnostic-workspace-sidecar-heading,
  .diagnostic-workspace-truth,
  .diagnostic-workspace-steps {
    grid-column: auto;
  }

  .diagnostic-workspace-steps {
    grid-template-columns: 1fr;
  }

  .diagnostic-workspace-stage {
    padding: .65rem;
  }

  .diagnostic-workspace-stage-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .diagnostic-session-question > article,
  .diagnostic-session-question > section,
  .diagnostic-session-question > div {
    min-height: 25rem;
    padding: .9rem;
  }

  .diagnostic-session-question :where(h2) {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  .diagnostic-session-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .diagnostic-session-actions :where(a, button) {
    width: 100%;
  }

  .diagnostic-workspace-loading-options {
    grid-template-columns: 1fr;
  }

  .learner-workspace-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .intent-grid,
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-nav {
    grid-template-columns: 1fr;
  }

  .site-nav-toggle-label {
    display: none;
  }

  .diagnostic-entry-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-entry-selected {
    align-items: flex-start;
    flex-direction: column;
  }

  .diagnostic-session-header nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnostic-session-header nav button {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  body.ag-app-shell *,
  body.ag-app-shell *::before,
  body.ag-app-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}

@media (forced-colors: active) {
  body.ag-app-shell,
  body.ag-app-shell :where(.site-header, .site-context-bar, .site-footer, article, section, aside, nav, form) {
    background: Canvas;
    color: CanvasText;
  }

  body.ag-app-shell :where(a, button, input, select, textarea, summary, [role="button"], [role="tab"]) {
    forced-color-adjust: auto;
    border: 1px solid CanvasText;
  }

  body.ag-app-shell :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid Highlight !important;
    box-shadow: none !important;
  }
}
