/*
Theme Name: Gradovia Learning
Theme URI: https://gradovialearning.com
Author: Gradovia Learning
Description: A clean, mobile-first WordPress theme for Gradovia Learning.
Version: 0.5.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: gradovia-learning
*/

:root {
  color-scheme: light;
  --gl-bg: #f8f9f6;
  --gl-surface: #ffffff;
  --gl-blue: #b7e4fb;
  --gl-blue-strong: #6ec8ef;
  --gl-mint: #c7f4d9;
  --gl-mint-strong: #66cc93;
  --gl-periwinkle: #d9dcff;
  --gl-navy: #0b1730;
  --gl-ink: #25314a;
  --gl-muted: #6b7280;
  --gl-line: rgba(11, 23, 48, 0.12);
  --gl-shadow: 0 18px 45px rgba(11, 23, 48, 0.11);
  --gl-shadow-soft: 0 10px 28px rgba(11, 23, 48, 0.08);
  --gl-radius: 20px;
  --gl-radius-sm: 14px;
  --gl-max: 1180px;
  --gl-header-height: 85px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --gl-bg: #09111e;
  --gl-surface: #111e31;
  --gl-blue: #73c7ef;
  --gl-blue-strong: #54b9e9;
  --gl-mint: #89ddb1;
  --gl-mint-strong: #5fcb91;
  --gl-periwinkle: #9fa9ef;
  --gl-navy: #f1f7ff;
  --gl-ink: #d6e2f0;
  --gl-muted: #9cabc0;
  --gl-line: rgba(216, 231, 247, 0.16);
  --gl-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
  --gl-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.26);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gl-ink);
  background:
    linear-gradient(180deg, rgba(174, 225, 255, 0.22), transparent 420px),
    var(--gl-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: background 240ms ease, color 240ms ease;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 16px;
  background: rgba(248, 249, 246, 0.9);
  border-bottom: 1px solid rgba(11, 23, 48, 0.04);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--gl-max);
  min-height: 60px;
  margin: 0 auto;
  padding: 8px;
  background: rgba(224, 248, 237, 0.92);
  border: 1px solid rgba(57, 151, 113, 0.2);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(32, 85, 73, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding-left: 8px;
  color: var(--gl-navy);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: 132px;
  object-fit: contain;
}

.brand-logo-dark {
  display: none;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.primary-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--gl-ink);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--gl-navy);
  background: rgba(255, 255, 255, 0.66);
  outline: none;
  transform: translateY(-1px);
}

.primary-nav a.is-active,
.primary-nav a[aria-current="location"] {
  color: var(--gl-navy);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(11, 23, 48, 0.08);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 8px;
  padding-right: 2px;
}

.theme-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--gl-navy);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(11, 23, 48, 0.14);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.theme-toggle-track {
  position: relative;
  width: 32px;
  height: 20px;
  flex: 0 0 auto;
  background: rgba(11, 23, 48, 0.14);
  border: 1px solid rgba(11, 23, 48, 0.12);
  border-radius: 999px;
  transition: background 180ms ease, border-color 180ms ease;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: var(--gl-navy);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(11, 23, 48, 0.22);
  transition: transform 180ms ease, background 180ms ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-track,
:root[data-theme="dark"] .theme-toggle-track {
  background: linear-gradient(135deg, var(--gl-blue), var(--gl-mint));
  border-color: transparent;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb,
:root[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(12px);
}

.button,
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.button:active,
.nav-button:active,
.section-link:active,
.card-action:active,
.exam-row-card a:active {
  transform: translateY(0) scale(0.98);
}

.button-primary,
.nav-button-primary {
  color: var(--gl-navy);
  background: var(--gl-mint);
  box-shadow: 0 10px 20px rgba(61, 154, 119, 0.18);
}

.button-secondary,
.nav-button-secondary {
  color: var(--gl-navy);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(11, 23, 48, 0.18);
}

.nav-toggle {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--gl-navy);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--gl-line);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-90deg);
}

.mobile-panel {
  max-width: var(--gl-max);
  max-height: 0;
  margin: 10px auto 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 240ms ease, opacity 200ms ease, transform 200ms ease;
}

.mobile-panel.is-open {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-panel-inner {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--gl-line);
  border-radius: 24px;
  box-shadow: var(--gl-shadow-soft);
}

.mobile-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  color: var(--gl-navy);
  background: rgba(174, 225, 255, 0.2);
  border-radius: 16px;
  font-weight: 800;
}

.mobile-panel a.is-active,
.mobile-panel a[aria-current="location"] {
  background: rgba(174, 225, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(11, 23, 48, 0.08);
}

.mobile-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-actions {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.site-main {
  max-width: var(--gl-max);
  margin: 0 auto;
  padding: 28px 16px 76px;
}

.hero-preview {
  display: grid;
  gap: 22px;
  align-items: center;
  min-height: clamp(520px, calc(100vh - 132px), 660px);
  padding: 28px 0 44px;
}

.hero-preview.hero-home {
  min-height: auto;
  padding: 42px 0 56px;
}

.site-main.home-main {
  max-width: none;
  padding: 0 0 76px;
}

.home-main .hero-preview.hero-home {
  position: relative;
  min-height: calc(100vh - var(--gl-header-height));
  min-height: calc(100svh - var(--gl-header-height));
  grid-template-columns: minmax(0, 650px);
  align-content: center;
  margin: 0 0 34px;
  padding-block: clamp(56px, 7vw, 92px);
  padding-inline: max(24px, calc(50vw - 566px));
  background-color: #c8eafb;
  background-image: url("assets/images/gradovia-hero-study.jpg");
  background-position: calc(100% + 28px) bottom;
  background-repeat: no-repeat;
  background-size: min(68vw, 980px) auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.home-main .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.home-main .hero-mobile-art {
  display: none;
}

.home-main .hero-title {
  max-width: 650px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.94;
}

.home-main .hero-description {
  max-width: 560px;
  color: #38536a;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.home-main .eyebrow {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(255, 255, 255, 0.74);
}

.home-main .button-primary {
  background: var(--gl-mint);
  border-color: rgba(30, 111, 76, 0.16);
}

.home-main .hero-action-note {
  color: #38536a;
}

.home-main .hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  max-width: 650px;
}

.home-main .hero-benefits li {
  font-size: 0.88rem;
}

.home-main .hero-benefits li::before {
  background: #ffffff;
  border-color: rgba(11, 23, 48, 0.16);
}

.hero-copy,
.hero-visual {
  animation: gl-rise 620ms ease both;
}

[id] {
  scroll-margin-top: 104px;
}

@media (prefers-reduced-motion: no-preference) {
  .has-js .motion-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 560ms ease, transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  .has-js .motion-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
  }

  .has-js .section-panel .motion-reveal-item {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
    transition: opacity 420ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .has-js .section-panel.is-revealed .motion-reveal-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: var(--motion-delay, 0ms);
  }
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-title {
  max-width: 680px;
  margin: 0;
  color: var(--gl-navy);
  font-size: clamp(2.65rem, 7vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-description {
  max-width: 620px;
  margin: 0;
  color: var(--gl-muted);
  font-size: clamp(1.04rem, 2vw, 1.18rem);
}

.hero-benefits {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--gl-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-benefits li::before {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--gl-blue-strong), var(--gl-mint-strong));
  border: 2px solid rgba(11, 23, 48, 0.12);
  border-radius: 999px;
  content: "";
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--gl-navy);
  background: rgba(191, 247, 215, 0.58);
  border: 1px solid rgba(11, 23, 48, 0.08);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.skeleton-stack {
  display: grid;
  gap: 12px;
  max-width: 620px;
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, rgba(11, 23, 48, 0.16), rgba(11, 23, 48, 0.06));
  border-radius: 999px;
}

.skeleton-line-xl {
  height: clamp(42px, 13vw, 78px);
  max-width: 720px;
  background: var(--gl-navy);
}

.skeleton-line-lg {
  height: clamp(42px, 10vw, 66px);
  width: 74%;
  background: var(--gl-navy);
}

.skeleton-line-md {
  width: min(88%, 520px);
}

.skeleton-line-sm {
  width: min(68%, 420px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.hero-action-note {
  color: var(--gl-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 340px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(174, 225, 255, 0.78), rgba(191, 247, 215, 0.62));
  border: 1px solid rgba(11, 23, 48, 0.08);
  border-radius: var(--gl-radius);
  box-shadow: var(--gl-shadow);
  overflow: hidden;
}

.browser-frame {
  display: grid;
  gap: 14px;
  height: 100%;
  min-height: 304px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.browser-top {
  display: flex;
  gap: 7px;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(11, 23, 48, 0.18);
  border-radius: 999px;
}

.mock-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 12px;
  height: 100%;
}

.mock-sidebar,
.mock-content,
.mock-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(11, 23, 48, 0.08);
  border-radius: 16px;
}

.mock-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
}

.mock-pill {
  height: 28px;
  background: rgba(174, 225, 255, 0.62);
  border-radius: 999px;
}

.mock-content {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.mock-card {
  min-height: 82px;
  padding: 12px;
}

.progress-line {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  background: rgba(11, 23, 48, 0.08);
  border-radius: 999px;
}

.progress-line::before {
  display: block;
  width: 66%;
  height: 100%;
  background: linear-gradient(90deg, var(--gl-blue-strong), var(--gl-mint-strong));
  border-radius: inherit;
  content: "";
  animation: gl-progress 1200ms ease both;
}

.floating-chip {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--gl-navy);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(11, 23, 48, 0.08);
  border-radius: 999px;
  box-shadow: var(--gl-shadow-soft);
  font-size: 0.88rem;
  font-weight: 900;
  animation: gl-float 4s ease-in-out infinite;
}

.chip-icon {
  width: 12px;
  height: 12px;
  background: var(--gl-mint-strong);
  border-radius: 999px;
}

.section-panel {
  scroll-margin-top: 112px;
  margin-bottom: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--gl-line);
  border-radius: var(--gl-radius);
  box-shadow: var(--gl-shadow-soft);
}

.featured-panel {
  background: rgba(247, 248, 255, 0.88);
  border-color: rgba(158, 167, 237, 0.3);
}

.featured-panel .section-kicker {
  background: rgba(217, 220, 255, 0.82);
}

.home-main .section-panel {
  max-width: var(--gl-max);
  margin: 0 auto 24px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--gl-surface);
  border-color: rgba(32, 71, 97, 0.12);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(31, 63, 86, 0.08);
}

