/* Amira shared site shell - refined educational layout v2 */
:root {
  --amira-blue-900: #0F4C81;
  --amira-blue-800: #125b97;
  --amira-blue-700: #1f5d96;
  --amira-blue-100: #eef7ff;
  --amira-blue-050: #f7fbff;
  --amira-green: #3FAE5A;
  --amira-green-dark: #2f944b;
  --amira-gold: #FFD166;
  --amira-orange: #ff8a2c;
  --amira-text: #233b57;
  --amira-soft: #5b7694;
  --amira-border: rgba(15, 76, 129, 0.13);
  --amira-shadow: 0 10px 26px rgba(15, 76, 129, 0.08);
  --amira-radius: 22px;
}

html { scroll-behavior: smooth; }

body.amira-shell-enabled {
  margin: 0;
  background: var(--amira-blue-050);
  color: var(--amira-text);
}

#amira-site-shell,
#amira-site-footer,
#amira-page-content {
  font-family: Arial, "Helvetica Neue", sans-serif;
}

#amira-site-shell {
  color: var(--amira-text);
  background: #ffffff;
  border-bottom: 1px solid var(--amira-border);
  box-shadow: 0 5px 16px rgba(15, 76, 129, 0.045);
  position: sticky;
  top: 0;
  z-index: 9999;
}

#amira-site-shell * { box-sizing: border-box; }
#amira-site-shell a { color: inherit; }

#amira-site-shell .amira-shell-topbar {
  height: 30px;
  background: var(--amira-blue-900);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

#amira-site-shell .amira-shell-topbar-inner,
#amira-site-shell .amira-shell-inner {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

#amira-site-shell .amira-shell-topbar-inner {
  height: 30px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

#amira-site-shell .amira-shell-contact {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

#amira-site-shell .amira-shell-contact a,
#amira-site-shell .amira-shell-contact span {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

#amira-site-shell .amira-shell-contact a:hover { text-decoration: underline; }

#amira-site-shell .amira-shell-lang {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

#amira-site-shell .amira-shell-lang a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  opacity: 0.88;
}

#amira-site-shell .amira-shell-lang a[aria-current="page"],
#amira-site-shell .amira-shell-lang a:hover {
  background: rgba(255,255,255,0.16);
  opacity: 1;
}

#amira-site-shell .amira-shell-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 10px 0;
}

#amira-site-shell .amira-shell-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 182px;
  text-decoration: none;
  color: var(--amira-blue-900);
  line-height: 1.05;
}

#amira-site-shell .amira-shell-brand-main {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.07em;
}

#amira-site-shell .amira-shell-brand-sub {
  display: block;
  color: var(--amira-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 3px;
}

#amira-site-shell .amira-shell-mobile-toggle {
  display: none;
  border: 1px solid var(--amira-border);
  background: var(--amira-blue-100);
  color: var(--amira-blue-900);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
}

#amira-site-shell .amira-shell-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

#amira-site-shell .amira-shell-item {
  position: relative;
  flex: 0 0 auto;
}

#amira-site-shell .amira-shell-link,
#amira-site-shell .amira-shell-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--amira-blue-900);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: Arial, "Helvetica Neue", sans-serif;
  white-space: nowrap;
}

#amira-site-shell .amira-shell-link:hover,
#amira-site-shell .amira-shell-menu-button:hover,
#amira-site-shell .amira-shell-menu-button[aria-expanded="true"] {
  background: var(--amira-blue-100);
}

#amira-site-shell .amira-shell-caret {
  font-size: 10px;
  opacity: 0.8;
}

/* Dropdown touches the top item: no gap, so hover remains stable. */
#amira-site-shell .amira-shell-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 270px;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid var(--amira-border);
  border-radius: 16px;
  box-shadow: var(--amira-shadow);
  padding: 8px;
  z-index: 10000;
}

#amira-site-shell .amira-shell-item.open .amira-shell-dropdown { display: block; }

#amira-site-shell .amira-shell-dropdown a,
#amira-site-shell .amira-shell-dropdown .amira-shell-phone-line {
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--amira-text);
  text-decoration: none;
  line-height: 1.35;
  font-size: 14px;
  font-weight: 500;
}

#amira-site-shell .amira-shell-dropdown a:hover {
  background: var(--amira-blue-100);
  color: var(--amira-blue-900);
}

