/*
  Ohio Veterans — Navigator
  Custom (non-DS) component styles, built entirely from tokens.css
  custom properties. DS components (mms-button, mms-radio,
  mms-checkbox, mms-checkbox-group, mms-link, mms-icon) are styled by the
  package itself via its official [data-theme="uss-oh-dvs"] theme (loaded
  directly from @mms/design-system, see intake.html/index.html/result.html)
  and are not restyled here except for layout/spacing wrappers around them.
*/

@import url('../tokens.css');

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--type-body-md-family);
  font-size: var(--type-body-md-size);
  font-weight: var(--type-body-md-weight);
  line-height: var(--type-body-md-line-height);
  background: var(--color-neutral-1);
  color: var(--color-neutral-12);
}

h1, h2, h3, h4 {
  margin: 0 0 var(--spacing-sm2) 0;
}

h1 {
  font-family: var(--type-display-lg-family);
  font-size: var(--text-display-lg-size);
  font-weight: var(--type-display-lg-weight);
  line-height: var(--text-display-lg-line-height);
  letter-spacing: var(--text-display-lg-letter-spacing);
}

p {
  margin: 0 0 var(--spacing-md1) 0;
}

a {
  color: var(--color-utility-link);
}
a:hover {
  color: var(--color-utility-link-hover);
}
a:visited {
  color: var(--color-utility-link-visited);
}

:focus-visible {
  outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* These headings only ever receive focus programmatically (for screen-reader
   announcement on screen transition), never via real keyboard navigation, so
   they should never show a visible focus ring. */
#results-heading:focus,
#error-heading:focus,
#empty-heading:focus {
  outline: none;
}

#results-heading,
#empty-heading {
  color: var(--color-primary-9);
}

/* ====================================================================== */
/* Layout                                                                  */
/* ====================================================================== */

.layout-container {
  max-width: var(--layout-content-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-inline-padding-compact);
  padding-block: var(--spacing-xl2);
}
@media (min-width: 768px) {
  .layout-container {
    padding-inline: var(--layout-inline-padding-default);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--spacing-sm1);
  z-index: 1000;
  padding: var(--spacing-sm1) var(--spacing-md1);
  background: var(--color-neutral-1);
  color: var(--color-primary-9);
  border-radius: var(--radius-sm);
  box-shadow: var(--elevation-md);
  font-weight: var(--font-weight-bold);
}

.skip-link:focus {
  top: var(--spacing-sm1);
}

/* ====================================================================== */
/* Official-site utility bar — custom, tokens-only                        */
/* ====================================================================== */

.gov-banner {
  background: var(--color-neutral-3);
  font-family: var(--type-ui-label-sm-family);
  font-size: var(--type-ui-label-sm-size);
  font-weight: var(--type-ui-label-sm-weight);
  line-height: var(--type-ui-label-sm-line-height);
  color: var(--color-neutral-12);
}

.gov-banner__toggle {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs2);
  width: 100%;
  padding: var(--spacing-xs2) var(--layout-inline-padding-compact);
  background: transparent;
  border: none;
  font: inherit;
  color: var(--color-neutral-12);
  cursor: pointer;
}
@media (min-width: 768px) {
  .gov-banner__toggle {
    padding-inline: var(--layout-inline-padding-default);
  }
}

.gov-banner__toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-brand-cardinal-red);
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
}

.gov-banner__panel[hidden] {
  display: none;
}

.gov-banner__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--layout-gap-default);
  padding: var(--spacing-sm2) var(--layout-inline-padding-compact) var(--spacing-md1);
  background: var(--color-neutral-2);
}
@media (min-width: 768px) {
  .gov-banner__panel {
    grid-template-columns: repeat(3, 1fr);
    padding-inline: var(--layout-inline-padding-default);
  }
}

.gov-banner__item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm1);
  color: var(--color-neutral-11);
}

.gov-banner__item strong {
  display: block;
  color: var(--color-neutral-12);
}

.gov-banner__item p {
  margin: 0;
  font-family: var(--type-body-sm-family);
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-sm-weight);
  line-height: var(--type-body-sm-line-height);
}

/* ====================================================================== */
/* Header / logo bar — custom, tokens-only                                */
/* ====================================================================== */

.nav-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md1);
  min-height: var(--size-xxl2);
  padding-inline: var(--layout-inline-padding-compact);
  background: var(--color-neutral-1);
  border-bottom: 1px solid var(--color-neutral-6);
  flex-wrap: wrap;
}

.nav-header--odvs {
  min-height: 88px;
  padding-block: var(--spacing-sm1);
}

.site-header {
  --mms-header-logo-height: 56px;
}

.site-header[scrolled] {
  --_brand-logo-base: 16px;
  --mms-header-logo-height: 32px;
}

.nav-header__collapsible {
  display: contents;
}

#nav-menu-toggle {
  display: none;
}

.navigator-launcher {
  position: fixed;
  display: inline-block;
  right: 24px;
  bottom: 48px;
  z-index: 1000;
  border-radius: var(--radius-full);
  background: transparent;
  filter: drop-shadow(0 4px 8px rgb(0 0 0 / 15%)) drop-shadow(0 1px 3px rgb(0 0 0 / 30%));
}

@media (min-width: 768px) {
  .nav-header {
    padding-inline: var(--layout-inline-padding-default);
  }
}

.nav-header__brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm1);
  color: var(--color-neutral-12);
  text-decoration: none;
}
.nav-header__brand:hover,
.nav-header__brand:visited {
  color: var(--color-neutral-12);
}

.nav-header__logo {
  height: 56px;
  width: auto;
}

.site-header[scrolled] .nav-header__logo {
  height: 32px;
}

.nav-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-md1);
}

