/* AIraut V9 — cohesive portal system. Loaded after legacy styles to correct layout collisions. */
:root{
 --a9-paper:#f8f7f1;--a9-white:#fffefa;--a9-ink:#15334d;--a9-muted:#627789;
 --a9-teal:#087d75;--a9-teal2:#0b9a9d;--a9-mint:#e5f2e9;--a9-blue:#eaf2f8;
 --a9-line:rgba(21,51,77,.14);--a9-shadow:0 14px 38px rgba(21,51,77,.055);
 --a9-serif:"Playfair Display",Georgia,serif;--a9-sans:"DM Sans",Arial,sans-serif
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{font-family:var(--a9-sans)!important;color:var(--a9-ink)!important;background:var(--a9-paper)!important;line-height:1.55!important;-webkit-font-smoothing:antialiased}
body :where(h1,h2,h3,h4){color:var(--a9-ink);letter-spacing:-.035em}
body :where(p,small,.muted,.helper-text){color:var(--a9-muted)}
body :where(input,select,textarea){font:inherit;max-width:100%;min-height:46px;padding:11px 14px;border:1px solid var(--a9-line);border-radius:12px;background:var(--a9-white);color:var(--a9-ink)}
body :where(input,select,textarea):focus{outline:3px solid rgba(8,125,117,.14);border-color:var(--a9-teal)}
a,button{ -webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,[role=button]:focus-visible{outline:3px solid rgba(8,125,117,.3)!important;outline-offset:3px!important}
:where(.platform-header,.site-header,.login-header){position:sticky;top:0;z-index:80;background:rgba(255,254,250,.96)!important;backdrop-filter:blur(14px);border-bottom:1px solid var(--a9-line);box-shadow:0 5px 22px rgba(21,51,77,.035)}
:where(.platform-header,.login-header){min-height:76px;padding:12px clamp(18px,5vw,64px)!important;display:flex;align-items:center;justify-content:space-between;gap:18px}
:where(.platform-logo img,.platform-brand img,.brand img,.logo img,.login-logo img){display:block;width:auto!important;max-width:180px;max-height:48px;object-fit:contain}
:where(.platform-header-right,.header-right){display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
:where(.platform-role,.role-label,.student-label,.role){display:inline-flex;align-items:center;justify-content:center;border-radius:99px;background:var(--a9-mint)!important;color:var(--a9-teal)!important;padding:9px 14px!important;font-size:10px!important;letter-spacing:.14em!important;font-weight:800!important}
:where(.platform-back,.back-link){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 16px!important;border:1px solid var(--a9-line)!important;border-radius:99px!important;background:var(--a9-white)!important;color:var(--a9-ink)!important;text-decoration:none!important;font-size:13px!important;font-weight:700!important;white-space:nowrap}
:where(.platform-back,.back-link):hover{background:var(--a9-ink)!important;color:#fff!important}
:where(main,.platform-main){width:min(1280px,calc(100% - 64px))!important;max-width:1280px!important;margin-inline:auto!important;padding-inline:0!important}
.platform-page{background:var(--a9-paper)!important}
:where(.platform-intro,.faculty-page-hero,.platform-intro-text){max-width:100%}
:where(.platform-intro,.faculty-page-hero){padding:clamp(42px,6vw,76px) 0 38px!important;border-bottom:1px solid var(--a9-line)}
:where(.platform-eyebrow,.platform-intro .platform-eyebrow,.faculty-page-label,.dashboard-eyebrow,.small-label,.section-label){font-family:var(--a9-sans)!important;font-size:10px!important;letter-spacing:.18em!important;font-weight:800!important;color:var(--a9-teal)!important;text-transform:uppercase;margin:0 0 15px!important}
:where(.platform-intro h1,.faculty-page-hero h1){font-family:var(--a9-serif)!important;font-size:clamp(44px,6vw,76px)!important;line-height:1.04!important;letter-spacing:-.055em!important;font-weight:600!important;margin:0!important;max-width:900px}
:where(.platform-intro-text,.faculty-page-hero p){font-size:clamp(16px,1.4vw,19px)!important;line-height:1.65!important;max-width:720px;margin:17px 0 0!important;color:var(--a9-muted)!important}
:where(.admin-section,.dashboard-section,.activity-section,.feedback-section,.student-section,.module-section){margin-block:32px!important}
:where(.admin-form-panel,.detail-panel,.detail-card,.content-card,.activity-card,.feedback-card,.module-card,.cohort-detail-panel,.insight){padding:clamp(20px,3vw,30px)!important;border:1px solid var(--a9-line)!important;border-radius:20px!important;background:var(--a9-white)!important;box-shadow:var(--a9-shadow)!important}
:where(.section-heading,.admin-section-heading){display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 18px!important;padding-bottom:13px;border-bottom:1px solid var(--a9-line)}
:where(.section-heading h2,.admin-section-heading h2){font-family:var(--a9-serif)!important;font-size:clamp(27px,3vw,40px)!important;line-height:1.12!important;margin:0!important}
:where(button[type=submit],input[type=submit],.button,.btn,.primary-button,.admin-primary-button){min-height:44px;padding:11px 19px!important;border:1px solid var(--a9-teal)!important;border-radius:99px!important;background:var(--a9-teal)!important;color:white!important;font-weight:750!important;cursor:pointer}
:where(button[type=submit],input[type=submit],.button,.btn,.primary-button,.admin-primary-button):hover{background:var(--a9-ink)!important;border-color:var(--a9-ink)!important}
/* Faculty landing dashboard: three deliberate rows, no narrow-column text wrapping. */
body:has(.dashboard-hero) main:not(.platform-main){width:min(1280px,calc(100% - 64px))!important}
.dashboard-hero{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr)!important;grid-template-areas:"eyebrow eyebrow" "title copy"!important;align-items:end!important;column-gap:clamp(28px,5vw,76px)!important;row-gap:8px!important;padding:clamp(42px,5vw,68px) clamp(28px,4vw,58px)!important;margin:24px 0 30px!important;min-height:0!important;border:1px solid rgba(8,125,117,.13)!important;border-radius:26px!important;background:linear-gradient(115deg,#fffefa 0%,#eff7f1 100%)!important;box-shadow:var(--a9-shadow)!important}
.dashboard-hero .dashboard-eyebrow{grid-area:eyebrow!important;align-self:start!important}
.dashboard-hero h1{grid-area:title!important;font-family:var(--a9-serif)!important;font-size:clamp(46px,5.4vw,70px)!important;line-height:1.02!important;letter-spacing:-.055em!important;margin:0!important;max-width:680px!important}
.dashboard-hero h1 span{color:var(--a9-teal2)!important}
.dashboard-hero .dashboard-intro{grid-area:copy!important;align-self:end!important;max-width:470px!important;margin:0 0 6px!important;font-size:clamp(16px,1.4vw,19px)!important;line-height:1.65!important}
.dashboard-section{margin:30px 0 42px!important}
.dashboard-section .section-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding-bottom:14px!important;margin-bottom:18px!important;border-bottom:1px solid var(--a9-line)!important}
.dashboard-section .section-heading>span{font-size:10px!important;letter-spacing:.17em!important;font-weight:800!important;color:var(--a9-teal)!important}
.cohort-overview{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,.9fr)!important;align-items:stretch!important;gap:22px!important;padding:clamp(22px,3vw,34px)!important;border:1px solid var(--a9-line)!important;border-radius:22px!important;background:var(--a9-white)!important;box-shadow:var(--a9-shadow)!important;min-width:0!important}
.cohort-main{min-width:0!important}
.cohort-main h2{font-family:var(--a9-serif)!important;font-size:clamp(26px,3vw,38px)!important;line-height:1.15!important;overflow-wrap:anywhere}
.cohort-main p{line-height:1.6!important}
.cohort-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;min-width:0!important}
.stat-item{min-width:0!important;padding:18px!important;border:1px solid var(--a9-line)!important;border-radius:16px!important;background:var(--a9-mint)!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
.stat-item:nth-child(even){background:var(--a9-blue)!important}
.stat-item strong{font-size:clamp(27px,3vw,38px)!important;line-height:1.1!important;overflow-wrap:anywhere}
.stat-item span{font-size:13px!important;line-height:1.4!important}
.faculty-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.faculty-action{min-width:0!important;min-height:125px!important;padding:22px!important;border:1px solid var(--a9-line)!important;border-radius:18px!important;background:var(--a9-white)!important}
.faculty-action .action-content{min-width:0!important}
.faculty-action .action-content h2,.faculty-action .action-content h3{font-family:var(--a9-serif)!important;font-size:24px!important;line-height:1.2!important}
.faculty-action .action-content p{font-size:14px!important;line-height:1.55!important}
/* Faculty cohort and progress pages */
.faculty-page-hero{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr)!important;align-items:end!important;gap:36px!important}
.faculty-page-hero .faculty-page-label{grid-column:1/-1}
.faculty-page-hero h1{max-width:760px}
.faculty-page-hero p{max-width:520px;margin:0 0 5px!important}
body:has(.faculty-page-hero) .cohort-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body:has(.faculty-page-hero) .cohort-overview>*{min-width:0!important}
body:has(.faculty-page-hero) .cohort-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
/* Institution pages: constrain headings and let the data breathe */
body:has(.institution-page-hero) main,body:has(.institution-overview-hero) main{width:min(1280px,calc(100% - 64px))!important}
:where(.institution-page-hero,.institution-overview-hero){min-height:0!important;padding:clamp(42px,5vw,70px) 0 38px!important}
:where(.institution-page-hero h1,.institution-overview-hero h1){font-family:var(--a9-serif)!important;font-size:clamp(44px,5.7vw,74px)!important;line-height:1.04!important;max-width:850px!important}
:where(.institution-overview,.institution-metrics,.metrics){min-width:0!important}
:where(.metrics,.institution-metrics){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
:where(.metric,.institution-metric){min-width:0!important;padding:22px!important;border:1px solid var(--a9-line)!important;border-radius:18px!important;background:var(--a9-white)!important}
/* Admin overview and management cards */
.admin-dashboard-page{width:min(1280px,calc(100% - 64px))!important;margin-inline:auto!important}
.admin-dashboard-page .platform-intro{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:24px!important;padding:64px 0 38px!important}
.admin-dashboard-page .admin-overview{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:26px 0 48px!important;min-width:0!important}
.admin-dashboard-page .admin-overview-item{min-width:0!important;min-height:135px!important;padding:22px!important;border:1px solid var(--a9-line)!important;border-radius:18px!important;background:var(--a9-white)!important}
.admin-dashboard-page .admin-overview-label{font-size:11px!important;letter-spacing:.12em!important;overflow-wrap:anywhere}
.admin-dashboard-page .admin-overview-item strong{font-size:clamp(30px,3vw,42px)!important;line-height:1.1!important}
.admin-dashboard-page .admin-management-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px!important}
.admin-dashboard-page .admin-management-card{min-width:0!important;min-height:140px!important;padding:24px!important;border:1px solid var(--a9-line)!important;border-radius:20px!important;background:var(--a9-white)!important;overflow-wrap:anywhere}
.admin-dashboard-page .admin-card-content{min-width:0!important}
.admin-dashboard-page .admin-card-content p{line-height:1.55!important}
.admin-dashboard-page .admin-card-link{display:inline-flex!important;align-items:center;gap:7px;min-height:38px;padding:7px 0!important;border-radius:6px!important;white-space:normal!important}
.admin-dashboard-page .admin-status{white-space:nowrap}
/* Table action hit areas: make the whole control clickable, not just its icon. */
.admin-table-action{position:relative!important;z-index:3!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-width:100px!important;min-height:44px!important;padding:10px 16px!important;border-radius:99px!important;background:var(--a9-mint)!important;color:#075d59!important;text-decoration:none!important;cursor:pointer!important;pointer-events:auto!important}
.admin-table-action>*{pointer-events:none!important}
.admin-table td:last-child{position:relative}
.admin-table-wrap,.admin-table-section,.table-wrap{max-width:100%;overflow-x:auto}
.admin-table{min-width:720px}
:where(table){width:100%;border-collapse:collapse}
:where(th,td){padding:14px 16px!important;vertical-align:middle;line-height:1.5}
:where(th){font-size:10px!important;letter-spacing:.12em!important}
/* Student dashboard and activity pages */
.student-dashboard{padding-top:clamp(32px,5vw,60px)!important}
.student-dashboard .dashboard-intro{max-width:820px!important;margin-bottom:28px!important}
.student-dashboard .dashboard-intro h1{font-family:var(--a9-serif)!important;font-size:clamp(42px,5.4vw,68px)!important;line-height:1.04!important}
.student-dashboard .dashboard-lead{font-size:17px!important;line-height:1.6!important}
.journey-panel,.progress-snapshot{border:1px solid var(--a9-line)!important;border-radius:22px!important;background:var(--a9-white)!important;box-shadow:var(--a9-shadow)!important;padding:clamp(20px,3vw,32px)!important}
:where(.journey-step,.dashboard-action,.action-list,.progress-visual){min-width:0!important}
:where(.dashboard-action,.faculty-action,.route,.admin-management-card){transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
:where(.dashboard-action,.faculty-action,.route,.admin-management-card):hover{transform:translateY(-2px)}
/* Entry / login pages */
.role-entry-page{background:var(--a9-paper)!important;color:var(--a9-ink)!important}
.role-entry,.role-entry-page main{width:min(1240px,calc(100% - 56px))!important;margin-inline:auto!important}
.role-entry h1{font-family:var(--a9-serif)!important;font-size:clamp(44px,6vw,74px)!important;line-height:1.04!important}
.role-grid,.role-pathways{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
.role-option,.role-pathways .role{min-width:0!important;min-height:160px!important;padding:22px!important;border:1px solid var(--a9-line)!important;border-radius:18px!important;background:var(--a9-white)!important}
.login-panel{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(280px,.85fr)!important;gap:0!important;border:1px solid var(--a9-line)!important;border-radius:22px!important;overflow:hidden!important;background:var(--a9-white)!important;box-shadow:var(--a9-shadow)!important}
.login-panel-main,.login-panel-context{min-width:0!important;padding:clamp(22px,4vw,42px)!important}
.login-panel-context{background:linear-gradient(140deg,var(--a9-mint),var(--a9-blue))!important}
/* Keep legacy visiting-page styles from bleeding into platform components. */
@media(max-width:950px){
 .admin-dashboard-page .admin-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .dashboard-hero{grid-template-columns:1fr!important;grid-template-areas:"eyebrow" "title" "copy"!important}
 .cohort-overview,body:has(.faculty-page-hero) .cohort-overview{grid-template-columns:1fr!important}
 .faculty-page-hero{grid-template-columns:1fr!important;gap:12px!important}
 .faculty-page-hero p{margin-top:12px!important}
 .role-grid,.role-pathways{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
 :where(main,.platform-main,.admin-dashboard-page,body:has(.dashboard-hero) main:not(.platform-main)){width:calc(100% - 32px)!important}
 :where(.platform-header,.login-header){padding:10px 16px!important;min-height:68px!important}
 :where(.platform-logo img,.platform-brand img,.brand img,.logo img,.login-logo img){max-height:42px!important;max-width:140px!important}
 :where(.platform-header-right,.header-right){gap:6px!important}
 .admin-dashboard-page .platform-intro{display:block!important;padding-top:38px!important}
 .admin-dashboard-page .admin-status{margin-top:18px}
 .admin-dashboard-page .admin-overview{gap:9px!important;margin:20px 0 34px!important}
 .admin-dashboard-page .admin-overview-item{min-height:112px!important;padding:15px!important}
 .admin-dashboard-page .admin-management-grid,.faculty-actions{grid-template-columns:1fr!important}
 .admin-dashboard-page .admin-management-card{min-height:0!important;padding:20px!important}
 .dashboard-hero{padding:28px 22px!important;margin:16px 0 24px!important;border-radius:20px!important}
 .dashboard-hero h1{font-size:clamp(40px,11vw,56px)!important}
 .cohort-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .section-heading{align-items:flex-start!important;flex-direction:column!important;gap:5px!important}
 .role-grid,.role-pathways,.login-panel{grid-template-columns:1fr!important}
 .role-option,.role-pathways .role{min-height:130px!important}
 .metrics,.institution-metrics{grid-template-columns:1fr 1fr!important}
 .faculty-page-hero{padding-top:36px!important}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
