/* GAS MATCH unified hub — design system (RTL first). Brand: navy · blue · turquoise · white. */
:root{
  --gm-navy:#0b2538;--gm-navy-2:#10283c;--gm-blue:#1d5fa8;--gm-blue-2:#2b74c7;--gm-teal:#19b3a6;--gm-teal-2:#0a766c;
  --gm-sky:#eaf6f8;--gm-sky-2:#f3f9fb;--gm-line:#dce8ee;--gm-ink:#132b3b;--gm-muted:#5d7182;--gm-gold:#f2b33d;
  --gm-ok:#118a5a;--gm-warn:#b26b00;--gm-bad:#b42335;--gm-radius:18px;--gm-shadow:0 18px 50px rgba(11,37,56,.09);
  --gm-shadow-s:0 6px 18px rgba(11,37,56,.07);--gm-grad:linear-gradient(135deg,#0b2538 0%,#123a5c 55%,#1d5fa8 100%);
}
#hub-screen{direction:rtl;color:var(--gm-ink);padding:0 0 60px}
#hub-screen[hidden]{display:none!important}
.hub-wrap{max-width:1200px;margin:0 auto;padding:0 16px}
.hub-section{margin:34px 0}
.hub-h2{font-size:clamp(1.35rem,2.4vw,1.85rem);font-weight:800;margin:0 0 6px;color:var(--gm-navy)}
.hub-lead{color:var(--gm-muted);margin:0 0 18px;max-width:780px}
.hub-eyebrow{display:inline-flex;gap:8px;align-items:center;font-weight:700;font-size:.85rem;color:var(--gm-teal-2);background:var(--gm-sky);border-radius:999px;padding:5px 12px}
.hub-num{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--gm-blue);color:#fff;font-weight:800;margin-inline-end:10px;flex:none}
.hub-title-row{display:flex;align-items:center;gap:6px;margin-bottom:6px}

/* buttons, inputs */
.hub-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:11px 18px;font-weight:700;background:var(--gm-blue);color:#fff;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background .15s;min-height:44px;text-decoration:none}
.hub-btn:hover{background:var(--gm-blue-2);box-shadow:var(--gm-shadow-s)}
.hub-btn:active{transform:scale(.98)}
.hub-btn.teal{background:var(--gm-teal-2)}.hub-btn.teal:hover{background:var(--gm-teal)}
.hub-btn.ghost{background:#fff;color:var(--gm-navy);border:1.5px solid var(--gm-line)}.hub-btn.ghost:hover{border-color:var(--gm-teal)}
.hub-btn.small{padding:7px 12px;min-height:36px;font-size:.9rem;border-radius:10px}
.hub-btn.danger{background:var(--gm-bad)}
.hub-btn[disabled]{opacity:.55;cursor:not-allowed}
.hub-input,.hub-select,.hub-textarea{width:100%;border:1.5px solid var(--gm-line);border-radius:12px;padding:11px 14px;background:#fff;color:var(--gm-ink);font-size:16px}
.hub-input:focus,.hub-select:focus,.hub-textarea:focus{outline:3px solid rgba(25,179,166,.25);border-color:var(--gm-teal)}
.hub-textarea{min-height:120px;resize:vertical;font-family:inherit}
.hub-label{display:block;font-weight:700;margin:12px 0 6px}
.hub-help{font-size:.85rem;color:var(--gm-muted)}
.hub-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.hub-grid{display:grid;gap:18px}
.hub-grid.c2{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))}
.hub-grid.c3{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
.hub-grid.c4{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.hub-card{background:#fff;border:1px solid var(--gm-line);border-radius:var(--gm-radius);box-shadow:var(--gm-shadow-s);padding:20px;position:relative}
.hub-card.link{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s}
.hub-card.link:hover{transform:translateY(-3px);box-shadow:var(--gm-shadow);border-color:#bfe3e0}
.hub-card h3{margin:0 0 6px;font-size:1.12rem;color:var(--gm-navy)}
.hub-card p{color:var(--gm-muted);margin:0 0 8px}
.hub-panel{background:var(--gm-sky-2);border:1px solid var(--gm-line);border-radius:var(--gm-radius);padding:22px}

/* badges */
.hub-badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:3px 10px;font-size:.78rem;font-weight:700;background:var(--gm-sky);color:var(--gm-navy);white-space:nowrap}
.hub-badge.learning{background:#e6f4ff;color:#0f4f8f}
.hub-badge.standard_explanation{background:#e8f7f4;color:#0b6e66}
.hub-badge.official_source{background:#efe9ff;color:#4d2fa0}
.hub-badge.binding_guidance{background:#fff2df;color:#8a4c00}
.hub-badge.approved{background:#e3f6ec;color:var(--gm-ok)}
.hub-badge.pending_review,.hub-badge.draft{background:#fff4e0;color:var(--gm-warn)}
.hub-badge.rejected{background:#fde8eb;color:var(--gm-bad)}
.hub-badge.official{background:#efe9ff;color:#4d2fa0}.hub-badge.system{background:#e6f4ff;color:#0f4f8f}

/* hero */
.hub-hero{background:var(--gm-grad);color:#fff;border-radius:0 0 34px 34px;overflow:hidden;position:relative;margin:-1px 0 0}
.hub-hero-inner{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:24px;max-width:1200px;margin:0 auto;padding:46px 16px 54px}
.hub-hero h1{font-size:clamp(2rem,4.6vw,3.3rem);line-height:1.12;margin:12px 0 12px;font-weight:900;letter-spacing:-.5px}
.hub-hero h1 em{font-style:normal;color:#7ee7dc}
.hub-hero p{color:#cfe2ef;font-size:1.1rem;max-width:560px}
.hub-hero .hub-eyebrow{background:rgba(255,255,255,.12);color:#bff3ee}
.hub-hero-art{width:100%;height:auto;filter:drop-shadow(0 25px 40px rgba(0,0,0,.25))}
.hub-hero-tags{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 0;padding:0;list-style:none}
.hub-hero-tags li{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:5px 12px;font-size:.9rem}
.hub-search{display:flex;gap:8px;background:#fff;border-radius:16px;padding:7px;box-shadow:var(--gm-shadow);max-width:620px;margin-top:22px}
.hub-search input{flex:1;border:0;font-size:16px;padding:8px 10px;color:var(--gm-ink);background:transparent;min-width:0}
.hub-search input:focus{outline:none}
.hub-subhero{background:var(--gm-grad);color:#fff;border-radius:0 0 28px 28px;margin-bottom:26px}
.hub-subhero .hub-wrap{display:grid;grid-template-columns:1.3fr .7fr;gap:20px;align-items:center;padding-top:30px;padding-bottom:30px}
.hub-subhero h1{font-size:clamp(1.6rem,3.6vw,2.4rem);margin:8px 0;font-weight:900}
.hub-subhero p{color:#cfe2ef;margin:0}
.hub-subhero img{width:100%;max-height:200px;object-fit:contain}
.hub-crumbs{font-size:.88rem;color:#bcd3e4;margin-bottom:4px}
.hub-crumbs a{color:#e7f6ff;text-decoration:underline;text-underline-offset:3px}

/* four product areas: see visual pass block at the end */

/* standard parts strip */
.hub-parts{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.hub-part{border-radius:16px;overflow:hidden;border:1px solid var(--gm-line);background:#fff;cursor:pointer}
.hub-part-head{color:#fff;font-weight:800;padding:8px 12px}
.hub-part:nth-child(1) .hub-part-head{background:#1d5fa8}.hub-part:nth-child(2) .hub-part-head{background:#e8812a}
.hub-part:nth-child(3) .hub-part-head{background:#0e9b8f}.hub-part:nth-child(4) .hub-part-head{background:#6aa830}
.hub-part img{width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--gm-sky)}
.hub-part div.b{padding:10px 12px}.hub-part div.b strong{display:block;color:var(--gm-navy)}.hub-part div.b span{font-size:.88rem;color:var(--gm-muted)}

/* tracks & courses */
.hub-track{display:grid;grid-template-columns:260px 1fr;gap:20px;align-items:start;background:#fff;border:1px solid var(--gm-line);border-radius:22px;padding:18px;box-shadow:var(--gm-shadow-s);margin-bottom:22px}
.hub-track-cover{width:100%;border-radius:16px;background:var(--gm-sky);aspect-ratio:16/9;object-fit:cover}
.hub-track h3{font-size:1.3rem;margin:4px 0 4px;color:var(--gm-navy)}
.hub-courses{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin-top:12px}
.hub-course{border:1px solid var(--gm-line);border-radius:16px;overflow:hidden;background:#fff;cursor:pointer;display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s}
.hub-course:hover{transform:translateY(-3px);box-shadow:var(--gm-shadow)}
.hub-course img{width:100%;aspect-ratio:16/9;object-fit:cover;background:linear-gradient(135deg,#eaf6f8,#d8ecf7)}
.hub-course .b{padding:12px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.hub-course strong{color:var(--gm-navy);line-height:1.35}
.hub-course small{color:var(--gm-muted)}
.hub-progress{height:8px;border-radius:99px;background:#e6eef3;overflow:hidden}
.hub-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--gm-teal),var(--gm-blue));border-radius:99px;transition:width .4s ease}
.hub-resume,.hub-cta{display:flex;gap:16px;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#e7f7f5,#e8f1fb);border:1px solid #c8e7e3;border-radius:18px;padding:16px 18px;margin-bottom:22px;flex-wrap:wrap}
.hub-note{border-radius:14px;padding:12px 14px;background:#fff7e8;border:1px solid #f3dcae;color:#704600;font-size:.93rem}
.hub-note.info{background:var(--gm-sky);border-color:#cde6ec;color:#1c4a63}

/* course outline */
.hub-module{background:#fff;border:1px solid var(--gm-line);border-radius:18px;margin-bottom:14px;overflow:hidden}
.hub-module-head{padding:14px 18px;background:var(--gm-sky-2);display:flex;justify-content:space-between;gap:10px;align-items:center;font-weight:800;color:var(--gm-navy)}
.hub-lesson-row{display:flex;gap:12px;align-items:center;padding:12px 18px;border-top:1px solid var(--gm-line);cursor:pointer}
.hub-lesson-row:hover{background:#f7fcfc}
.hub-lesson-state{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:none;border:2px solid var(--gm-line);color:var(--gm-muted);font-size:.8rem;font-weight:800}
.hub-lesson-state.started{border-color:var(--gm-blue);color:var(--gm-blue)}
.hub-lesson-state.completed{background:var(--gm-teal-2);border-color:var(--gm-teal-2);color:#fff}
.hub-lesson-row .t{flex:1;min-width:0}.hub-lesson-row .t strong{display:block}.hub-lesson-row .t small{color:var(--gm-muted)}

/* lesson reader */
.hub-lesson{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.hub-reader{background:#fff;border:1px solid var(--gm-line);border-radius:22px;padding:clamp(18px,3vw,34px);box-shadow:var(--gm-shadow-s)}
.hub-reader h1{font-size:clamp(1.5rem,3vw,2.1rem);color:var(--gm-navy);margin:6px 0 8px}
.hub-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.hub-body{font-size:1.06rem;line-height:1.85}
.hub-body h3{color:var(--gm-navy);margin:26px 0 8px;font-size:1.25rem}
.hub-body h4{color:var(--gm-blue);margin:18px 0 6px}
.hub-body ul,.hub-body ol{padding-inline-start:22px}
.hub-body li{margin:4px 0}
.hub-body table{border-collapse:collapse;width:100%;margin:12px 0;font-size:.95rem;display:block;overflow-x:auto}
.hub-body th,.hub-body td{border:1px solid var(--gm-line);padding:8px 10px;text-align:start}
.hub-body th{background:var(--gm-sky)}
.hub-body figure{margin:18px 0;background:var(--gm-sky-2);border:1px solid var(--gm-line);border-radius:16px;padding:12px;text-align:center}
.hub-body figure img{max-width:100%;height:auto;max-height:360px}
.hub-body figcaption{font-size:.88rem;color:var(--gm-muted);margin-top:6px}
.hub-body aside{border-radius:14px;padding:12px 16px;margin:16px 0;background:var(--gm-sky);border-inline-start:5px solid var(--gm-teal)}
.hub-body aside.warning{background:#fff6e6;border-color:var(--gm-gold)}
.hub-body aside.tip{background:#eef6ff;border-color:var(--gm-blue)}
.hub-body blockquote{margin:14px 0;padding:10px 16px;border-inline-start:4px solid var(--gm-blue);background:#f6f9fd;border-radius:10px}
.hub-keypoints{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.hub-keypoints li{display:flex;gap:10px;align-items:flex-start}
.hub-keypoints li::before{content:"✓";color:#fff;background:var(--gm-teal-2);border-radius:50%;width:22px;height:22px;display:grid;place-items:center;font-size:.75rem;flex:none;margin-top:3px}
.hub-side{position:sticky;top:84px;display:grid;gap:14px}
.hub-sources{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.hub-sources li{font-size:.9rem;border-bottom:1px dashed var(--gm-line);padding-bottom:8px}
.hub-sources small{display:block;color:var(--gm-muted)}
.hub-pager{display:flex;justify-content:space-between;gap:10px;margin-top:22px;flex-wrap:wrap}

/* quiz */
.hub-quiz{margin-top:26px;border-top:2px solid var(--gm-sky);padding-top:18px}
.hub-q{background:var(--gm-sky-2);border:1px solid var(--gm-line);border-radius:16px;padding:16px;margin-bottom:14px}
.hub-q p.prompt{font-weight:700;color:var(--gm-navy);margin-bottom:10px}
.hub-opt{display:flex;width:100%;text-align:start;gap:10px;align-items:center;background:#fff;border:1.5px solid var(--gm-line);border-radius:12px;padding:11px 14px;margin:7px 0;cursor:pointer;font:inherit;color:var(--gm-ink);min-height:44px}
.hub-opt:hover{border-color:var(--gm-teal)}
.hub-opt.correct{border-color:var(--gm-ok);background:#e9f8f0}
.hub-opt.wrong{border-color:var(--gm-bad);background:#fdeef0}
.hub-opt.selected{border-color:var(--gm-blue);background:#eef5ff}
.hub-opt .k{width:26px;height:26px;border-radius:8px;background:var(--gm-sky);display:grid;place-items:center;font-weight:800;flex:none}
.hub-expl{margin-top:8px;font-size:.95rem;border-radius:10px;padding:10px 12px;background:#fff;border:1px solid var(--gm-line)}
.hub-score{font-size:2.6rem;font-weight:900;color:var(--gm-navy)}

/* knowledge */
.hub-chips{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}
.hub-chip{border:1.5px solid var(--gm-line);background:#fff;border-radius:999px;padding:7px 14px;font-weight:600;cursor:pointer;color:var(--gm-navy);min-height:38px;font:inherit}
.hub-chip.on{background:var(--gm-navy);border-color:var(--gm-navy);color:#fff}
.hub-chip small{opacity:.7;margin-inline-start:4px}
.hub-kcard{display:flex;flex-direction:column;gap:8px}
.hub-kcard .top{display:flex;gap:6px;flex-wrap:wrap}
.hub-tabs{display:flex;gap:6px;border-bottom:2px solid var(--gm-line);margin-bottom:18px;overflow-x:auto}
.hub-tab{background:none;border:0;padding:10px 16px;font-weight:700;color:var(--gm-muted);border-bottom:3px solid transparent;margin-bottom:-2px;cursor:pointer;white-space:nowrap;font:inherit}
.hub-tab.on{color:var(--gm-navy);border-color:var(--gm-teal)}
.hub-gloss{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.hub-gloss div{background:#fff;border:1px solid var(--gm-line);border-radius:14px;padding:14px}
.hub-gloss strong{color:var(--gm-navy)}.hub-gloss em{color:var(--gm-muted);font-style:normal;font-size:.85rem;margin-inline-start:6px}
.hub-table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}
.hub-table th,.hub-table td{padding:10px 12px;border-bottom:1px solid var(--gm-line);text-align:start;vertical-align:top;font-size:.94rem}
.hub-table th{background:var(--gm-sky);color:var(--gm-navy)}
.hub-table-wrap{overflow-x:auto;border:1px solid var(--gm-line);border-radius:14px}

/* tools / checklist / documents */
.hub-check{display:flex;gap:12px;align-items:flex-start;padding:12px;border-bottom:1px solid var(--gm-line)}
.hub-check input{width:22px;height:22px;margin-top:3px;accent-color:var(--gm-teal-2)}
.hub-doc{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:flex-start}

/* admin */
.hub-admin{display:grid;grid-template-columns:320px 1fr;gap:20px;align-items:start}
.hub-list-item{padding:10px 12px;border-bottom:1px solid var(--gm-line);cursor:pointer;display:flex;justify-content:space-between;gap:8px;align-items:center}
.hub-list-item:hover,.hub-list-item.on{background:var(--gm-sky-2)}
.hub-stat{background:#fff;border:1px solid var(--gm-line);border-radius:16px;padding:14px}
.hub-stat b{font-size:1.6rem;color:var(--gm-navy);display:block}

.hub-empty{text-align:center;padding:40px 16px;color:var(--gm-muted)}
.hub-empty img{width:110px;opacity:.85;margin-bottom:10px}
.hub-loading{padding:60px 0;text-align:center;color:var(--gm-muted)}
.hub-loading::before{content:"";display:block;width:34px;height:34px;margin:0 auto 12px;border-radius:50%;border:4px solid var(--gm-sky);border-top-color:var(--gm-teal);animation:hubspin 0.9s linear infinite}
@keyframes hubspin{to{transform:rotate(360deg)}}
.hub-status{min-height:1.4em;font-size:.92rem;margin-top:8px}
.hub-status.err{color:var(--gm-bad)}.hub-status.ok{color:var(--gm-ok)}
.hub-features{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;background:var(--gm-navy);color:#e4f1f8;border-radius:20px;padding:18px}
.hub-features div{display:flex;gap:10px;align-items:center;font-weight:600}
.hub-features div::before{content:"✓";display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--gm-teal);color:#fff;flex:none}
.hub-jobs{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media (max-width:980px){
  .hub-hero-inner{grid-template-columns:1fr;padding-top:30px}
  .hub-hero-art{max-height:260px;object-fit:contain}
  .hub-areas{grid-template-columns:repeat(2,1fr)}
  .hub-parts{grid-template-columns:repeat(2,1fr)}
  .hub-track{grid-template-columns:1fr}
  .hub-lesson{grid-template-columns:1fr}
  .hub-side{position:static}
  .hub-admin{grid-template-columns:1fr}
  .hub-features{grid-template-columns:repeat(2,1fr)}
  .hub-subhero .hub-wrap{grid-template-columns:1fr}
  .hub-subhero img{display:none}
}
@media (max-width:560px){
  .hub-areas{grid-template-columns:1fr 1fr;gap:10px}
  .hub-features{grid-template-columns:1fr}
  .hub-search{flex-direction:column}
  .hub-btn{width:auto}
  .hub-reader{border-radius:16px}
  .hub-body{font-size:1rem}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Header: the FIELD/PRO/158 workspace stays reachable from TOOLS; keep the main nav to the four areas. */
#desktop-nav a[data-gm-tool]{display:none}
#desktop-nav a{white-space:nowrap}
#desktop-nav a.active{color:var(--gm-teal-2);font-weight:800}
.hub-mini4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.hub-mini4 img{width:40px;height:40px}
@media (max-width:560px){.hub-mini4{grid-template-columns:repeat(2,minmax(0,1fr))}}
#hub-screen img{max-width:100%}

/* GAS EXPERT chat */
.hub-expert{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:start}
.hub-expert-side{position:sticky;top:84px;max-height:calc(100vh - 100px);overflow:auto}
.hub-chat{display:flex;flex-direction:column;min-height:560px;padding:0;overflow:hidden}
.hub-chat-log{flex:1;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:12px;max-height:62vh;background:linear-gradient(180deg,#f7fbfc,#fff)}
.hub-msg{display:flex}.hub-msg.user{justify-content:flex-start}.hub-msg.bot{justify-content:flex-end}
.hub-msg .bubble{max-width:min(760px,92%);border-radius:18px;padding:12px 16px;line-height:1.75;box-shadow:var(--gm-shadow-s)}
.hub-msg.user .bubble{background:var(--gm-navy);color:#fff;border-bottom-right-radius:6px}
.hub-msg.bot .bubble{background:#fff;border:1px solid var(--gm-line);border-bottom-left-radius:6px}
.hub-answer ul{margin:6px 0;padding-inline-start:20px}
sup.hub-label{display:inline-grid;place-items:center;min-width:22px;height:18px;padding:0 4px;border-radius:6px;background:var(--gm-sky);color:var(--gm-blue);font-size:.72rem;font-weight:800;margin:0 2px;vertical-align:super}
.hub-cites{margin-top:10px;padding-top:8px;border-top:1px dashed var(--gm-line);display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:.85rem}
.hub-cites summary{cursor:pointer;color:var(--gm-muted)}
.hub-cite{display:inline-flex;align-items:center;border-radius:999px;padding:3px 10px;background:#eef6ff;color:#0f4f8f;font-weight:600;text-decoration:none}
.hub-cite.si{background:#efe9ff;color:#4d2fa0}
a.hub-cite:hover{text-decoration:underline}
.hub-chat-input{display:flex;gap:10px;padding:12px;border-top:1px solid var(--gm-line);background:#fff;align-items:flex-end}
.hub-chat-input .hub-textarea{min-height:52px;max-height:160px}
.hub-chat .hub-help{padding:0 14px 12px}
.hub-dots{display:inline-flex;gap:4px;margin-inline-end:6px}.hub-dots i{width:7px;height:7px;border-radius:50%;background:var(--gm-teal);animation:hubdot 1s infinite ease-in-out}
.hub-dots i:nth-child(2){animation-delay:.15s}.hub-dots i:nth-child(3){animation-delay:.3s}
@keyframes hubdot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (max-width:980px){.hub-expert{grid-template-columns:1fr}.hub-expert-side{position:static;max-height:none}.hub-chat-log{max-height:none;min-height:50vh}}

/* ===== Visual pass v5 — aligned with the owner's design references (layout, palette, rhythm) ===== */
.hub-arrow{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--gm-navy);color:#fff;flex:none;transition:transform .18s ease,background .18s}
.hub-arrow::before{content:"\2190";font-weight:800;font-size:1.05rem;line-height:1}
a:hover>.hub-arrow{background:var(--gm-blue);transform:translateX(-3px)}
.hub-num{width:38px;height:38px;background:var(--gm-blue);box-shadow:0 0 0 4px #dcebf8;font-size:1.05rem}
.hub-title-row{gap:8px}

/* hero: brand lockup + slogan box */
.hub-hero-inner{grid-template-columns:1fr 1fr;padding:44px 16px 76px}
.hub-brandlock{display:flex;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:16px}
.hub-brandlock .hub-flame{width:74px;height:auto;flex:none;filter:drop-shadow(0 8px 18px rgba(0,0,0,.3))}
.hub-hero h1.hub-wordmark{direction:ltr;text-align:right;font-size:clamp(2.4rem,5.4vw,4.1rem);line-height:1;margin:0;letter-spacing:-1px;font-weight:900;color:#fff}
.hub-wordmark span{color:#8fd9ff}
.hub-hero p.hub-brand-sub{margin:8px 0 0;color:#fff;font-weight:700;font-size:clamp(1.02rem,1.8vw,1.3rem)}
.hub-hero-dots{display:flex;flex-wrap:wrap;gap:4px 0;list-style:none;padding:0;margin:18px 0 0;color:#cfe2ef;font-weight:600}
.hub-hero-dots li+li::before{content:"\2022";margin:0 10px;color:var(--gm-gold)}
.hub-hero p.hub-hero-lead{margin:16px 0 0;font-size:1.15rem;color:#e4f1f8;line-height:1.6}
.hub-hero-lead strong{color:#fff}
.hub-hero-visual{position:relative}
.hub-hero p.hub-slogan{position:absolute;top:8%;inset-inline-end:-22px;margin:0;background:rgba(11,37,56,.9);border:1.5px solid rgba(126,231,220,.45);border-radius:18px;padding:14px 22px;box-shadow:0 18px 40px rgba(0,0,0,.3);color:#fff;max-width:none}
.hub-slogan span,.hub-slogan em{display:block;font-size:clamp(1.15rem,1.9vw,1.55rem);font-weight:800;line-height:1.35;font-style:normal}
.hub-slogan em{color:#7ee7dc}

/* four product areas */
.hub-areas{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:-40px;position:relative;z-index:2}
.hub-area{background:linear-gradient(180deg,#fff 0%,#f6fbfd 100%);border-radius:20px;border:1px solid var(--gm-line);box-shadow:var(--gm-shadow);padding:18px;display:flex;flex-direction:column;gap:10px;color:inherit;text-decoration:none;transition:transform .18s ease,border-color .18s}
.hub-area:hover{transform:translateY(-4px);border-color:var(--gm-teal)}
.hub-area-top{display:flex;align-items:center;gap:12px}
.hub-area-icon{width:54px;height:54px;border-radius:16px;background:#e3f0fb;display:grid;place-items:center;flex:none}
.hub-area-icon img{width:34px;height:34px}
.hub-area-titles{display:flex;flex-direction:column;min-width:0}
.hub-area b{font-size:1.1rem;letter-spacing:.8px;color:#134e8f;font-weight:900}
.hub-area strong{color:var(--gm-navy);font-size:.95rem}
.hub-area-desc{color:var(--gm-muted);font-size:.9rem;flex:1;line-height:1.5}
.hub-area .hub-arrow{align-self:flex-end;width:34px;height:34px}

/* sections as white panels, 158 + tracks side by side on wide screens */
.hub-pane{background:#fff;border:1px solid var(--gm-line);border-radius:22px;padding:22px;box-shadow:var(--gm-shadow-s)}
.hub-duo{display:grid;gap:22px;margin:34px 0}
.hub-duo>.hub-section{margin:0}
@media (min-width:1100px){.hub-duo{grid-template-columns:1.08fr 1fr;align-items:start}.hub-duo .hub-part div.b span{font-size:.82rem}}
.hub-part{box-shadow:var(--gm-shadow-s);transition:transform .18s ease,box-shadow .18s;color:inherit;text-decoration:none}
.hub-part:hover{transform:translateY(-3px);box-shadow:var(--gm-shadow)}
.hub-part-head{text-align:center;font-size:.95rem}
.hub-part div.b strong{color:#134e8f;margin-bottom:2px}

/* learning-track rows */
.hub-trackrows{display:grid;gap:12px}
.hub-trackrow{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:14px;align-items:center;background:var(--gm-sky-2);border:1px solid var(--gm-line);border-radius:16px;padding:10px;color:inherit;text-decoration:none;transition:border-color .18s,box-shadow .18s}
.hub-trackrow:hover{border-color:var(--gm-teal);box-shadow:var(--gm-shadow-s)}
.hub-trackrow-img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px;background:var(--gm-sky)}
.hub-trackrow h3{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:1.06rem;color:var(--gm-navy)}
.hub-trackrow-ic{width:30px;height:30px;border-radius:50%;background:var(--gm-blue);display:grid;place-items:center;flex:none}
.hub-trackrow-ic img{width:18px;height:18px;filter:brightness(0) invert(1)}
.hub-trackrow p{margin:0 0 4px;color:var(--gm-muted);font-size:.9rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-trackrow .hub-arrow{margin-inline-end:6px}

/* lesson example */
.hub-example-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;align-items:center}
.hub-example-fig{margin:0;text-align:center;order:2}
.hub-example-fig .hub-hero-art{filter:none;border-radius:16px;background:var(--gm-sky-2)}
.hub-flow{direction:ltr;display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 4px;font-weight:700;font-size:.88rem}
.hub-flow span{background:#eef5fd;color:#134e8f;border-radius:999px;padding:4px 12px;direction:rtl}
.hub-flow i::before{content:"\2192";font-style:normal;color:var(--gm-teal-2);font-size:1.3rem;font-weight:900}
.hub-learnbox{background:var(--gm-sky);border-radius:16px;padding:14px 16px;border-inline-start:4px solid var(--gm-teal);margin-bottom:14px}
.hub-learnbox strong{display:block;color:var(--gm-navy);font-size:1.08rem;margin-bottom:4px}
.hub-learnbox p{margin:0;color:#2c4a5e}
.hub-tile{text-align:center;font-weight:700;font-size:.9rem;color:var(--gm-navy);display:flex;flex-direction:column;align-items:center;gap:6px}

/* library cards */
.hub-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hub-libcard{display:flex;flex-direction:column;border:1px solid var(--gm-line);border-radius:16px;overflow:hidden;background:#fff;color:inherit;text-decoration:none;transition:transform .18s ease,box-shadow .18s}
.hub-libcard:hover{transform:translateY(-3px);box-shadow:var(--gm-shadow)}
.hub-libcard-art{display:block;height:118px;background:linear-gradient(135deg,#eaf6f8,#dcebf8)}
.hub-libcard-art img{width:100%;height:100%;object-fit:contain;padding:12px}
.hub-libcard strong{padding:10px 14px 2px;color:#134e8f;font-size:1.02rem}
.hub-libcard span:last-child{padding:0 14px 14px;color:var(--gm-muted);font-size:.86rem}

/* knowledge cards: colour accent per content kind */
.hub-kcard{border-top:4px solid var(--gm-line)}
.hub-kcard.k-learning{border-top-color:#1d5fa8}.hub-kcard.k-standard_explanation{border-top-color:#0e9b8f}
.hub-kcard.k-official_source{border-top-color:#6a4cc4}.hub-kcard.k-binding_guidance{border-top-color:#e0a020}

/* header brand flame */
.brand-icon img{width:24px;height:30px;display:block}

/* navy footer band */
.footer.gm-footer{background:var(--gm-navy);color:#a9c1d3;border-top:0;padding:0;font-size:12.5px}
.gm-footer-band{background:linear-gradient(135deg,#0b2538 0%,#10314d 60%,#123f63 100%);border-bottom:1px solid rgba(255,255,255,.1)}
.gm-footer-top{display:flex;align-items:center;gap:28px;padding-top:26px;padding-bottom:26px;flex-wrap:wrap}
.gm-footer-main{flex:1;min-width:0}
.gm-footer-tagline{margin:0 0 12px;color:#fff;font-weight:800;font-size:clamp(1.05rem,2vw,1.35rem)}
.gm-footer-links{display:flex;flex-wrap:wrap;gap:4px 6px}
.gm-footer-links a{display:inline-flex;align-items:center;gap:8px;color:#e4f1f8;font-weight:700;font-size:.95rem;padding:6px 12px;border-radius:10px;min-height:40px}
.gm-footer-links a:hover{background:rgba(255,255,255,.08);color:#7ee7dc}
.gm-footer-links img{width:20px;height:20px;filter:brightness(0) invert(1);opacity:.85}
.gm-footer-brand{order:2;display:flex;align-items:center;gap:12px;direction:ltr;color:#fff;font-weight:900;font-size:clamp(1.5rem,3vw,2.1rem);letter-spacing:-.5px;padding-inline-start:28px;border-inline-start:1px solid rgba(255,255,255,.18)}
.gm-footer-brand img{width:40px;height:50px}
.gm-footer .footer-inner{padding-top:16px;padding-bottom:18px}
.gm-footer .footer-inner a{color:#e4f1f8}
.gm-footer .footer-inner a:hover{color:#7ee7dc}
.gm-footer .footer-inner [data-gm-download]{color:#7ee7dc}

@media (max-width:980px){
  .hub-areas{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hub-hero-inner{grid-template-columns:1fr;padding-bottom:70px}
  .hub-hero p.hub-slogan{position:static;display:flex;flex-wrap:wrap;gap:4px 10px;justify-content:center;margin-top:12px;padding:12px 16px}
  .hub-slogan span,.hub-slogan em{display:inline}
  .hub-example-grid{grid-template-columns:1fr}
  .hub-example-fig{order:0}
  .hub-library{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:710px){
  .gm-footer-brand{order:-1;border:0;padding:0}
  .gm-footer-top{gap:14px;flex-direction:column;align-items:flex-start}
  .gm-footer-main{width:100%}
}
@media (max-width:560px){
  .hub-brandlock .hub-flame{width:52px}
  .hub-hero-inner{padding-top:26px}
  .hub-hero-visual .hub-hero-art{max-height:200px}
  .hub-area{padding:14px 12px;gap:8px}
  .hub-area-top{flex-direction:column;align-items:flex-start;gap:8px}
  .hub-area-icon{width:44px;height:44px}.hub-area-icon img{width:28px;height:28px}
  .hub-area-desc{display:none}
  .hub-area{position:relative}
  .hub-area .hub-arrow{position:absolute;top:14px;inset-inline-end:12px;width:30px;height:30px}
  .hub-pane{padding:16px;border-radius:18px}
  .hub-trackrow{grid-template-columns:92px minmax(0,1fr) auto;gap:10px;padding:8px}
  .hub-trackrow h3{font-size:.98rem}
  .hub-trackrow-ic{display:none}
  .hub-trackrow .hub-arrow{width:30px;height:30px;margin:0}
  .hub-libcard-art{height:86px}
  .hub-libcard strong{font-size:.95rem;padding:8px 10px 2px}
  .hub-libcard span:last-child{padding:0 10px 12px;font-size:.8rem}
  .gm-footer-links a{font-size:.88rem;padding:6px 8px}
}

/* short pages: keep the footer band low on the screen */
#hub-screen:not([hidden]){min-height:62vh}
/* long edition/meta badges must wrap on phones (was forcing a 651px layout on knowledge items) */
.hub-meta .hub-badge{white-space:normal;max-width:100%}
@media (max-width:980px){.hub-lesson{grid-template-columns:minmax(0,1fr)}}

/* ===== Inner pages pass (lane U2) — academy, course, lesson, exam, standards, search, tools, expert, admin ===== */
/* keyboard focus on every clickable surface */
#hub-screen a:focus-visible,#hub-screen button:focus-visible,.hub-lesson-row:focus-visible,.hub-list-item:focus-visible,.hub-course:focus-visible,.hub-card.link:focus-visible,.hub-chip:focus-visible,.hub-opt:focus-visible,.hub-tab:focus-visible{outline:3px solid var(--gm-teal-2);outline-offset:2px}
.hub-opt:focus-within{border-color:var(--gm-blue)}
label.hub-label{font-size:.95rem;color:var(--gm-navy)}
/* sub-hero: icon files sit in a framed tile instead of a raw 200px line icon on navy */
.hub-subhero-icon{justify-self:center;width:132px;height:132px;border-radius:34px;background:rgba(255,255,255,.96);display:grid;place-items:center;box-shadow:0 18px 40px rgba(0,0,0,.25),0 0 0 8px rgba(255,255,255,.08)}
.hub-subhero .hub-subhero-icon img{width:70px;height:70px;max-height:none}
/* long badges inside cards wrap instead of overflowing */
.hub-card>.hub-badge,.hub-kcard .top .hub-badge,.hub-card .hub-row>.hub-badge{white-space:normal;text-align:start;max-width:100%}

/* academy */
.hub-track-main{min-width:0}
.hub-track-desc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--gm-muted);margin:0}
.hub-facts{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:12px 0 2px}
.hub-facts li{background:var(--gm-sky-2);border:1px solid var(--gm-line);border-radius:10px;padding:5px 11px;font-size:.88rem;color:var(--gm-muted)}
.hub-facts b{color:var(--gm-navy);font-size:1rem;margin-inline-end:4px}
.hub-course .b{gap:5px}
.hub-cstate{align-self:flex-start;font-size:.74rem;font-weight:800;border-radius:999px;padding:2px 9px;background:#e6f4ff;color:#0f4f8f}
.hub-cstate.active{background:#e3f4f2;color:#0b6e66}.hub-cstate.done{background:#e3f6ec;color:#0d7049}.hub-cstate.soon{background:#eef2f5;color:#4f6273}
.hub-course.is-soon img{filter:grayscale(.55);opacity:.75}
.hub-cprog{margin-top:auto;display:grid;gap:4px;padding-top:4px}
.hub-grid.hub-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.hub-card.link p,.hub-card.link small,.hub-course small{font-weight:400}
.hub-stats .hub-stat{display:flex;flex-direction:column;gap:2px;color:var(--gm-muted);font-weight:600;border-top:4px solid var(--gm-teal)}
.hub-stats .hub-stat:nth-child(2){border-top-color:var(--gm-blue)}.hub-stats .hub-stat:nth-child(3){border-top-color:var(--gm-gold)}.hub-stats .hub-stat:nth-child(4){border-top-color:#6a4cc4}

/* course outline: module badge, progress path, affordance */
.hub-course-facts{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 18px}
.hub-course-facts span{background:#fff;border:1px solid var(--gm-line);border-radius:999px;padding:5px 12px;font-size:.88rem;font-weight:700;color:var(--gm-navy)}
.hub-module{box-shadow:var(--gm-shadow-s)}
.hub-module-title{display:flex;align-items:center;gap:10px;min-width:0}
.hub-module-n{width:30px;height:30px;border-radius:50%;background:var(--gm-blue);color:#fff;display:grid;place-items:center;font-size:.9rem;flex:none;box-shadow:0 0 0 3px #dcebf8}
.hub-path .hub-lesson-row{position:relative}
.hub-path .hub-lesson-row::before{content:"";position:absolute;inset-inline-start:31px;top:0;bottom:0;width:2px;background:var(--gm-line)}
.hub-path .hub-lesson-row:first-child::before{top:50%}
.hub-path .hub-lesson-row:last-child::before{bottom:50%}
.hub-path .hub-lesson-row:only-child::before{display:none}
.hub-path .hub-lesson-row:has(.hub-lesson-state.completed)::before{background:var(--gm-teal)}
.hub-path .hub-lesson-state{position:relative;z-index:1}
.hub-path .hub-lesson-state:not(.completed){background:#fff}
.hub-lesson-row .t small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hub-dur{font-size:.8rem;font-weight:700;color:var(--gm-muted);background:var(--gm-sky-2);border:1px solid var(--gm-line);border-radius:999px;padding:2px 9px;white-space:nowrap;flex:none}
.hub-chev{flex:none;color:#8aa0b1;font-size:1.5rem;line-height:1;transition:transform .15s ease,color .15s}
.hub-chev::before{content:"\2039"}
.hub-lesson-row:hover .hub-chev{color:var(--gm-teal-2);transform:translateX(-3px)}

/* lesson reader */
.hub-reader>.hub-lead,.hub-reader .hub-body{max-width:72ch}
.hub-side{position:static}
.hub-h3-ic{width:22px;height:22px;flex:none}
.hub-srcbox h3{display:flex;align-items:center;gap:8px}
.hub-kp{background:linear-gradient(135deg,#e7f7f5,#eef5fd);border-color:#c8e7e3}
.hub-kp h3{color:var(--gm-navy)}
.hub-quiz-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.hub-quiz-head .hub-h2{margin:0}
.hub-opt.correct::after,.hub-opt.wrong::after{margin-inline-start:auto;font-weight:900;font-size:1.05rem}
.hub-opt.correct::after{content:"\2713";color:var(--gm-ok)}
.hub-opt.wrong::after{content:"\2715";color:var(--gm-bad)}
.hub-opt.correct .k{background:var(--gm-ok);color:#fff}
.hub-opt.wrong .k{background:var(--gm-bad);color:#fff}
.hub-opt:disabled{cursor:default}
.hub-opt:disabled:not(.correct):not(.wrong){opacity:.72}
.hub-expl.ok{background:#e9f8f0;border-color:#b5e3cb}
.hub-expl.bad{background:#fdeef0;border-color:#f3c3ca}
.hub-lpath h3{margin:0 0 8px}
.hub-lpath-pr{display:grid;gap:6px;margin-bottom:10px}
.hub-lpath ol{list-style:none;margin:0;padding:0;max-height:360px;overflow:auto;display:grid;gap:2px}
.hub-lpath a{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:10px;color:var(--gm-ink);text-decoration:none;font-size:.9rem;line-height:1.35}
.hub-lpath a:hover{background:var(--gm-sky-2)}
.hub-lpath li.cur a{background:#eaf3fd;font-weight:800;color:var(--gm-navy);box-shadow:inset -3px 0 0 var(--gm-blue)}
.hub-lpath .hub-lesson-state{width:24px;height:24px;font-size:.72rem;background:#fff}
.hub-lpath .hub-lesson-state.completed{background:var(--gm-teal-2)}

/* exam */
.hub-exam-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.hub-exam-facts div{background:var(--gm-sky-2);border:1px solid var(--gm-line);border-radius:14px;padding:14px 10px;display:grid;gap:2px}
.hub-exam-facts b{font-size:1.8rem;color:var(--gm-navy);font-weight:900;line-height:1.1}
.hub-exam-facts span{color:var(--gm-muted);font-size:.88rem}
.hub-exam-q{border:1px solid var(--gm-line)}
.hub-exam-q legend{font-weight:700;color:var(--gm-navy);padding:0 6px}
.hub-exam-q .hub-opt:has(input:checked){border-color:var(--gm-blue);background:#eef5ff}
.hub-exam-q .hub-opt input{accent-color:var(--gm-blue);width:18px;height:18px;flex:none}

/* standards library */
.hub-filter{display:flex;gap:12px;align-items:flex-start}
.hub-filter-l{flex:none;min-width:70px;font-weight:800;color:var(--gm-navy);font-size:.86rem;padding-top:10px}
.hub-filter .hub-chips{margin:0 0 10px;min-width:0}
.hub-results{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin:6px 0 14px;padding-top:12px;border-top:1px solid var(--gm-line)}
.hub-results strong{color:var(--gm-navy);font-size:1.05rem}
.hub-kcard p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hub-kcard h3{line-height:1.35}
.hub-kcard .hub-kmeta{margin-top:auto;padding-top:8px;border-top:1px dashed var(--gm-line)}
.hub-record dl{margin:0}
.hub-record dl>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;padding:8px 0;border-bottom:1px solid var(--gm-line);align-items:baseline}
.hub-record dl>div:last-child{border-bottom:0}
.hub-record dt{color:var(--gm-muted);font-size:.84rem;font-weight:700}
.hub-record dd{margin:0;font-size:.9rem;color:var(--gm-ink);overflow-wrap:anywhere}
.hub-record dd .hub-badge,.hub-table .hub-badge{white-space:normal}
/* search */
.hub-group{display:flex;align-items:center;gap:10px;margin-top:8px}
.hub-count{background:var(--gm-navy);color:#fff;border-radius:999px;font-size:.8rem;padding:2px 10px;font-weight:800}

/* tools workspace */
.hub-tool{display:flex;flex-direction:column;gap:6px;color:inherit;text-decoration:none}
.hub-tool-ic{width:52px;height:52px;border-radius:16px;background:#e3f0fb;display:grid;place-items:center;margin-bottom:4px}
.hub-tool-ic img{width:30px;height:30px}
.hub-tool p{flex:1;font-weight:400;font-size:.95rem}
.hub-tool .hub-arrow{align-self:flex-end;width:32px;height:32px}
.hub-card.link:hover>.hub-arrow{background:var(--gm-blue);transform:translateX(-3px)}
.hub-formcard{display:flex;flex-direction:column}
.hub-formcard>.hub-btn{align-self:flex-start;margin-top:auto}

/* GAS EXPERT chat */
.hub-chat-head{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--gm-line);background:#fff}
.hub-chat-head>div{flex:1;min-width:0;display:grid}
.hub-chat-head strong{color:var(--gm-navy);letter-spacing:.3px}
.hub-chat-head small{color:var(--gm-muted);font-size:.82rem}
.hub-live{font-size:.78rem;font-weight:800;border-radius:999px;padding:3px 10px;background:#eef2f5;color:#4f6273;white-space:nowrap}
.hub-live.on{background:#e3f6ec;color:#0d7049}
.hub-live.on::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--gm-ok);margin-inline-end:6px;vertical-align:1px}
.hub-avatar{width:34px;height:34px;border-radius:50%;background:var(--gm-navy);display:grid;place-items:center;flex:none;box-shadow:0 0 0 3px #dcebf8}
.hub-avatar img{width:16px;height:20px}
.hub-msg.bot{gap:10px;align-items:flex-start}
.hub-msg.bot>.hub-avatar{order:2;margin-top:2px}
.hub-msg.bot .bubble{min-width:0}

/* content admin */
.hub-adminstats .hub-stat h3{margin:0 0 8px;font-size:1rem;color:var(--gm-navy)}
.hub-list-item>span:first-child{min-width:0}
.hub-list-item>.hub-badge{flex:none}

@media (max-width:980px){
  .hub-subhero-icon{display:none}
  .hub-grid.hub-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .hub-stats{gap:10px}
  .hub-stats .hub-stat{padding:10px 12px}
  .hub-stats .hub-stat b{font-size:1.35rem}
  .hub-track{padding:14px;gap:12px}
  .hub-track-cover{aspect-ratio:21/9}
  .hub-courses{grid-template-columns:minmax(0,1fr);gap:10px}
  .hub-course{flex-direction:row;align-items:stretch}
  .hub-course img{width:104px;aspect-ratio:auto;height:auto;min-height:100%;flex:none}
  .hub-course .b{padding:10px 12px;min-width:0}
  .hub-course strong{font-size:.95rem}
  .hub-module-head{flex-direction:column;align-items:flex-start;gap:4px;padding:12px 14px}
  .hub-lesson-row{padding:12px 14px;flex-wrap:wrap}
  .hub-path .hub-lesson-row::before{inset-inline-start:27px}
  .hub-lesson-row .t{flex-basis:calc(100% - 80px)}
  .hub-dur{margin-inline-start:40px}
  .hub-chev{display:none}
  .hub-exam-facts{gap:8px}
  .hub-exam-facts b{font-size:1.35rem}
  .hub-exam-facts span{font-size:.78rem}
  .hub-filter{flex-direction:column;gap:4px}
  .hub-filter-l{padding-top:0}
  .hub-filter .hub-chips{flex-wrap:nowrap;overflow-x:auto;width:100%;padding-bottom:6px;scrollbar-width:thin}
  .hub-filter .hub-chip{white-space:nowrap;flex:none}
  .hub-chat-head{padding:10px 12px}
  .hub-msg .bubble{max-width:calc(100% - 44px)}
}

/* MATCH-first home */
.hub-hero-match .hub-hero-inner{padding:40px 16px 64px}
.hub-wordmark.small{font-size:1.35rem;margin:0}
.hub-match-h1{font-size:clamp(2rem,4.6vw,3.3rem);line-height:1.12;margin:18px 0 12px;font-weight:800;letter-spacing:-.01em}
.hub-match-h1 em{font-style:normal;color:var(--gm-gold)}
.hub-role-ctas{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 10px}
.hub-btn.big{font-size:1.08rem;padding:15px 26px;border-radius:14px;min-width:190px;justify-content:center}
.hub-btn.gold{background:var(--gm-gold);color:#1d1600;border-color:var(--gm-gold)}
.hub-btn.gold:hover{filter:brightness(1.05)}
.hub-btn.ghost-light{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.55)}
.hub-hero-note{opacity:.85;font-size:.92rem;margin:6px 0 0}
.hub-roles{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:-38px;position:relative;z-index:2}
.hub-role-card{background:#fff;border:1px solid var(--gm-line);border-radius:var(--gm-radius);box-shadow:var(--gm-shadow);padding:22px 22px 20px;border-top:5px solid var(--gm-teal)}
.hub-role-card.tech{border-top-color:var(--gm-gold)}
.hub-role-head{display:flex;gap:14px;align-items:center}
.hub-role-head img{width:52px;height:52px}
.hub-role-head h2{margin:2px 0 0;font-size:1.3rem}
.hub-kicker{font-size:.82rem;font-weight:700;color:var(--gm-teal-2);letter-spacing:.02em}
.hub-role-card.tech .hub-kicker{color:#8a5b00}
.hub-ticks{list-style:none;padding:0;margin:14px 0 18px;display:grid;gap:8px}
.hub-ticks li{position:relative;padding-inline-start:26px}
.hub-ticks li::before{content:"✓";position:absolute;inset-inline-start:0;top:0;width:20px;height:20px;border-radius:50%;background:var(--gm-sky);color:var(--gm-teal-2);font-weight:800;font-size:.8rem;display:grid;place-items:center}
.hub-title-row .hub-btn{margin-inline-start:auto}
.hub-opp{position:relative;display:flex;flex-direction:column;gap:8px}
.hub-opp h3{margin:4px 0 0}
.hub-opps-empty{grid-column:1/-1}
.hub-how .hub-how-h{margin:0 0 12px}
.hub-steps{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.hub-steps li{display:flex;gap:12px;align-items:flex-start}
.hub-steps .n{flex:0 0 34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:var(--gm-teal-2);color:#fff}
.hub-steps.tech .n{background:var(--gm-gold);color:#1d1600}
.hub-steps strong{display:block}
.hub-steps span:not(.n){color:var(--gm-muted);font-size:.94rem}
.hub-support-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:18px;align-items:start}
.hub-support-tracks{display:grid;gap:10px}
.hub-support-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hub-areas.compact{margin-top:26px}
.hub-areas.compact .hub-area{min-height:0}
@media (max-width:820px){
  .hub-roles{grid-template-columns:1fr;margin-top:-30px}
  .hub-support-grid{grid-template-columns:1fr}
  .hub-role-ctas .hub-btn.big{flex:1 1 100%;min-width:0}
}
.hub-grid.hub-opps{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:820px){.hub-grid.hub-opps{grid-template-columns:1fr}}
@media (max-width:820px){.hub-opps .hub-opp:nth-child(n+4){display:none}}

.hub-quotes{margin-top:10px;display:grid;gap:8px}
.hub-quote{margin:0;padding:10px 14px;border-inline-start:4px solid var(--gm-teal);background:var(--gm-sky-2);border-radius:10px;font-size:.96rem}
.hub-quote cite{display:block;margin-top:6px;font-style:normal;font-size:.82rem;color:var(--gm-muted)}
.hub-reader blockquote{margin:14px 0;padding:10px 14px;border-inline-start:4px solid var(--gm-teal);background:var(--gm-sky-2);border-radius:10px}
/* Facebook community invitation (home) */
.hub-community{display:flex;align-items:center;gap:20px;background:#eef5ff;border:1px solid #cfe0fb;border-radius:22px;padding:24px}
.hub-community-icon{flex:0 0 auto;display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:#1b66d6;color:#fff}
.hub-community-body{flex:1}.hub-community-body .hub-h2{margin:0 0 6px}.hub-community .hub-ticks{margin:10px 0 0}
.hub-btn.community{background:#1b66d6;border-color:#1b66d6;color:#fff;white-space:nowrap}.hub-btn.community:hover{background:#1557b8}
@media (max-width:760px){.hub-community{flex-direction:column;align-items:flex-start;padding:18px 16px}.hub-btn.community{width:100%;justify-content:center;white-space:normal}}
