/*
 * TrucksOut Design System v0.9 foundation.
 *
 * This file is the public frontend's canonical implementation layer. Legacy
 * styles remain in place until each surface is migrated deliberately.
 */

:root {
  /* Typography */
  --to-font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --to-font-weight-light: 300;
  --to-font-weight-regular: 400;
  --to-font-weight-bold: 700;
  --to-font-weight-black: 900;
  --to-font-display-size: 40px;
  --to-font-display-line-height: 1.05;
  --to-font-display-letter-spacing: -.045em;
  --to-font-h1-size: 32px;
  --to-font-h1-line-height: 1.12;
  --to-font-h1-letter-spacing: -.03em;
  --to-font-h2-size: 24px;
  --to-font-h2-line-height: 1.2;
  --to-font-h3-size: 18px;
  --to-font-h3-line-height: 1.3;
  --to-font-body-large-size: 16px;
  --to-font-body-large-line-height: 1.6;
  --to-font-body-size: 14px;
  --to-font-body-line-height: 1.55;
  --to-font-caption-size: 12px;
  --to-font-caption-line-height: 1.45;

  /* Colors */
  --to-cream-100: #F6FAF0;
  --to-cream-200: #EDF5E1;
  --to-cream-300: #DDE7D0;
  --to-green-400: #55B5A2;
  --to-green-500: #379683;
  --to-green-600: #2B7C6B;
  --to-blue-050: #EEF5FB;
  --to-blue-600: #05386B;
  --to-blue-700: #042E59;
  --to-color-primary-action: var(--to-green-600);
  --to-color-primary-action-hover: #16855B;
  --to-color-brand-navigation: var(--to-blue-600);
  --to-color-app-background: #F6F8FB;
  --to-color-surface: #FFFFFF;
  --to-color-box-soft: var(--to-blue-050);
  --to-color-title: var(--to-blue-600);
  --to-color-text-strong: var(--to-blue-600);
  --to-color-text-primary: #333333;
  --to-color-text-secondary: #666666;
  --to-color-text-muted: #CCCCCC;
  --to-color-text-on-dark: #FFFFFF;
  --to-color-success: #167B5B;
  --to-color-warning: #B87400;
  --to-color-danger: #CC3D3D;
  --to-color-info: #1F73B7;
  --to-color-success-background: #EAF8F2;
  --to-color-warning-background: #FFF4E2;
  --to-color-danger-background: #FDEEEE;
  --to-color-info-background: var(--to-blue-050);
  --to-color-border: #DCE3EC;
  --to-color-border-soft: #E8EDF3;
  --to-color-surface-soft-border: #D8E7F5;
  --to-color-border-strong: #C6D8E8;
  --to-color-surface-brand: #EDF5E1;
  --to-color-surface-brand-border: #DDE7D0;
  --to-color-surface-selected: #F7FBFE;
  --to-color-surface-warning-border: #F0D3A2;
  --to-color-surface-danger-border: #F0C9C9;
  --to-button-edit-border: #AFC9DE;
  --to-button-outline-green-border: #ABD5CC;
  --to-button-outline-green-hover: #F3FAF8;
  --to-button-warning-text: #9C6100;
  --to-button-warning-border: #E5C98F;
  --to-button-danger-border: #F2C7C7;

  /* Geometry */
  --to-space-1: 4px;
  --to-space-2: 8px;
  --to-space-3: 12px;
  --to-space-4: 16px;
  --to-space-6: 24px;
  --to-space-8: 32px;
  --to-space-12: 48px;
  --to-space-16: 64px;
  --to-radius-sm: 8px;
  --to-radius-md: 10px;
  --to-radius-lg: 14px;
  --to-radius-pill: 999px;
  --to-shadow-sm: 0 6px 18px rgba(5, 56, 107, .06);
  --to-shadow-md: 0 18px 40px rgba(5, 56, 107, .08);

  /* Layout and layers. CSS media queries use literal values by design. */
  --to-layout-max-width: 1280px;
  --to-layout-gutter: 48px;
  --to-section-space: 64px;
  --to-section-space-sub: 32px;
  --to-layer-base: 0;
  --to-layer-popover: 100;
  --to-layer-drawer: 300;
  --to-layer-modal: 400;
  --to-layer-toast: 500;
}

