/* TrafikRedo public chrome. Header, mobile navigation, language controls, social links and footer share one maintainable source of truth. */

#main-content { scroll-margin-top: 96px; }
#main-content:focus { outline: none; }

/* Announcement strip */
.top-note {
  min-height: 36px;
  padding: 7px 16px;
  display: grid;
  place-items: center;
  background: var(--sage-dark);
  color: #f9f5ed;
  font-size: .75rem;
  line-height: 1.65;
}
.top-note__inner {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.top-note__inner > span { color: inherit; }
.top-note__inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd991;
  font-weight: 500;
  white-space: nowrap;
}
.top-note__inner a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.top-note__inner a svg { width: 15px; height: 15px; }
html[dir="rtl"] .top-note__inner a svg { transform: scaleX(-1); }

/* Utility bar */
.header-utility {
  min-height: 45px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(232,223,211,.9);
  background: #fff;
}
.header-utility-inner {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  direction: inherit;
}
.header-utility-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  direction: ltr;
}
.header-utility-side-left { justify-content: flex-start; }
.header-utility-side-right { justify-content: flex-end; }
.header-utility-side-right { order: 1; }
.header-utility-side-left { order: 2; }
.header-utility-links,
.header-utility-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.header-utility-links { gap: 18px; }
html[dir="rtl"] .header-utility-links,
html[dir="rtl"] .header-utility-controls { direction: rtl; }

.header-utility-link {
  min-height: 32px;
  padding: 5px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #66716b;
  font-size: .76rem;
  font-weight: 400;
  white-space: nowrap;
  transition: color .18s ease;
}
.header-utility-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 2px;
  border-radius: 4px;
  background: var(--clay);
  transform: scaleX(0);
  transition: transform .18s ease;
}
.header-utility-link:hover,
.header-utility-link.is-active { color: var(--sage-dark); }
.header-utility-link.is-active::after { transform: scaleX(1); }

