/* Layout refinements shared by the public site, version 2.3.0. */

/* Responsive homepage photography: never crop the subject vertically. */
.home-hero {
  --home-hero-height: clamp(620px, 37.5vw, 768px);
  min-height: var(--home-hero-height);
}
.home-hero .hero-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f2e7dc;
}
.home-hero .hero-media img {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: right top;
}
.home-hero .hero-content { min-height: var(--home-hero-height); }

/* The transparent header belongs only to the homepage. */
body:not(.home-page) .site-header {
  background: rgba(250, 247, 243, .98);
  border-bottom: 1px solid rgba(18, 52, 80, .10);
  box-shadow: 0 8px 26px rgba(10, 37, 59, .055);
}
body:not(.home-page) .site-header::after { display: none; }

/* Logo, navigation, actions and page content share the same invisible edges. */
.header-shell {
  width: var(--shell);
  grid-template-columns: 250px minmax(0, 1fr) auto;
  gap: 8px;
}
.site-nav {
  justify-content: flex-start;
  gap: clamp(10px, 1vw, 17px);
}
.site-nav > a,
.nav-dropdown > button { font-size: .71rem; letter-spacing: .045em; }
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%,0);
}

.mobile-cart-bar { display: none; }

/* Interior headings follow the finer editorial scale of the approved mockups. */
.section-heading h2,
.editorial-layout h2,
.ler-grid h2,
.product-editorial h2,
.legal-copy h2,
.contact-layout > div h2 {
  font-size: clamp(1.7rem, 2.05vw, 2.35rem);
  line-height: 1.18;
}

/* The mission copy uses the full site grid instead of an arbitrary narrow column. */
.mission-narrative-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: clamp(44px, 6vw, 92px);
  align-items: start;
}
.mission-narrative-grid p {
  color: #344654;
  font: 400 clamp(1rem, 1.12vw, 1.13rem)/1.82 var(--serif);
}
.mission-narrative-grid > div > p:last-child { margin-bottom: 0; }
.mission-statement {
  padding-left: clamp(24px, 3vw, 44px);
  border-left: 1px solid rgba(45, 99, 149, .22);
}
.mission-statement blockquote {
  margin-top: 28px;
  padding: 23px 26px;
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
}

.digital-resources-heading { align-items: start; }
.digital-resources-heading > p {
  width: min(46%, 590px);
  margin: 4px 0 0;
  color: var(--muted);
}
.digital-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.digital-resource-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 60, 96, .055);
}
.digital-resource-grid .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--blue);
}
.digital-resource-grid h3 {
  margin-bottom: 9px;
  color: var(--blue-deep);
  font: 400 1.35rem/1.25 var(--serif);
}
.digital-resource-grid p { margin: 0; color: var(--muted); }
.digital-resources-note {
  margin-top: 26px;
  padding: 22px 26px;
  border-left: 3px solid var(--blue);
  background: #eef4f8;
}
.digital-resources-note p { margin: 3px 0 0; color: var(--muted); }

/* Discrete glass surfaces, preserving the editorial palette. */
.product-card,
.purchase-card,
.checkout-card,
.order-summary,
.digital-resource-grid article,
.story-page .ler-grid article,
.product-editorial > section {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 48px rgba(18,55,80,.09), inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter: blur(13px) saturate(112%);
  -webkit-backdrop-filter: blur(13px) saturate(112%);
}
.product-card { position: relative; isolation: isolate; overflow: hidden; cursor: pointer; }
.product-card-image {
  background-color: #070604;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
@media (min-width: 1181px) {
  .product-hero__art img { object-position: right center; }
}
.product-card-hit { position: absolute; z-index: 5; inset: 0; border-radius: inherit; }
.product-card-hit:focus-visible { outline: 3px solid rgba(45,99,149,.5); outline-offset: -4px; }
.product-card:has(.product-card-hit:focus-visible) { outline: 3px solid rgba(45,99,149,.48); outline-offset: 3px; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(18,55,80,.15), inset 0 1px 0 rgba(255,255,255,.9); }
.product-card .circle-link { transition: transform .25s ease, background .25s ease; }
.product-card:hover .circle-link { transform: translateX(3px); background: var(--blue-deep); }

.product-editorial { display: grid; gap: 22px; }
.product-editorial > section {
  margin: 0;
  padding: clamp(28px,3vw,44px);
  border-radius: 14px;
}
.product-editorial > section:first-child {
  padding-top: clamp(28px,3vw,44px);
}
.product-editorial > section:last-child {
  border-top: 1px solid rgba(255,255,255,.72);
  border-right: 1px solid rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.72);
}
.product-editorial > section:nth-child(3n+1) { border-left: 3px solid rgba(45,99,149,.55); }
.product-editorial > section:nth-child(3n+2) { border-left: 3px solid rgba(168,115,33,.55); }
.product-editorial > section:nth-child(3n) { border-left: 3px solid rgba(75,104,124,.42); }
.product-editorial > section h2:first-child,
.product-editorial > section .section-kicker + h2 { margin-top: 0; }
.trilogy-grid article,
.catalog-search {
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.68);
  box-shadow: 0 16px 42px rgba(18,55,80,.08), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.button-light,