.nav-header__nav-trigger {
  position: relative;
  display: inline-flex;
  min-height: var(--size-xl-touch);
  padding: var(--spacing-xs2) var(--spacing-sm1);
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs2);
  border-radius: var(--radius-sm);
  color: var(--color-neutral-12);
  font-family: var(--type-ui-label-md-family);
  font-size: var(--type-ui-label-md-size);
  font-weight: var(--type-ui-label-md-weight);
  line-height: var(--type-ui-label-md-line-height);
}

.nav-header__nav-trigger {
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-header__nav-trigger span {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs2);
}

.nav-header__nav-trigger:hover,
.nav-header__nav-trigger:focus-visible {
  background: var(--color-neutral-3);
  color: var(--color-primary-9);
}

.nav-header__nav-trigger:active {
  background: var(--color-primary-3);
  color: var(--color-primary-9);
}

.nav-header__utility {
  display: flex;
  align-items: center;
  gap: var(--spacing-md1);
}

.nav-header__dropdown {
  position: relative;
}

.nav-header__utility-link,
.nav-header__search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs2);
  min-height: var(--size-xl-touch);
  color: var(--color-neutral-12);
  font: inherit;
  font-size: 1rem;
  text-decoration: none;
}

.nav-header__utility-link {
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-header__utility-link:hover,
.nav-header__utility-link:focus-visible {
  color: var(--color-primary-9);
}

.nav-header__search-button {
  padding: var(--spacing-xs2) var(--spacing-sm2);
  border: 1px solid var(--color-neutral-5);
  border-radius: var(--radius-full);
  background: var(--color-neutral-1);
  box-shadow: var(--elevation-xs);
  cursor: pointer;
}

.nav-header__search-button:hover,
.nav-header__search-button:focus-visible {
  border-color: var(--color-primary-7);
  color: var(--color-primary-9);
}

.nav-header__submenu,
.nav-header__utility-panel {
  position: fixed;
  top: var(--nav-menu-top, 72px);
  right: var(--nav-menu-right, auto);
  left: var(--nav-menu-left, auto);
  z-index: 1000;
  min-width: 260px;
  padding: var(--spacing-sm1);
  border: 1px solid var(--color-neutral-6);
  border-radius: var(--radius-md);
  background: var(--color-neutral-1);
  box-shadow: var(--elevation-md);
}

.nav-header__submenu {
  right: auto;
}

.nav-header__submenu[hidden],
.nav-header__utility-panel[hidden] {
  display: none;
}

.nav-header__submenu a,
.nav-header__utility-panel a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--size-xl-touch);
  padding: var(--spacing-sm1) var(--spacing-md1);
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-neutral-12);
  font-family: var(--type-ui-label-md-family);
  font-size: var(--type-ui-label-md-size);
  font-weight: var(--type-ui-label-md-weight);
  line-height: var(--type-ui-label-md-line-height);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-header__submenu a {
  max-width: none;
}

.nav-header__submenu a::after {
  display: none;
}

.nav-header__submenu a:hover,
.nav-header__submenu a:focus-visible,
.nav-header__submenu a[aria-current="page"],
.nav-header__utility-panel a:hover,
.nav-header__utility-panel a:focus-visible {
  background: var(--color-primary-3);
  color: var(--color-primary-9);
}

.nav-header__utility-panel-title {
  margin: 0 0 var(--spacing-xs2);
  padding-inline: var(--spacing-md1);
  color: var(--color-neutral-11);
  font-family: var(--type-ui-label-sm-family);
  font-size: var(--type-ui-label-sm-size);
  font-weight: var(--type-ui-label-sm-weight);
  line-height: var(--type-ui-label-sm-line-height);
}

.nav-header__utility-panel--search {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm1);
}

.nav-header__utility-panel--search[hidden] {
  display: none;
}

.nav-header__account {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-header__auth-buttons {
  display: flex;
  align-items: center;
  gap: var(--layout-gap-default);
}

.nav-header__auth-buttons[hidden] {
  display: none;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs2);
  min-block-size: var(--size-xl-touch);
  padding: var(--spacing-xs2);
  background: var(--color-neutral-1);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--color-neutral-12);
}

.account-trigger:hover {
  background: var(--color-neutral-3);
}

.account-trigger:focus-visible {
  outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
  outline-offset: var(--focus-ring-inset-offset);
}

.account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary-9);
  color: var(--color-utility-on-fill);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-bold);
}

.account-avatar--guest {
  background: var(--color-neutral-4);
  color: var(--color-neutral-11);
}

.account-menu[hidden] {
  display: none;
}

.account-menu {
  position: fixed;
  top: var(--account-menu-top, 72px);
  right: var(--account-menu-right, var(--spacing-md1));
  min-width: 240px;
  max-height: var(--account-menu-max-height, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  background: var(--color-neutral-1);
  border: 1px solid var(--color-neutral-6);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-md);
  padding: var(--spacing-sm1);
  overflow-y: auto;
  z-index: 1000;
}

.account-menu__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs2);
  width: 100%;
  min-height: var(--size-xl-touch);
  padding: var(--spacing-sm2) var(--spacing-md1);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--type-ui-label-md-family);
  font-size: var(--type-ui-label-md-size);
  font-weight: var(--type-ui-label-md-weight);
  line-height: var(--type-ui-label-md-line-height);
  color: var(--color-neutral-12);
  text-align: left;
  cursor: pointer;
}

.account-menu__item:hover {
  background: var(--color-primary-3);
}

.account-menu__item:focus-visible {
  outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
  outline-offset: var(--focus-ring-inset-offset);
}

.account-menu__item--active {
  background: var(--color-primary-3);
  font-weight: var(--font-weight-bold);
}

.account-menu__divider {
  border: none;
  border-top: 1px solid var(--color-neutral-6);
  margin: var(--spacing-xs2) 0;
}

.account-menu__label {
  font-family: var(--type-ui-label-sm-family);
  font-size: var(--type-ui-label-sm-size);
  font-weight: var(--type-ui-label-sm-weight);
  line-height: var(--type-ui-label-sm-line-height);
  color: var(--color-neutral-11);
  padding: var(--spacing-sm2) var(--spacing-md1) 0;
  margin: 0;
}

