/*
 * LA24AI · Learn & Discover / cinematic dark-teal exact-design adaptation V2.
 * Scoped to .ld-portal — sitewide navbar, tools/prompts, and editorial room untouched.
 * Original Academy remains visible beneath this portal.
 */
.ld-portal{
 --ld-bg:#08111e; --ld-panel:#0d1b2b; --ld-panel-light:#13273b;
 --ld-panel-edge:rgba(95,185,221,.25); --ld-text:#f5f8ff;--ld-muted:#bfcee3;
 --ld-turquoise:#53e0d4;--ld-blue:#74bbff;--ld-purple:#ba9aff;
 --ld-focus:#83efe6; --ld-chip:#142d44;
 position:relative;isolation:isolate;box-sizing:border-box;color:var(--ld-text);
 max-width:1260px;margin:0 auto;padding:0 12px 18px;font-family:inherit;
 background:none;text-align:start;line-height:1.6;
}
.ld-portal :where(*,*::before,*::after){box-sizing:border-box}
.ld-portal :where(h1,h2,h3,p){margin:0}
.ld-portal :where(h1,h2,h3){color:var(--ld-text)}
.ld-portal :where(a){color:inherit;text-decoration:none}
.ld-portal :where(a,button):focus-visible{outline:3px solid var(--ld-focus);outline-offset:4px}
.ld-portal [hidden]{display:none!important}
.ld-portal .ld-icon{flex-shrink:0;width:21px;height:21px;vertical-align:middle}
.ld-hero{min-height:295px;display:grid;grid-template-columns:1fr 1.02fr;align-items:stretch;position:relative;overflow:hidden;
 background:linear-gradient(90deg,rgba(8,19,32,0),rgba(5,21,32,.7) 65%,rgba(6,27,35,.9));}
