/* Shared action roles for all three Mila landing pages. */
:root {
  --action-green: #274638;
  --action-paper: #fffdf8;
  --action-rust: #8e4d32;
}
body .button:is(.action-primary,.action-secondary) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 56px;
  padding: 15px 24px;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--action-green);
  color: var(--action-paper);
  font: 600 16px/24px Manrope, Arial, sans-serif;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
body .button.action-primary:hover { background: #1b3529; color: var(--action-paper); transform: translateY(-2px); }
body .button.action-primary.action-inverse { background: var(--action-paper); color: var(--action-green); }
body .button.action-primary.action-inverse:hover { background: #e6e9df; color: var(--action-green); }
body .button.action-secondary { background: transparent; border-color: var(--action-green); color: var(--action-green); }
body .button.action-secondary:hover { background: #e6e9df; color: var(--action-green); }
body .text-link.action-text {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 0;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #9eaa9d;
  border-radius: 0;
  background: transparent;
  color: var(--action-green);
  font: 600 16px/24px Manrope, Arial, sans-serif;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
body .text-link.action-text:hover { color: var(--action-rust); border-color: var(--action-rust); }
body .text-link.action-text.action-inverse { color: var(--action-paper); border-color: #9eaf9f; }
body .text-link.action-text.action-inverse:hover { color: #eac6a7; border-color: #eac6a7; }
body .action-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 24px;
  font: 500 22px/24px Manrope, Arial, sans-serif;
}
body :is(.desktop-nav,.mobile-nav,.mobile-navigation,.footer-links) a {
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  min-height: 44px;
  text-decoration: none;
  transition: color .2s;
}
body :is(.desktop-nav,.mobile-nav,.mobile-navigation,.footer-links) a:hover { color: var(--action-rust); }
body :is(.action-primary,.action-text,.desktop-nav a,.mobile-nav a,.mobile-navigation a,.footer-links a):focus-visible {
  outline: 3px solid #a85432;
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--action-paper);
}
@media (max-width: 1150px) {
  body :is(.header-cta,.header-link).action-primary { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body .button.action-primary { transition: none; }
  body .button.action-primary:hover { transform: none; }
}
@media print { body .button.action-primary, body .text-link.action-text { display: none; } }
/* Navigation icons, tabs and disclosure controls retain their distinct roles. */
body :is(.menu-button,.menu-toggle,.dialog-close) {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  margin-right: 0;
  border: 1px solid #9eaa9d;
  border-radius: 50%;
  color: var(--action-green);
  background: transparent;
}
body :is(.menu-button,.menu-toggle) span { width: 20px; height: 1.5px; background: var(--action-green); }
body :is(.review-toggle,.footer-bottom button,.back-top,.footer-telegram) {
  font: 600 16px/24px Manrope, Arial, sans-serif;
  min-height: 44px;
}
body .step-tab { font-family: Manrope, Arial, sans-serif; min-height: 44px; }
body .step-tab strong { font-size: 16px; line-height: 1.5; font-weight: 600; }
body .step-tab .step-summary { font-size: 15px; line-height: 1.5; }
body :is(button,summary,.back-top,.footer-telegram):focus-visible {
  outline: 3px solid #a85432;
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--action-paper);
}
/* Reserve the measured bar height once; it already includes the safe area. */
@media (max-width: 900px) {
  body:has(.mobile-join), body:has(.mobile-action) { padding-bottom: var(--mobile-action-height, 0px); }
}

/* Reading roles apply on every screen, including desktop. */
:root { --type-body: 17px; --type-condition: 16px; --type-caption: 15px; --type-label: 14px; }
body h2, body h3 { text-wrap: balance; }
body p { text-wrap: pretty; }
body { caret-color: var(--action-rust); scrollbar-color: #9eaa9d #f5f2eb; }
body .eyebrow { font-size: var(--type-label); line-height: 1.6; }
body .button, body .text-link { white-space: normal; overflow-wrap: anywhere; }
body :is(.service-price,.next-cohort,.hero-terms) { font-variant-numeric: lining-nums; }