.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap-default);
}

.auth-modal-copy {
  margin: 0 0 var(--layout-gap-default) 0;
  color: var(--color-neutral-11);
  font-size: 0.875rem;
  line-height: 1.5;
}

.auth-modal-divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm1);
  margin: var(--layout-gap-default) 0;
  color: var(--color-neutral-11);
  font-size: 0.8125rem;
}

.auth-modal-divider::before,
.auth-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-neutral-6);
}

.auth-modal-idp-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm1);
}

.auth-idp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs2);
  width: 100%;
  min-height: var(--size-xl-touch);
  border: none;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  color: var(--color-utility-on-fill);
  cursor: pointer;
}

.auth-idp-button--idme {
  background: #0a6b30;
}

.auth-idp-button--idme:hover {
  background: #08592a;
}

.auth-idp-button--logingov {
  background: var(--color-brand-cardinal-red);
}

.auth-idp-button--logingov:hover {
  filter: brightness(0.9);
}


@media (max-width: 767px) {
  #nav-menu-toggle {
    display: inline-flex;
  }

  .nav-header__collapsible {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-neutral-1);
    border-bottom: 1px solid var(--color-neutral-6);
    box-shadow: var(--elevation-md);
    z-index: 20;
  }

  .nav-header__collapsible.is-open {
    display: flex;
  }

  .nav-header__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-header__nav-trigger {
    max-width: none;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-inline: var(--spacing-md1);
  }

  .nav-header__account {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-sm1) var(--spacing-md1);
    gap: var(--spacing-sm1);
  }

  .nav-header__utility {
    flex-direction: column;
    align-items: stretch;
    padding: var(--spacing-sm1) var(--spacing-md1) var(--spacing-md1);
    gap: var(--spacing-sm1);
  }

  .nav-header__utility-link,
  .nav-header__search-button {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-header__submenu,
  .nav-header__utility-panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: var(--spacing-xs2);
    box-shadow: none;
  }

  .nav-header__collapsible .account-menu {
    position: static;
    box-shadow: none;
    border: none;
  }
}

/* ====================================================================== */
/* ODVS site footer                                                       */
/* ====================================================================== */

.odvs-footer {
  margin-top: var(--spacing-xl2);
  color: var(--color-neutral-1);
}

.odvs-footer a {
  color: var(--color-neutral-1);
  text-decoration: none;
}

.odvs-footer a:hover,
.odvs-footer a:focus-visible {
  text-decoration: underline;
}

.odvs-footer__content {
  max-width: var(--layout-content-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-inline-padding-compact);
}

.odvs-footer__main {
  background: var(--color-primary-9);
}

.odvs-footer__main .odvs-footer__content {
  padding-block: var(--spacing-xl1);
}

.odvs-footer__main h2 {
  margin-bottom: var(--spacing-md1);
  color: var(--color-neutral-1);
  font-family: var(--type-heading-3-family);
  font-size: var(--type-heading-3-size);
  font-weight: var(--type-heading-3-weight);
  line-height: var(--type-heading-3-line-height);
  letter-spacing: var(--type-heading-3-letter-spacing);
}

.odvs-footer__contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-md1) var(--spacing-xl1);
}

.odvs-footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm1);
  font-family: var(--type-body-md-family);
  font-size: var(--type-body-md-size);
  font-weight: var(--type-body-md-weight);
  line-height: var(--type-body-md-line-height);
}

.odvs-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm1);
}

.odvs-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-neutral-1);
  color: var(--color-brand-cardinal-red);
}

.odvs-footer__socials a:hover,
.odvs-footer__socials a:focus-visible {
  background: var(--color-neutral-3);
  text-decoration: none;
}

.odvs-footer__nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md1);
  margin-top: var(--spacing-xl2);
  padding-top: var(--spacing-xl1);
  border-top: 1px solid rgb(255 255 255 / 45%);
}

.odvs-footer__crisis {
  background: #1f1f1f;
}

.odvs-footer__crisis-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--layout-gap-comfortable);
  align-items: center;
  padding-block: var(--spacing-xl1);
}

.odvs-footer__crisis-content p {
  margin: 0;
  font-family: var(--type-body-md-family);
  font-size: var(--type-body-md-size);
  font-weight: var(--type-body-md-weight);
  line-height: var(--type-body-md-line-height);
}

.odvs-footer__crisis-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md1);
  min-height: 72px;
  padding: var(--spacing-sm1) var(--spacing-md1);
  border: 2px solid var(--color-neutral-4);
  background: linear-gradient(90deg, #111 0%, #333 100%);
  text-transform: uppercase;
}

.odvs-footer__crisis-badge span {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.odvs-footer__crisis-badge strong {
  max-width: 150px;
  font-family: var(--type-ui-label-md-family);
  font-size: var(--type-ui-label-md-size);
  font-weight: var(--type-ui-label-md-weight);
  line-height: var(--type-ui-label-md-line-height);
}

.odvs-footer__crisis-badge em {
  font-family: var(--font-family-serif);
  font-size: 1.75rem;
  text-transform: none;
}

.odvs-footer__legal {
  background: #242424;
  border-top: 1px solid var(--color-neutral-6);
}

.odvs-footer__legal-content {
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap-comfortable);
  padding-block: var(--spacing-md1);
}

.odvs-footer__powered {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm1);
  color: var(--color-neutral-3);
  font-family: var(--type-body-sm-family);
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-sm-weight);
  line-height: var(--type-body-sm-line-height);
}

.odvs-footer__powered strong {
  color: var(--color-neutral-1);
  font-family: var(--type-heading-3-family);
  font-size: var(--type-heading-3-size);
  font-weight: var(--type-heading-3-weight);
  line-height: var(--type-heading-3-line-height);
  letter-spacing: var(--type-heading-3-letter-spacing);
}