@media (max-width: 1199px) {
  :root {
    --to-layout-gutter: 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --to-layout-gutter: 16px;
    --to-section-space: 48px;
    --to-section-space-sub: 24px;
  }

}

html {
  font-family: var(--to-font-family);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(5, 56, 107, .15);
  outline-offset: 2px;
}

/* Opt-in primitives for progressive migration; no legacy template is reset here. */
.to-page-container {
  width: calc(100% - (var(--to-layout-gutter) * 2));
  max-width: var(--to-layout-max-width);
  margin-inline: auto;
}

.to-section-canonical {
  padding-block: var(--to-section-space);
}

.to-section-canonical + .to-section-canonical {
  padding-top: var(--to-section-space-sub);
}

/* Shared marketing layout compatibility during the progressive migration. */
.to-hero > .container,
.to-page-hero > .container,
.to-section > .container,
.to-final-cta > .container {
  width: calc(100% - ((var(--to-layout-gutter) * 2) - 30px));
  max-width: calc(var(--to-layout-max-width) + 30px);
}

.to-page-hero > .container {
  max-width: 1010px;
}

.to-hero,
.to-page-hero,
.to-final-cta {
  padding-block: var(--to-section-space);
}

.to-section {
  padding-block: var(--to-section-space);
}

.to-section-compact {
  padding-top: var(--to-section-space-sub);
}

.to-hero h1,
.to-page-hero h1,
.to-addon-detail-hero-copy h1 {
  margin: 0 0 var(--to-space-6);
  color: var(--to-color-title);
  font-size: var(--to-font-display-size);
  font-weight: var(--to-font-weight-black);
  line-height: var(--to-font-display-line-height);
  letter-spacing: var(--to-font-display-letter-spacing);
}

.to-hero p,
.to-page-hero p,
.to-addon-detail-intro {
  margin-top: 0;
  margin-bottom: var(--to-space-6);
  color: var(--to-color-text-secondary);
  font-size: var(--to-font-body-large-size);
  line-height: var(--to-font-body-large-line-height);
}

