:root {
  --bg: #f6efe5;
  --bg-alt: #fffaf3;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: #fffdf8;
  --surface-dark: #1f2d25;
  --text: #253228;
  --muted: #617063;
  --line: rgba(37, 50, 40, 0.1);
  --line-strong: rgba(37, 50, 40, 0.18);
  --brand: #da744a;
  --brand-dark: #bb5937;
  --brand-soft: #f4c3a8;
  --leaf: #557a60;
  --leaf-dark: #385241;
  --leaf-soft: #d7e6d7;
  --gold: #efc267;
  --gold-soft: #f7e7bf;
  --danger: #b54141;
  --shadow: 0 24px 60px rgba(85, 65, 42, 0.14);
  --shadow-soft: 0 16px 34px rgba(85, 65, 42, 0.1);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background: linear-gradient(180deg, #f5e4d1 0%, var(--bg) 30%, #fffbf6 100%);
  overflow-x: hidden;
}

body.admin-page,
body.portal-page {
  background: linear-gradient(180deg, #eef4ef 0%, #f7faf6 100%);
}

body.user-portal-page {
  background: linear-gradient(180deg, #eef3fb 0%, #f8fbff 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
}

img {
  display: block;
  max-width: 100%;
}

.site-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(239, 194, 103, 0.22), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(218, 116, 74, 0.18), transparent 20%),
    radial-gradient(circle at 15% 85%, rgba(85, 122, 96, 0.14), transparent 20%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(37, 50, 40, 0.06);
  backdrop-filter: blur(18px);
  background: rgba(246, 239, 229, 0.72);
}

.portal-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.portal-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 1.5rem;
  border-right: 1px solid rgba(37, 50, 40, 0.08);
  background:
    linear-gradient(180deg, rgba(34, 49, 39, 0.96), rgba(29, 41, 33, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.user-sidebar {
  background:
    linear-gradient(180deg, rgba(38, 56, 92, 0.95), rgba(27, 44, 76, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.portal-brand .brand-copy small,
.portal-sidebar .brand-copy strong {
  color: #fff;
}

.portal-user-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.portal-label {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-user-card strong,
.portal-user-card span {
  display: block;
}

.portal-user-card strong {
  font-size: 1.08rem;
}

.portal-user-card span {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.72);
  word-break: break-word;
}

.portal-nav {
  display: grid;
  gap: 0.45rem;
}

.portal-nav a {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.portal-nav a:hover,
.portal-nav a:focus-visible,
.portal-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-sidebar-footer {
  margin-top: auto;
}

.portal-sidebar-footer .button-secondary {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.portal-content {
  padding: 2.4rem;
}

.admin-header {
  background: rgba(242, 247, 243, 0.82);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-family: "Fraunces", serif;
  font-size: 1.12rem;
  font-weight: 700;
  background: linear-gradient(145deg, var(--brand), var(--gold));
  box-shadow: 0 16px 30px rgba(218, 116, 74, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}

.nav-links .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 16px 28px rgba(187, 89, 55, 0.22);
}

.nav-links .nav-login {
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible,
.nav-links .nav-cta.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  transform: translateY(-1px);
}

.nav-links .nav-login:hover,
.nav-links .nav-login:focus-visible,
.nav-links .nav-login.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.nav-links-static {
  gap: 0.55rem;
}

.nav-links-static a {
  background: rgba(255, 255, 255, 0.6);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--text);
}

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

.hero-section,
.page-hero,
.auth-section {
  padding: 4.6rem 0 3.4rem;
}

.hero-grid,
.page-hero-grid,
.auth-grid,
.contact-grid,
.split-layout,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 1.25rem;
  align-items: start;
}

.hero-home {
  padding-top: 4.6rem;
  position: relative;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 1.3rem 0 auto;
  height: 72%;
  background:
    linear-gradient(rgba(85, 122, 96, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 122, 96, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.58;
  pointer-events: none;
}

.hero-home .hero-grid {
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.46rem 0.86rem;
  margin: 0 0 1rem;
  border-radius: 999px;
  background: rgba(85, 122, 96, 0.12);
  color: var(--leaf-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

.hero-copy h1,
.page-hero-copy h1,
.auth-copy h1,
.admin-empty h1,
.admin-hero h1,
.section-copy h2,
.section-heading h2,
.cta-panel h2,
.form-head h2 {
  font-family: "Fraunces", serif;
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.hero-copy h1,
.page-hero-copy h1,
.auth-copy h1,
.admin-empty h1,
.admin-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  margin-bottom: 1rem;
}

.hero-copy h1 span {
  color: var(--brand-dark);
}

.page-hero-copy p,
.hero-text,
.auth-copy p,
.section-copy p,
.section-heading p,
.cta-panel p,
.admin-hero p,
.admin-empty p,
.form-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.04rem;
}

.hero-actions,
.cta-actions,
.admin-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 18px 30px rgba(187, 89, 55, 0.22);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.button-small {
  min-height: 44px;
  padding: 0.75rem 1rem;
}

.hero-promise-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.hero-promise-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.84rem;
  border: 1px solid rgba(85, 122, 96, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--leaf-dark);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(85, 65, 42, 0.07);
}

.hero-points,
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.55rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.hero-points li,
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.6;
}

.hero-points li::before,
.check-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 0.45rem;
  flex: 0 0 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leaf), var(--gold));
  box-shadow: 0 0 0 6px rgba(85, 122, 96, 0.09);
}

.hero-showcase,
.page-hero-panel,
.story-card,
.form-card,
.contact-card,
.cta-panel,
.admin-empty,
.admin-panel,
.admin-stat-card,
.floating-card,
.feature-card,
.program-card,
.timeline-card,
.testimonial-card,
.route-card,
.stats-grid article {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-showcase {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.96), transparent 28%),
    linear-gradient(145deg, rgba(255, 249, 242, 0.96), rgba(243, 232, 217, 0.88));
}

.hero-visual {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.hero-visual-media {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 44px rgba(95, 67, 38, 0.12);
}

.hero-visual-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(31, 45, 37, 0.32));
  pointer-events: none;
}

.hero-visual-media img,
.page-hero-illustration,
.section-illustration,
.content-illustration-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-visual-card,
.content-illustration-card {
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 252, 246, 0.84);
  box-shadow: 0 14px 34px rgba(95, 67, 38, 0.09);
}

.hero-visual-card-primary {
  padding: 1.55rem;
}

.hero-visual-media {
  min-height: 360px;
}

.content-illustration-card {
  overflow: hidden;
  padding: 0.8rem;
  min-height: 240px;
}

.hero-visual-card h2 {
  margin: 0.3rem 0 0.8rem;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1.04;
}

.hero-visual-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-visual-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hero-note-card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  width: min(230px, calc(100% - 2rem));
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 42px rgba(37, 50, 40, 0.16);
}

.hero-note-card span,
.hero-rhythm-card span,
.home-note-panel span,
.route-step {
  display: inline-flex;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-note-card strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--leaf-dark);
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  line-height: 1.05;
}