.odvs-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md1) var(--spacing-xl1);
  font-family: var(--type-body-sm-family);
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-sm-weight);
  line-height: var(--type-body-sm-line-height);
}

.odvs-footer__legal-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs2);
}

@media (min-width: 768px) {
  .odvs-footer__content {
    padding-inline: var(--layout-inline-padding-default);
  }

  .odvs-footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .odvs-footer__crisis-content {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.65fr);
  }

  .odvs-footer__legal-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ====================================================================== */
/* Landing screen                                                         */
/* ====================================================================== */

.landing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--layout-gap-comfortable);
}
@media (min-width: 1024px) {
  .landing-layout {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--layout-gap-default);
    align-items: start;
  }
  .landing-content {
    grid-column: 1 / span 10;
  }
}

.landing-hero {
  margin-bottom: var(--spacing-lg1);
}

.landing-hero h1 {
  color: var(--color-primary-9);
  font-family: var(--type-display-lg-family);
  font-size: var(--text-display-lg-size);
  font-weight: var(--type-display-lg-weight);
  line-height: var(--text-display-lg-line-height);
  letter-spacing: var(--text-display-lg-letter-spacing);
}

.landing-hero p {
  max-width: 760px;
  color: var(--color-neutral-11);
  font-family: var(--type-body-lg-family);
  font-size: var(--text-body-lg-size);
  font-weight: var(--type-body-lg-weight);
  line-height: var(--text-body-lg-line-height);
}

.ai-disclosure {
  border: 1px solid var(--color-utility-caution-emphasis);
  border-radius: var(--radius-md);
  background: var(--color-utility-caution-muted);
  color: var(--color-neutral-12);
}

.chat-safety-panel {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs2);
}

.ai-disclosure {
  margin: 0 0 var(--spacing-lg1);
  padding: var(--spacing-md1);
}

.ai-disclosure h2 {
  color: var(--color-neutral-12);
  font-size: 1.25rem;
}

.ai-disclosure p {
  margin-bottom: var(--spacing-sm1);
}

.ai-disclosure p:last-of-type {
  margin-bottom: 0;
}

.ai-safety-note {
  margin: 0;
  color: var(--color-neutral-11);
  font-size: 0.875rem;
}

.landing-form {
  margin: 0 0 var(--spacing-lg1);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm2);
  max-width: 920px;
}

.landing-form[hidden] {
  display: none;
}

.landing-form__row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm1);
}
@media (min-width: 640px) {
  .landing-form__row {
    flex-direction: row;
  }
  .landing-form__row mms-text-field {
    flex: 1;
    min-width: 0;
    --spacing-md1: 9px;
  }
  .landing-form__row mms-select {
    flex: 1;
    min-width: 0;
    --spacing-md1: 9px;
  }
  .landing-form__row mms-button {
    flex-shrink: 0;
    --spacing-sm2: 10.5px;
  }
}

.landing-prompts {
  margin-top: var(--spacing-lg1);
  max-width: 1060px;
}

.landing-prompts h2 {
  margin-bottom: var(--spacing-md1);
  color: var(--color-neutral-12);
  font-family: var(--type-heading-5-family);
  font-size: var(--type-heading-5-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--type-heading-5-line-height);
  letter-spacing: var(--type-heading-5-letter-spacing);
}

.landing-prompt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--layout-gap-default);
}

.landing-prompt-card {
  height: 100%;
  cursor: pointer;
  /* mms-card's body-bold title-size hardcodes font-weight: var(--font-weight-bold);
     scoping the override here (rather than the global token) keeps it contained
     to just these prompt-suggestion cards. */
  --font-weight-bold: var(--font-weight-regular);
}

.landing-prompt-card:hover,
.landing-prompt-card:focus-visible {
  border-color: var(--color-primary-7);
  color: var(--color-primary-9);
}

.landing-prompt-card:focus-visible {
  outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
  outline-offset: var(--focus-ring-inset-offset);
}

@media (min-width: 640px) {
  .landing-prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .landing-prompt-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--layout-gap-loose);
}
@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ====================================================================== */
/* Tap-target wrapper card — empty-state categories + stepper answer      */
/* options. Custom, tokens-only: no DS card component exists.             */
/* ====================================================================== */

.tap-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-sm1);
  width: 100%;
  min-height: var(--size-xl-touch);
  padding: var(--spacing-lg1);
  background: var(--color-neutral-2);
  border: 1px solid var(--color-neutral-6);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-sm);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.tap-card:hover {
  background: var(--color-primary-3);
  border-color: var(--color-primary-7);
}

.tap-card:focus-within,
.tap-card:focus-visible {
  outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

.tap-card[aria-pressed="true"],
.tap-card.is-selected {
  background: var(--color-primary-5);
  border-color: var(--color-primary-9);
}

.tap-card__title {
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  color: var(--color-neutral-12);
}

.tap-card__description {
  font-size: 0.875rem;
  color: var(--color-neutral-11);
}

/* Wrapper for a single mms-radio/mms-checkbox inside a .tap-card, so the
   whole card (not just the control) is the click/tap target. */
.tap-card__control {
  pointer-events: none;
}

/* ====================================================================== */
/* Free-text input — custom, no DS text-field exists                      */
/* ====================================================================== */

.mms-text-field {
  width: 100%;
}

/* Legacy .text-input styles kept for compatibility, in case needed */

/* ====================================================================== */
/* Homepage static topics — Benefits, GI Bill, Mental Health, Housing,     */
/* Family, presented in the same tab-strip pattern as result.html.         */
/* ====================================================================== */

.landing-topics {
  margin-top: calc(var(--spacing-xl2) + var(--spacing-lg1));
}

.landing-topics > h2 {
  color: var(--color-primary-9);
  font-family: var(--type-heading-3-family);
  font-size: var(--text-heading-2-size);
  font-weight: var(--type-heading-3-weight);
  line-height: var(--text-heading-2-line-height);
  letter-spacing: var(--text-heading-2-letter-spacing);
  margin-bottom: var(--spacing-sm1);
}

.landing-topics__subcopy {
  margin: 0 0 var(--spacing-lg1);
  color: var(--color-neutral-11);
  font-family: var(--type-body-md-family);
  font-size: var(--type-body-md-size);
  font-weight: var(--type-body-md-weight);
  line-height: var(--type-body-md-line-height);
}

#landing-tablist {
  margin-bottom: var(--spacing-lg1);
}

