/* ALFA3 LIMITS - branded, mobile-first enhancement; loaded after limits-simple.css.
   No API, schema, forms, or result field changes. */
:root{
 --bg:#f1f6f4;--surface:#fff;--text:#15302d;--muted:#5d7473;
 --border:#dceae5;--primary:#087767;--primary-strong:#07594e;
 --primary-soft:#e6f7f0;--navy:#163d38;--gold:#956018;
 --green:#08795d;--shadow:0 12px 36px rgba(16,62,53,.065);
 --brand-gold:#c4974c;--brand-forest:#07584f;
}
:root[data-theme=dark]{
 --bg:#0c191b;--surface:#152729;--text:#edf6f4;--muted:#acc5c0;
 --border:#304b49;--primary:#7adcc3;--primary-strong:#a8f5e0;
 --primary-soft:#1d423b;--navy:#ecfcf5;--gold:#ffd08a;
 --green:#91e9c9;--shadow:0 16px 44px rgba(0,0,0,.18);
 --brand-gold:#e2ba78;--brand-forest:#06463f;
}
html{font-size:16px;scroll-padding-top:112px;overflow-x:clip}
body,button,input,select,summary{font-family:'Cairo',Tahoma,'Segoe UI',Arial,sans-serif}
body{background:radial-gradient(ellipse at 90% 0%,rgba(17,140,110,.085),transparent 40%),var(--bg);font-size:14px;line-height:1.75;overflow-x:clip}
button,input,select{font-weight:600}
button,select,input,summary{-webkit-tap-highlight-color:transparent}
button{touch-action:manipulation}
h1,h2,h3{font-family:'Cairo',Tahoma,Arial,sans-serif;letter-spacing:0}
h2{font-size:20px;font-weight:800}
h3{font-weight:800}
.site-header{background:var(--surface);border-bottom:1px solid var(--border);box-shadow:0 5px 25px rgba(12,69,54,.04);isolation:isolate}
.site-header:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--brand-gold),#0b846f,var(--brand-gold));pointer-events:none}
.header-inner{min-height:91px;height:auto;padding-block:11px;gap:12px}
.logo{gap:12px;min-width:0;max-width:calc(100% - 125px)}
.university-mark{display:grid;place-items:center;position:relative;flex:0 0 65px;width:65px;height:65px;border-radius:18px;background:linear-gradient(145deg,#fdfefa,#edf6ee);border:1px solid #d9e2d9;box-shadow:0 5px 16px rgba(0,80,62,.08);overflow:hidden}
.university-mark img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:4px;display:block;color:transparent}
.mark-fallback{color:#126459;font:900 23px Arial,sans-serif;direction:ltr}
.logo-title{line-height:1.42;min-width:0;gap:0}
.university-title{font-size:12px;color:var(--muted);font-weight:800}
.logo-title strong{font-size:clamp(17px,2vw,22px);font-weight:900;color:var(--text);white-space:nowrap}
.brand-dash{color:var(--brand-gold);font-weight:700}
.logo-title small{font:700 10px 'Cairo',Tahoma,sans-serif;letter-spacing:.035em;color:var(--primary);direction:ltr;align-self:flex-end}
.header-tools{gap:9px;flex-shrink:0}
.year-chip{font-weight:800;font-size:11px;background:var(--primary-soft);color:var(--primary);border-color:transparent}
.icon-button{display:grid;place-items:center;background:var(--bg);min-width:43px;min-height:43px;font-size:20px;border-radius:13px}
.nav-admin{border-radius:12px;border:1px solid var(--border);background:var(--surface);padding:9px 14px;min-height:43px;display:inline-grid;place-items:center;font-size:12px;font-weight:800}
.nav-admin:hover,.icon-button:hover{background:var(--primary-soft);color:var(--primary)}
.page{padding-top:24px}
.intro{max-width:850px;margin:3px auto 23px}
.overline{background:var(--primary-soft);border:1px solid var(--border);color:var(--primary);font-size:12px;font-weight:800;padding:5px 16px;gap:5px}
.overline span{color:var(--brand-gold)}
.intro h1{font-size:clamp(24px,3.5vw,38px);font-weight:900;line-height:1.55;color:var(--text);margin:6px 0 4px}
.intro h1 em{font-style:normal;color:var(--primary)}
.intro p{font-size:13px;line-height:2;max-width:680px;margin-inline:auto}
.step-card{border-radius:20px;padding:23px 25px;box-shadow:var(--shadow);position:relative;overflow:hidden;scroll-margin-top:113px}
.step-card:before{content:"";position:absolute;right:0;top:22px;height:48px;width:4px;border-radius:5px 0 0 5px;background:var(--brand-gold)}
.step-heading{gap:12px;margin-bottom:17px;min-width:0}
.step-heading>div{min-width:0}
.step-heading p{line-height:1.75;font-size:12px;color:var(--muted)}
.step-num{width:40px;height:40px;flex:0 0 40px;border-radius:13px;background:var(--primary-soft);border:1px solid var(--border);font-size:18px}
.choice-switch{gap:9px}
.choice{min-height:52px;font-size:13px;border-radius:12px;transition:background-color .15s,border-color .15s}
.choice.is-active{box-shadow:inset 0 0 0 1px var(--primary)}
.input-field{font-size:12px;font-weight:800;gap:6px}
.input-field input,.input-field select{font-weight:600}
input[type=number],input[type=search],select{min-height:49px;height:auto;border-radius:12px;padding:10px 13px;border-color:var(--border)}
select{max-width:100%;text-overflow:ellipsis}
select option{color:var(--text);background:var(--surface)}
.primary-button,.secondary-button,.compare-button{min-height:45px;font-weight:800;font-size:12px;border-radius:12px}
.primary-button{background:var(--primary);color:#fff}
:root[data-theme=dark] .primary-button{color:#0d2825}
.primary-button:hover:not(:disabled){background:var(--primary-strong);color:#fff}
.inline-feedback{line-height:1.8}
.baseline-preview{border-radius:13px;padding:13px 14px;gap:11px}
.preview-copy strong{font-size:13px;font-weight:800;line-height:1.6}
.preview-copy small{font-size:11px;line-height:1.7}
.preview-icon{flex:0 0 32px;width:32px;height:32px}
.search-step .step-num{background:#fff7e9;color:var(--gold)}
:root[data-theme=dark] .search-step .step-num{background:#45381f}
.search-field{border-color:var(--primary);border-width:1.5px;background:var(--surface);height:61px;border-radius:15px;box-shadow:0 5px 24px rgba(11,127,108,.06)}
.search-field:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.search-field input{height:100%;font-weight:600;font-size:15px}
.search-field input::placeholder{color:var(--muted);opacity:.85}
.magnifier{font-size:28px}
.clear-search{min-width:38px;min-height:41px}
.search-examples{margin:11px 0 17px;gap:8px}
.search-examples button{padding:5px 12px;min-height:36px;font-weight:700}
.simple-toolbar{padding:12px 0;gap:14px}
.simple-toolbar label{font-size:12px;font-weight:700}
.simple-toolbar select{min-height:42px}
.simple-check input{accent-color:var(--primary);width:19px;height:19px}
.advanced summary{font-weight:800;font-size:12px;line-height:1.9;min-height:36px}
.summary-hint{font-size:11px}
.advanced-body{gap:12px}
.advanced-footer button{min-height:43px}
.result-heading{gap:11px}
.count-pill{font-size:11px;padding:6px 12px}
.quick-stats{gap:9px}
.quick-stats>div{min-width:0;border-radius:12px;padding:12px 13px}
.quick-stats strong{font-size:22px;font-weight:900;font-variant-numeric:tabular-nums}
.quick-stats span{font-size:11px}
.search-status{font-size:11px;line-height:1.9}
.result-list{gap:10px}
.result-row{border-radius:14px;padding:15px 16px;gap:11px;grid-template-columns:minmax(180px,1fr) 110px 119px 110px;transition:border-color .14s,box-shadow .14s}
.result-row:hover{border-color:var(--primary);box-shadow:0 4px 18px rgba(13,104,84,.055)}
.result-main h3{font-size:14px;font-weight:800;line-height:1.75;margin:2px 0 5px}
.uni-name{font-size:11px;font-weight:800}
.record-details span{font-size:10px;line-height:1.7;padding:1px 8px}
.rate-box strong{font-size:23px;font-weight:900;font-variant-numeric:tabular-nums}
.difference strong{font-size:16px;font-weight:900;font-variant-numeric:tabular-nums}
.difference span,.rate-box span{font-size:10px}
.compare-button{white-space:nowrap;min-height:45px}
.pagination button{min-height:45px;min-width:85px}
.comparison-bars,.no-results{border-radius:13px}
.bar-entry b,.comparison-item>b{font-variant-numeric:tabular-nums}
.comparison-item>div strong{font-weight:800}
.source-note{font-size:11px;line-height:1.9;margin-bottom:1px}
.footer{border-top:3px solid var(--brand-forest)}
.footer-inner{align-items:center;font-size:11px;line-height:1.8}
.footer-inner>span:first-child{direction:rtl;color:var(--primary);font-family:'Cairo',Tahoma,sans-serif;font-size:13px;font-weight:900}
.footer a{color:var(--primary);font-weight:800}
/* User-scalable font, readable touch areas and no horizontal scrolling on phones. */
@media(max-width:900px){
 .header-inner{min-height:78px}
 .university-mark{flex-basis:54px;width:54px;height:54px;border-radius:14px}
 .year-chip{display:none}
 .result-row{grid-template-columns:minmax(0,1fr) 105px 112px}
 .result-row .compare-button{grid-column:2/4;justify-self:stretch}
}
@media(max-width:700px){
 .container{width:calc(100% - 28px)}
 .header-inner{min-height:75px}
 .logo{max-width:calc(100% - 111px);gap:9px}
 .logo-title strong{font-size:17px}
 .university-title{font-size:10px}
 .logo-title small{font-size:9px}
 .step-card{padding:19px 16px;margin-bottom:13px;scroll-margin-top:95px}
 .step-card:before{top:17px;height:39px;width:3px}
 .step-heading h2{font-size:18px}
 .step-heading p{font-size:11px}
 .form-columns,.advanced-body{grid-template-columns:repeat(2,minmax(0,1fr))}
 .quick-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .result-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:14px;gap:10px}
 .result-main{grid-column:1/-1}
 .rate-box{align-items:flex-start}
 .rate-box strong{font-size:23px}
 .difference{align-items:flex-end}
 .result-row .compare-button{grid-column:1/-1;justify-self:stretch}
 .search-field{height:57px}
 .search-field input{height:100%;font-size:16px} /* avoid iOS automatic zoom */
 .simple-toolbar select{font-size:13px}
 .footer-inner{justify-content:center;text-align:center;gap:6px 16px}
}
@media(max-width:490px){
 .container{width:calc(100% - 20px)}
 .header-inner{min-height:69px;padding-block:8px;gap:6px}
 .university-mark{flex-basis:47px;width:47px;height:47px;border-radius:12px}
 .logo{max-width:calc(100% - 95px);gap:7px}
 .logo-title{line-height:1.35}
 .university-title{font-size:9px}
 .logo-title strong{font-size:clamp(13px,3.65vw,16px);white-space:normal;line-height:1.4}
 .logo-title small{font-size:8px;letter-spacing:0;line-height:1.3}
 .header-tools{gap:5px}
 .nav-admin{padding:5px 8px;font-size:10px;min-height:39px}
 .icon-button{width:39px;min-width:39px;min-height:39px}
 .page{padding-top:17px}
 .intro{margin-bottom:15px}
 .intro h1{font-size:clamp(21px,5.5vw,26px);line-height:1.62}
 .intro p{font-size:12px;line-height:1.9}
 .step-card{padding:16px 12px;border-radius:15px}
 .step-heading{align-items:center;gap:9px;margin-bottom:14px}
 .step-heading h2{font-size:16px}
 .step-num{width:34px;height:34px;flex-basis:34px;font-size:15px;border-radius:10px}
 .form-columns,.advanced-body,.average-layout{grid-template-columns:1fr;gap:11px}
 .choice-switch{gap:7px}
 .choice{font-size:11px;padding:10px 7px;line-height:1.75;min-height:51px}
 .form-action{margin-top:14px}
 .form-action .primary-button{width:100%}
 .form-action .inline-feedback{width:100%;text-align:center}
 .search-examples button{font-size:10px;min-height:36px}
 .simple-toolbar{align-items:stretch}
 .simple-toolbar label:first-child{width:100%}
 .simple-toolbar select{max-width:70%}
 .summary-hint{display:none}
 .result-heading{flex-wrap:wrap}
 .result-heading .count-pill{margin-right:43px}
 .quick-stats>div{padding:10px}
 .quick-stats strong{font-size:21px}
 .comparison-item{grid-template-columns:minmax(0,1fr) 70px 29px;gap:6px}
 .comparison-item>.difference{grid-column:1/3;text-align:right}
 .comparison-item .remove-button{grid-column:3;grid-row:1/3}
 .bar-entry{grid-template-columns:88px minmax(0,1fr) 48px;gap:7px}
 .bar-entry>span{font-size:11px}
 .footer-inner{flex-direction:column}
}
@media(max-width:360px){
 .header-tools{gap:3px}.nav-admin{font-size:9px;padding:5px}
 .logo-title strong{font-size:13px}.logo-title small{display:none}
 .university-mark{flex-basis:40px;width:40px;height:40px}
 .logo{max-width:calc(100% - 82px)}
 .intro h1{font-size:21px}
 .choice{font-size:10px}
 .step-card{padding:14px 10px}
}
@media(prefers-reduced-motion:reduce){.result-row,.choice{transition:none}}