#amira-site-shell .amira-shell-dropdown .amira-shell-feature {
  background: var(--amira-blue-100);
  color: var(--amira-blue-900);
  margin-bottom: 4px;
}

#amira-site-shell .amira-shell-dropdown .amira-shell-muted {
  color: var(--amira-soft);
  font-size: 13px;
  font-weight: 500;
}

#amira-site-shell .amira-shell-separator {
  height: 1px;
  background: var(--amira-border);
  margin: 6px 4px;
}

#amira-site-shell a.amira-shell-job-link {
  color: var(--amira-orange);
  font-weight: 700;
}

#amira-site-shell .amira-shell-cta {
  background: var(--amira-green);
  color: #ffffff !important;
  border-radius: 999px;
  padding: 9px 18px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(63, 174, 90, 0.20);
}

#amira-site-shell .amira-shell-cta:hover { background: var(--amira-green-dark); }

#amira-page-content {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 34px 0 56px;
  min-height: 50vh;
}

#amira-page-content > h1:first-child,
#amira-page-content > h2:first-child { margin-top: 0; }

#amira-page-content > h1,
#amira-page-content > h2 { color: var(--amira-blue-900); }

#amira-page-content > h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
}

#amira-page-content p,
#amira-page-content li { line-height: 1.65; }

#amira-page-content a { color: var(--amira-blue-900); }

/* Individual language pages: image on top on desktop too.
   Overview language card grids are unchanged. */
#amira-page-content #amira-language-page {
  padding-top: 0 !important;
}

#amira-language-page .hero-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

#amira-language-page .hero-img {
  min-height: 0 !important;
  height: clamp(230px, 34vw, 390px) !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--amira-border) !important;
}

#amira-language-page .hero-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #ffffff !important;
}

#amira-language-page .hero-text {
  padding: clamp(24px, 3vw, 38px) !important;
}

#amira-site-footer {
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: #ffffff;
  background: var(--amira-blue-900);
  margin-top: 0;
}

#amira-site-footer .amira-footer-inner {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

#amira-site-footer h2,
#amira-site-footer h3 {
  color: #ffffff;
  margin: 0 0 9px 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 700;
}

#amira-site-footer h2 {
  font-size: 1.55rem;
  letter-spacing: 0.03em;
}

#amira-site-footer h3 { font-size: 1rem; }

#amira-site-footer p,
#amira-site-footer a {
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  margin: 0 0 6px 0;
  font-size: 0.94rem;
}

#amira-site-footer a {
  display: block;
  text-decoration: none;
  font-weight: 500;
}

#amira-site-footer a:hover { text-decoration: underline; }

#amira-site-footer .amira-footer-note {
  opacity: 0.82;
  font-size: 0.9rem;
}

@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  #amira-site-shell .amira-shell-item:hover .amira-shell-dropdown,
  #amira-site-shell .amira-shell-item:focus-within .amira-shell-dropdown {
    display: block !important;
  }
}

@media (max-width: 1120px) {
  #amira-site-shell .amira-shell-inner,
  #amira-site-shell .amira-shell-topbar-inner,
  #amira-page-content,
  #amira-site-footer .amira-footer-inner {
    width: min(100% - 32px, 1180px);
  }

  #amira-site-shell .amira-shell-nav { gap: 6px; }

  #amira-site-shell .amira-shell-link,
  #amira-site-shell .amira-shell-menu-button {
    font-size: 14px;
    padding-left: 8px;
    padding-right: 8px;
  }

  #amira-site-shell .amira-shell-brand { min-width: 150px; }
}