/* ====================================================================== */
/* Chat-style intake (intake.html)                                        */
/* ====================================================================== */

.chat-shell {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md1);
}

.chat-shell__toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-md1);
}

.chat-shell__toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--spacing-sm1);
}

/* Card container for the chat itself — same chrome as .result-card
   (Pathway Result's cards, e.g. "Employment & Career Pathway") so the
   conversation reads as one contained module rather than floating on the
   page background. */
.chat-card {
  background: var(--color-neutral-2);
  border: 1px solid var(--color-neutral-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-md);
  padding: var(--spacing-lg2);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md1);
}

.chat-transcript {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md1);
  min-height: 240px;
  max-height: 60vh;
  overflow-y: auto;
  padding: var(--spacing-sm1) var(--spacing-xs2);
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm1);
  max-width: 85%;
}

.chat-message--agent,
.chat-message--system {
  align-self: flex-start;
}

.chat-message--user {
  align-self: flex-end;
}

.chat-message--system {
  max-width: 100%;
}

.chat-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary-3);
  color: var(--color-primary-11);
}

.chat-message__bubble {
  padding: var(--spacing-sm2) var(--spacing-md1);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  white-space: pre-line;
}

.chat-message__bubble--disclosure {
  max-width: 100%;
}

.chat-disclosure__heading {
  margin: 0 0 var(--spacing-sm1);
  color: var(--color-primary-9);
  font-size: 1.25rem;
}

.chat-message__bubble--disclosure p {
  margin-bottom: var(--spacing-sm1);
}

.chat-message__bubble--disclosure p:last-child {
  margin-bottom: 0;
}

.chat-message__author {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs2);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-neutral-11);
  margin-bottom: 2px;
}

.chat-message__ai-badge {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-regular);
  text-transform: none;
  color: var(--color-neutral-11);
  background: var(--color-neutral-3);
  border-radius: var(--radius-full);
  padding: 1px var(--spacing-xs1);
}

.chat-message__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm1);
  margin-top: var(--spacing-sm1);
  font-size: 0.8125rem;
}

.chat-message__inline-action {
  margin-top: var(--spacing-sm1);
  display: block;
}

.chat-message__button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm1);
  margin-top: var(--spacing-sm1);
}

.chat-drawer__need-help {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  /* .chat-drawer__body already applies a 16px flex gap above this item;
     offset it so the visible space above the button is only 8px. */
  margin-top: calc(var(--spacing-sm1) - var(--spacing-md1));
}

.chat-message__report-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-utility-link);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.chat-message__report-button:hover {
  color: var(--color-utility-link-hover);
}

.what-to-expect__heading {
  display: block;
  color: var(--color-primary-9);
}

.what-to-expect__section-title {
  margin: var(--spacing-md1) 0 0;
}

.what-to-expect__section-body {
  margin: 0 0 var(--spacing-xs1);
}

.chat-message--agent .chat-message__bubble {
  background: var(--color-neutral-1);
  border: 1px solid var(--color-neutral-6);
  color: var(--color-neutral-12);
  border-top-left-radius: var(--radius-sm);
}

.chat-message--user .chat-message__bubble {
  background: var(--color-primary-9);
  color: var(--color-utility-on-fill);
  border-top-right-radius: var(--radius-sm);
}

.chat-message--system .chat-message__bubble {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm1);
  background: var(--color-utility-caution-muted);
  border: 1px solid var(--color-utility-caution-emphasis);
  color: var(--color-utility-caution-emphasis);
  font-size: 0.9375rem;
}

.chat-typing-indicator {
  display: flex;
  gap: 4px;
  padding: var(--spacing-sm2) var(--spacing-md1);
}

.chat-typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-neutral-9);
  animation: navigator-typing 900ms ease-in-out infinite;
}
.chat-typing-indicator span:nth-child(2) { animation-delay: 150ms; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 300ms; }

@keyframes navigator-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm1);
  align-items: center;
}

.chat-quick-replies[hidden] {
  display: none;
}

.chat-quick-replies mms-select {
  flex: 1;
  min-width: 0;
  --spacing-md1: 9px;
}

.chat-chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-xl-touch);
  padding: var(--spacing-sm1) var(--spacing-md1);
  background: var(--color-neutral-1);
  border: 1px solid var(--color-neutral-6);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--color-neutral-12);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.chat-chip:hover {
  background: var(--color-primary-3);
  border-color: var(--color-primary-7);
}

.chat-chip:focus-within {
  outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

.chat-chip.is-selected {
  background: var(--color-primary-5);
  border-color: var(--color-primary-9);
}

/* The mms-radio/mms-checkbox stays mounted for its accessible name, state,
   and change events, but is visually hidden (screen-reader-only technique) —
   the chip's own .chat-chip__label span is what sighted users see, so the
   pill shows no indicator glyph and no space reserved for one. */
.chat-chip__control {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.chat-chip__label {
  pointer-events: none;
}

/* Checklist panel for single/multi-select questions (intake.js,
   flow-chat.js), rendered by chat-ui.js's renderOptionList as an
   mms-radio-group/mms-checkbox-group wrapping plain mms-radio/mms-checkbox
   children — no bespoke row/highlight styling here, so checked-state
   rendering (indicator fill only, no per-row background) matches the DS
   components exactly instead of the previous hand-rolled bordered "card"
   rows, which broke apart visually when several adjacent rows were checked.
   Rendered as part of the agent bubble itself (see renderOptionList's
   `bubble` container arg), so it has no border/background of its own — it
   inherits the bubble's. */
.chat-options {
  display: flex;
  flex-direction: column;
  margin-top: var(--spacing-sm1);
}

.chat-options mms-select {
  width: 100%;
  --spacing-md1: 9px;
}

.chat-options__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-sm1);
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm1);
}

