:root {
  --icrpc-green-950: #003000;
  --icrpc-green-800: #004800;
  --icrpc-green-600: #189018;
  --icrpc-green-100: #e7f6e4;
  --icrpc-gold-500: #c09048;
  --icrpc-gold-200: #f3e2c4;
  --icrpc-gold-700: #8a6428;
  --icrpc-ink: #1a1a1a;
  --icrpc-muted: #5c6560;
  --icrpc-line: #e4e2da;
  --icrpc-paper: #f7f6f1;
  --icrpc-white: #ffffff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow: 0 16px 40px rgba(0, 48, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(192, 144, 72, 0.08), transparent 28rem),
    var(--icrpc-paper);
  color: var(--icrpc-ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--icrpc-green-800); }
a:hover { color: var(--icrpc-green-950); }
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--icrpc-green-950);
}
p { margin: 0 0 1rem; }
:focus-visible {
  outline: 2px solid var(--icrpc-gold-700);
  outline-offset: 3px;
}
.container { max-width: 1120px; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--icrpc-white);
  padding: 0.5rem 1rem;
  z-index: 40;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(0, 48, 0, 0.96);
  color: var(--icrpc-white);
  border-bottom: 3px solid var(--icrpc-gold-500);
  backdrop-filter: blur(10px);
}
.site-header a { color: var(--icrpc-white); text-decoration: none; }
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  text-decoration: none;
}
.brand img {
  width: 58px;
  height: 58px;
  background: var(--icrpc-white);
  border-radius: 50%;
  border: 2px solid var(--icrpc-gold-500);
  object-fit: cover;
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: inherit;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-motto { display: block; max-width: 16rem; color: #d7e7d4; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.25; }
.brand-dark { color: var(--icrpc-green-950); }
.brand-dark strong { color: var(--icrpc-green-950); }
.brand-dark .brand-motto { color: var(--icrpc-gold-700); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  color: white;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: white;
  position: relative;
}
.menu-bars::before, .menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }
.primary-nav, .utility { display: flex; align-items: center; gap: 0.15rem; margin: 0; padding: 0; }
.primary-nav > li { list-style: none; position: relative; }
.primary-nav > li > a, .utility a, .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.62rem;
  font-size: 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
}
.primary-nav > li > a.is-current,
.primary-nav > li > a:hover { background: rgba(255,255,255,0.08); }
.primary-nav .submenu {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 250px;
  background: var(--icrpc-white);
  border-radius: 14px;
  border-top: 3px solid var(--icrpc-gold-500);
  padding: 0.45rem;
  box-shadow: var(--shadow);
  z-index: 6;
}
.primary-nav li:hover > .submenu, .primary-nav li:focus-within > .submenu { display: block; }
.submenu a {
  color: var(--icrpc-ink);
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
}
.submenu a:hover, .submenu a.is-current { background: var(--icrpc-green-100); color: var(--icrpc-green-950); }
.nav-cta {
  background: var(--icrpc-gold-500);
  color: #1a1a1a !important;
  font-weight: 700;
  margin-left: 0.35rem;
}
.nav-cta:hover { background: #d4a45c; color: #1a1a1a !important; }
.header-tools { display: flex; align-items: center; gap: 0.35rem; }

.hero, .page-hero, .cta-band {
  background:
    radial-gradient(circle at 85% 15%, rgba(192, 144, 72, 0.22), transparent 22rem),
    linear-gradient(155deg, #003000 0%, #064016 62%, #003000 100%);
  color: var(--icrpc-white);
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-slides, .hero-shade { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slides img.is-active { opacity: 1; }
.hero-caption.is-shown { animation: hero-caption-in 0.55s ease; }
@keyframes hero-caption-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides img, .hero-caption.is-shown, .count-digit, .count-window, .count-strip { transition: none; animation: none; }
}
.hero-shade {
  background: linear-gradient(90deg, rgba(0, 28, 0, 0.9) 0%, rgba(0, 36, 0, 0.74) 42%, rgba(0, 24, 0, 0.46) 100%);
}
.hero-grid, .hero-controls { position: relative; z-index: 1; }
.hero-grid { padding: 4.6rem 0 1.2rem; }
.hero-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
}
.hero-nav, .hero-dots button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(0, 32, 0, 0.4);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
}
.hero-nav:hover, .hero-dots button:hover { background: rgba(0, 48, 0, 0.72); color: white; }
.hero-dots { display: flex; align-items: center; gap: 0.45rem; }
.hero-dots button {
  width: 11px;
  height: 11px;
  min-height: 11px;
  border: 0;
  background: rgba(255,255,255,0.55);
}
.hero-dots button[aria-current="true"] {
  width: 28px;
  border-radius: 999px;
  background: var(--icrpc-gold-500);
}
.page-hero { padding: 3.4rem 0 2.8rem; }
.page-hero.has-about-photo {
  background:
    linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.46) 46%, rgba(0, 20, 0, 0.28) 100%),
    url("../about/who-banner.jpg") center 28% / cover no-repeat;
}
.page-hero.has-standards-photo {
  background:
    linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%),
    url("../about/standards-banner.jpg") center 32% / cover no-repeat;
}
.page-hero.has-banner {
  background-color: #003000;
  background-position: center 32%;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-hero.banner-oath { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/oath.jpg"); }
.page-hero.banner-registration { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/registration.jpg"); }
.page-hero.banner-certificate { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/certificate.jpg"); }
.page-hero.banner-handover { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/handover.jpg"); }
.page-hero.banner-convocation { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/convocation.jpg"); }
.page-hero.banner-training { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/training.jpg"); }
.page-hero.banner-academic { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/academic.jpg"); }
.page-hero.banner-presentation { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/presentation.jpg"); }
.page-hero.banner-reading { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/reading.jpg"); }
.page-hero.banner-ceremony { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/ceremony.jpg"); }
.page-hero.banner-fellows { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/fellows.jpg"); }
.page-hero.banner-handshake { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/handshake.jpg"); }
.page-hero.banner-council { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/council.jpg"); }
.page-hero.banner-office { background-image: linear-gradient(90deg, rgba(0, 24, 0, 0.78) 0%, rgba(0, 32, 0, 0.5) 48%, rgba(0, 20, 0, 0.32) 100%), url("../banners/office.jpg"); }
.hero h1, .page-hero h1, .cta-band h2 { color: white; }
.hero h1 { font-size: clamp(1.85rem, 3.1vw, 2.75rem); max-width: 18em; margin: 0.2rem 0 0.85rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); max-width: 18ch; margin: 0.15rem 0 0.75rem; }
.hero .lede, .page-hero .lede, .cta-band p { max-width: 40rem; color: #e8f3e6; font-size: 1.12rem; }
.hero .lede { max-width: 38rem; font-size: 1.05rem; }
.hero-grid, .split, .cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}
.cta-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.hero-seal {
  justify-self: end;
  width: min(280px, 100%);
  text-align: center;
  background: rgba(0, 32, 0, 0.55);
  border: 1px solid rgba(243, 226, 196, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 28px;
  padding: 1.6rem 1.3rem 1.3rem;
}
.hero-seal img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--icrpc-gold-500);
  object-fit: cover;
}
.hero-seal p {
  margin: 1rem 0 0;
  color: var(--icrpc-gold-200);
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.actions, .section-action { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin: 1.5rem 0 0;
}
.hero-stats div { min-width: 5.5rem; }
.hero-stats dt {
  display: flex;
  align-items: baseline;
  gap: 0.04em;
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}
.hero-stats dd {
  margin: 0.28rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}
.hero-stats [data-count] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.hero-stats [data-count].is-running {
  display: inline-flex;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  vertical-align: bottom;
}
.hero-stats .count-digit {
  display: block;
  flex: 0 0 1ch;
  width: 1ch;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  text-align: center;
}
.hero-stats .count-window {
  display: block;
  height: 1em;
  overflow: hidden;
}
.hero-stats .count-strip { display: block; }
.hero-stats .count-strip i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  line-height: 1;
  font-style: normal;
}
.btn-gold, .btn-line, .btn-green, .btn-line-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-gold { background: var(--icrpc-gold-500); color: #1a1a1a; }
.btn-gold:hover { background: #d4a45c; color: #1a1a1a; }
.btn-line { border-color: rgba(255,255,255,0.75); color: white; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,0.08); color: white; }
.btn-green { background: var(--icrpc-green-950); color: white; }
.btn-green:hover { background: var(--icrpc-green-800); color: white; }
.btn-line-dark {
  border-color: var(--icrpc-green-800);
  color: var(--icrpc-green-800);
  background: transparent;
}
.btn-line-dark:hover { background: var(--icrpc-green-950); color: white; }

.section { padding: 4.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 1.75rem; }
.section-head p:last-child { margin-bottom: 0; }
.kicker {
  color: var(--icrpc-gold-700);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.hero .kicker, .page-hero .kicker, .cta-band .kicker { color: var(--icrpc-gold-200); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card-grid.pair { grid-template-columns: repeat(2, 1fr); }
.card-grid.programmes-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.15rem;
}
.panel {
  background: var(--icrpc-white);
  border: 1px solid var(--icrpc-line);
  border-radius: 16px;
  padding: 1.35rem 1.35rem 1.25rem;
  height: 100%;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.panel h2, .panel h3 { margin: 0.2rem 0 0.55rem; font-size: 1.35rem; }
.panel h2 a, .panel h3 a { color: inherit; text-decoration: none; }
.panel h2 a:hover, .panel h3 a:hover { color: var(--icrpc-green-800); }
.programme { border-top: 4px solid var(--icrpc-gold-500); display: flex; flex-direction: column; overflow: hidden; }
.programmes-row .programme {
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.programmes-row .programme::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--hx, 50%) var(--hy, 30%), rgba(192, 144, 72, 0.28), transparent 46%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}
.programmes-row .programme:hover,
.programmes-row .programme:focus-within {
  transform: translateY(-6px);
  border-color: #d4b483;
  box-shadow: 0 18px 36px rgba(0, 48, 0, 0.14);
}
.programmes-row .programme:hover::after,
.programmes-row .programme:focus-within::after { opacity: 1; }
.programmes-row .programme h3 { font-size: 1.2rem; }
.programmes-row .programme p { font-size: 0.98rem; }
.programme-cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
}
.programmes-row .programme:hover .programme-cta,
.programmes-row .programme:focus-within .programme-cta {
  background: var(--icrpc-gold-500);
  color: #1a1a1a;
}
.programme-cover {
  width: calc(100% + 2.7rem);
  max-width: none;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  object-position: center bottom;
  margin: -1.35rem -1.35rem 1rem;
  background: #f7f6f1;
}
.programme .code, .publication .code, .code { color: var(--icrpc-gold-700); font-weight: 700; letter-spacing: 0.08em; margin: 0; }
.gallery-section { overflow: hidden; padding-bottom: 3.2rem; }
.gallery-marquee { overflow: hidden; margin-top: 0.4rem; }
.gallery-track {
  display: flex;
  width: max-content;
  animation: gallery-marquee 55s linear infinite;
}
.gallery-marquee:hover .gallery-track,
.gallery-marquee:focus-within .gallery-track { animation-play-state: paused; }
.gallery-set { display: flex; gap: 1rem; padding-right: 1rem; }
.gallery-set img {
  width: 360px;
  height: 240px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 16px;
  flex: 0 0 auto;
  background: #e7f6e4;
  box-shadow: 0 10px 28px rgba(0, 48, 0, 0.12);
}
@keyframes gallery-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.mark {
  display: block;
  color: var(--icrpc-gold-700);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}
.text-link {
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.text-link::after { content: " →"; }
.muted { color: var(--icrpc-muted); }
.band { background: linear-gradient(180deg, #eef7ec, #f7f6f1); }
.narrow { max-width: 46rem; }
.prose h2 { margin-top: 1.8rem; font-size: 1.55rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.45rem 0 0.5rem; font-size: 1.25rem; }
.prose p { margin: 0 0 1rem; }
.prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin: 0 0 0.55rem; }
.prose a { text-underline-offset: 0.18em; }
.meta-table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; }
.meta-table th, .meta-table td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--icrpc-line); vertical-align: top; }
.meta-table th { width: 32%; color: var(--icrpc-green-950); font-weight: 700; background: #fbfaf6; }
.notice, .empty, .flash {
  border-radius: 14px;
  padding: 0.95rem 1rem;
  margin: 1rem 0;
}
.notice { background: #fff8ec; border: 1px solid #f0dfc2; border-left: 4px solid var(--icrpc-gold-500); }
.flash-success { background: #e5f6e4; border: 1px solid #b7e3b4; }
.flash-error { background: #fde8e4; border: 1px solid #f3c2b8; }
label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
input[type="checkbox"] { width: auto; display: inline-block; margin-right: 0.45rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cfcabd;
  background: white;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  margin-bottom: 0.95rem;
}
button, .button {
  background: var(--icrpc-green-950);
  color: white;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--icrpc-green-800); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.container > article.panel + article.panel { margin-top: 0.85rem; }
.site-footer {
  background: var(--icrpc-green-950);
  color: #e5efe3;
  padding: 3.4rem 0 1.4rem;
}
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { color: var(--icrpc-gold-200); }
.site-footer h2 { color: white; font-size: 1.05rem; margin: 0 0 0.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 1.6fr; gap: 1.8rem; }
.footer-contact p { margin: 0 0 0.75rem; line-height: 1.5; }
.footer-contact strong { color: white; }
.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--icrpc-gold-500);
  margin-bottom: 0.8rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0.4rem 0; }
.newsletter .search-row { margin-top: 0.35rem; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.16);
  margin-top: 1.8rem;
  padding-top: 1rem;
  font-size: 0.92rem;
  color: #d5e3d2;
}
.who-copy { max-width: 48rem; }
.about-aims { margin-top: 2.2rem; }
.leadership-group { margin-bottom: 2.6rem; }
.leadership-group h2 { margin: 0 0 1rem; }
.leadership-group h3 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.card-grid.leaders {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.leader-card {
  overflow: hidden;
  padding: 1.15rem 0.95rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 4px solid var(--icrpc-gold-500);
}
.leader-photo {
  display: block;
  width: min(132px, 70%);
  height: min(132px, 70vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  border: 3px solid var(--icrpc-gold-200);
  box-shadow: 0 8px 18px rgba(0, 48, 0, 0.12);
  background: var(--icrpc-green-100);
}
.leader-card h3 {
  margin: 0 0 0.25rem;
  padding: 0 1rem;
  font-size: 1.2rem;
}
.leader-card p { margin: 0; padding: 0 1.05rem; line-height: 1.4; }
.leader-card .role { font-size: 0.96rem; }
.leader-card .muted {
  margin-top: 0.4rem;
  color: var(--icrpc-gold-700);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}
.about-aims ol { margin: 0.2rem 0 0; padding-left: 1.3rem; }
.about-aims li { margin: 0 0 0.75rem; }
.who-layout { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 2rem; align-items: start; }
.portrait {
  margin: 0;
  background: var(--icrpc-white);
  border: 1px solid var(--icrpc-line);
  border-top: 4px solid var(--icrpc-gold-500);
  border-radius: 16px;
  padding: 0.85rem 0.85rem 1rem;
  text-align: center;
}
.portrait img { width: 100%; border-radius: 10px; display: block; }
.portrait figcaption strong {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--serif);
  color: var(--icrpc-green-950);
  font-size: 1.15rem;
}
.portrait figcaption span { display: block; color: var(--icrpc-muted); font-size: 0.95rem; line-height: 1.45; }
.pillar-list, .designation-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.pillar-list.compact { grid-template-columns: repeat(4, 1fr); margin-top: 0.5rem; }
.pillar-list li, .designation-list li {
  background: white;
  border: 1px solid var(--icrpc-line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}
.pillar-list strong, .designation-list span { display: block; color: var(--icrpc-green-950); font-family: var(--serif); }
.designation-list span { letter-spacing: 0.08em; color: var(--icrpc-gold-700); }
.pillar-list span { color: var(--icrpc-muted); }
.registry-counts {
  background: linear-gradient(90deg, #003000 0%, #004800 72%, #0a5a0a 100%);
  border-top: 4px solid var(--icrpc-gold-500);
  border-bottom: 4px solid var(--icrpc-gold-500);
  padding: 2.5rem 0;
}
.registry-counts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.registry-counts li {
  text-align: center;
  padding: 0.35rem 0.6rem;
  border-left: 1px solid rgba(243, 226, 196, 0.28);
}
.registry-counts li:first-child { border-left: 0; }
.registry-counts strong {
  display: block;
  color: white;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
}
.registry-counts strong.is-running {
  display: inline-flex;
  justify-content: center;
  height: 1em;
  overflow: hidden;
}
.count-digit { display: block; height: 1em; overflow: hidden; }
.count-digit span { display: block; transition: transform 1.45s cubic-bezier(0.16, 0.84, 0.28, 1); }
.count-digit i { display: block; height: 1em; font-style: normal; }
.hero-stats .count-digit.fx-flip { perspective: 700px; }
.hero-stats .count-digit.fx-reel.d-0 .count-strip { animation: reel-0 1.28s cubic-bezier(0.12, 0.78, 0.16, 1) both; }
.hero-stats .count-digit.fx-reel.d-1 .count-strip { animation: reel-1 1.4s cubic-bezier(0.12, 0.78, 0.16, 1) both; }
.hero-stats .count-digit.fx-reel.d-2 .count-strip { animation: reel-2 1.52s cubic-bezier(0.12, 0.78, 0.16, 1) both; }
.hero-stats .count-digit.fx-reel.d-3 .count-strip { animation: reel-3 1.34s cubic-bezier(0.12, 0.78, 0.16, 1) both; }
.hero-stats .count-digit.fx-reel.d-4 .count-strip { animation: reel-4 1.58s cubic-bezier(0.12, 0.78, 0.16, 1) both; }
.hero-stats .count-digit.fx-reel.d-5 .count-strip { animation: reel-5 1.46s cubic-bezier(0.12, 0.78, 0.16, 1) both; }
.hero-stats .count-digit.fx-reel.d-6 .count-strip { animation: reel-6 1.62s cubic-bezier(0.12, 0.78, 0.16, 1) both; }
.hero-stats .count-digit.fx-reel.d-7 .count-strip { animation: reel-7 1.36s cubic-bezier(0.12, 0.78, 0.16, 1) both; }
.hero-stats .count-digit.fx-reel.d-8 .count-strip { animation: reel-8 1.5s cubic-bezier(0.12, 0.78, 0.16, 1) both; }
.hero-stats .count-digit.fx-reel.d-9 .count-strip { animation: reel-9 1.66s cubic-bezier(0.12, 0.78, 0.16, 1) both; }
.hero-stats .count-digit.fx-flip.d-0 .count-strip { animation: flip-0 1.05s steps(20, end) both; }
.hero-stats .count-digit.fx-flip.d-1 .count-strip { animation: flip-1 1.12s steps(21, end) both; }
.hero-stats .count-digit.fx-flip.d-2 .count-strip { animation: flip-2 0.98s steps(22, end) both; }
.hero-stats .count-digit.fx-flip.d-3 .count-strip { animation: flip-3 1.18s steps(23, end) both; }
.hero-stats .count-digit.fx-flip.d-4 .count-strip { animation: flip-4 1.08s steps(24, end) both; }
.hero-stats .count-digit.fx-flip.d-5 .count-strip { animation: flip-5 1.22s steps(25, end) both; }
.hero-stats .count-digit.fx-flip.d-6 .count-strip { animation: flip-6 1.02s steps(26, end) both; }
.hero-stats .count-digit.fx-flip.d-7 .count-strip { animation: flip-7 1.16s steps(27, end) both; }
.hero-stats .count-digit.fx-flip.d-8 .count-strip { animation: flip-8 1.24s steps(28, end) both; }
.hero-stats .count-digit.fx-flip.d-9 .count-strip { animation: flip-9 1.1s steps(29, end) both; }
.hero-stats .count-digit.fx-flip .count-window {
  transform-origin: center 85%;
  animation: digit-flap 1.15s cubic-bezier(0.2, 0.72, 0.18, 1) both;
}
.hero-stats .count-digit.fx-drop.d-0 .count-strip { animation: drop-0 1.18s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
.hero-stats .count-digit.fx-drop.d-1 .count-strip { animation: drop-1 1.28s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
.hero-stats .count-digit.fx-drop.d-2 .count-strip { animation: drop-2 1.08s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
.hero-stats .count-digit.fx-drop.d-3 .count-strip { animation: drop-3 1.34s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
.hero-stats .count-digit.fx-drop.d-4 .count-strip { animation: drop-4 1.14s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
.hero-stats .count-digit.fx-drop.d-5 .count-strip { animation: drop-5 1.4s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
.hero-stats .count-digit.fx-drop.d-6 .count-strip { animation: drop-6 1.22s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
.hero-stats .count-digit.fx-drop.d-7 .count-strip { animation: drop-7 1.32s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
.hero-stats .count-digit.fx-drop.d-8 .count-strip { animation: drop-8 1.12s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
.hero-stats .count-digit.fx-drop.d-9 .count-strip { animation: drop-9 1.38s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
.hero-stats .count-digit.fx-drop .count-window { animation: drop-glow 1.25s ease both; }
.hero-stats .count-digit.fx-reel.delay-1 .count-strip,
.hero-stats .count-digit.fx-flip.delay-1 .count-strip,
.hero-stats .count-digit.fx-drop.delay-1 .count-strip,
.hero-stats .count-digit.fx-flip.delay-1 .count-window,
.hero-stats .count-digit.fx-drop.delay-1 .count-window { animation-delay: 0.16s; }
.hero-stats .count-digit.fx-reel.delay-2 .count-strip,
.hero-stats .count-digit.fx-flip.delay-2 .count-strip,
.hero-stats .count-digit.fx-drop.delay-2 .count-strip,
.hero-stats .count-digit.fx-flip.delay-2 .count-window,
.hero-stats .count-digit.fx-drop.delay-2 .count-window { animation-delay: 0.32s; }
@keyframes reel-0 { from { transform: translateY(0); } to { transform: translateY(-20em); } }
@keyframes reel-1 { from { transform: translateY(0); } to { transform: translateY(-21em); } }
@keyframes reel-2 { from { transform: translateY(0); } to { transform: translateY(-22em); } }
@keyframes reel-3 { from { transform: translateY(0); } to { transform: translateY(-23em); } }
@keyframes reel-4 { from { transform: translateY(0); } to { transform: translateY(-24em); } }
@keyframes reel-5 { from { transform: translateY(0); } to { transform: translateY(-25em); } }
@keyframes reel-6 { from { transform: translateY(0); } to { transform: translateY(-26em); } }
@keyframes reel-7 { from { transform: translateY(0); } to { transform: translateY(-27em); } }
@keyframes reel-8 { from { transform: translateY(0); } to { transform: translateY(-28em); } }
@keyframes reel-9 { from { transform: translateY(0); } to { transform: translateY(-29em); } }
@keyframes flip-0 { to { transform: translateY(-20em); } }
@keyframes flip-1 { to { transform: translateY(-21em); } }
@keyframes flip-2 { to { transform: translateY(-22em); } }
@keyframes flip-3 { to { transform: translateY(-23em); } }
@keyframes flip-4 { to { transform: translateY(-24em); } }
@keyframes flip-5 { to { transform: translateY(-25em); } }
@keyframes flip-6 { to { transform: translateY(-26em); } }
@keyframes flip-7 { to { transform: translateY(-27em); } }
@keyframes flip-8 { to { transform: translateY(-28em); } }
@keyframes flip-9 { to { transform: translateY(-29em); } }
@keyframes digit-flap {
  0% { transform: rotateX(-48deg); }
  28% { transform: rotateX(7deg); }
  48% { transform: rotateX(-16deg); }
  70% { transform: rotateX(4deg); }
  100% { transform: rotateX(0); }
}
@keyframes drop-0 { 0% { transform: translateY(-28em); } 72% { transform: translateY(-19.55em); } 100% { transform: translateY(-20em); } }
@keyframes drop-1 { 0% { transform: translateY(-29em); } 72% { transform: translateY(-20.55em); } 100% { transform: translateY(-21em); } }
@keyframes drop-2 { 0% { transform: translateY(-30em); } 72% { transform: translateY(-21.55em); } 100% { transform: translateY(-22em); } }
@keyframes drop-3 { 0% { transform: translateY(-31em); } 72% { transform: translateY(-22.55em); } 100% { transform: translateY(-23em); } }
@keyframes drop-4 { 0% { transform: translateY(-32em); } 72% { transform: translateY(-23.55em); } 100% { transform: translateY(-24em); } }
@keyframes drop-5 { 0% { transform: translateY(-33em); } 72% { transform: translateY(-24.55em); } 100% { transform: translateY(-25em); } }
@keyframes drop-6 { 0% { transform: translateY(-34em); } 72% { transform: translateY(-25.55em); } 100% { transform: translateY(-26em); } }
@keyframes drop-7 { 0% { transform: translateY(-35em); } 72% { transform: translateY(-26.55em); } 100% { transform: translateY(-27em); } }
@keyframes drop-8 { 0% { transform: translateY(-36em); } 72% { transform: translateY(-27.55em); } 100% { transform: translateY(-28em); } }
@keyframes drop-9 { 0% { transform: translateY(-37em); } 72% { transform: translateY(-28.55em); } 100% { transform: translateY(-29em); } }
@keyframes drop-glow {
  0% { text-shadow: none; }
  70% { text-shadow: 0 0 10px rgba(243, 226, 196, 0.9); }
  100% { text-shadow: none; }
}
.registry-counts span {
  display: block;
  margin-top: 0.55rem;
  color: var(--icrpc-gold-200);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cta-band { padding: 3.5rem 0; }
.cta-band .actions, .cta-band .btn-gold, .cta-band .btn-line { margin-top: 0.4rem; }
details.panel { margin-bottom: 0.75rem; }
details.panel summary { cursor: pointer; font-weight: 700; min-height: 44px; }
details.panel p:last-child { margin-bottom: 0; }
.search-row { display: flex; gap: 0.55rem; align-items: flex-start; }
.search-row input { margin: 0; }
.search-row button { white-space: nowrap; }
.empty {
  border: 1px dashed #cfc6b4;
  background: white;
  color: var(--icrpc-muted);
}
ol.modules { display: grid; gap: 0.55rem; padding: 0; margin: 0 0 1.5rem; list-style: none; counter-reset: module; }
ol.modules li {
  counter-increment: module;
  background: white;
  border: 1px solid var(--icrpc-line);
  border-radius: 14px;
  padding: 0.85rem 1rem 0.85rem 3.2rem;
  position: relative;
}
ol.modules li::before {
  content: counter(module, decimal-leading-zero);
  position: absolute;
  left: 0.9rem;
  top: 0.85rem;
  color: var(--icrpc-gold-700);
  font-family: var(--serif);
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.auth-wrap { width: min(480px, 100%); }
.auth-card {
  background: white;
  border: 1px solid var(--icrpc-line);
  border-top: 4px solid var(--icrpc-gold-500);
  border-radius: 20px;
  padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}
.auth-card h1 { margin-top: 0; }
.has-login-photo {
  background:
    linear-gradient(180deg, rgba(0, 32, 0, 0.42), rgba(0, 20, 0, 0.62)),
    url("../auth/login-bg.jpg") center 30% / cover no-repeat;
}
.has-register-photo {
  background:
    linear-gradient(180deg, rgba(0, 32, 0, 0.38), rgba(0, 20, 0, 0.55)),
    url("../auth/register-bg.jpg") center center / cover no-repeat;
}
.has-login-photo .brand-dark,
.has-login-photo .brand-dark strong,
.has-register-photo .brand-dark,
.has-register-photo .brand-dark strong { color: #fff; }
.has-login-photo .brand-dark .brand-motto,
.has-register-photo .brand-dark .brand-motto { color: #f3e2c4; }
.has-login-photo .auth-card,
.has-register-photo .auth-card {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(6px);
}

.admin-shell, .portal-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--icrpc-green-950); color: white; padding: 1.2rem 0.8rem; }
.side a { color: white; display: block; padding: 0.45rem 0.7rem; text-decoration: none; border-radius: 8px; }
.side a:hover, .side a.active { background: rgba(255,255,255,0.08); }
.main-pad { padding: 1.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.stat { background: white; border: 1px solid var(--icrpc-line); border-radius: 12px; padding: 1rem; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.8rem; }
table.data { width: 100%; border-collapse: collapse; background: white; }
table.data th, table.data td { padding: 0.65rem; border-bottom: 1px solid var(--icrpc-line); text-align: left; font-size: 0.95rem; }
.id-card {
  width: min(420px, 100%);
  background: white;
  border: 1px solid var(--icrpc-line);
  border-top: 8px solid var(--icrpc-green-950);
  border-radius: 16px;
  padding: 1.2rem;
}
.id-card img { width: 72px; height: 72px; }

@media (max-width: 1280px) {
  .brand-motto { max-width: 13.5rem; }
}
@media (max-width: 1024px) {
  .nav-toggle-label { display: inline-flex; margin-left: auto; }
  .header-tools { display: none; }
  .nav-toggle:checked ~ .header-tools {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #003000;
    padding: 0.4rem 1rem 1.2rem;
    border-bottom: 3px solid var(--icrpc-gold-500);
    max-height: calc(100vh - 84px);
    overflow: auto;
  }
  .primary-nav, .utility { flex-direction: column; align-items: stretch; }
  .primary-nav .submenu { position: static; display: block; background: transparent; box-shadow: none; border: 0; padding: 0 0 0.4rem 0.6rem; }
  .submenu a { color: white; }
  .submenu a:hover, .submenu a.is-current { background: rgba(255,255,255,0.08); color: white; }
  .nav-cta { margin: 0.4rem 0 0; justify-content: center; }
  .card-grid, .card-grid.pair, .card-grid.programmes-row, .card-grid.leaders, .footer-grid, .stat-grid, .hero-grid, .split, .cta-grid, .pillar-list.compact { grid-template-columns: 1fr 1fr; }
  .registry-counts ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem 0; }
  .registry-counts li { border-left: 0; }
  .hero-seal { justify-self: start; }
  .portal-shell { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .programmes-row .programme,
  .programmes-row .programme::after { transition: none; }
  .programmes-row .programme:hover,
  .programmes-row .programme:focus-within { transform: none; }
  .portal-sub, .portal-group summary::after { transition: none; }
  .gallery-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 1rem; }
  .gallery-set[aria-hidden="true"] { display: none; }
  .gallery-set { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 700px) {
  .gallery-set img { width: 260px; height: 174px; }
  .card-grid, .card-grid.pair, .card-grid.programmes-row, .card-grid.leaders, .footer-grid, .stat-grid, .hero-grid, .split, .cta-grid, .pillar-list.compact, .who-layout { grid-template-columns: 1fr; }
  .registry-counts ul { grid-template-columns: 1fr 1fr; }
  .leader-photo { width: min(118px, 36vw); height: min(118px, 36vw); }
  .hero { min-height: 0; }
  .hero-shade { background: linear-gradient(180deg, rgba(0, 28, 0, 0.55) 0%, rgba(0, 28, 0, 0.88) 58%); }
  .section { padding: 2.7rem 0; }
  .brand-motto { max-width: 11.5rem; font-size: 0.68rem; }
  .search-row { flex-direction: column; }
  .search-row button { width: 100%; }
}

.admin-body { background: #f4f1ea; }
.admin-shell { grid-template-columns: 248px minmax(0, 1fr); background: #f4f1ea; }
.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 1.1rem 0.75rem 1.4rem;
  background: #003000;
}
.admin-brand {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.35rem 0.7rem 0.9rem;
}
.admin-brand strong { display: block; font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.04em; }
.admin-brand span { display: block; color: #f3e2c4; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-nav-label {
  margin: 0.85rem 0 0.2rem;
  padding: 0 0.7rem;
  color: #c09048;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-side a.is-current { background: rgba(255,255,255,0.14); color: white; }
.admin-site-link { margin-top: 1rem; color: #f3e2c4 !important; }
.admin-workspace { min-width: 0; }
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  background: white;
  border-bottom: 1px solid var(--icrpc-line);
  position: sticky;
  top: 0;
  z-index: 4;
}
.admin-kicker { margin: 0; color: var(--icrpc-gold-700); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-clock { margin: 0.1rem 0 0; font-family: var(--serif); color: var(--icrpc-green-950); font-size: 1.05rem; }
.admin-user { position: relative; }
.admin-user summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.admin-user summary::-webkit-details-marker { display: none; }
.admin-user summary strong, .admin-user summary small { display: block; }
.admin-user summary strong { color: var(--icrpc-green-950); font-size: 0.95rem; }
.admin-user summary small { color: var(--icrpc-muted); font-weight: 500; }
.admin-user img, .admin-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--icrpc-gold-200);
}
.admin-avatar {
  display: grid;
  place-items: center;
  background: var(--icrpc-green-950);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}
.admin-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 210px;
  background: white;
  border: 1px solid var(--icrpc-line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
}
.admin-user-menu a, .admin-user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--icrpc-green-950);
  border-radius: 10px;
  min-height: 0;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  font-weight: 700;
}
.admin-user-menu a:hover, .admin-user-menu button:hover { background: var(--icrpc-green-100); color: var(--icrpc-green-950); }
.admin-main { padding: 1.4rem 1.5rem 2.4rem; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.1rem; }
.admin-heading h1 { margin: 0.15rem 0 0.35rem; }
.admin-heading p { margin: 0; max-width: 42rem; }
.admin-main h1 { margin-top: 0; }
.admin-panel, .admin-main > section:not(.admin-heading) {
  background: white;
  border: 1px solid var(--icrpc-line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
  margin-bottom: 1rem;
}
.admin-panel h2 { margin: 0 0 0.8rem; font-size: 1.25rem; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-stats { margin-bottom: 1rem; }
a.stat { color: inherit; text-decoration: none; display: block; }
a.stat:hover { border-color: var(--icrpc-gold-500); }
.admin-main table.data { border-radius: 12px; overflow: hidden; }
.admin-main table.data th { background: #f6f8f4; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.admin-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; align-items: start; }
.lms-card .btn-green { display: inline-flex; margin-top: 0.4rem; text-decoration: none; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; }
.inline-form select, .inline-form label { margin: 0; }
.inline-form select { min-width: 260px; width: auto; flex: 1; }
.chat-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 560px;
  background: white;
  border: 1px solid var(--icrpc-line);
  border-radius: 16px;
  overflow: hidden;
}
.chat-list { border-right: 1px solid var(--icrpc-line); background: #f7f6f1; overflow: auto; }
.chat-start { padding: 0.9rem; border-bottom: 1px solid var(--icrpc-line); background: white; }
.chat-person { display: block; padding: 0.8rem 0.9rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--icrpc-line); }
.chat-person strong, .chat-person span { display: block; }
.chat-person span { color: var(--icrpc-muted); font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-person.is-current, .chat-person:hover { background: #e7f6e4; }
.chat-thread { display: flex; flex-direction: column; min-width: 0; background: #efeae2; }
.chat-head { padding: 0.85rem 1rem; background: #003000; color: white; }
.chat-head strong, .chat-head span { display: block; }
.chat-head span { color: #f3e2c4; font-size: 0.88rem; }
.chat-log { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.chat-bubble { max-width: min(78%, 420px); background: white; border-radius: 14px 14px 14px 4px; padding: 0.55rem 0.75rem 0.4rem; }
.chat-bubble p { margin: 0; }
.chat-bubble time { display: block; margin-top: 0.25rem; color: var(--icrpc-muted); font-size: 0.75rem; }
.chat-bubble.mine { margin-left: auto; background: #d8f5d4; border-radius: 14px 14px 4px 14px; }
.chat-compose { display: flex; gap: 0.5rem; padding: 0.75rem; background: #f7f6f1; align-items: end; }
.chat-compose textarea { margin: 0; resize: vertical; }
.chat-compose button { flex: 0 0 auto; }
.chat-empty { margin: auto; text-align: center; padding: 2rem; }
.certificate-sheet {
  width: min(760px, 100%);
  margin: 0 auto;
  background: white;
  border: 1px solid var(--icrpc-line);
  border-top: 8px solid var(--icrpc-green-950);
  border-radius: 18px;
  padding: 2rem 1.6rem 1.5rem;
  text-align: center;
}
.certificate-sheet h2 { font-size: 2rem; margin: 0.2rem 0 1rem; }
.cert-name { font-family: var(--serif); font-size: 1.8rem; margin: 0.4rem 0; color: var(--icrpc-green-950); }
.cert-programme { font-weight: 700; font-size: 1.15rem; }
.cert-barcode-wrap { margin: 1rem 0 0.4rem; }
.cert-barcode { max-width: 100%; height: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (max-width: 900px) {
  .admin-split, .admin-stats { grid-template-columns: 1fr 1fr; }
}
.portal-banner {
  background: linear-gradient(90deg, #003000 0%, #004800 72%, #0a5a0a 100%);
  border-bottom: 4px solid #c09048;
  padding: 1.7rem 1.5rem 1.45rem;
}
.portal-banner .kicker { color: #f3e2c4; margin: 0 0 0.3rem; }
.portal-banner h1 { color: #fff; margin: 0; font-size: clamp(1.85rem, 3vw, 2.5rem); }
.portal-body .page-hero,
.portal-body .hero { display: none; }
.portal-body .section { padding: 1.35rem 0 0.4rem; }
.portal-body .section .container { max-width: none; }
.portal-body { background: #f4f1ea; }
.portal-shell { grid-template-columns: 248px minmax(0, 1fr); background: #f4f1ea; align-items: start; }
.portal-side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 1.1rem 0.75rem 1.4rem;
  background: #003000;
}
.portal-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.portal-group { border-radius: 10px; }
.portal-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  list-style: none;
  cursor: pointer;
  color: white;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
}
.portal-group summary::-webkit-details-marker { display: none; }
.portal-group summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid #f3e2c4;
  border-bottom: 2px solid #f3e2c4;
  transform: rotate(45deg) translateY(-2px);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.portal-group[open] > summary { background: rgba(255,255,255,0.1); color: #f3e2c4; }
.portal-group[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.portal-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.22s ease; }
.portal-group[open] > .portal-sub { grid-template-rows: 1fr; }
.portal-sub > div { overflow: hidden; }
.admin-side .portal-sub a,
.portal-side .portal-sub a {
  margin: 0 0.35rem 0.1rem 0.85rem;
  padding: 0.42rem 0.7rem;
  border-radius: 8px;
  color: #e7f6e4;
  font-weight: 600;
  font-size: 0.94rem;
}
.admin-side .portal-sub a.is-current,
.admin-side .portal-sub a:hover,
.portal-side .portal-sub a.is-current,
.portal-side .portal-sub a:hover { background: rgba(192, 144, 72, 0.22); color: white; }
.portal-side > a.is-current,
.portal-nav > a.is-current { background: rgba(255,255,255,0.14); color: white; }
.portal-stats { margin-bottom: 1rem; }
.portal-stats .stat strong { text-transform: capitalize; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.portal-list { list-style: none; margin: 0; padding: 0; }
.portal-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--icrpc-line);
}
.portal-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.portal-list strong { color: var(--icrpc-green-950); }
.portal-list span { color: var(--icrpc-muted); font-size: 0.92rem; }
.portal-number { font-family: var(--serif); font-size: 1.45rem; margin: 0.2rem 0; color: var(--icrpc-green-950); }
.status-chip {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--icrpc-green-100);
  color: var(--icrpc-green-950);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}
.admin-heading .btn-green { text-decoration: none; flex: 0 0 auto; }
.registry-card {
  width: min(460px, 100%);
  background: white;
  border: 1px solid var(--icrpc-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.registry-card header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: #003000;
  color: white;
}
.registry-card header img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: white; }
.registry-card header p { margin: 0; color: #f3e2c4; font-size: 0.82rem; line-height: 1.35; }
.registry-card header strong { display: block; margin-top: 0.15rem; }
.registry-card h2, .registry-card .registry-role, .registry-card .registry-number, .registry-card dl, .registry-card .muted { padding-left: 1.2rem; padding-right: 1.2rem; }
.registry-card h2 { margin: 1.1rem 0 0.15rem; }
.registry-role { margin: 0; color: var(--icrpc-gold-700); font-weight: 700; }
.registry-number { font-family: var(--serif); font-size: 1.35rem; margin: 0.35rem 0 0.8rem; }
.registry-photo { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; margin: 1rem 1.2rem 0; border: 3px solid var(--icrpc-gold-200); }
.registry-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0 0 1rem; }
.registry-card dt { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--icrpc-muted); }
.registry-card dd { margin: 0.1rem 0 0; font-weight: 700; color: var(--icrpc-green-950); }
.registry-card .muted { padding-bottom: 1.15rem; }
.apply-wizard { padding-top: 1.4rem; }
.wizard-wrap { max-width: 800px; }
.wizard-crumb { margin: 0 0 0.85rem; color: var(--icrpc-muted); font-size: 0.92rem; }
.wizard-crumb a { color: var(--icrpc-green-800); text-decoration: none; font-weight: 700; }
.wizard-crumb span { margin: 0 0.35rem; }
.wizard-hero {
  background: linear-gradient(135deg, #003000, #0b6b16);
  color: white;
  border-radius: 22px;
  padding: 2.6rem 1.6rem 2.3rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.wizard-hero .kicker { color: var(--icrpc-gold-200); }
.wizard-hero h1 { color: white; margin: 0.2rem 0 0.55rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.wizard-hero p:last-child { max-width: 36rem; margin: 0 auto; color: #e8f3e6; }
.wizard-steps { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.wizard-step {
  flex: 1 1 110px;
  text-align: center;
  padding: 0.65rem 0.45rem;
  border-radius: 8px;
  background: #eceae4;
  color: #6d736e;
  border: 2px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
}
.wizard-step a { color: inherit; text-decoration: none; display: block; }
.wizard-step.active { background: var(--icrpc-green-100); color: var(--icrpc-green-950); border-color: var(--icrpc-green-600); }
.wizard-step.completed { background: var(--icrpc-green-800); color: white; }
.wizard-panel {
  background: white;
  border-radius: 22px;
  padding: 1.6rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}
.wizard-panel h2 { margin: 0 0 1rem; font-size: 1.45rem; }
.wizard-panel .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 1rem; }
.wizard-panel .form-group.full { grid-column: 1 / -1; }
.wizard-panel input, .wizard-panel select, .wizard-panel textarea { margin-bottom: 0.35rem; }
.wizard-panel textarea { min-height: 120px; }
.wizard-note, .form-help { color: var(--icrpc-muted); font-size: 0.92rem; margin: 0.2rem 0 0.8rem; }
.wizard-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.2rem; }
.wizard-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--icrpc-green-800);
  color: var(--icrpc-green-950);
  text-decoration: none;
  font-weight: 700;
}
.wizard-review { display: grid; gap: 0.75rem; margin: 0 0 1rem; }
.wizard-review div { display: grid; gap: 0.15rem; }
.wizard-review dt { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--icrpc-muted); }
.wizard-review dd { margin: 0; font-weight: 700; }
.apply-check { font-weight: 600; margin: 0.4rem 0 0.8rem; }
@media (max-width: 860px) {
  .admin-shell, .portal-shell { grid-template-columns: 1fr; }
  .admin-side, .portal-side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 0.2rem 0.35rem; }
  .admin-side, .portal-side { display: block; }
  .portal-nav { width: 100%; }
  .portal-grid, .wizard-panel .form-grid, .registry-card dl { grid-template-columns: 1fr; }
  .wizard-steps { flex-direction: column; }
  .admin-nav-label, .admin-brand span { display: none; }
  .admin-top { align-items: flex-start; }
  .admin-user summary small, .admin-user summary strong { max-width: 9rem; }
  .admin-split, .chat-shell { grid-template-columns: 1fr; }
  .chat-shell { min-height: 0; }
  .chat-list { border-right: 0; border-bottom: 1px solid var(--icrpc-line); max-height: 280px; }
}
@media print {
  .admin-side, .admin-top, .portal-banner, .no-print, .flash { display: none !important; }
  .admin-shell, .admin-workspace, .admin-main { display: block; background: white; padding: 0; }
  .certificate-sheet { border: 0; box-shadow: none; }
}

body.lms-site { background: #f8fafc; }
.lms-nav {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 0.55rem 0;
}
.lms-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--icrpc-green-950);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}
.lms-brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.lms-nav .nav-link {
  color: var(--icrpc-green-950) !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.45rem 0.85rem !important;
  text-decoration: none;
}
.lms-nav .nav-link:hover,
.lms-nav .nav-link.active { background: rgba(0, 72, 0, 0.08); color: var(--icrpc-green-800) !important; }
.lms-nav .navbar-toggler {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-height: 40px;
  padding: 0.35rem 0.55rem;
  background: #fff;
}
.lms-nav .dropdown-menu { border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.35rem; }
.lms-nav .dropdown-item { border-radius: 8px; color: var(--icrpc-ink); text-decoration: none; }
.lms-nav button.dropdown-item {
  background: transparent;
  color: var(--icrpc-ink);
  border-radius: 8px;
  min-height: 0;
  width: 100%;
  text-align: left;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
}
.lms-nav button.dropdown-item:hover { background: #f1f5f9; color: var(--icrpc-green-800); }
.lms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--icrpc-green-950);
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}
.lms-site button.lms-btn { min-height: 0; border-radius: 8px; width: auto; }
.lms-site button.lms-btn.lms-btn-sm { padding: 0.4rem 0.8rem; }
.lms-btn:hover, .lms-site button.lms-btn:hover { background: var(--icrpc-green-800); color: #fff !important; }
.lms-btn-sm { padding: 0.4rem 0.85rem; font-size: 0.92rem; }
.lms-btn-lg { padding: 0.85rem 1.35rem; }
.lms-site .lms-filters button.lms-btn,
.lms-site .lms-enroll button.lms-btn,
.lms-site .lms-auth-card button.lms-btn,
.lms-site .lms-panel button.lms-btn { width: 100%; }
.lms-btn-line {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.lms-btn-line:hover { background: rgba(255, 255, 255, 0.12); color: #fff !important; }
.lms-btn-line-dark {
  background: #fff;
  color: var(--icrpc-green-950) !important;
  border: 1px solid var(--icrpc-green-800);
}
.lms-btn-line-dark:hover { background: var(--icrpc-green-950); color: #fff !important; }
.lms-ico { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.15em; }
.lms-hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(0, 48, 0, 0.78) 8%, rgba(0, 72, 0, 0.42) 58%, rgba(0, 24, 0, 0.28) 100%),
    url("../hero/01.jpg") center / cover no-repeat;
  padding: 4.5rem 0;
}
.lms-hero h1, .lms-pagehead h1, .lms-cta h2, .lms-band h2, .lms-panel h2, .lms-course h3, .lms-domain h3, .lms-reason h3, .lms-person h3, .lms-filters h2 {
  font-family: var(--sans);
  letter-spacing: 0;
}
.lms-hero h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.15; margin: 0 0 1rem; }
.lms-hero p { color: rgba(255, 255, 255, 0.92); font-size: 1.08rem; max-width: 38rem; margin-left: auto; }
.lms-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--icrpc-green-600);
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.lms-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 0.5rem; }
.lms-stats { display: flex; gap: 1.6rem; justify-content: flex-end; margin: 2rem 0 0; }
.lms-stats div { text-align: right; }
.lms-stats dt { color: #fff; font-size: 1.7rem; font-weight: 800; }
.lms-stats dd { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; }
.lms-band { padding: 4.2rem 0; }
.lms-band-mist { background: #eef2f4; }
.lms-band-paper { background: #f3e2c4; }
.lms-band-leaf { background: #e7f6e4; }
.lms-section-head, .lms-split-head { margin-bottom: 1.8rem; }
.lms-section-head { text-align: center; }
.lms-section-head h2, .lms-split-head h2, .lms-panel h2 { margin: 0 0 0.35rem; color: var(--icrpc-green-950); font-size: 1.75rem; font-weight: 800; }
.lms-section-head p, .lms-split-head p { color: var(--icrpc-muted); margin: 0; }
.lms-section-head-left { text-align: left; margin-top: 3rem; }
.lms-split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.lms-split-head a { color: var(--icrpc-green-800); font-weight: 700; text-decoration: none; }
.lms-domain, .lms-reason, .lms-person, .lms-course, .lms-panel, .lms-filters, .lms-enroll, .lms-stat, .lms-side {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.lms-domain, .lms-reason, .lms-person { display: block; height: 100%; padding: 1.4rem 1.1rem; text-align: center; text-decoration: none; color: inherit; }
.lms-domain:hover, .lms-course:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 48, 0, 0.08); }
.lms-domain-icon {
  width: 58px; height: 58px; margin: 0 auto 0.8rem; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--icrpc-green-100); color: var(--icrpc-green-800); font-size: 1.35rem;
}
.lms-domain h3, .lms-reason h3, .lms-person h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.lms-domain p, .lms-reason p, .lms-person p { color: var(--icrpc-muted); font-size: 0.92rem; margin: 0; }
.lms-course { height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.lms-course-media { position: relative; display: block; }
.lms-course-media img, .lms-enroll > img { width: 100%; height: 190px; object-fit: cover; display: block; }
.lms-badge {
  display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--icrpc-green-950); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.55rem;
}
.lms-course-media .lms-badge { position: absolute; top: 0.7rem; right: 0.7rem; }
.lms-badge-light { background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35); }
.lms-course-body { padding: 1rem 1rem 0.4rem; flex: 1; }
.lms-course-meta, .lms-course-by, .lms-course-facts { display: flex; justify-content: space-between; gap: 0.35rem 0.6rem; align-items: flex-start; color: var(--icrpc-muted); font-size: 0.85rem; }
.lms-course-meta { flex-wrap: wrap; }
.lms-course-meta span:last-child { white-space: nowrap; }
.lms-course h3 { font-size: 1.05rem; margin: 0.55rem 0; }
.lms-course h3 a { color: var(--icrpc-green-950); text-decoration: none; }
.lms-course-body p { color: var(--icrpc-muted); font-size: 0.92rem; }
.lms-course-by img, .lms-course-facts img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.lms-course-by { justify-content: flex-start; }
.lms-course-foot { display: flex; justify-content: flex-end; padding: 0.3rem 1rem 1rem; }
.lms-pagehead { background: var(--icrpc-green-950); color: #fff; padding: 3.2rem 0 2.6rem; }
.lms-pagehead h1 { color: #fff; font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 0.4rem; }
.lms-pagehead p, .lms-lead { color: rgba(255, 255, 255, 0.88); margin: 0; }
.lms-course-kicker { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.lms-course-facts { justify-content: flex-start; margin-top: 1rem; color: #fff; }
.lms-course-facts span { display: inline-flex; align-items: center; gap: 0.4rem; }
.lms-panel, .lms-filters, .lms-enroll { padding: 1.25rem 1.3rem; margin-bottom: 1rem; }
.lms-copy, .lms-prose { color: var(--icrpc-muted); }
.lms-filters label { margin-top: 0.4rem; }
.lms-text-link { display: inline-block; margin-top: 0.8rem; font-weight: 700; }
.lms-empty { color: var(--icrpc-muted); }
.lms-enroll { position: sticky; top: 88px; }
.lms-enroll > img { border-radius: 10px; margin-bottom: 1rem; height: 180px; }
.lms-enroll h2 { font-size: 1rem; margin-top: 1rem; }
.lms-enroll ul, .lms-lessons, .lms-account-list, .lms-footer ul, .lms-side { list-style: none; padding: 0; margin: 0; }
.lms-enroll li, .lms-lessons li { display: flex; gap: 0.45rem; align-items: flex-start; color: var(--icrpc-muted); margin: 0.45rem 0; }
.lms-fee-note { background: #fff8ec; border-left: 4px solid var(--icrpc-gold-500); padding: 0.7rem 0.8rem; font-size: 0.92rem; }
.lms-price { font-size: 1.4rem; font-weight: 800; color: var(--icrpc-green-950); }
.lms-module { border: 1px solid #e2e8f0 !important; border-radius: 10px !important; overflow: hidden; margin-bottom: 0.7rem; }
.lms-site .lms-module .accordion-button {
  background: #fff; color: var(--icrpc-green-950); font-weight: 700; gap: 0.75rem;
  box-shadow: none; border-radius: 0; min-height: 0; width: 100%; justify-content: space-between;
}
.lms-site .lms-module .accordion-button:hover,
.lms-site .lms-module .accordion-button:not(.collapsed) { background: var(--icrpc-green-100); color: var(--icrpc-green-950); }
.lms-person img { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; margin-bottom: 0.8rem; }
.lms-role { color: var(--icrpc-green-800) !important; font-weight: 700; }
.lms-cta { background: var(--icrpc-green-950); color: #fff; text-align: center; padding: 4.5rem 0; }
.lms-cta h2 { color: #fff; font-weight: 800; margin-bottom: 0.6rem; }
.lms-cta p { color: rgba(255, 255, 255, 0.86); margin-bottom: 1.2rem; }
.lms-footer { background: var(--icrpc-green-800); color: #e7f6e4; padding: 3.2rem 0 1.4rem; }
.lms-footer h2 { color: #fff; font-family: var(--sans); font-size: 1rem; margin: 0 0 0.8rem; }
.lms-footer a { color: #fff; text-decoration: none; opacity: 0.92; }
.lms-footer a:hover { color: var(--icrpc-gold-200); }
.lms-footer li { margin-bottom: 0.45rem; }
.lms-footer-copy { color: #d7efd4; margin: 0.9rem 0 0; max-width: 28rem; }
.lms-brand-light { color: #fff; margin-bottom: 0.4rem; }
.lms-contact li { display: flex; gap: 0.45rem; align-items: flex-start; }
.lms-footer hr { border-color: rgba(255, 255, 255, 0.2); margin: 1.6rem 0 1rem; }
.lms-legal p, .lms-legal a { font-size: 0.92rem; }
.lms-legal a { margin-left: 0.8rem; }
.lms-auth { background: var(--icrpc-green-950); padding: 3.5rem 0; min-height: calc(100vh - 220px); }
.lms-auth.has-login-photo {
  background:
    linear-gradient(180deg, rgba(0, 28, 0, 0.34), rgba(0, 18, 0, 0.5)),
    url("../auth/login-bg.jpg") center 28% / cover no-repeat;
}
.lms-auth.has-register-photo {
  background:
    linear-gradient(180deg, rgba(0, 28, 0, 0.32), rgba(0, 18, 0, 0.48)),
    url("../auth/register-bg.jpg") center 42% / cover no-repeat;
}
.lms-auth-card { background: #fff; border-radius: 16px; padding: 1.6rem 1.4rem 1.3rem; }
.lms-auth.has-login-photo .lms-auth-card,
.lms-auth.has-register-photo .lms-auth-card {
  background: transparent;
  box-shadow: none;
}
.lms-auth.has-login-photo .lms-auth-card p,
.lms-auth.has-register-photo .lms-auth-card p,
.lms-auth.has-login-photo .lms-auth-card label,
.lms-auth.has-register-photo .lms-auth-card label {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.lms-auth.has-login-photo .lms-auth-card a,
.lms-auth.has-register-photo .lms-auth-card a { color: var(--icrpc-gold-200); }
.lms-auth-card img { border-radius: 12px; margin-bottom: 0.6rem; }
.lms-auth-card p { color: var(--icrpc-muted); }
.lms-auth-row, .lms-auth-switch { margin-top: 0.2rem; }
.lms-hint { margin-top: -0.6rem; font-size: 0.82rem; }
.lms-check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 600; }
.lms-check input { width: auto; margin: 0.25rem 0 0; }
.lms-touch { display: flex; gap: 0.8rem; margin: 0 0 1.1rem; }
.lms-touch > span {
  width: 42px; height: 42px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--icrpc-green-950); color: #fff;
}
.lms-touch h3 { font-family: var(--sans); font-size: 1rem; margin: 0 0 0.15rem; }
.lms-touch p { margin: 0; color: var(--icrpc-muted); }
.lms-portal { padding: 1.6rem 0 3rem; }
.lms-side { display: flex; flex-direction: column; padding: 0.45rem; position: sticky; top: 88px; }
.lms-side a { color: var(--icrpc-muted); text-decoration: none; font-weight: 700; padding: 0.7rem 0.9rem; border-radius: 8px; border-left: 3px solid transparent; }
.lms-side a:hover, .lms-side a.active { background: var(--icrpc-green-100); color: var(--icrpc-green-800); border-left-color: var(--icrpc-green-800); }
.lms-side form { margin: 0; }
.lms-side button {
  display: block;
  width: 100%;
  margin: 0;
  background: transparent;
  color: var(--icrpc-muted);
  text-align: left;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 8px;
  min-height: 0;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lms-side button:hover { background: var(--icrpc-green-100); color: var(--icrpc-green-800); border-left-color: var(--icrpc-green-800); }
.lms-welcome { font-size: 1.05rem; color: var(--icrpc-muted); }
.lms-stat { padding: 1rem 1.05rem; height: 100%; }
.lms-stat strong { display: block; font-size: 1.45rem; color: var(--icrpc-green-950); line-height: 1.1; }
.lms-stat span { color: var(--icrpc-muted); font-size: 0.88rem; }
.lms-account-list li { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid #e2e8f0; }
.lms-account-list li:last-child { border-bottom: 0; }
.lms-dash-stats { margin-bottom: 1rem; }
@media (max-width: 991px) {
  .lms-hero, .lms-hero p, .lms-hero-actions, .lms-stats, .lms-stats div { text-align: left; margin-left: 0; justify-content: flex-start; }
  .lms-hero p { margin-left: 0; }
  .lms-enroll, .lms-side { position: static; }
  .lms-nav .navbar-collapse {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.45rem;
    padding: 0.35rem 0 0.6rem;
  }
}