@media (max-width: 980px) {
  #amira-site-shell { position: static; }

  #amira-site-shell .amira-shell-topbar { height: auto; }

  #amira-site-shell .amira-shell-topbar-inner {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 7px 0;
  }

  #amira-site-shell .amira-shell-contact {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  #amira-site-shell .amira-shell-inner {
    align-items: center;
    flex-wrap: wrap;
  }

  #amira-site-shell .amira-shell-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
  }

  #amira-site-shell .amira-shell-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 4px 0;
  }

  #amira-site-shell.amira-mobile-open .amira-shell-nav { display: flex; }

  #amira-site-shell .amira-shell-item,
  #amira-site-shell .amira-shell-link,
  #amira-site-shell .amira-shell-menu-button,
  #amira-site-shell .amira-shell-cta {
    width: 100%;
    justify-content: space-between;
  }

  #amira-site-shell .amira-shell-dropdown {
    position: static;
    display: none;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    margin: 2px 0 8px 0;
  }

  #amira-site-shell .amira-shell-item.open .amira-shell-dropdown { display: block; }

  #amira-site-footer .amira-footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  #amira-site-shell .amira-shell-inner,
  #amira-site-shell .amira-shell-topbar-inner,
  #amira-page-content,
  #amira-site-footer .amira-footer-inner {
    width: min(100% - 28px, 1180px);
  }

  #amira-site-shell .amira-shell-brand-main { font-size: 23px; }

  #amira-page-content { padding-top: 24px; }

  #amira-language-page .hero-img {
    height: clamp(190px, 48vw, 260px) !important;
  }
}

/* Mobile readability fix - 2026-05-28
   Keeps the top contact/language bar on one line and increases
   menu, footer and home-page text sizes on phones. */
@media (max-width: 980px) {
  #amira-site-shell .amira-shell-topbar {
    height: 32px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  #amira-site-shell .amira-shell-topbar-inner {
    height: 32px !important;
    width: min(100% - 20px, 1180px) !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 0 !important;
  }

  #amira-site-shell .amira-shell-contact {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
  }

  #amira-site-shell .amira-shell-contact a,
  #amira-site-shell .amira-shell-contact span {
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  #amira-site-shell .amira-shell-contact a {
    flex: 0 1 auto !important;
  }

  #amira-site-shell .amira-shell-contact span {
    flex: 0 0 auto !important;
  }

  #amira-site-shell .amira-shell-lang {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    align-items: center !important;
  }

  #amira-site-shell .amira-shell-lang a {
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 2px 5px !important;
    line-height: 1.15 !important;
  }

  #amira-site-shell .amira-shell-inner {
    width: min(100% - 24px, 1180px) !important;
    min-height: 70px !important;
    padding: 12px 0 !important;
  }

  #amira-site-shell .amira-shell-brand-main {
    font-size: 25px !important;
  }

  #amira-site-shell .amira-shell-brand-sub {
    font-size: 14px !important;
  }

  #amira-site-shell .amira-shell-mobile-toggle {
    font-size: 16px !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-weight: 700 !important;
  }

  #amira-site-shell .amira-shell-nav {
    padding: 12px 0 6px 0 !important;
    gap: 8px !important;
  }

  #amira-site-shell .amira-shell-link,
  #amira-site-shell .amira-shell-menu-button,
  #amira-site-shell .amira-shell-cta {
    font-size: 17px !important;
    line-height: 1.25 !important;
    min-height: 48px !important;
    padding: 12px 15px !important;
    font-weight: 700 !important;
  }

  #amira-site-shell .amira-shell-dropdown {
    padding: 8px !important;
    margin: 4px 0 10px 0 !important;
  }

  #amira-site-shell .amira-shell-dropdown a,
  #amira-site-shell .amira-shell-dropdown .amira-shell-phone-line {
    font-size: 16px !important;
    line-height: 1.45 !important;
    padding: 13px 14px !important;
  }

  #amira-site-shell .amira-shell-dropdown .amira-shell-muted {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  #amira-page-content {
    width: min(100% - 24px, 1180px) !important;
    padding-top: 24px !important;
    padding-bottom: 42px !important;
  }

  #amira-site-footer .amira-footer-inner {
    width: min(100% - 28px, 1180px) !important;
    padding: 30px 0 !important;
    gap: 22px !important;
  }

  #amira-site-footer h2 {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }

  #amira-site-footer h3 {
    font-size: 19px !important;
    line-height: 1.25 !important;
  }

  #amira-site-footer p,
  #amira-site-footer a,
  #amira-site-footer .amira-footer-note {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 768px) {
  /* Home-page text readability. These rules target only the rebuilt home pages. */
  #amira-page-content #amira-one-clear-path {
    font-size: 18px !important;
    line-height: 1.65 !important;
  }

  #amira-page-content #amira-one-clear-path .amira-container {
    width: 96% !important;
  }

  #amira-page-content #amira-one-clear-path .amira-hero {
    padding-top: 26px !important;
    padding-bottom: 44px !important;
  }

  #amira-page-content #amira-one-clear-path .amira-hero-title {
    font-size: clamp(2.45rem, 12vw, 3.05rem) !important;
    line-height: 1.05 !important;
    margin-bottom: 22px !important;
  }

  #amira-page-content #amira-one-clear-path .amira-brand-name {
    font-size: 2.75rem !important;
  }

  #amira-page-content #amira-one-clear-path .amira-story,
  #amira-page-content #amira-one-clear-path .amira-story p,
  #amira-page-content #amira-one-clear-path .amira-paid-leave,
  #amira-page-content #amira-one-clear-path .amira-seo-helper,
  #amira-page-content #amira-one-clear-path .amira-hero-action-card p,
  #amira-page-content #amira-one-clear-path .amira-path-card p,
  #amira-page-content #amira-one-clear-path .amira-path-card .amira-card-text,
  #amira-page-content #amira-one-clear-path .amira-cta-text,
  #amira-page-content #amira-one-clear-path .amira-extra-languages {
    font-size: 18px !important;
    line-height: 1.65 !important;
  }

  #amira-page-content #amira-one-clear-path .amira-story h2,
  #amira-page-content #amira-one-clear-path .amira-cta-title {
    font-size: 2.05rem !important;
    line-height: 1.15 !important;
  }

  #amira-page-content #amira-one-clear-path .amira-path-card h2 {
    font-size: 2.05rem !important;
    line-height: 1.15 !important;
  }

  #amira-page-content #amira-one-clear-path .amira-path-content {
    padding: 24px 22px 28px 22px !important;
  }

  #amira-page-content #amira-one-clear-path .amira-hero-btn,
  #amira-page-content #amira-one-clear-path .amira-path-link,
  #amira-page-content #amira-one-clear-path .amira-small-cta,
  #amira-page-content #amira-one-clear-path .amira-popup-btn {
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  #amira-page-content #amira-one-clear-path .amira-small-cta {
    padding: 18px 24px !important;
  }

  #amira-page-content #amira-one-clear-path .amira-popup-body p,
  #amira-page-content #amira-one-clear-path .amira-popup-body li,
  #amira-page-content #amira-one-clear-path .amira-popup-body div,
  #amira-page-content #amira-one-clear-path .amira-popup-lead,
  #amira-page-content #amira-one-clear-path .amira-popup-note {
    font-size: 17px !important;
    line-height: 1.65 !important;
  }

  #amira-page-content #amira-one-clear-path .amira-popup-title {
    font-size: 2rem !important;
  }

  #amira-page-content #amira-next-starts .title {
    font-size: 2rem !important;
    line-height: 1.15 !important;
  }

  #amira-page-content #amira-next-starts .subtitle,
  #amira-page-content #amira-next-starts .phrase,
  #amira-page-content #amira-next-starts .line,
  #amira-page-content #amira-next-starts .card-cta {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  #amira-page-content #amira-next-starts .month {
    font-size: 1.35rem !important;
  }
}