.to-founder-eyebrow,
.to-section-heading__eyebrow {
  margin: 0 0 var(--to-space-2);
  color: var(--to-color-success);
  font-size: var(--to-font-caption-size);
  font-weight: var(--to-font-weight-black);
  line-height: var(--to-font-caption-line-height);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.to-section-heading {
  max-width: 820px;
  margin: 0 0 var(--to-section-space-sub);
}

.to-section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.to-section-heading__title {
  margin: 0;
}

.to-section-heading__description {
  max-width: 720px;
  margin: var(--to-space-2) 0 0;
  color: var(--to-color-text-secondary);
}

.to-section-heading--center .to-section-heading__description {
  margin-inline: auto;
}

.to-dark .to-section-heading__title,
.to-dark .to-section-heading__description {
  color: var(--to-color-text-on-dark);
}

.to-section-header {
  margin-bottom: var(--to-section-space-sub);
}

.to-section-header h2,
.to-founder-import h2,
.to-addon-detail-hero-copy h2,
.to-addon-detail-section h2,
.to-addon-detail-sidebar h2,
.to-summary-box h2,
.to-final-cta h2,
.to-stay-section h2,
.to-investor-teaser h2 {
  color: var(--to-color-title);
  font-size: var(--to-font-h2-size);
  font-weight: var(--to-font-weight-black);
  line-height: var(--to-font-h2-line-height);
  letter-spacing: 0;
}

.to-section-header p {
  margin: var(--to-space-2) 0 0;
  color: var(--to-color-text-secondary);
  font-size: var(--to-font-body-large-size);
  line-height: var(--to-font-body-large-line-height);
}

.to-step-card h3,
.to-feature-card h3,
.to-persona-card h3,
.to-comparison-card h3,
.to-content-card h3,
.to-addon-card-head h3 {
  color: var(--to-color-title);
  font-size: var(--to-font-h3-size);
  font-weight: var(--to-font-weight-black);
  line-height: var(--to-font-h3-line-height);
}

.to-content-card h2,
.to-addon-card-head h2,
.to-addon-empty h2,
.to-pricing-main h3 {
  color: var(--to-color-title);
  font-size: var(--to-font-h2-size);
  font-weight: var(--to-font-weight-black);
  line-height: var(--to-font-h2-line-height);
}

.to-pricing-main h3,
.to-final-cta h2 {
  color: var(--to-color-text-on-dark);
}

.to-feature-card p,
.to-step-card p,
.to-persona-card p,
.to-comparison-card p,
.to-content-card p,
.to-addon-card-head p,
.to-addon-empty p,
.to-pricing-note,
.to-stay-section p,
.to-investor-teaser p {
  font-size: var(--to-font-body-size);
  line-height: var(--to-font-body-line-height);
}

.to-feature-card p,
.to-step-card p,
.to-comparison-card p,
.to-content-card p,
.to-addon-card-head p,
.to-addon-empty p {
  color: var(--to-color-text-secondary);
}

.to-final-cta p {
  max-width: 760px;
  margin: var(--to-space-2) auto var(--to-space-6);
  color: rgba(255, 255, 255, .8);
  font-size: var(--to-font-body-large-size);
  line-height: var(--to-font-body-large-line-height);
}

@media (max-width: 767px) {
  .to-hero h1,
  .to-page-hero h1,
  .to-addon-detail-hero-copy h1 {
    font-size: 34px;
  }
}

.to-type-display,
.to-type-h1,
.to-type-h2,
.to-type-h3 {
  margin: 0;
  color: var(--to-color-title);
  font-weight: var(--to-font-weight-black);
}

.to-type-display {
  font-size: var(--to-font-display-size);
  line-height: var(--to-font-display-line-height);
  letter-spacing: var(--to-font-display-letter-spacing);
}

.to-type-h1 {
  font-size: var(--to-font-h1-size);
  line-height: var(--to-font-h1-line-height);
  letter-spacing: var(--to-font-h1-letter-spacing);
}

.to-type-h2 {
  font-size: var(--to-font-h2-size);
  line-height: var(--to-font-h2-line-height);
}

.to-type-h3 {
  font-size: var(--to-font-h3-size);
  line-height: var(--to-font-h3-line-height);
}

.to-type-body-large {
  font-size: var(--to-font-body-large-size);
  line-height: var(--to-font-body-large-line-height);
}

.to-type-body {
  font-size: var(--to-font-body-size);
  line-height: var(--to-font-body-line-height);
}

.to-type-caption {
  font-size: var(--to-font-caption-size);
  line-height: var(--to-font-caption-line-height);
}

/*
 * Canonical Button/CTA primitive.
 * `.to-btn` and `.to-nav-cta` stay as compatibility aliases while legacy
 * layouts progressively adopt the React primitive above them.
 */
.to-button,
.to-btn,
.to-nav-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: var(--to-space-2);
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--to-radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.to-button {
  position: relative;
  cursor: pointer;
}

.to-button--standard {
  min-height: 40px;
  padding: 9px 15px;
}

.to-button--small {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 12px;
}

.to-button--large {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
}

.to-button--primary,
.to-btn-primary,
.to-nav-cta {
  border-color: var(--to-color-primary-action);
  background: var(--to-color-primary-action);
  color: var(--to-color-text-on-dark) !important;
  box-shadow: none;
}

.to-button--primary:hover,
.to-btn-primary:hover,
.to-nav-cta:hover {
  border-color: var(--to-color-primary-action-hover);
  background: var(--to-color-primary-action-hover);
  color: var(--to-color-text-on-dark) !important;
  transform: none;
}

.to-button--primary:active,
.to-btn-primary:active,
.to-nav-cta:active {
  border-color: var(--to-green-600);
  background: var(--to-green-600);
}

/* Keep legacy primary CTA aliases on the canonical button geometry. */
.to-button.to-button--primary,
.to-btn.to-btn-primary,
.to-nav-cta.to-nav-cta {
  min-height: 40px !important;
  padding: 9px 15px !important;
  border-radius: var(--to-radius-sm) !important;
  box-shadow: none !important;
  transform: none !important;
}

.to-button--secondary,
.to-btn-secondary {
  border-color: #C6D8E8;
  background: var(--to-color-surface);
  color: var(--to-color-brand-navigation) !important;
  box-shadow: none;
}

.to-button--secondary:hover,
.to-btn-secondary:hover {
  border-color: #C6D8E8;
  background: var(--to-blue-050);
  color: var(--to-color-brand-navigation) !important;
  transform: none;
}

.to-button--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--to-color-brand-navigation) !important;
}