.chat-input-row mms-text-field {
  flex: 1;
  --spacing-md1: 9px;
}

.chat-safety-panel {
  margin-top: var(--spacing-xs2);
}

/* ====================================================================== */
/* Bottom-sheet chat drawer (Homepage & embedded chat)                   */
/* ====================================================================== */

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpDrawer {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.chat-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 45%);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms;
}

.chat-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: fadeInBackdrop 240ms ease forwards;
}

.chat-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 64px;
  width: 100vw;
  max-width: 100vw;
  height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  background: var(--color-neutral-1);
  border: 1px solid var(--color-neutral-6);
  border-bottom: none;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 32px rgb(0 0 0 / 24%);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

.chat-drawer.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  animation: slideUpDrawer 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-drawer--page {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 900px;
  height: min(720px, calc(100vh - 120px));
  min-height: 600px;
  margin-bottom: var(--spacing-xl2);
  transform: none;
  visibility: visible;
  pointer-events: auto;
  border: 1px solid var(--color-neutral-6);
  border-radius: 1.25rem;
  box-shadow: var(--elevation-md);
  animation: none;
}

.chat-drawer--page.is-open {
  transform: none;
  animation: none;
}

.chat-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm2) var(--spacing-xl1);
  border-bottom: 1px solid var(--color-neutral-6);
  background: var(--color-neutral-2);
  flex-shrink: 0;
}

.chat-drawer__header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm1);
}

.chat-drawer__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary-9);
  color: var(--color-utility-on-fill);
}

.chat-drawer__header-text {
  display: flex;
  flex-direction: column;
}

.chat-drawer__title {
  margin: 0;
  font-family: var(--type-ui-label-md-family);
  font-size: 1.0625rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-neutral-12);
}

.chat-drawer__badge {
  font-size: 0.75rem;
  color: var(--color-neutral-11);
}

.chat-drawer__header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs2);
}

.chat-drawer__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: var(--spacing-md1) var(--spacing-lg1);
  gap: var(--spacing-md1);
  overflow: hidden;
}

.chat-drawer__body .chat-transcript {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: var(--spacing-xs1);
}

.chat-drawer__body .chat-quick-replies {
  flex-shrink: 0;
}

.chat-drawer__body .chat-input-row {
  flex-shrink: 0;
}

.chat-drawer__body .chat-safety-panel {
  flex-shrink: 0;
  margin-top: 0;
}

.page-breadcrumbs-wrapper {
  margin-block: var(--spacing-md1) var(--spacing-lg1);
}

@media (max-width: 767px) {
  .chat-drawer {
    top: 32px;
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .chat-drawer--page {
    top: auto;
    height: calc(100vh - 80px);
    min-height: 560px;
    border-radius: 1.25rem;
  }
  .chat-drawer__header {
    padding: var(--spacing-sm1) var(--spacing-md1);
  }
  .chat-drawer__body {
    padding: var(--spacing-sm2) var(--spacing-md1);
  }
}

/* ====================================================================== */
/* Progress indicator — custom, no DS progress component exists           */
/* ====================================================================== */

.progress-indicator {
  width: 100%;
}

.progress-indicator__label {
  font-size: 0.8125rem;
  color: var(--color-neutral-11);
  margin-bottom: var(--spacing-xs2);
}

.progress-indicator__track {
  height: 8px;
  background: var(--color-neutral-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-indicator__fill {
  height: 100%;
  background: var(--color-primary-9);
  border-radius: var(--radius-full);
  transition: width 200ms ease;
}

/* ====================================================================== */
/* Loading transition (result.html)                                       */
/* ====================================================================== */

.loading-screen:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md1);
  min-height: 60vh;
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-neutral-4);
  border-top-color: var(--color-primary-9);
  border-radius: 50%;
  animation: navigator-spin 900ms linear infinite;
}

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

/* ====================================================================== */
/* Pathway result cards — custom, no DS card component exists             */
/* ====================================================================== */

.result-guidance-alert {
  width: 100%;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--layout-gap-comfortable);
}

.result-grid--persistent:not(:empty) {
  margin-bottom: var(--spacing-xl1);
}

.result-grid--persistent:has(.pathway-career-tools-card) {
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .result-grid--persistent {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--layout-gap-default);
  }

  .result-grid--persistent .result-card {
    grid-column: span 6;
  }

  .result-grid--persistent .result-card--cvso {
    grid-column: 1 / -1;
  }

  .result-grid--persistent .pathway-followup-card {
    grid-column: span 6;
  }

  .result-grid--persistent .pathway-career-tools-card {
    grid-column: span 6;
  }

  .result-grid--persistent .pathway-career-tools-heading {
    grid-column: 1 / -1;
  }

  .result-grid--persistent .result-guidance-alert {
    grid-column: 1 / -1;
  }

  .result-grid--persistent .result-card:only-of-type {
    grid-column: 1 / -1;
  }

  .result-grid--full-width.result-grid--persistent .result-card {
    grid-column: 1 / -1;
  }
}

.pathway-followup-card__quick-heading {
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm1);
}

.pathway-career-tools-heading {
  margin-bottom: calc(var(--spacing-md1) - var(--layout-gap-comfortable));
}

.pathway-career-tools-heading__title.result-card__section-title {
  margin: 0 0 var(--spacing-sm1);
  font-size: var(--text-heading-2-size);
  color: var(--color-primary-9);
}