.ld-hero-image{grid-column:2;grid-row:1;background-image:linear-gradient(to right,rgba(8,17,30,0) 68%,rgba(8,17,30,.8)),url('ld-scene-v2.webp');background-size:cover;background-position:center 43%;min-height:296px;opacity:.94;mask-image:linear-gradient(90deg,#000 76%,transparent 99%)}
.ld-portal[dir=ltr] .ld-hero{direction:ltr}
.ld-portal[dir=ltr] .ld-hero-image{grid-column:1;grid-row:1;transform:scaleX(-1);mask-image:linear-gradient(90deg,transparent 0,#000 23%)}
.ld-hero-copy{grid-column:1;grid-row:1;position:relative;z-index:1;text-align:start;padding:24px 19px 23px 0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px}
.ld-portal[dir=ltr] .ld-hero-copy{grid-column:2;grid-row:1;padding:24px 0 23px 21px}
.ld-eyebrow{font-size:.76rem!important;letter-spacing:.015em;color:var(--ld-turquoise)!important;font-weight:750}
.ld-hero h1{font-size:clamp(2.55rem,4.2vw,4.25rem)!important;font-weight:900!important;line-height:1.2!important;letter-spacing:-.03em;margin:1px 0 4px!important;text-wrap:balance}
.ld-title-teal{color:var(--ld-turquoise)!important}
.ld-born{font-size:clamp(.83rem,1.4vw,1.05rem)!important;color:#e5edff!important;font-weight:700;align-self:flex-start}
.ld-born span{color:var(--ld-turquoise)}
.ld-born-translation{font-size:clamp(.79rem,1.3vw,.95rem)!important;font-weight:700;color:var(--ld-text)!important;margin-top:0!important}
.ld-intro{font-size:.92rem!important;line-height:1.85!important;color:var(--ld-muted)!important;max-width:690px;margin-top:6px!important}
.ld-hero-links{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;margin-top:16px}
.ld-hero-links a{display:inline-flex;gap:8px;align-items:center;justify-content:center;padding:9px 13px;min-height:42px;border-radius:11px;
 border:1px solid rgba(72,215,208,.44);background:rgba(4,24,36,.65);color:#f1faff!important;font-weight:800;font-size:.8rem;white-space:nowrap;transition:background .2s,border-color .2s,transform .2s}
.ld-hero-links a .ld-icon{color:var(--ld-turquoise)}
.ld-hero-links a:hover{background:rgba(43,174,171,.18);border-color:var(--ld-turquoise);transform:translateY(-1px)}
.ld-discovery{border:1px solid var(--ld-panel-edge);border-radius:25px;padding:24px 22px 20px;background:radial-gradient(ellipse at 25% -15%,rgba(38,205,216,.095),transparent 55%),linear-gradient(145deg,#0a1b2b,#0c1527 95%);box-shadow:0 12px 42px rgba(0,0,0,.13);margin-top:12px}
.ld-discovery-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 1px 16px}
.ld-discovery-head>div{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center}
.ld-heading-spark{color:var(--ld-turquoise);grid-row:1;grid-column:1;display:flex}
.ld-discovery-head h2{font-weight:900!important;font-size:clamp(1.3rem,2.1vw,1.85rem)!important;grid-row:1;grid-column:2;color:var(--ld-text)!important}
.ld-discovery-head p{grid-column:2;color:var(--ld-muted)!important;font-size:.83rem!important;margin-top:4px!important}
.ld-show-all{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid rgba(104,218,221,.5);border-radius:10px;min-height:36px;padding:6px 11px;white-space:nowrap;font-size:.78rem;font-weight:700;color:#f2fdff!important}
.ld-show-all:hover{border-color:var(--ld-turquoise);background:rgba(47,186,187,.13)}
.ld-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ld-feature{border:1px solid rgba(79,187,201,.33);border-radius:17px;background:linear-gradient(115deg,#0c2634,#0d1729);overflow:hidden;position:relative;min-height:208px;display:flex;isolation:isolate}
.ld-feature::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;opacity:.85}
.ld-course-card{border-color:rgba(65,215,206,.43)}
.ld-course-card::before{background:radial-gradient(ellipse at 7% 95%,rgba(42,193,178,.23),transparent 55%)}
.ld-research-card{border-color:rgba(177,137,247,.42);background:linear-gradient(115deg,#1a1a3b,#101a31)}
.ld-research-card::before{background:radial-gradient(ellipse at 7% 100%,rgba(122,67,206,.2),transparent 58%)}
.ld-feature-image{width:41%;min-height:200px;background-size:cover;background-position:center center;opacity:.93;mask-image:linear-gradient(90deg,#000 62%,transparent 100%);z-index:0;position:absolute;inset-block:0;inset-inline-end:0}
.ld-course-card .ld-feature-image{background-image:url('ld-course-v2.webp')}
.ld-research-card .ld-feature-image{background-image:url('ld-research-v2.webp')}
.ld-feature-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:17px 20px;gap:8px}
.ld-feature-kicker{display:inline-flex;align-items:center;gap:7px;align-self:flex-start;padding:5px 10px;border-radius:999px;background:rgba(13,121,116,.42);border:1px solid rgba(83,220,206,.52);font-size:.73rem;font-weight:800;color:#e5fff9}
.ld-research-card .ld-feature-kicker{border-color:rgba(181,148,255,.5);background:rgba(88,55,150,.35);color:#f2e9ff}
.ld-feature-kicker svg{width:16px!important;height:16px!important}
.ld-feature h3{font-size:clamp(.97rem,1.35vw,1.25rem)!important;line-height:1.5!important;font-weight:850!important;max-width:70%;min-height:2.7em;letter-spacing:0}
.ld-feature-summary{font-size:.78rem!important;max-width:75%;color:var(--ld-muted)!important;line-height:1.7!important}
.ld-attributes{display:flex;flex-wrap:wrap;gap:6px}
.ld-micro-badge{border:1px solid rgba(149,186,217,.25);background:rgba(28,49,72,.6);border-radius:99px;padding:2px 8px;font-size:.65rem;color:#dfecf8}
.ld-feature-foot{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:auto;width:100%;padding-top:6px}
.ld-action{font-size:.76rem;font-weight:800;color:#fff!important;border:1px solid rgba(93,222,210,.6);border-radius:9px;padding:6px 10px;display:inline-flex;align-items:center;gap:8px;background:rgba(8,24,37,.75)}
.ld-action:hover{background:rgba(39,166,163,.2)}
.ld-action svg{width:15px;height:15px}
.ld-reviewed{font-size:.64rem;color:var(--ld-muted);opacity:.95}
.ld-pending{font-size:.72rem;color:var(--ld-muted);display:inline-flex;align-items:center;gap:6px}
.ld-pending svg{width:16px;height:16px;color:var(--ld-turquoise)}
.ld-latest{margin-top:17px;border:1px solid rgba(85,167,189,.26);border-radius:18px;padding:11px 20px;background:linear-gradient(115deg,#0f2637,#10182a)}
.ld-latest-head{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.ld-latest-head h2{font-size:1rem!important;display:flex;align-items:center;gap:9px;font-weight:800!important}
.ld-latest-head h2 svg{color:var(--ld-turquoise)}
.ld-filters{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.ld-filter{appearance:none;cursor:pointer;font-family:inherit;color:#d3e7f5!important;background:rgba(13,32,51,.8);border:1px solid rgba(109,171,205,.32);border-radius:999px;font-size:.77rem;font-weight:730;padding:8px 17px;min-height:37px;display:inline-flex;justify-content:center;align-items:center;line-height:1.3}
.ld-filter:hover{border-color:var(--ld-turquoise)}
.ld-filter.is-active{color:#051b22!important;background:var(--ld-turquoise);border-color:var(--ld-turquoise);box-shadow:0 5px 17px rgba(45,223,201,.13)}
.ld-feed-empty{margin-top:10px!important;font-size:.73rem!important;color:var(--ld-muted)!important}
.ld-feed-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
.ld-feed-item{min-width:0;display:flex;align-items:center;gap:10px;padding:10px 12px;background:rgba(13,35,55,.7);border:1px solid rgba(105,185,208,.22);border-radius:12px}
.ld-feed-item:hover{border-color:var(--ld-turquoise);background:rgba(27,73,83,.35)}
.ld-feed-item-type{color:var(--ld-turquoise)}
.ld-feed-item-copy{flex:1;display:flex;flex-direction:column;gap:3px}
.ld-feed-item strong{font-size:.76rem;color:var(--ld-text);line-height:1.5}.ld-feed-item small{font-size:.68rem;color:var(--ld-muted)}
.ld-feed-item>.ld-icon{width:15px;height:15px;color:var(--ld-blue)}
.ld-journeys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0 0}
.ld-journey-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:158px;padding:20px 21px;border:1px solid rgba(95,181,205,.37);border-radius:17px;overflow:hidden;isolation:isolate;background:linear-gradient(135deg,#102840,#0e1931);color:#fff!important}
.ld-journey-card:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.85;background:radial-gradient(ellipse at 90% 130%,rgba(0,174,206,.4),transparent 60%)}
.ld-journey-opportunities{background:linear-gradient(130deg,#10283c,#1c1641);border-color:rgba(161,121,251,.5)}
.ld-journey-opportunities:before{background:radial-gradient(ellipse at 90% 115%,rgba(132,70,203,.48),transparent 60%)}
.ld-journey-paths{background:linear-gradient(130deg,#0d2e3b,#0a1b28);border-color:rgba(71,220,181,.48)}
.ld-journey-paths:before{background:radial-gradient(ellipse at 90% 115%,rgba(10,191,143,.36),transparent 60%)}
.ld-journey-icon{position:absolute;inset-inline-start:20px;top:18px;color:#65bbff}
.ld-journey-opportunities .ld-journey-icon{color:#9990fa}.ld-journey-paths .ld-journey-icon{color:var(--ld-turquoise)}
.ld-journey-icon .ld-icon{width:34px;height:34px}
.ld-journey-copy{max-width:86%;display:flex;flex-direction:column;gap:8px}
.ld-journey-copy strong{font-size:1.12rem;font-weight:850;color:#fff}.ld-journey-copy small{font-size:.77rem;line-height:1.7;color:#cbd8e9}
.ld-journey-arrow{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;height:31px;width:31px;border:1px solid rgba(168,211,240,.45);background:rgba(116,173,210,.09);transition:transform .18s ease}
.ld-journey-card:hover .ld-journey-arrow{transform:translateX(-4px)}
.ld-academy-wrap{scroll-margin-top:100px}
/* Existing site uses html[data-theme] and may toggle it without a reload. */
html[data-theme="light"] .ld-portal{
 --ld-text:#10263c;--ld-muted:#47617b;--ld-panel:#f6fbff;--ld-panel-edge:rgba(31,115,142,.2);
 --ld-turquoise:#006e72;--ld-blue:#226dba;--ld-purple:#6d4bc0;--ld-focus:#08777d;
}
html[data-theme="light"] .ld-hero{background:linear-gradient(90deg,#f7faff,#edf7fa 72%,#eaf9f7)}
html[data-theme="light"] .ld-hero-image{opacity:.73}
html[data-theme="light"] .ld-eyebrow,html[data-theme="light"] .ld-born,html[data-theme="light"] .ld-born-translation,html[data-theme="light"] .ld-intro{color:var(--ld-text)!important}
html[data-theme="light"] .ld-hero-links a{color:#09444c!important;background:#eaf8f6;border-color:rgba(7,108,118,.28)}
html[data-theme="light"] .ld-discovery{background:linear-gradient(145deg,#eefbff,#f6f8ff);box-shadow:0 10px 29px rgba(15,61,102,.06)}
html[data-theme="light"] .ld-feature{background:linear-gradient(115deg,#e8f9f8,#edf7fc)}
html[data-theme="light"] .ld-research-card{background:linear-gradient(115deg,#f3edff,#eff4fd)}
html[data-theme="light"] .ld-feature-kicker{color:#06494a;background:rgba(50,217,187,.16)}
html[data-theme="light"] .ld-research-card .ld-feature-kicker{color:#523396;background:rgba(142,112,246,.13)}
html[data-theme="light"] .ld-feature-image{opacity:.36}
html[data-theme="light"] .ld-micro-badge{color:#234363;background:rgba(246,253,255,.8);border-color:rgba(38,96,123,.25)}
html[data-theme="light"] .ld-action{color:#074e58!important;background:rgba(241,251,255,.87)}
html[data-theme="light"] .ld-latest{background:linear-gradient(110deg,#e8f7fd,#f3f3ff)}
html[data-theme="light"] .ld-filter{color:#23425a!important;background:#fff;border-color:rgba(25,106,150,.22)}
html[data-theme="light"] .ld-filter.is-active{color:#fff!important;background:#087c7e;border-color:#087c7e}
html[data-theme="light"] .ld-feed-item{background:#fff}.ld-journeys .ld-journey-card{color:#fff}
@media(max-width:1050px){
 .ld-hero{grid-template-columns:1fr .8fr}.ld-hero h1{font-size:clamp(2.45rem,4.6vw,3.6rem)!important}
 .ld-hero-links{gap:6px}.ld-hero-links a{padding:8px 9px;font-size:.72rem}
 .ld-hero-copy{padding-inline-start:10px}.ld-discovery{padding:20px 15px}
}
@media(max-width:760px){
 .ld-hero{min-height:350px;grid-template-columns:1fr;align-items:start}
 .ld-hero-image,.ld-portal[dir=ltr] .ld-hero-image{position:absolute;inset:0;transform:none;opacity:.3;min-height:350px;width:100%;background-position:center;mask-image:linear-gradient(90deg,#000,transparent 90%)}
 .ld-hero-copy,.ld-portal[dir=ltr] .ld-hero-copy{grid-column:1;grid-row:1;padding:28px 15px;max-width:100%;min-height:350px}
 .ld-hero h1{font-size:clamp(2.4rem,8vw,3.3rem)!important}
 .ld-hero-links{max-width:550px}
 .ld-feature-grid{grid-template-columns:1fr}
 .ld-journeys{grid-template-columns:1fr;gap:11px}.ld-journey-card{min-height:130px}
 .ld-feature{min-height:205px}.ld-feature h3{max-width:75%}
}
@media(max-width:520px){
 .ld-portal{padding:0 8px 15px}.ld-hero{border-radius:0 0 14px 14px;min-height:355px}
 .ld-hero-copy,.ld-portal[dir=ltr] .ld-hero-copy{padding:28px 12px;min-height:355px}
 .ld-eyebrow{font-size:.68rem!important}.ld-hero h1{font-size:2.45rem!important}
 .ld-hero-links a{min-height:42px;flex:1 1 calc(50% - 8px);font-size:.73rem;white-space:normal}
 .ld-discovery{border-radius:18px;padding:17px 10px;margin-top:9px}
 .ld-discovery-head{align-items:flex-start}.ld-show-all{font-size:.7rem;padding:5px 8px}
 .ld-discovery-head p{font-size:.73rem!important}.ld-feature{border-radius:13px;min-height:220px}
 .ld-feature-copy{padding:14px 12px}.ld-feature h3{font-size:1.04rem!important;max-width:79%}
 .ld-feature-summary{font-size:.75rem!important;max-width:75%}.ld-feature-image{width:40%;opacity:.38}
 .ld-latest{padding:12px 10px}.ld-filters{gap:5px}.ld-filter{font-size:.69rem;padding:7px 9px}
 .ld-feed-items{grid-template-columns:1fr}.ld-journey-card{padding:16px;min-height:125px}
}
@media(prefers-reduced-motion:reduce){.ld-portal *, .ld-portal *::before, .ld-portal *::after{transition:none!important;animation:none!important}}
/* Finishing adjustments: readable light-theme controls and a genuine mobile artwork section. */
html[data-theme="light"] .ld-show-all{color:#075b67!important;border-color:rgba(7,108,118,.3);background:rgba(255,255,255,.7)}
html[data-theme="light"] .ld-pending{color:#2f556e}
@media(max-width:760px){
 .ld-hero{display:flex;flex-direction:column;min-height:0;background:linear-gradient(140deg,#081a2a,#08111e);}
 .ld-hero-image,.ld-portal[dir=ltr] .ld-hero-image{
  position:relative;flex:0 0 168px;inset:auto;display:block;width:100%;height:168px;min-height:168px;
  opacity:.94;background-size:cover;background-position:center 44%;transform:none;
  mask-image:linear-gradient(to bottom,#000 42%,transparent 100%);
 }
 .ld-hero-copy,.ld-portal[dir=ltr] .ld-hero-copy{
  display:flex;position:relative;z-index:1;margin-top:-27px;grid-column:auto;grid-row:auto;
  min-height:0;max-width:none;padding:0 16px 24px;}
 html[data-theme="light"] .ld-hero{background:linear-gradient(145deg,#edfaff,#f5fbfd)}
}
@media(max-width:520px){
 .ld-hero{min-height:0}.ld-hero-copy,.ld-portal[dir=ltr] .ld-hero-copy{min-height:0;padding:0 12px 25px}
 .ld-hero-image,.ld-portal[dir=ltr] .ld-hero-image{height:158px;min-height:158px;flex-basis:158px}
}
/* STAGE 8: scoped unified portal | gap & collision fixes */
.ld-portal .ld-feature-grid{align-items:stretch;gap:20px}
.ld-portal .ld-rotator{min-width:0;display:flex;flex-direction:column;border:1px solid rgba(85,176,200,.27);border-radius:17px;overflow:hidden;background:#0c1b2c}
.ld-portal .ld-rotator[hidden],.ld-portal .ld-feed-item[hidden],.ld-portal .ld-slide[hidden]{display:none!important}
.ld-portal .ld-rotator-screen{flex:1;min-height:228px;position:relative}
.ld-portal .ld-rotator .ld-feature{border:none;border-radius:0;min-height:228px;height:100%}
.ld-portal .ld-rotator-controls{display:flex;align-items:center;justify-content:center;gap:13px;min-height:34px;padding:4px;background:rgba(9,28,46,.8);border-top:1px solid rgba(111,204,212,.2)}
.ld-portal .ld-rotate-btn{border:1px solid rgba(75,205,198,.4);color:#d9fff9;background:rgba(17,50,68,.8);border-radius:8px;width:30px;height:27px;font-size:1.1rem;cursor:pointer;line-height:1}
.ld-portal .ld-rotate-btn:hover,.ld-portal .ld-flip:hover{background:rgba(55,182,168,.25)}
.ld-portal .ld-rotate-count{font-size:.73rem;color:#c5d6e5;font-variant-numeric:tabular-nums}
.ld-portal .ld-flip{color:#e4f7ff;background:rgba(16,47,65,.9);border:1px solid rgba(114,216,209,.44);border-radius:8px;font:inherit;font-weight:700;padding:6px 12px;cursor:pointer;font-size:.78rem}
.ld-portal .ld-feature h3{max-width:76%;min-height:0;margin:2px 0!important}
.ld-portal .ld-feature-summary{max-width:79%;font-size:.82rem!important}
.ld-portal .ld-feature-copy{gap:7px}
.ld-portal .ld-evidence-detail{font-size:.81rem!important;max-width:80%;line-height:1.7!important;color:#e8f4ff!important}
.ld-portal .ld-evidence-date{font-size:.7rem!important;color:#b6e4e3!important}
.ld-portal .ld-feature-image{pointer-events:none}
.ld-portal .ld-journeys{margin-top:24px;gap:18px;align-items:stretch;grid-template-columns:repeat(3,minmax(0,1fr))}
.ld-portal .ld-journey-card{min-width:0;min-height:175px;padding:22px 23px 20px;padding-inline-start:72px;justify-content:space-between}
.ld-portal .ld-journey-icon{inset-inline-start:21px;inset-inline-end:auto;top:20px}
.ld-portal .ld-journey-copy{max-width:100%;min-width:0;gap:7px}
.ld-portal .ld-journey-copy strong{line-height:1.35;font-size:1.1rem;overflow-wrap:anywhere}
.ld-portal .ld-journey-copy small{line-height:1.7;font-size:.79rem}
.ld-portal .ld-journey-arrow{flex-shrink:0;position:relative;inset:auto;align-self:flex-end;margin-top:12px}
.ld-portal .ld-journey-card .ld-icon{flex-shrink:0}
.ld-portal .ld-paths-section{scroll-margin-top:94px;position:relative;margin-top:27px;border:1px solid rgba(78,161,177,.25);border-radius:20px;padding:24px;background:linear-gradient(120deg,rgba(9,36,50,.95),rgba(10,22,42,.95))}
.ld-portal .ld-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:19px}
.ld-portal .ld-kicker{font-size:.7rem;font-weight:800;color:var(--ld-turquoise);letter-spacing:.05em}
.ld-portal .ld-section-heading h2{font-size:clamp(1.4rem,2.4vw,2rem)!important;line-height:1.35!important;margin:4px 0!important}
.ld-portal .ld-section-heading p{font-size:.85rem!important;color:var(--ld-muted)!important;line-height:1.65}
.ld-portal .ld-paths-count{color:var(--ld-turquoise);font-size:.75rem;white-space:nowrap;border:1px solid rgba(73,206,190,.3);padding:6px 12px;border-radius:99px}
.ld-portal .ld-paths-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.ld-portal .ld-new-path-card{display:flex;flex-direction:column;align-items:flex-start;gap:9px;position:relative;padding:20px 18px;min-height:182px;border:1px solid rgba(108,186,200,.33);border-radius:15px;background:linear-gradient(142deg,#11334a,#111c33);color:#f4faff!important;text-decoration:none!important;transition:transform .2s,border-color .2s}
.ld-portal .ld-new-path-card:nth-child(3n+2){background:linear-gradient(142deg,#1c2646,#1b1c39)}
.ld-portal .ld-new-path-card:nth-child(3n){background:linear-gradient(142deg,#0b3439,#102136)}
.ld-portal .ld-new-path-card:hover{transform:translateY(-3px);border-color:var(--ld-turquoise)}
.ld-portal .ld-new-path-card strong{font-size:1.07rem;line-height:1.4}
.ld-portal .ld-new-path-card>span:not(.ld-path-index){font-size:.79rem;line-height:1.65;color:#c7dce5}
.ld-portal .ld-new-path-card small{font-size:.73rem;color:#64e9df;margin-top:auto}
.ld-portal .ld-new-path-card>.ld-icon{position:absolute;inset-inline-end:17px;top:20px;color:#64dbdf}
.ld-portal .ld-path-index{font-size:.8rem;font-weight:800;color:#62ddd5;letter-spacing:.09em}
.ld-portal .ld-editorial-note{font-size:.72rem!important;color:var(--ld-muted)!important;margin:15px 4px 0!important}
.ld-route-page{max-width:1160px;margin-inline:auto;padding-block:24px!important}
.ld-route-page .ld-route-hero{position:relative;overflow:hidden;background:linear-gradient(120deg,#0c2939,#121e36);border:1px solid rgba(70,177,184,.4);border-radius:20px;padding:30px 34px}
.ld-route-crumbs{font-size:.79rem;color:#9cefe5;margin-bottom:15px}.ld-route-crumbs a{color:#92e6df!important}
.ld-route-page .ld-route-hero h1{font-size:clamp(1.7rem,3vw,2.5rem)!important;line-height:1.35!important;margin:9px 0!important}
.ld-route-hero>p{color:#d2e3ee;line-height:1.8;font-size:.91rem}
.ld-route-options{display:flex;gap:14px;flex-wrap:wrap;margin-top:16px}.ld-route-options label{display:flex;flex-direction:column;gap:6px;color:#d3f2f1;font-size:.8rem}
.ld-route-options select{color:#071823;background:#d4fffa;padding:9px 12px;border:1px solid #7bddd4;border-radius:9px;min-width:165px;max-width:100%}
.ld-route-device-tip{font-size:.78rem!important;margin-top:13px!important;color:#b7d5ec!important}
.ld-progress{margin-top:18px;padding:15px 20px;border:1px solid rgba(83,171,179,.28);border-radius:14px;background:#102134;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ld-progress p{margin:0!important;color:#d3e3f1!important;font-size:.8rem!important}.ld-progress progress{flex:1;min-width:130px;accent-color:#44d7c8}.ld-progress button{cursor:pointer;border:1px solid #356e7a;border-radius:7px;color:#def9f5;background:#152c3e;padding:7px 11px}
.ld-step-list{list-style:none;padding:0;margin:20px 0!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ld-step{display:flex;align-items:flex-start;gap:16px;border-radius:16px;border:1px solid rgba(84,180,187,.3);background:#111e34;padding:19px;min-width:0}
.ld-step-num{flex:0 0 36px;height:36px;border:1px solid #49c8c3;border-radius:50%;display:grid;place-items:center;color:#8df2e6;font-weight:800}
.ld-step-body{flex:1;min-width:0}.ld-step-body h2{font-size:1.08rem!important;color:#f8fcff!important;margin-bottom:8px!important}
.ld-step-body p,.ld-step-do,.ld-step-check{font-size:.84rem!important;line-height:1.8!important;color:#c6dbed!important;margin:7px 0!important}
.ld-step-do,.ld-step-check{padding:10px;border-radius:9px;background:#1b3045}.ld-step-do strong,.ld-step-check strong{color:#8cefe1}
.ld-step-toggle{display:flex;align-items:center;gap:8px;color:#e6f9f7;font-weight:800;margin-top:13px;font-size:.8rem}.ld-step-toggle input{accent-color:#36caba;width:18px;height:18px}
.ld-route-finish{border:1px solid #287b7a;background:#0e323c;padding:20px;border-radius:16px;color:#fff}.ld-route-finish p{font-size:.84rem;line-height:1.7}.ld-route-finish a{display:inline-block;color:#002c32!important;background:#7df0e5;padding:8px 14px;border-radius:9px;font-weight:800;margin-top:10px}
html[data-theme="light"] .ld-paths-section{background:#edf9fb}html[data-theme="light"] .ld-section-heading h2{color:#10263c!important}
html[data-theme="light"] .ld-portal .ld-journey-card,html[data-theme="light"] .ld-portal .ld-new-path-card{color:#fff!important}
html[data-theme="light"] .ld-portal .ld-rotator{background:#e9f6fa}html[data-theme="light"] .ld-portal .ld-rotator-controls{background:#e2f3f5}html[data-theme="light"] .ld-portal .ld-rotate-count{color:#1b485c}
html[data-theme="light"] .ld-route-page .ld-route-hero{background:#e8f8fa}html[data-theme="light"] .ld-route-page .ld-route-hero h1,html[data-theme="light"] .ld-route-hero>p{color:#143b4d!important}
html[data-theme="light"] .ld-route-page .ld-step{background:#f4fbff}html[data-theme="light"] .ld-route-page .ld-step-body h2,html[data-theme="light"] .ld-route-page .ld-step-body p{color:#133f50!important}html[data-theme="light"] .ld-step-do,html[data-theme="light"] .ld-step-check{background:#e0f2f5;color:#264a5d!important}
html[data-theme="light"] .ld-step-body strong{color:#086e74!important}html[data-theme="light"] .ld-step-toggle{color:#073f4d}
html[data-theme="light"] .ld-progress{background:#eaf9fc}html[data-theme="light"] .ld-progress p{color:#29465b!important}
@media(max-width:900px){.ld-portal .ld-paths-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ld-portal .ld-journey-card{padding:17px;padding-inline-start:61px}.ld-step-list{grid-template-columns:1fr}}
@media(max-width:760px){.ld-portal .ld-feature-grid{grid-template-columns:1fr}.ld-portal .ld-journeys{grid-template-columns:1fr}.ld-portal .ld-paths-section{padding:19px 13px}.ld-portal .ld-paths-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.ld-portal .ld-paths-grid{grid-template-columns:1fr}.ld-portal .ld-section-heading{align-items:flex-start}.ld-portal .ld-journey-card{min-height:135px}.ld-portal .ld-feature-summary,.ld-portal .ld-feature h3{max-width:80%}.ld-route-page .ld-route-hero{padding:23px 17px}.ld-route-options{flex-direction:column}.ld-route-page .ld-step{padding:15px}.ld-portal .ld-rotator-screen{min-height:255px}}

/* Stage 9: only the prominent headline gains a descriptive second line; navigation labels remain unchanged. */
.ld-portal .ld-title-topic{display:block;font-size:clamp(1.18rem,2.1vw,2.05rem);line-height:1.3;letter-spacing:0;white-space:normal;color:var(--ld-turquoise);font-weight:800;margin:2px 0 3px}
@media(max-width:520px){.ld-portal .ld-title-topic{font-size:1.35rem;line-height:1.4}}

/* Stage 11 — course-first discovery, preservation-first Academy restyle.
 * Scoped to the new portal/Academy wrappers; legacy course content untouched.
 */
.ld-portal .ld-academy-teaser{
  display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:20px;
  margin-top:24px;padding:19px 23px;border-radius:20px;
  background:radial-gradient(ellipse at 10% -20%,rgba(73,224,206,.19),transparent 60%),linear-gradient(110deg,#0a2632,#11243b 65%,#17233c);
  border:1px solid rgba(73,224,206,.34);box-shadow:0 12px 30px rgba(0,5,20,.12);
  position:relative;overflow:hidden;scroll-margin-top:92px;
}
.ld-portal .ld-academy-teaser::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:4px;background:linear-gradient(var(--ld-turquoise),var(--ld-blue));opacity:.85}
.ld-portal .ld-academy-teaser-mark{width:56px;height:56px;border-radius:18px;background:linear-gradient(145deg,#103c4a,#172c48);border:1px solid rgba(91,225,216,.34);display:grid;place-items:center;color:#65eee3}
.ld-portal .ld-academy-teaser-mark .ld-icon{width:28px;height:28px}
.ld-portal .ld-academy-teaser-text{min-width:0}
.ld-portal .ld-academy-teaser h2{font-size:clamp(1.13rem,2vw,1.5rem)!important;line-height:1.35!important;margin:3px 0 4px!important;color:#f3fcff!important}
.ld-portal .ld-academy-teaser p{font-size:.82rem!important;line-height:1.65!important;color:#bfdae5!important}
.ld-portal .ld-academy-teaser-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:43px;padding:10px 17px;background:#58ded2;border:1px solid #71e5d9;color:#052b35!important;font-size:.84rem;font-weight:800;white-space:nowrap;border-radius:11px;box-shadow:0 8px 22px rgba(48,217,204,.14)}
.ld-portal .ld-academy-teaser-link:hover{background:#91f3e9;transform:translateY(-1px)}
.ld-portal .ld-academy-teaser-link .ld-icon{width:17px;height:17px}
.ld-portal .ld-hero-links a[href="#ld-courses"]{border-color:rgba(81,240,221,.88);background:rgba(30,150,147,.25);box-shadow:inset 0 0 0 1px rgba(67,225,212,.11)}

/* Deliberately beyond .ld-portal, since the legacy Academy is emitted after it. */
.ld-academy-shell{
  --ld-acad-edge:rgba(90,181,198,.32);--ld-acad-body:#c7dbe8;
  box-sizing:border-box;max-width:1260px;margin:38px auto 0;padding:0 12px 16px;
  color:#f5fbff;font-family:inherit;scroll-margin-top:85px;text-align:start;
}
.ld-academy-shell *, .ld-academy-shell *::before,.ld-academy-shell *::after{box-sizing:border-box}
.ld-academy-head{
  display:flex;gap:24px;align-items:center;justify-content:space-between;
  border:1px solid var(--ld-acad-edge);border-radius:22px 22px 0 0;
  padding:28px 30px;min-height:155px;
  background:radial-gradient(ellipse at 14% 110%,rgba(70,224,213,.18),transparent 45%),linear-gradient(115deg,#0b2c3d,#11233c 72%,#1a2244);
  position:relative;overflow:hidden;
}
.ld-academy-head::after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;border:1px solid rgba(80,206,212,.13);inset-inline-end:-60px;top:-120px;pointer-events:none}
.ld-academy-head-copy{min-width:0;position:relative;z-index:1}
.ld-academy-overline{color:#83dedf;font-weight:800;font-size:.73rem;letter-spacing:.06em}
.ld-academy-display{font-size:clamp(1.65rem,3vw,2.4rem)!important;color:#fff!important;font-weight:900!important;line-height:1.35!important;margin:7px 0 5px!important}
.ld-academy-head-sub{color:#d4e9ee!important;font-size:.89rem!important;line-height:1.8!important;margin:0!important}
.ld-academy-head-number{position:relative;z-index:1;min-width:135px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;border-radius:16px;padding:11px 18px;border:1px solid rgba(70,205,210,.29);background:rgba(15,48,66,.65)}
.ld-academy-head-number strong{color:#67eee3;font-size:2.7rem;line-height:1.18;font-weight:900;font-variant-numeric:tabular-nums}
.ld-academy-head-number span{font-size:.78rem;color:#d9f8f4;font-weight:700}
.ld-academy-proof{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:13px 21px;border-inline:1px solid var(--ld-acad-edge);background:#102536}
.ld-academy-proof>span{display:inline-flex;align-items:center;gap:6px;font-size:.79rem;color:#d1eaf2;padding:5px 12px;border-radius:999px;background:rgba(81,163,182,.105);border:1px solid rgba(98,182,194,.25);line-height:1.4}
.ld-academy-proof svg{width:16px;height:16px;color:#6ce9db}
.ld-academy-wrap{
  max-width:none!important;margin:0!important;padding:26px 25px 30px!important;
  border:1px solid var(--ld-acad-edge);border-top:none;border-radius:0 0 22px 22px;
  background:linear-gradient(145deg,#101e33,#0b1729);
  color:#f2f8ff;
}
.ld-academy-wrap :is(h2,h3,h4){line-height:1.45;letter-spacing:0!important}
.ld-academy-wrap :is(h2){font-size:clamp(1.22rem,2.2vw,1.85rem)!important;color:#f8fdff!important;margin-block:0 9px!important}
.ld-academy-wrap :is(h3){color:#f5faff!important}
.ld-academy-wrap :is(p){line-height:1.7!important;margin-block:4px 10px!important;max-width:1000px;color:#c3d9e7!important}
.ld-academy-wrap :is(a,button,input,select){transition:background-color .18s,border-color .18s}
.ld-academy-wrap :is(a,button,input,select):focus-visible{outline:3px solid #62e9db;outline-offset:3px}
.ld-academy-wrap :is(button,[role="tab"]):not(:disabled){cursor:pointer}
.ld-academy-wrap :is(button,input[type=search],select){font-family:inherit}
.ld-academy-wrap :is([class*="filter"],[class*="category"],[class*="tag"]){scroll-margin-top:110px}
.ld-academy-wrap :is([class*="grid"],[class*="list"]):not(ul):not(ol){gap:15px}
.ld-academy-wrap :is(article,[class*="course-card"],[class*="course-tile"],[class*="course-item"]){border-radius:16px;border-color:rgba(90,175,208,.34);box-shadow:0 6px 18px rgba(0,4,18,.11)}
.ld-academy-wrap :is(article,[class*="course-card"],[class*="course-tile"]):hover{border-color:rgba(89,232,218,.68);box-shadow:0 10px 26px rgba(0,8,22,.2)}

.ld-portal-end{max-width:1260px;margin:26px auto 30px!important;padding:18px 12px 12px!important;border-top:1px solid rgba(94,187,205,.18)}
.ld-portal-end .ld-end-heading{text-align:start;margin:0 3px 17px}
.ld-portal-end .ld-end-heading>span{display:block;color:#67d9d5;font-weight:800;font-size:.72rem;letter-spacing:.065em}
.ld-portal-end .ld-end-heading h2{font-size:clamp(1.3rem,2vw,1.7rem)!important;color:#fff!important;line-height:1.45!important;margin:5px 0!important}
.ld-portal-end .ld-end-heading p{font-size:.84rem!important;color:#bdd0df!important;line-height:1.7!important}
.ld-portal-end .ld-journeys-end{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}
.ld-portal-end .ld-journeys-end .ld-journey-card{min-height:157px;border-radius:19px;padding:23px 23px 20px;padding-inline-start:78px;transition:transform .2s,border-color .2s,box-shadow .2s}
.ld-portal-end .ld-journeys-end .ld-journey-icon{inset-inline-start:23px;top:22px}
.ld-portal-end .ld-journeys-end .ld-journey-copy strong{font-size:1.22rem;line-height:1.3}
.ld-portal-end .ld-journeys-end .ld-journey-copy small{font-size:.79rem;line-height:1.75}
.ld-portal-end .ld-journeys-end .ld-journey-card:hover{transform:translateY(-3px);box-shadow:0 12px 32px rgba(0,7,20,.22)}
.ld-portal-end .ld-journeys-end .ld-journey-courses{background:radial-gradient(ellipse at 100% 0%,rgba(95,178,255,.15),transparent 60%),linear-gradient(125deg,#102c49,#112037)}
.ld-portal-end .ld-journeys-end .ld-journey-opportunities{background:radial-gradient(ellipse at 100% 0%,rgba(158,105,255,.16),transparent 60%),linear-gradient(120deg,#1d2549,#181c38)}
.ld-portal-end .ld-journeys-end .ld-journey-paths{background:radial-gradient(ellipse at 100% 0%,rgba(70,239,209,.13),transparent 60%),linear-gradient(120deg,#0e343d,#102333)}

html[data-theme="light"] .ld-portal .ld-academy-teaser{background:linear-gradient(115deg,#e9f9f9,#f4f6ff);border-color:#bddedb}
html[data-theme="light"] .ld-portal .ld-academy-teaser-mark{background:#e5fafa;color:#087d79}
html[data-theme="light"] .ld-portal .ld-academy-teaser h2{color:#102e42!important}
html[data-theme="light"] .ld-portal .ld-academy-teaser p{color:#426176!important}
html[data-theme="light"] .ld-portal .ld-academy-teaser-link{background:#086f74;color:#fff!important}
html[data-theme="light"] .ld-academy-shell .ld-academy-head{background:linear-gradient(120deg,#e7f7fd,#edf5ff);border-color:#bbd9e7}
html[data-theme="light"] .ld-academy-shell .ld-academy-display{color:#113347!important}
html[data-theme="light"] .ld-academy-shell .ld-academy-overline{color:#08797a}
html[data-theme="light"] .ld-academy-shell .ld-academy-head-sub{color:#48657a!important}
html[data-theme="light"] .ld-academy-shell .ld-academy-head-number{background:#fff;border-color:#c1dde9}
html[data-theme="light"] .ld-academy-shell .ld-academy-head-number strong{color:#077b79}
html[data-theme="light"] .ld-academy-shell .ld-academy-head-number span{color:#3e6577}
html[data-theme="light"] .ld-academy-shell .ld-academy-proof{background:#f5faff;border-color:#bfd9e8}
html[data-theme="light"] .ld-academy-shell .ld-academy-proof>span{color:#235369;border-color:#d5e6ed;background:#fff}
html[data-theme="light"] .ld-academy-shell .ld-academy-wrap{background:linear-gradient(155deg,#fafcff,#eff7fa);border-color:#bedce9;color:#183a4d}
html[data-theme="light"] .ld-academy-shell .ld-academy-wrap :is(h2,h3,h4){color:#16374b!important}
html[data-theme="light"] .ld-academy-shell .ld-academy-wrap p{color:#426176!important}
html[data-theme="light"] .ld-portal-end .ld-end-heading h2{color:#123c50!important}
html[data-theme="light"] .ld-portal-end .ld-end-heading p{color:#496474!important}
html[data-theme="light"] .ld-portal-end .ld-end-heading>span{color:#107c80}

@media(max-width:920px){
 .ld-portal .ld-academy-teaser{grid-template-columns:48px minmax(0,1fr)}
 .ld-portal .ld-academy-teaser-mark{width:48px;height:48px}
 .ld-portal .ld-academy-teaser-link{grid-column:2;justify-self:start}
 .ld-portal-end .ld-journeys-end{gap:12px}
 .ld-portal-end .ld-journeys-end .ld-journey-card{padding:19px 17px 18px;padding-inline-start:64px}
 .ld-portal-end .ld-journeys-end .ld-journey-icon{inset-inline-start:18px}
}
@media(max-width:760px){
 .ld-academy-shell{margin-top:27px;padding:0 9px 14px}
 .ld-academy-head{padding:23px 19px}
 .ld-academy-wrap{padding:18px 15px 24px!important}
 .ld-portal-end .ld-journeys-end{grid-template-columns:1fr}
 .ld-portal-end .ld-journeys-end .ld-journey-card{min-height:118px;padding:18px 18px 15px;padding-inline-start:65px}
}
@media(max-width:520px){
 .ld-portal .ld-academy-teaser{grid-template-columns:1fr;gap:9px;padding:18px}
 .ld-portal .ld-academy-teaser-mark{width:44px;height:44px}
 .ld-portal .ld-academy-teaser-link{grid-column:1;margin-top:3px;width:100%}
 .ld-academy-head{padding:21px 15px;flex-wrap:wrap;gap:15px}
 .ld-academy-head-number{min-width:100px;flex-direction:row;gap:9px;padding:9px 13px}
 .ld-academy-head-number strong{font-size:2.1rem}
 .ld-academy-proof{gap:7px;padding:11px 13px}
 .ld-academy-proof>span{font-size:.73rem;padding:4px 9px}
 .ld-academy-wrap{padding:17px 11px!important}
 .ld-portal-end{padding:16px 8px!important}
}
@media(prefers-reduced-motion:reduce){
 .ld-portal .ld-academy-teaser-link,.ld-portal-end .ld-journey-card{transition:none!important}
}

/* STAGE 12 — targeted changes below the untouched exploration area. */
.ld-portal .ld-unified-guide{
  box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.16fr);
  align-items:center;gap:22px;margin:19px 0 8px;padding:20px 24px;border-radius:20px;
  border:1px solid rgba(82,204,216,.47);background:
    radial-gradient(ellipse at 2% 90%,rgba(74,206,198,.105),transparent 48%),
    radial-gradient(ellipse at 93% 0%,rgba(110,112,231,.12),transparent 53%),
    linear-gradient(118deg,#102639,#101d32);box-shadow:0 8px 30px rgba(0,9,24,.11);
}
.ld-portal .ld-guide-copy{display:flex;flex-direction:column;gap:5px;min-width:0;text-align:start}
.ld-portal .ld-guide-kicker{font-size:.7rem;font-weight:800;color:#78ddd9;letter-spacing:.055em}
.ld-portal .ld-guide-copy>strong{font-size:clamp(1.05rem,1.8vw,1.38rem);line-height:1.4;color:#f9ffff}
.ld-portal .ld-guide-copy>span:last-child{color:#c3d8e7;font-size:.8rem;line-height:1.6}
.ld-portal .ld-guide-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.ld-portal .ld-guide-link{min-width:0;display:flex;align-items:center;gap:10px;padding:14px 13px;border-radius:13px;
  text-decoration:none!important;border:1px solid rgba(92,214,211,.34);color:#f7ffff!important;
  background:linear-gradient(125deg,rgba(10,85,93,.57),rgba(17,52,71,.7));transition:border-color .2s,background .2s,transform .2s}
.ld-portal .ld-guide-courses{background:linear-gradient(125deg,rgba(57,58,119,.48),rgba(25,40,72,.82));border-color:rgba(151,137,244,.4)}
.ld-portal .ld-guide-link>.ld-icon:first-child{width:27px;height:27px;flex:0 0 27px;color:#65eade}
.ld-portal .ld-guide-courses>.ld-icon:first-child{color:#b7a6ff}
.ld-portal .ld-guide-link>span{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;text-align:start}
.ld-portal .ld-guide-link strong{font-size:.97rem;line-height:1.4;color:#fff}
.ld-portal .ld-guide-link small{font-size:.74rem;line-height:1.4;color:#b7dcdf}
.ld-portal .ld-guide-link>.ld-icon:last-child{width:16px;height:16px;flex:0 0 16px;color:#a4d8e5}
.ld-portal .ld-guide-link:hover{transform:translateY(-2px);border-color:#72eee3}
.ld-portal .ld-guide-link:focus-visible,.ld-portal .ld-new-path-card:focus-visible{outline:3px solid #73f0e2;outline-offset:3px}

/* Six original guided paths are deliberately below the unified guide. */
.ld-portal-paths{max-width:1260px;margin:14px auto 0!important;padding-bottom:6px!important}
.ld-portal-paths .ld-paths-section{margin-top:0;padding:21px 23px 24px;background:linear-gradient(125deg,rgba(8,31,44,.94),rgba(9,23,40,.95))}
.ld-portal-paths .ld-section-heading{margin-bottom:15px;align-items:center}
.ld-portal-paths .ld-section-heading h2{font-size:clamp(1.36rem,2.1vw,1.7rem)!important}
.ld-portal-paths .ld-section-heading p{font-size:.78rem!important;max-width:740px}
.ld-portal-paths .ld-paths-grid{gap:13px}
.ld-portal-paths .ld-new-path-card{
  --ld-path-accent:#6eafe8;--ld-path-glow:rgba(73,144,255,.12);
  min-height:178px;gap:9px;padding:17px 18px 16px;border-radius:15px;overflow:hidden;
  background:radial-gradient(ellipse at 0 0,var(--ld-path-glow),transparent 67%),linear-gradient(135deg,#122b43,#101e32);
  border:1px solid rgba(108,186,200,.26);box-shadow:none;
}
.ld-portal-paths .ld-new-path-card::before{content:"";position:absolute;inset-inline-start:0;top:13px;bottom:13px;width:3px;border-radius:10px;background:var(--ld-path-accent);opacity:.74}
.ld-portal-paths .ld-new-path-card.ld-path-creator{--ld-path-accent:#ae8bff;--ld-path-glow:rgba(141,92,225,.18);background:radial-gradient(ellipse at 0 0,var(--ld-path-glow),transparent 65%),linear-gradient(137deg,#262242,#151c35)}
.ld-portal-paths .ld-new-path-card.ld-path-student{--ld-path-accent:#74bdff;--ld-path-glow:rgba(46,114,233,.15);background:radial-gradient(ellipse at 0 0,var(--ld-path-glow),transparent 65%),linear-gradient(137deg,#152c4d,#102038)}
.ld-portal-paths .ld-new-path-card.ld-path-developer{--ld-path-accent:#67e9db;--ld-path-glow:rgba(38,176,175,.18);background:radial-gradient(ellipse at 0 0,var(--ld-path-glow),transparent 65%),linear-gradient(137deg,#103b3f,#102936)}
.ld-portal-paths .ld-new-path-card.ld-path-teacher{--ld-path-accent:#91c8ff;--ld-path-glow:rgba(58,127,218,.13);background:radial-gradient(ellipse at 0 0,var(--ld-path-glow),transparent 65%),linear-gradient(137deg,#18314b,#102239)}
.ld-portal-paths .ld-new-path-card.ld-path-store{--ld-path-accent:#e4aa8c;--ld-path-glow:rgba(203,129,98,.17);background:radial-gradient(ellipse at 0 0,var(--ld-path-glow),transparent 65%),linear-gradient(137deg,#372837,#1b2035)}
.ld-portal-paths .ld-new-path-card.ld-path-engineer{--ld-path-accent:#c5a4ff;--ld-path-glow:rgba(134,97,222,.17);background:radial-gradient(ellipse at 0 0,var(--ld-path-glow),transparent 65%),linear-gradient(137deg,#2d2142,#151c35)}
.ld-portal-paths .ld-path-top{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;flex:none}
.ld-portal-paths .ld-path-symbol{display:grid;place-items:center;width:40px;height:40px;border:1px solid color-mix(in srgb,var(--ld-path-accent) 40%,transparent);border-radius:11px;background:rgba(7,22,39,.38);color:var(--ld-path-accent)}
.ld-portal-paths .ld-path-symbol .ld-icon{width:22px;height:22px}
.ld-portal-paths .ld-path-index{font-size:.72rem!important;color:var(--ld-path-accent)!important;letter-spacing:.09em}
.ld-portal-paths .ld-new-path-card strong{font-size:1.06rem;color:#fcfeff}
.ld-portal-paths .ld-path-description{font-size:.79rem!important;line-height:1.58!important;color:#cee1eb!important}
.ld-portal-paths .ld-path-bottom{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-top:auto;width:100%}
.ld-portal-paths .ld-path-bottom small{margin:0!important;color:var(--ld-path-accent)!important;font-weight:750}
.ld-portal-paths .ld-path-bottom>.ld-icon{position:static!important;color:#a8d6e4!important;width:17px;height:17px}

/* Courses follow the paths: compact heading, existing articles preserved and made visually distinct. */
.ld-academy-shell{margin-top:20px!important;padding-inline:12px}
.ld-academy-shell .ld-academy-head{border-radius:19px 19px 0 0;padding:21px 25px;min-height:0;background:linear-gradient(120deg,#112a3d,#17203c)}
.ld-academy-shell .ld-academy-display{font-size:clamp(1.45rem,2vw,1.8rem)!important;margin:4px 0 3px!important;color:#fff!important}
.ld-academy-shell .ld-academy-head-sub{font-size:.79rem!important}
.ld-academy-shell .ld-academy-toplink{position:relative;z-index:1;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:#a2f0e6!important;border:1px solid rgba(101,217,206,.28);background:rgba(15,65,77,.4);border-radius:10px;font-size:.77rem;font-weight:800;padding:9px 12px;text-decoration:none!important}
.ld-academy-shell .ld-academy-toplink>.ld-icon{width:16px;height:16px}
.ld-academy-shell .ld-academy-wrap{padding:20px 22px 27px!important}
.ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]){
  --ld-course-accent:#6fbbf6;
  background:radial-gradient(ellipse at 95% 0%,rgba(44,137,207,.12),transparent 62%),linear-gradient(150deg,#14283e,#101d30)!important;
  border:1px solid rgba(104,188,208,.34)!important;border-radius:15px!important;position:relative;overflow:hidden;
  padding:18px!important;box-shadow:0 5px 17px rgba(0,6,17,.1)!important;
  transition:transform .18s,border-color .18s,box-shadow .18s}
.ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"])::before{
  content:"";position:absolute;inset-inline:16px;top:0;height:3px;border-radius:0 0 6px 6px;background:var(--ld-course-accent);opacity:.8}
.ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]):hover{transform:translateY(-2px);border-color:var(--ld-course-accent)!important;box-shadow:0 9px 27px rgba(0,11,28,.23)!important}
.ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]):nth-child(6n + 2){--ld-course-accent:#ab8af7;background:radial-gradient(ellipse at 95% 0%,rgba(158,119,228,.14),transparent 63%),linear-gradient(150deg,#20233e,#131d33)!important}
.ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]):nth-child(6n + 3){--ld-course-accent:#68e1d1;background:radial-gradient(ellipse at 95% 0%,rgba(53,192,177,.12),transparent 63%),linear-gradient(150deg,#11343c,#122233)!important}
.ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]):nth-child(6n + 4){--ld-course-accent:#e0b78d;background:radial-gradient(ellipse at 95% 0%,rgba(208,151,96,.12),transparent 63%),linear-gradient(150deg,#2a2839,#161f31)!important}
.ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]):nth-child(6n + 5){--ld-course-accent:#7bcbf0;background:radial-gradient(ellipse at 95% 0%,rgba(85,167,217,.12),transparent 63%),linear-gradient(150deg,#142d43,#102234)!important}
.ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]):nth-child(6n){--ld-course-accent:#e5a1cf;background:radial-gradient(ellipse at 95% 0%,rgba(204,125,188,.13),transparent 63%),linear-gradient(150deg,#2b243b,#171e32)!important}
.ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]) :is(h2,h3){font-size:clamp(.99rem,1.35vw,1.14rem)!important;line-height:1.5!important;margin-block:8px!important}
.ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]) p{font-size:.81rem!important;line-height:1.65!important}
.ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]) a{color:#a2f3ec!important}

html[data-theme="light"] .ld-portal .ld-unified-guide{background:linear-gradient(120deg,#eaf7f9,#f1f3fc);border-color:#a2d7dc}
html[data-theme="light"] .ld-portal .ld-guide-copy>strong{color:#16364b}
html[data-theme="light"] .ld-portal .ld-guide-copy>span:last-child{color:#416477}
html[data-theme="light"] .ld-portal .ld-guide-kicker{color:#087c7e}
html[data-theme="light"] .ld-portal .ld-guide-link{background:#e7f7f4;color:#12384b!important;border-color:#acd9d4}
html[data-theme="light"] .ld-portal .ld-guide-courses{background:#f0edff;border-color:#c6bcef}
html[data-theme="light"] .ld-portal .ld-guide-link strong{color:#17374b}
html[data-theme="light"] .ld-portal .ld-guide-link small{color:#436579}
html[data-theme="light"] .ld-portal-paths .ld-paths-section{background:linear-gradient(125deg,#edf9fc,#f2f6ff);border-color:#b8dce6}
html[data-theme="light"] .ld-portal-paths .ld-new-path-card{background:#fff!important;border-color:#c8dce9}
html[data-theme="light"] .ld-portal-paths .ld-new-path-card strong{color:#183549}
html[data-theme="light"] .ld-portal-paths .ld-path-description{color:#4d667a!important}
html[data-theme="light"] .ld-portal-paths .ld-path-symbol{background:#f5f8fc}
html[data-theme="light"] .ld-academy-shell .ld-academy-head{background:linear-gradient(120deg,#e9f8fb,#f0f4ff)}
html[data-theme="light"] .ld-academy-shell .ld-academy-toplink{background:#e0f6f2;color:#086965!important}
html[data-theme="light"] .ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]){background:linear-gradient(155deg,#fff,#eff7fb)!important;border-color:#bedce6!important}
html[data-theme="light"] .ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]):nth-child(6n + 2){background:linear-gradient(155deg,#fff,#f5f0ff)!important}
html[data-theme="light"] .ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]):nth-child(6n + 3){background:linear-gradient(155deg,#fff,#edfaf5)!important}

@media(max-width:900px){.ld-portal .ld-unified-guide{grid-template-columns:1fr;gap:13px}}
@media(max-width:760px){
 .ld-portal-paths .ld-paths-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ld-portal-paths .ld-new-path-card{min-height:190px}
 .ld-portal .ld-unified-guide{padding:17px}
}
@media(max-width:560px){
 .ld-portal .ld-unified-guide{gap:13px;margin-top:16px;padding:15px 13px;border-radius:15px}
 .ld-portal .ld-guide-copy>strong{font-size:1.13rem}
 .ld-portal .ld-guide-copy>span:last-child{font-size:.76rem}
 .ld-portal .ld-guide-actions{grid-template-columns:1fr;gap:9px}
 .ld-portal .ld-guide-link{min-height:67px;padding:11px 14px}
 .ld-portal-paths .ld-paths-section{padding:16px 12px}
 .ld-portal-paths .ld-paths-grid{grid-template-columns:1fr}
 .ld-portal-paths .ld-new-path-card{min-height:150px}
 .ld-academy-shell{padding-inline:8px}
 .ld-academy-shell .ld-academy-head{padding:18px 15px;gap:10px;flex-wrap:wrap}
 .ld-academy-shell .ld-academy-toplink{font-size:.73rem}
 .ld-academy-shell .ld-academy-wrap{padding:17px 12px!important}
}
@media(prefers-reduced-motion:reduce){
 .ld-portal .ld-guide-link,.ld-portal-paths .ld-new-path-card,.ld-academy-wrap :is(.academy-course-card,[class*="course-card"],[class*="course-tile"],[class*="course-item"]){transition:none!important}
}

/* In the unified portal, the Academy's original promotional introduction is
   redundant with our compact section heading. The original HTML and every
   course remain intact; only the redundant on-screen copy is collapsed. */
.ld-academy-wrap .academy > h2:first-of-type,
.ld-academy-wrap .academy > p:first-of-type,
.ld-academy-wrap .academy > p:nth-of-type(2){display:none!important}
.ld-academy-wrap .academy > h2:not(:first-of-type){font-size:1.08rem!important;margin-block:1px 9px!important}
.ld-academy-wrap .academy > h2:not(:first-of-type)+p{font-size:.8rem!important;margin-block:0 12px!important}

/* Stage 13 — scoped, accessible Academy card styling for real Academy DOM structures.
 * JS adds data-ld-course-card only to actual course links' semantically bounded containers.
 * The original Academy markup, links, filters and course data are not altered. */
.ld-portal .ld-born-locale{font-weight:800;letter-spacing:0;line-height:1.55;direction:inherit}
.ld-portal .ld-filters .ld-filter-path{display:inline-flex;gap:7px;align-items:center}
.ld-portal .ld-filters .ld-filter-path .ld-icon{width:16px;height:16px}
.ld-academy-wrap .ld-detected-course-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important}
.ld-academy-wrap [data-ld-course-card]{--ld-card-accent:#72c5fb;position:relative;display:flex!important;flex-direction:column;min-width:0;min-height:208px;padding:22px 19px 18px!important;background:radial-gradient(circle at 12% 0%,color-mix(in srgb,var(--ld-card-accent) 18%,transparent),transparent 62%),linear-gradient(145deg,#142c44,#0b192c)!important;border:1px solid color-mix(in srgb,var(--ld-card-accent) 34%,transparent)!important;border-radius:17px!important;box-shadow:0 8px 24px rgba(0,7,20,.19)!important;overflow:hidden;transition:border-color .16s,transform .16s,box-shadow .16s}
.ld-academy-wrap [data-ld-course-card]::before{content:"";height:3px;position:absolute;top:0;inset-inline:0;background:linear-gradient(90deg,var(--ld-card-accent),transparent)}
.ld-academy-wrap [data-ld-course-card][data-ld-course-theme="1"]{--ld-card-accent:#b7a3f9}
.ld-academy-wrap [data-ld-course-card][data-ld-course-theme="2"]{--ld-card-accent:#65ded1}
.ld-academy-wrap [data-ld-course-card][data-ld-course-theme="3"]{--ld-card-accent:#e9bd90}
.ld-academy-wrap [data-ld-course-card][data-ld-course-theme="4"]{--ld-card-accent:#8fbbff}
.ld-academy-wrap [data-ld-course-card][data-ld-course-theme="5"]{--ld-card-accent:#efabc9}
.ld-academy-wrap [data-ld-course-card]:hover{transform:translateY(-3px);border-color:var(--ld-card-accent)!important;box-shadow:0 12px 30px rgba(0,6,22,.27)!important}
.ld-academy-wrap [data-ld-course-card] :is(h2,h3,h4,strong){color:#f3f9ff!important;line-height:1.48!important;overflow-wrap:anywhere}
.ld-academy-wrap [data-ld-course-card] :is(h2,h3,h4){font-size:clamp(1rem,1.35vw,1.14rem)!important;margin:9px 0!important}
.ld-academy-wrap [data-ld-course-card] p{color:#c9dce9!important;font-size:.81rem!important;line-height:1.75!important;max-width:none!important}
.ld-academy-wrap [data-ld-course-card] a{color:#a4f4e8!important;font-weight:800;text-decoration:none!important}
.ld-academy-wrap [data-ld-course-card] a:hover{text-decoration:underline!important}
.ld-academy-wrap [data-ld-course-card] :is(button,a):focus-visible{outline:3px solid #68e7dd!important;outline-offset:3px}
.ld-academy-wrap .ld-detected-filterbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:15px 0!important}
.ld-academy-wrap .ld-detected-filterbar button{background:rgba(22,49,69,.84)!important;color:#d9f4f8!important;border:1px solid rgba(105,192,204,.35)!important;border-radius:999px!important;padding:8px 13px!important;font-size:.79rem!important;min-height:34px}
.ld-academy-wrap .ld-detected-filterbar button:hover,.ld-academy-wrap .ld-detected-filterbar button[aria-pressed="true"],.ld-academy-wrap .ld-detected-filterbar button[aria-selected="true"]{background:#41d6c9!important;color:#05212a!important}
html[data-theme="light"] .ld-academy-wrap [data-ld-course-card]{background:linear-gradient(155deg,#ffffff,#eff8fc)!important;border-color:#c1dce9!important}
html[data-theme="light"] .ld-academy-wrap [data-ld-course-card] :is(h2,h3,h4,strong){color:#103850!important}
html[data-theme="light"] .ld-academy-wrap [data-ld-course-card] p{color:#48667a!important}
html[data-theme="light"] .ld-academy-wrap [data-ld-course-card] a{color:#076e77!important}
html[data-theme="light"] .ld-academy-wrap .ld-detected-filterbar button{background:#f2fafb!important;color:#143a4f!important}
@media(max-width:980px){.ld-academy-wrap .ld-detected-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.ld-academy-wrap .ld-detected-course-grid{grid-template-columns:1fr!important}.ld-academy-wrap [data-ld-course-card]{min-height:168px;padding:18px 16px!important}.ld-portal .ld-filters .ld-filter-path{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.ld-academy-wrap [data-ld-course-card]{transition:none!important}}

/* Stage 14 — compact courses entry and introduction moved below course grid.
   Scoped to the unified Learn & Explore section; no other site pages affected. */
.ld-portal .ld-guide-course-count{
 flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
 min-width:55px;height:51px;padding:0 10px;border-radius:13px;
 font-size:1.65rem;line-height:1;font-weight:900;letter-spacing:-.03em;font-variant-numeric:tabular-nums;
 background:rgba(56,218,205,.14);border:1px solid rgba(76,223,218,.34);color:#71eee5;
}
.ld-academy-shell .ld-academy-head-compact{
 min-height:unset!important;padding:14px 22px!important;gap:0!important;
 border-radius:19px 19px 0 0!important;
 background:linear-gradient(100deg,#0b2735,#12223b)!important;
}
.ld-academy-shell .ld-academy-head-compact:after{display:none!important}
.ld-academy-shell .ld-academy-head-compact .ld-academy-display{
 margin:0!important;font-size:clamp(1.15rem,2vw,1.52rem)!important;line-height:1.4!important;
}
.ld-academy-shell .ld-academy-wrap{padding:14px 22px 23px!important}
.ld-academy-shell .ld-academy-wrap .academy{margin-block-start:0!important}
.ld-academy-shell .ld-academy-wrap .academy [hidden]{display:none!important}
.ld-academy-shell .ld-academy-closing-note{
 margin:27px 0 0!important;padding:16px 18px!important;
 background:rgba(59,130,149,.07)!important;border:1px solid rgba(91,164,184,.21)!important;
 border-radius:14px!important;font-size:.86rem!important;line-height:1.8!important;
}
.ld-academy-shell .ld-academy-closing-note p{margin:3px 0 8px!important;color:#9fbfcb!important}
.ld-academy-shell .ld-academy-closing-note p:last-child{margin-bottom:0!important}
html[data-theme="light"] .ld-portal .ld-guide-course-count{background:#e0faf6;border-color:#84d9cd;color:#086960}
html[data-theme="light"] .ld-academy-shell .ld-academy-head-compact{background:linear-gradient(100deg,#e7f7fd,#edf5ff)!important}
html[data-theme="light"] .ld-academy-shell .ld-academy-closing-note{background:#f4fbfd!important;border-color:#c5dce6!important}
html[data-theme="light"] .ld-academy-shell .ld-academy-closing-note p{color:#435e70!important}
@media(max-width:650px){.ld-portal .ld-guide-course-count{min-width:46px;height:43px;font-size:1.34rem}.ld-academy-shell .ld-academy-head-compact{padding:13px 17px!important}.ld-academy-shell .ld-academy-wrap{padding:13px 14px 18px!important}}

/* Stage 15 — stronger course section title; remove redundant old Academy preamble. */
.ld-academy-shell .ld-academy-head-compact{
  padding:17px 24px!important;
  background:linear-gradient(110deg,#11304a,#102137 58%,#122140)!important;
  border-bottom:1px solid rgba(89,218,206,.25)!important;
}
.ld-academy-shell .ld-academy-head-compact .ld-academy-display{
  display:inline-flex!important;align-items:center;gap:11px;
  font-size:clamp(1.65rem,2.7vw,2.14rem)!important;font-weight:900!important;
  letter-spacing:-.018em;line-height:1.35!important;color:#f4fcff!important;
}
.ld-academy-shell .ld-academy-cap{
  width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;
  font-size:1.5rem;border:1px solid rgba(95,223,213,.33);border-radius:13px;
  background:rgba(53,203,192,.12);filter:drop-shadow(0 0 8px rgba(64,203,217,.18));
}
.ld-academy-shell .ld-academy-wrap [data-ld-intro-hidden],
.ld-academy-shell .ld-academy-wrap [data-ld-intro-empty]{display:none!important}
.ld-academy-shell .ld-academy-wrap[data-ld-intro-condensed] .academy{padding-top:0!important}
.ld-academy-shell .ld-academy-wrap[data-ld-intro-condensed] .ld-detected-filterbar{margin-top:3px!important}
html[data-theme="light"] .ld-academy-shell .ld-academy-head-compact{
  background:linear-gradient(110deg,#e3f6fb,#ecf3fd)!important;
}
html[data-theme="light"] .ld-academy-shell .ld-academy-head-compact .ld-academy-display{color:#13324b!important}
html[data-theme="light"] .ld-academy-shell .ld-academy-cap{background:#e0f5f1;border-color:#99d3cc}
@media(max-width:620px){
 .ld-academy-shell .ld-academy-head-compact{padding:14px 16px!important}
 .ld-academy-shell .ld-academy-cap{width:38px;height:38px;font-size:1.35rem}
}

/* Stage 18: accessible curriculum detail blocks, integrated with existing LA24AI theme */
.ld-step-detail{margin-block:0.8rem;color:var(--text,#d3e3ef);line-height:1.85}
.ld-step-deliverable,.ld-route-project{border-inline-start:3px solid #34cbb8;background:rgba(40,182,164,.08);padding:.75rem 1rem;border-radius:.65rem;margin-block:.65rem;color:var(--text,#d3e3ef)}
.ld-step-prompt{margin-block:.65rem;padding:.8rem 1rem;border:1px solid rgba(57,174,200,.35);border-radius:.8rem;background:rgba(26,118,140,.08)}
.ld-step-prompt summary{cursor:pointer;font-weight:650;color:var(--text,#d3e3ef)}
.ld-step-prompt p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}
.ld-route-resources{margin-block:2rem;padding:1.2rem;border:1px solid rgba(57,174,200,.28);border-radius:1.1rem;background:rgba(14,70,95,.09)}
.ld-route-resources ul{display:flex;flex-wrap:wrap;gap:.7rem;list-style:none;padding:0}
.ld-route-resources a{display:inline-flex;padding:.5rem .8rem;border:1px solid rgba(57,174,200,.28);border-radius:.65rem;color:var(--text,#d3e3ef);text-decoration:none}
.ld-route-resources a:hover,.ld-route-resources a:focus-visible{border-color:#2ccbbd;outline-offset:3px}
.ld-route-device-advice{margin-block:.7rem;line-height:1.75}
[data-theme="light"] .ld-step-detail,[data-theme="light"] .ld-step-deliverable,[data-theme="light"] .ld-route-project,[data-theme="light"] .ld-step-prompt summary,[data-theme="light"] .ld-route-resources a{color:#163041}
@media(max-width:640px){.ld-route-resources{padding:.8rem}.ld-route-resources ul{display:grid;grid-template-columns:1fr 1fr}}