.to-button--ghost:hover {
  background: var(--to-blue-050);
  color: var(--to-color-brand-navigation) !important;
}

.to-button--link {
  min-height: auto;
  padding: 0;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  color: var(--to-color-brand-navigation) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.to-button--link:hover {
  background: transparent;
  color: var(--to-green-600) !important;
}

.to-button--outline-green {
  border-color: var(--to-button-outline-green-border);
  background: var(--to-color-surface);
  color: var(--to-color-primary-action) !important;
}

.to-button--outline-green:hover {
  background: var(--to-button-outline-green-hover);
  color: var(--to-color-primary-action) !important;
}

.to-button--dark {
  border-color: var(--to-blue-600);
  background: var(--to-blue-600);
  color: var(--to-color-text-on-dark) !important;
}

.to-button--dark:hover {
  border-color: var(--to-blue-700);
  background: var(--to-blue-700);
  color: var(--to-color-text-on-dark) !important;
}

.to-button--danger {
  border-color: var(--to-button-danger-border);
  background: var(--to-color-surface);
  color: var(--to-color-danger) !important;
}

.to-button--warning {
  border-color: var(--to-button-warning-border);
  background: var(--to-color-surface);
  color: var(--to-button-warning-text) !important;
}

.to-button--warning:hover {
  background: var(--to-color-warning-background);
  color: var(--to-button-warning-text) !important;
}

.to-button--edit {
  border-color: var(--to-button-edit-border);
  background: var(--to-color-surface);
  color: var(--to-color-brand-navigation) !important;
}

.to-button--edit:hover {
  background: var(--to-blue-050);
  color: var(--to-color-brand-navigation) !important;
}

.to-button--add {
  border-color: var(--to-green-500);
  background: var(--to-green-500);
  color: var(--to-color-text-on-dark) !important;
}

.to-button--add:hover {
  border-color: var(--to-green-600);
  background: var(--to-green-600);
  color: var(--to-color-text-on-dark) !important;
}

.to-button--icon {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  height: 40px;
  padding: 0;
}

.to-button:disabled,
.to-button[aria-disabled="true"],
.to-btn:disabled,
.to-btn[aria-disabled="true"] {
  border-color: #E2E7ED;
  background: #F2F4F7;
  color: #A8B1BC !important;
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
}

.to-button-label.is-loading {
  visibility: hidden;
}

.to-button-spinner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: to-button-spin .7s linear infinite;
}

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

/* Canonical surfaces shared by public cards, panels and information boxes. */
.to-surface,
.to-step-card,
.to-feature-card,
.to-persona-card,
.to-comparison-card,
.to-content-card,
.to-addon-card,
.to-addon-empty,
.to-addon-detail-section,
.to-addon-detail-sidebar,
.to-summary-box {
  border: 1px solid var(--to-color-border);
  border-radius: var(--to-radius-lg);
  background: var(--to-color-surface);
  box-shadow: var(--to-shadow-sm);
}

.to-surface--soft {
  border-color: var(--to-color-surface-soft-border);
  background: var(--to-color-box-soft);
  box-shadow: none;
}

.to-surface--brand {
  border-color: var(--to-color-surface-brand-border);
  background: var(--to-color-surface-brand);
  box-shadow: none;
}