.pathway-career-tools-heading__subcopy {
  margin: 0;
  font-family: var(--type-body-md-family);
  font-size: var(--type-body-md-size);
  font-weight: var(--type-body-md-weight);
  line-height: var(--type-body-md-line-height);
  color: var(--color-neutral-11);
}

.result-card--cvso {
  --color-text-default: var(--color-primary-9);
}

.result-card--cvso__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--layout-gap-default);
  row-gap: var(--spacing-sm1);
  margin: 0;
  padding-left: var(--spacing-lg1, 1.25rem);
}

.pathway-career-tools-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md1);
}

.pathway-career-tools-card__body > p {
  margin: 0;
}

.pathway-career-tools-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs2);
  color: var(--color-primary-9);
  font-weight: var(--font-weight-semibold);
}

.pathway-career-tools-card__link::after {
  content: "\2192";
}

.pathway-followup-card {
  position: relative;
  height: 430px;
}

.pathway-followup-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm1);
  max-height: 335px;
  overflow-y: auto;
  padding-right: var(--spacing-xs2);
}

.pathway-followup-card__body > p {
  margin-bottom: 0;
}

.pathway-followup-card__expand-button {
  position: absolute;
  top: 0;
  right: var(--spacing-md1);
  z-index: 1;
}

.pathway-followup-card__input-form {
  margin-block: var(--spacing-sm1);
}

.pathway-followup-card__input-form mms-text-field {
  flex: 1;
  min-width: 0;
}

.pathway-followup-card__quick-list,
.pathway-followup-chat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm1);
}

.pathway-followup-card__quick-list {
  margin-bottom: var(--spacing-md1);
}

.pathway-followup-card__quick-button {
  min-height: var(--size-xl-touch);
  padding: var(--spacing-sm1) var(--spacing-md1);
  border: 1px solid var(--color-primary-7);
  border-radius: var(--radius-full);
  background: var(--color-neutral-1);
  color: var(--color-primary-9);
  font: inherit;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

.pathway-followup-card__quick-button:hover,
.pathway-followup-card__quick-button:focus-visible {
  background: var(--color-primary-3);
}

.pathway-followup-chat {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm1);
}

.pathway-followup-chat__message {
  width: fit-content;
  max-width: 100%;
  padding: var(--spacing-sm1) var(--spacing-md1);
  border-radius: var(--radius-md);
}

.pathway-followup-chat__message p:last-child,
.pathway-followup-chat__message ul:last-child {
  margin-bottom: 0;
}

.pathway-followup-chat__message--agent {
  align-self: flex-start;
  background: var(--color-neutral-2);
  border: 1px solid var(--color-neutral-6);
}

.pathway-followup-chat__message--user {
  align-self: flex-end;
  background: var(--color-primary-9);
  color: var(--color-utility-on-fill);
}

.pathway-followup-chat__actions {
  margin-top: var(--spacing-sm1);
}

.pathway-followup-card.is-expanded {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 100;
  width: min(100vw - (2 * var(--layout-inline-padding-compact)), var(--layout-content-max-width));
  height: min(82vh, 760px);
  transform: translateX(-50%);
  box-shadow: var(--elevation-lg);
}

.pathway-followup-card.is-expanded .pathway-followup-card__body {
  max-height: calc(min(82vh, 760px) - 96px);
}

.has-pathway-followup-sheet::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgb(0 0 0 / 40%);
}

@media (max-width: 767px) {
  .pathway-followup-card {
    height: 460px;
  }

  .pathway-followup-card__body {
    max-height: 365px;
  }

  .pathway-followup-card.is-expanded {
    width: 100vw;
    height: 86vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .pathway-followup-card.is-expanded .pathway-followup-card__body {
    max-height: calc(86vh - 96px);
  }
}

/* ====================================================================== */
/* Pathway result tabs — one tab per selected goal, Employment first       */
/* ====================================================================== */

.result-tabs-wrapper[hidden] {
  display: none;
}

#result-tablist {
  margin-bottom: var(--spacing-lg1);
}

.result-tabpanel {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl2);
}

.result-tabpanel[hidden] {
  display: none;
}

/* Each section renderer (MOS translation, SkillBridge, job listings,
   employers) returns one wrapper element so .result-tabpanel's flex gap
   applies only between sections, not between their internal heading/body/
   list nodes. The heading's own margin-top would otherwise stack on top of
   that gap since it isn't collapsed away inside a flex item. */
.result-tabpanel__section > *:first-child {
  margin-top: 0;
}

.result-tabpanel__placeholder {
  color: var(--color-neutral-11);
  font-style: italic;
}

/* Shared link-list layout for cards ending in an outbound mms-link list
   (Housing, Benefits, Family). */
.result-card__link-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm1);
}

.result-card__section-title {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  margin: var(--spacing-lg1) 0 var(--spacing-sm1) 0;
}

.result-card__section-title--primary {
  color: var(--color-primary-9);
  font-size: var(--text-heading-2-size);
  line-height: var(--text-heading-2-line-height);
  letter-spacing: var(--text-heading-2-letter-spacing);
  margin-bottom: var(--spacing-xs2);
}

.result-tabpanel__section--job-listings .result-card__section-title--primary,
.result-tabpanel__section--employers .result-card__section-title--primary {
  margin-bottom: calc(var(--spacing-xs2) + 8px);
}

/* Nested sub-card / list row — SkillBridge cards, employer rows, OVH facilities */
.sub-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap-default);
}

.sub-card {
  background: var(--color-neutral-1);
  border: 1px solid var(--color-neutral-6);
  border-radius: var(--radius-sm);
  padding: var(--spacing-md1);
}

.sub-card__title {
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xs2);
}

.sub-card__meta {
  font-size: 0.875rem;
  color: var(--color-neutral-11);
}

.sub-card__cta {
  margin-top: var(--spacing-sm1);
}

