/* =========================================================
   DCN Premium UI — visual foundation
   A restrained, editorial system inspired by Nepal's landscape.
   ========================================================= */

:root {
  --sage: #286652;
  --sage-light: #8eb7a3;
  --sage-pale: #e8f0eb;
  --sand: #f3efe6;
  --sand-deep: #dfd8c9;
  --terra: #d07a45;
  --terra-soft: #efb68f;
  --slate: #142621;
  --slate-mid: #41534e;
  --slate-dim: #70807a;
  --white: #fbfaf7;
  --sky: #548d9b;
  --sky-pale: #e4eff1;
  --gold: #c59a46;
  --success: #2f7a58;
  --warn: #bd7b2d;
  --ink: #0d1d19;
  --forest: #163c32;
  --cream: #f8f5ee;
  --line: rgba(20, 38, 33, .12);
  --font-display: 'Anek Latin', Arial, sans-serif;
  --font-body: 'Anek Latin', Arial, sans-serif;
  --font-ui: 'Anek Latin', Arial, sans-serif;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 8px 30px rgba(20, 38, 33, .06);
  --shadow-md: 0 18px 50px rgba(20, 38, 33, .10);
  --shadow-lg: 0 30px 90px rgba(12, 31, 26, .15);
}

html { background: var(--cream); }
body { background: var(--cream); color: var(--slate); letter-spacing: -.018em; font-weight: 400; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(208, 122, 69, .35);
  outline-offset: 3px;
}
.container { width: min(1180px, calc(100% - 48px)); max-width: 1180px; }

/* Navigation */
.dcn-nav {
  width: min(1280px, calc(100% - 40px));
  top: 16px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  padding: .62rem .72rem .62rem 1rem;
  border: 1px solid rgba(20, 38, 33, .09);
  border-radius: 18px;
  background: rgba(251, 250, 247, .86);
  box-shadow: 0 10px 34px rgba(20, 38, 33, .07);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}
.dcn-nav.scrolled { border-color: rgba(20, 38, 33, .12); box-shadow: 0 14px 44px rgba(20, 38, 33, .11); }
.nav-logo { gap: .68rem; }
.brand-mark { color: var(--sage); }
.nav-logo .acronym { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; }
.nav-logo .fullname { letter-spacing: .12em; font-size: .52rem; }
.nav-menu { gap: .08rem; }
.nav-logout-form { margin: 0; display: flex; }
.nav-signout {
  border: 0;
  cursor: pointer;
  font: inherit;
  background: var(--sand) !important;
  color: var(--slate-mid) !important;
}
.link-button { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.single-auth .auth-panel { min-height: 78vh; width: 100%; }
.single-auth .auth-card { max-width: 520px; }
.security-secret { display:flex; flex-direction:column; gap:.35rem; padding:1rem; margin:1rem 0; background:var(--sage-pale); border-radius:12px; }
.profile-avatar { width:44px; height:44px; border-radius:50%; overflow:hidden; margin:0 auto .5rem; background:linear-gradient(135deg,var(--sage),var(--sky)); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); }
.profile-avatar-lg { width:60px; height:60px; margin:0; border:3px solid rgba(255,255,255,.2); font-size:1.5rem; flex-shrink:0; }
.profile-avatar img { width:100%; height:100%; object-fit:cover; }
.settings-title { font-family:var(--font-ui); font-size:.83rem; font-weight:600; color:var(--slate-mid); text-transform:uppercase; letter-spacing:.06em; margin-bottom:1.2rem; }
.danger-zone { border-color:rgba(208,122,69,.35)!important; }
.community-search { display:flex; gap:.65rem; max-width:620px; margin-bottom:1rem; }
.generic-course-layout { display:grid; grid-template-columns:260px 1fr; gap:2rem; align-items:start; }
.generic-course-sidebar { position:sticky; top:8rem; padding:1.5rem; border:1px solid var(--line); border-radius:18px; background:var(--white); }
.generic-course-sidebar h2 { font-size:1rem; margin:1rem 0 .4rem; }
.generic-lesson { margin-bottom:1rem; }
.generic-lesson.is-complete { border-color:var(--sage-light); }
.lesson-copy { color:var(--slate-mid); line-height:1.8; margin:1rem 0 1.25rem; }
@media(max-width:800px){ .generic-course-layout { grid-template-columns:1fr; } .generic-course-sidebar { position:static; } }
.generic-quiz fieldset { border:0; padding:0; margin:1.2rem 0; }
.generic-quiz legend { font-weight:600; margin-bottom:.6rem; }
.generic-quiz label { display:block; padding:.45rem .6rem; margin:.3rem 0; background:var(--cream); border-radius:8px; }
.security-secret code, .break-code { word-break:break-all; font-size:.78rem; }
.legal-page { padding: 9rem 0 5rem; }
.legal-layout { display:grid; grid-template-columns:280px 1fr; gap:5rem; align-items:start; }
.legal-layout aside { position:sticky; top:8rem; }
.legal-layout h1 { font-size:2.6rem; line-height:1; margin:.5rem 0; }
.legal-layout article { max-width:760px; }
.legal-layout article h2 { font-size:1.25rem; margin:2rem 0 .55rem; }
.legal-layout article p { color:var(--slate-mid); line-height:1.85; }
@media(max-width:760px){ .legal-layout { grid-template-columns:1fr; gap:1rem; } .legal-layout aside { position:static; } }
.nav-menu a {
  padding: .6rem .78rem;
  font-size: .77rem;
  border-radius: 10px;
  letter-spacing: -.01em;
}
.nav-menu a.active::after { display: none; }
.nav-menu a.active { color: var(--forest); background: var(--sage-pale); }
.nav-menu a:hover { background: rgba(40, 102, 82, .07); }
.nav-divider { width: 1px; height: 22px; background: var(--line); margin: 0 .42rem; }
.nav-admin { color: var(--terra) !important; }
.nav-cta {
  background: var(--forest) !important;
  padding: .66rem 1.05rem !important;
  border-radius: 11px !important;
  box-shadow: 0 7px 18px rgba(22, 60, 50, .18);
}
.nav-cta:hover { background: var(--terra) !important; transform: translateY(-1px); }
.nav-mobile-toggle { position: relative; }
.nav-mobile-toggle span {
  position: absolute; left: 9px; width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px; transition: transform .22s, top .22s;
}
.nav-mobile-toggle span:first-child { top: 13px; }
.nav-mobile-toggle span:last-child { top: 21px; }
.nav-mobile-toggle.open span:first-child { top: 17px; transform: rotate(45deg); }
.nav-mobile-toggle.open span:last-child { top: 17px; transform: rotate(-45deg); }