/* Canonical status badges retained for active public addon and observatory markup. */
.to-addon-status.to-addon-status-available,
.to-observatory-meta > span {
  min-height: auto;
  padding: 4px 8px;
  border: 1px solid;
  border-radius: var(--to-radius-pill);
  font-size: 11px;
  font-weight: 900;
}

.to-addon-status.to-addon-status-available {
  border-color: #C7E7D8;
  background: var(--to-color-success-background);
  color: var(--to-color-success);
}

.to-observatory-meta > span {
  border-color: #D8E7F5;
  background: #EEF5FB;
  color: #05386B;
}

.to-surface--brand .to-founder-eyebrow {
  color: #05386B;
}

.to-surface--outlined {
  border: 2px solid var(--to-color-border-strong);
  background: var(--to-color-surface);
  box-shadow: none;
}

.to-surface--selected {
  border: 2px solid var(--to-color-brand-navigation);
  background: var(--to-color-surface-selected);
  box-shadow: none;
}

.to-surface--elevated {
  background: var(--to-color-surface);
  box-shadow: var(--to-shadow-md);
}

.to-surface--warning {
  border-color: var(--to-color-surface-warning-border);
  background: var(--to-color-warning-background);
  box-shadow: none;
}

.to-surface--danger {
  border-color: var(--to-color-surface-danger-border);
  background: var(--to-color-danger-background);
  box-shadow: none;
}

.to-surface--padding-dense { padding: var(--to-space-3); }
.to-surface--padding-compact { padding: var(--to-space-4); }
.to-surface--padding-standard,
.to-step-card,
.to-feature-card,
.to-persona-card,
.to-comparison-card,
.to-content-card,
.to-addon-empty,
.to-addon-detail-section,
.to-addon-detail-sidebar,
.to-summary-box { padding: var(--to-space-6); }

.to-surface.is-interactive {
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.to-surface.is-interactive:hover {
  border-color: var(--to-color-brand-navigation);
  box-shadow: var(--to-shadow-md);
}

.to-surface.is-interactive:focus-visible {
  outline: 3px solid rgba(5, 56, 107, .15);
  outline-offset: 2px;
}

/* Canonical public form controls, retaining the active route-specific markup. */
.to-lead-form label,
.to-addon-filters label,
.to-observatory-filters label,
.to-observatory-filters label > span {
  color: var(--to-color-brand-navigation);
  font-size: 12px;
  font-weight: 800;
}

.to-lead-form input,
.to-lead-form select,
.to-addon-filters input,
.to-addon-filters select,
.to-observatory-filters input:not([type="hidden"]),
.to-observatory-filters select {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #C6D8E8;
  border-radius: 14px;
  background: #FFFFFF;
}

.to-lead-form select,
.to-addon-filters select,
.to-observatory-filters select {
  padding-right: 48px;
  background-position: right 16px center;
}

.to-lead-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 144px;
  padding: 14px 18px;
  border: 1px solid #C6D8E8;
  border-radius: 14px;
  background: #FFFFFF;
  resize: vertical;
}

.to-lead-form input:hover,
.to-lead-form select:hover,
.to-lead-form textarea:hover,
.to-addon-filters input:hover,
.to-addon-filters select:hover,
.to-observatory-filters input:not([type="hidden"]):hover,
.to-observatory-filters select:hover {
  border-color: #9DB7D0;
}

.to-lead-form input:focus,
.to-lead-form select:focus,
.to-lead-form textarea:focus,
.to-addon-filters input:focus,
.to-addon-filters select:focus,
.to-observatory-filters input:not([type="hidden"]):focus,
.to-observatory-filters select:focus {
  border-color: var(--to-color-brand-navigation);
  box-shadow: 0 0 0 3px rgba(5, 56, 107, .15);
  outline: 0;
}

.to-lead-form input[aria-invalid="true"],
.to-lead-form select[aria-invalid="true"],
.to-lead-form textarea[aria-invalid="true"],
.to-lead-form input.is-invalid,
.to-lead-form select.is-invalid,
.to-lead-form textarea.is-invalid,
.to-addon-filters input[aria-invalid="true"],
.to-addon-filters select[aria-invalid="true"],
.to-addon-filters input.is-invalid,
.to-addon-filters select.is-invalid,
.to-observatory-filters input[aria-invalid="true"],
.to-observatory-filters select[aria-invalid="true"],
.to-observatory-filters input.is-invalid,
.to-observatory-filters select.is-invalid {
  border-color: #CC3D3D;
  background: #FFFBFB;
}