/* Language selector */
.language-menu {
  position: relative;
  min-width: 0;
  color: var(--ink);
}
.language-menu > summary {
  min-height: 36px;
  padding: 5px 10px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  grid-template-areas: "flag current chevron";
  align-items: center;
  gap: 8px;
  direction: ltr;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fbfcfb;
  color: #48574e;
  font-size: .74rem;
  font-weight: 400;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu > summary:hover,
.language-menu[open] > summary {
  border-color: #cdbdad;
  background: var(--cream);
  color: var(--sage-dark);
  box-shadow: 0 5px 15px rgba(34,48,41,.06);
}
.language-menu__flag-frame {
  grid-area: flag;
  width: 30px;
  height: 24px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(34,48,41,.12);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(34,48,41,.06);
}
.language-menu__flag {
  width: 24px;
  height: 18px;
  display: block;
  object-fit: cover;
}
.language-menu__current {
  grid-area: current;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  direction: ltr;
}
.language-menu__current > span {
  min-width: 0;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.language-menu__current small {
  color: var(--muted);
  font-size: .59rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
.language-menu__chevron {
  grid-area: chevron;
  width: 14px;
  height: 14px;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform .18s ease;
}
html[dir="rtl"] .language-menu__chevron { transform: rotate(90deg); }
.language-menu[open] .language-menu__chevron,
html[dir="rtl"] .language-menu[open] .language-menu__chevron { transform: rotate(-90deg); }
.language-menu__panel {
  width: min(288px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 9px;
  overflow: hidden;
  position: absolute;
  z-index: 1950;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(34,48,41,.16);
}
.header-utility-side-left .language-menu__panel {
  inset-inline-start: auto;
  inset-inline-end: auto;
  left: auto;
  right: 0;
}
.header-utility-side-right .language-menu__panel {
  inset-inline-start: auto;
  inset-inline-end: auto;
  left: auto;
  right: 0;
}
html[dir="rtl"] .header-utility-side-left .language-menu__panel {
  left: 0;
  right: auto;
}
.language-menu__title {
  min-height: 40px;
  padding: 4px 8px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--sage-dark);
  font-weight: 600;
}
.language-menu__title small {
  min-width: 28px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-size: .66rem;
}
.language-menu__list {
  max-height: min(490px, 70vh);
  margin: 0;
  padding: 0 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #c8d2c9 transparent;
}
html[dir="rtl"] .language-menu__list { padding: 0 0 0 2px; }
.language-menu__list li { margin: 0; padding: 0; }
.language-menu__list a {
  min-height: 54px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  grid-template-areas: "flag name";
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-inline-start-width: 3px;
  border-radius: 11px;
  color: #48574e;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  direction: ltr;
}
.language-menu__list a:hover {
  border-color: var(--border);
  background: var(--cream);
  color: var(--sage-dark);
}
.language-menu__list a[aria-current="page"] {
  border-color: #d4e0d5;
  border-inline-start-color: var(--sage-dark);
  background: var(--sage-soft);
  color: var(--sage-dark);
}
.language-menu__list a[aria-current="page"] .language-menu__name > span { font-weight: 600; }
.language-menu__name {
  grid-area: name;
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
  unicode-bidi: isolate;
}
.language-menu__name > span,
.language-menu__name small {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.language-menu__name > span {
  color: var(--ink);
  font-size: .82rem;
}
.language-menu__name small {
  color: var(--muted);
  font-size: .62rem;
}

/* Social links */
.social-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; direction: ltr; }
.social-link {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1.5px solid #64715b;
  border-radius: 50%;
  background: #32493a;
  color: #f6f4ea;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.social-link:hover { border-color: #eadbc1; background: #344d3e; color: #f6f4ea; transform: translateY(-1px); }
.social-link:focus-visible { outline: 2px solid #c5b99d; outline-offset: 3px; }
.social-link .social-brand-icon { display:block; width:24px; height:24px; object-fit:contain; }
.social-link [data-social-default-icon][hidden],.social-link [data-social-custom-icon][hidden] { display:none; }
.social-links--header .social-brand-icon { width:20px; height:20px; }
.social-link.is-placeholder { cursor: default; }
.social-link.is-placeholder:hover { transform: none; }
.social-link svg { width: 16px; height: 16px; }
.social-links--header { gap: 5px; }
.social-links--header .social-link { width: 31px; height: 31px; flex-basis: 31px; }

/* Main desktop header */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(232,223,211,.92);
  background: rgba(255,253,249,.97);
  box-shadow: 0 4px 14px rgba(42,55,46,.055);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 9px 26px rgba(42,55,46,.095); }
.header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 26px;
}
.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--sage-dark);
  font-weight: 400;
}
.brand__mark { width: 48px; height: 48px; flex: 0 0 48px; }
.brand__name { font-size: 1.17rem; font-weight: 700; line-height: 1.2; }
.brand--custom { width: fit-content; max-width: min(var(--header-logo-max-width), 24vw); min-width: 0; height: 62px; }
.brand__custom-logo { display: block; width: auto; max-width: 100%; height: auto; max-height: 56px; object-fit: contain; }
.brand--footer.brand--custom { width: min(var(--footer-logo-max-width), 100%); height: 64px; }
.brand--footer .brand__custom-logo { max-height: 62px; }
.brand--footer { color: #fff; }
.brand--admin.brand--custom {
  width: min(var(--footer-logo-max-width),calc(100% - 52px));
  max-width: 176px;
  min-width: 0;
  height: 48px;
}
.brand--admin .brand__custom-logo { max-height: 44px; }
.brand--admin { color: #fff; }

.primary-nav {
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
}
.primary-nav a {
  padding: 12px 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #47524b;
  font-size: calc(.84rem + 1px);
  font-weight: 400;
  white-space: nowrap;
  transition: color .18s ease;
}
.primary-nav a > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
  color: var(--clay-dark);
}
.primary-nav a::after {
  content: "";
  height: 3px;
  position: absolute;
  inset-inline: 13px;
  inset-block-end: 0;
  border-radius: 4px 4px 0 0;
  background: var(--clay);
  transform: scaleX(0);
  transition: transform .18s ease;
}
.primary-nav a:hover,
.primary-nav a.is-active { color: var(--sage-dark); }
.primary-nav a.is-active { font-weight: 500; }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}
.header-account-cta {
  min-height: 46px;
  padding: 9px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--clay-dark);
  border-radius: 13px;
  background: var(--clay-dark);
  color: #fff;
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.header-account-cta:hover,
.header-account-cta.is-active { border-color: #8d3924; background: #8d3924; color: #fff; transform: translateY(-1px); }
.header-account-cta svg { width: 18px; height: 18px; }
.header-account-cta .user-avatar { box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.header-notification-cta {
  width: 44px;
  height: 44px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--sage-dark);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.header-notification-cta:hover,
.header-notification-cta.has-unread { border-color: var(--clay); background: var(--cream); color: var(--clay-dark); transform: translateY(-1px); }
.header-notification-cta svg { width: 19px; height: 19px; }
.notification-count {
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  position: absolute;
  inset-inline-end: -5px;
  inset-block-start: -5px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1;
}
.notification-count--inline { position: static; margin-inline-start: auto; border: 0; }
.header-account-menu {
  position: relative;
  z-index: 2;
}
.header-account-menu > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.header-account-menu > summary::-webkit-details-marker { display: none; }
.header-account-menu[open] > summary {
  border-color: #8d3924;
  background: #8d3924;
  color: #fff;
}
.header-account-menu__chevron {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  transition: transform .18s ease;
}
.header-account-menu__chevron svg {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
}
.header-account-menu[open] .header-account-menu__chevron { transform: rotate(180deg); }
.header-account-menu__panel {
  width: min(250px,calc(100vw - 24px));
  padding: 8px;
  position: absolute;
  z-index: 1250;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,253,249,.99);
  box-shadow: 0 18px 44px rgba(34,48,41,.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-account-menu__panel a {
  min-height: 48px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--sage-dark);
  font-size: .82rem;
  font-weight: 400;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.header-account-menu__panel a:hover,
.header-account-menu__panel a:focus-visible {
  border-color: var(--border);
  background: var(--sage-pale);
  color: var(--clay-dark);
}
.header-account-menu__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--account-icon-background, var(--sage-soft));
  color: var(--account-icon-color, var(--sage-dark));
}
.header-account-menu__icon svg { width: 17px; height: 17px; }
.header-account-menu__icon--dashboard { --account-icon-background: #eaf1fb; --account-icon-color: #4f78a3; }
.header-account-menu__icon--resumes { --account-icon-background: #eaf3ec; --account-icon-color: #527c60; }
.header-account-menu__icon--letters { --account-icon-background: #f2ecf8; --account-icon-color: #85649f; }
.header-account-menu__icon--subscription { --account-icon-background: #fbf2df; --account-icon-color: #94702c; }
.header-account-menu__icon--orders { --account-icon-background: #e5f3f1; --account-icon-color: #438379; }
.header-account-menu__icon--settings { --account-icon-background: #edf1f5; --account-icon-color: #637a91; }
.header-account-menu__icon--support { --account-icon-background: #f8eaf0; --account-icon-color: #a35f81; }
.header-account-menu__icon--admin { --account-icon-background: #eeeefb; --account-icon-color: #7166a5; }

/* Signed-in account dropdown */
.header-account-trigger {
  min-width: 58px;
  height: 46px;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--sage-dark);
  box-shadow: 0 7px 18px rgba(34,48,41,.06);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.header-account-trigger:hover,
.header-account-trigger.is-active,
.header-account-menu--user[open] > .header-account-trigger {
  border-color: #b9c9bf;
  background: var(--sage-pale);
  color: var(--sage-dark);
  box-shadow: 0 9px 22px rgba(34,48,41,.1);
  transform: translateY(-1px);
}
.header-account-trigger__name { display: none; }
.header-account-trigger__chevron {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform .18s ease, color .18s ease;
}
.header-account-trigger__chevron svg {
  width: 13px;
  height: 13px;
  transform: rotate(90deg);
}
.header-account-menu--user[open] .header-account-trigger__chevron {
  color: var(--sage-dark);
  transform: rotate(180deg);
}
.header-account-menu__panel--user {
  width: min(288px,calc(100vw - 24px));
  padding: 10px;
  gap: 7px;
}
.header-account-menu__identity {
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid #e6ddd2;
  border-radius: 13px;
  background: linear-gradient(135deg,#fffaf4 0%,#f2f6f3 100%);
}
.header-account-menu__identity-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.header-account-menu__identity-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-account-menu__identity-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.35;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-account-menu__status {
  width: fit-content;
  min-height: 23px;
  margin-block-start: 3px;
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .63rem;
  font-weight: 600;
  line-height: 1.2;
}
.header-account-menu__status svg { width: 12px; height: 12px; }
.header-account-menu__status.is-active {
  border-color: #bdd7c8;
  background: #eaf5ee;
  color: #2f7851;
}
.header-account-menu__status.is-inactive {
  border-color: #ead5b2;
  background: #fff5e4;
  color: #a36b17;
}
.header-account-menu__links {
  display: grid;
  gap: 3px;
}
.header-account-menu__panel--user .header-account-menu__item {
  min-height: 45px;
  padding: 5px 7px;
}
.header-account-menu__item .notification-count--inline { margin-inline-start: auto; }
.header-account-menu__icon.is-profile { background: #edf2ef; color: #355746; }
.header-account-menu__icon.is-statistics { background: #e8f2f7; color: #28647c; }
.header-account-menu__icon.is-subscriptions { background: #fff1dd; color: #a86a17; }
.header-account-menu__icon.is-notifications { background: var(--sage-soft); color: var(--sage-dark); }
.header-account-menu__icon.is-security { background: #eeeafd; color: #6555a6; }
.header-account-menu__logout {
  padding-block-start: 7px;
  border-block-start: 1px solid var(--border);
}
.header-account-menu__logout button {
  width: 100%;
  min-height: 45px;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #efd1cd;
  border-radius: 11px;
  background: #fff5f3;
  color: #ad463d;
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
  text-align: start;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.header-account-menu__logout button:hover,
.header-account-menu__logout button:focus-visible {
  border-color: #e9bcb6;
  background: #fdecea;
  color: #96382f;
}
.header-account-menu__logout .header-account-menu__icon {
  background: #f8dedb;
  color: #ad463d;
}
.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--sage-dark);
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}
.menu-toggle:hover { border-color: #cdbdad; background: var(--cream); }
.menu-toggle svg { width: 21px; height: 21px; }
.menu-toggle__label { display: none; }
.mobile-header-tools { display: none; }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1890;
  background: rgba(22,32,26,.52);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(3px);
  transition: opacity .25s ease;
}
.drawer-backdrop:not([hidden]) { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed;
  z-index: 1900;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(86vw,360px);
  height: 100vh;
  height: 100dvh;
  padding: 0 18px max(24px,env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-inline-end: 1px solid rgba(232,223,211,.9);
  background: #fff;
  transform: translateX(-105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .26s ease, visibility .26s;
}
html[dir="rtl"] .mobile-drawer { transform: translateX(105%); }
.mobile-drawer.is-open,
html[dir="rtl"] .mobile-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.mobile-drawer__head {
  min-height: 106px;
  margin-inline: -18px;
  margin-block-end: 15px;
  padding: max(14px,env(safe-area-inset-top)) 18px 14px;
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer__head .icon-button {
  width: 42px;
  height: 42px;
  position: absolute;
  inset-block-start: 25px;
  inset-inline-end: 18px;
  border-radius: 12px;
  color: var(--sage-dark);
}
.brand--drawer { max-width: 168px; justify-content: center; }
.brand--drawer.brand--custom { width: min(var(--header-logo-max-width),52vw); max-width: 180px; }
.brand--drawer .brand__custom-logo { max-height: 58px; }

.mobile-nav-links { display: grid; gap: 4px; }
.mobile-nav-links a {
  min-height: 52px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #3f4d44;
  font-size: .9rem;
  font-weight: 400;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.mobile-nav-links a > svg {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 9px;
  border-radius: 11px;
  background: var(--sage-soft);
  color: var(--sage-dark);
}
.mobile-nav-links a:hover { border-color: var(--border); background: #faf8f4; color: var(--sage-dark); }
.mobile-nav-links a.is-active { border-color: #dce7dd; background: #eef4ee; color: var(--sage-dark); font-weight: 500; }
.mobile-nav-links a.is-active > svg { background: #fff; color: var(--clay-dark); }

.social-links--drawer {
  margin-block-start: 14px;
  padding: 13px;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #faf8f4;
}
.social-links--drawer .social-link { width: 38px; height: 38px; flex-basis: 38px; }

.mobile-nav-account {
  margin-block-start: 18px;
  padding-block-start: 18px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.mobile-nav-account form { display: grid; margin: 0; }
.mobile-nav-account a,
.mobile-nav-account button { gap: 9px; }
.mobile-nav-account a > svg,
.mobile-nav-account button > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.mobile-nav-primary,
.mobile-nav-secondary,
.mobile-nav-subscription-status {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.mobile-nav-primary { gap: 9px; border-color: var(--clay); background: var(--clay); color: #fff; }
.mobile-nav-primary:hover { border-color: var(--clay-dark); background: var(--clay-dark); color: #fff; transform: translateY(-1px); }
.mobile-nav-secondary { background: #fff; color: var(--sage-dark); }
.mobile-nav-secondary:hover { border-color: #cdbdad; background: var(--cream); transform: translateY(-1px); }
.mobile-nav-subscription-status.is-active {
  border-color: #b8d9c0;
  background: #edf8f0;
  color: #2c6b3d;
}
.mobile-nav-subscription-status.is-active:hover {
  border-color: #8fc39b;
  background: #e2f3e7;
  color: #235b32;
  transform: translateY(-1px);
}
.mobile-nav-subscription-status.is-inactive {
  border-color: #ead0ae;
  background: #fff7e9;
  color: #916021;
}
.mobile-nav-subscription-status.is-inactive:hover {
  border-color: #dcb77f;
  background: #fff0d7;
  color: #7d5018;
  transform: translateY(-1px);
}
.mobile-nav-progress-statistics {
  border-color: #bfd9ed;
  background: #edf7ff;
  color: #28678f;
}
.mobile-nav-progress-statistics:hover,
.mobile-nav-progress-statistics:focus-visible {
  border-color: #9fc7e4;
  background: #e0f1fc;
  color: #1f587c;
}
.mobile-nav-logout {
  border-color: #efc4c4;
  background: #fff0f0;
  color: #ad3636;
}
.mobile-nav-logout:hover,
.mobile-nav-logout:focus-visible {
  border-color: #e5a9a9;
  background: #ffe4e4;
  color: #922b2b;
}

/* Footer call to action */
.footer-cta { padding-block: 72px 0; background: var(--paper); }
.footer-cta__card {
  min-height: 210px;
  padding: clamp(28px,4vw,48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px,2.4vw,32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,var(--cream) 0%,var(--sage-soft) 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(34px);
}
.footer-cta__copy { flex: 1 1 0; min-width: 0; max-width: none; }
.footer-cta__eyebrow {
  display: inline-block;
  margin-block-end: 12px;
  color: var(--clay-dark);
  font-size: .76rem;
  font-weight: 500;
}
.footer-cta h2 {
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.2rem,1.4vw,1.55rem);
  line-height: 1.24;
  letter-spacing: -.008em;
  white-space: nowrap;
}
.footer-cta p { margin: 0; max-width: 62ch; color: var(--ink-soft); }
.footer-cta__actions { max-width: 330px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; flex: none; }
.footer-cta__actions .button svg { width: 18px; height: 18px; }
html[dir="rtl"] .footer-cta__actions .button svg { transform: scaleX(-1); }

/* Extended multi-column footer */
.site-footer { margin-block-start: 0; color: #fff; }
.site-footer__body { padding: 92px 0 24px; background: var(--sage-darker); }
.site-footer:not(.has-footer-cta) .site-footer__body { padding-block-start: 58px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px,1.35fr) repeat(3,minmax(150px,.78fr));
  gap: 42px;
  align-items: start;
}
.footer-grid--columns-1 { grid-template-columns: minmax(0,1fr); }
.footer-grid--columns-2 { grid-template-columns: minmax(250px,1.35fr) minmax(170px,.78fr); }
.footer-grid--columns-3 { grid-template-columns: minmax(250px,1.35fr) repeat(2,minmax(160px,.78fr)); }
.footer-grid--columns-4 { grid-template-columns: minmax(250px,1.35fr) repeat(3,minmax(150px,.78fr)); }
.footer-grid--without-brand.footer-grid--columns-2 { grid-template-columns: repeat(2,minmax(170px,1fr)); }
.footer-grid--without-brand.footer-grid--columns-3 { grid-template-columns: repeat(3,minmax(160px,1fr)); }
.footer-grid--without-brand.footer-grid--columns-4 { grid-template-columns: repeat(4,minmax(150px,1fr)); }
.footer-about .brand { margin-block-end: 0; }
.footer-about > p {
  max-width: 430px;
  margin: 0 0 17px;
  color: rgba(255,255,255,.69);
  font-size: .84rem;
  line-height: 1.95;
}
.footer-badges { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.footer-badges span {
  min-height: 30px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.72);
  font-size: .7rem;
}
.footer-license-label svg { width: 15px; height: 15px; color: var(--gold); }
.footer-badges b { color: #fff; font-weight: 500; }

.footer-col h2 {
  margin: 5px 0 15px;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}
.footer-col nav { display: grid; gap: 1px; }
.footer-col nav a {
  width: fit-content;
  max-width: 100%;
  padding: 5px 0;
  color: rgba(255,255,255,.66);
  font-size: .76rem;
  font-weight: 400;
}
.footer-col nav a:hover { color: #fff; }

.footer-contact-list { display: grid; }
.footer-contact-item {
  width: 100%;
  margin: 0 0 10px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255,255,255,.7);
  font-size: .76rem;
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
a.footer-contact-item:hover { color: #fff; }
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-block-start: 3px;
  color: var(--gold);
}
.footer-contact-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.footer-contact-col > h2 { order: 0; }
.footer-contact-col > .footer-contact-list { order: 1; }
.footer-contact-social {
  order: 2;
  width: 100%;
  margin-block-start: 8px;
  padding-block-start: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-contact-social .social-links--footer-contact {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.footer-contact-social .social-links--footer-contact.is-left { justify-content: flex-start; }
.footer-contact-social .social-links--footer-contact.is-right { justify-content: flex-end; }
.social-links--footer .social-link {
  width: var(--footer-social-size,44px);
  height: var(--footer-social-size,44px);
  flex-basis: var(--footer-social-size,44px);
  border-radius: 50%;
  border-color: #64715b;
  background: rgba(151,169,135,.07);
  color: #fff;
}
.social-links--footer .social-link:hover { border-color: #eadbc1; background: rgba(197,185,157,.10); color: #fff; }
.social-link.is-placeholder { cursor: default; }
.social-link.is-placeholder:hover { transform: none; }

.footer-bottom {
  margin-block-start: 20px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.57);
  font-size: .68rem;
  direction: inherit;
}
.footer-bottom--columns-1 {
  grid-template-columns: minmax(0,1fr);
  justify-items: center;
  text-align: center;
}
.footer-bottom--columns-1 > * { justify-self: center; }
.footer-bottom--columns-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.footer-bottom--only { margin-block-start: 0; }
.footer-bottom__payment,
.footer-policy-links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-policy-links {
  order: 1;
  justify-self: start;
  justify-content: flex-start;
  text-align: start;
  flex-wrap: wrap;
  gap: 9px 13px;
}
.footer-bottom__copyright {
  order: 2;
  justify-self: center;
  display: grid;
  gap: 3px;
  text-align: center;
  white-space: nowrap;
}
.footer-bottom__payment {
  order: 3;
  justify-self: end;
  justify-content: flex-end;
}
.footer-bottom__copyright small { color: rgba(255,255,255,.47); }
html[dir="rtl"] .footer-bottom__copyright,
html[dir="rtl"] .footer-payment-caption { direction: rtl; }
html[dir="rtl"] .footer-policy-links { direction: rtl; }
.footer-policy-links a { color: rgba(255,255,255,.66); font-weight: 400; white-space: nowrap; }
.footer-policy-links a:hover { color: #fff; }
.footer-payment-image {
  display: block;
  width: auto;
  max-width: min(var(--footer-payment-max-width),100%);
  height: auto;
  max-height: 42px;
  object-fit: contain;
}
.footer-payment-caption { max-width: 275px; line-height: 1.7; }
.footer-payment-methods {
  display: flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
}
.footer-payment-method {
  width: 48px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  color: #141414;
  font-family: Arial,sans-serif;
  font-size: .64rem;
  font-weight: 700;
  line-height: 1;
}
.footer-payment-method--visa {
  color: #183d98;
  font-size: .74rem;
  font-style: italic;
}
.footer-payment-method--mastercard { position: relative; gap: 0; }
.footer-payment-method--mastercard i {
  width: 15px;
  height: 15px;
  display: block;
  border-radius: 50%;
  background: #e1261c;
}
.footer-payment-method--mastercard i + i {
  margin-inline-start: -5px;
  background: #f59d13;
  opacity: .92;
}
.footer-payment-method--apple { gap: 2px; font-size: .58rem; }
.footer-payment-method--apple b { font-size: .78rem; font-weight: 400; }
.footer-payment-method--google { gap: 2px; font-size: .58rem; }
.footer-payment-method--google b { color: #4285f4; font-size: .75rem; }

.back-to-top {
  position: fixed;
  z-index: 920;
  inset-inline-end: 18px;
  inset-block-end: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
  color: var(--sage-dark);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease, background .22s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--clay); background: var(--clay); color: #fff; }
.back-to-top svg { width: 20px; height: 20px; }


/* Responsive chrome */
@media (min-width:1041px) {
  .header-account-trigger__name {
    display: block;
    min-width: 0;
    max-width: 7rem;
    margin-inline: 3px;
    overflow: hidden;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-inner {
    --header-edge-space:clamp(0px,calc((100% - var(--container) - 32px) / 2),32px);
    width:min(calc(100% - 32px),calc(var(--container) + var(--header-edge-space) * 2));
    padding-inline-end:var(--header-edge-space);
  }
}
@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { grid-template-columns: minmax(0,1fr) auto; }

  .header-inner { gap: 15px; }
  .primary-nav a { padding-inline: 9px; }
  .primary-nav a::after { inset-inline: 9px; }
  .header-utility-links { gap: 13px; }
}
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: stretch; text-align: start; }
  .footer-policy-links { justify-self: stretch; justify-content: flex-start; text-align: start; }
  .footer-bottom__payment { justify-self: stretch; justify-content: flex-end; }
  .footer-bottom__copyright { justify-self: center; grid-row: auto; white-space: normal; text-align: center; }
}
@media (max-width: 760px) {
  .top-note,
  .header-utility { display: none; }
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header-inner {
    min-height: 64px;
    padding-inline: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .header-inner > .brand {
    width: 128px;
    min-width: 0;
    max-width: 128px;
    height: 48px;
    position: absolute;
    z-index: 1;
    inset-inline-start: 50%;
    justify-content: center;
    transform: translateX(-50%);
  }
  html[dir="rtl"] .header-inner > .brand { transform: translateX(50%); }
  .header-inner > .brand .brand__custom-logo { max-height: 44px; }
  .header-inner > .brand .brand__mark { width: 36px; height: 36px; flex-basis: 36px; }
  .header-inner > .brand .brand__name { max-width: 82px; overflow: hidden; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }

  .header-actions {
    position: absolute;
    z-index: 3;
    inset-inline-start: auto;
    inset-inline-end: auto;
    left: 8px;
    right: auto;
    justify-self: auto;
    pointer-events: auto;
  }
  html[dir="rtl"] .header-actions {
    left: auto;
    right: 8px;
  }
  .header-account-cta,
  .header-account-menu,
  .header-notification-cta { display: none; }
  .menu-toggle {
    width: auto;
    min-width: 42px;
    padding-inline: 10px;
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 5;
  }
  .menu-toggle__label {
    display: inline;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-header-tools {
    position: absolute;
    z-index: 2;
    inset-inline-start: auto;
    inset-inline-end: auto;
    left: auto;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    direction: ltr;
  }
  html[dir="rtl"] .mobile-header-tools {
    left: 8px;
    right: auto;
  }
  .mobile-header-tool {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    color: var(--sage-dark);
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
    touch-action: manipulation;
  }
  .mobile-header-tool:hover { border-color: #cdbdad; background: var(--cream); color: var(--clay-dark); transform: translateY(-1px); }
  .mobile-header-tool svg { width: 20px; height: 20px; }
  .mobile-header-tool .user-avatar { box-shadow: none; }
  .language-menu--header-tool { flex: 0 0 40px; }
  .language-menu--header-tool > summary {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 3px;
    grid-template-columns: 1fr;
    grid-template-areas: "flag";
    place-items: center;
    border-radius: 11px;
    background: #fff;
  }
  html[dir="rtl"] .language-menu--header-tool > summary {
    grid-template-columns: 1fr;
    grid-template-areas: "flag";
  }
  .mobile-header-tools .language-menu > summary > svg { width: 21px; height: 21px; color: var(--sage-dark); }
  .language-menu--header-tool .language-menu__current,
  .language-menu--header-tool .language-menu__chevron { display: none; }
  .language-menu--header-tool .language-menu__panel {
    width: min(288px, calc(100vw - 24px));
    max-width: none;
    position: fixed;
    inset-block-start: 68px;
    inset-inline: auto;
    right: 12px;
    left: auto;
  }
  html[dir="rtl"] .language-menu--header-tool .language-menu__panel { right: auto; left: 12px; }

  .footer-cta { padding-block-start: 52px; }
  .footer-cta__card { min-height: 0; padding: 26px 20px; align-items: flex-start; flex-direction: column; transform: translateY(28px); }
  .footer-cta__actions { width: 100%; display: grid; }
  .footer-cta__actions .button { width: 100%; }
  .site-footer__body { padding-block-start: 78px; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 31px; }
  .footer-about > p { max-width: none; }
  .footer-col h2 { margin-block-end: 10px; }
  .footer-bottom { margin-block-start: 18px; padding: 16px 13px; }
  .footer-bottom__payment,
  .footer-policy-links { width: 100%; }
  .footer-policy-links { justify-content: flex-start; }
  .footer-bottom__payment { justify-content: flex-end; }
  .footer-payment-image { max-width: 100%; }
  .language-menu__panel { width: min(288px,calc(100vw - 24px)); }
  .language-menu__list { max-height: min(420px,68vh); }
  .back-to-top { inset-inline-end: 12px; inset-block-end: 12px; }
}
@media (max-width: 430px) {
  .header-inner > .brand { width: 108px; max-width: 108px; }
  .header-inner > .brand .brand__name { display: none; }
  .header-inner > .brand:not(.brand--custom) { width: 40px; }
  .header-inner > .brand.brand--custom { width: 100px; }
  .mobile-header-tools { gap: 3px; }
  .mobile-header-tool { width: 37px; height: 37px; flex-basis: 37px; }
  .language-menu--header-tool { flex-basis: 37px; }
  .language-menu--header-tool > summary { width: 37px; height: 37px; min-height: 37px; }
  .menu-toggle { min-width: 39px; height: 39px; }
}
@media (max-width: 360px) {
  .header-inner > .brand.brand--custom { width: 76px; }
  .mobile-header-tool { width: 35px; height: 35px; flex-basis: 35px; }
  .language-menu--header-tool { flex-basis: 35px; }
  .language-menu--header-tool > summary { width: 35px; height: 35px; min-height: 35px; }
  .menu-toggle { padding-inline: 8px; }
  .menu-toggle__label { font-size: .73rem; }
}

/* Mobile footer: compact card layout using the established dark footer palette. */
@media (max-width: 620px) {
  .site-footer { color: #fff; }
  .site-footer__body {
    padding: 72px 0 28px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: var(--sage-darker);
  }
  .site-footer:not(.has-footer-cta) .site-footer__body { padding-block-start: 38px; }

  .footer-grid,
  .footer-grid--columns-3,
  .footer-grid--columns-4,
  .footer-grid--without-brand.footer-grid--columns-2,
  .footer-grid--without-brand.footer-grid--columns-3,
  .footer-grid--without-brand.footer-grid--columns-4 {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    align-items: stretch;
  }
  .footer-grid--columns-1,
  .footer-grid--columns-2 { grid-template-columns: minmax(0,1fr); }

  .footer-about {
    grid-column: 1 / -1;
    padding: 0 4px 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
  .footer-about > p {
    order: 2;
    max-width: none;
    margin: 0;
    color: rgba(255,255,255,.69);
    font-size: .82rem;
    line-height: 1.95;
  }
  .footer-about .brand {
    order: 1;
    margin: 0 0 13px;
    justify-content: center;
  }
  .footer-about .brand--footer { color: #fff; }
  .footer-about .brand--footer.brand--custom {
    width: min(var(--footer-logo-max-width),64vw);
    min-width: 0;
    height: 56px;
  }
  .footer-about .brand--footer .brand__custom-logo { max-height: 54px; }
  .footer-badges {
    order: 3;
    margin-block-start: 13px;
    justify-content: center;
  }
  .footer-badges span {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.72);
  }
  .footer-license-label svg { color: var(--gold); }
  .footer-badges b { color: #fff; font-weight: 600; }

  .footer-col {
    min-width: 0;
    min-height: 218px;
    padding: 19px 16px 17px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 19px;
    background: rgba(255,255,255,.045);
    box-shadow: 0 8px 24px rgba(9,20,15,.12);
  }
  .footer-col h2 {
    margin: 0 0 11px;
    color: #fff;
    font-size: .88rem;
    line-height: 1.5;
  }
  .footer-col nav { gap: 4px; }
  .footer-col nav a {
    width: 100%;
    padding-block: 5px;
    color: rgba(255,255,255,.66);
    font-size: .76rem;
    line-height: 1.65;
  }
  .footer-col nav a:hover { color: #fff; }

  .footer-contact-col:last-child {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .footer-contact-list { gap: 4px; }
  .footer-contact-item {
    min-height: 34px;
    margin: 0;
    align-items: center;
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    line-height: 1.65;
  }
  a.footer-contact-item:hover { color: #fff; }
  .footer-contact-item svg {
    margin-block-start: 0;
    color: var(--gold);
  }
  .footer-contact-social {
    margin-block-start: 13px;
    padding-block-start: 13px;
    border-top-color: rgba(255,255,255,.1);
  }
  .footer-contact-social .social-links--footer-contact,
  .footer-contact-social .social-links--footer-contact.is-left,
  .footer-contact-social .social-links--footer-contact.is-right { justify-content: center; }
  .social-links--footer .social-link {
    width: var(--footer-social-size,44px);
    height: var(--footer-social-size,44px);
    flex-basis: var(--footer-social-size,44px);
    border: 1.5px solid #64715b;
    border-radius: 50%;
    background: rgba(151,169,135,.07);
    color: #fff;
    box-shadow: none;
  }
  .social-links--footer .social-link:hover {
    border-color: #eadbc1;
    background: rgba(197,185,157,.10);
    color: #fff;
    filter: none;
  }

  .footer-bottom,
  .footer-bottom--columns-1,
  .footer-bottom--columns-2 {
    margin-block-start: 18px;
    padding: 20px 14px;
    grid-template-columns: minmax(0,1fr);
    justify-items: center;
    gap: 16px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 19px;
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.57);
    font-size: .74rem;
    text-align: center;
  }
  .footer-policy-links {
    width: 100%;
    justify-self: center;
    justify-content: center;
    gap: 10px 16px;
  }

  .footer-policy-links a { color: rgba(255,255,255,.66); font-weight: 500; }
  .footer-policy-links a:hover { color: #fff; }
  .footer-bottom__copyright {
    order: 3;
    justify-self: center;
    color: rgba(255,255,255,.57);
    white-space: normal;
  }
  .footer-bottom__copyright small { color: rgba(255,255,255,.47); }
  .footer-bottom__payment {
    order: 4;
    width: 100%;
    justify-self: center;
    justify-content: center;
  }
  .footer-payment-image { max-width: 100%; }
  .footer-payment-methods { flex-wrap: wrap; justify-content: center; gap: 7px; }
  .footer-payment-method {
    width: 52px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 5px;
  }
}

@media (max-width: 340px) {
  .footer-grid,
  .footer-grid--columns-3,
  .footer-grid--columns-4,
  .footer-grid--without-brand.footer-grid--columns-2,
  .footer-grid--without-brand.footer-grid--columns-3,
  .footer-grid--without-brand.footer-grid--columns-4 { grid-template-columns: minmax(0,1fr); }
  .footer-contact-col:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .mobile-drawer,
  .drawer-backdrop,
  .social-link,
  .back-to-top,
  .primary-nav a::after { transition-duration: .01ms !important; }
}

@media (max-width: 1100px) {
  .footer-cta h2 { font-size: clamp(1.2rem,2.2vw,1.45rem); white-space: normal; }
  .footer-cta__actions { max-width: none; }
}
.maintenance-admin-bar{position:relative;z-index:1200;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;min-height:54px;padding:8px max(16px,env(safe-area-inset-left));border-bottom:1px solid color-mix(in srgb,var(--warning,#b7781f) 30%,transparent);background:#fff2cf;color:#60420e;box-shadow:0 6px 20px rgba(76,52,12,.1)}
.maintenance-admin-bar__copy,.maintenance-admin-bar__actions{display:flex;align-items:center;gap:10px}
.maintenance-admin-bar__copy{grid-column:2;justify-content:center;text-align:center;font-weight:400}
.maintenance-admin-bar__actions{grid-column:3;justify-self:end}
.maintenance-admin-bar__copy svg{width:22px;height:22px}
@media(max-width:700px){.maintenance-admin-bar{display:flex;align-items:center;flex-direction:column;padding-block:10px}.maintenance-admin-bar__actions{width:100%;justify-content:center}.maintenance-admin-bar__copy{font-size:.88rem}.maintenance-admin-bar .button{min-height:38px;padding-inline:12px}}

.social-links--footer .social-link :is(.social-brand-icon,[data-social-custom-icon],svg){width:calc(var(--footer-social-size,44px) * .54);height:calc(var(--footer-social-size,44px) * .54);object-fit:contain}
.footer-payment-caption{font-size:.76rem;line-height:1.8;color:inherit;opacity:.85;margin:10px 0 0;max-width:340px}

/* Downloads and social links remain together at every viewport width. */
.footer-contact-col > .footer-download-social{order:2}
.footer-download-social{display:flex;flex-direction:column;align-items:stretch;min-width:0;gap:0}
.footer-download-social > h2{order:0;margin:0 0 20px}
.footer-contact-list + .footer-download-social{margin-block-start:20px}
.footer-download-social > .app-store-buttons{order:1;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:10px;margin:0}
.footer-download-social .app-store-button{width:150px;min-width:0;max-width:100%;box-sizing:border-box}
.footer-download-social .app-store-button--image{border-radius:5px}
.footer-download-social .app-store-button__image{width:150px;height:44px;max-width:100%;object-fit:contain}
.footer-download-social > .footer-contact-social{order:2;margin-block-start:10px;padding-block-start:12px;border-top:1px solid rgba(255,255,255,.14)}

.footer-download-social > .footer-contact-social--no-divider{border-top:0;padding-block-start:0}

/* Mobile-only visibility keeps the desktop footer and saved content intact. */
@media (max-width: 620px) {
  .site-footer.footer-mobile-hidden,
  .site-footer .footer-mobile-hidden,
  .back-to-top--mobile-hidden { display: none !important; }
  .footer-download-social > h2 { text-align: center; }
  .footer-download-social > .app-store-buttons {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
  }
  .footer-download-social .app-store-button { flex: 0 1 150px; }
  .footer-download-social .app-store-button span { min-width: 0; overflow-wrap: anywhere; }
  .footer-download-social .app-store-button__image { width: 100%; height: auto; aspect-ratio: 150 / 44; }
  .site-footer--mobile-no-cta .site-footer__body { padding-block-start: 38px; }
  .site-footer--mobile-cta-only .footer-cta { padding-block-end: 28px; }
  .site-footer--mobile-cta-only .footer-cta__card { transform: none; }
  .footer-grid--mobile-one-menu > .footer-col { grid-column: 1 / -1; }
  .footer-bottom.footer-bottom--mobile-only { margin-block-start: 0; }
  .footer-contact-col--mobile-no-contact > .footer-download-social { margin-block-start: 0; }
  .footer-contact-col--mobile-no-contact.footer-contact-col--mobile-no-apps .footer-contact-social {
    margin-block-start: 0;
    padding-block-start: 0;
    border-top: 0;
  }
}

/* The language picker remains compact with 26 languages, on every header. */
.language-menu__list { max-height:min(52vh, 360px); overflow-y:auto; overscroll-behavior:contain; }
.language-menu__panel { max-width:calc(100vw - 24px); }

.language-availability { padding:10px 20px; background:#f4f6f5; color:#435449; border-block-end:1px solid #dce4df; font-size:.875rem; line-height:1.7; text-align:start; }
.audio-voice-preview { margin-block:20px; padding:20px; }
.audio-voice-preview audio { width:100%; max-width:520px; }
[data-kurdish-voice] { margin-block:16px; }

/* Compact app actions replace the former language block in the mobile drawer. */
.mobile-app-menu { margin-block: 12px; border-block: 1px solid var(--border); }
.mobile-app-menu > summary { min-height: 48px; padding: 12px 8px; display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; color: var(--sage-dark); font-weight: 600; }
.mobile-app-menu > summary::-webkit-details-marker { display: none; }
.mobile-app-menu__chevron { margin-inline-start: auto; }
.mobile-app-menu[open] .mobile-app-menu__chevron { transform: rotate(-90deg); }
.mobile-app-menu__items { padding-block: 0 10px; }
.mobile-app-menu__items > a, .mobile-app-menu__items > button { width: 100%; min-height: 46px; padding: 10px 8px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: .86rem; text-align: start; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.mobile-app-menu__items > :is(a,button):hover, .mobile-app-menu__items > :is(a,button):focus-visible { background: var(--sage-soft); }
.mobile-app-menu svg { width: 19px; height: 19px; flex-shrink: 0; }
.mobile-app-menu__status { margin: 8px; font-size: .8rem; line-height: 1.7; }
.mobile-app-menu__copy { width: 100%; direction: ltr; }
@media (max-width: 760px) {
  .language-menu--header-tool .language-menu__panel { padding: 6px; }
  .language-menu--header-tool .language-menu__title { gap: 5px; padding-inline: 3px; font-size: .75rem; }
  .language-menu--header-tool .language-menu__list a { padding-inline: 5px; gap: 7px; }
  .language-menu--header-tool .language-menu__name > span, .language-menu--header-tool .language-menu__name small { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
}

/* App-only actions stay out of ordinary mobile browsers. Author-level button
   display rules must not override the HTML hidden state. */
.mobile-app-menu__items > [data-native-only][hidden] { display: none !important; }

/* In-app fallback share sheet. Native bridges remain the first choice; this
   guarantees useful sharing targets in older WebView builds without Web Share. */
.mobile-app-share-sheet[hidden]{display:none!important}
.mobile-app-share-sheet{position:fixed;inset:0;z-index:10020;display:flex;align-items:flex-end;justify-content:center;padding:12px}
.mobile-app-share-sheet__backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,20,.48);cursor:pointer}
.mobile-app-share-sheet__panel{position:relative;width:min(100%,520px);padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--surface,#fff);box-shadow:0 18px 50px rgba(0,0,0,.18);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(14px,env(safe-area-inset-bottom))}
.mobile-app-share-sheet__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 12px}
.mobile-app-share-sheet__head strong{font-size:.96rem}
.mobile-app-share-sheet__close{width:36px;height:36px;border:0;border-radius:50%;background:var(--sage-soft);color:var(--ink);font:inherit;font-size:1.25rem;cursor:pointer}
.mobile-app-share-sheet__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.mobile-app-share-sheet__grid>a,.mobile-app-share-sheet__grid>button{min-width:0;min-height:82px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:0;border-radius:12px;background:transparent;color:var(--ink);font:inherit;font-size:.72rem;text-align:center;text-decoration:none;cursor:pointer}
.mobile-app-share-sheet__grid>:is(a,button):hover,.mobile-app-share-sheet__grid>:is(a,button):focus-visible{background:var(--sage-soft)}
.mobile-app-share-sheet__mark{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--border);border-radius:50%;background:var(--surface,#fff);font-weight:700;font-size:.78rem;line-height:1}
body.mobile-app-share-sheet-open{overflow:hidden}

.mobile-app-share-sheet__grid>[hidden]{display:none!important}
.mobile-app-share-sheet__copy{display:flex;align-items:center;gap:8px;margin-top:12px}
.mobile-app-share-sheet__copy input{min-width:0;flex:1;font-size:.75rem}
.mobile-app-share-sheet__copy button{flex-shrink:0}


/* Shared notification surfaces use the TrafikRedo appearance palette. */
[data-notification-badge][hidden],.header-notifications[hidden],.header-notifications [hidden]{display:none!important}
[data-notifications-toggle]{cursor:pointer;font:inherit;padding:0}
[data-notifications-toggle][aria-expanded=true]{background:var(--sage-soft);border-color:var(--sage);color:var(--sage-dark)}
.header-notifications{position:fixed;inset:auto;margin:0;padding:0;width:390px;max-width:calc(100vw - 24px);max-height:540px;box-sizing:border-box;display:flex;flex-direction:column;z-index:10020;border:1px solid var(--border);border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:var(--shadow-lg);font:inherit;overflow:hidden;text-align:start}
.header-notifications::backdrop{background:transparent}
.header-notifications:focus-visible{outline:2px solid var(--sage-dark);outline-offset:3px}
.header-notifications__head{display:flex;align-items:center;gap:6px;flex-shrink:0;padding:15px 16px 12px;border-bottom:1px solid var(--border)}
.header-notifications__head h2{margin:0;margin-inline-end:auto;font:inherit;font-weight:700;font-size:18px;color:var(--ink);line-height:1.5}
.header-notifications__head button{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:6px;border:0;border-radius:50%;background:var(--surface-muted);color:var(--ink-soft);cursor:pointer;flex-shrink:0}
.header-notifications__head button:hover{background:var(--sage-soft);color:var(--sage-dark)}
.header-notifications__head svg{width:18px;height:18px}
.header-notifications__body{overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}
.header-notifications__list{list-style:none;padding:6px;margin:0;display:grid;gap:3px}
.header-notifications__list:empty{display:none}
.header-notifications__list li{margin:0;padding:0;min-width:0;list-style:none}
.header-notifications__item{display:flex;align-items:flex-start;gap:10px;width:100%;padding:12px 10px;margin:0;border:0;border-radius:10px;background:var(--paper);color:var(--ink-soft);font:inherit;text-align:start;cursor:pointer;line-height:1.6}
.header-notifications__item.is-unread{background:var(--sage-pale)}
.header-notifications__item:hover{background:var(--sage-soft)}
.header-notifications__item:disabled{opacity:.65;cursor:wait}
.header-notifications__dot{flex:0 0 8px;height:8px;border-radius:50%;background:var(--border-strong);margin-top:7px}
.header-notifications__item.is-unread .header-notifications__dot{background:var(--sage-dark)}
.header-notifications__copy{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.header-notifications__copy strong{font-weight:500;font-size:13px;color:var(--ink)}
.header-notifications__item.is-unread strong{font-weight:700;color:var(--sage-dark)}
.header-notifications__copy>span{font-size:13px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.header-notifications__copy time{font-size:10px;color:var(--muted);line-height:1.6}
.header-notifications__status{margin:0;padding:24px 18px;text-align:center;font-size:13px;color:var(--muted)}
.header-notifications__empty{display:grid;justify-items:center;gap:15px;padding:40px 20px}
.header-notifications__empty>span{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--sage-soft);color:var(--sage)}
.header-notifications__empty svg{width:29px;height:29px}
.header-notifications__empty p{font-size:14px;line-height:1.8;color:var(--muted);margin:0;text-align:center}
.header-notifications__retry{display:block;margin:0 auto 18px;padding:8px 16px;border:1px solid var(--border-strong);border-radius:8px;background:var(--sage-soft);color:var(--sage-dark);font:inherit;font-size:12px;cursor:pointer}
.header-notifications__footer{flex-shrink:0;border-top:1px solid var(--border);padding:12px;text-align:center}
.header-notifications__footer a{color:var(--sage-dark);font-size:12px;font-weight:500;text-decoration:none}
.header-notifications button:focus-visible,.header-notifications a:focus-visible{outline:2px solid var(--sage-dark);outline-offset:-2px}
@media(max-width:480px){.header-notifications{border-radius:13px}.header-notifications__head{padding:12px}.header-notifications__head h2{font-size:17px}}
