/* Practice Hub — Edclex home practice section handoff */

    :root{
      --ph-ivory:#fbead8;
      --ph-paper:#fffaf2;
      --ph-paper-2:#fdf4e8;
      --ph-forest:#145a46;
      --ph-forest-dark:#0e4436;
      --ph-navy:#17374f;
      --ph-burgundy:#7e343a;
      --ph-terra:#b35f45;
      --ph-gold:#c9963e;
      --ph-ink:#282b28;
      --ph-muted:#6d6b64;
      --ph-line:#dcc8ae;
      --ph-shadow:0 20px 50px rgba(72,46,27,.11);
      --ph-shadow-soft:0 10px 26px rgba(72,46,27,.08);
      --ph-serif:Georgia,"Times New Roman",serif;
      --ph-sans:Inter,"Open Sans",Arial,sans-serif;
    }

    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body.practice-hub-page{
      margin:0;
      color:var(--ph-ink);
      background:var(--ph-ivory)!important;
      font-family:var(--ph-sans);
      font-size:16px;
      line-height:1.6;
    }
    button,a{font:inherit;-webkit-tap-highlight-color:transparent}
    a{color:inherit;text-decoration:none}
    button{color:inherit}
    svg{display:block}
    [hidden]{display:none!important}
    :focus-visible{outline:3px solid rgba(201,150,62,.72);outline-offset:4px}

    .practice-hub{
      position:relative;
      overflow:hidden;
      padding:96px 0 90px;
      background:
        radial-gradient(circle at 92% 9%,rgba(216,233,223,.82),transparent 21rem),
        radial-gradient(circle at 7% 91%,rgba(239,211,198,.72),transparent 22rem),
        linear-gradient(180deg,#fbead8 0%,#fbead8 54%,#fbf4e9 100%);
      isolation:isolate;
    }
    .practice-hub:before{
      content:"";
      position:absolute;
      width:480px;height:480px;
      left:50%;top:-310px;
      transform:translateX(-50%);
      border:1px solid rgba(126,52,58,.08);
      border-radius:50%;
      box-shadow:0 0 0 72px rgba(126,52,58,.022),0 0 0 144px rgba(20,90,70,.018);
      z-index:-1;
    }
    .practice-shell{width:85%;max-width:85%;margin-inline:auto;padding-inline:clamp(0.65rem,1.5vw,1rem);box-sizing:border-box}

    .hub-heading{
      display:grid;
      grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);
      gap:56px;
      align-items:end;
      margin-bottom:32px;
    }
    .hub-eyebrow{
      display:inline-flex;
      align-items:center;
      gap:11px;
      margin-bottom:14px;
      color:var(--ph-burgundy);
      font-size:11px;
      font-weight:900;
      letter-spacing:.17em;
      text-transform:uppercase;
    }
    .hub-eyebrow:before{content:"";width:36px;height:2px;border-radius:2px;background:var(--ph-terra)}
    .hub-heading h1{
      max-width:760px;
      margin:0 0 18px;
      color:#262a27;
      font:700 clamp(40px,5vw,66px)/1.02 var(--ph-serif);
      letter-spacing:-.04em;
    }
    .hub-heading h1 span{color:var(--ph-forest)}
    .hub-heading p{max-width:730px;margin:0;color:#5f625c;font-size:17px;line-height:1.75}

    .hub-summary{
      display:grid;
      gap:1px;
      overflow:hidden;
      border:1px solid var(--ph-line);
      border-radius:21px;
      background:var(--ph-line);
      box-shadow:var(--ph-shadow-soft);
    }
    .summary-item{
      display:grid;
      grid-template-columns:auto 1fr;
      gap:12px;
      align-items:center;
      padding:16px 18px;
      background:rgba(255,250,242,.96);
    }
    .summary-item strong{display:block;color:var(--ph-navy);font:700 18px/1.2 var(--ph-serif)}
    .summary-item small{display:block;margin-top:3px;color:var(--ph-muted);font-size:14px;line-height:1.4}
    .summary-symbol{
      width:38px;height:38px;
      display:grid;place-items:center;
      border-radius:12px;
      background:#e2eee7;
      color:var(--ph-forest);
      font-size:16px;
      font-weight:900;
    }

    .goal-bar{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
      margin-bottom:23px;
      padding:14px 16px 14px 20px;
      border:1px solid var(--ph-line);
      border-radius:18px;
      background:rgba(255,250,242,.72);
      box-shadow:0 6px 17px rgba(72,46,27,.05);
    }
    .goal-intro{min-width:max-content}
    .goal-intro strong{display:block;color:var(--ph-navy);font:700 16px var(--ph-serif)}
    .goal-intro small{display:block;color:var(--ph-muted);font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
    .goal-filters{display:flex;gap:7px;overflow:auto;padding:3px;scrollbar-width:none}
    .goal-filters::-webkit-scrollbar{display:none}
    .goal-filter{
      min-height:40px;
      padding:8px 13px;
      border:1px solid transparent;
      border-radius:11px;
      background:transparent;
      color:#61635d;
      font-size:13px;
      font-weight:850;
      white-space:nowrap;
      cursor:pointer;
      transition:.2s ease;
    }
    .goal-filter:hover{background:#f1e4d3;color:var(--ph-navy)}
    .goal-filter[aria-pressed="true"]{
      border-color:var(--ph-forest);
      background:var(--ph-forest);
      color:#fff;
      box-shadow:0 7px 16px rgba(20,90,70,.17);
    }

    .test-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
    .test-card{
      --card-accent:var(--ph-forest);
      --card-soft:#e0eee7;
      position:relative;
      display:flex;
      flex-direction:column;
      min-height:390px;
      padding:24px;
      overflow:hidden;
      border:1px solid #ddcbb5;
      border-radius:24px;
      background:rgba(255,250,242,.92);
      box-shadow:0 8px 20px rgba(72,46,27,.065);
      transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
    }
    .test-card:before{
      content:"";
      position:absolute;
      left:0;right:0;top:0;
      height:5px;
      background:var(--card-accent);
    }
    .test-card:after{
      content:"";
      position:absolute;
      width:150px;height:150px;
      right:-78px;top:-78px;
      border-radius:50%;
      background:var(--card-soft);
      opacity:.7;
    }
    .test-card:hover{transform:translateY(-6px);border-color:var(--card-accent);box-shadow:var(--ph-shadow)}
    .test-card[data-tone="terra"]{--card-accent:#ae5c43;--card-soft:#f1d8cc}
    .test-card[data-tone="navy"]{--card-accent:#183a53;--card-soft:#dce8ee}
    .test-card[data-tone="burgundy"]{--card-accent:#7e343a;--card-soft:#eedadd}
    .test-card[data-tone="blue"]{--card-accent:#315d87;--card-soft:#dbe7f1}
    .test-card[data-tone="gold"]{--card-accent:#a97825;--card-soft:#f3e5bf}
    .card-top{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:22px}
    .test-icon{
      width:58px;height:58px;
      flex:0 0 auto;
      display:grid;place-items:center;
      border-radius:18px;
      background:var(--card-soft);
      color:var(--card-accent);
    }
    .test-icon svg{width:29px;height:29px}
    .card-labels{
      display:flex;
      flex-direction:column;
      align-items:flex-end;
      gap:7px;
    }
    .purpose-pill{
      padding:7px 11px;
      border-radius:999px;
      background:#f2e7d9;
      color:#655c51;
      font-size:12px;
      font-weight:900;
      letter-spacing:.06em;
      text-transform:uppercase;
    }
    .peer-pill{
      display:inline-flex;
      align-items:center;
      gap:5px;
      padding:6px 10px;
      border:1px solid rgba(20,90,70,.18);
      border-radius:999px;
      background:#e3eee8;
      color:#145a46;
      font-size:11px;
      font-weight:900;
      letter-spacing:.04em;
      line-height:1;
      text-transform:uppercase;
      white-space:nowrap;
    }
    .peer-pill svg{width:13px;height:13px;flex:0 0 auto}
    .test-code{display:block;margin-bottom:6px;color:var(--card-accent);font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
    .test-card h2{margin:0 0 8px;color:var(--ph-navy);font:700 28px/1.12 var(--ph-serif)}
    .test-tagline{display:block;margin-bottom:12px;color:#414640;font-size:15px;font-weight:850}
    .test-card p{margin:0;color:var(--ph-muted);font-size:15px;line-height:1.65}
    .test-features{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0 0}
    .test-features span{padding:6px 10px;border-radius:8px;background:#f2e8dc;color:#65635c;font-size:12px;font-weight:850;letter-spacing:.03em;text-transform:uppercase}
    .test-action{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:15px;
      margin-top:auto;
      padding-top:20px;
      border-top:1px solid #eadccc;
      color:var(--card-accent);
      font-size:15px;
      font-weight:900;
    }
    .action-arrow{
      width:36px;height:36px;
      display:grid;place-items:center;
      border-radius:11px;
      background:var(--card-accent);
      color:#fff;
      transition:transform .2s ease;
    }
    .test-card:hover .action-arrow{transform:translateX(3px)}
    .pathway-note{
      display:grid;
      grid-template-columns:auto 1fr auto;
      gap:18px;
      align-items:center;
      margin-top:25px;
      padding:20px 22px;
      border:1px solid rgba(255,255,255,.13);
      border-radius:20px;
      background:linear-gradient(135deg,var(--ph-navy),#102c3d);
      color:#fff;
      box-shadow:0 15px 36px rgba(23,55,79,.18);
    }
    .pathway-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:rgba(255,255,255,.1);color:#f2cf85}
    .pathway-note strong{display:block;font:700 20px/1.25 var(--ph-serif)}
    .pathway-note p{margin:4px 0 0;color:#c9d7dd;font-size:14px;line-height:1.5}
    .pathway-groups{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
    .pathway-groups span{padding:8px 12px;border:1px solid rgba(255,255,255,.14);border-radius:9px;color:#e4ecef;font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}

    .result-note{margin:14px 3px 0;color:var(--ph-muted);font-size:14px;line-height:1.45;text-align:right}
    .result-note strong{color:var(--ph-navy)}
    .hub-toast{
      position:fixed;
      left:50%;bottom:26px;z-index:50;
      max-width:min(520px,calc(100% - 30px));
      transform:translate(-50%,25px);
      opacity:0;
      pointer-events:none;
      padding:12px 17px;
      border-radius:12px;
      background:var(--ph-navy);
      color:#fff;
      font-size:13px;
      font-weight:800;
      text-align:center;
      box-shadow:var(--ph-shadow);
      transition:.22s ease;
    }
    .hub-toast.show{transform:translate(-50%,0);opacity:1}

    @media (min-width:768px) and (max-width:1199.98px){
      .hub-heading p{font-size:18px}
      .summary-item small{font-size:16px}
      .goal-intro small{font-size:15px;letter-spacing:.04em}
      .goal-filter{font-size:16px}
      .test-code,.purpose-pill,.peer-pill,.test-features span,.pathway-groups span{font-size:15px;letter-spacing:.03em}
      .test-tagline,.test-card p{font-size:17px}
      .pathway-note p,.result-note{font-size:16px}
    }
    @media (max-width:1024px){
      .goal-bar{display:block;padding:15px}
      .goal-intro{margin:0 3px 10px}
      .goal-filters{flex-wrap:wrap;overflow:visible}
    }
    @media (max-width:980px){
      .hub-heading{grid-template-columns:1fr;gap:28px;align-items:start}
      .hub-summary{grid-template-columns:repeat(3,1fr)}
      .summary-item{grid-template-columns:1fr;gap:6px;text-align:center}.summary-symbol{margin-inline:auto}
      .test-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      .pathway-note{grid-template-columns:auto 1fr}.pathway-groups{grid-column:1/-1;justify-content:flex-start}
    }
    @media (max-width:767.98px){
      .hub-heading,.goal-bar,.result-note{display:none}
    }
    @media (max-width:720px){
      .practice-hub{padding:68px 0 64px}.practice-shell{padding-inline:1.1rem}
      .hub-heading h1{font-size:43px}.hub-heading p{font-size:15px}
      .hub-summary{grid-template-columns:1fr}.summary-item{grid-template-columns:auto 1fr;text-align:left}.summary-symbol{margin:0}
      .goal-intro{margin:0 3px 10px}.goal-filters{padding-bottom:2px}
      .test-grid{grid-template-columns:1fr}.test-card{min-height:350px}
      .result-note{text-align:left}
    }
    @media (max-width:440px){
      .practice-shell{padding-inline:1rem}
      .hub-heading h1{font-size:37px}.hub-heading p{line-height:1.65}
      .test-card{padding:21px;border-radius:20px}.test-card h2{font-size:26px}
      .pathway-note{grid-template-columns:1fr;padding:19px}.pathway-groups{grid-column:auto}.pathway-icon{width:40px;height:40px}
    }
    @media (prefers-reduced-motion:reduce){
      *{scroll-behavior:auto!important;transition:none!important}
    }
  

/* LMS shell compatibility */
body.practice-hub-page .main-header .nav-pill { color: var(--pill-fg); }
body.practice-hub-page .main-header .nav-pill.active,
body.practice-hub-page .main-header .nav-updates-dropdown .dropdown-toggle.nav-pill.active,
body.practice-hub-page .main-header .nav-ca-dropdown .dropdown-toggle.nav-pill.active {
  color: var(--pill-active-fg);
}
body.practice-hub-page a.test-card { color: inherit; text-decoration: none; }
body.practice-hub-page .footer-section a { color: inherit; }
body.practice-hub-page .mobile-bottom-nav { z-index: 40; }