/* Buttons and controls */
.btn {
  min-height: 46px;
  padding: .78rem 1.35rem;
  border-radius: 12px;
  font-size: .8rem;
  letter-spacing: -.01em;
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s, background .22s, border-color .22s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sage { background: var(--forest); box-shadow: 0 10px 24px rgba(22, 60, 50, .18); }
.btn-sage:hover { background: #205746; box-shadow: 0 14px 30px rgba(22, 60, 50, .24); }
.btn-primary { background: var(--ink); }
.btn-outline { border: 1px solid rgba(20, 38, 33, .22); color: var(--slate); background: rgba(255,255,255,.35); }
.btn-outline:hover { background: #fff; border-color: rgba(20, 38, 33, .4); }
.btn-soft { color: var(--forest); background: var(--sage-pale); }
.btn-sm { min-height: 38px; padding: .55rem 1rem; }
.form-control, .form-input, .form-select, .form-textarea {
  min-height: 48px;
  border: 1px solid rgba(20, 38, 33, .16);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  padding: .82rem 1rem;
}
.form-control:focus, .form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(40, 102, 82, .1);
}
.form-label { font-size: .72rem; letter-spacing: .02em; color: var(--slate-mid); }
.badge { padding: .32rem .7rem; border-radius: 8px; letter-spacing: .04em; }

/* Global page rhythm */
.section { padding: 7rem 4rem; }
.section-sm { padding: 4.5rem 4rem; }
.section-lg { padding: 9rem 4rem; }
.section-heading { margin-bottom: 3rem; }
.section-heading h2, .section-h { line-height: 1.08; letter-spacing: -.025em; }
.eyebrow {
  gap: .7rem;
  color: var(--terra);
  font-size: .65rem;
  letter-spacing: .16em;
  font-weight: 600;
}
.eyebrow::before { width: 30px; background: var(--terra); }
.card {
  border-color: rgba(20, 38, 33, .1);
  border-radius: 20px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.card:hover { border-color: rgba(40, 102, 82, .24); box-shadow: var(--shadow-md); transform: translateY(-5px); }

/* Inner page hero */
.page-hero {
  padding: 11rem 4rem 6.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 85% 25%, rgba(84,141,155,.16), transparent 30%),
    radial-gradient(circle at 8% 80%, rgba(40,102,82,.1), transparent 24%);
}
.page-hero::after {
  z-index: -1;
  height: 100%;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg width='420' height='180' viewBox='0 0 420 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23286652' stroke-opacity='.15'%3E%3Cpath d='M-20 160 76 72l47 48 63-85 65 92 58-55 130 96'/%3E%3Cpath d='M-20 174 76 86l47 48 63-85 65 92 58-55 130 96'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 92% 70%;
  background-size: min(46vw, 620px) auto;
}
.page-hero h1 { font-size: clamp(3rem, 5.4vw, 5.4rem); max-width: 880px; font-weight: 500; letter-spacing: -.045em; }
.page-hero p { font-size: 1.02rem; max-width: 610px; color: var(--slate-mid); }

/* Landing page */
.home-hero {
  min-height: 860px;
  padding: 10rem max(4rem, calc((100vw - 1180px)/2)) 5.5rem;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 74% 38%, rgba(83,143,116,.33), transparent 28%),
    radial-gradient(circle at 12% 82%, rgba(208,122,69,.16), transparent 25%),
    linear-gradient(135deg, #0e241f 0%, #153c32 58%, #102d26 100%);
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: auto -5% -2px 30%;
  height: 62%;
  opacity: .24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 520' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.42'%3E%3Cpath d='M0 482 120 360l78 66L367 159l99 142 80-112 91 124 98-91 265 267'/%3E%3Cpath d='M0 500 120 378l78 66L367 177l99 142 80-112 91 124 98-91 265 267'/%3E%3Cpath d='M75 520 367 225l105 137 76-98 89 116 100-84 230 224'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  pointer-events: none;
}
.page-index .dcn-nav:not(.scrolled) {
  background: rgba(9, 29, 24, .66);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.page-index .dcn-nav:not(.scrolled) .nav-logo,
.page-index .dcn-nav:not(.scrolled) .nav-menu a,
.page-index .dcn-nav:not(.scrolled) .nav-mobile-toggle { color: rgba(255,255,255,.78); }
.page-index .dcn-nav:not(.scrolled) .nav-logo .acronym { color: #fff; }
.page-index .dcn-nav:not(.scrolled) .nav-logo .fullname { color: rgba(255,255,255,.52); }
.page-index .dcn-nav:not(.scrolled) .nav-menu a.active,
.page-index .dcn-nav:not(.scrolled) .nav-menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
.page-index .dcn-nav:not(.scrolled) .nav-divider { background: rgba(255,255,255,.16); }
.page-index .dcn-nav:not(.scrolled) .nav-cta { background: #f4efe4 !important; color: var(--ink) !important; }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.7rem;
  padding: .46rem .75rem .46rem .52rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.06);
  font: 500 .7rem var(--font-ui);
  letter-spacing: .03em;
}
.hero-kicker-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--terra); display: grid; place-items: center; color: #fff; }
.hero-kicker-mark::after { content: '↗'; font-size: .7rem; }
.home-hero h1 {
  max-width: 700px;
  margin-bottom: 1.5rem;
  color: #fff;
  font: 500 clamp(3.5rem, 6.4vw, 6.4rem)/.92 var(--font-display);
  letter-spacing: -.055em;
}
.home-hero h1 em { color: var(--terra-soft); font-style: italic; }
.home-hero .hero-lead { max-width: 585px; color: rgba(255,255,255,.68); font-size: 1.04rem; line-height: 1.8; }
.home-hero .hero-ctas { margin: 2.25rem 0 2.5rem; }
.home-hero .btn-primary-home { background: #f7f1e5; color: var(--ink); box-shadow: 0 15px 35px rgba(0,0,0,.2); }
.home-hero .btn-primary-home:hover { background: #fff; }
.home-hero .btn-ghost-home { color: #fff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.05); }
.home-hero .btn-ghost-home:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.hero-proof { display: flex; align-items: center; gap: 1rem; color: rgba(255,255,255,.58); font-size: .76rem; }
.proof-avatars { display: flex; }
.proof-avatar {
  width: 31px; height: 31px; margin-left: -8px; border: 2px solid #173b32; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #467766; font: 600 .58rem var(--font-ui);
}
.proof-avatar:first-child { margin-left: 0; }
.proof-avatar:nth-child(2) { background: #5b8190; }
.proof-avatar:nth-child(3) { background: #b16f4a; }
.proof-avatar:nth-child(4) { background: #8e7b55; }
.proof-avatar:nth-child(5) { background: #6a6486; }
.hero-visual { min-height: 560px; display: grid; place-items: center; }
.learning-card {
  width: min(100%, 470px);
  padding: 1.35rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  color: var(--slate);
  background: rgba(250,248,242,.94);
  box-shadow: 0 40px 90px rgba(0,0,0,.28);
  transform: rotate(1.2deg);
  position: relative;
}
.learning-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(20,38,33,.09);
  border-radius: 22px;
  pointer-events: none;
}
.learning-card-head { padding: .8rem .85rem 1.5rem; display: flex; justify-content: space-between; align-items: flex-start; }
.learning-card-label { color: var(--slate-dim); font: 600 .62rem var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.learning-card-title { margin-top: .5rem; font: 500 1.65rem/1.04 var(--font-display); letter-spacing: -.035em; }
.learning-card-status { padding: .36rem .62rem; border-radius: 8px; background: #deeee4; color: var(--sage); font: 700 .58rem var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.course-art {
  height: 215px;
  border-radius: 19px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #dfe9e2, #b8cfc1);
}
.course-art::before, .course-art::after { content: ''; position: absolute; border: 1px solid rgba(22,60,50,.2); border-radius: 50%; }
.course-art::before { width: 360px; height: 190px; left: -45px; top: 75px; transform: rotate(-9deg); }
.course-art::after { width: 400px; height: 220px; left: 70px; top: 45px; transform: rotate(15deg); }
.course-art-mountain {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 500 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23163c32' stroke-width='2'%3E%3Cpath d='M35 211 174 54l72 89 49-62 171 130'/%3E%3Cpath d='m141 91 33-37 32 40-21-8-13 11-16-7-15 1Z' fill='%23f7f3e9' stroke='none'/%3E%3Cpath d='M76 211c61-38 111-44 151-17 43 29 92 26 147-9 34-22 65-18 92 10' stroke-opacity='.4'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
}
.course-art-copy { position: absolute; left: 1.2rem; bottom: 1rem; z-index: 2; color: var(--forest); font: 600 .66rem var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.learning-card-meta { padding: 1.25rem .85rem .8rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; }
.learning-progress-label { display: flex; justify-content: space-between; margin-bottom: .55rem; color: var(--slate-dim); font: 500 .67rem var(--font-ui); }
.learning-progress { height: 7px; border-radius: 20px; background: #ddd8cd; overflow: hidden; }
.learning-progress span { display: block; width: 68%; height: 100%; border-radius: inherit; background: var(--terra); }
.learning-card-meta strong { display: block; font: 400 1.55rem var(--font-display); color: var(--forest); }
.learning-card-meta small { color: var(--slate-dim); font-size: .62rem; }
.floating-note {
  position: absolute;
  right: -36px;
  bottom: 62px;
  width: 180px;
  padding: 1rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(16,47,39,.9);
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  transform: rotate(-3deg);
}
.floating-note strong { display: block; font: 400 1.65rem var(--font-display); }
.floating-note span { color: rgba(255,255,255,.6); font-size: .65rem; }

.home-signal-strip { background: #ece7dc; border-bottom: 1px solid var(--line); }
.signal-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1.3fr repeat(3,1fr); }
.signal-item { padding: 1.55rem 1.7rem; border-left: 1px solid rgba(20,38,33,.1); }
.signal-item:first-child { border-left: 0; padding-left: 0; }
.signal-item strong { display: block; color: var(--forest); font: 500 1.15rem var(--font-display); letter-spacing: -.025em; }
.signal-item span { color: var(--slate-dim); font-size: .69rem; }
.signal-intro { color: var(--slate-mid); font-size: .78rem; display: flex; align-items: center; }

.home-section { padding: 8rem 4rem; }
.home-section.alt { background: #eee9df; }
.home-section.dark { color: #fff; background: var(--ink); }
.home-section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; margin-bottom: 4rem; align-items: end; }
.home-section-head h2 { font: 500 clamp(2.6rem,4.7vw,4.6rem)/.96 var(--font-display); letter-spacing: -.05em; }
.home-section-head p { max-width: 540px; justify-self: end; color: var(--slate-dim); font-size: .95rem; line-height: 1.8; }
.home-section.dark .home-section-head p { color: rgba(255,255,255,.58); }
.premium-pillars { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: rgba(255,255,255,.5); }
.premium-pillar { min-height: 300px; padding: 2rem; border-left: 1px solid var(--line); position: relative; transition: background .25s; }
.premium-pillar:first-child { border-left: 0; }
.premium-pillar:hover { background: #fff; }
.pillar-number { color: var(--terra); font: 600 .66rem var(--font-ui); letter-spacing: .14em; }
.pillar-icon { width: 48px; height: 48px; margin: 3.2rem 0 1.3rem; border: 1px solid var(--line); border-radius: 15px; display: grid; place-items: center; color: var(--forest); }
.pillar-icon svg { width: 22px; height: 22px; }
.premium-pillar h3 { margin-bottom: .65rem; font: 500 1.45rem var(--font-display); letter-spacing: -.025em; }
.premium-pillar p { color: var(--slate-dim); font-size: .82rem; line-height: 1.75; }

.featured-course-premium {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 570px;
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  background: var(--forest);
  box-shadow: var(--shadow-lg);
}
.featured-course-art { min-height: 520px; position: relative; background: #bed0c4; overflow: hidden; }
.featured-course-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,29,25,.22), transparent 55%); }
.featured-course-art svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.featured-course-content { padding: 4.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-course-content .eyebrow { color: var(--terra-soft); }
.featured-course-content .eyebrow::before { background: var(--terra-soft); }
.featured-course-content h2 { font: 500 clamp(2.6rem,4vw,4.2rem)/.94 var(--font-display); letter-spacing: -.045em; margin-bottom: 1.3rem; }
.featured-course-content > p { color: rgba(255,255,255,.63); line-height: 1.8; max-width: 520px; }
.course-specs { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.7rem 0 2rem; }
.course-spec { padding: .48rem .7rem; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: rgba(255,255,255,.73); font: 500 .66rem var(--font-ui); }
.featured-course-content .btn { align-self: flex-start; background: #f6f0e4; color: var(--ink); }

.program-grid-premium { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.program-premium {
  min-height: 270px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 21px;
  text-decoration: none;
  background: rgba(255,255,255,.54);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.program-premium:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); background: #fff; }
.program-premium-top { display: flex; align-items: center; justify-content: space-between; }
.program-tag { color: var(--terra); font: 600 .62rem var(--font-ui); letter-spacing: .11em; text-transform: uppercase; }
.program-arrow { width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.program-premium h3 { max-width: 340px; margin: auto 0 .65rem; font: 500 1.6rem/1.05 var(--font-display); letter-spacing: -.03em; }
.program-premium p { max-width: 420px; color: var(--slate-dim); font-size: .8rem; line-height: 1.7; }

.community-premium { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: center; }
.community-copy h2 { font: 500 clamp(2.8rem,4.5vw,4.5rem)/.95 var(--font-display); letter-spacing: -.045em; margin-bottom: 1.2rem; }
.community-copy p { color: rgba(255,255,255,.58); line-height: 1.8; }
.community-copy .btn { margin-top: 2rem; background: var(--terra); color: #fff; }
.community-board { padding: 1rem; border: 1px solid rgba(255,255,255,.11); border-radius: 24px; background: rgba(255,255,255,.05); }
.community-post { padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.09); }
.community-post:last-child { border-bottom: 0; }
.community-post-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; color: rgba(255,255,255,.4); font: 500 .62rem var(--font-ui); }
.community-post h3 { font: 400 1.15rem var(--font-display); color: #fff; }
.community-post p { margin-top: .4rem; color: rgba(255,255,255,.52); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-community { padding: 3rem; color: rgba(255,255,255,.52); text-align: center; }

.home-cta { padding: 8rem 4rem; background: var(--terra); color: #fff; text-align: center; position: relative; overflow: hidden; }
.home-cta::before { content: 'DCN'; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-52%); font: 400 25vw var(--font-display); color: rgba(255,255,255,.055); pointer-events: none; }
.home-cta > div { position: relative; z-index: 1; }
.home-cta h2 { max-width: 850px; margin: 0 auto 1rem; font: 500 clamp(3rem,5.5vw,5.5rem)/.94 var(--font-display); letter-spacing: -.05em; }
.home-cta p { color: rgba(255,255,255,.75); margin-bottom: 2rem; }
.home-cta .btn { background: var(--ink); color: #fff; }

/* Course catalogue */
.page-courses .section { background: var(--cream); }
.page-courses .section > .container > [data-reveal]:first-child {
  border-radius: 28px !important;
  border-color: rgba(20,38,33,.11) !important;
  background: linear-gradient(135deg,#e4ede7,#dce9ea) !important;
  box-shadow: var(--shadow-sm);
}
.page-courses .card { overflow: hidden; padding: 0; }
.page-courses .card-body { padding: 1.5rem; }
.page-courses .section > .container > div[style*="grid-template-columns:repeat(3"] { gap: 1.1rem !important; }
.featured-course-glyph { width: 170px; height: 170px; position: relative; display: grid; place-items: center; }
.featured-course-glyph::before, .featured-course-glyph::after, .featured-course-glyph span { content: ''; position: absolute; border: 1.5px solid rgba(22,60,50,.25); border-radius: 50%; }
.featured-course-glyph::before { width: 150px; height: 150px; }
.featured-course-glyph::after { width: 105px; height: 105px; }
.featured-course-glyph span:nth-child(1) { width: 58px; height: 58px; background: rgba(255,255,255,.34); }
.featured-course-glyph span:nth-child(2) { width: 10px; height: 10px; background: var(--terra); border: 0; }
.featured-course-glyph span:nth-child(3) { width: 1px; height: 135px; border: 0; border-left: 1px solid rgba(22,60,50,.2); border-radius: 0; transform: rotate(45deg); }
.course-code-art { height: 128px; padding: 1.25rem; display: flex; flex-direction: column; justify-content: flex-end; color: var(--forest); background: linear-gradient(145deg,#e4ede7,#dfe9ea); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.course-code-art::after { content: ''; position: absolute; width: 150px; height: 150px; right: -35px; top: -60px; border: 1px solid rgba(22,60,50,.18); border-radius: 50%; box-shadow: 0 0 0 24px rgba(22,60,50,.035),0 0 0 48px rgba(22,60,50,.025); }
.course-code-art span { font: 400 2rem var(--font-display); letter-spacing: -.03em; }
.course-code-art small { color: var(--slate-dim); font: 600 .58rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
.modal-course-mark, .program-code { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--forest); background: var(--sage-pale); font: 700 .63rem var(--font-ui); letter-spacing: .09em; }
.modal-course-mark { margin-bottom: 1rem; }
.program-card { overflow: hidden; }
.program-card .card-body { padding: 1.7rem; }

/* Existing app surfaces */
.tabs { border-bottom-color: var(--line); }
.tab-btn { color: var(--slate-dim); }
.tab-btn.active { color: var(--forest); border-bottom-color: var(--terra); }
.filter-btn { background: rgba(255,255,255,.5); border-color: var(--line); }
.filter-btn.active, .filter-btn:hover { background: var(--forest); border-color: var(--forest); }
.post-card, .event-card, .chapter-card, .dash-sidebar, .stat-card, .enr-item {
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
}
.stat-card::before { background: var(--terra); }
.data-table th { border-bottom-color: var(--line); }
.data-table td { border-bottom-color: rgba(20,38,33,.08); }
.modal-overlay { background: rgba(6,20,16,.7); }
.modal-box { border-radius: 24px; box-shadow: var(--shadow-lg); }

/* Auth pages */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.auth-story { padding: 7rem max(4rem, calc((100vw - 1180px)/2)) 4rem 4rem; display: flex; flex-direction: column; justify-content: center; color: #fff; background: var(--forest); position: relative; overflow: hidden; }
.auth-story::after { content: ''; position: absolute; inset: auto -15% -15% 5%; height: 60%; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 700 330' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.17'%3E%3Cpath d='M0 300 115 185l60 55L297 52l83 126 70-83 75 103 70-64 130 166'/%3E%3Cpath d='M0 320 115 205l60 55L297 72l83 126 70-83 75 103 70-64 130 166'/%3E%3C/g%3E%3C/svg%3E") bottom/cover no-repeat; }
.auth-story-inner { max-width: 520px; position: relative; z-index: 1; }
.auth-mini-logo { color: rgba(255,255,255,.72); font: 600 .7rem var(--font-ui); letter-spacing: .15em; text-transform: uppercase; }
.auth-story h2 { margin: 4.5rem 0 1rem; font: 500 clamp(2.8rem,4.5vw,4.7rem)/.94 var(--font-display); letter-spacing: -.045em; }
.auth-story > .auth-story-inner > p { color: rgba(255,255,255,.62); line-height: 1.8; }
.auth-quote { margin-top: 3rem; padding: 1.4rem; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.055); }
.auth-quote p { color: rgba(255,255,255,.78); font-size: .84rem; font-style: italic; line-height: 1.75; }
.auth-quote span { display: block; margin-top: .75rem; color: rgba(255,255,255,.42); font-size: .68rem; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 8rem 4rem 4rem; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card h1 { font: 500 2.45rem var(--font-display); letter-spacing: -.04em; }
.auth-card > p { margin: .45rem 0 2.2rem; color: var(--slate-dim); font-size: .84rem; }
.auth-switch { margin-top: 1.4rem; text-align: center; color: var(--slate-dim); font-size: .8rem; }
.auth-switch a { color: var(--sage); font-weight: 700; text-decoration: none; }
.demo-box { margin-top: 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; color: var(--slate-dim); background: rgba(255,255,255,.45); font: .69rem/1.65 var(--font-ui); }
.benefit-list { margin-top: 2rem; list-style: none; display: grid; gap: .75rem; }
.benefit-list li { display: flex; gap: .7rem; color: rgba(255,255,255,.78); font-size: .8rem; }
.benefit-list li::before { content: '✓'; color: var(--terra-soft); font-weight: 700; }

/* Footer */
.site-footer { padding: 6rem 4rem 2.5rem; background: #091915; }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-grid-premium { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 4rem; margin-bottom: 4.5rem; }
.footer-logo { display: inline !important; margin: 0 !important; color: #fff !important; font: 600 2rem var(--font-display) !important; letter-spacing: -.03em; }
.footer-logo span { color: var(--terra); }
.footer-brand-premium p { max-width: 330px; margin: 1.1rem 0 1.5rem; color: rgba(255,255,255,.48); font-size: .83rem; line-height: 1.8; }
.footer-location { color: rgba(255,255,255,.28); font: .65rem var(--font-ui); letter-spacing: .05em; }
.footer-kicker { margin-bottom: 1.3rem; color: rgba(255,255,255,.3); font: 600 .62rem var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.footer-links a { margin-bottom: .7rem; color: rgba(255,255,255,.57); font-size: .78rem; }
.footer-links a:hover { color: #fff; }
.footer-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-newsletter-title { color: #fff; font: 500 1.35rem var(--font-display); letter-spacing: -.025em; }
.footer-newsletter-copy { margin-top: .2rem; color: rgba(255,255,255,.38); font-size: .74rem; }
.newsletter-inline input { border-radius: 11px; background: rgba(255,255,255,.06); }
.newsletter-inline button { border-radius: 11px; background: var(--terra); }
.newsletter-inline button:hover { background: #df8852; }
.footer-bottom-premium { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.7rem; color: rgba(255,255,255,.25); font: .66rem var(--font-ui); }

@media (max-width: 1050px) {
  .home-hero { grid-template-columns: 1fr 1fr; gap: 2rem; padding-inline: 3rem; }
  .home-hero h1 { font-size: clamp(3.4rem,7vw,5.4rem); }
  .featured-course-content { padding: 3rem; }
  .footer-grid-premium { gap: 2rem; }
}

@media (max-width: 900px) {
  .dcn-nav { width: calc(100% - 24px); top: 10px; padding: .55rem .65rem .55rem .8rem; }
  .nav-menu { display: none; flex-direction: column; align-items: stretch; top: 76px; left: 12px; right: 12px; bottom: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 17px; background: rgba(251,250,247,.98); box-shadow: var(--shadow-lg); }
  .nav-menu.open { display: flex; }
  .nav-menu a { color: var(--slate) !important; padding: .8rem !important; }
  .nav-menu .nav-divider { width: 100%; height: 1px; margin: .4rem 0; }
  .page-index .dcn-nav:not(.scrolled) .nav-mobile-toggle { color: #fff; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; padding: 9rem 1.5rem 5rem; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 520px; }
  .learning-card { width: min(90%,470px); }
  .signal-inner { grid-template-columns: repeat(3,1fr); }
  .signal-intro { grid-column: 1/-1; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
  .signal-item:nth-child(2) { border-left: 0; padding-left: 0; }
  .home-section-head { grid-template-columns: 1fr; gap: 1.3rem; }
  .home-section-head p { justify-self: start; }
  .featured-course-premium { grid-template-columns: 1fr; }
  .featured-course-art { min-height: 380px; }
  .community-premium { grid-template-columns: 1fr; gap: 3rem; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 520px; padding: 8rem 2rem 4rem; }
  .auth-panel { padding: 4rem 1.5rem; }
  .footer-grid-premium { grid-template-columns: 2fr 1fr 1fr; }
  .footer-links:last-child { display: none; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1180px); }
  .section, .section-sm, .section-lg, .home-section { padding: 5rem 1rem; }
  .page-hero { padding: 9rem 1rem 4.5rem; }
  .home-hero h1 { font-size: clamp(3rem,15vw,4.4rem); }
  .hero-visual { min-height: 450px; }
  .learning-card { width: 100%; transform: none; }
  .floating-note { right: -5px; bottom: 28px; }
  .signal-inner { width: calc(100% - 32px); grid-template-columns: 1fr; }
  .signal-item, .signal-item:nth-child(2) { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0; }
  .premium-pillars { grid-template-columns: 1fr; }
  .premium-pillar { min-height: 245px; border-left: 0; border-top: 1px solid var(--line); }
  .premium-pillar:first-child { border-top: 0; }
  .pillar-icon { margin-top: 2rem; }
  .featured-course-art { min-height: 300px; }
  .featured-course-content { padding: 2rem; }
  .program-grid-premium { grid-template-columns: 1fr; }
  .home-cta { padding: 6rem 1.25rem; }
  .footer-grid-premium { grid-template-columns: 1fr 1fr; }
  .footer-brand-premium { grid-column: 1/-1; }
  .footer-newsletter { align-items: flex-start; flex-direction: column; }
  .newsletter-inline { width: 100%; }
  .footer-bottom-premium { flex-direction: column; }
  .site-footer { padding: 4.5rem 1.25rem 2rem; }
}

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

/* =========================================================
   Editorial layout — deliberately avoids generic centered
   hero, floating dashboard cards, and repeated card grids.
   ========================================================= */
.editorial-home { background: var(--cream); }
.ed-hero {
  min-height: 900px;
  padding: 8.5rem max(2rem, calc((100vw - 1320px)/2)) 2.5rem;
  display: grid;
  grid-template-columns: 72px minmax(0,1fr) minmax(360px, .72fr);
  gap: clamp(2rem,4vw,5.5rem);
  color: #f7f3ea;
  background: #0b2922;
  position: relative;
  overflow: hidden;
}
.ed-hero::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  right: 18%; bottom: -530px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255,255,255,.025),0 0 0 180px rgba(255,255,255,.018);
}
.ed-hero-rail {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-left: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.42);
  font: 600 .57rem var(--font-ui);
  letter-spacing: .14em;
  position: relative; z-index: 1;
}
.ed-hero-main { align-self: center; position: relative; z-index: 1; }
.ed-hero-meta { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 3rem; color: rgba(255,255,255,.48); font: 500 .64rem/1.5 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.ed-index { color: var(--terra-soft); font-size: .72rem; }
.ed-hero h1 { margin-left: -.06em; color: #f9f5ec; font: 500 clamp(4.7rem,8vw,8.5rem)/.79 var(--font-display); letter-spacing: -.068em; }
.ed-hero h1 em { display: inline-block; color: var(--terra-soft); font-weight: 400; }
.ed-hero-bottom { max-width: 700px; margin-top: 4rem; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.ed-hero-bottom p { max-width: 480px; color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.8; }
.ed-arrow-link { display: inline-flex; align-items: center; gap: 1.8rem; padding-bottom: .4rem; border-bottom: 1px solid currentColor; color: var(--forest); font: 600 .72rem var(--font-ui); text-decoration: none; white-space: nowrap; }
.ed-arrow-link span { font-size: 1rem; transition: transform .2s; }
.ed-arrow-link:hover span { transform: translate(3px,-3px); }
.ed-hero .ed-arrow-link { color: #fff; }
.ed-feature { align-self: end; margin-bottom: 1rem; color: var(--slate); text-decoration: none; background: #eae7dd; position: relative; z-index: 1; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.ed-feature:hover { transform: translateY(-8px); }
.ed-feature-top { height: 43px; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; color: var(--slate-dim); font: 600 .54rem var(--font-ui); letter-spacing: .1em; }
.ed-feature-art { height: 420px; position: relative; overflow: hidden; }
.ed-feature-art svg { width: 100%; height: 100%; display: block; }
.ed-feature-number { position: absolute; right: 1rem; bottom: -.25rem; color: rgba(15,43,35,.16); font: 500 6rem var(--font-display); }
.ed-feature-title { min-height: 108px; padding: 1.2rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ed-feature-title small { display: block; margin-bottom: .35rem; color: var(--terra); font: 700 .52rem var(--font-ui); letter-spacing: .12em; }
.ed-feature-title strong { font: 500 1.45rem/1.02 var(--font-display); letter-spacing: -.035em; }
.ed-circle-arrow { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(20,38,33,.25); border-radius: 50%; }

.ed-marquee { min-height: 70px; display: grid; grid-template-columns: repeat(5,1fr); align-items: stretch; border-bottom: 1px solid var(--line); background: #d67d48; color: #172d27; }
.ed-marquee div { padding: 1.5rem 1rem; display: grid; place-items: center; border-left: 1px solid rgba(20,38,33,.18); font: 700 .59rem var(--font-ui); letter-spacing: .1em; text-align: center; }
.ed-marquee div:first-child { border-left: 0; }

.ed-section-mark { display: flex; flex-direction: column; gap: .35rem; color: var(--terra); font: 700 .58rem var(--font-ui); letter-spacing: .13em; }
.ed-section-mark span:first-child { color: var(--slate-dim); }
.ed-section-mark.light { color: var(--terra-soft); }
.ed-section-mark.light span:first-child { color: rgba(255,255,255,.36); }
.ed-statement { padding: 9rem max(2rem,calc((100vw - 1240px)/2)); display: grid; grid-template-columns: 120px minmax(0,1fr) 250px; gap: 4rem; align-items: start; }
.ed-statement-copy h2 { max-width: 760px; font: 500 clamp(3.8rem,6vw,6.8rem)/.9 var(--font-display); letter-spacing: -.06em; }
.ed-statement-lead { max-width: 800px; margin: 2.5rem 0 4rem; color: var(--forest); font: 500 clamp(1.55rem,2.4vw,2.4rem)/1.3 var(--font-display); letter-spacing: -.03em; }
.ed-statement-columns { max-width: 850px; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.ed-statement-columns p { color: var(--slate-dim); font-size: .83rem; line-height: 1.85; }
.ed-note { margin-top: 15rem; padding-top: 1rem; border-top: 1px solid var(--slate); }
.ed-note span { display: block; margin-bottom: 1.1rem; color: var(--terra); font: 700 .55rem var(--font-ui); letter-spacing: .13em; }
.ed-note strong { font: 500 1.25rem/1.18 var(--font-display); letter-spacing: -.025em; }

.ed-course { padding: 7rem max(2rem,calc((100vw - 1240px)/2)); display: grid; grid-template-columns: 120px minmax(280px,.8fr) minmax(420px,1.2fr); column-gap: 4rem; row-gap: 4rem; color: #fff; background: #102e27; }
.ed-course-heading h2 { font: 500 clamp(3.5rem,5vw,5.8rem)/.88 var(--font-display); letter-spacing: -.055em; }
.ed-course-heading p { max-width: 410px; margin-top: 2rem; color: rgba(255,255,255,.5); font-size: .84rem; line-height: 1.8; }
.ed-syllabus { border-top: 1px solid rgba(255,255,255,.2); }
.ed-syllabus-row { min-height: 77px; display: grid; grid-template-columns: 42px 1fr auto; gap: 1rem; align-items: center; border-bottom: 1px solid rgba(255,255,255,.14); }
.ed-syllabus-row span { color: var(--terra-soft); font: 600 .6rem var(--font-ui); }
.ed-syllabus-row strong { font: 500 1rem var(--font-body); }
.ed-syllabus-row small { color: rgba(255,255,255,.35); font: .62rem var(--font-ui); }
.ed-course-action { grid-column: 2/4; display: flex; align-items: flex-end; justify-content: space-between; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.2); }
.ed-course-action div { display: flex; gap: 1rem; align-items: baseline; }
.ed-course-action strong { color: var(--terra-soft); font: 500 2rem var(--font-display); }
.ed-course-action div span { color: rgba(255,255,255,.4); font-size: .64rem; }
.ed-course-action a { display: flex; justify-content: space-between; width: 260px; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.5); color: #fff; text-decoration: none; font: 600 .74rem var(--font-ui); }

.ed-programs { padding: 9rem max(2rem,calc((100vw - 1240px)/2)); display: grid; grid-template-columns: 120px 1fr; gap: 4rem; }
.ed-programs-head { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 5rem; }
.ed-programs-head h2 { font: 500 clamp(3.8rem,6vw,6.5rem)/.86 var(--font-display); letter-spacing: -.06em; }
.ed-program-list { grid-column: 2; border-top: 1px solid var(--slate); }
.ed-program-list a { min-height: 112px; display: grid; grid-template-columns: 60px 1fr 210px 30px; gap: 1.5rem; align-items: center; border-bottom: 1px solid var(--line); color: var(--slate); text-decoration: none; transition: padding .25s, background .25s; }
.ed-program-list a:hover { padding: 0 1.2rem; background: #ebe7dd; }
.ed-program-no { color: var(--terra); font: 700 .6rem var(--font-ui); }
.ed-program-list strong { font: 500 clamp(1.35rem,2.3vw,2.25rem) var(--font-display); letter-spacing: -.035em; }
.ed-program-list small { color: var(--slate-dim); font: 600 .57rem var(--font-ui); letter-spacing: .1em; }

.ed-community { min-height: 720px; display: grid; grid-template-columns: 1.1fr .9fr; color: #fff; background: #b9653c; }
.ed-community-map { min-height: 620px; padding: 4rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); }
.ed-community-map svg { width: 100%; height: 85%; }
.ed-community-map > span { font: 700 .58rem var(--font-ui); letter-spacing: .14em; }
.ed-community-copy { padding: 7rem clamp(2rem,6vw,7rem); display: flex; flex-direction: column; justify-content: center; }
.ed-community-copy h2 { margin: 4rem 0 2rem; font: 500 clamp(3.3rem,5vw,5.8rem)/.9 var(--font-display); letter-spacing: -.055em; }
.ed-community-copy p { max-width: 520px; color: rgba(255,255,255,.68); line-height: 1.8; }
.ed-arrow-link.light { align-self: flex-start; margin-top: 3rem; color: #fff; }

.ed-final { min-height: 700px; padding: 7rem max(2rem,calc((100vw - 1240px)/2)); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; overflow: hidden; background: #e9e5da; }
.ed-final::after { content: 'DCN'; position: absolute; right: -.04em; bottom: -.3em; color: rgba(20,38,33,.05); font: 500 34vw var(--font-display); line-height: 1; }
.ed-final > span { color: var(--terra); font: 700 .6rem var(--font-ui); letter-spacing: .15em; }
.ed-final h2 { margin: 2rem 0 3rem; font: 500 clamp(4.8rem,10vw,11rem)/.76 var(--font-display); letter-spacing: -.072em; position: relative; z-index: 1; }
.ed-final a { min-width: 280px; padding: 1rem 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--slate); color: var(--slate); text-decoration: none; font: 700 .73rem var(--font-ui); position: relative; z-index: 1; }

/* Inner pages use an editorial three-column masthead instead of a centered banner. */
@media (min-width: 901px) {
  .page-hero .container { display: grid; grid-template-columns: 130px minmax(0,1fr) 300px; gap: 3rem; align-items: end; }
  .page-hero .eyebrow { align-self: start; padding-top: .8rem; }
  .page-hero h1 { margin: 0; }
  .page-hero p { margin: 0 0 .45rem; }
}

@media (max-width: 1000px) {
  .ed-hero { grid-template-columns: 52px 1fr; min-height: auto; }
  .ed-feature { grid-column: 2; width: min(100%,540px); margin-top: 3rem; }
  .ed-statement { grid-template-columns: 90px 1fr; }
  .ed-note { grid-column: 2; margin-top: 0; max-width: 320px; }
  .ed-course { grid-template-columns: 90px 1fr; }
  .ed-syllabus { grid-column: 2; }
  .ed-course-action { grid-column: 2; }
  .ed-programs { grid-template-columns: 90px 1fr; }
}

@media (max-width: 720px) {
  .ed-hero { padding: 8rem 1.25rem 2rem; grid-template-columns: 1fr; gap: 0; }
  .ed-hero-rail { display: none; }
  .ed-hero-main { padding: 2rem 0 4rem; }
  .ed-hero-meta { margin-bottom: 2rem; }
  .ed-hero h1 { font-size: clamp(4rem,20vw,6rem); line-height: .82; }
  .ed-hero-bottom { grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
  .ed-hero .ed-arrow-link { justify-self: start; }
  .ed-feature { grid-column: 1; width: 100%; margin: 0; }
  .ed-feature-art { height: 330px; }
  .ed-marquee { display: flex; overflow-x: auto; }
  .ed-marquee div { min-width: 190px; }
  .ed-statement, .ed-course, .ed-programs { padding: 6rem 1.25rem; grid-template-columns: 1fr; gap: 2.5rem; }
  .ed-statement-copy h2, .ed-course-heading h2, .ed-programs-head h2 { font-size: 3.8rem; }
  .ed-statement-lead { margin: 2rem 0 3rem; }
  .ed-statement-columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .ed-note { grid-column: 1; margin: 1rem 0 0; }
  .ed-syllabus, .ed-course-action, .ed-program-list { grid-column: 1; }
  .ed-course-action { align-items: stretch; flex-direction: column; gap: 2rem; }
  .ed-course-action a { width: 100%; }
  .ed-programs-head { align-items: flex-start; flex-direction: column; margin-bottom: 3rem; }
  .ed-program-list a { min-height: 125px; grid-template-columns: 36px 1fr 24px; gap: 1rem; }
  .ed-program-list small { grid-column: 2; grid-row: 2; margin-top: -2rem; }
  .ed-community { grid-template-columns: 1fr; }
  .ed-community-map { min-height: 400px; padding: 2rem 1.25rem; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .ed-community-copy { padding: 5rem 1.25rem; }
  .ed-community-copy h2 { margin-top: 3rem; font-size: 3.8rem; }
  .ed-final { min-height: 620px; padding: 5rem 1.25rem; }
  .ed-final h2 { font-size: clamp(4.5rem,22vw,7rem); }
}

/* =========================================================
   UI Skills pass: Connected terrain
   Subject-led, one-family, route-based composition.
   ========================================================= */
:root {
  --ridge: #102a43;
  --signal: #ffb000;
  --lake: #b8e3ea;
  --cloud: #f6f8f5;
  --nepal-red: #c63c4a;
  --terrain-ink: #14212b;
}
html { background: var(--cloud); }
body { background: var(--cloud); color: var(--terrain-ink); letter-spacing: 0; font-size: 1rem; }
body, button, input, select, textarea { font-family: 'Anek Latin', Arial, sans-serif; }
h1, h2, h3, h4, .section-h, .page-hero h1 { font-family: 'Anek Latin', Arial, sans-serif; font-style: normal; }
p { text-wrap: pretty; }
a { text-underline-position: from-font; text-decoration-thickness: from-font; }
.terrain-nepali { font-family: 'Anek Devanagari','Anek Latin',sans-serif; }

/* Navigation becomes part of the page grid, not a floating pill. */
.dcn-nav {
  width: 100%;
  max-width: none;
  top: 0;
  left: 0;
  transform: none;
  padding: .8rem max(1.25rem, calc((100vw - 1320px)/2));
  border: 0;
  border-bottom: 1px solid rgba(16,42,67,.14);
  border-radius: 0;
  background: rgba(246,248,245,.94);
  box-shadow: none;
}
.dcn-nav.scrolled { border-bottom-color: rgba(16,42,67,.2); box-shadow: none; }
.brand-mark { color: var(--ridge); }
.nav-logo .acronym { color: var(--ridge); font-family: 'Anek Latin',sans-serif; font-size: 1.1rem; font-weight: 700; }
.nav-logo .fullname { color: rgba(16,42,67,.62); font-size: .58rem; letter-spacing: .04em; }
.nav-menu a { color: var(--ridge); border-radius: 0; font-size: .78rem; font-weight: 500; }
.nav-menu a.active, .nav-menu a:hover { color: var(--ridge); background: transparent; text-decoration: underline; text-underline-offset: .35rem; }
.nav-cta { border-radius: 0 !important; background: var(--signal) !important; color: var(--ridge) !important; box-shadow: none; }
.nav-cta:hover { background: #ffc12d !important; transform: none; text-decoration: none !important; }
.page-index .dcn-nav:not(.scrolled) { background: rgba(16,42,67,.94); border-color: rgba(255,255,255,.16); }
.page-index .dcn-nav:not(.scrolled) .nav-logo .acronym,
.page-index .dcn-nav:not(.scrolled) .nav-menu a,
.page-index .dcn-nav:not(.scrolled) .nav-mobile-toggle { color: #fff; }
.page-index .dcn-nav:not(.scrolled) .nav-logo .fullname { color: rgba(255,255,255,.58); }
.page-index .dcn-nav:not(.scrolled) .brand-mark { color: var(--lake); }
.page-index .dcn-nav:not(.scrolled) .nav-cta { background: var(--signal) !important; color: var(--ridge) !important; }

.terrain-home { overflow: hidden; background: var(--cloud); }
.terrain-hero {
  min-height: 900px;
  padding: 8.5rem max(1.5rem,calc((100vw - 1320px)/2)) 3rem;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(330px,.65fr);
  grid-template-rows: 1fr auto;
  gap: 2rem clamp(3rem,7vw,8rem);
  color: #fff;
  background: var(--ridge);
  position: relative;
}
.terrain-contours { position: absolute; inset: 0; opacity: .13; pointer-events: none; }
.terrain-contours svg { width: 100%; height: 100%; }
.terrain-contours path { fill: none; stroke: var(--lake); stroke-width: 2; }
.terrain-intro { align-self: center; max-width: 820px; position: relative; z-index: 1; }
.terrain-nepali { margin-bottom: 1.2rem; color: var(--signal); font-size: 1.02rem; font-weight: 550; }
.terrain-intro h1 { color: #fff; font-size: clamp(5.8rem,10vw,11rem); font-weight: 700; font-stretch: 80%; line-height: .76; letter-spacing: -.065em; text-wrap: balance; }
.terrain-intro h1 span { color: var(--lake); }
.terrain-lead { max-width: 580px; margin-top: 3rem; color: rgba(255,255,255,.7); font-size: 1.08rem; line-height: 1.55; }
.terrain-actions { margin-top: 2.25rem; display: flex; align-items: center; gap: 1.6rem; }
.terrain-primary, .route-launch, .terrain-course-foot a, .terrain-close a {
  min-height: 48px;
  padding: .8rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ridge);
  background: var(--signal);
  font-weight: 650;
  text-decoration: none;
}
.terrain-primary:hover, .route-launch:hover, .terrain-course-foot a:hover, .terrain-close a:hover { background: #ffc431; }
.terrain-text-link { color: #fff; font-weight: 550; text-decoration: underline; text-underline-offset: .35rem; }

.terrain-route { align-self: center; min-height: 610px; padding: 2.1rem; color: var(--ridge); background: var(--lake); position: relative; z-index: 1; }
.route-heading { padding-bottom: 1.7rem; border-bottom: 2px solid var(--ridge); }
.route-heading p { color: rgba(16,42,67,.66); font-size: .74rem; }
.route-heading h2 { margin: .35rem 0 .25rem; font-size: 2.6rem; font-weight: 680; font-stretch: 86%; line-height: 1; letter-spacing: -.04em; }
.route-heading span { color: rgba(16,42,67,.66); font-size: .74rem; }
.route-stops { margin: 0; padding: 1.6rem 0 1.8rem; list-style: none; position: relative; }
.route-stops::before { content: ''; position: absolute; top: 2.1rem; bottom: 2.3rem; left: 8px; width: 2px; background: rgba(16,42,67,.25); }
.route-stop { min-height: 72px; display: grid; grid-template-columns: 18px 1fr; gap: 1rem; align-items: start; position: relative; }
.route-node { width: 18px; height: 18px; margin-top: .1rem; border: 2px solid var(--ridge); border-radius: 50%; background: var(--lake); position: relative; z-index: 1; }
.route-stop.active .route-node { background: var(--signal); }
.route-stop strong { display: block; font-size: 1.05rem; font-weight: 650; }
.route-stop small { color: rgba(16,42,67,.66); font-size: .76rem; }
.route-launch { width: 100%; background: var(--ridge); color: #fff; }
.route-launch:hover { background: #183c5e; }
.terrain-facts { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.25); position: relative; z-index: 1; }
.terrain-facts div { padding: 1.3rem 1.5rem 0 0; display: flex; align-items: baseline; gap: .65rem; }
.terrain-facts strong { color: var(--signal); font-size: 2rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.terrain-facts span { color: rgba(255,255,255,.58); font-size: .76rem; }

.terrain-proof { padding: 9rem max(1.5rem,calc((100vw - 1200px)/2)); display: grid; grid-template-columns: minmax(300px,.85fr) minmax(420px,1.15fr); gap: clamp(4rem,9vw,10rem); }
.proof-question > p, .terrain-course-head > p:first-child, .opportunities-title > p { color: var(--nepal-red); font-weight: 650; }
.proof-question h2 { margin-top: 1.4rem; max-width: 580px; font-size: clamp(3rem,5.5vw,6rem); font-weight: 670; font-stretch: 86%; line-height: .95; letter-spacing: -.04em; text-wrap: balance; }
.proof-answer > p { max-width: 650px; font-size: 1.4rem; font-weight: 480; line-height: 1.5; }
.proof-principles { margin-top: 4.5rem; border-top: 2px solid var(--ridge); }
.proof-principles div { padding: 1.3rem 0; display: grid; grid-template-columns: 100px 1fr; gap: 1rem; border-bottom: 1px solid rgba(16,42,67,.2); }
.proof-principles span { color: var(--ridge); font-weight: 680; }
.proof-principles p { max-width: 450px; color: rgba(20,33,43,.68); }

.terrain-course { padding: 8rem max(1.5rem,calc((100vw - 1260px)/2)); background: var(--lake); }
.terrain-course-head { display: grid; grid-template-columns: 140px minmax(0,1fr) minmax(260px,.55fr); gap: 2rem; align-items: end; }
.terrain-course-head h2 { max-width: 740px; font-size: clamp(3.5rem,6vw,6.7rem); font-weight: 700; font-stretch: 82%; line-height: .9; letter-spacing: -.05em; }
.terrain-course-head > p:last-child { color: rgba(16,42,67,.7); line-height: 1.6; }
.terrain-course-path { margin-top: 6rem; display: grid; grid-template-columns: repeat(4,1fr); position: relative; }
.path-line { position: absolute; left: 0; right: 0; top: 21px; height: 3px; background: var(--ridge); }
.terrain-course-path article { padding-right: 2rem; position: relative; }
.terrain-course-path article:nth-of-type(even) { margin-top: 6rem; }
.terrain-course-path article > span { width: 44px; height: 44px; display: grid; place-items: center; border: 3px solid var(--ridge); border-radius: 50%; color: var(--ridge); background: var(--signal); font-weight: 700; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.terrain-course-path h3 { margin-top: 2rem; font-size: 1.55rem; font-weight: 650; line-height: 1.15; }
.terrain-course-path p { margin-top: .7rem; max-width: 220px; color: rgba(16,42,67,.66); line-height: 1.55; }
.terrain-course-foot { margin-top: 6rem; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; border-top: 2px solid var(--ridge); }
.terrain-course-foot p { font-weight: 550; }

.terrain-opportunities { display: grid; grid-template-columns: minmax(280px,.7fr) minmax(0,1.3fr); background: var(--cloud); }
.opportunities-title { padding: 7rem max(2rem,6vw); color: #fff; background: var(--nepal-red); }
.opportunities-title h2 { margin-top: 1.5rem; font-size: clamp(4rem,7vw,7rem); font-weight: 700; font-stretch: 82%; line-height: .86; letter-spacing: -.05em; }
.opportunities-title > p { color: rgba(255,255,255,.72); }
.opportunity-bands { border-top: 1px solid rgba(16,42,67,.2); }
.opportunity-bands a { min-height: 145px; padding: 2rem 3rem; display: grid; grid-template-columns: minmax(220px,.8fr) minmax(280px,1fr) 90px; gap: 2rem; align-items: center; border-bottom: 1px solid rgba(16,42,67,.2); color: var(--terrain-ink); text-decoration: none; transition: color .18s, background .18s; }
.opportunity-bands a:hover { color: #fff; background: var(--ridge); }
.opportunity-bands strong { font-size: 1.65rem; font-weight: 650; line-height: 1.15; }
.opportunity-bands span { color: rgba(20,33,43,.64); line-height: 1.55; }
.opportunity-bands a:hover span { color: rgba(255,255,255,.68); }
.opportunity-bands b { font-size: .74rem; font-weight: 600; }

.terrain-network { min-height: 720px; display: grid; grid-template-columns: 1.1fr .9fr; color: #fff; background: var(--ridge); }
.network-visual { min-height: 600px; display: grid; place-items: center; border-right: 1px solid rgba(255,255,255,.18); }
.network-visual svg { width: 88%; height: 88%; }
.network-visual path { fill: none; stroke: var(--lake); stroke-width: 3; }
.network-nodes circle { fill: var(--signal); stroke: var(--ridge); stroke-width: 4; }
.network-copy { padding: 7rem clamp(2rem,6vw,7rem); display: flex; flex-direction: column; justify-content: center; }
.network-copy h2 { max-width: 570px; margin: 1.4rem 0 2rem; font-size: clamp(3.3rem,5vw,5.8rem); font-weight: 690; font-stretch: 84%; line-height: .92; letter-spacing: -.045em; }
.network-copy > p:not(.terrain-nepali) { max-width: 510px; color: rgba(255,255,255,.66); font-size: 1.05rem; line-height: 1.6; }
.network-copy a { align-self: flex-start; margin-top: 2.5rem; color: #fff; font-weight: 600; text-underline-offset: .35rem; }

.terrain-close { min-height: 700px; padding: 7rem max(1.5rem,calc((100vw - 1200px)/2)); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--signal); }
.terrain-close > p { color: rgba(16,42,67,.7); font-size: 1.25rem; }
.terrain-close h2 { max-width: 1000px; margin: 1.2rem 0 3.5rem; color: var(--ridge); font-size: clamp(5rem,10vw,11rem); font-weight: 720; font-stretch: 78%; line-height: .78; letter-spacing: -.065em; }
.terrain-close a { background: var(--ridge); color: #fff; }
.terrain-close a:hover { background: #183c5e; }

/* Inner pages inherit the new visual language without turning into a card kit. */
.page-hero { padding-top: 10rem; background: var(--lake); }
.page-hero::before, .page-hero::after { display: none; }
.page-hero h1 { color: var(--ridge); font-weight: 700; font-stretch: 82%; line-height: .9; letter-spacing: -.05em; }
.page-hero h1 em { color: var(--ridge); font-style: normal; }
.page-hero .eyebrow { color: var(--nepal-red); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.page-hero .eyebrow::before { background: var(--nepal-red); }
.page-hero p { color: rgba(16,42,67,.7); }
.card { border-radius: 0; box-shadow: none; }
.card:hover { transform: none; box-shadow: none; border-color: var(--ridge); }
.btn { border-radius: 0; }
.btn-sage, .btn-primary { background: var(--ridge); box-shadow: none; }
.badge { border-radius: 0; text-transform: none; letter-spacing: 0; }

@media (max-width: 980px) {
  .terrain-hero { grid-template-columns: 1fr; }
  .terrain-route { width: min(100%,650px); }
  .terrain-proof { grid-template-columns: 1fr; }
  .terrain-course-head { grid-template-columns: 1fr; }
  .terrain-course-path { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .path-line { display: none; }
  .terrain-course-path article:nth-of-type(even) { margin-top: 0; }
  .terrain-opportunities { grid-template-columns: 1fr; }
  .opportunities-title { min-height: 360px; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .dcn-nav { padding: .65rem 1rem; }
  .nav-menu { top: 66px; }
  .terrain-hero { min-height: 0; padding: 8.5rem 1.25rem 2rem; gap: 3.5rem; }
  .terrain-intro h1 { font-size: clamp(4.6rem,24vw,7rem); line-height: .75; }
  .terrain-lead { margin-top: 2.5rem; font-size: 1rem; }
  .terrain-actions { align-items: flex-start; flex-direction: column; }
  .terrain-route { min-height: auto; padding: 1.4rem; }
  .route-heading h2 { font-size: 2.2rem; }
  .terrain-facts { grid-template-columns: 1fr; }
  .terrain-facts div { border-bottom: 1px solid rgba(255,255,255,.15); }
  .terrain-proof, .terrain-course { padding: 6rem 1.25rem; }
  .proof-question h2, .terrain-course-head h2 { font-size: 3.7rem; }
  .proof-answer > p { font-size: 1.2rem; }
  .proof-principles div { grid-template-columns: 78px 1fr; }
  .terrain-course-path { grid-template-columns: 1fr; gap: 3rem; margin-top: 4rem; }
  .terrain-course-path article { padding-right: 0; }
  .terrain-course-path p { max-width: 320px; }
  .terrain-course-foot { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .opportunities-title { min-height: 320px; padding: 5rem 1.25rem; }
  .opportunity-bands a { min-height: 190px; padding: 1.6rem 1.25rem; grid-template-columns: 1fr auto; gap: 1rem; }
  .opportunity-bands span { grid-column: 1/-1; grid-row: 2; }
  .opportunity-bands b { grid-column: 2; grid-row: 1; }
  .terrain-network { grid-template-columns: 1fr; }
  .network-visual { min-height: 380px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .network-copy { padding: 5rem 1.25rem; }
  .network-copy h2 { font-size: 3.8rem; }
  .terrain-close { min-height: 620px; padding: 5rem 1.25rem; }
  .terrain-close h2 { font-size: clamp(5rem,25vw,7.5rem); }
  .form-control, .form-input, .form-select, .form-textarea { font-size: 1rem; }
}

/* =========================================================
   Whole-site consistency pass
   Extends Connected Terrain to every route and application surface.
   ========================================================= */
.site-footer { background: #091f34; }
.footer-logo, .footer-newsletter-title { font-family: 'Anek Latin',sans-serif !important; font-weight: 680 !important; }
.footer-newsletter { border-color: rgba(184,227,234,.18); }
.newsletter-inline input { border-radius: 0; border-color: rgba(184,227,234,.3); }
.newsletter-inline button { border-radius: 0; color: var(--ridge); background: var(--signal); }

/* Public information pages */
.page-courses .section,
.page-programs .section,
.page-community .section,
.page-about .section { background: var(--cloud); }
.page-courses .section > .container,
.page-programs .section > .container,
.page-community .section > .container,
.page-about .section > .container { max-width: 1200px; }
.page-courses .card,
.page-programs .card,
.page-community .post-card,
.page-community .event-card,
.page-community .chapter-card,
.page-about .card { border: 1px solid rgba(16,42,67,.2); border-radius: 0; background: transparent; }
.page-courses .card:hover,
.page-programs .card:hover,
.page-community .post-card:hover,
.page-community .event-card:hover,
.page-community .chapter-card:hover,
.page-about .card:hover { border-color: var(--ridge); transform: none; box-shadow: none; }
.page-courses .section > .container > [data-reveal]:first-child {
  border: 0 !important;
  border-top: 3px solid var(--ridge) !important;
  border-bottom: 3px solid var(--ridge) !important;
  border-radius: 0 !important;
  background: var(--lake) !important;
  box-shadow: none;
}
.page-courses .course-code-art { border-color: rgba(16,42,67,.2); background: var(--lake); }
.page-courses .course-code-art::after { border-color: rgba(16,42,67,.22); }
.featured-course-glyph::before, .featured-course-glyph::after, .featured-course-glyph span { border-color: var(--ridge); }
.featured-course-glyph span:nth-child(2) { background: var(--signal); }
.filter-btn { border-radius: 0; border-color: rgba(16,42,67,.26); background: transparent; }
.filter-btn.active, .filter-btn:hover { color: #fff; border-color: var(--ridge); background: var(--ridge); }
.tabs { gap: 1.5rem; border-bottom: 2px solid var(--ridge); }
.tab-btn { padding: .8rem 0; border-bottom-width: 4px; font-weight: 550; }
.tab-btn.active { color: var(--ridge); border-bottom-color: var(--signal); }
.tab-btn:hover:not(.active) { color: var(--ridge); background: transparent; border-radius: 0; }
.avatar { border-radius: 0; color: var(--ridge); background: var(--lake) !important; }
.event-date-badge { border-radius: 0; color: var(--ridge); background: var(--lake); }
.event-day { color: var(--ridge); font-family: 'Anek Latin',sans-serif; font-weight: 700; }
.chapter-code, .value-code, .contact-code {
  width: 36px; height: 36px; flex: 0 0 auto;
  display: grid; place-items: center;
  color: var(--ridge); background: var(--signal);
  font-size: .7rem; font-weight: 700;
}
.chapter-status::before { border-radius: 0; }
.page-community .alert, .page-about .alert { border-radius: 0; }
.page-about section[style*="background:var(--sand)"] { background: var(--lake) !important; }
.page-about section[style*="background:var(--sage-pale)"] { background: #e8eef2 !important; }
.page-about div[style*="background:var(--sage-pale)"] { border-radius: 0 !important; background: var(--lake) !important; }
.page-about div[style*="border-radius:50%"] { border-radius: 0 !important; background: var(--ridge) !important; }
.page-about .badge-sage { color: var(--ridge); background: var(--lake); }
.program-code, .modal-course-mark { border-radius: 0; border-color: var(--ridge); color: var(--ridge); background: var(--signal); }
.program-card .card-body { padding: 2rem; }
.page-programs section[style*="background:var(--sage-pale)"] { background: var(--lake) !important; }

/* Authentication */
.auth-shell { color: var(--terrain-ink); background: var(--cloud); }
.auth-story { color: #fff; background: var(--ridge); }
.auth-story::after {
  inset: 0; height: 100%; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 700 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23B8E3EA' stroke-width='2'%3E%3Cpath d='M-50 480c140-150 240 75 390-85S575 205 760 320'/%3E%3Cpath d='M-60 520c140-150 240 75 390-85S575 245 760 360'/%3E%3Cpath d='M-70 560c140-150 240 75 390-85S575 285 760 400'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center; background-size: cover;
}
.auth-mini-logo { color: var(--lake); letter-spacing: 0; text-transform: none; }
.auth-story h2 { max-width: 620px; color: #fff; font-size: clamp(3.5rem,6vw,6.5rem); font-weight: 700; font-stretch: 82%; line-height: .85; letter-spacing: -.055em; }
.auth-story > .auth-story-inner > p { max-width: 550px; color: rgba(255,255,255,.68); }
.auth-quote { border: 0; border-left: 5px solid var(--signal); border-radius: 0; background: transparent; }
.benefit-list li::before { color: var(--signal); }
.auth-panel { background: var(--cloud); }
.auth-card h1 { color: var(--ridge); font-size: 3.2rem; font-weight: 690; font-stretch: 86%; }
.auth-switch a { color: var(--ridge); }
.demo-box { border-radius: 0; border-color: rgba(16,42,67,.2); background: var(--lake); }
.form-control, .form-input, .form-select, .form-textarea, .finput, .fselect {
  border-radius: 0 !important;
  border: 1px solid rgba(16,42,67,.3) !important;
  color: var(--terrain-ink) !important;
  background: #fff !important;
}
.form-control:focus, .form-input:focus, .form-select:focus, .form-textarea:focus, .finput:focus, .fselect:focus {
  border-color: var(--ridge) !important;
  box-shadow: 4px 4px 0 var(--signal) !important;
}

/* Dashboard and admin are operational surfaces: quieter, denser, same system. */
.dashboard-shell, .admin-shell { color: var(--terrain-ink); background: #e8eef2 !important; }
.dashboard-shell > div:first-of-type { background: var(--ridge) !important; }
.dashboard-shell > div:first-of-type > div { max-width: 1200px !important; }
.dashboard-shell div[style*="border-radius:50%"] { border-radius: 0 !important; background: var(--lake) !important; color: var(--ridge) !important; border: 0 !important; }
.dashboard-shell div[style*="background:var(--white);border-radius:14px"] { border-radius: 0 !important; border-top: 4px solid var(--signal) !important; }
.xp-badge { border-radius: 0; border-color: var(--signal); color: var(--ridge); background: var(--signal); }
.xp-bar-container, .xp-bar-fill, .prog-bar, .prog-fill { border-radius: 0; }
.xp-bar-fill { background: var(--signal); }
.achievement-badge { border-radius: 0; }
.achievement-badge.earned { border-color: var(--signal); background: #fff8d9; }
.achievement-badge .badge-icon { font-size: .58rem; font-weight: 750; }
.stat-grid { gap: 0; border: 2px solid var(--ridge); }
.stat-card { border: 0; border-left: 1px solid rgba(16,42,67,.2); border-radius: 0; background: #fff; }
.stat-card:first-child { border-left: 0; }
.stat-card::before { height: 5px; background: var(--signal); }
.stat-card:hover { transform: none; box-shadow: none; }
.stat-icon { color: var(--ridge); font-size: .65rem; font-weight: 750; opacity: .22; }
.stat-n { color: var(--ridge); font-family: 'Anek Latin',sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-layout { grid-template-columns: 220px 1fr; gap: 0; border: 2px solid var(--ridge); background: #fff; }
.dash-sidebar { top: 72px; border: 0; border-right: 2px solid var(--ridge); border-radius: 0; background: var(--lake); }
.dash-sidebar-header { border-radius: 0; background: transparent; }
.dash-nav-item { border-radius: 0; }
.dash-nav-item:hover, .dash-nav-item.active { color: #fff; background: var(--ridge); }
.dash-nav-item .nav-icon { border-radius: 0; color: var(--ridge); background: var(--signal); font-size: .57rem; font-weight: 750; }
.dash-nav-item.active .nav-icon { filter: none; color: var(--ridge); background: var(--signal); }
.dash-layout .card, .admin-shell .card, .enr-item { border-radius: 0; box-shadow: none; }
.dash-layout > div { padding: 1.5rem; }
.admin-shell .section-sm { padding-top: 3rem; }
.admin-shell h1 { color: var(--ridge); font-size: 2.8rem !important; font-weight: 700 !important; font-stretch: 86%; }
.admin-shell > .section-sm > .container > div:nth-of-type(2) { gap: 0 !important; border: 2px solid var(--ridge); }
.admin-shell .stat-card { border-left: 1px solid rgba(16,42,67,.2); }
.admin-shell .stat-card > div:first-child { color: var(--ridge); font-size: .6rem !important; font-weight: 750; }
.data-table th { color: var(--ridge); border-bottom: 2px solid var(--ridge); }
.data-table td { border-bottom-color: rgba(16,42,67,.15); }
.data-table tbody tr:hover td { background: var(--lake); }

/* Digital Wellbeing course and player */
.page-course-dwb .dcn-nav { background: rgba(246,248,245,.96) !important; }
.page-course-dwb .course-hero { padding-top: 8.5rem; color: #fff; background: var(--ridge); }
.page-course-dwb .course-hero::before { background: none; }
.page-course-dwb .hero-left { background: var(--ridge); }
.page-course-dwb .course-eyebrow { color: var(--signal); letter-spacing: 0; text-transform: none; }
.page-course-dwb .course-eyebrow::before { background: var(--signal); }
.page-course-dwb .hero-h1 { color: #fff; font-family: 'Anek Latin',sans-serif; font-size: clamp(4rem,7vw,7.5rem); font-weight: 720; font-stretch: 80%; line-height: .8; letter-spacing: -.06em; }
.page-course-dwb .hero-h1 em { color: inherit; font-style: normal; }
.page-course-dwb .hero-desc { color: rgba(255,255,255,.67); }
.page-course-dwb .hero-chips { gap: 0; border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.page-course-dwb .chip { border: 0; border-right: 1px solid rgba(255,255,255,.2); border-radius: 0; color: rgba(255,255,255,.72); background: transparent; }
.page-course-dwb .enrol-card { border: 0; border-top: 5px solid var(--signal); border-radius: 0; box-shadow: none; background: var(--cloud); }
.page-course-dwb .hero-right { background: var(--lake); }
.course-route-mark { width: 100%; min-height: 180px; padding: 2rem; display: flex; align-items: end; justify-content: space-between; border-bottom: 3px solid var(--ridge); color: var(--ridge); }
.course-route-mark span { color: var(--nepal-red); font-size: 1rem; font-weight: 700; }
.course-route-mark b { font-size: 5rem; font-weight: 760; font-stretch: 75%; line-height: .75; }
.page-course-dwb .course-preview-card { border-radius: 0; border-color: var(--ridge); box-shadow: none; }
.page-course-dwb .pmod { border-radius: 0; }
.page-course-dwb .pmod-num { border-radius: 50%; color: var(--ridge); background: var(--signal); }
.page-course-dwb .wyl-section { background: var(--cloud); }
.page-course-dwb .wyl-section h2 { color: var(--ridge) !important; font-size: clamp(3rem,5vw,5rem) !important; font-weight: 700 !important; font-stretch: 84%; line-height: .9; }
.page-course-dwb .wyl-grid { gap: 0; border-top: 2px solid var(--ridge); border-left: 2px solid var(--ridge); }
.page-course-dwb .wyl-card { min-height: 230px; border: 0; border-right: 2px solid var(--ridge); border-bottom: 2px solid var(--ridge); border-radius: 0; background: transparent; }
.page-course-dwb .wyl-card:hover { transform: none; box-shadow: none; }
.page-course-dwb .wyl-ico { color: var(--nepal-red); font-size: .72rem; font-weight: 750; }
.player-layout { background: #e8eef2; }
.player-sidebar { border-color: var(--ridge); background: var(--ridge); }
.sidebar-header h3, .op-label { color: #fff; }
.module-list button, .module-item { border-radius: 0 !important; }
.player-main { background: var(--cloud); }
.lesson-card, .lesson-content, .quiz-card, .reflection-card { border-radius: 0 !important; }
.callout { border-radius: 0 !important; }
.cert-page { background: #e8eef2; }
.certificate { border-radius: 0; box-shadow: none; }

/* Certificate verification */
.page-certificate > div { background: #e8eef2 !important; }
.page-certificate h1 { color: var(--ridge); font-family: 'Anek Latin',sans-serif !important; font-weight: 700 !important; }
.page-certificate div[style*="border-radius:var(--radius-md)"] { border: 2px solid var(--ridge); border-radius: 0 !important; box-shadow: none !important; }
.page-certificate div[style*="height:8px"] { background: linear-gradient(90deg,var(--ridge) 0 72%,var(--signal) 72%) !important; }
.page-certificate div[style*="border-radius:50%"] { border-radius: 0 !important; background: var(--signal) !important; color: var(--ridge) !important; }

@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; border-right: 0; border-bottom: 2px solid var(--ridge); }
  .dashboard-shell > div:first-of-type { padding-inline: 1.25rem !important; }
  .dashboard-shell > div:nth-of-type(2) { padding-inline: 1.25rem !important; }
  .auth-story { min-height: 480px; }
}

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(odd) { border-left: 0; }
  .page-course-dwb .course-hero { padding-top: 7.5rem; }
  .page-course-dwb .hero-h1 { font-size: 4.3rem; }
  .page-course-dwb .hero-chips { display: grid; grid-template-columns: 1fr 1fr; }
  .page-course-dwb .chip { border-bottom: 1px solid rgba(255,255,255,.2); }
  .page-course-dwb .wyl-grid { grid-template-columns: 1fr; }
  .page-about section .container > div[style*="grid-template-columns:1fr 1fr"],
  .page-about section .container > div[style*="grid-template-columns:repeat(3"],
  .page-about section .container > div[style*="grid-template-columns:repeat(4"],
  .page-programs #programsGrid { grid-template-columns: 1fr !important; }
}