.button-ghost {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 28px rgba(12,43,67,.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.button-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 28px rgba(23,60,96,.22); }

/* The course CTA is visually separated from the navy footer. */
.product-final-cta {
  position: relative;
  color: var(--blue-deep);
  background: linear-gradient(135deg,#eef3f6 0%,#f8f3ea 52%,#e7eef2 100%);
  border-top: 1px solid rgba(45,99,149,.12);
  border-bottom: 12px solid var(--cream);
}
.product-final-cta::before { content: ""; position: absolute; inset: 18% 20%; background: rgba(255,255,255,.58); filter: blur(70px); pointer-events: none; }
.product-final-cta > .shell { position: relative; }
.product-final-cta h2 { color: var(--blue-deep); }
.product-final-cta .eyebrow { color: var(--blue); }
.product-final-cta .button-light { color: #fff; border-color: rgba(23,60,96,.2); background: var(--blue-deep); }
.product-final-cta .button-light:hover { background: #234f75; }

/* Legal pages use the same editorial width and type scale as the public site. */
.legal-hero { padding-bottom: 58px; background: linear-gradient(180deg,#f1f4f5 0%,var(--cream) 100%); }
.legal-hero h1 { max-width: 980px; font-size: clamp(2.65rem,4.3vw,4.65rem); }
.legal-hero p:last-child { margin-bottom: 0; }
.legal-section { padding-top: 66px; background: #fff; }
.legal-copy { width: min(var(--shell), 1120px); color: #344654; }
.legal-copy h2 { margin: 2.25em 0 .7em; scroll-margin-top: calc(var(--header) + 24px); color: var(--blue-deep); font: 400 clamp(1.55rem,2vw,2.05rem)/1.22 var(--serif); }
.legal-copy h2:first-of-type { margin-top: 1.7em; }
.legal-copy p,
.legal-copy li { font-size: .98rem; line-height: 1.78; }
.legal-copy a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-copy code { padding: 2px 5px; border-radius: 4px; color: var(--blue-deep); background: #edf2f5; font-size: .9em; }
.legal-updated { margin-bottom: 24px; color: var(--muted); font-size: .8rem !important; letter-spacing: .035em; }
.legal-operator { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 34px; padding: 26px 30px; border: 1px solid rgba(45,99,149,.16); border-radius: 12px; background: #f6f8f8; }
.legal-operator strong { grid-column: 1/-1; margin-bottom: 5px; color: var(--blue-deep); font: 400 1.3rem var(--serif); }
.legal-operator span { font-size: .9rem; line-height: 1.55; }
.legal-notice { margin: 26px 0 36px; padding: 22px 26px; border-left: 3px solid var(--blue); background: #eef3f6; }
.legal-notice strong { display: block; margin-bottom: 4px; color: var(--blue-deep); }
.legal-notice p { margin: 0; }
.legal-table-wrap { margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.legal-table { min-width: 720px; background: #fff; }
.legal-table th { color: var(--blue-deep); background: #eef3f6; }
.legal-table th,
.legal-table td { padding: 14px 16px; vertical-align: top; white-space: normal; font-size: .88rem; line-height: 1.55; }
.checkout-legal-consents { display: grid; gap: 12px; padding: 18px; border: 1px solid rgba(45,99,149,.15); border-radius: 10px; background: #f4f7f8; }
.checkout-legal-consents .check-row { margin: 0; }

/* Granular cookie preferences and Google Consent Mode v2. */
body.consent-open { overflow: hidden; }
.cookie-banner { max-width: 1180px; border-color: rgba(45,99,149,.18); background: rgba(250,247,243,.97); }
.cookie-banner strong { color: var(--blue-deep); }
.cookie-banner a,
.cookie-modal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner .button { width: auto; min-height: 46px; padding: 9px 15px; font-size: .7rem; }
.cookie-modal { position: fixed; z-index: 650; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7,28,44,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cookie-modal[hidden] { display: none; }
.cookie-modal__panel { position: relative; width: min(720px,100%); max-height: min(820px,calc(100vh - 40px)); overflow: auto; padding: clamp(26px,4vw,42px); border: 1px solid rgba(255,255,255,.8); border-radius: 16px; background: rgba(250,247,243,.98); box-shadow: 0 28px 80px rgba(4,22,36,.28); }
.cookie-modal__panel h2 { margin-bottom: 9px; color: var(--blue-deep); font: 400 clamp(2rem,4vw,2.75rem)/1.1 var(--serif); }
.cookie-modal__panel > p:not(.eyebrow,.cookie-modal__note) { color: var(--muted); }
.cookie-modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--blue-deep); background: #e7edf0; font-size: 1.5rem; line-height: 1; }
.cookie-category { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 22px; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); }
.cookie-category strong { display: block; color: var(--blue-deep); }
.cookie-category div > span { display: block; margin-top: 3px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.consent-switch { position: relative; display: grid; grid-template-columns: 46px; gap: 2px; justify-items: center; min-width: 72px; cursor: pointer; }
.consent-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.consent-switch > span { position: relative; width: 46px; height: 25px; border-radius: 20px; background: #c5cdd2; transition: background .2s ease; }
.consent-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .2s ease; }
.consent-switch input:checked + span { background: var(--blue); }
.consent-switch input:checked + span::after { transform: translateX(21px); }
.consent-switch input:focus-visible + span { outline: 3px solid rgba(45,99,149,.25); outline-offset: 2px; }
.consent-switch em { color: var(--muted); font-size: .64rem; font-style: normal; font-weight: 700; text-transform: uppercase; }
.cookie-modal__note { margin: 16px 0 0; padding: 14px 16px; border-radius: 8px; color: var(--muted); background: #eef3f6; font-size: .78rem; line-height: 1.55; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.cookie-modal__actions .button { width: auto; min-height: 46px; padding: 9px 14px; font-size: .7rem; }

/* Velvet footer gradient, using only the navy family. */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 4%,rgba(78,130,162,.24),transparent 36%),
    radial-gradient(circle at 84% 90%,rgba(34,83,113,.30),transparent 39%),
    linear-gradient(138deg,#08253d 0%,#153f59 48%,#0a2942 100%);
}
.footer-glow {
  display: block;
  position: absolute;
  width: 420px;
  height: 420px;
  top: -250px;
  left: 42%;
  border-radius: 50%;
  background: rgba(111,158,186,.16);
  filter: blur(70px);
  pointer-events: none;
}
.site-footer .footer-grid,
.site-footer .footer-bottom { position: relative; }

/* Five balanced desktop columns keep consumer links separate from company information. */
.site-footer .footer-grid {
  grid-template-columns: minmax(250px,1.55fr) repeat(4,minmax(135px,1fr));
  gap: clamp(24px,3vw,48px);
}

@media (max-width: 1180px) {
  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }
  .site-header.menu-open {
    position: fixed;
    z-index: 700;
    background: #faf7f3;
    border-bottom: 1px solid rgba(18, 52, 80, .10);
    box-shadow: 0 8px 24px rgba(10, 37, 59, .08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.menu-open::after { display: none; }
  .home-hero { --home-hero-height: 720px; }
  .header-shell {
    width: var(--shell);
    grid-template-columns: 220px auto 1fr;
  }
  .site-nav {
    z-index: 690;
    top: var(--header);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--header));
    min-height: calc(100vh - var(--header));
    gap: 2px;
    padding: 24px max(2rem, env(safe-area-inset-right)) calc(34px + env(safe-area-inset-bottom)) max(2rem, env(safe-area-inset-left));
    background: #faf7f3;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav > a,
  .nav-dropdown > button { font-size: .9rem; }
  .site-nav .nav-dropdown-menu {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    display: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 7px 0 5px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    box-sizing: border-box;
  }
  .site-nav .nav-dropdown.is-open .nav-dropdown-menu { display: grid; }
  .site-nav .nav-dropdown-menu a {
    width: 100%;
    padding: 11px 0;
    text-align: left;
    box-sizing: border-box;
  }
}

@media (max-width: 820px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .breadcrumbs,
  .academy-hero__breadcrumb { display: none !important; }
}

@media (max-width: 820px) {
  .home-hero { --home-hero-height: 820px; }
  .header-shell {
    width: var(--shell);
    grid-template-columns: 1fr auto auto;
  }
  .mission-narrative-grid { grid-template-columns: 1fr; gap: 30px; }
  .mission-statement { padding: 28px 0 0; border-top: 1px solid rgba(45, 99, 149, .22); border-left: 0; }
  .digital-resources-heading { display: block; }
  .digital-resources-heading > p { width: auto; margin-top: 14px; }
  .digital-resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section-heading h2,
  .editorial-layout h2,
  .ler-grid h2,
  .product-editorial h2,
  .legal-copy h2,
  .contact-layout > div h2 { font-size: 1.8rem; }
  .digital-resource-grid article { padding: 24px 22px; }
  .home-page .site-header {
    background: rgba(250,247,243,.96);
    border-bottom: 1px solid rgba(18,52,80,.10);
    box-shadow: 0 8px 24px rgba(10,37,59,.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .home-page .site-header::after { display: none; }
  .home-hero {
    --home-hero-height: auto;
    min-height: 0;
    padding-top: 74px;
  }
  .home-hero .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 10;
  }
  .home-hero .hero-media img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .home-hero .hero-fade {
    top: 74px;
    bottom: auto;
    height: calc((100vw * 10 / 9) + 54px);
    background: linear-gradient(180deg, transparent 61%, rgba(250,247,243,.58) 79%, var(--cream) 100%);
  }
  .home-hero .hero-content {
    min-height: 0;
    align-items: flex-start;
    padding-top: 0;
  }
  .home-hero .hero-copy {
    width: 100%;
    max-width: none;
    padding: 24px 0 52px;
  }
  .footer-grid .cookie-settings {
    width: max-content;
    margin: 0 auto 9px !important;
    text-align: center;
  }
  .product-page { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .mobile-cart-bar {
    position: fixed;
    z-index: 360;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,.72);
    background: rgba(250,247,243,.92);
    box-shadow: 0 -12px 34px rgba(8,37,61,.16);
    backdrop-filter: blur(16px) saturate(112%);
    -webkit-backdrop-filter: blur(16px) saturate(112%);
    box-sizing: border-box;
  }
  .mobile-cart-bar__price { min-width: 0; }
  .mobile-cart-bar__price span { display: block; color: var(--muted); font-size: .66rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .05em; }
  .mobile-cart-bar__price del { display: block; color: var(--muted); font-size: .72rem; line-height: 1.1; }
  .mobile-cart-bar__price strong { color: var(--blue-deep); font: 700 1.08rem/1.2 var(--serif); white-space: nowrap; }
  .mobile-cart-bar form { margin: 0; }
  .mobile-cart-bar .button { width: auto; min-height: 48px; padding: 10px 14px; font-size: .72rem; white-space: nowrap; }
  .mobile-cart-bar .button .icon { display: none; }
  .product-page .cookie-banner { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .legal-section { padding-top: 44px; }
  .legal-operator { grid-template-columns: 1fr; padding: 22px; }
  .legal-operator strong { grid-column: auto; }
  .legal-copy h2 { font-size: 1.65rem; }
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; gap: 14px; padding: 18px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .cookie-actions .button { width: 100%; }
  .cookie-actions .button-primary { grid-column: 1/-1; }
  .cookie-modal { padding: 0; align-items: end; }
  .cookie-modal__panel { max-height: 92vh; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .cookie-category { gap: 10px; }
  .cookie-modal__actions { display: grid; grid-template-columns: 1fr; }
  .cookie-modal__actions .button { width: 100%; }
  .product-page .cookie-banner { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-brand { grid-column: auto; }
  .site-nav {
    top: 74px;
    height: calc(100dvh - 74px);
    min-height: calc(100vh - 74px);
  }
}

/* Course experience: airy workspace, clear curriculum and readable lessons. */
.learning-page { background: #edf1f3; }
.learning-page #main-content {
  min-height: 100vh;
  background:
    radial-gradient(circle at 91% 8%, rgba(140,44,101,.07), transparent 28rem),
    linear-gradient(145deg, #f6f3ef 0%, #edf2f5 58%, #f8f6f3 100%);
}
.learning-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(310px, 23vw, 380px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3vw, 46px);
  padding: calc(var(--header) + 26px) clamp(22px, 3vw, 52px) 44px;
  background: transparent;
}
.course-sidebar {
  position: sticky;
  top: calc(var(--header) + 26px);
  height: calc(100vh - var(--header) - 52px);
  padding: 28px 18px 24px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(79,134,181,.34), transparent 19rem),
    linear-gradient(155deg, #0a2944, #123d5e 70%, #184968);
  box-shadow: 0 24px 54px rgba(8,37,61,.18);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.28) transparent;
}
.course-sidebar__top { padding: 0 10px 22px; border-bottom: 1px solid rgba(255,255,255,.13); }
.course-sidebar .back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: #c8dce8;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.course-sidebar .back-link:hover { color: #fff; }
.course-sidebar__label {
  display: block;
  margin-bottom: 9px;
  color: #efb9d5;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.course-sidebar h1 {
  margin: 0 0 22px;
  color: #fff;
  font: 400 clamp(1.2rem, 1.35vw, 1.45rem)/1.3 var(--serif);
}
.course-overall-progress > div:first-child { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 9px; font-size: .73rem; }
.course-overall-progress span { color: #c8dce8; }
.course-overall-progress strong { color: #fff; font-size: .73rem; }
.course-overall-progress__track { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.13); }
.course-overall-progress__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #bd5d93, #f0b9d6); }
.course-outline { padding: 8px 0 4px; }
.course-module { padding: 19px 3px 4px; }
.course-module + .course-module { margin-top: 5px; border-top: 1px solid rgba(255,255,255,.09); }
.course-module__number { margin: 0 10px 3px; color: #e5a7c8; font-size: .62rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.course-sidebar .course-module h2 { margin: 0 10px 11px; color: #eaf2f6; font-size: .78rem; line-height: 1.4; letter-spacing: .035em; text-transform: none; }
.course-lesson-link {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 4px 0;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #dbe7ee;
  transition: .2s ease;
}
.course-lesson-link:hover { color: #fff; background: rgba(255,255,255,.075); }
.course-lesson-link.active {
  color: #fff;
  border-color: rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  box-shadow: 0 10px 24px rgba(2,20,34,.15);
}
.course-lesson-link__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #c5d9e6;
  background: rgba(255,255,255,.08);
}
.course-lesson-link__icon .icon { width: 15px; height: 15px; }
.course-lesson-link.completed .course-lesson-link__icon { color: #fff; background: rgba(189,93,147,.72); }
.course-lesson-link.pending { opacity: .74; }
.course-lesson-link.pending .course-lesson-link__icon { color: #e5a7c8; border-color: rgba(229,167,200,.42); }
.course-lesson-link strong { display: block; font-size: .79rem; line-height: 1.42; font-weight: 650; }
.course-lesson-link small { display: block; margin-top: 3px; color: #afc6d5; font-size: .65rem; }
.lesson-stage { min-width: 0; padding: 4px 0 46px; }
.lesson-main { width: min(1080px, 100%); max-width: none; margin: 0 auto; padding: 0; }
.lesson-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 24px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(18,52,80,.11);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 44px rgba(14,43,67,.07);
  backdrop-filter: blur(10px);
}
.lesson-heading .eyebrow { margin-bottom: 9px; }
.lesson-main .lesson-heading h2 {
  max-width: 810px;
  margin: 0;
  color: var(--blue-deep);
  font: 400 clamp(2.15rem, 3.4vw, 3.55rem)/1.04 var(--serif);
  letter-spacing: -.025em;
}
.lesson-position {
  min-width: 78px;
  padding: 13px 14px;
  border: 1px solid rgba(45,99,149,.14);
  border-radius: 12px;
  text-align: center;
  background: #eff4f7;
}
.lesson-position span { display: block; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lesson-position strong { display: block; margin-top: 3px; color: var(--blue-deep); font: 700 1.1rem var(--serif); }
.learning-page .video-frame {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border: 7px solid rgba(255,255,255,.78);
  border-radius: 20px;
  background: #071b2b;
  box-shadow: 0 26px 62px rgba(10,37,59,.17);
}
.learning-page .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reading-cover {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 36px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 18%, rgba(211,114,167,.28), transparent 18rem),
    linear-gradient(135deg, #0c2d48, #184b6b);
  box-shadow: 0 26px 62px rgba(10,37,59,.14);
}
.reading-cover > .icon { width: 54px; height: 54px; color: #eeb7d4; }
.reading-cover span { display: block; color: #bed2df; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.reading-cover strong { display: block; margin-top: 3px; font: 400 1.45rem var(--serif); }
.lesson-audio { width: 100%; }
.learning-page .video-placeholder { min-height: 360px; border-radius: 20px; }
.lesson-pending-note { display: flex; align-items: center; gap: 9px; margin: 0; color: #6b7882; font-size: .88rem; }
.lesson-pending-note .icon { width: 18px; height: 18px; color: #a33770; }
.lesson-copy {
  margin: 28px 0;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(18,52,80,.11);
  border-radius: 18px;
  color: #344654;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 44px rgba(14,43,67,.065);
  font-size: 1rem;
  line-height: 1.78;
}
.lesson-copy > *:last-child { margin-bottom: 0; }
.lesson-copy .lesson-lead { color: var(--blue-deep); font: 400 clamp(1.2rem, 1.55vw, 1.42rem)/1.6 var(--serif); }
.lesson-copy h3 { margin: 36px 0 12px; color: var(--blue-deep); font: 400 clamp(1.42rem, 1.9vw, 1.75rem)/1.25 var(--serif); }
.lesson-copy h4 { margin: 26px 0 9px; color: var(--magenta); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.lesson-copy ul, .lesson-copy ol { display: grid; gap: 8px; padding-left: 22px; }
.lesson-copy blockquote,
.lesson-callout {
  margin: 28px 0;
  padding: 22px 24px;
  border: 0;
  border-left: 3px solid var(--magenta);
  border-radius: 0 12px 12px 0;
  color: var(--blue-deep);
  background: linear-gradient(135deg, #f8eef3, #f2f6f8);
  font: 400 1.08rem/1.6 var(--serif);
}
.lesson-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 25px 0; }
.lesson-checklist > div { padding: 17px 18px; border: 1px solid var(--line); border-radius: 11px; background: #f7f9fa; }
.lesson-checklist strong { display: block; margin-bottom: 3px; color: var(--blue-deep); }
.materials { margin: 28px 0; padding: 28px; border: 1px solid rgba(18,52,80,.11); border-radius: 16px; background: #fff; }
.materials h3 { color: var(--blue-deep); font: 400 1.4rem var(--serif); }
.lesson-actions { padding: 4px 0 12px; }
.progress-form { display: flex; align-items: center; gap: 14px; }
.progress-form [data-progress-message] { color: #257050; font-size: .8rem; font-weight: 700; }
.lesson-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.lesson-pagination a {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 19px;
  border: 1px solid rgba(18,52,80,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 28px rgba(14,43,67,.05);
  transition: .2s ease;
}
.lesson-pagination a:hover { border-color: rgba(45,99,149,.35); transform: translateY(-2px); }
.lesson-pagination span { color: var(--magenta); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lesson-pagination strong { margin-top: 4px; color: var(--blue-deep); font: 400 .98rem/1.35 var(--serif); }
.lesson-pagination__next { grid-column: 2; text-align: right; }

@media (max-width: 980px) {
  .learning-shell { grid-template-columns: 1fr; gap: 22px; padding: calc(var(--header) + 20px) 18px 36px; }
  .course-sidebar { position: relative; top: auto; height: auto; max-height: 540px; border-radius: 18px; }
  .course-sidebar__top { position: sticky; z-index: 2; top: -28px; margin: -1px -1px 0; padding: 25px 11px 20px; background: linear-gradient(155deg, #123754, #123d5e); }
  .course-outline { max-height: 310px; overflow: auto; }
  .lesson-stage { padding-bottom: 20px; }
}

@media (max-width: 600px) {
  .learning-page { --header: 74px; }
  .learning-shell { padding: calc(var(--header) + 14px) 10px 24px; }
  .course-sidebar { max-height: 480px; padding: 23px 13px 18px; border-radius: 14px; }
  .course-sidebar__top { top: -23px; padding-top: 21px; }
  .course-sidebar .back-link { margin-bottom: 18px; }
  .lesson-heading { gap: 14px; margin-bottom: 16px; padding: 22px 19px; border-radius: 14px; }
  .lesson-main .lesson-heading h2 { font-size: clamp(1.82rem, 9vw, 2.5rem); }
  .lesson-position { min-width: 66px; padding: 10px 8px; }
  .learning-page .video-frame { border-width: 4px; border-radius: 14px; }
  .reading-cover { min-height: 180px; padding: 25px; border-radius: 14px; }
  .lesson-copy { margin: 18px 0; padding: 25px 20px; border-radius: 14px; font-size: .95rem; }
  .lesson-copy h3 { margin-top: 29px; }
  .lesson-checklist { grid-template-columns: 1fr; }
  .progress-form { align-items: stretch; flex-direction: column; }
  .lesson-pagination { grid-template-columns: 1fr; }
  .lesson-pagination__next { grid-column: 1; text-align: left; }
}

/* Authenticated navigation. */
.mobile-account-link,
.mobile-admin-link { display: none !important; }
.header-actions { align-items: center; }
.my-courses-button,
.admin-dashboard-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-right: 5px;
  padding: 0 15px;
  border: 1px solid rgba(11,41,68,.12);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), #245f8c);
  box-shadow: 0 9px 22px rgba(11,41,68,.16);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.admin-dashboard-button {
  color: var(--blue-deep);
  background: rgba(255,255,255,.78);
  border-color: rgba(11,41,68,.2);
  box-shadow: 0 8px 20px rgba(11,41,68,.09);
}
.my-courses-button:hover,
.admin-dashboard-button:hover { transform: translateY(-1px); box-shadow: 0 12px 27px rgba(11,41,68,.22); }
.my-courses-button .icon,
.admin-dashboard-button .icon { width: 17px; height: 17px; }

/* Account hub. */
.account-page { background: #f4f6f7; }
.account-page .account-hero {
  padding: calc(var(--header) + 54px) 0 42px;
  background:
    radial-gradient(circle at 83% 14%, rgba(140,44,101,.09), transparent 25rem),
    linear-gradient(145deg, #f9f5f1, #eef3f5);
}
.account-page .account-hero > .account-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
}
.account-hero__welcome > p:last-child { max-width: 660px; margin: 0; color: var(--muted); }
.account-page .account-hero h1 { max-width: 900px; margin-bottom: 13px; }
.account-quicknav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 8px;
}
.account-quicknav a {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 19px;
  border: 1px solid rgba(18,52,80,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 12px 30px rgba(20,47,70,.055);
  transition: .2s ease;
}
.account-quicknav a:hover { border-color: rgba(45,99,149,.28); background: #fff; transform: translateY(-2px); }
.account-quicknav .icon { width: 27px; height: 27px; color: var(--blue); }
.account-quicknav strong { display: block; color: var(--blue-deep); font-size: .86rem; }
.account-quicknav small { display: block; margin-top: 2px; color: var(--muted); font-size: .71rem; }
.account-quicknav a.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), #245f8c);
  box-shadow: 0 14px 32px rgba(11,41,68,.18);
}
.account-quicknav a.is-active .icon,
.account-quicknav a.is-active strong,
.account-quicknav a.is-active small { color: #fff; }
.account-quicknav a.is-active small { opacity: .72; }
.account-section { padding-top: 56px; background: linear-gradient(180deg, #f4f6f7, #fff); }
.account-page-shell { max-width: 1160px; }
.account-page .account-grid { grid-template-columns: minmax(0, 1.55fr) minmax(310px, .62fr); gap: 28px; }
.account-panel,
.account-profile-card,
.account-password-card { scroll-margin-top: calc(var(--header) + 24px); }
.account-panel {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(18,52,80,.1);
  border-radius: 17px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 48px rgba(20,47,70,.065);
}
.account-panel + .account-panel { margin-top: 24px; }
.account-panel__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.account-panel__heading .eyebrow { margin-bottom: 5px; }
.account-panel__heading h2 { margin: 0; color: var(--blue-deep); font: 400 clamp(1.65rem, 2.2vw, 2.1rem)/1.15 var(--serif); }
.account-progress-summary { text-align: right; }
.account-progress-summary strong { display: block; color: var(--magenta); font: 700 1.5rem/1 var(--serif); }
.account-progress-summary span { color: var(--muted); font-size: .65rem; letter-spacing: .05em; text-transform: uppercase; }
.account-page .account-courses { gap: 15px; }
.account-page .account-courses article {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 14px;
  border-color: rgba(18,52,80,.1);
  border-radius: 13px;
  background: #f9fafb;
  transition: .2s ease;
}
.account-page .account-courses article:hover { border-color: rgba(45,99,149,.26); background: #fff; box-shadow: 0 14px 34px rgba(20,47,70,.07); transform: translateY(-2px); }
.account-course__image { overflow: hidden; border-radius: 9px; background: #e8eef2; }
.account-page .account-courses img { width: 180px; height: 144px; border-radius: 0; object-fit: contain; background: var(--blue-deep); transition: transform .3s ease; }
.account-page .account-courses article:hover img { transform: scale(1.025); }
.account-course__content { min-width: 0; align-self: center; }
.account-course__content .product-type { margin-bottom: 4px; }
.account-course__content h3 { margin-bottom: 15px; font-size: 1.18rem; }
.account-course__progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: .69rem; }
.account-course__progress-label strong { color: var(--blue-deep); }
.account-page .progress { height: 6px; margin-bottom: 13px; }
.account-page .progress span { background: linear-gradient(90deg, var(--blue), var(--magenta)); }
.account-course__continue { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.account-course__continue .icon { width: 16px; transition: transform .2s ease; }
.account-course__continue:hover .icon { transform: translateX(3px); }
.account-empty { padding: 48px 26px; background: #f8fafb; }
.account-empty > .icon { width: 42px; height: 42px; margin: 0 auto 13px; color: var(--blue); }
.account-empty p { color: var(--muted); }
.account-orders .responsive-table { margin: 0 -8px -5px; }
.account-orders table { min-width: 650px; }
.account-orders td { vertical-align: middle; }
.account-order-link { width: 34px; height: 34px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; color: var(--blue); background: #edf3f7; }
.account-order-link .icon { width: 16px; }
.account-orders__empty { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 100px; color: var(--muted); border-radius: 11px; background: #f8fafb; }
.account-orders__empty .icon { width: 22px; color: var(--blue); }
.account-profile-stack { position: sticky; top: calc(var(--header) + 22px); display: grid; gap: 20px; scroll-margin-top: calc(var(--header) + 22px); }
.account-profile-stack .form-card,
.account-profile-page .form-card { margin: 0; padding: 26px; border-radius: 16px; box-shadow: 0 18px 48px rgba(20,47,70,.065); }
.account-card__heading { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.account-card__heading > .icon { width: 30px; height: 30px; color: var(--blue); }
.account-card__heading .eyebrow { margin-bottom: 1px; font-size: .61rem; }
.account-card__heading h2 { margin: 0; font-size: 1.45rem; }
.account-profile-stack input:disabled,
.account-profile-page input:disabled { color: #62707b; background: #f1f3f4; opacity: 1; }
.account-profile-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  max-width: 1100px;
}

/* Produse digitale */
.digital-products-grid { margin-top: 34px; }
.digital-product-card {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr);
  overflow: hidden;
  border: 1px solid rgba(18,52,80,.11);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(18,55,80,.08);
}
.digital-product-card__image { display: grid; place-items: center; min-height: 490px; padding: 34px; background: #edf2f5; }
.digital-product-card__image img { width: min(100%, 310px); max-height: 430px; object-fit: contain; box-shadow: 0 18px 38px rgba(12,39,61,.17); transition: transform .25s ease; }
.digital-product-card__image:hover img { transform: translateY(-4px); }
.digital-product-card__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 70px); }
.digital-product-card__copy h3 { margin: 0 0 14px; color: var(--blue-deep); font: 400 clamp(2rem, 3vw, 3.15rem)/1.05 var(--serif); }
.digital-product-card__copy > p:not(.product-type) { max-width: 650px; color: var(--muted); font-size: 1.02rem; }
.digital-product-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.digital-product-card__bottom > div { display: grid; }
.digital-product-card__bottom span { color: var(--muted); font-size: .82rem; text-decoration: line-through; }
.digital-product-card__bottom strong { color: var(--magenta); font: 700 1.65rem var(--serif); }

.product-price-stack { display: grid; gap: 3px; min-width: 0; }
.product-price-stack .product-price-was { color: var(--muted); font-size: .78rem; line-height: 1.15; text-decoration: line-through; }
.product-price-stack strong { color: var(--magenta); font: 700 1.2rem/1.1 var(--serif); }
.product-price-stack small { max-width: 210px; color: #74405b; font-size: .68rem; font-weight: 700; line-height: 1.35; }
.product-card-bottom .product-price-stack { align-self: flex-start; }
.product-card-bottom .product-price-stack strong { color: var(--blue-deep); }
.cart-items .product-price-stack small { max-width: none; }

.digital-product-hero { padding: calc(var(--header) + 68px) 0 78px; overflow: hidden; background: linear-gradient(135deg, #eef3f6, #faf7f3 63%); }
.digital-product-hero__layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .6fr); gap: clamp(55px, 8vw, 120px); align-items: center; }
.digital-product-hero__copy { max-width: 760px; }
.digital-product-hero__copy h1 { margin: 12px 0 19px; color: var(--blue-deep); font: 400 clamp(3.8rem, 6vw, 6.8rem)/.9 var(--serif); letter-spacing: -.05em; }
.digital-product-hero__lead { margin-bottom: 16px; color: var(--magenta); font: 400 clamp(1.35rem, 2vw, 1.85rem)/1.35 var(--serif); }
.digital-product-hero__copy > p:not(.breadcrumbs,.eyebrow,.digital-product-hero__lead) { max-width: 680px; color: #40505d; font-size: 1.04rem; }
.digital-product-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 27px 0 30px; }
.digital-product-hero__facts span { display: flex; align-items: center; gap: 7px; color: #506271; font-size: .78rem; font-weight: 700; }
.digital-product-hero__facts .icon { width: 19px; color: var(--blue); }
.digital-product-cover { position: relative; justify-self: center; }
.digital-product-cover::before { content: ""; position: absolute; inset: 7% -8% -5% 8%; border-radius: 24px; background: rgba(45,99,149,.12); transform: rotate(4deg); }
.digital-product-cover img { position: relative; width: min(100%, 390px); max-height: 560px; object-fit: contain; box-shadow: 0 30px 70px rgba(12,39,61,.22); }

.digital-preview { background: #fff; }
.digital-preview .section-heading > p { max-width: 480px; color: var(--muted); }
.digital-preview__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.digital-preview__grid a { position: relative; display: block; overflow: hidden; padding: 15px 15px 0; border: 1px solid rgba(18,52,80,.1); border-radius: 14px; background: #f1f4f6; box-shadow: 0 14px 36px rgba(18,55,80,.07); }
.digital-preview__grid img { width: 100%; aspect-ratio: .707; object-fit: cover; object-position: top; background: #fff; }
.digital-preview__grid span { display: block; padding: 13px 2px 14px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.digital-product-body { background: linear-gradient(180deg, #f5f7f8, #fff); }
.promotion-deadline { margin: -8px 0 20px; padding: 10px 12px; border-left: 3px solid var(--magenta); color: #74405b; background: #f8eef3; font-size: .8rem; }

.account-resources-section { padding-top: 0; }
.account-resources { display: grid; gap: 16px; }
.account-resources article { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 25px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f9fafb; }
.account-resource__image { display: grid; place-items: center; min-height: 190px; padding: 12px; border-radius: 9px; background: #e8eef2; }
.account-resource__image img { width: 118px; max-height: 170px; object-fit: contain; box-shadow: 0 9px 23px rgba(12,39,61,.16); }
.account-resources h3 { margin: 2px 0 8px; color: var(--blue-deep); font: 400 1.5rem var(--serif); }
.account-resources p { max-width: 670px; color: var(--muted); }
.account-resources .button { width: auto; min-height: 44px; margin-top: 8px; }
.account-resource__pending { color: var(--magenta) !important; font-weight: 700; }

@media (min-width: 1181px) and (max-width: 1400px) {
  .header-shell { grid-template-columns: 205px minmax(0, 1fr) auto; }
  .brand { width: 205px; }
  .site-nav { gap: 7px; }
  .site-nav > a,
  .nav-dropdown > button { font-size: .62rem; letter-spacing: .025em; }
  .my-courses-button,
  .admin-dashboard-button { min-height: 39px; padding-inline: 9px; font-size: .56rem; }
  .header-actions .icon-button { width: 38px; height: 38px; }
}

@media (max-width: 1180px) {
  .my-courses-button,
  .admin-dashboard-button { display: none; }
  .site-nav > .mobile-account-link,
  .site-nav > .mobile-admin-link {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-start;
    gap: 11px;
    min-height: 52px;
    margin-bottom: 12px;
    padding: 0 15px;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-deep), #245f8c);
    box-shadow: 0 10px 24px rgba(11,41,68,.13);
  }
  .site-nav > .mobile-admin-link {
    margin-bottom: 8px;
    color: var(--blue-deep);
    background: #edf3f7;
    border: 1px solid rgba(11,41,68,.12);
    box-shadow: none;
  }
  .site-nav > .mobile-account-link::after,
  .site-nav > .mobile-admin-link::after { display: none; }
  .mobile-account-link .icon,
  .mobile-admin-link .icon { width: 20px; height: 20px; }
}

@media (max-width: 1050px) {
  .account-page .account-grid { grid-template-columns: 1fr; }
  .account-profile-stack { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .account-page .account-hero { padding-top: calc(var(--header) + 36px); }
  .account-page .account-hero > .account-hero__inner { grid-template-columns: 1fr; gap: 20px; }
  .account-page .account-hero form .button { width: auto; }
  .account-quicknav { grid-template-columns: 1fr; gap: 8px; }
  .account-quicknav a { min-height: 66px; }
  .account-section { padding-top: 34px; }
  .account-profile-stack { grid-template-columns: 1fr; }
  .account-profile-page { grid-template-columns: 1fr; }
  .digital-product-card { grid-template-columns: 1fr; }
  .digital-product-card__image { min-height: 390px; }
  .digital-product-card__copy { padding: 30px 24px; }
  .digital-product-card__bottom { align-items: stretch; flex-direction: column; }
  .digital-product-hero { padding-top: calc(var(--header) + 36px); }
  .digital-product-hero__layout { grid-template-columns: 1fr; gap: 44px; }
  .digital-product-hero__copy { text-align: center; }
  .digital-product-hero__copy h1 { font-size: 4rem; }
  .digital-product-hero__facts { justify-content: center; }
  .digital-preview__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .account-resources article { grid-template-columns: 1fr; }
  .account-resource__image { min-height: 260px; }
}

@media (max-width: 560px) {
  .header-actions .account-icon { display: none; }
  .account-page .account-hero { padding-top: 106px; }
  .account-page .account-hero h1 { font-size: 2.35rem; }
  .account-page .account-hero form .button { width: 100%; }
  .account-panel { padding: 22px 16px; border-radius: 13px; }
  .account-panel__heading { align-items: flex-start; }
  .account-page .account-courses article { grid-template-columns: 1fr; padding: 12px; }
  .account-course__image { aspect-ratio: 16 / 9; }
  .account-page .account-courses img { width: 100%; height: 100%; }
  .account-profile-stack .form-card,
  .account-profile-page .form-card { padding: 22px 18px; }
  .digital-product-hero__copy h1 { font-size: 3.25rem; }
  .digital-product-hero__facts { display: grid; justify-content: center; }
  .digital-product-cover img { max-height: 470px; }
  .account-resources .button { width: 100%; }
}
/* v2.4.0 — Instrumente de lucru și Biblioteca Serenity */
.tools-intro{max-width:820px;margin:0 auto 70px;text-align:center}.tools-intro h2{font-family:var(--font-display);font-size:clamp(2rem,4vw,3.5rem);color:var(--navy);margin:.4rem 0 1rem}.tool-series{padding:52px 0;border-top:1px solid rgba(20,58,88,.13)}.tool-series__heading{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;margin-bottom:28px}.tool-series__heading h2{font-family:var(--font-display);font-size:clamp(2rem,3vw,3rem);color:var(--navy);margin:.25rem 0}.tool-series__heading>p{max-width:530px}.library-grid{display:grid;gap:42px}.library-card{display:grid;grid-template-columns:minmax(220px,330px) 1fr;gap:42px;padding:32px;background:#fff;border:1px solid rgba(20,58,88,.1);border-radius:20px;box-shadow:0 18px 55px rgba(15,47,72,.08)}.library-card__cover img{width:100%;aspect-ratio:210/297;object-fit:cover;display:block;border-radius:10px;box-shadow:0 14px 32px rgba(9,34,52,.18)}.library-card h2{font-family:var(--font-display);font-size:clamp(2rem,3.5vw,3.25rem);line-height:1.05;color:var(--navy);margin:.5rem 0}.library-card h2 a{color:inherit}.library-card__subtitle{font-size:1.15rem;color:var(--berry);font-weight:700}.library-card__meta,.library-detail-facts{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.library-card__meta span,.library-detail-facts span{padding:8px 12px;border-radius:999px;background:#edf5f8;color:var(--navy);font-size:.86rem;font-weight:700}.library-detail-hero{padding:80px 0;background:linear-gradient(135deg,#f8f4f0,#eef5f7)}.library-detail-hero__layout{display:grid;grid-template-columns:1fr minmax(260px,390px);gap:70px;align-items:center}.library-detail-hero h1{font-family:var(--font-display);font-size:clamp(3rem,6vw,5.8rem);line-height:.95;color:var(--navy);margin:20px 0}.library-detail-hero__subtitle{font-family:var(--font-display);font-size:clamp(1.5rem,2.5vw,2.25rem);color:var(--berry)}.library-detail-hero__layout>img{width:100%;border-radius:12px;box-shadow:0 26px 70px rgba(13,43,65,.2)}.library-presentation__layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:70px;align-items:start}.library-presentation aside{position:sticky;top:110px;padding:28px;background:#f3f7f8;border-radius:16px}.library-warning{padding:24px;border-left:5px solid var(--berry);background:#fff3f4;border-radius:8px}.library-reader-section{background:#123c5c;color:#fff}.reader-toolbar{display:flex;justify-content:space-between;gap:30px;align-items:center;margin-bottom:15px}.reader-toolbar h2{font-family:var(--font-display);font-size:clamp(1.8rem,3vw,3rem);margin:.25rem 0}.reader-toolbar>div:last-child{display:flex;align-items:center;gap:10px}.reader-toolbar button{width:40px;height:40px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:transparent;color:#fff;font-size:1.35rem;cursor:pointer}.reader-notice{color:rgba(255,255,255,.78);margin-bottom:30px}.library-reader-pages{--reader-width:100%;max-width:100%;overflow-x:auto}.library-reader-pages figure{width:var(--reader-width);max-width:none;margin:0 auto 34px}.library-reader-pages img{width:100%;display:block;background:#fff;box-shadow:0 16px 46px rgba(0,0,0,.3);user-select:none}.library-reader-pages figcaption{text-align:center;color:rgba(255,255,255,.68);padding-top:8px;font-size:.8rem}
@media(max-width:800px){.tool-series__heading,.library-card,.library-detail-hero__layout,.library-presentation__layout{grid-template-columns:1fr}.library-card{padding:20px}.library-card__cover{max-width:260px;margin:auto}.library-detail-hero{padding:45px 0}.library-detail-hero__layout>img{max-width:300px;margin:auto;order:-1}.library-presentation aside{position:static}.reader-toolbar{align-items:flex-start;flex-direction:column}.library-reader-pages{--reader-width:100%!important}}
.withdrawal-template{margin:28px 0;padding:28px;border:1px solid var(--line);border-radius:12px;background:#fff}.withdrawal-template p{margin:0 0 18px}.withdrawal-template p:last-child{margin-bottom:0}

.access-code-notice { display: grid; gap: 4px; margin: 2px 0 12px; padding: 13px 15px; border: 1px solid rgba(45,99,149,.22); border-radius: 10px; color: var(--blue-deep); background: #edf5fa; }
.access-code-notice span { color: var(--muted); font-size: .84rem; line-height: 1.5; }

/* v2.15.0 — cont compact și navigare clară pe mobil. */
.account-welcome__mobile,
.account-nav__mobile { display: none; }
.account-section[data-account-content] {
  scroll-margin-top: calc(var(--header) + 12px);
  outline: none;
}

@media (max-width: 720px) {
  .account-page .account-hero {
    padding: calc(var(--header) + 20px) 0 22px;
  }
  .account-page .account-hero > .account-hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 10px;
    align-items: center;
  }
  .account-hero__welcome { min-width: 0; }
  .account-hero__welcome .eyebrow,
  .account-hero__welcome > p:last-child,
  .account-welcome__desktop,
  .account-nav__desktop,
  .account-quicknav small { display: none; }
  .account-welcome__mobile,
  .account-nav__mobile { display: inline; }
  .account-page .account-hero h1 {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    font-size: clamp(1.45rem, 6.4vw, 2rem);
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .account-logout { justify-self: end; }
  .account-page .account-logout .button {
    width: auto;
    min-height: 38px;
    padding: 8px 11px;
    font-size: .65rem;
  }
  .account-quicknav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
  }
  .account-quicknav a {
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    gap: 0;
    padding: 8px 4px;
    border-radius: 9px;
    text-align: center;
    box-shadow: 0 7px 18px rgba(20,47,70,.05);
    transform: none;
  }
  .account-quicknav a:hover { transform: none; }
  .account-quicknav .icon { display: none; }
  .account-quicknav strong {
    overflow: hidden;
    font-size: .75rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .account-section { padding-top: 20px; }
}

@media (max-width: 390px) {
  .account-page .account-hero > .account-hero__inner { column-gap: 7px; }
  .account-page .account-hero h1 { font-size: 1.35rem; }
  .account-page .account-logout .button { padding-inline: 8px; font-size: .6rem; }
  .account-quicknav strong { font-size: .69rem; }
}
.access-activation-card { gap: 14px; }
.access-activation-summary { margin: 4px 0 8px; padding: 18px; border: 1px solid rgba(45,99,149,.2); border-radius: 12px; background: rgba(238,246,250,.88); }
.access-activation-summary > strong { display: block; margin-bottom: 10px; color: var(--blue-deep); font-family: var(--serif); font-size: 1.25rem; }
.access-activation-summary ul { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.access-activation-summary li { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: .88rem; font-weight: 700; }
.access-activation-summary li .icon { width: 18px; height: 18px; color: var(--blue); }
.access-activation-summary small { color: var(--muted); }
.access-code-label { margin: 2px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }

/* Remains visible while scrolling, above the header and mobile purchase bar. */
.diagnostic-toolbar { position: fixed; z-index: 1200; right: 18px; bottom: 18px; display: grid; gap: 5px; width: min(360px, calc(100vw - 36px)); padding: 16px; border: 2px solid #b27b09; border-radius: 14px; background: #fff0c2; color: #123450; box-shadow: 0 8px 32px rgba(0,0,0,.24); font-family: inherit; }
.diagnostic-toolbar span { overflow-wrap: anywhere; font-size: .88rem; }
.diagnostic-toolbar small { font-size: .76rem; }
.diagnostic-toolbar form { margin: 5px 0 0; }
.diagnostic-return { display: block; width: 100%; padding: 11px 16px; border: 0; border-radius: 8px; background: #123450; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.diagnostic-return:focus-visible { outline: 3px solid #b27b09; outline-offset: 3px; }
@media (max-width: 760px) {
  .diagnostic-toolbar { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: min(340px, calc(100vw - 20px)); padding: 12px; }
  .product-page .diagnostic-toolbar { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* Account entry is always labelled and visible, including with the mobile menu closed. */
.header-actions { align-items: center; gap: 8px; }
.account-access-button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--blue-deep); border-radius: 9px; background: var(--blue-deep); color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.account-access-button:hover { background: #245f8c; color: #fff; }
.account-access-button:focus-visible { outline: 3px solid #b27b09; outline-offset: 3px; }
.account-access-button .icon { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 1180px) {
  .header-shell { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .header-actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .account-access-button { min-height: 44px; padding: 10px 12px; font-size: .78rem; }
}
@media (max-width: 560px) {
  .header-shell { width: calc(100% - 24px); gap: 6px; }
  .brand { width: min(145px, 100%); }
  .header-actions { gap: 4px; }
  .account-access-button { min-height: 44px; padding: 10px; font-size: .75rem; gap: 5px; }
  .account-access-button .icon { display: none; }
  .header-actions .bag-button { display: grid; width: 34px; height: 44px; }
  .menu-toggle { width: 34px; height: 44px; }
}
@media (max-width: 360px) {
  .brand { width: min(112px, 100%); }
  .account-access-button { padding-inline: 8px; font-size: .7rem; }
}