/* Canonical comparison tables for both the current grid and legacy table markup. */
.to-compare-table,
.comparison-table {
  overflow: auto;
  border: 1px solid #DCE3EC;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: none;
}

.to-compare-head,
.to-compare-row,
.comparison-table {
  min-width: 760px;
}

.to-compare-head,
.comparison-table thead {
  background: #F9FBFD;
  color: var(--to-color-brand-navigation);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.to-compare-head span,
.comparison-table th {
  padding: 11px 14px;
  border-color: #E8EDF3;
}

.to-compare-row,
.comparison-table tbody tr {
  border-color: #E8EDF3;
}

.to-compare-row > *,
.comparison-table td {
  padding: 13px 14px;
  border-color: #E8EDF3;
}

.to-compare-row:hover,
.comparison-table tbody tr:hover {
  background: #FCFDFE;
}

/* Responsive navigation is the first consumer of the foundation. */
.to-mobile-navigation {
  display: none;
}

@media (max-width: 1199px) {
  .to-nav {
    min-height: 72px;
    align-items: center;
    gap: var(--to-space-3);
  }

  .to-nav-links,
  .to-nav-actions {
    display: none;
  }

  .to-mobile-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--to-space-2);
    margin-left: auto;
  }

  .to-mobile-menu-button,
  .to-mobile-menu-close {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #C6D8E8;
    border-radius: var(--to-radius-sm);
    background: var(--to-color-surface);
    color: var(--to-color-brand-navigation);
    cursor: pointer;
  }

  .to-mobile-menu-icon,
  .to-mobile-menu-icon::before,
  .to-mobile-menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    content: '';
  }

  .to-mobile-menu-icon {
    position: relative;
  }

  .to-mobile-menu-icon::before {
    position: absolute;
    top: -6px;
  }

  .to-mobile-menu-icon::after {
    position: absolute;
    top: 6px;
  }

  .to-mobile-navigation.is-open .to-mobile-menu-icon {
    background: transparent;
  }

  .to-mobile-navigation.is-open .to-mobile-menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .to-mobile-navigation.is-open .to-mobile-menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .to-mobile-navigation.is-open > .to-mobile-menu-button {
    display: none;
  }

  .to-mobile-navigation-cta {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    /* Visual treatment comes from .to-button--primary. */
  }

  .to-mobile-menu-drawer {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: var(--to-layer-drawer);
    width: min(58vw, 420px);
    min-height: min(520px, calc(100vh - 72px));
    padding: var(--to-space-4);
    border: 1px solid var(--to-color-border);
    border-right: 0;
    border-radius: var(--to-radius-lg) 0 0 var(--to-radius-lg);
    background: var(--to-color-surface);
    box-shadow: var(--to-shadow-md);
  }

  .to-mobile-menu-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--to-space-3);
    padding-bottom: var(--to-space-4);
    border-bottom: 1px solid var(--to-color-border-soft);
    color: var(--to-color-title);
    font-weight: var(--to-font-weight-black);
  }

  .to-mobile-menu-links {
    display: grid;
    gap: var(--to-space-1);
    margin: var(--to-space-4) 0 0;
  }

  .to-mobile-menu-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--to-radius-sm);
    color: var(--to-color-brand-navigation);
    font-weight: 800;
  }

  .to-mobile-menu-links a:hover {
    background: var(--to-color-box-soft);
    color: var(--to-color-brand-navigation);
  }
}

@media (max-width: 767px) {
  .to-nav {
    min-height: 64px;
  }

  .to-logo img {
    height: 40px;
  }

  .to-mobile-navigation-cta {
    max-width: 152px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .to-mobile-menu-drawer {
    width: 100%;
    min-height: calc(100vh - 64px);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}
