/*
 * AMT Travel Health — site-wide Acute Medical Take visual alignment
 * Reference: deep indigo clinical canvas, compact navy navigation, layered
 * blue surfaces, cyan interaction cues and restrained gold emphasis.
 */

:root {
  color-scheme: dark;
  --amt-site-page: #08072f;
  --amt-site-page-deep: #060520;
  --amt-site-surface: #131654;
  --amt-site-surface-soft: #191e68;
  --amt-site-navy: #0d4d78;
  --amt-site-navy-deep: #08072f;
  --amt-site-navy-ink: #f7fbff;
  --amt-site-cyan: #39c5df;
  --amt-site-cyan-soft: #17396f;
  --amt-site-gold: #e6b84c;
  --amt-site-header: #08072f;
  --amt-site-header-panel: #131654;
  --amt-site-header-cyan: #39c5df;
  --amt-site-header-line: rgba(57, 197, 223, 0.62);
  --amt-site-text: #eef3ff;
  --amt-site-muted: #c2cbea;
  --amt-site-line: rgba(91, 107, 201, 0.72);
  --amt-site-line-strong: #6e7bd2;
  --amt-site-shadow: 0 18px 42px rgba(2, 3, 24, 0.38);
  --amt-site-shadow-soft: 0 10px 24px rgba(2, 3, 24, 0.28);
}

html {
  background: var(--amt-site-page) !important;
}