/* Job-seeker Employment tab per-item mms-card lists (SkillBridge, job
   listings, employers) — kept separate from .sub-card-list above so
   Housing's OVH facility rows are unaffected. */
.item-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap-default);
}

.result-tabpanel__section--job-listings .item-card-list,
.result-tabpanel__section--employers .item-card-list {
  margin-bottom: 8px;
}

/* ====================================================================== */
/* Error / empty state                                                    */
/* ====================================================================== */

.error-state {
  max-width: 480px;
  margin: var(--spacing-xxl1) auto;
}

.empty-state .landing-hero {
  margin-top: var(--spacing-xl1);
}

/* ====================================================================== */
/* About page                                                              */
/* ====================================================================== */

.about-hero {
  margin-bottom: var(--spacing-xl2);
}

.about-hero h1 {
  color: var(--color-primary-9);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--layout-gap-comfortable);
}
@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--layout-gap-default);
    align-items: start;
  }
  .about-content {
    grid-column: 1 / span 6;
  }
  .about-image {
    grid-column: 8 / span 5;
  }
}

.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 500px;
  border-radius: var(--radius-lg);
  background: var(--color-neutral-2);
  border: 1px solid var(--color-neutral-6);
  box-shadow: var(--elevation-sm);
}

.about-image__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: calc(50% - 100px) center;
}

.about-section {
  max-width: 720px;
}

.about-section h2 {
  font-size: 1.5rem;
  color: var(--color-primary-9);
}

.about-section p {
  margin-bottom: var(--spacing-md1);
}

.about-section mms-button {
  margin-top: var(--spacing-md1);
}

/* ====================================================================== */
/* Veteran resource pages                                                 */
/* ====================================================================== */

.resource-page {
  max-width: 1040px;
}

.resource-page__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs2);
  align-items: center;
  margin-bottom: var(--spacing-xl1);
  color: var(--color-neutral-10);
  font-size: var(--type-body-sm-size);
}

.resource-page__breadcrumbs a {
  color: var(--color-primary-9);
}

.resource-page__hero {
  max-width: 800px;
  margin-bottom: var(--spacing-xl2);
}

.resource-page--job-seeker .resource-page__hero {
  max-width: 900px;
}

.resource-page__hero h1 {
  margin-bottom: var(--spacing-md1);
  color: var(--color-primary-9);
  font-family: var(--type-display-lg-family);
  font-size: var(--text-display-lg-size);
  font-weight: var(--type-display-lg-weight);
  line-height: var(--text-display-lg-line-height);
  letter-spacing: var(--text-display-lg-letter-spacing);
}

.resource-page__hero p {
  color: var(--color-neutral-11);
  font-family: var(--type-body-lg-family);
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line-height);
}

.resource-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--layout-gap-comfortable);
}

.resource-page__callout {
  margin-top: var(--spacing-xl2);
}

.resource-page__callout p:last-child {
  margin-bottom: 0;
}

.resource-page__ai-notice {
  display: flex;
  gap: var(--spacing-sm1);
  align-items: flex-start;
  max-width: 860px;
  margin-bottom: var(--spacing-lg1);
  padding: var(--spacing-md1);
  border-left: 4px solid var(--color-primary-7);
  background: var(--color-primary-2);
}

.resource-page__ai-notice mms-icon {
  flex-shrink: 0;
  color: var(--color-primary-9);
}

.resource-page__ai-notice p {
  margin: 0;
}

.resource-page__chat {
  max-width: 860px;
}

.resource-page__chat .chat-card {
  min-height: 560px;
}

.resource-page__chat .chat-transcript {
  flex: 1;
}

@media (min-width: 768px) {
  .resource-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ====================================================================== */
/* ODVS Stakeholder Dashboard                                             */
/* ====================================================================== */

.dashboard-sample-caption {
  color: var(--color-neutral-11);
  font-style: italic;
}

.dashboard-section {
  margin-top: var(--spacing-xl2);
}

.dashboard-section h2 {
  font-size: 1.25rem;
  color: var(--color-primary-9);
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--layout-gap-default);
}
@media (min-width: 768px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dashboard-kpi-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-neutral-12);
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  text-align: left;
  padding: var(--spacing-sm2) var(--spacing-sm1);
  border-bottom: 1px solid var(--color-neutral-6);
}

.dashboard-table__detail-row td {
  background: var(--color-neutral-2);
  padding-top: var(--spacing-sm1);
  padding-bottom: var(--spacing-sm1);
}

.dashboard-table__detail-row p {
  margin: 0 0 var(--spacing-xs2) 0;
}

.dashboard-table__detail-row p:last-child {
  margin-bottom: 0;
}

.dashboard-hbar-chart {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm2);
}

.dashboard-hbar-chart__row {
  display: grid;
  grid-template-columns: 10rem 1fr 3.5rem;
  align-items: center;
  gap: var(--spacing-sm1);
}

.dashboard-hbar-chart__label {
  color: var(--color-neutral-12);
  font-size: 0.875rem;
}

.dashboard-hbar-chart__track {
  display: block;
  height: 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-neutral-4);
  overflow: hidden;
}

.dashboard-hbar-chart__fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-primary-9);
}

.dashboard-hbar-chart__value {
  text-align: right;
  font-size: 0.875rem;
  color: var(--color-neutral-11);
}

.dashboard-vbar-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-md1);
  height: 200px;
  padding-top: var(--spacing-md1);
}

.dashboard-vbar-chart__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs2);
  flex: 1;
  height: 100%;
}

.dashboard-vbar-chart__value {
  font-size: 0.75rem;
  color: var(--color-neutral-11);
}

.dashboard-vbar-chart__bar-wrap {
  display: flex;
  align-items: flex-end;
  flex: 1;
  width: 100%;
}

.dashboard-vbar-chart__bar {
  width: 100%;
  min-height: 2px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--color-primary-9);
}

.dashboard-vbar-chart__label {
  font-size: 0.75rem;
  color: var(--color-neutral-11);
}