.home-main .featured-panel {
  background: #f8fbff;
  border-color: rgba(145, 183, 230, 0.42);
}

.home-main .featured-panel .section-header {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(32, 71, 97, 0.1);
}

.home-main .featured-panel .section-kicker {
  background: rgba(217, 220, 255, 0.88);
}

.home-main .section-panel h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.section-panel:nth-of-type(3) {
  animation-delay: 80ms;
}

.section-panel:nth-of-type(4) {
  animation-delay: 160ms;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-kicker {
  display: inline-flex;
  width: max-content;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: var(--gl-navy);
  background: rgba(174, 225, 255, 0.48);
  border: 1px solid rgba(11, 23, 48, 0.08);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-panel h2,
.section-panel h3,
.section-panel h4,
.section-panel p {
  margin: 0;
}

.section-panel h2 {
  margin-top: 8px;
  color: var(--gl-navy);
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-link,
.card-action,
.exam-row-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--gl-navy);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(11, 23, 48, 0.14);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.section-link:hover,
.section-link:focus-visible,
.card-action:hover,
.card-action:focus-visible,
.exam-row-card a:hover,
.exam-row-card a:focus-visible {
  background: rgba(174, 225, 255, 0.56);
  border-color: rgba(11, 23, 48, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.featured-grid,
.category-grid {
  display: grid;
  gap: 14px;
}

.exam-directory-controls {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.directory-search {
  display: block;
  width: min(100%, 420px);
}

.directory-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  color: var(--gl-ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(11, 23, 48, 0.14);
  border-radius: 999px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.directory-search input::placeholder {
  color: var(--gl-muted);
  opacity: 1;
}

.directory-search input:focus {
  background: #ffffff;
  border-color: var(--gl-blue-strong);
  box-shadow: 0 0 0 4px rgba(110, 200, 239, 0.2);
}

.directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-filter {
  min-height: 38px;
  padding: 0 13px;
  color: var(--gl-ink);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(11, 23, 48, 0.12);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.directory-filter:hover,
.directory-filter:focus-visible {
  background: rgba(174, 225, 255, 0.46);
  border-color: rgba(11, 23, 48, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.directory-filter.is-active {
  color: var(--gl-navy);
  background: var(--gl-mint);
  border-color: rgba(30, 111, 76, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.directory-results {
  margin: 0;
  color: var(--gl-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.exam-directory-empty {
  margin: 0;
  padding: 16px;
  color: var(--gl-muted);
  background: rgba(174, 225, 255, 0.14);
  border: 1px dashed rgba(11, 23, 48, 0.16);
  border-radius: var(--gl-radius-sm);
  font-weight: 700;
}

.exam-card,
.category-card {
  border: 1px solid rgba(11, 23, 48, 0.1);
  border-radius: var(--gl-radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.exam-card {
  display: grid;
  gap: 14px;
  min-height: 230px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(174, 225, 255, 0.22), rgba(191, 247, 215, 0.18)),
    var(--gl-surface);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.exam-card:nth-child(2) {
  background: rgba(246, 247, 255, 0.94);
}

.exam-card:hover,
.exam-card:focus-within {
  border-color: rgba(11, 23, 48, 0.18);
  box-shadow: var(--gl-shadow-soft);
  transform: translateY(-3px);
}

.category-card,
.resource-card,
.exam-row-card {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.category-card:hover,
.category-card:focus-within,
.resource-card:hover,
.resource-card:focus-within,
.exam-row-card:hover,
.exam-row-card:focus-within {
  border-color: rgba(11, 23, 48, 0.22);
  box-shadow: var(--gl-shadow-soft);
  transform: translateY(-3px);
}

.category-card:active,
.resource-card:active,
.exam-card:active,
.exam-row-card:active {
  transform: translateY(0) scale(0.99);
}

.home-main .exam-card {
  min-height: 244px;
  padding: 20px;
  background: #ffffff;
  border-color: rgba(32, 71, 97, 0.12);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(31, 63, 86, 0.05);
}

.home-main .exam-card:nth-child(2) {
  background: #faf9ff;
}

.home-main .exam-card:hover,
.home-main .exam-card:focus-within {
  box-shadow: 0 14px 28px rgba(31, 63, 86, 0.12);
  transform: translateY(-4px);
}

.exam-card-top,
.category-card-header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.exam-icon,
.exam-mini-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  background: linear-gradient(135deg, var(--gl-blue), var(--gl-mint));
  border: 1px solid rgba(11, 23, 48, 0.08);
}

.exam-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.exam-card:nth-child(2) .exam-icon,
.category-card:nth-child(2) .exam-mini-icon {
  background: var(--gl-periwinkle);
}

.exam-icon::before,
.exam-mini-icon::before {
  width: 42%;
  height: 52%;
  border: 2px solid rgba(11, 23, 48, 0.7);
  border-top-width: 5px;
  border-radius: 3px;
  content: "";
}

.exam-mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.status-badge,
.exam-category,
.resource-row span,
.construction-badge,
.category-card-header span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-badge {
  color: var(--gl-navy);
  background: rgba(191, 247, 215, 0.72);
}

.exam-card:nth-child(2) .status-badge,
.category-card:nth-child(2) .category-card-header span {
  background: rgba(217, 220, 255, 0.82);
}

.exam-category {
  color: var(--gl-muted);
  background: rgba(11, 23, 48, 0.06);
}

.exam-card h3 {
  color: var(--gl-navy);
  font-size: 1.35rem;
  line-height: 1.15;
}

.exam-card-description {
  margin: 0;
  color: var(--gl-muted);
  font-size: 0.92rem;
}

.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-row span {
  color: var(--gl-navy);
  background: rgba(174, 225, 255, 0.42);
}

.card-action {
  align-self: end;
  width: max-content;
}

.home-main .card-action {
  background: rgba(183, 228, 251, 0.58);
  border-color: rgba(78, 164, 206, 0.2);
}

.category-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.home-main .category-card {
  gap: 16px;
  padding: 18px;
  background: #fbfcff;
  border-color: rgba(32, 71, 97, 0.12);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(31, 63, 86, 0.04);
}

.category-card-empty {
  min-height: 124px;
  align-content: start;
}

.category-card h3 {
  color: var(--gl-navy);
  font-size: 1.12rem;
}

.category-card-header span {
  color: var(--gl-muted);
  background: rgba(11, 23, 48, 0.06);
}

.exam-row-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 23, 48, 0.08);
  border-radius: 16px;
}

.home-main .exam-row-card {
  background: #ffffff;
  border-color: rgba(32, 71, 97, 0.1);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(31, 63, 86, 0.04);
}

.exam-row-card h4 {
  color: var(--gl-navy);
  font-size: 1rem;
}

.exam-row-card p {
  margin-top: 3px;
  color: var(--gl-muted);
  font-size: 0.9rem;
}

.category-empty {
  margin: 0;
  color: var(--gl-muted);
  font-size: 0.92rem;
}

.courses-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(217, 220, 255, 0.62), transparent 34%),
    linear-gradient(135deg, rgba(191, 247, 215, 0.48), rgba(255, 255, 255, 0.86));
}

.home-main .courses-panel {
  background: #e4f7ed;
  border-color: rgba(72, 165, 119, 0.26);
}

.home-main .construction-badge {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(72, 165, 119, 0.2);
}

.courses-panel p {
  max-width: 680px;
  margin-top: 10px;
  color: var(--gl-muted);
}

.construction-badge {
  color: var(--gl-navy);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 23, 48, 0.12);
}

.site-footer {
  padding: 0 16px 22px;
}

.footer-inner {
  display: grid;
  gap: 18px;
  max-width: var(--gl-max);
  margin: 0 auto;
  padding: 22px;
  color: var(--gl-muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--gl-line);
  border-radius: 22px;
  font-size: 0.92rem;
}

.footer-brand {
  display: grid;
  gap: 10px;
  max-width: 430px;
}

.footer-brand .brand {
  padding-left: 0;
}

.footer-brand p,
.footer-disclaimer {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal-links {
  padding-top: 4px;
  border-top: 1px solid rgba(11, 23, 48, 0.08);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gl-navy);
  outline: none;
}

.footer-disclaimer {
  max-width: 980px;
  color: #596272;
  font-size: 0.84rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 23, 48, 0.08);
}

.exam-main,
.legal-main {
  padding-top: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 14px;
  padding: 0 13px;
  color: var(--gl-navy);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--gl-line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
}

.exam-hero {
  display: grid;
  gap: 18px;
  align-items: stretch;
  background:
    radial-gradient(circle at top right, rgba(174, 225, 255, 0.72), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(191, 247, 215, 0.38));
}

.exam-hero-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.exam-hero h1,
.legal-hero h1 {
  margin: 0;
  color: var(--gl-navy);
  font-size: clamp(2.3rem, 10vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.exam-hero p,
.legal-hero p,
.exam-content-panel p,
.resource-card p,
.legal-card p {
  margin: 0;
  color: var(--gl-muted);
}

.exam-summary-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(11, 23, 48, 0.1);
  border-radius: var(--gl-radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.summary-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  background: rgba(11, 23, 48, 0.04);
  border-radius: 14px;
}

.summary-metric span {
  color: var(--gl-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.summary-metric strong {
  color: var(--gl-navy);
  font-size: 0.92rem;
}

.exam-layout {
  display: grid;
  gap: 22px;
}

.exam-content-panel,
.resources-panel {
  display: grid;
  gap: 16px;
}

.resources-heading {
  display: grid;
  gap: 8px;
}

.resources-heading h2,
.resources-intro {
  margin: 0;
}

.resources-intro {
  color: var(--gl-muted);
  font-size: 0.92rem;
}

.objective-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.objective-list span {
  display: block;
  height: 14px;
  background: linear-gradient(90deg, rgba(11, 23, 48, 0.14), rgba(174, 225, 255, 0.26));
  border-radius: 999px;
}

.objective-list span:nth-child(2) {
  width: 82%;
}

.objective-list span:nth-child(3) {
  width: 64%;
}

.resource-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 23, 48, 0.1);
  border-radius: var(--gl-radius-sm);
}

.resource-card-free {
  background: rgba(255, 255, 255, 0.86);
}

.resource-card.premium {
  background: linear-gradient(135deg, rgba(174, 225, 255, 0.26), rgba(191, 247, 215, 0.28));
  border-color: rgba(57, 151, 113, 0.22);
}

.resource-card.premium .premium-cta {
  color: #ffffff;
  background: #1d6e87;
  border-color: #1d6e87;
  box-shadow: 0 8px 16px rgba(29, 110, 135, 0.2);
}

.resource-card.premium .premium-cta:hover,
.resource-card.premium .premium-cta:focus-visible {
  color: #ffffff;
  background: #15586d;
  border-color: #15586d;
  box-shadow: 0 10px 20px rgba(29, 110, 135, 0.24);
}

.resource-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.resource-tier,
.resource-access {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.resource-tier {
  padding: 0 10px;
  color: var(--gl-navy);
  background: rgba(174, 225, 255, 0.54);
  border: 1px solid rgba(11, 23, 48, 0.08);
}

.resource-card.premium .resource-tier {
  background: rgba(191, 247, 215, 0.74);
}

.resource-access {
  color: var(--gl-muted);
  text-align: right;
}

.resource-features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-features li {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--gl-ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.resource-features li::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--gl-mint-strong);
  border: 2px solid rgba(11, 23, 48, 0.12);
  border-radius: 999px;
  content: "";
}

.resource-trust-note {
  margin: 0;
  padding-top: 14px;
  color: var(--gl-muted);
  border-top: 1px solid var(--gl-line);
  font-size: 0.8rem;
  line-height: 1.5;
}

.resource-trust-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(174, 225, 255, 0.16);
  border: 1px solid rgba(11, 23, 48, 0.1);
  border-radius: var(--gl-radius-sm);
}

.resource-trust-block h3 {
  margin: 0;
  color: var(--gl-navy);
  font-size: 0.95rem;
}

.trust-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-left: 16px;
}

.trust-list li::before {
  position: absolute;
  top: 0.46rem;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--gl-mint-strong);
  border: 2px solid rgba(11, 23, 48, 0.12);
  border-radius: 999px;
  content: "";
}

.trust-list strong {
  color: var(--gl-navy);
  font-size: 0.84rem;
}

.trust-list span {
  color: var(--gl-muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

.trust-policy-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--gl-navy);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(11, 23, 48, 0.14);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.trust-policy-link:hover,
.trust-policy-link:focus-visible {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(11, 23, 48, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.resource-card h3 {
  color: var(--gl-navy);
  font-size: 1rem;
}

.legal-hero {
  display: grid;
  gap: 12px;
}

.legal-grid {
  display: grid;
  gap: 18px;
}

.legal-content-entry {
  display: grid;
  gap: 16px;
}

.legal-content-entry > :first-child {
  margin-top: 0;
}

.legal-content-entry > :last-child {
  margin-bottom: 0;
}

.legal-content-entry h2,
.legal-content-entry h3 {
  color: var(--gl-navy);
  scroll-margin-top: 112px;
}

.legal-content-entry p,
.legal-content-entry li {
  color: var(--gl-muted);
}

.legal-content-entry ul,
.legal-content-entry ol {
  display: grid;
  gap: 9px;
  padding-left: 22px;
}

.legal-card {
  scroll-margin-top: 112px;
}

.auth-main {
  max-width: none;
  padding-top: clamp(28px, 5vw, 68px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.auth-layout {
  display: grid;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.auth-intro {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 390px;
  padding: clamp(26px, 4vw, 48px);
  color: #10213c;
  background-color: #c8eafb;
  background-image:
    linear-gradient(90deg, rgba(200, 234, 251, 0.99) 0%, rgba(200, 234, 251, 0.96) 58%, rgba(200, 234, 251, 0.58) 78%, rgba(200, 234, 251, 0.12) 100%),
    url("assets/images/gradovia-auth-study-success.png");
  background-position: center, right bottom;
  background-repeat: no-repeat;
  background-size: cover, auto 100%;
  border: 1px solid rgba(32, 71, 97, 0.13);
  border-radius: 20px;
  box-shadow: var(--gl-shadow-soft);
}

.auth-intro .section-kicker {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(255, 255, 255, 0.76);
}

.auth-intro h1 {
  max-width: 540px;
  margin: 0;
  color: #10213c;
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  line-height: 0.98;
}

.auth-intro p {
  max-width: 520px;
  margin: 0;
  color: #38536a;
  font-size: 1.02rem;
}

.auth-benefits {
  display: grid;
  gap: 11px;
  max-width: 470px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #213d54;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-benefits li::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 0.31rem;
  background: var(--gl-mint-strong);
  border: 2px solid rgba(11, 23, 48, 0.13);
  border-radius: 999px;
  content: "";
}

.auth-card {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(32, 71, 97, 0.13);
  border-radius: 20px;
  box-shadow: var(--gl-shadow);
}

.auth-card-heading {
  display: grid;
  gap: 7px;
}

.auth-card-kicker {
  color: #3f7292;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 0;
  color: var(--gl-navy);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.08;
}

.auth-notice {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  color: #7d2632;
  background: #fff2f3;
  border: 1px solid rgba(188, 64, 81, 0.26);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-notice p {
  margin: 0;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.auth-field label {
  color: var(--gl-navy);
  font-size: 0.88rem;
  font-weight: 900;
}

.auth-field label span {
  color: var(--gl-muted);
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--gl-ink);
  background: #ffffff;
  border: 1px solid rgba(11, 23, 48, 0.18);
  border-radius: 12px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-field input:focus {
  background: #ffffff;
  border-color: var(--gl-blue-strong);
  box-shadow: 0 0 0 4px rgba(110, 200, 239, 0.2);
}

.auth-password-control {
  position: relative;
  display: block;
}

.auth-password-control input {
  padding-right: 72px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 54px;
  min-height: 34px;
  padding: 0 8px;
  color: #286784;
  background: rgba(183, 228, 251, 0.42);
  border: 1px solid rgba(52, 123, 156, 0.18);
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: #123f57;
  background: rgba(183, 228, 251, 0.74);
  outline: none;
}

.auth-field-hint {
  color: var(--gl-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--gl-ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.auth-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0.08rem 0 0;
  accent-color: #258461;
}

.auth-check a,
.auth-card-footer a {
  color: #176988;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.auth-check a:hover,
.auth-check a:focus-visible,
.auth-card-footer a:hover,
.auth-card-footer a:focus-visible {
  color: #0d4d68;
  outline: none;
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-card-footer {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(11, 23, 48, 0.1);
  font-size: 0.86rem;
}

.auth-card-footer p {
  margin: 0;
  color: var(--gl-muted);
}

.auth-account-card {
  gap: 24px;
}

.auth-account-details {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 23, 48, 0.1);
  border-radius: 14px;
}

.auth-account-details div {
  display: grid;
  gap: 3px;
  padding: 14px;
  background: rgba(174, 225, 255, 0.12);
}

.auth-account-details div + div {
  border-top: 1px solid rgba(11, 23, 48, 0.1);
}

.auth-account-details dt {
  color: var(--gl-muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-account-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--gl-navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.auth-account-actions {
  display: grid;
  gap: 10px;
}

.auth-account-footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-account-footer a:last-child {
  text-align: right;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 24px;
  color: var(--gl-ink);
  background: linear-gradient(135deg, rgba(174, 225, 255, 0.2), rgba(191, 247, 215, 0.2));
  border: 1px dashed rgba(11, 23, 48, 0.18);
  border-radius: var(--gl-radius-sm);
}

.empty-state h2,
.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state h2,
.empty-state h3 {
  color: var(--gl-navy);
}

.empty-state p {
  max-width: 680px;
  color: var(--gl-muted);
}

.empty-state .button {
  width: max-content;
  margin-top: 6px;
}

.archive-main {
  display: grid;
  gap: 22px;
}

.archive-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
  background:
    radial-gradient(circle at top right, rgba(174, 225, 255, 0.7), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(191, 247, 215, 0.36));
}

.archive-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--gl-navy);
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.archive-hero p {
  max-width: 690px;
  margin: 0;
  color: var(--gl-muted);
}

.exam-directory-section {
  display: grid;
  gap: 16px;
  padding-top: 10px;
}

.directory-section-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
}

.directory-section-header h2 {
  margin: 8px 0 0;
  color: var(--gl-navy);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.08;
}

.directory-count {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  color: var(--gl-muted);
  background: rgba(11, 23, 48, 0.06);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.exam-content-entry > :first-child {
  margin-top: 0;
}

.exam-content-entry > :last-child {
  margin-bottom: 0;
}

.resource-unavailable {
  color: var(--gl-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.resource-guidance {
  padding-top: 4px;
  color: var(--gl-muted);
  font-size: 0.8rem;
}

.premium-purchase-note {
  color: var(--gl-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Dark theme surfaces and contrast adjustments. */
:root[data-theme="dark"] body {
  background:
    linear-gradient(180deg, rgba(75, 160, 205, 0.16), transparent 440px),
    var(--gl-bg);
}

:root[data-theme="dark"] .site-header {
  background: rgba(9, 17, 30, 0.88);
  border-bottom-color: rgba(216, 231, 247, 0.08);
}

:root[data-theme="dark"] .nav-wrap,
:root[data-theme="dark"] .mobile-panel-inner,
:root[data-theme="dark"] .footer-inner,
:root[data-theme="dark"] .section-panel {
  background: rgba(17, 30, 49, 0.88);
  border-color: var(--gl-line);
}

:root[data-theme="dark"] .nav-wrap {
  background: rgba(18, 67, 67, 0.9);
  border-color: rgba(133, 222, 186, 0.2);
}

:root[data-theme="dark"] .featured-panel {
  background: rgba(25, 33, 57, 0.92);
  border-color: rgba(159, 169, 239, 0.3);
}

:root[data-theme="dark"] .featured-panel .section-kicker {
  background: rgba(159, 169, 239, 0.22);
}

:root[data-theme="dark"] .button-secondary,
:root[data-theme="dark"] .nav-button-secondary,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .nav-toggle,
:root[data-theme="dark"] .section-link,
:root[data-theme="dark"] .card-action,
:root[data-theme="dark"] .exam-row-card a,
:root[data-theme="dark"] .back-link {
  color: var(--gl-navy);
  background: rgba(12, 23, 39, 0.88);
  border-color: rgba(216, 231, 247, 0.18);
}

:root[data-theme="dark"] .button-primary,
:root[data-theme="dark"] .nav-button-primary,
:root[data-theme="dark"] .primary-nav a:hover,
:root[data-theme="dark"] .primary-nav a:focus-visible,
:root[data-theme="dark"] .section-link:hover,
:root[data-theme="dark"] .section-link:focus-visible,
:root[data-theme="dark"] .card-action:hover,
:root[data-theme="dark"] .card-action:focus-visible,
:root[data-theme="dark"] .exam-row-card a:hover,
:root[data-theme="dark"] .exam-row-card a:focus-visible {
  color: var(--gl-navy);
  background: rgba(115, 199, 239, 0.18);
  border-color: rgba(115, 199, 239, 0.34);
}

:root[data-theme="dark"] .primary-nav a.is-active,
:root[data-theme="dark"] .primary-nav a[aria-current="location"],
:root[data-theme="dark"] .mobile-panel a.is-active,
:root[data-theme="dark"] .mobile-panel a[aria-current="location"] {
  color: var(--gl-navy);
  background: rgba(115, 199, 239, 0.2);
  box-shadow: inset 0 0 0 1px rgba(115, 199, 239, 0.28);
}

:root[data-theme="dark"] .brand-logo-light {
  display: none;
}

:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}

:root[data-theme="dark"] .mobile-panel a {
  color: var(--gl-navy);
  background: rgba(115, 199, 239, 0.12);
}

:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .section-kicker,
:root[data-theme="dark"] .status-badge,
:root[data-theme="dark"] .resource-row span,
:root[data-theme="dark"] .construction-badge,
:root[data-theme="dark"] .category-card-header span,
:root[data-theme="dark"] .directory-count {
  color: var(--gl-navy);
  border-color: rgba(216, 231, 247, 0.12);
}

:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .status-badge {
  background: rgba(95, 203, 145, 0.18);
}

:root[data-theme="dark"] .section-kicker,
:root[data-theme="dark"] .resource-row span {
  background: rgba(115, 199, 239, 0.18);
}

:root[data-theme="dark"] .construction-badge,
:root[data-theme="dark"] .category-card-header span,
:root[data-theme="dark"] .directory-count,
:root[data-theme="dark"] .exam-category {
  background: rgba(216, 231, 247, 0.08);
}

:root[data-theme="dark"] .hero-visual {
  background: linear-gradient(145deg, rgba(49, 116, 153, 0.46), rgba(55, 132, 92, 0.38));
  border-color: rgba(216, 231, 247, 0.13);
}

:root[data-theme="dark"] .browser-frame,
:root[data-theme="dark"] .mock-sidebar,
:root[data-theme="dark"] .mock-content,
:root[data-theme="dark"] .mock-card,
:root[data-theme="dark"] .floating-chip {
  background: rgba(12, 24, 40, 0.8);
  border-color: rgba(216, 231, 247, 0.13);
  box-shadow: none;
}

:root[data-theme="dark"] .mock-pill {
  color: var(--gl-navy);
  background: rgba(216, 231, 247, 0.1);
  border-color: rgba(216, 231, 247, 0.13);
}

:root[data-theme="dark"] .exam-card {
  background:
    linear-gradient(145deg, rgba(84, 185, 233, 0.14), rgba(95, 203, 145, 0.12)),
    rgba(14, 27, 45, 0.9);
  border-color: rgba(216, 231, 247, 0.14);
}

:root[data-theme="dark"] .exam-card:nth-child(2) {
  background: rgba(34, 38, 64, 0.94);
}

:root[data-theme="dark"] .exam-card:nth-child(2) .exam-icon,
:root[data-theme="dark"] .category-card:nth-child(2) .exam-mini-icon {
  background: var(--gl-periwinkle);
}

:root[data-theme="dark"] .exam-card:nth-child(2) .status-badge,
:root[data-theme="dark"] .category-card:nth-child(2) .category-card-header span {
  background: rgba(159, 169, 239, 0.24);
}

:root[data-theme="dark"] .exam-card:hover {
  border-color: rgba(115, 199, 239, 0.34);
  box-shadow: var(--gl-shadow-soft);
}

:root[data-theme="dark"] .category-card,
:root[data-theme="dark"] .exam-row-card,
:root[data-theme="dark"] .resource-card,
:root[data-theme="dark"] .exam-summary-card {
  background: rgba(12, 24, 40, 0.74);
  border-color: rgba(216, 231, 247, 0.13);
  box-shadow: none;
}

:root[data-theme="dark"] .resource-card.premium,
:root[data-theme="dark"] .courses-panel {
  background: linear-gradient(135deg, rgba(84, 185, 233, 0.2), rgba(95, 203, 145, 0.18) 54%, rgba(159, 169, 239, 0.14));
}

:root[data-theme="dark"] .directory-search input,
:root[data-theme="dark"] .directory-filter {
  color: var(--gl-ink);
  background: rgba(12, 24, 40, 0.74);
  border-color: rgba(216, 231, 247, 0.16);
}

:root[data-theme="dark"] .directory-search input:focus,
:root[data-theme="dark"] .directory-filter:hover,
:root[data-theme="dark"] .directory-filter:focus-visible {
  background: rgba(84, 185, 233, 0.16);
  border-color: rgba(115, 199, 239, 0.42);
}

:root[data-theme="dark"] .directory-filter.is-active {
  color: #07131e;
  background: var(--gl-mint);
  border-color: rgba(95, 203, 145, 0.7);
}

:root[data-theme="dark"] .exam-directory-empty {
  background: rgba(84, 185, 233, 0.1);
  border-color: rgba(216, 231, 247, 0.18);
}

:root[data-theme="dark"] .resource-tier {
  color: var(--gl-navy);
  background: rgba(115, 199, 239, 0.22);
  border-color: rgba(216, 231, 247, 0.14);
}

:root[data-theme="dark"] .resource-card.premium .resource-tier {
  background: rgba(95, 203, 145, 0.28);
}

:root[data-theme="dark"] .resource-access,
:root[data-theme="dark"] .resource-features li {
  color: var(--gl-ink);
}

:root[data-theme="dark"] .resource-trust-note {
  border-top-color: rgba(216, 231, 247, 0.16);
}

:root[data-theme="dark"] .resource-trust-block {
  background: rgba(84, 185, 233, 0.11);
  border-color: rgba(216, 231, 247, 0.14);
}

:root[data-theme="dark"] .trust-list strong,
:root[data-theme="dark"] .trust-policy-link {
  color: var(--gl-navy);
}

:root[data-theme="dark"] .trust-list span {
  color: var(--gl-muted);
}

:root[data-theme="dark"] .trust-policy-link {
  background: rgba(12, 24, 40, 0.74);
  border-color: rgba(216, 231, 247, 0.18);
}

:root[data-theme="dark"] .trust-policy-link:hover,
:root[data-theme="dark"] .trust-policy-link:focus-visible {
  background: rgba(115, 199, 239, 0.18);
  border-color: rgba(115, 199, 239, 0.34);
}

:root[data-theme="dark"] .home-main .hero-preview.hero-home {
  background-color: #063450;
  background-image: url("assets/images/gradovia-hero-study-dark.jpg");
  background-position: calc(100% + 28px) bottom;
  background-repeat: no-repeat;
  background-size: min(68vw, 980px) auto;
}

:root[data-theme="dark"] .home-main .hero-description,
:root[data-theme="dark"] .home-main .hero-action-note {
  color: #d0e4f1;
}

:root[data-theme="dark"] .home-main .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .home-main .hero-benefits li::before {
  background: var(--gl-mint);
  border-color: rgba(7, 19, 33, 0.24);
}

:root[data-theme="dark"] .home-main .section-panel {
  background: rgba(14, 31, 49, 0.92);
  border-color: rgba(216, 231, 247, 0.14);
}

:root[data-theme="dark"] .home-main .featured-panel {
  background: rgba(24, 34, 60, 0.94);
  border-color: rgba(159, 169, 239, 0.32);
}

:root[data-theme="dark"] .home-main .featured-panel .section-header {
  border-bottom-color: rgba(216, 231, 247, 0.12);
}

:root[data-theme="dark"] .home-main .exam-card {
  background: rgba(17, 36, 56, 0.92);
  border-color: rgba(216, 231, 247, 0.14);
}

:root[data-theme="dark"] .home-main .exam-card:nth-child(2) {
  background: rgba(34, 38, 64, 0.94);
}

:root[data-theme="dark"] .home-main .category-card,
:root[data-theme="dark"] .home-main .exam-row-card {
  background: rgba(14, 31, 49, 0.88);
  border-color: rgba(216, 231, 247, 0.13);
}

:root[data-theme="dark"] .home-main .courses-panel {
  background: rgba(21, 66, 58, 0.78);
  border-color: rgba(117, 218, 166, 0.22);
}

:root[data-theme="dark"] .exam-hero,
:root[data-theme="dark"] .archive-hero {
  background:
    radial-gradient(circle at top right, rgba(84, 185, 233, 0.3), transparent 38%),
    linear-gradient(135deg, rgba(17, 30, 49, 0.96), rgba(26, 68, 55, 0.46));
}

:root[data-theme="dark"] .summary-metric,
:root[data-theme="dark"] .exam-category {
  background: rgba(216, 231, 247, 0.08);
}

:root[data-theme="dark"] .objective-list span {
  background: linear-gradient(90deg, rgba(216, 231, 247, 0.18), rgba(84, 185, 233, 0.34));
}

:root[data-theme="dark"] .empty-state {
  background: linear-gradient(135deg, rgba(84, 185, 233, 0.14), rgba(95, 203, 145, 0.14));
  border-color: rgba(216, 231, 247, 0.24);
}

:root[data-theme="dark"] .auth-intro {
  color: #ecf6ff;
  background-color: #063450;
  background-image:
    linear-gradient(90deg, rgba(6, 52, 80, 0.98) 0%, rgba(6, 52, 80, 0.9) 50%, rgba(6, 52, 80, 0.32) 100%),
    url("assets/images/gradovia-hero-study-dark.jpg");
  background-position: center, right bottom;
  background-size: cover, auto 100%;
  border-color: rgba(132, 211, 241, 0.2);
}

:root[data-theme="dark"] .auth-intro .section-kicker {
  color: var(--gl-navy);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

:root[data-theme="dark"] .auth-intro h1,
:root[data-theme="dark"] .auth-intro p,
:root[data-theme="dark"] .auth-benefits li {
  color: #e8f5ff;
}

:root[data-theme="dark"] .auth-card {
  background: rgba(14, 31, 49, 0.96);
  border-color: rgba(216, 231, 247, 0.16);
  box-shadow: var(--gl-shadow);
}

:root[data-theme="dark"] .auth-card-kicker {
  color: #91d9f6;
}

:root[data-theme="dark"] .auth-notice {
  color: #ffd8dd;
  background: rgba(140, 39, 56, 0.22);
  border-color: rgba(255, 164, 178, 0.26);
}

:root[data-theme="dark"] .auth-field input {
  color: var(--gl-ink);
  background: rgba(8, 20, 35, 0.86);
  border-color: rgba(216, 231, 247, 0.18);
}

:root[data-theme="dark"] .auth-field input:focus {
  background: rgba(8, 20, 35, 0.98);
  border-color: var(--gl-blue-strong);
  box-shadow: 0 0 0 4px rgba(84, 185, 233, 0.2);
}

:root[data-theme="dark"] .auth-password-toggle {
  color: #cfeeff;
  background: rgba(84, 185, 233, 0.18);
  border-color: rgba(115, 199, 239, 0.26);
}

:root[data-theme="dark"] .auth-password-toggle:hover,
:root[data-theme="dark"] .auth-password-toggle:focus-visible {
  color: #f4fbff;
  background: rgba(84, 185, 233, 0.3);
}

:root[data-theme="dark"] .auth-check,
:root[data-theme="dark"] .auth-field-hint {
  color: var(--gl-ink);
}

:root[data-theme="dark"] .auth-check a,
:root[data-theme="dark"] .auth-card-footer a {
  color: #9cdff9;
}

:root[data-theme="dark"] .auth-check a:hover,
:root[data-theme="dark"] .auth-check a:focus-visible,
:root[data-theme="dark"] .auth-card-footer a:hover,
:root[data-theme="dark"] .auth-card-footer a:focus-visible {
  color: #d6f5ff;
}

:root[data-theme="dark"] .auth-card-footer,
:root[data-theme="dark"] .auth-account-details,
:root[data-theme="dark"] .auth-account-details div + div {
  border-color: rgba(216, 231, 247, 0.14);
}

:root[data-theme="dark"] .auth-account-details div {
  background: rgba(84, 185, 233, 0.1);
}

:root[data-theme="dark"] .footer-legal-links,
:root[data-theme="dark"] .footer-bottom {
  border-color: rgba(216, 231, 247, 0.12);
}

:root[data-theme="dark"] .footer-disclaimer {
  color: var(--gl-muted);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  color: var(--gl-ink);
  background: rgba(12, 24, 40, 0.84);
  border-color: rgba(216, 231, 247, 0.18);
}

:root[data-theme="dark"] ::selection {
  color: #071321;
  background: var(--gl-mint);
}

.site-header,
.nav-wrap,
.section-panel,
.footer-inner,
.exam-card,
.category-card,
.exam-row-card,
.resource-card,
.exam-summary-card {
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease, color 240ms ease;
}

@keyframes gl-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gl-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes gl-progress {
  from {
    width: 0;
  }

  to {
    width: 66%;
  }
}

@media (min-width: 720px) {
  .site-main {
    padding-inline: 24px;
  }

  .hero-preview {
    grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
    gap: 32px;
  }

  .hero-preview.hero-home {
    grid-template-columns: minmax(0, 760px);
    padding: 70px 0 82px;
  }

  .featured-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-directory-controls {
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    align-items: center;
  }

  .courses-panel {
    flex-direction: row;
    align-items: center;
  }

  .exam-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  }

  .exam-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
    align-items: start;
  }

  .resources-panel {
    position: sticky;
    top: 112px;
  }

  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(260px, 1.1fr) minmax(180px, 0.8fr) minmax(260px, 1fr);
    align-items: start;
  }

  .footer-disclaimer,
  .footer-bottom {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1040px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .primary-nav,
  .nav-actions {
    display: flex;
  }

  .nav-toggle,
  .mobile-panel {
    display: none;
  }
}

@media (max-width: 719px) {
  .home-main .hero-preview.hero-home,
  :root[data-theme="dark"] .home-main .hero-preview.hero-home {
    min-height: calc(100vh - var(--gl-header-height));
    min-height: calc(100svh - var(--gl-header-height));
    align-content: space-between;
    margin-bottom: 24px;
    padding: 52px 20px 58px;
    background-image: none;
  }

  .home-main .hero-mobile-art {
    display: block;
    height: clamp(178px, 54vw, 220px);
    margin: 0 -20px -58px;
    background-color: #c8eafb;
    background-image: url("assets/images/gradovia-hero-study.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  :root[data-theme="dark"] .home-main .hero-mobile-art {
    background-color: #063450;
    background-image: url("assets/images/gradovia-hero-study-dark.jpg");
  }

  .home-main .hero-benefits {
    display: grid;
    gap: 10px;
  }

  .home-main .section-panel {
    margin: 0 16px 18px;
    padding: 20px;
  }
}

@media (max-width: 520px) {
  :root {
    --gl-header-height: 79px;
  }

  .site-header {
    padding: 10px;
  }

  .nav-wrap {
    min-height: 58px;
    border-radius: 22px;
  }

  .brand-logo {
    height: 42px;
    max-width: 122px;
  }

  .hero-preview {
    min-height: auto;
    padding-top: 20px;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .section-link,
  .card-action {
    width: 100%;
  }

  .section-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .section-header {
    align-items: stretch;
  }

  .directory-search {
    width: 100%;
  }

  .directory-filter {
    min-height: 40px;
  }

  .section-link {
    min-height: 44px;
  }

  .exam-card {
    min-height: 210px;
  }

  .exam-row-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .exam-row-card a {
    grid-column: 1 / -1;
    width: 100%;
  }

  .mock-grid {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    grid-template-columns: repeat(3, 1fr);
  }

  .mock-pill {
    height: 22px;
  }

  .floating-chip {
    right: 14px;
    bottom: 14px;
  }

  .exam-main,
  .legal-main {
    padding-top: 18px;
  }

  .exam-hero h1,
  .legal-hero h1 {
    font-size: clamp(2.25rem, 18vw, 3.6rem);
  }

  .summary-metric {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 10px;
  }

  .footer-inner {
    padding: 18px;
  }

  .footer-links {
    display: grid;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Launch polish: editorial exam visuals and honest unavailable states. */
.exam-card {
  min-height: 0;
  padding: 12px 12px 18px;
  overflow: hidden;
}

.home-main .exam-card {
  min-height: 0;
  padding: 12px 12px 18px;
  gap: 12px;
}

.exam-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.6;
  background: rgba(174, 225, 255, 0.3);
  border: 1px solid rgba(11, 23, 48, 0.08);
  border-radius: 12px;
}

.exam-card-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(11, 23, 48, 0.1));
  content: "";
  pointer-events: none;
}

.exam-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.exam-card:hover .exam-card-media img,
.exam-card:focus-within .exam-card-media img {
  transform: scale(1.04);
}

.exam-card .exam-card-top {
  padding-inline: 4px;
}

.exam-card h3,
.exam-card .exam-card-description,
.exam-card .resource-row {
  margin-inline: 4px;
}

.exam-card h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.exam-card .card-action {
  margin: 2px 4px 0;
}

.exam-row-thumbnail {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid rgba(11, 23, 48, 0.1);
  border-radius: 14px;
  background: rgba(174, 225, 255, 0.28);
}

.exam-summary-art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
  border: 1px solid rgba(11, 23, 48, 0.08);
  border-radius: 12px;
}

.exam-overview-list {
  display: grid;
  gap: 11px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.exam-overview-list li {
  position: relative;
  padding-left: 22px;
  color: var(--gl-ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.exam-overview-list li::before {
  position: absolute;
  top: 0.43rem;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gl-mint-strong);
  border: 2px solid rgba(11, 23, 48, 0.12);
  border-radius: 999px;
  content: "";
}

.resource-unavailable-button {
  display: inline-flex;
  width: max-content;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  color: var(--gl-muted);
  background: rgba(11, 23, 48, 0.04);
  border: 1px dashed rgba(11, 23, 48, 0.18);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

:root[data-theme="dark"] .exam-card-media,
:root[data-theme="dark"] .exam-row-thumbnail,
:root[data-theme="dark"] .exam-summary-art {
  border-color: rgba(216, 231, 247, 0.16);
}

:root[data-theme="dark"] .exam-card-media::after {
  background: linear-gradient(180deg, transparent, rgba(7, 19, 33, 0.28));
}

:root[data-theme="dark"] .exam-overview-list li {
  color: var(--gl-ink);
}

:root[data-theme="dark"] .exam-overview-list li::before {
  border-color: rgba(7, 19, 33, 0.32);
}

:root[data-theme="dark"] .resource-unavailable-button {
  color: var(--gl-muted);
  background: rgba(216, 231, 247, 0.07);
  border-color: rgba(216, 231, 247, 0.22);
}

@media (min-width: 720px) {
  .exam-card-media {
    aspect-ratio: 16 / 8.1;
  }
}

@media (max-width: 520px) {
  .resource-unavailable-button {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 720px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
    align-items: stretch;
  }

  .auth-intro {
    min-height: 640px;
  }

  .auth-card {
    align-self: center;
  }

  .auth-account-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .auth-main {
    padding: 22px 16px 64px;
  }

  .auth-intro {
    min-height: auto;
    background-image: linear-gradient(135deg, rgba(200, 234, 251, 0.98), rgba(219, 247, 234, 0.92));
  }

  :root[data-theme="dark"] .auth-intro {
    background-image: linear-gradient(135deg, rgba(6, 52, 80, 0.98), rgba(16, 74, 71, 0.92));
  }
}

@media (max-width: 520px) {
  .auth-intro,
  .auth-card {
    padding: 22px;
    border-radius: 16px;
  }

  .auth-intro h1 {
    font-size: clamp(2.1rem, 12vw, 3.05rem);
  }

  .auth-account-footer {
    grid-template-columns: 1fr;
  }

  .auth-account-footer a:last-child {
    text-align: left;
  }
}

/* Student library for WooCommerce-protected digital purchases. */
.library-main {
  display: grid;
  gap: 22px;
  padding-top: clamp(26px, 4vw, 52px);
}

.library-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 0;
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at top right, rgba(191, 244, 217, 0.76), transparent 34%),
    linear-gradient(135deg, rgba(235, 248, 255, 0.96), rgba(237, 250, 245, 0.88));
  border-color: rgba(55, 151, 113, 0.18);
}

.library-hero > div:first-child {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.library-hero h1 {
  margin: 0;
  color: var(--gl-navy);
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.library-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--gl-muted);
  font-size: 1.02rem;
}

.library-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.library-section {
  display: grid;
  gap: 18px;
}

.library-section-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
}

.library-section-header > div {
  display: grid;
  gap: 8px;
}

.library-section-header h2 {
  margin: 0;
  color: var(--gl-navy);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.08;
}

.library-access-note {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: var(--gl-muted);
  background: rgba(11, 23, 48, 0.06);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.library-grid {
  display: grid;
  gap: 16px;
}

.library-card {
  display: grid;
  overflow: hidden;
  background: var(--gl-surface);
  border: 1px solid rgba(32, 71, 97, 0.13);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(31, 63, 86, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.library-card:hover,
.library-card:focus-within {
  border-color: rgba(78, 164, 206, 0.3);
  box-shadow: 0 16px 30px rgba(31, 63, 86, 0.12);
  transform: translateY(-3px);
}

.library-card-media {
  display: grid;
  min-height: 154px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.7), transparent 24%),
    linear-gradient(135deg, rgba(183, 228, 251, 0.9), rgba(199, 244, 217, 0.84));
}

.library-product-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 154px;
  object-fit: cover;
}

.library-card-icon {
  position: relative;
  display: block;
  width: 64px;
  height: 80px;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(11, 23, 48, 0.64);
  border-radius: 9px;
  box-shadow: 8px 8px 0 rgba(93, 184, 224, 0.32);
}

.library-card-icon::before,
.library-card-icon::after {
  position: absolute;
  left: 13px;
  width: 34px;
  height: 4px;
  background: rgba(11, 23, 48, 0.62);
  border-radius: 999px;
  content: "";
}

.library-card-icon::before {
  top: 26px;
  box-shadow: 0 12px 0 rgba(11, 23, 48, 0.42), 0 24px 0 rgba(11, 23, 48, 0.24);
}

.library-card-icon::after {
  top: 13px;
  width: 22px;
  background: var(--gl-mint-strong);
}

.library-card-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
}

.library-card-status {
  display: inline-flex;
  width: max-content;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  color: #215e46;
  background: rgba(199, 244, 217, 0.78);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.library-card h3 {
  margin: 0;
  color: var(--gl-navy);
  font-size: 1.25rem;
  line-height: 1.15;
}

.library-purchase-meta,
.library-pending-note {
  margin: 0;
  color: var(--gl-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.library-download-list {
  display: grid;
  gap: 9px;
  margin-top: 2px;
}

.library-download-button {
  width: 100%;
  min-height: 56px;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  text-align: left;
}

.library-download-button > span:first-child {
  flex: 0 0 auto;
}

.library-download-name {
  overflow: hidden;
  color: rgba(11, 23, 48, 0.7);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-product-link {
  width: max-content;
  margin-top: 2px;
}

:root[data-theme="dark"] .library-hero {
  background:
    radial-gradient(circle at top right, rgba(95, 203, 145, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(15, 37, 57, 0.98), rgba(22, 69, 58, 0.72));
  border-color: rgba(133, 222, 186, 0.22);
}

:root[data-theme="dark"] .library-card {
  background: rgba(14, 31, 49, 0.94);
  border-color: rgba(216, 231, 247, 0.15);
  box-shadow: none;
}

:root[data-theme="dark"] .library-card:hover,
:root[data-theme="dark"] .library-card:focus-within {
  border-color: rgba(115, 199, 239, 0.36);
  box-shadow: var(--gl-shadow-soft);
}

:root[data-theme="dark"] .library-card-media {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(49, 116, 153, 0.58), rgba(41, 111, 85, 0.46));
}

:root[data-theme="dark"] .library-card-icon {
  background: rgba(12, 24, 40, 0.84);
  border-color: rgba(216, 231, 247, 0.72);
  box-shadow: 8px 8px 0 rgba(84, 185, 233, 0.22);
}

:root[data-theme="dark"] .library-card-icon::before,
:root[data-theme="dark"] .library-card-icon::after {
  background: rgba(216, 231, 247, 0.72);
}

:root[data-theme="dark"] .library-card-icon::before {
  box-shadow: 0 12px 0 rgba(216, 231, 247, 0.46), 0 24px 0 rgba(216, 231, 247, 0.25);
}

:root[data-theme="dark"] .library-card-icon::after {
  background: var(--gl-mint);
}

:root[data-theme="dark"] .library-card-status {
  color: #d6ffe8;
  background: rgba(95, 203, 145, 0.2);
}

:root[data-theme="dark"] .library-access-note {
  color: var(--gl-muted);
  background: rgba(216, 231, 247, 0.08);
}

:root[data-theme="dark"] .library-download-name {
  color: rgba(241, 247, 255, 0.72);
}

@media (min-width: 720px) {
  .library-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 520px) {
  .library-hero-actions {
    display: grid;
    width: 100%;
  }

  .library-hero-actions .button,
  .library-product-link {
    width: 100%;
  }

  .library-download-button {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .library-download-name {
    width: 100%;
    text-align: left;
  }
}

/* Editor-managed and WooCommerce system pages. */
.standard-page-main {
  width: min(100% - 32px, 860px);
  min-height: calc(100vh - 280px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 88px) 0 clamp(54px, 8vw, 96px);
}

.standard-page {
  margin: 0;
  padding: clamp(24px, 5vw, 48px);
  background: var(--gl-surface);
}

.standard-page-header {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 30px;
}

.standard-page-header h1,
.standard-page-header p {
  margin: 0;
}

.standard-page-header h1 {
  color: var(--gl-navy);
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  line-height: 1.02;
}

.standard-page-header p {
  color: var(--gl-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.standard-page-content {
  color: var(--gl-ink);
  line-height: 1.65;
}

.standard-page-content > :first-child {
  margin-top: 0;
}

.standard-page-content > :last-child {
  margin-bottom: 0;
}

.standard-page-content a:not(.button) {
  color: #126f9d;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(18, 111, 157, 0.35);
  text-underline-offset: 0.17em;
}

.standard-page-content a:not(.button):hover,
.standard-page-content a:not(.button):focus-visible {
  color: #0a587e;
  text-decoration-color: currentColor;
}

.standard-page-content .woocommerce {
  display: grid;
  gap: 20px;
}

.standard-page-content .woocommerce form {
  display: grid;
  gap: 18px;
  max-width: 580px;
  margin: 0;
}

.standard-page-content .woocommerce .form-row {
  display: grid;
  gap: 8px;
  margin: 0;
}

.standard-page-content .woocommerce .form-row label {
  color: var(--gl-navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.standard-page-content .woocommerce .form-row input.input-text,
.standard-page-content .woocommerce .form-row select,
.standard-page-content .woocommerce .form-row textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--gl-navy);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(32, 71, 97, 0.24);
  border-radius: 10px;
  box-shadow: none;
  font: inherit;
}

.standard-page-content .woocommerce .form-row textarea {
  min-height: 130px;
  resize: vertical;
}

.standard-page-content .woocommerce .form-row input.input-text:focus,
.standard-page-content .woocommerce .form-row select:focus,
.standard-page-content .woocommerce .form-row textarea:focus {
  border-color: #54b7e9;
  outline: 3px solid rgba(84, 183, 233, 0.2);
}

.standard-page-content .woocommerce .button,
.standard-page-content .woocommerce button.button,
.standard-page-content .woocommerce input.button {
  width: max-content;
  min-height: 48px;
  padding: 0 20px;
  color: var(--gl-navy);
  background: var(--gl-mint);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(71, 160, 115, 0.18);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.standard-page-content .woocommerce .button:hover,
.standard-page-content .woocommerce .button:focus-visible,
.standard-page-content .woocommerce button.button:hover,
.standard-page-content .woocommerce button.button:focus-visible,
.standard-page-content .woocommerce input.button:hover,
.standard-page-content .woocommerce input.button:focus-visible {
  background: #afeaca;
  box-shadow: 0 12px 24px rgba(71, 160, 115, 0.24);
  outline: none;
  transform: translateY(-2px);
}

.standard-page-content .woocommerce-info,
.standard-page-content .woocommerce-message,
.standard-page-content .woocommerce-error {
  margin: 0;
  padding: 15px 17px;
  border: 1px solid rgba(32, 71, 97, 0.16);
  border-radius: 12px;
  background: rgba(183, 228, 251, 0.32);
  color: var(--gl-ink);
  list-style: none;
}

.standard-page-content .woocommerce-message {
  background: rgba(199, 244, 217, 0.52);
}

.standard-page-content .woocommerce-error {
  background: rgba(253, 231, 231, 0.78);
  border-color: rgba(190, 66, 66, 0.2);
}

.standard-page-content .woocommerce-ResetPassword {
  max-width: 560px;
}

.standard-page-content .woocommerce-ResetPassword > p:first-child {
  margin: 0;
}

:root[data-theme="dark"] .standard-page {
  background: rgba(14, 31, 49, 0.94);
  border-color: rgba(216, 231, 247, 0.15);
  box-shadow: var(--gl-shadow-soft);
}

:root[data-theme="dark"] .standard-page-header h1,
:root[data-theme="dark"] .standard-page-content .woocommerce .form-row label {
  color: var(--gl-navy);
}

:root[data-theme="dark"] .standard-page-content {
  color: var(--gl-muted);
}

:root[data-theme="dark"] .standard-page-content a:not(.button) {
  color: #83d6fc;
  text-decoration-color: rgba(131, 214, 252, 0.45);
}

:root[data-theme="dark"] .standard-page-content a:not(.button):hover,
:root[data-theme="dark"] .standard-page-content a:not(.button):focus-visible {
  color: #b6eaff;
}

:root[data-theme="dark"] .standard-page-content .woocommerce .form-row input.input-text,
:root[data-theme="dark"] .standard-page-content .woocommerce .form-row select,
:root[data-theme="dark"] .standard-page-content .woocommerce .form-row textarea {
  color: var(--gl-navy);
  background: rgba(5, 17, 31, 0.62);
  border-color: rgba(216, 231, 247, 0.22);
}

:root[data-theme="dark"] .standard-page-content .woocommerce-info {
  background: rgba(59, 133, 174, 0.2);
  border-color: rgba(136, 210, 247, 0.22);
}

:root[data-theme="dark"] .standard-page-content .woocommerce-message {
  background: rgba(64, 150, 105, 0.2);
  border-color: rgba(133, 222, 186, 0.22);
}

:root[data-theme="dark"] .standard-page-content .woocommerce-error {
  background: rgba(167, 67, 67, 0.2);
  border-color: rgba(255, 162, 162, 0.26);
}

.commerce-account-note {
  margin: 0 0 16px;
  padding: 13px 14px;
  color: var(--gl-ink);
  background: rgba(183, 228, 251, 0.3);
  border: 1px solid rgba(80, 157, 199, 0.22);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.commerce-account-note a {
  color: #126f9d;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(18, 111, 157, 0.4);
  text-underline-offset: 0.16em;
}

.purchase-library-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  margin: 28px auto 0;
  padding: clamp(20px, 4vw, 30px);
  background: linear-gradient(135deg, rgba(183, 228, 251, 0.65), rgba(199, 244, 217, 0.75));
  border: 1px solid rgba(62, 144, 111, 0.19);
  border-radius: 18px;
  box-shadow: var(--gl-shadow-soft);
}

.purchase-library-notice > div {
  display: grid;
  gap: 8px;
  max-width: 600px;
}

.purchase-library-notice h2,
.purchase-library-notice p {
  margin: 0;
}

.purchase-library-notice h2 {
  color: var(--gl-navy);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.1;
}

.purchase-library-notice p {
  color: var(--gl-ink);
  line-height: 1.55;
}

.purchase-library-notice .button {
  flex: 0 0 auto;
}

:root[data-theme="dark"] .commerce-account-note {
  color: var(--gl-ink);
  background: rgba(59, 133, 174, 0.19);
  border-color: rgba(136, 210, 247, 0.24);
}

:root[data-theme="dark"] .commerce-account-note a {
  color: #83d6fc;
  text-decoration-color: rgba(131, 214, 252, 0.48);
}

:root[data-theme="dark"] .purchase-library-notice {
  background: linear-gradient(135deg, rgba(35, 87, 119, 0.68), rgba(32, 103, 75, 0.6));
  border-color: rgba(133, 222, 186, 0.22);
}

@media (max-width: 520px) {
  .standard-page-main {
    width: min(100% - 24px, 860px);
    padding-top: 28px;
  }

  .standard-page {
    padding: 22px 18px;
  }

  .standard-page-header {
    margin-bottom: 24px;
  }

  .standard-page-content .woocommerce .button,
  .standard-page-content .woocommerce button.button,
  .standard-page-content .woocommerce input.button {
    width: 100%;
  }

  .purchase-library-notice {
    align-items: stretch;
  }

  .purchase-library-notice .button {
    width: 100%;
  }
}