body {
  color: var(--amt-site-text) !important;
  background:
    radial-gradient(circle at 92% 4%, rgba(57, 197, 223, 0.16), transparent 31rem),
    radial-gradient(circle at 7% 42%, rgba(226, 64, 154, 0.08), transparent 38rem),
    linear-gradient(180deg, #08072f 0%, #0b0d46 45%, #10195f 100%) fixed !important;
}

body::before {
  background:
    radial-gradient(ellipse at 82% 14%, rgba(57, 197, 223, 0.10), transparent 34%),
    radial-gradient(ellipse at 13% 72%, rgba(226, 64, 154, 0.055), transparent 38%) !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

body::after {
  display: none !important;
}

main,
.wrap,
.shell,
.content,
.legal-page,
.surveillance-page,
.trends-main {
  color: var(--amt-site-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--amt-site-navy-ink);
}

a {
  color: #6fe1f5;
}

.lead,
.sub,
.muted,
.meta,
.small,
.section-copy,
.list-status,
.freshness,
.owner-intro span,
.panel-head small,
.trend-card small,
.event-list,
.trend-note,
.disclaimer {
  color: var(--amt-site-muted) !important;
}

/* Product chrome */
.amt-header,
.site-header,
.topbar,
.primary-nav,
.amt-app-store-banner,
body > header {
  color: #ffffff !important;
  background: var(--amt-site-header) !important;
  border-color: var(--amt-site-header-line) !important;
  box-shadow: 0 10px 30px rgba(4, 4, 30, 0.28) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.amt-app-store-banner {
  border-bottom: 1px solid var(--amt-site-header-line) !important;
  box-shadow: none !important;
}

.amt-header :where(a, button, span),
.site-header :where(a, button, span),
.topbar :where(a, button, span),
.primary-nav :where(a, button, span),
.amt-header .brand,
.site-header .brand,
.topbar .top-brand {
  color: #f7fbff !important;
}

.amt-header .brand strong,
.site-header .brand strong,
.topbar .top-brand b {
  color: #ffffff !important;
}

.amt-header .brand span,
.site-header .brand span,
.primary-nav a.active,
.primary-nav a[aria-current="page"] {
  color: var(--amt-site-header-cyan) !important;
}

.amt-header nav .active,
.amt-header nav [aria-current="page"],
.site-header nav .active,
.primary-nav a.active {
  background: var(--amt-site-header-panel) !important;
  border-color: var(--amt-site-header-cyan) !important;
  box-shadow: inset 0 -3px 0 var(--amt-site-gold) !important;
}

.mobile-menu-toggle,
.nav-toggle,
.owner-menu-toggle,
.icon-button,
.menu-button {
  color: #ffffff !important;
  background: var(--amt-site-header-panel) !important;
  border-color: var(--amt-site-header-cyan) !important;
}

/* The cool page frame used throughout the reference layout. */
.breadcrumb {
  color: var(--amt-site-muted) !important;
}

.scene {
  background:
    radial-gradient(circle at 90% 5%, rgba(57, 197, 223, 0.14), transparent 30rem),
    linear-gradient(180deg, #08072f, #10195f) !important;
}

.scene::after {
  background: none !important;
}

/* Primary indigo surfaces */
:where(
  .linear-shell,
  .journey-progress,
  .amt-foundations,
  .amt-foundations details,
  .overview-card,
  .guide-card,
  .sources-card,
  .condition-panel,
  .shortcut-strip a,
  .country-panel,
  .country-detail,
  .trend-dashboard,
  .trend-card,
  .surveillance-page-shell,
  .analytics-toolbar,
  .analytics-stat,
  .analytics-chart,
  .analytics-table-wrap,
  .legal-card,
  .login-card,
  .auth-panel,
  .panel,
  .metric,
  .glossary-entry,
  .tools,
  #score-note,
  .download,
  .card,
  .page,
  .dialog,
  .dialog-card,
  .report-dialog,
  .amt-consent,
  .empty-state,
  .warning-state,
  .error-state
) {
  color: var(--amt-site-text) !important;
  background: rgba(19, 22, 84, 0.97) !important;
  border-color: var(--amt-site-line) !important;
  box-shadow: var(--amt-site-shadow) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

:where(
  .linear-shell,
  .amt-foundations,
  .overview-card,
  .guide-card,
  .sources-card,
  .condition-panel,
  .country-panel,
  .country-detail,
  .trend-dashboard,
  .legal-card,
  .login-card,
  .panel,
  .page,
  .dialog,
  .dialog-card
) {
  border-radius: 18px !important;
}

:where(
  .linear-shell,
  .journey-progress,
  .amt-foundations,
  .overview-card,
  .guide-card,
  .sources-card,
  .condition-panel,
  .shortcut-strip a,
  .country-panel,
  .country-detail,
  .trend-dashboard,
  .trend-card,
  .surveillance-page-shell,
  .analytics-toolbar,
  .analytics-stat,
  .analytics-chart,
  .analytics-table-wrap,
  .legal-card,
  .login-card,
  .panel,
  .metric,
  .glossary-entry,
  .tools,
  #score-note,
  .download,
  .card,
  .page,
  .dialog,
  .dialog-card
) :where(h1, h2, h3, h4, h5, h6, summary, label, dt) {
  color: var(--amt-site-navy-ink) !important;
}

:where(
  .linear-shell,
  .amt-foundations,
  .overview-card,
  .guide-card,
  .sources-card,
  .country-panel,
  .country-detail,
  .trend-dashboard,
  .trend-card,
  .legal-card,
  .login-card,
  .panel,
  .metric,
  .glossary-entry,
  .card,
  .page,
  .dialog,
  .dialog-card
) :where(p, li, dd, small) {
  color: var(--amt-site-muted) !important;
}

/* Soft secondary surfaces */
:where(
  .workspace-head,
  .live-result,
  .personal-result,
  .info-panel,
  .rating-card,
  .rating-grid > div,
  .check-row,
  details.assessment,
  .indicator,
  .prep-grid label,
  .prep-summary,
  .protect-row,
  .report-guidance,
  .privacy-before-health,
  .clinical-detail,
  .yellow-fever-split,
  .return-review fieldset,
  .completion-screen dl,
  .pathway-detail,
  .info-card,
  .facility,
  .document,
  .country,
  .issue,
  .audit,
  .system-card,
  .example,
  .score-examples span,
  .lowhigh span,
  .categories a,
  details,
  .note
) {
  color: var(--amt-site-text) !important;
  background: var(--amt-site-surface-soft) !important;
  border-color: var(--amt-site-line) !important;
  box-shadow: none !important;
}

:where(
  .live-result,
  .personal-result,
  .info-panel,
  .rating-card,
  .rating-grid > div,
  .check-row,
  details.assessment,
  .indicator,
  .prep-grid label,
  .prep-summary,
  .pathway-detail,
  .info-card,
  .facility,
  .document,
  .country,
  .issue,
  .audit,
  .system-card,
  details,
  .note
) :where(h2, h3, h4, summary, strong, b, label) {
  color: var(--amt-site-navy-ink) !important;
}

:where(
  .live-result,
  .personal-result,
  .info-panel,
  .rating-card,
  .rating-grid > div,
  .check-row,
  details.assessment,
  .indicator,
  .prep-grid label,
  .prep-summary,
  .pathway-detail,
  .info-card,
  .facility,
  .document,
  .country,
  .issue,
  .audit,
  .system-card,
  details,
  .note
) :where(p, li, span, small) {
  color: var(--amt-site-muted) !important;
}

/* Forms */
:where(input, select, textarea, .search) {
  color: #102f4a !important;
  background: #ffffff !important;
  border-color: var(--amt-site-line-strong) !important;
  box-shadow: inset 0 1px 2px rgba(6, 47, 85, 0.06) !important;
}

:where(input, textarea)::placeholder {
  color: #6c8192 !important;
  opacity: 1;
}

option {
  color: #102f4a !important;
  background: #ffffff !important;
}

:where(input, select, textarea, button, a):focus-visible {
  outline: 3px solid rgba(34, 175, 212, 0.52) !important;
  outline-offset: 3px !important;
}

/* Buttons and active controls */
:where(.secondary, .secondary-action, .check-row button, .analytics-actions button, .analytics-toolbar button) {
  color: #102f4a !important;
  background: #ffffff !important;
  border-color: var(--amt-site-cyan) !important;
}

:where(.choice-button, .output-actions button, .final-actions button, .button:not(.primary), .pathway-button) {
  color: #ffffff !important;
  background: var(--amt-site-navy) !important;
  border-color: var(--amt-site-navy) !important;
}

:where(.primary, .primary-action, .button.primary) {
  color: #08223a !important;
  background: linear-gradient(145deg, #f4d475, var(--amt-site-gold)) !important;
  border-color: #d5a538 !important;
  box-shadow: 0 7px 18px rgba(176, 126, 22, 0.16) !important;
}

.button:not(.primary) {
  color: #ffffff !important;
}

.shortcut-strip a:hover,
.categories a:hover,
.pathway-button:hover,
.country-option:hover,
.country-option[aria-selected="true"] {
  background: var(--amt-site-cyan-soft) !important;
  border-color: #79c9df !important;
}

.shortcut-strip svg,
.condition-list a.selected::before,
.section-heading svg {
  color: var(--amt-site-cyan) !important;
}

/* Journey workspace */
.journey-intro,
.amt-mission,
.amt-foundations-head,
.section-heading,
.owner-intro {
  color: var(--amt-site-text) !important;
}

.journey-intro h1,
.amt-foundations h2,
.workspace-head h2,
.owner-intro h1 {
  color: var(--amt-site-navy-ink) !important;
}

.amt-promo-note {
  color: var(--amt-site-muted) !important;
  background: rgba(19, 22, 84, 0.86) !important;
  border-color: var(--amt-site-line) !important;
}

.amt-promo-note p,
.journey-intro > div > p:last-child,
.journey-progress small,
.amt-foundations-head > div > p:last-child,
.amt-foundations .foundation-body :where(p, li, dd),
.amt-consent p,
.dialog-card p,
.report-dialog p {
  color: var(--amt-site-muted) !important;
}

.amt-mission {
  color: #f7fbff !important;
  background: linear-gradient(135deg, #173e6a, #092f53) !important;
  border-color: var(--amt-site-gold) !important;
  box-shadow: 0 12px 30px rgba(6, 47, 85, 0.18) !important;
}

.amt-mission :where(em, p, strong, span) {
  color: #f7fbff !important;
}

.journey-progress,
.progress-track {
  background: rgba(19, 22, 84, 0.96) !important;
  border-color: var(--amt-site-line) !important;
}

.progress-track span {
  background: linear-gradient(90deg, var(--amt-site-cyan), #69d7ba) !important;
  box-shadow: none !important;
}

.linear-nav {
  color: var(--amt-site-text) !important;
  background: rgba(8, 7, 47, 0.96) !important;
  border-color: var(--amt-site-line) !important;
  box-shadow: 0 -10px 26px rgba(2, 3, 24, 0.34) !important;
}

.amt-outputs {
  color: var(--amt-site-text) !important;
  background: var(--amt-site-surface) !important;
  border-color: var(--amt-site-line) !important;
  box-shadow: var(--amt-site-shadow) !important;
}

.risk-key,
.guidance-note,
.privacy-before-health,
.card-recommendation,
.report-summary,
.reminder,
.notice {
  color: #17364d !important;
  background: #fff8e7 !important;
  border-color: #ddb65a !important;
  box-shadow: none !important;
}

:where(
  .risk-key,
  .guidance-note,
  .privacy-before-health,
  .card-recommendation,
  .report-summary,
  .reminder,
  .notice
) :where(h1, h2, h3, h4, p, li, span, small, strong, b, label) {
  color: #17364d !important;
}

/* Dark hero/output surfaces remain the visual anchors seen in the reference. */
.page-shell .content > .hero,
.trends-hero,
.welcome,
.risk-cta,
.travel-card,
.wallet-card {
  color: #ffffff !important;
  background-color: var(--amt-site-navy) !important;
  border-color: rgba(111, 215, 240, 0.45) !important;
  box-shadow: 0 18px 40px rgba(6, 47, 85, 0.20) !important;
}

:where(.page-shell .content > .hero, .trends-hero, .welcome, .risk-cta, .travel-card, .wallet-card)
  :where(h1, h2, h3, h4, p, li, span, small, strong, b, .eyebrow, .kicker) {
  color: #f7fbff !important;
}

.page-shell .content > .hero::before {
  background: linear-gradient(90deg, rgba(3, 28, 53, 0.96) 0%, rgba(7, 58, 99, 0.82) 43%, rgba(7, 58, 99, 0.20) 78%, rgba(3, 28, 53, 0.12) 100%) !important;
}

/* Chronic Conditions keeps its active pale selection while all remaining
   navigation and information panels sit cleanly on the indigo canvas. */
.condition-list a:not(.selected) {
  color: var(--amt-site-muted) !important;
  border-color: transparent !important;
}

.condition-list .section-label {
  color: #f4d475 !important;
}

.key-points {
  color: var(--amt-site-text) !important;
  background: var(--amt-site-surface-soft) !important;
  border-color: var(--amt-site-line) !important;
}

.key-points :where(strong, h2, h3) {
  color: var(--amt-site-navy-ink) !important;
}

.key-points :where(p, ul, li, span, small),
.guide-card .mini-note {
  color: var(--amt-site-muted) !important;
}

.condition-toggle {
  color: #ffffff !important;
  background: #0b4e7d !important;
}

.risk-cta .button,
.travel-card .secondary,
.wallet-card .secondary {
  color: var(--amt-site-navy) !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
}

/* Medical resources and medevac */
.toolbar {
  background: rgba(8, 7, 47, 0.94) !important;
  border-color: var(--amt-site-line) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.summary span,
.regions span,
.index-summary span,
.caps span,
.services span,
.pathway-meta span,
.tags span,
.provider-group-title span {
  color: var(--amt-site-muted) !important;
  background: var(--amt-site-surface-soft) !important;
  border-color: var(--amt-site-line) !important;
}

.card .contact,
.contact,
.emergency div,
.province-grid button,
.alphabet button,
.provider-filter-bar button {
  color: var(--amt-site-text) !important;
  background: var(--amt-site-surface-soft) !important;
  border-color: var(--amt-site-line) !important;
}

.country-option {
  color: var(--amt-site-text) !important;
  border-color: #dce7ee !important;
}

.pathway-button :where(strong, span) {
  color: #f7fbff !important;
}

.pathway-button small {
  color: #f4d475 !important;
}

.grid .actions a {
  color: #0b6897 !important;
  background: #ffffff !important;
  border-color: var(--amt-site-line-strong) !important;
}

body[data-country] .grid > article {
  color: var(--amt-site-text) !important;
  background: var(--amt-site-surface) !important;
  border-color: var(--amt-site-line) !important;
  box-shadow: var(--amt-site-shadow-soft) !important;
}

body[data-country] .grid > article :where(h2, h3, strong, b) {
  color: var(--amt-site-navy-ink) !important;
}

body[data-country] .grid > article :where(p, span, small),
body[data-country] .hero p,
.shell > .hero p,
.intro > p:not(.kicker) {
  color: var(--amt-site-muted) !important;
}

body[data-country] .hero a,
.shell > .hero a {
  color: #6fe1f5 !important;
}

/* Surveillance and private trend views retain clear contrast within the
   deep-blue Acute Medical Take page frame. */
.surveillance-page-head > p:not(.kicker),
#trend-identity,
.surveillance-legend {
  color: var(--amt-site-muted) !important;
}

.surveillance-index :where(h2, p:not(.kicker)) {
  color: #f7fbff !important;
}

.surveillance-index .comparison-note,
.surveillance-index .comparison-note :where(b, span, small) {
  color: #f7fbff !important;
}

#global-surveillance-results > .comparison-note {
  color: #f7fbff !important;
  background: #0b4e7d !important;
}

#global-surveillance-results > .comparison-note * {
  color: #f7fbff !important;
}

.travel-trends > div,
.surveillance-events,
.profile-sources {
  color: var(--amt-site-text) !important;
  background: var(--amt-site-surface-soft) !important;
  border-color: var(--amt-site-line) !important;
}

.travel-trends > div > span,
.surveillance-events h3,
.surveillance-events article b {
  color: var(--amt-site-navy-ink) !important;
}

.travel-trends > div > b {
  color: #8a5700 !important;
}

.travel-trends > div > small,
.surveillance-events article :where(span, small),
.profile-sources > span,
#global-surveillance-results .profile-sources > small {
  color: var(--amt-site-muted) !important;
}

.surveillance-events article a,
.profile-sources a {
  color: #6fe1f5 !important;
}

/* Traveller Connect keeps its navy rail and welcome panel, with readable
   copy and light community cards inside the shared clinical canvas. */
body:has(.frame > .rail) .welcome :where(.tagline, p, .joinNote) {
  color: #dceaf2 !important;
}

body:has(.frame > .rail) .card a,
body:has(.frame > .rail) .textbutton {
  color: #6fe1f5 !important;
}

body:has(.frame > .rail) .feeditem {
  color: var(--amt-site-text) !important;
  background: var(--amt-site-surface) !important;
  border-color: var(--amt-site-line) !important;
  box-shadow: var(--amt-site-shadow-soft) !important;
}

body:has(.frame > .rail) .feeditem h3 {
  color: var(--amt-site-navy-ink) !important;
}

body:has(.frame > .rail) .feeditem span:not(.badge) {
  color: var(--amt-site-muted) !important;
}

body:has(.frame > .rail) .feeditem .badge {
  color: #8a5700 !important;
  background: #fff8e7 !important;
  border-color: #ddb65a !important;
}

body:has(.frame > .rail) .pill:not(.active) {
  color: var(--amt-site-navy-ink) !important;
  background: var(--amt-site-surface) !important;
  border-color: var(--amt-site-line-strong) !important;
}

.detail-placeholder,
.provider-directory-head p:not(.kicker),
.pathway-button span,
.pathway-detail > p,
.info-card p,
.facility span,
.governance-note {
  color: var(--amt-site-muted) !important;
}

/* FAQ, glossary, legal and account surfaces */
details > summary::after,
.kicker,
.ey,
.eyebrow,
.tagline,
.status,
.panel-head a,
.legal-card h2,
.card-brand strong {
  color: #f4d475 !important;
}

body > header:has(nav) a,
body:has(main .categories) > header a {
  color: #f7fbff !important;
}

.login-shell > .brand span {
  color: var(--amt-site-navy-ink) !important;
}

.login-shell > .brand small,
.login-card > p {
  color: var(--amt-site-muted) !important;
}

.search-wrap > span,
.breadcrumb a,
.back,
.return,
.legal-back,
.related a,
footer a {
  color: #6fe1f5 !important;
}

.tabs,
.login-separator::before,
.login-separator::after {
  border-color: var(--amt-site-line) !important;
  background: var(--amt-site-surface-soft) !important;
}

.data-table th,
.data-table td,
.analytics-table th,
.analytics-table td,
.panel-head {
  border-color: var(--amt-site-line) !important;
}

.analytics-table th {
  color: var(--amt-site-navy-ink) !important;
  background: var(--amt-site-surface-soft) !important;
}

.analytics-table td,
.data-table td,
.bar-label {
  color: var(--amt-site-text) !important;
}

.bar-track {
  background: rgba(255, 255, 255, 0.14) !important;
}

footer,
.site-footer {
  color: var(--amt-site-muted) !important;
  background: rgba(8, 7, 47, 0.90) !important;
  border-color: var(--amt-site-line) !important;
}

/* Semantic text remains bright on dark surfaces. */
.success {
  color: #6de2a8 !important;
}

.warning,
.warn {
  color: #ffd166 !important;
}

.error,
.danger {
  color: #ff9a9a !important;
}

/* Status tablets retain their pale semantic fills, so they need dark ink.
   These combinations exceed WCAG AA contrast for normal text. */
.status-box.good,
.emergency-plan .stable {
  color: #0b5f3d !important;
}

.status-box.caution,
.emergency-plan .review {
  color: #704400 !important;
}

.status-box.emergency,
.emergency-plan .urgent {
  color: #842129 !important;
}

.emergency-plan .stable {
  border: 1px solid #54a987 !important;
}

.emergency-plan .review {
  border: 1px solid #ca8b18 !important;
}

.emergency-plan .urgent {
  border: 1px solid #c84b57 !important;
}

:where(
  .status-box.good,
  .status-box.caution,
  .status-box.emergency,
  .emergency-plan .stable,
  .emergency-plan .review,
  .emergency-plan .urgent
) :where(strong, span, p, small) {
  color: inherit !important;
}

@media (max-width: 900px) {
  body {
    background:
      radial-gradient(circle at 100% 0%, rgba(57, 197, 223, 0.15), transparent 22rem),
      linear-gradient(180deg, #08072f 0%, #0b0d46 42%, #10195f 100%) fixed !important;
  }

  .amt-header,
  .site-header,
  .topbar {
    box-shadow: 0 7px 20px rgba(6, 47, 85, 0.18) !important;
  }

  :where(.linear-shell, .guide-card, .overview-card, .sources-card, .country-panel, .country-detail, .card, .panel) {
    box-shadow: 0 12px 28px rgba(2, 3, 24, 0.32) !important;
  }
}

/* Keep the Journey header concise at every viewport width. The complete
   destination and account navigation remains available from the Menu button. */
.amt-header:has(#amt-primary-nav .help-link) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 8px 10px !important;
}

.amt-header:has(#amt-primary-nav .help-link) .mobile-menu-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid var(--amt-site-header-cyan) !important;
  border-radius: 13px;
  background: var(--amt-site-header-panel) !important;
  color: #f7fbff !important;
  font-weight: 900;
  cursor: pointer;
}

.amt-header:has(#amt-primary-nav .help-link) #amt-primary-nav {
  display: none !important;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, 100%);
  max-height: 70vh;
  margin: 0 auto;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--amt-site-header-line) !important;
  border-radius: 15px;
  background: var(--amt-site-header) !important;
  box-shadow: 0 20px 46px rgba(4, 4, 30, 0.34);
}

.amt-header:has(#amt-primary-nav .help-link) #amt-primary-nav[data-open="true"] {
  display: grid !important;
}

.amt-header:has(#amt-primary-nav .help-link) #amt-primary-nav :where(a, button) {
  width: 100%;
  justify-content: flex-start;
  border-color: rgba(57, 197, 223, 0.24) !important;
  background: var(--amt-site-header-panel) !important;
  text-align: left;
}

/* The chronic-condition library uses the same compact header pattern while
   retaining its condition search field on larger screens. */
.site-header:has(#primaryNav) .nav-toggle {
  display: inline-flex !important;
  width: auto !important;
  min-width: 48px;
  height: 48px;
  gap: 8px;
  padding: 0 14px;
  border-radius: 13px;
  font-weight: 850;
}

.site-header:has(#primaryNav) #primaryNav {
  display: none !important;
  border-top: 1px solid var(--amt-site-header-line) !important;
  background: var(--amt-site-header) !important;
}

.site-header:has(#primaryNav) #primaryNav.open {
  display: block !important;
}

.site-header:has(#primaryNav) .primary-nav-inner {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px !important;
  padding: 10px 0 12px;
  overflow: visible !important;
}

.site-header:has(#primaryNav) .primary-nav-inner a {
  justify-content: flex-start;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid rgba(57, 197, 223, 0.24);
  border-radius: 11px;
  background: var(--amt-site-header-panel);
}

@media (max-width: 900px) {
  .amt-header:has(#amt-primary-nav .help-link) #amt-primary-nav,
  .site-header:has(#primaryNav) .primary-nav-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .amt-header:has(#amt-primary-nav .help-link) {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
  }

  .amt-header:has(#amt-primary-nav .help-link) #amt-primary-nav,
  .site-header:has(#primaryNav) .primary-nav-inner {
    grid-template-columns: 1fr;
  }

  .amt-header:has(#amt-primary-nav .help-link) .brand span {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  html,
  body {
    color: #000000 !important;
    background: #ffffff !important;
  }

  body::before,
  body::after {
    display: none !important;
  }
}