.hero-rhythm-card,
.home-note-panel {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(85, 122, 96, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(215, 230, 215, 0.54), rgba(255, 250, 243, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(255, 255, 255, 0.28) 16px 17px);
  box-shadow: 0 14px 32px rgba(85, 65, 42, 0.09);
}

.hero-rhythm-card p,
.home-note-panel p {
  margin: 0.45rem 0 0;
  color: var(--leaf-dark);
  font-weight: 800;
  line-height: 1.6;
}

.card-label,
.panel-kicker {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-number {
  color: var(--leaf-dark);
  font-family: "Fraunces", serif;
  font-size: 2rem;
  margin: 0 0 0.3rem;
}

.stats-band {
  padding: 0.5rem 0 1.4rem;
}

.stats-grid,
.three-grid,
.timeline-grid,
.testimonial-grid,
.route-grid,
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.stats-grid article,
.feature-card,
.program-card,
.timeline-card,
.testimonial-card,
.route-card {
  padding: 1.5rem;
}

.stats-grid article {
  position: relative;
  overflow: hidden;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.stats-grid article::before,
.route-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 4px solid rgba(218, 116, 74, 0.48);
  pointer-events: none;
}

.stat {
  margin: 0 0 0.4rem;
  color: var(--brand-dark);
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
}

.stats-grid p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-section {
  padding: 4.1rem 0;
}

.home-approach-section {
  padding-bottom: 1.15rem;
}

.content-section.alternate {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    linear-gradient(120deg, rgba(215, 230, 215, 0.24), rgba(255, 244, 232, 0.7));
}

.home-routes-section {
  padding-top: 2.15rem;
}

.programme-proof-section {
  padding-top: 3rem;
}

@media (min-width: 981px) {
  .programme-proof-section .section-copy {
    position: sticky;
    top: 7.2rem;
    align-self: start;
  }
}

.section-copy h2,
.section-heading h2,
.cta-panel h2,
.form-head h2 {
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
}

.section-copy {
  display: flex;
  flex-direction: column;
}

.approach-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.approach-support-grid article {
  min-height: 178px;
  padding: 1.05rem;
  border: 1px solid rgba(85, 122, 96, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(249, 244, 235, 0.72));
  box-shadow: 0 16px 34px rgba(85, 65, 42, 0.08);
}

.approach-support-grid span {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(215, 230, 215, 0.75);
  color: var(--leaf-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.approach-support-grid strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.25;
}

.approach-support-grid p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.approach-quote {
  margin-top: 0.9rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(218, 116, 74, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 194, 103, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(246, 231, 211, 0.68));
  box-shadow: 0 16px 34px rgba(85, 65, 42, 0.08);
}

.approach-quote p {
  color: var(--brand-dark);
  font-family: "Fraunces", serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.18;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.programme-support-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.programme-support-list article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(85, 122, 96, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(249, 244, 235, 0.72));
  box-shadow: 0 14px 30px rgba(85, 65, 42, 0.08);
}

.programme-support-list span {
  display: inline-flex;
  justify-content: center;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  background: rgba(218, 116, 74, 0.12);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.programme-support-list p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.programme-help-panel {
  margin-top: 0.9rem;
  padding: 1.25rem;
  border: 1px solid rgba(218, 116, 74, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 194, 103, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(246, 231, 211, 0.72));
  box-shadow: 0 16px 34px rgba(85, 65, 42, 0.08);
}

.programme-help-panel strong {
  display: block;
  color: var(--text);
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
  line-height: 1.08;
}

.programme-help-panel p {
  margin: 0.65rem 0 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

.programme-help-panel a {
  display: inline-flex;
  margin-top: 0.85rem;
  color: var(--brand-dark);
  font-weight: 900;
}

.feature-stack {
  display: grid;
  gap: 1rem;
}

.feature-card h3,
.program-card h3,
.timeline-card h3,
.route-card h3,
.admin-panel h2,
.story-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.18rem;
}

.feature-card p,
.program-card p,
.timeline-card p,
.route-card p,
.testimonial-card p,
.story-card p,
.admin-panel p,
.admin-empty p,
.contact-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.program-tag {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(218, 116, 74, 0.12);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero-panel,
.story-card {
  padding: 1.75rem;
}

.page-hero-panel-visual,
.story-card,
.contact-card {
  display: grid;
  gap: 1rem;
}

.page-hero-illustration,
.section-illustration,
.content-illustration-card img {
  border-radius: 22px;
  border: 1px solid rgba(230, 215, 198, 0.86);
  background: rgba(255, 255, 255, 0.74);
}

.page-hero-illustration {
  min-height: 280px;
}

.section-illustration {
  min-height: 240px;
}

.page-hero-panel-copy {
  display: grid;
  gap: 0.35rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.pill-row span {
  padding: 0.56rem 0.9rem;
  border-radius: 999px;
  background: rgba(85, 122, 96, 0.1);
  color: var(--leaf-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.timeline-card span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--brand-dark);
  font-family: "Fraunces", serif;
  font-size: 1.75rem;
}

.route-card a,
.footer-links a {
  font-weight: 800;
}

.route-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--brand-dark);
}

.route-card {
  position: relative;
  min-height: 220px;
}

.route-step {
  margin-bottom: 1.1rem;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  background: rgba(239, 194, 103, 0.2);
}

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

.testimonial-card strong {
  display: inline-block;
  margin-top: 1rem;
}

.cta-section {
  padding: 0 0 4.8rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
}

.auth-copy,
.page-hero-copy {
  padding-top: 0.7rem;
}

.form-card,
.contact-card {
  padding: 1.6rem;
}

.form-head {
  margin-bottom: 1.3rem;
}

.site-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid.single-field {
  grid-template-columns: 1fr;
}

.site-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 700;
  font-size: 0.96rem;
}

.site-form input,
.site-form select,
.site-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(37, 50, 40, 0.14);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 3.25rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle.is-visible {
  background: rgba(79, 99, 83, 0.1);
  outline: none;
}

.password-eye {
  position: relative;
  width: 1.1rem;
  height: 0.68rem;
  display: block;
  border: 2px solid currentColor;
  border-radius: 999px / 680px;
}

.password-eye::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-toggle.is-visible .password-eye::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.15rem;
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  transform: rotate(-38deg);
}

.site-form input:focus,
.site-form select:focus,
.site-form textarea:focus {
  border-color: rgba(218, 116, 74, 0.48);
  box-shadow: 0 0 0 4px rgba(218, 116, 74, 0.12);
}

.site-form textarea {
  resize: vertical;
}

.form-feedback {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
}

.form-feedback.is-success {
  color: var(--leaf-dark);
}

.form-feedback.is-error {
  color: var(--danger);
}

.auth-helper {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.auth-helper a {
  color: var(--leaf-dark);
  font-weight: 800;
}

body.register-page .register-simple-layout {
  grid-template-columns: minmax(280px, 0.78fr) minmax(340px, 0.92fr);
  gap: 1.4rem;
  align-items: start;
}

body.register-page .auth-copy {
  max-width: 560px;
}

body.register-page .auth-copy p {
  max-width: 50ch;
}

.register-summary-card {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.35rem;
}

.register-summary-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(37, 50, 40, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 28px rgba(85, 65, 42, 0.07);
}

.register-summary-item strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(85, 122, 96, 0.14), rgba(239, 194, 103, 0.24));
  color: var(--leaf-dark);
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
}

.register-summary-item span {
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

.register-form-card {
  padding: 1.5rem;
}

.register-form-copy {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.register-approval-note {
  margin: -0.15rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(85, 122, 96, 0.1);
  border-radius: 16px;
  background: rgba(215, 230, 215, 0.26);
  color: var(--leaf-dark);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.contact-item + .contact-item {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.contact-item span {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-item a {
  font-size: 1.08rem;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.4rem;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.4rem;
  transform: translateY(-50%);
  color: var(--brand-dark);
  font-size: 1.4rem;
  transition: transform 180ms ease;
}

.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.faq-answer p {
  padding: 0 1.4rem 1.4rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  padding: 1.4rem 0 2rem;
  border-top: 1px solid rgba(37, 50, 40, 0.08);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
}

.footer-layout p {
  margin: 0.25rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.admin-lock {
  padding-top: 0.5rem;
}

.admin-empty,
.admin-panel {
  padding: 1.8rem;
}

.admin-empty {
  max-width: 760px;
}

.admin-dashboard[hidden],
.admin-lock[hidden] {
  display: none;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.admin-stats {
  margin-bottom: 1rem;
}

.admin-stat-card {
  padding: 1.3rem 1.4rem;
}

.admin-stat-card span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-stat-card strong {
  color: var(--text);
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.admin-grid {
  align-items: start;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-header span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table td strong {
  display: block;
  margin-bottom: 0.2rem;
}

.data-table td small {
  color: var(--muted);
}

.message-list {
  display: grid;
  gap: 0.8rem;
}

.message-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.66);
}

.message-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
}

.message-card-header strong {
  font-size: 1rem;
}

.message-card-header span,
.message-card-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.message-card p {
  margin: 0.55rem 0 0;
  color: var(--text);
  line-height: 1.7;
}

.empty-state {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
}

.security-event-feed {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.security-event-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 50, 40, 0.08);
  background: rgba(255, 255, 255, 0.64);
}

.security-event-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.security-event-card p,
.security-event-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.security-event-card small {
  display: inline-block;
  margin-top: 0.35rem;
}

.security-event-alert {
  border-color: rgba(180, 69, 69, 0.2);
  background: rgba(255, 244, 244, 0.82);
}

.security-warning-copy {
  color: #9d4848 !important;
  font-weight: 800;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 460ms ease, transform 460ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

body.admin-password-modal-open {
  overflow: hidden;
}

.admin-password-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.admin-password-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 34, 28, 0.58);
  backdrop-filter: blur(12px);
}

.admin-password-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  border: 1px solid rgba(24, 34, 28, 0.12);
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 24px 70px rgba(24, 34, 28, 0.24);
  padding: clamp(1.2rem, 4vw, 2rem);
}

.admin-password-modal-card .site-form {
  margin-top: 1rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .page-hero-grid,
  .auth-grid,
  .contact-grid,
  .split-layout,
  .admin-grid,
  .cta-panel,
  .admin-hero,
  .portal-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stats-grid,
  .three-grid,
  .timeline-grid,
  .testimonial-grid,
  .route-grid,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .approach-support-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-visual-stats {
    grid-template-columns: 1fr 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .brand {
    max-width: calc(100% - 68px);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 251, 245, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    max-height: min(75vh, calc(100dvh - 110px));
    overflow-y: auto;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links-static {
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    flex-direction: row;
  }

  .nav-links a {
    text-align: center;
    width: 100%;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .portal-sidebar {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 1.2rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .portal-content {
    padding: 1.4rem;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-mini-card {
    display: none;
  }

  .admin-topbar,
  .admin-hero,
  .panel-header,
  .message-card-header {
    align-items: flex-start;
  }

  .panel-header,
  .message-card-header {
    flex-direction: column;
  }

  .admin-empty,
  .admin-panel,
  .page-hero-panel,
  .story-card,
  .form-card,
  .contact-card,
  .cta-panel {
    padding: 1.4rem;
  }

  body.register-page .register-simple-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .navbar {
    min-height: 74px;
  }

  .brand {
    gap: 0.7rem;
    max-width: calc(100% - 60px);
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy small {
    display: none;
  }

  .site-header {
    backdrop-filter: blur(12px);
  }

  .nav-links {
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: 20px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .nav-links a {
    padding: 0.82rem 0.9rem;
  }

  .hero-copy h1,
  .page-hero-copy h1,
  .auth-copy h1,
  .admin-empty h1,
  .admin-hero h1,
  .section-copy h2,
  .section-heading h2,
  .cta-panel h2,
  .form-head h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

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

  .hero-grid,
  .page-hero-grid,
  .auth-grid,
  .contact-grid,
  .split-layout {
    gap: 0.95rem;
  }

  .approach-support-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 1.3rem;
  }

  .approach-support-grid article {
    min-height: 0;
    padding: 0.95rem;
    border-radius: 18px;
  }

  .approach-quote {
    padding: 1rem;
    border-radius: 18px;
  }

  .register-summary-item {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 0.82rem 0.9rem;
    gap: 0.72rem;
  }

  .register-summary-item strong {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .hero-visual {
    padding: 0.9rem;
  }

  .hero-visual-card-primary h2 {
    font-size: 1.55rem;
  }

  .cta-actions,
  .hero-actions,
  .admin-quick-links {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .table-action {
    width: 100%;
  }

  .portal-sidebar {
    padding: 1rem;
    gap: 1rem;
  }

  .portal-nav a {
    padding: 0.85rem 0.95rem;
  }

  .portal-content {
    padding: 1rem;
  }

  .hero-section,
  .page-hero,
  .auth-section,
  .content-section {
    padding-top: 2.8rem;
    padding-bottom: 2.2rem;
  }

  .home-approach-section {
    padding-bottom: 0.9rem;
  }

  .home-routes-section {
    padding-top: 1.5rem;
  }

  .stats-band,
  .cta-section,
  .site-footer {
    padding-left: 0;
    padding-right: 0;
  }

  .site-form input,
  .site-form select,
  .site-form textarea,
  .toolbar-field input,
  .toolbar-field select {
    min-height: 50px;
  }

  .site-form textarea {
    min-height: 132px;
  }

  .story-card,
  .form-card,
  .contact-card,
  .page-hero-panel,
  .cta-panel,
  .admin-panel {
    border-radius: 20px;
    padding: 1.1rem;
  }

  .register-form-card {
    padding: 1.1rem;
  }

  .table-wrap {
    margin-inline: -0.2rem;
    padding-bottom: 0.2rem;
  }

  .data-table {
    min-width: 540px;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.65rem;
  }

  .admin-topbar h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .admin-stat-card {
    padding: 1.1rem 1.15rem;
  }

  .message-card,
  .resource-card {
    padding: 0.95rem;
  }
}

@media (max-width: 520px) {
  .hero-section,
  .page-hero,
  .auth-section,
  .content-section {
    padding-top: 2.45rem;
    padding-bottom: 2rem;
  }

  .home-approach-section {
    padding-bottom: 0.7rem;
  }

  .home-routes-section {
    padding-top: 1.2rem;
  }

  .hero-copy h1,
  .page-hero-copy h1,
  .auth-copy h1,
  .admin-empty h1,
  .admin-hero h1,
  .section-copy h2,
  .section-heading h2,
  .cta-panel h2,
  .form-head h2 {
    font-size: clamp(1.8rem, 11vw, 2.45rem);
  }

  .eyebrow {
    margin-bottom: 0.8rem;
    font-size: 0.74rem;
  }

  .button,
  .table-action {
    min-height: 48px;
  }

  .hero-visual-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Home approach cards: keep this near the end so the section stays rich after cache/cascade changes. */
body[data-page="home"] .approach-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.7rem;
}

body[data-page="home"] .approach-support-grid article {
  min-height: 178px;
  padding: 1.05rem;
  border: 1px solid rgba(85, 122, 96, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(239, 194, 103, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(249, 244, 235, 0.76));
  box-shadow: 0 16px 34px rgba(85, 65, 42, 0.08);
}

body[data-page="home"] .approach-support-grid span {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(215, 230, 215, 0.78);
  color: var(--leaf-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

body[data-page="home"] .approach-support-grid strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.25;
}

body[data-page="home"] .approach-support-grid p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

body[data-page="home"] .approach-quote {
  margin-top: 0.9rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(218, 116, 74, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 194, 103, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(246, 231, 211, 0.68));
  box-shadow: 0 16px 34px rgba(85, 65, 42, 0.08);
}

body[data-page="home"] .approach-quote p {
  margin: 0;
  color: var(--brand-dark);
  font-family: "Fraunces", serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.18;
}

@media (max-width: 680px) {
  body[data-page="home"] .approach-support-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 1.3rem;
  }

  body[data-page="home"] .approach-support-grid article {
    min-height: 0;
    padding: 0.95rem;
    border-radius: 18px;
  }

  body[data-page="home"] .approach-quote {
    padding: 1rem;
    border-radius: 18px;
  }
}

.admin-sidebar {
  gap: 1rem;
}

.portal-user-card-strong small {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.sidebar-mini-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-mini-card a {
  display: block;
  padding: 0.65rem 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.sidebar-mini-card a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-portal-content {
  background:
    radial-gradient(circle at 8% 15%, rgba(239, 194, 103, 0.16), transparent 18%),
    radial-gradient(circle at 92% 10%, rgba(218, 116, 74, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(246, 250, 247, 0.82), rgba(249, 252, 250, 0.96));
}

.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-topbar-copy {
  max-width: 840px;
}

.admin-topbar h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-stats-rich {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.admin-stat-card small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.5;
}

.admin-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.admin-panel-large {
  min-height: 100%;
}

.admin-side-stack {
  display: grid;
  gap: 1rem;
}

.panel-copy {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.2rem;
}

.admin-user-form,
.admin-invoice-form,
.admin-allocation-form {
  margin: 1rem 0 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.42);
}

.user-management-toolbar {
  grid-template-columns: 1fr;
}

.toolbar-field {
  display: grid;
  gap: 0.42rem;
}

.toolbar-field span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toolbar-field input,
.toolbar-field select {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(37, 50, 40, 0.12);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.86);
}

.admin-data-table td:nth-child(1),
.admin-data-table td:nth-child(2) {
  min-width: 180px;
}

.admin-data-table td strong {
  display: block;
  margin-bottom: 0.18rem;
}

.admin-data-table td small {
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-new {
  background: rgba(239, 194, 103, 0.18);
  color: #9a6810;
}

.status-contacted,
.status-read {
  background: rgba(85, 122, 96, 0.15);
  color: var(--leaf-dark);
}

.status-approved {
  background: rgba(64, 123, 194, 0.14);
  color: #1f5b96;
}

.status-pending {
  background: rgba(239, 194, 103, 0.18);
  color: #9a6810;
}

.status-paid {
  background: rgba(85, 122, 96, 0.15);
  color: var(--leaf-dark);
}

.status-unpaid {
  background: rgba(239, 194, 103, 0.18);
  color: #9a6810;
}

.status-resource {
  background: rgba(145, 95, 58, 0.14);
  color: #8a4a20;
}

.table-actions,
.message-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(37, 50, 40, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.table-action-danger,
.button-danger {
  color: #fff;
  background: linear-gradient(135deg, #b44545, #d35d5d);
  border-color: transparent;
}

.action-button-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.admin-resource-form {
  gap: 1rem;
}

.file-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.resource-upload-note {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(145, 95, 58, 0.16);
  background: rgba(255, 248, 240, 0.88);
  color: #7d5436;
  line-height: 1.6;
}

.image-preview {
  overflow: hidden;
  border: 1px solid rgba(37, 50, 40, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
}

.image-preview img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.pdf-preview {
  overflow: hidden;
  border: 1px solid rgba(37, 50, 40, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
}

.pdf-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(37, 50, 40, 0.08);
}

.pdf-preview-header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-preview iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  background: #fff;
}

.system-summary {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.system-summary article {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 50, 40, 0.08);
}

.system-summary span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.system-summary strong {
  font-size: 1rem;
}

.insight-list {
  display: grid;
  gap: 0.8rem;
}

.insight-list article {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(37, 50, 40, 0.08);
}

.insight-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.insight-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.resource-library {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.resource-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 50, 40, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.resource-card-copy {
  min-width: 0;
}

.resource-card-library {
  grid-template-columns: 124px minmax(0, 1fr) auto;
  align-items: start;
}

.resource-card-media {
  display: grid;
  align-content: end;
  min-height: 148px;
  padding: 0.9rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
    radial-gradient(circle at 16% 92%, rgba(233, 196, 106, 0.22), transparent 32%),
    linear-gradient(145deg, rgba(210, 124, 68, 0.98), rgba(121, 84, 49, 0.98));
  color: #fff;
}

.resource-card-media.has-image {
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
}

.resource-card-media img {
  width: 100%;
  height: 100%;
  min-height: 148px;
  object-fit: cover;
  border-radius: 18px;
}

.resource-card-media span {
  width: fit-content;
  padding: 0.26rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-card-media strong {
  margin-top: auto;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  line-height: 0.95;
}

.resource-card-copy strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.resource-card-copy p,
.resource-card-copy small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.resource-card-copy small {
  display: inline-block;
  margin-top: 0.45rem;
}

.resource-card-secondary {
  margin-top: 0.55rem !important;
}

.resource-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.resource-card-meta span {
  display: grid;
  gap: 0.12rem;
  min-width: 120px;
  padding: 0.58rem 0.7rem;
  border-radius: 14px;
  background: rgba(250, 245, 238, 0.9);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.resource-card-meta strong {
  margin: 0;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.admin-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.message-card-actions {
  margin-top: 0.85rem;
}

@media (max-width: 1120px) {
  .resource-card-library {
    grid-template-columns: 1fr;
  }

  .resource-card-library .resource-card-media {
    min-height: 220px;
  }

  .admin-canvas,
  .admin-bottom-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .admin-topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 680px) {
  .admin-stats-rich {
    grid-template-columns: 1fr;
  }

  .admin-topbar-actions,
  .table-actions,
  .message-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .resource-card {
    grid-template-columns: 1fr;
  }
}

/* Modern admin polish */
body.admin-page {
  --admin-bg: #f4f6f1;
  --admin-panel: rgba(255, 255, 250, 0.88);
  --admin-panel-solid: #fffefa;
  --admin-ink: #18221c;
  --admin-muted: #667166;
  --admin-line: rgba(24, 34, 28, 0.09);
  --admin-line-strong: rgba(24, 34, 28, 0.16);
  --admin-accent: #d97745;
  --admin-green: #486b53;
  --admin-shadow: 0 18px 48px rgba(29, 45, 34, 0.09);
  background:
    radial-gradient(circle at 18% 8%, rgba(217, 119, 69, 0.12), transparent 24%),
    radial-gradient(circle at 92% 16%, rgba(72, 107, 83, 0.13), transparent 28%),
    linear-gradient(180deg, #f7f8f3, var(--admin-bg));
  color: var(--admin-ink);
}

body.admin-page .site-bg {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 35%),
    radial-gradient(circle at 78% 92%, rgba(239, 194, 103, 0.11), transparent 24%);
}

body.admin-page .portal-layout {
  grid-template-columns: 264px minmax(0, 1fr);
}

body.admin-page .portal-sidebar {
  padding: 1rem;
  gap: 0.9rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 119, 69, 0.18), transparent 28%),
    linear-gradient(180deg, #172118, #101711 72%, #0d130f);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 16px 0 40px rgba(18, 28, 21, 0.08);
}

body.admin-page .portal-brand {
  padding: 0.4rem;
  border-radius: 18px;
}

body.admin-page .portal-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: none;
}

body.admin-page .portal-sidebar .brand-copy strong {
  font-size: 0.98rem;
}

body.admin-page .portal-sidebar .brand-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.admin-page .portal-user-card {
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.09);
}

body.admin-page .portal-label {
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
}

body.admin-page .portal-user-card strong {
  font-size: 0.98rem;
}

body.admin-page .portal-user-card span {
  font-size: 0.82rem;
}

body.admin-page .portal-nav {
  gap: 0.28rem;
}

body.admin-page .portal-nav a {
  position: relative;
  min-height: 42px;
  padding: 0.72rem 0.82rem 0.72rem 0.95rem;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 800;
}

body.admin-page .portal-nav a::before {
  content: "";
  position: absolute;
  left: 0.52rem;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: var(--admin-accent);
  transform: translateY(-50%);
  transition: height 180ms ease;
}

body.admin-page .portal-nav a:hover,
body.admin-page .portal-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.admin-page .portal-nav a.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.admin-page .portal-nav a.is-active::before {
  height: 18px;
}

body.admin-page .portal-sidebar-footer .button-secondary {
  min-height: 42px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.94);
}

body.admin-page .portal-sidebar-footer .button-secondary:hover,
body.admin-page .portal-sidebar-footer .button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

body.admin-page .portal-content {
  padding: clamp(1.1rem, 2vw, 1.8rem);
}

body.admin-page .admin-portal-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 0% 0%, rgba(217, 119, 69, 0.08), transparent 24%),
    radial-gradient(circle at 96% 10%, rgba(72, 107, 83, 0.08), transparent 26%);
}

body.admin-page .admin-dashboard {
  display: grid;
  gap: 0.9rem;
  max-width: 1280px;
}

body.admin-page .admin-topbar {
  align-items: start;
  margin-bottom: 0;
  padding: 0.15rem 0 0.2rem;
}

body.admin-page .admin-overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.26fr);
  align-items: stretch;
  padding: 1.15rem;
  border: 1px solid var(--admin-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 96% 8%, rgba(217, 119, 69, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 250, 0.94), rgba(245, 248, 240, 0.86));
  box-shadow: var(--admin-shadow);
}

body.admin-page .admin-topbar-copy {
  max-width: 760px;
}

body.admin-page .admin-topbar h1 {
  max-width: 720px;
  margin: 0.15rem 0 0.45rem;
  color: var(--admin-ink);
  font-size: clamp(2rem, 4.1vw, 3.2rem);
  letter-spacing: -0.055em;
}

body.admin-page .admin-hero-metric {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 142px;
  padding: 1rem;
  border: 1px solid rgba(217, 119, 69, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

body.admin-page .admin-hero-metric span {
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.admin-page .admin-hero-metric strong {
  color: var(--admin-accent);
  font-family: "Fraunces", serif;
  font-size: 3.15rem;
  line-height: 0.95;
}

body.admin-page .admin-hero-metric small {
  color: var(--admin-muted);
  font-weight: 800;
}

body.admin-page .admin-topbar p,
body.admin-page .panel-copy {
  color: var(--admin-muted);
}

body.admin-page .eyebrow {
  color: var(--admin-green);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
}

body.admin-page .admin-empty,
body.admin-page .admin-panel,
body.admin-page .admin-stat-card {
  border: 1px solid var(--admin-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 246, 0.84));
  box-shadow: var(--admin-shadow);
}

body.admin-page .admin-empty,
body.admin-page .admin-panel {
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: 22px;
}

body.admin-page .admin-stat-card {
  min-height: 108px;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
}

body.admin-page .admin-stats-rich {
  gap: 0.75rem;
  margin-bottom: 0;
}

body.admin-page .admin-stat-card span {
  margin-bottom: 0.38rem;
  color: var(--admin-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

body.admin-page .admin-stat-card strong {
  color: var(--admin-ink);
  font-size: 1.62rem;
  line-height: 1;
}

body.admin-page .admin-stat-card small {
  margin-top: 0.35rem;
  color: var(--admin-muted);
  font-size: 0.82rem;
}

body.admin-page .panel-header {
  align-items: start;
  margin-bottom: 0.85rem;
}

body.admin-page .panel-header h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

body.admin-page .panel-header > span {
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--admin-muted);
  font-size: 0.78rem;
}

body.admin-page .admin-user-form,
body.admin-page .admin-allocation-form,
body.admin-page .admin-resource-form {
  margin: 0.8rem 0 1rem;
  padding: 0.9rem;
  border-color: var(--admin-line);
  border-radius: 18px;
  background: rgba(248, 250, 244, 0.72);
}

body.admin-page .site-form {
  gap: 0.78rem;
}

body.admin-page .form-grid,
body.admin-page .admin-toolbar {
  gap: 0.7rem;
}

body.admin-page .site-form label,
body.admin-page .toolbar-field span {
  color: var(--admin-muted);
  font-size: 0.78rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

body.admin-page .site-form input,
body.admin-page .site-form select,
body.admin-page .site-form textarea,
body.admin-page .toolbar-field input,
body.admin-page .toolbar-field select {
  min-height: 44px;
  padding: 0.72rem 0.82rem;
  border-color: var(--admin-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

body.admin-page .site-form textarea {
  min-height: 96px;
}

body.admin-page .button,
body.admin-page .table-action {
  border-radius: 999px;
}

body.admin-page .button-primary {
  background: linear-gradient(135deg, #d67543, #b95834);
  box-shadow: 0 12px 24px rgba(185, 88, 52, 0.18);
}

body.admin-page .button-secondary,
body.admin-page .table-action {
  border-color: var(--admin-line);
  background: rgba(255, 255, 255, 0.76);
}

body.admin-page .admin-page-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

body.admin-page .admin-action-card {
  display: grid;
  align-content: start;
  min-height: 132px;
  padding: 0.95rem;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 244, 0.7));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.admin-page .admin-action-card:hover,
body.admin-page .admin-action-card:focus-visible {
  border-color: rgba(217, 119, 69, 0.24);
  box-shadow: 0 16px 34px rgba(29, 45, 34, 0.08);
  transform: translateY(-2px);
}

body.admin-page .admin-action-card span {
  width: fit-content;
  margin-bottom: 0.72rem;
  padding: 0.24rem 0.48rem;
  border-radius: 999px;
  background: rgba(217, 119, 69, 0.1);
  color: var(--admin-accent);
  font-size: 0.7rem;
  font-weight: 900;
}

body.admin-page .admin-action-card strong {
  margin-bottom: 0.28rem;
  color: var(--admin-ink);
  line-height: 1.2;
}

body.admin-page .admin-action-card small {
  color: var(--admin-muted);
  line-height: 1.45;
}

body.admin-page .table-wrap {
  overflow: auto;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

body.admin-page .data-table th,
body.admin-page .data-table td {
  padding: 0.74rem 0.82rem;
  border-bottom-color: var(--admin-line);
}

body.admin-page .data-table tr:last-child td {
  border-bottom: 0;
}

body.admin-page .data-table th {
  background: rgba(244, 247, 239, 0.82);
  color: var(--admin-muted);
  font-size: 0.72rem;
  letter-spacing: 0.075em;
}

body.admin-page .data-table td {
  font-size: 0.92rem;
}

body.admin-page .message-list,
body.admin-page .resource-library {
  gap: 0.65rem;
  margin-top: 0.85rem;
}

body.admin-page .message-card,
body.admin-page .resource-card {
  border-color: var(--admin-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 26px rgba(29, 45, 34, 0.05);
}

body.admin-page .resource-card {
  padding: 0.9rem;
}

body.admin-page .resource-card-copy p,
body.admin-page .resource-card-copy small,
body.admin-page .message-card p {
  line-height: 1.55;
}

body.admin-page .status-badge {
  padding: 0.34rem 0.58rem;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

body.admin-page .resource-upload-note,
body.admin-page .empty-state {
  padding: 0.82rem 0.9rem;
  border-color: var(--admin-line);
  border-radius: 16px;
  background: rgba(249, 246, 238, 0.82);
  color: var(--admin-muted);
}

body.admin-page .file-inline-actions {
  gap: 0.55rem;
}

body.admin-page .image-preview {
  border-color: var(--admin-line);
  border-radius: 18px;
  background: var(--admin-panel-solid);
  box-shadow: 0 12px 32px rgba(29, 45, 34, 0.08);
}

body.admin-page .image-preview img {
  max-height: 280px;
}

body.admin-page .pdf-preview {
  border-color: var(--admin-line);
  border-radius: 18px;
  background: var(--admin-panel-solid);
  box-shadow: 0 12px 32px rgba(29, 45, 34, 0.08);
}

body.admin-page .pdf-preview-header {
  padding: 0.75rem 0.9rem;
}

body.admin-page .pdf-preview iframe {
  min-height: min(560px, 68vh);
}

@media (max-width: 980px) {
  body.admin-page .portal-layout {
    grid-template-columns: 1fr;
  }

  body.admin-page .portal-sidebar {
    position: relative;
    min-height: auto;
  }

  body.admin-page .portal-content {
    padding: 1rem;
  }

  body.admin-page .admin-stats-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-page .admin-overview-hero,
  body.admin-page .admin-page-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.admin-page .form-grid,
  body.admin-page .admin-toolbar,
  body.admin-page .admin-stats-rich {
    grid-template-columns: 1fr;
  }

  body.admin-page .resource-card {
    grid-template-columns: 1fr;
  }

  body.admin-page .message-card-actions,
  body.admin-page .table-actions,
  body.admin-page .admin-page-links {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Parent portal polish */
body.user-portal-page {
  --user-bg: #eef6fb;
  --user-panel: rgba(255, 255, 255, 0.88);
  --user-ink: #16273b;
  --user-muted: #607086;
  --user-line: rgba(22, 39, 59, 0.1);
  --user-accent: #2f80a8;
  --user-accent-dark: #1f5e7d;
  --user-mint: #4f927f;
  --user-sand: #e9c46a;
  --user-shadow: 0 20px 52px rgba(28, 61, 91, 0.12);
  background:
    radial-gradient(circle at 20% 6%, rgba(47, 128, 168, 0.14), transparent 24%),
    radial-gradient(circle at 92% 12%, rgba(79, 146, 127, 0.13), transparent 26%),
    linear-gradient(180deg, #f5fbff, var(--user-bg));
  color: var(--user-ink);
}

body.user-portal-page .site-bg {
  background:
    radial-gradient(circle at 18% 8%, rgba(47, 128, 168, 0.2), transparent 23%),
    radial-gradient(circle at 86% 82%, rgba(233, 196, 106, 0.18), transparent 22%);
}

body.user-portal-page .portal-layout {
  grid-template-columns: 264px minmax(0, 1fr);
}

body.user-portal-page .portal-sidebar {
  padding: 1rem;
  gap: 0.9rem;
  background:
    radial-gradient(circle at 15% 0%, rgba(120, 190, 211, 0.22), transparent 30%),
    linear-gradient(180deg, #17324a, #10243a 70%, #0c1a2c);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 16px 0 40px rgba(20, 45, 70, 0.08);
}

body.user-portal-page .portal-brand {
  padding: 0.4rem;
  border-radius: 18px;
}

body.user-portal-page .portal-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #58a7c8, #2f80a8);
  box-shadow: none;
}

body.user-portal-page .portal-sidebar .brand-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.user-portal-page .portal-user-card {
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

body.user-portal-page .portal-nav {
  gap: 0.28rem;
}

body.user-portal-page .portal-nav a {
  position: relative;
  min-height: 42px;
  padding: 0.72rem 0.82rem 0.72rem 0.95rem;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 800;
}

body.user-portal-page .portal-nav a::before {
  content: "";
  position: absolute;
  left: 0.52rem;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: #78bed3;
  transform: translateY(-50%);
  transition: height 180ms ease;
}

body.user-portal-page .portal-nav a:hover,
body.user-portal-page .portal-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.user-portal-page .portal-nav a.is-active {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.user-portal-page .portal-nav a.is-active::before {
  height: 18px;
}

body.user-portal-page .portal-sidebar-footer .button-secondary {
  min-height: 42px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.94);
}

body.user-portal-page .portal-content {
  padding: clamp(1.1rem, 2vw, 1.8rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 0% 0%, rgba(47, 128, 168, 0.08), transparent 24%),
    radial-gradient(circle at 100% 14%, rgba(79, 146, 127, 0.08), transparent 26%);
}

body.user-portal-page .user-dashboard {
  display: grid;
  gap: 0.9rem;
  max-width: 1280px;
}

body.user-portal-page .user-topbar-copy {
  max-width: 760px;
}

body.user-portal-page .user-topbar h1 {
  max-width: 760px;
  margin: 0.15rem 0 0.45rem;
  color: var(--user-ink);
  font-size: clamp(2rem, 4.1vw, 3.15rem);
  letter-spacing: -0.055em;
}

body.user-portal-page .user-topbar p,
body.user-portal-page .panel-copy {
  color: var(--user-muted);
}

body.user-portal-page .eyebrow {
  color: var(--user-mint);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
}

body.user-portal-page .admin-empty,
body.user-portal-page .admin-panel,
body.user-portal-page .admin-stat-card {
  border: 1px solid var(--user-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 251, 253, 0.84));
  box-shadow: var(--user-shadow);
}

body.user-portal-page .admin-empty,
body.user-portal-page .admin-panel {
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: 22px;
}

body.user-portal-page .admin-stat-card {
  min-height: 108px;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
}

body.user-portal-page .admin-stats-rich {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0;
}

body.user-portal-page .admin-stat-card span {
  margin-bottom: 0.38rem;
  color: var(--user-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

body.user-portal-page .admin-stat-card strong {
  color: var(--user-ink);
  font-size: 1.62rem;
  line-height: 1;
}

body.user-portal-page .admin-stat-card small {
  margin-top: 0.35rem;
  color: var(--user-muted);
  font-size: 0.82rem;
}

body.user-portal-page .user-page-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

body.user-portal-page .user-action-card {
  display: grid;
  align-content: start;
  min-height: 132px;
  padding: 0.95rem;
  border: 1px solid var(--user-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 249, 252, 0.72));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.user-portal-page .user-action-card:hover,
body.user-portal-page .user-action-card:focus-visible {
  border-color: rgba(47, 128, 168, 0.26);
  box-shadow: 0 16px 34px rgba(28, 61, 91, 0.08);
  transform: translateY(-2px);
}

body.user-portal-page .user-action-card strong {
  margin-bottom: 0.28rem;
  color: var(--user-ink);
  line-height: 1.2;
}

body.user-portal-page .user-action-card small {
  color: var(--user-muted);
  line-height: 1.45;
}

body.user-portal-page .panel-header {
  align-items: start;
  margin-bottom: 0.85rem;
}

body.user-portal-page .panel-header h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

body.user-portal-page .panel-header > span {
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--user-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--user-muted);
  font-size: 0.78rem;
}

body.user-portal-page .button,
body.user-portal-page .table-action {
  border-radius: 999px;
}

body.user-portal-page .button-primary {
  background: linear-gradient(135deg, var(--user-accent), var(--user-accent-dark));
  box-shadow: 0 12px 24px rgba(47, 128, 168, 0.18);
}

body.user-portal-page .table-wrap {
  overflow: auto;
  border: 1px solid var(--user-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
}

body.user-portal-page .data-table th,
body.user-portal-page .data-table td {
  padding: 0.74rem 0.82rem;
  border-bottom-color: var(--user-line);
}

body.user-portal-page .data-table th {
  background: rgba(239, 247, 251, 0.9);
  color: var(--user-muted);
  font-size: 0.72rem;
  letter-spacing: 0.075em;
}

body.user-portal-page .resource-library,
body.user-portal-page .message-list {
  gap: 0.65rem;
  margin-top: 0.85rem;
}

body.user-portal-page .resource-card,
body.user-portal-page .message-card {
  border-color: var(--user-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 26px rgba(28, 61, 91, 0.05);
}

body.user-portal-page .resource-card {
  padding: 0.9rem;
}

body.user-portal-page .user-chat-form,
.chat-reply-form {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0;
  padding: 0.9rem;
  border: 1px solid var(--user-line, var(--line));
  border-radius: 18px;
  background: rgba(245, 250, 253, 0.82);
}

body.user-portal-page .user-chat-form label,
.chat-reply-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--user-muted, var(--muted));
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.user-portal-page .user-chat-form input,
body.user-portal-page .user-chat-form textarea,
.chat-reply-form textarea {
  width: 100%;
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--user-line, var(--line));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--user-ink, var(--text));
  line-height: 1.55;
  outline: none;
  resize: vertical;
}

.chat-thread-card {
  display: grid;
  gap: 0.8rem;
}

.chat-thread-messages {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(47, 128, 168, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.chat-bubble {
  width: min(86%, 720px);
  padding: 0.7rem 0.82rem;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(28, 61, 91, 0.05);
}

.chat-bubble.is-admin {
  justify-self: end;
  background: linear-gradient(135deg, rgba(47, 128, 168, 0.95), rgba(31, 94, 125, 0.95));
  color: #fff;
}

.chat-bubble span {
  display: block;
  margin-bottom: 0.25rem;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  opacity: 0.72;
  text-transform: uppercase;
}

.chat-bubble p {
  margin: 0;
  line-height: 1.55;
}

.chat-reply-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin: 0;
}

.floating-live-chat {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 180;
  display: grid;
  justify-items: end;
  gap: 0.7rem;
  font-family: "Manrope", sans-serif;
}

.floating-chat-toggle {
  min-height: 52px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #486b53, #2f4939);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 20px 40px rgba(47, 73, 57, 0.24);
  cursor: pointer;
}

.floating-live-chat.is-open .floating-chat-toggle {
  background: linear-gradient(135deg, #2f80a8, #1f5e7d);
}

.floating-chat-panel {
  width: min(388px, calc(100vw - 2rem));
  max-height: min(680px, calc(100dvh - 7rem));
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(31, 94, 125, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.96));
  box-shadow: 0 28px 80px rgba(18, 35, 48, 0.2);
  backdrop-filter: blur(14px);
}

.floating-chat-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(31, 94, 125, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(233, 196, 106, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(245, 250, 248, 0.98), rgba(237, 245, 249, 0.95));
}

.floating-chat-head span {
  color: #6f7d79;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.floating-chat-head strong {
  display: block;
  margin-top: 0.2rem;
  color: #17231c;
  font-family: "Fraunces", serif;
  font-size: 1.48rem;
  line-height: 0.98;
}

.floating-chat-head button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23, 35, 28, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #5f6f68;
  font-size: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.floating-chat-form {
  display: grid;
  gap: 0.8rem;
  flex-shrink: 0;
}

.floating-chat-form label {
  display: grid;
  gap: 0.35rem;
  color: #6d7a75;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.floating-chat-form input,
.floating-chat-form textarea {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(23, 35, 28, 0.08);
  border-radius: 16px;
  background: rgba(248, 251, 250, 0.95);
  color: #17231c;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.floating-chat-form textarea {
  min-height: 96px;
  max-height: 132px;
}

.floating-chat-form input:focus,
.floating-chat-form textarea:focus {
  border-color: rgba(31, 94, 125, 0.28);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 94, 125, 0.08);
}

.floating-chat-note,
.floating-chat-link {
  margin: 0;
  color: #607086;
  font-size: 0.86rem;
  line-height: 1.45;
}

.floating-chat-link {
  font-weight: 900;
  color: #1f5e7d;
}

.floating-chat-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(31, 94, 125, 0.08);
  border-radius: 18px;
  background: rgba(244, 249, 251, 0.92);
}

.floating-chat-reset {
  flex-shrink: 0;
  border: 1px solid rgba(31, 94, 125, 0.12);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: #1f5e7d;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.floating-chat-intro,
.floating-chat-identity {
  display: grid;
  gap: 0.22rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(31, 94, 125, 0.08);
  border-radius: 18px;
  background: rgba(244, 249, 251, 0.92);
}

.floating-chat-intro strong,
.floating-chat-identity strong {
  color: #17231c;
  font-size: 0.98rem;
  font-weight: 900;
}

.floating-chat-intro p,
.floating-chat-identity span,
.floating-chat-identity small {
  margin: 0;
  color: #607086;
  line-height: 1.45;
}

.floating-chat-identity small {
  font-size: 0.82rem;
}

.floating-chat-thread {
  display: grid;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-height: 160px;
  padding: 0.85rem;
  overflow-y: auto;
  border: 1px solid rgba(31, 94, 125, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(247, 251, 252, 0.98), rgba(242, 247, 250, 0.92));
}

.floating-chat-bubble {
  width: min(86%, 100%);
  padding: 0.78rem 0.88rem;
  border: 1px solid rgba(23, 35, 28, 0.06);
  border-radius: 18px;
  background: #fff;
  color: #17231c;
  box-shadow: 0 10px 24px rgba(18, 35, 48, 0.06);
}

.floating-chat-bubble.is-user {
  justify-self: start;
  background: linear-gradient(180deg, #ffffff, #fbfdfd);
}

.floating-chat-bubble.is-admin {
  justify-self: end;
  background: linear-gradient(135deg, rgba(47, 128, 168, 0.94), rgba(31, 94, 125, 0.94));
  color: #fff;
}

.floating-chat-bubble span {
  display: block;
  margin-bottom: 0.32rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  opacity: 0.7;
  text-transform: uppercase;
}

.floating-chat-bubble p {
  margin: 0;
  line-height: 1.5;
}

body.user-portal-page .user-shop-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.35fr) minmax(190px, 0.35fr);
  gap: 0.72rem;
  margin: 0.9rem 0 0.75rem;
  padding: 0.68rem;
  border: 1px solid var(--user-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 253, 0.82));
}

body.user-portal-page .user-shop-toolbar .toolbar-field {
  display: grid;
  gap: 0.42rem;
}

body.user-portal-page .user-shop-toolbar .toolbar-field span {
  color: var(--user-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.user-portal-page .user-shop-toolbar input,
body.user-portal-page .user-shop-toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--user-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--user-ink);
  outline: none;
}

body.user-portal-page .user-shop-toolbar input:focus,
body.user-portal-page .user-shop-toolbar select:focus {
  border-color: rgba(47, 128, 168, 0.36);
  box-shadow: 0 0 0 4px rgba(47, 128, 168, 0.1);
}

body.user-portal-page .user-shop-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0.2rem 0 0.95rem;
  color: var(--user-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

body.user-portal-page .user-shop-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.user-portal-page .user-shop-meta a,
body.user-portal-page .user-shop-reset {
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(47, 128, 168, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--user-accent-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

body.user-portal-page .user-shop-reset {
  cursor: pointer;
}

body.user-portal-page .user-order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 0.95rem;
}

body.user-portal-page .user-order-summary span {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--user-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--user-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

body.user-portal-page .user-order-summary strong {
  color: var(--user-accent-dark);
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  line-height: 1;
}

body.user-portal-page .user-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  align-items: stretch;
}

body.user-portal-page .user-product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--user-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(28, 61, 91, 0.06);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.user-portal-page .user-product-card:hover,
body.user-portal-page .user-product-card:focus-within {
  border-color: rgba(47, 128, 168, 0.25);
  box-shadow: 0 18px 42px rgba(28, 61, 91, 0.11);
  transform: translateY(-2px);
}

body.user-portal-page .user-product-media {
  display: grid;
  align-content: end;
  min-height: 168px;
  padding: 0.95rem;
  border-bottom: 1px solid var(--user-line);
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.22), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(233, 196, 106, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(47, 128, 168, 0.98), rgba(31, 94, 125, 0.98));
  color: #fff;
}

body.user-portal-page .user-product-media.has-image {
  padding: 0;
  background: rgba(244, 250, 253, 0.92);
}

body.user-portal-page .user-product-media img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
}

body.user-portal-page .user-product-media span {
  width: fit-content;
  padding: 0.28rem 0.56rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.user-portal-page .user-product-media strong {
  margin-top: auto;
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

body.user-portal-page .user-product-body {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem;
}

body.user-portal-page .user-product-body h3 {
  margin: 0;
  color: var(--user-ink);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

body.user-portal-page .user-product-body p,
body.user-portal-page .user-product-body small,
body.user-portal-page .user-product-body em {
  margin: 0;
  color: var(--user-muted);
  line-height: 1.55;
}

body.user-portal-page .user-product-body em {
  padding-top: 0.15rem;
  color: var(--user-accent-dark);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 800;
}

body.user-portal-page .user-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 0.95rem;
  border-top: 1px solid var(--user-line);
  background: rgba(244, 250, 253, 0.88);
}

body.user-portal-page .user-product-footer strong {
  color: var(--user-accent-dark);
  font-family: "Fraunces", serif;
  font-size: 1.28rem;
}

body.user-portal-page .user-product-footer .table-action {
  min-width: 118px;
  border-color: rgba(47, 128, 168, 0.18);
  background: #fff;
  color: var(--user-accent-dark);
  font-weight: 900;
}

body.user-portal-page .user-product-footer .table-action:not(:disabled) {
  background: linear-gradient(135deg, var(--user-accent), var(--user-accent-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 128, 168, 0.16);
}

body.user-portal-page .user-product-card.is-pending .user-product-footer .table-action,
body.user-portal-page .user-product-card.is-owned .user-product-footer .table-action {
  background: #fff;
  color: var(--user-accent-dark);
  box-shadow: none;
}

body.user-portal-page.modal-open {
  overflow: hidden;
}

body.user-portal-page .shop-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

body.user-portal-page .shop-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 26, 36, 0.44);
  backdrop-filter: blur(8px);
}

body.user-portal-page .shop-modal-card {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(700px, 90vh);
  overflow: auto;
  padding: clamp(1rem, 2vw, 1.2rem);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.97));
  box-shadow: 0 28px 90px rgba(12, 26, 36, 0.2);
}

body.user-portal-page .shop-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--user-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--user-muted);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

body.user-portal-page .shop-modal-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.25rem);
  align-items: stretch;
}

body.user-portal-page .shop-modal-cover {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 312px;
  padding: 1.15rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
    radial-gradient(circle at 16% 92%, rgba(233, 196, 106, 0.34), transparent 32%),
    linear-gradient(145deg, rgba(47, 128, 168, 0.98), rgba(31, 94, 125, 0.98));
  color: #fff;
}

body.user-portal-page .shop-modal-cover.has-image {
  overflow: hidden;
  padding: 0;
  background: rgba(18, 44, 61, 0.96);
}

body.user-portal-page .shop-modal-cover.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 26, 36, 0.1), rgba(12, 26, 36, 0.72));
}

body.user-portal-page .shop-modal-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.user-portal-page .shop-modal-cover span {
  width: fit-content;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.user-portal-page .shop-modal-cover-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
}

body.user-portal-page .shop-modal-cover-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.user-portal-page .shop-modal-cover strong {
  max-width: 9ch;
  font-family: "Fraunces", serif;
  font-size: clamp(1.95rem, 4vw, 3.1rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

body.user-portal-page .shop-modal-copy {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 0.2rem 1.6rem 0.2rem 0;
}

body.user-portal-page .shop-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
}

body.user-portal-page .shop-modal-header-copy {
  display: grid;
  gap: 0.7rem;
}

body.user-portal-page .shop-modal-price-card {
  min-width: 118px;
  display: grid;
  gap: 0.18rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(47, 128, 168, 0.12);
  border-radius: 18px;
  background: rgba(244, 250, 253, 0.94);
}

body.user-portal-page .shop-modal-price-card span {
  color: var(--user-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.user-portal-page .shop-modal-price-card strong {
  color: var(--user-accent-dark);
  font-family: "Fraunces", serif;
  font-size: 1.32rem;
}

body.user-portal-page .shop-modal-copy h2 {
  margin: 0;
  color: var(--user-ink);
  font-family: "Fraunces", serif;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
}

body.user-portal-page .shop-modal-copy p {
  margin: 0;
  color: var(--user-muted);
  line-height: 1.62;
}

body.user-portal-page .shop-modal-short {
  color: var(--user-ink) !important;
  font-size: 1rem;
  font-weight: 800;
}

body.user-portal-page .shop-modal-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

body.user-portal-page .shop-modal-details div {
  padding: 0.72rem 0.78rem;
  border: 1px solid var(--user-line);
  border-radius: 16px;
  background: rgba(245, 250, 253, 0.78);
}

body.user-portal-page .shop-modal-details dt {
  margin-bottom: 0.25rem;
  color: var(--user-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.user-portal-page .shop-modal-details dd {
  margin: 0;
  color: var(--user-ink);
  font-weight: 900;
}

body.user-portal-page .shop-modal-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 128, 168, 0.14), rgba(47, 128, 168, 0));
}

body.user-portal-page .shop-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

body.user-portal-page .shop-modal-actions .button {
  min-width: 156px;
}

body.user-portal-page .shop-modal-footnote {
  color: var(--user-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

body.user-portal-page .payment-modal-card,
body.user-portal-page .invoice-modal-card {
  width: min(760px, 100%);
}

body.user-portal-page .payment-modal-content {
  display: grid;
  gap: 1rem;
}

body.user-portal-page .payment-modal-content h2,
body.user-portal-page .invoice-preview h2 {
  margin: 0;
  color: var(--user-ink);
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

body.user-portal-page .banking-card {
  padding: 1rem;
  border: 1px solid var(--user-line);
  border-radius: 20px;
  background: rgba(245, 250, 253, 0.86);
}

body.user-portal-page .banking-card h3 {
  margin: 0 0 0.85rem;
  color: var(--user-ink);
}

body.user-portal-page .banking-card p {
  margin: 0.85rem 0 0;
  color: var(--user-muted);
  line-height: 1.55;
}

body.user-portal-page .banking-grid,
body.user-portal-page .invoice-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
  margin: 0;
}

body.user-portal-page .banking-grid div,
body.user-portal-page .invoice-preview-grid div {
  padding: 0.72rem;
  border: 1px solid var(--user-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
}

body.user-portal-page .banking-grid dt,
body.user-portal-page .invoice-preview-grid span {
  margin-bottom: 0.24rem;
  color: var(--user-muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.user-portal-page .banking-grid dd,
body.user-portal-page .invoice-preview-grid strong {
  display: block;
  margin: 0;
  color: var(--user-ink);
  font-weight: 900;
}

body.user-portal-page .invoice-preview {
  display: grid;
  gap: 1rem;
}

body.user-portal-page .invoice-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 2rem;
}

body.user-portal-page .invoice-preview-top p,
body.user-portal-page .invoice-preview-grid small {
  color: var(--user-muted);
}

body.user-portal-page .invoice-preview-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--user-line);
  border-radius: 16px;
}

body.user-portal-page .invoice-preview-table th,
body.user-portal-page .invoice-preview-table td {
  padding: 0.82rem;
  border-bottom: 1px solid var(--user-line);
  text-align: left;
}

body.user-portal-page .invoice-preview-table th {
  color: var(--user-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.user-portal-page .invoice-preview-total {
  margin: 0;
  color: var(--user-accent-dark);
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  text-align: right;
}

body.user-portal-page .invoice-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

body.user-portal-page.reader-open {
  overflow: hidden;
}

body.user-portal-page .secure-reader {
  position: fixed;
  inset: 0;
  z-index: 140;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(233, 196, 106, 0.14), transparent 28%),
    linear-gradient(135deg, #08151d, #122b37 58%, #071117);
  color: #f7fbfd;
  user-select: none;
}

body.user-portal-page .secure-reader-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  box-sizing: border-box;
  height: 100vh;
  min-height: 0;
  padding: 0.9rem;
}

body.user-portal-page .secure-reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.7rem 0.8rem;
}

body.user-portal-page .secure-reader-kicker {
  margin: 0 0 0.28rem;
  color: rgba(247, 251, 253, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.user-portal-page .secure-reader-header h2 {
  margin: 0;
  color: #fff;
  font-family: "Fraunces", serif;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

body.user-portal-page .secure-reader-close {
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

body.user-portal-page .secure-reader-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
  gap: 1rem;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.user-portal-page .flipbook-reader,
body.user-portal-page .reader-notes-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

body.user-portal-page .flipbook-reader {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

body.user-portal-page .flipbook-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.user-portal-page .flipbook-toolbar span {
  min-width: 140px;
  color: rgba(247, 251, 253, 0.82);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

body.user-portal-page .flipbook-toolbar .table-action {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.user-portal-page .flipbook-toolbar .table-action:disabled {
  opacity: 0.42;
}

body.user-portal-page .flipbook-stage {
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  padding: clamp(0.7rem, 1.5vw, 1.15rem);
  perspective: 1600px;
}

body.user-portal-page #reader-canvas {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  transform-origin: left center;
  transition: transform 260ms ease, opacity 260ms ease;
  -webkit-user-select: none;
  user-select: none;
}

body.user-portal-page .reader-pdf-frame {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

body.reader-open {
  -webkit-user-select: none;
  user-select: none;
}

body.reader-open #reader-notes {
  -webkit-user-select: text;
  user-select: text;
}

body.reader-open .flipbook-stage {
  -webkit-touch-callout: none;
  pointer-events: auto;
}

body.reader-open.reader-privacy-blur .flipbook-stage {
  filter: blur(18px);
}

body.reader-open.reader-privacy-blur .flipbook-stage::after {
  content: "Leser versteek terwyl die venster nie aktief is nie";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(9, 31, 42, 0.72);
  color: #fff;
  font-weight: 900;
  text-align: center;
  z-index: 4;
}

body.user-portal-page #reader-canvas.is-flipping,
body.user-portal-page .reader-fallback-page.is-flipping {
  opacity: 0.76;
  transform: rotateY(-8deg) translateX(8px);
}

body.portal-page:not(.auth-ready) #admin-lock,
body.portal-page:not(.auth-ready) #user-lock {
  visibility: hidden;
  pointer-events: none;
}

body.user-portal-page .reader-fallback-page {
  width: min(620px, 100%);
  min-height: min(520px, 100%);
  max-height: 100%;
  overflow: hidden;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.06), transparent 6%),
    #fffef8;
  color: #18221c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  transform-origin: left center;
  transition: transform 260ms ease, opacity 260ms ease;
}

body.user-portal-page .reader-fallback-page span {
  color: var(--user-muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.user-portal-page .reader-fallback-page h3 {
  margin: 2.2rem 0 1rem;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.96;
}

body.user-portal-page .reader-fallback-page p {
  max-width: 58ch;
  color: #45524a;
  font-size: 1.05rem;
  line-height: 1.8;
}

body.user-portal-page .reader-security-stamp {
  display: inline-block;
  margin-top: 1.25rem;
  color: rgba(22, 39, 59, 0.42);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.user-portal-page .reader-notes-panel {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 0.85rem;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 1rem;
}

body.user-portal-page .reader-notes-panel h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
}

body.user-portal-page .reader-notes-panel p {
  margin: 0;
  color: rgba(247, 251, 253, 0.66);
  line-height: 1.55;
}

body.user-portal-page #reader-notes {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  resize: none;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #18221c;
  line-height: 1.6;
  outline: none;
  user-select: text;
}

body.user-portal-page #reader-notes:focus {
  border-color: rgba(233, 196, 106, 0.72);
  box-shadow: 0 0 0 4px rgba(233, 196, 106, 0.14);
}

body.user-portal-page .reader-note-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

body.user-portal-page .reader-note-actions .button {
  width: 100%;
  justify-content: center;
}

body.user-portal-page .reader-notes-panel .form-feedback {
  min-height: 1.2rem;
  color: rgba(247, 251, 253, 0.78);
}

body.user-portal-page .table-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

body.user-portal-page .empty-state {
  padding: 0.82rem 0.9rem;
  border-color: var(--user-line);
  border-radius: 16px;
  background: rgba(245, 250, 253, 0.86);
  color: var(--user-muted);
}

body.user-portal-page .user-inline-actions {
  margin-top: 1rem;
}

@media (max-width: 980px) {
  body.user-portal-page .portal-layout,
  body.user-portal-page .user-shop-toolbar,
  body.user-portal-page .user-order-summary,
  body.user-portal-page .banking-grid,
  body.user-portal-page .invoice-preview-grid,
  body.user-portal-page .shop-modal-grid,
  body.user-portal-page .shop-modal-details,
  body.user-portal-page .secure-reader-body {
    grid-template-columns: 1fr;
  }

  body.user-portal-page .portal-sidebar {
    position: relative;
    min-height: auto;
  }

  body.user-portal-page .portal-content {
    padding: 1rem;
  }

  body.user-portal-page .shop-modal-copy {
    padding-right: 0;
  }

  body.user-portal-page .shop-modal-cover {
    min-height: 240px;
  }

  body.user-portal-page .shop-modal-header {
    grid-template-columns: 1fr;
  }

  body.user-portal-page .shop-modal-price-card {
    min-width: 0;
    width: fit-content;
  }

  body.user-portal-page .secure-reader-shell {
    height: 100dvh;
    padding: 0.55rem;
  }

  body.user-portal-page .secure-reader-header {
    padding: 0.25rem 0.5rem 0.55rem;
  }

  /* Stack PDF reader over notes — 3/4 PDF, 1/4 notes */
  body.user-portal-page .secure-reader-body {
    grid-template-columns: 1fr;
    grid-template-rows: 3fr 1fr;
    overflow: hidden;
    gap: 0.55rem;
  }

  body.user-portal-page .flipbook-reader {
    min-height: 0;
    overflow: hidden;
  }

  body.user-portal-page .reader-notes-panel {
    height: auto;
    min-height: 0;
    overflow: hidden;
    /* Compact layout: hide the descriptive text, shrink textarea */
    grid-template-rows: auto 1fr auto auto;
  }

  body.user-portal-page .reader-notes-panel > div {
    display: none; /* hide heading/description to save space */
  }

  body.user-portal-page #reader-notes {
    min-height: 0;
  }

  body.user-portal-page .admin-stats-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero-promise-row {
    gap: 0.5rem;
  }

  .hero-promise-row span {
    min-height: 34px;
    padding: 0.48rem 0.7rem;
    font-size: 0.78rem;
  }

  .hero-note-card {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.78rem 0.85rem;
  }

  .hero-note-card strong {
    font-size: 1.12rem;
  }

  .hero-rhythm-card,
  .home-note-panel {
    padding: 0.95rem 1rem;
    border-radius: 18px;
  }

  .route-card {
    min-height: 0;
  }

  .floating-live-chat {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .floating-chat-toggle {
    justify-self: end;
  }

  .floating-chat-panel {
    width: 100%;
    max-height: calc(100dvh - 5.75rem);
    padding: 0.75rem;
    gap: 0.7rem;
    border-radius: 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .floating-chat-head {
    padding: 0.78rem 0.82rem;
    border-radius: 18px;
  }

  .floating-chat-head strong {
    font-size: 1.18rem;
  }

  .floating-chat-head button {
    width: 42px;
    height: 42px;
  }

  .floating-chat-form {
    flex-shrink: 1;
  }

  .floating-chat-form input,
  .floating-chat-form textarea {
    padding: 0.72rem 0.78rem;
    border-radius: 14px;
  }

  .floating-chat-form textarea {
    min-height: 82px;
    max-height: 108px;
  }

  .floating-chat-intro,
  .floating-chat-identity,
  .floating-chat-note-row {
    padding: 0.72rem 0.78rem;
    border-radius: 16px;
  }

  .floating-chat-thread {
    min-height: 120px;
    max-height: 32dvh;
    padding: 0.68rem;
    border-radius: 16px;
  }

  .floating-chat-bubble {
    width: 100%;
    padding: 0.68rem 0.75rem;
    border-radius: 16px;
  }

  .floating-chat-note-row {
    flex-direction: column;
    align-items: stretch;
  }

  .floating-chat-reset {
    align-self: stretch;
    min-height: 42px;
  }

  body.user-portal-page .admin-stats-rich,
  body.user-portal-page .resource-card {
    grid-template-columns: 1fr;
  }

  body.user-portal-page .message-card-actions,
  body.user-portal-page .user-page-links,
  body.user-portal-page .user-product-footer,
  body.user-portal-page .reader-note-actions,
  .chat-reply-form {
    justify-items: stretch;
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .chat-bubble {
    width: 100%;
  }

  body.user-portal-page .shop-modal-card {
    padding: 0.9rem;
    border-radius: 22px;
  }

  body.user-portal-page .shop-modal-cover {
    min-height: 220px;
    padding: 1rem;
  }

  body.user-portal-page .shop-modal-cover strong {
    max-width: 10ch;
    font-size: clamp(1.7rem, 9vw, 2.35rem);
  }

  body.user-portal-page .shop-modal-copy h2 {
    font-size: clamp(1.6rem, 8vw, 2.05rem);
  }

  body.user-portal-page .shop-modal-actions .button {
    min-width: 0;
  }
}

/* Final home-section reinforcement: keep the approach area visibly filled. */
body[data-page="home"] .section-copy .approach-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.7rem;
}

body[data-page="home"] .section-copy .approach-support-grid > article {
  min-height: 178px;
  padding: 1.05rem;
  border: 1px solid rgba(85, 122, 96, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(239, 194, 103, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(249, 244, 235, 0.78));
  box-shadow: 0 16px 34px rgba(85, 65, 42, 0.08);
}

body[data-page="home"] .section-copy .approach-support-grid span {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(215, 230, 215, 0.78);
  color: var(--leaf-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

body[data-page="home"] .section-copy .approach-support-grid strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.25;
}

body[data-page="home"] .section-copy .approach-support-grid p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

body[data-page="home"] .section-copy .approach-quote {
  margin-top: 0.9rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(218, 116, 74, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 194, 103, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(246, 231, 211, 0.7));
  box-shadow: 0 16px 34px rgba(85, 65, 42, 0.08);
}

body[data-page="home"] .section-copy .approach-quote p {
  margin: 0;
  color: var(--brand-dark);
  font-family: "Fraunces", serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.18;
}

body[data-page="home"] .section-copy .approach-board {
  margin-top: 0.9rem;
  padding: 1.25rem;
  border: 1px solid rgba(85, 122, 96, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(85, 122, 96, 0.1), rgba(255, 253, 248, 0.88)),
    linear-gradient(rgba(85, 122, 96, 0.08) 1px, transparent 1px);
  background-size: auto, 100% 42px;
  box-shadow: 0 18px 40px rgba(85, 65, 42, 0.09);
}

body[data-page="home"] .section-copy .approach-board > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

body[data-page="home"] .section-copy .approach-board > div span {
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .section-copy .approach-board > div strong {
  color: var(--leaf-dark);
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
  line-height: 1.05;
  text-align: right;
}

body[data-page="home"] .section-copy .approach-board ul {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

body[data-page="home"] .section-copy .approach-board li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.78);
}

body[data-page="home"] .section-copy .approach-board li span {
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

body[data-page="home"] .section-copy .approach-board li p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

@media (max-width: 680px) {
  body[data-page="home"] .section-copy .approach-support-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 1.3rem;
  }

  body[data-page="home"] .section-copy .approach-support-grid > article {
    min-height: 0;
    padding: 0.95rem;
    border-radius: 18px;
  }

  body[data-page="home"] .section-copy .approach-quote {
    padding: 1rem;
    border-radius: 18px;
  }

  body[data-page="home"] .section-copy .approach-board {
    padding: 1rem;
    border-radius: 18px;
  }

  body[data-page="home"] .section-copy .approach-board > div {
    display: grid;
    gap: 0.35rem;
  }

  body[data-page="home"] .section-copy .approach-board > div strong {
    text-align: left;
    font-size: 1.32rem;
  }

  body[data-page="home"] .section-copy .approach-board li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.8rem;
  }
}

@media (max-width: 680px) {
  .programme-proof-section {
    padding-top: 2rem;
  }

  .programme-support-list article {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.9rem;
    border-radius: 18px;
  }

  .programme-support-list span {
    justify-content: flex-start;
    width: fit-content;
  }

  .programme-help-panel {
    padding: 1rem;
    border-radius: 18px;
  }
}