@media (max-width: 420px) {
  #amira-site-shell .amira-shell-topbar-inner {
    width: min(100% - 14px, 1180px) !important;
    gap: 4px !important;
  }

  #amira-site-shell .amira-shell-contact {
    gap: 6px !important;
  }

  #amira-site-shell .amira-shell-contact a,
  #amira-site-shell .amira-shell-contact span,
  #amira-site-shell .amira-shell-lang a {
    font-size: 11.5px !important;
  }

  #amira-site-shell .amira-shell-lang {
    gap: 2px !important;
  }

  #amira-site-shell .amira-shell-lang a {
    padding: 2px 4px !important;
  }

  #amira-page-content #amira-one-clear-path .amira-hero-title {
    font-size: 2.35rem !important;
  }

  #amira-page-content #amira-one-clear-path .amira-story,
  #amira-page-content #amira-one-clear-path .amira-story p,
  #amira-page-content #amira-one-clear-path .amira-paid-leave,
  #amira-page-content #amira-one-clear-path .amira-seo-helper,
  #amira-page-content #amira-one-clear-path .amira-hero-action-card p,
  #amira-page-content #amira-one-clear-path .amira-path-card p,
  #amira-page-content #amira-one-clear-path .amira-path-card .amira-card-text,
  #amira-page-content #amira-one-clear-path .amira-cta-text {
    font-size: 17px !important;
  }
}
