/* Local structural fallback if the existing Tailwind CDN is unavailable.
   Layered rules yield to loaded utilities; brand appearance remains local. */
@layer structural-fallback {
 .hidden{display:none}.flex{display:flex}.inline-flex{display:inline-flex}.block{display:block}.inline-block{display:inline-block}.grid{display:grid}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.items-center{align-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.sticky{position:sticky}.inset-0{inset:0}.top-0{top:0}.top-full{top:100%}.right-0{right:0}.left-0{left:0}.bottom-5{bottom:1.25rem}.right-5{right:1.25rem}.z-50{z-index:50}.z-\[60\]{z-index:60}.z-\[70\]{z-index:70}.z-\[80\]{z-index:80}.w-full{width:100%}.h-full{height:100%}.min-h-screen{min-height:100vh}.mx-auto{margin-inline:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.text-center{text-align:center}.text-right{text-align:right}.font-bold{font-weight:700}.font-semibold{font-weight:600}.font-medium{font-weight:500}.border{border:1px solid var(--line)}.border-b{border-bottom:1px solid var(--line)}.border-t{border-top:1px solid var(--line)}.rounded-full{border-radius:999px}.rounded-xl{border-radius:12px}.rounded-2xl{border-radius:14px}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.w-56{width:14rem}.w-60{width:15rem}.h-9,.w-9{min-width:2.25rem;min-height:2.25rem}.h-10,.w-10{min-width:2.5rem;min-height:2.5rem}.h-12,.w-12{min-width:3rem;min-height:3rem}
 .gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-3{padding-inline:.75rem}.px-4{padding-inline:1rem}.py-2{padding-block:.5rem}.py-3{padding-block:.75rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mb-4{margin-bottom:1rem}.space-y-2>*+*{margin-top:.5rem}.space-y-3>*+*{margin-top:.75rem}.space-y-4>*+*{margin-top:1rem}.space-y-6>*+*{margin-top:1.5rem}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
 @media(min-width:640px){.sm\:inline-flex{display:inline-flex}.sm\:inline{display:inline}.sm\:flex-row{flex-direction:row}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:items-center{align-items:center}}
 @media(min-width:1024px){.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
}
/* BTEC editorial identity. This is the sole site appearance stylesheet.
   Tailwind remains a layout utility only; legacy theme styles are not loaded. */
:root{--paper:#F7F5EE;--green:#173F35;--ink:#182B26;--sage:#E6ECE3;--gold:#C99843;--white:#fff;--line:#D8DED4;--muted:#56655C;--danger:#9B3434;--warning:#775319;--success:#276044;--radius:14px}
*{box-sizing:border-box}html{scroll-behavior:smooth;font-size:16px}body.brand-site{font-family:'IBM Plex Sans Arabic','Cairo',Tahoma,Arial,sans-serif;background:var(--paper);color:var(--ink);font-size:17px;line-height:1.8;margin:0;font-synthesis:none}button,input,select,textarea{font:inherit}a{color:inherit}img,video{max-width:100%;height:auto}h1,h2,h3,p{overflow-wrap:anywhere}h1,h2,h3{letter-spacing:normal;font-weight:600}h1{line-height:1.3}h2,h3{line-height:1.5}bdi,[dir=ltr]{unicode-bidi:isolate}::selection{background:#D9E5D7}section,article,form,div{min-width:0}[hidden]{display:none!important}
.brand-site :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--gold);outline-offset:4px}button:disabled{opacity:.55;cursor:not-allowed}.ui-caption{font-size:.85rem}.ui-small{font-size:.95rem}.ui-bg-surface{background:var(--white)}.ui-bg-brand-soft,.ui-accent-panel{background:var(--sage)}.ui-bg-warning-soft{background:#FFF2D9}.ui-bg-danger-soft{background:#FCECE8}.ui-bg-success-soft{background:#EAF3E8}.ui-text-ink{color:var(--ink)}.ui-text-muted{color:var(--muted)}.ui-text-brand{color:var(--green)}.ui-text-warning{color:var(--warning)}.ui-text-danger{color:var(--danger)}.ui-text-success{color:var(--success)}.ui-border-line,.ui-divide-line>*+*{border-color:var(--line)}.ui-border-brand{border-color:#A4B9AA}.ui-border-warning{border-color:#D7B779}.ui-border-danger{border-color:#D8AAA4}.ui-border-success{border-color:#A8C7A2}.ui-bg-surface-hover:hover{background:var(--sage)}.ui-text-brand-hover:hover{color:var(--green)}
.brand-container,.brand-header>div,.brand-footer>div{width:100%;max-width:1264px;margin-inline:auto;padding-inline:32px}.brand-main{padding-block:36px 64px}.brand-header{background:#fff;border-bottom:1px solid var(--line);backdrop-filter:none}.brand-header>div>div{min-height:80px;padding-block:12px}.brand-header nav{font-size:.95rem}.brand-header nav a,.brand-header nav button{border-radius:8px}.brand-header nav [data-dropdown-menu]{background:#fff;border-color:var(--line);box-shadow:0 10px 28px #182B2612}.brand-header nav [data-dropdown-menu] a{font-size:.92rem;padding:12px 16px}.brand-header .leading-tight>span:first-child{font-size:1.2rem;line-height:1.5}.brand-header .leading-tight>span:last-child{font-size:.75rem;letter-spacing:.05em}.brand-mark{width:42px;height:42px;flex-shrink:0}.brand-header a[href='/register']{background:var(--green);color:#fff;border-radius:10px;box-shadow:none;padding:10px 18px}.brand-footer{background:#fff;border-color:var(--line)}.brand-footer>div{padding-block:44px 24px}.brand-footer p,.brand-footer a,.brand-footer span{font-size:.9rem}.brand-footer .leading-tight{line-height:1.5}.brand-overlay{background:#182B2670}.brand-overlay>div{background:#fff}.portal-skip{position:fixed;top:-100px;right:20px;z-index:100;padding:12px 20px;background:var(--green);color:white;border-radius:10px}.portal-skip:focus{top:12px}
#mobileMenu{max-height:calc(100dvh - 80px);overflow:auto;background:#fff}#mobileMenu>div>div{min-height:0}#waModal>div{max-height:calc(100dvh - 32px);overflow:auto}[data-wa-btn]{background:var(--green);color:#fff;border:1px solid #fff}#waSend{background:var(--green);color:#fff;border-radius:10px}
.brand-content>section:not(.editorial-hero):not(.catalog-heading):not(.portal-hero)>div>h1,.brand-content>section:not(.editorial-hero):not(.catalog-heading):not(.portal-hero)>h1{font-size:clamp(1.8rem,3vw,2.4rem)}.brand-content .rounded-2xl{border-radius:var(--radius)}.brand-content :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#fff;color:var(--ink);border:1px solid #BCC9BD;border-radius:10px;min-height:46px;max-width:100%;font-size:1rem;padding:10px 12px;direction:rtl}.brand-content :is(input,textarea)::placeholder{color:#707E73}.brand-content label{color:var(--ink);font-size:.92rem;font-weight:500}.brand-content input[type=file]::file-selector-button{background:var(--sage);color:var(--green);border:0;border-radius:6px;padding:6px 12px;margin-inline-end:12px}.brand-content button[type=submit],.brand-content a.ui-accent-panel{background:var(--green);color:#fff;border:1px solid var(--green);border-radius:10px;min-height:46px;box-shadow:none}.brand-content button[type=submit]:hover{background:#245346}.brand-content button.ui-bg-danger-soft{background:#FCECE8;color:var(--danger);border-color:#D8AAA4}.brand-content table{font-size:.93rem;width:100%;border-collapse:collapse;background:white}.brand-content th{text-align:start;background:var(--sage);font-weight:600;padding:13px 16px;white-space:nowrap}.brand-content td{padding:13px 16px;border-bottom:1px solid var(--line)}.brand-content tbody tr:hover{background:#F7F9F5}.brand-content [class*='overflow-x-auto']{max-width:100%;overscroll-behavior-inline:contain}.brand-content details{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 22px;margin-block:10px}.brand-content summary{cursor:pointer;font-weight:500}.brand-content summary+p{margin-top:14px;color:var(--muted)}
.editorial-hero{display:grid;grid-template-columns:1.08fr 1fr;align-items:center;gap:48px;padding-block:28px 64px}.editorial-hero h1{font-size:clamp(3.625rem,4.7vw,4rem);line-height:1.3;max-width:620px;margin:16px 0 24px;color:var(--green);font-weight:600}.editorial-hero p{font-size:1.12rem;line-height:1.9;max-width:540px;color:var(--muted)}.editorial-art{margin:0}.editorial-art img{display:block;width:100%;aspect-ratio:600/500;object-fit:contain}.editorial-art figcaption{font-size:.85rem;color:var(--muted);text-align:center;margin-top:12px}.brand-kicker,.portal-eyebrow{display:inline-block;color:var(--green);font-size:.86rem;font-weight:500;line-height:1.7}.brand-kicker:before{content:'';display:inline-block;width:22px;height:2px;background:var(--gold);vertical-align:middle;margin-inline-end:10px}.portal-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.portal-button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid #B2C1B3;border-radius:10px;padding:11px 20px;min-height:48px;color:var(--green);background:#fff;font-size:1rem;font-weight:500;text-decoration:none;line-height:1.6}.portal-button:hover,.btn:hover{background:var(--sage)}.portal-button-primary,.portal-button-violet{background:var(--green);color:#fff;border-color:var(--green)}.portal-button-primary:hover,.portal-button-violet:hover{background:#245346;color:white}.brand-link{color:var(--green);text-underline-offset:6px;text-decoration:underline}.portal-note{color:var(--muted);font-size:.9rem;border-inline-start:2px solid var(--gold);padding:8px 16px;margin:18px 0}.portal-note-warning{background:#FFF2D9;color:var(--warning);padding:16px}
.path-strip{padding:26px 30px;background:#fff;border:1px solid var(--line);border-radius:16px;display:grid;grid-template-columns:1fr 2fr;gap:36px;align-items:center}.path-strip h2{font-size:1.4rem}.path-strip p{font-size:.92rem;color:var(--muted)}.path-strip form{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end}.path-strip label{display:block;margin-bottom:6px}.path-strip select{width:100%}.portal-section{margin-block:64px}.portal-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px;flex-wrap:wrap}.portal-section-head h2{font-size:2rem;color:var(--green);font-weight:700}.portal-section-head p{color:var(--muted);margin-top:8px}.library-shelf{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}.shelf-panel{background:white;border:1px solid var(--line);border-radius:16px;display:grid;grid-template-columns:1fr 140px;gap:16px;padding:30px;align-items:center}.shelf-panel h3{font-size:1.65rem;color:var(--green);margin:8px 0 10px}.shelf-panel p{color:var(--muted);font-size:1rem}.shelf-panel img{width:140px;height:165px;object-fit:contain}.shelf-next{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--sage);border:1px solid var(--line);padding:20px 28px;border-radius:14px}.shelf-next h3{font-size:1.2rem}.shelf-next p{color:var(--muted);font-size:.95rem}.tools-section{background:var(--green);border-radius:18px;padding:38px}.tools-section .portal-section-head h2,.tools-section .portal-section-head p{color:#fff}.tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.tool-panel{background:var(--paper);color:var(--ink);border-radius:14px;padding:30px}.tool-panel>span{color:var(--warning);font-size:.86rem}.tool-panel h3{font-size:1.65rem;margin:8px 0 12px}.tool-panel p{color:var(--muted)}.tool-panel .portal-actions{align-items:center}.editorial-support{display:grid;grid-template-columns:1fr 1fr;gap:40px}.editorial-support article{border-block-start:2px solid var(--line);padding-top:22px}.editorial-support h2{font-size:1.5rem;margin-bottom:12px;font-weight:700}.editorial-support p{color:var(--muted)}
.catalog-heading{padding:8px 0 24px;max-width:850px}.catalog-heading h1{font-size:2.5rem;color:var(--green);margin:8px 0 12px}.catalog-heading .portal-lede{font-size:1rem;color:var(--muted);max-width:740px}.portal-tabs{display:flex;flex-wrap:wrap;gap:24px;border-bottom:1px solid var(--line);margin-bottom:24px}.portal-tabs a{padding:12px 2px;border-bottom:3px solid transparent;font-weight:500}.portal-tabs a[aria-current=page]{color:var(--green);border-color:var(--green)}.portal-filter{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:22px;background:#fff;border:1px solid var(--line);border-radius:14px}.portal-filter label{display:block;margin-bottom:6px}.portal-filter :is(input,select){width:100%}.portal-filter-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.portal-results{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;color:var(--muted);font-size:.92rem;margin:20px 0 16px}.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.portal-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;display:flex;flex-direction:column;gap:14px}.portal-card h2,.portal-card h3{font-size:1.3rem}.portal-card p{color:var(--muted)}.portal-card .portal-button{align-self:flex-start;margin-top:auto}.portal-material{position:relative;min-height:190px;display:grid;grid-template-columns:44px 1fr;column-gap:16px;row-gap:8px;padding:22px}.portal-material .portal-book-cover{grid-row:1/4}.portal-material .portal-chips,.portal-material h2,.portal-material>span,.portal-material>a{grid-column:2}.portal-material h2{font-size:1.03rem;line-height:1.7;overflow-wrap:anywhere;word-break:normal}.portal-material>a{justify-self:start;margin-top:8px;font-size:.9rem;min-height:42px;padding:8px 15px}.portal-book-cover{width:44px;height:58px;border:1px solid #AFC2AE;border-inline-start:5px solid var(--green);background:var(--sage);border-radius:3px 7px 7px 3px;display:grid;place-items:center;color:var(--green);font-size:.68rem;font-weight:600}.portal-chips{display:flex;gap:7px;flex-wrap:wrap}.portal-chip{font-size:.78rem;background:var(--sage);color:var(--green);border-radius:5px;padding:3px 7px}.portal-status{color:var(--success);font-size:.85rem}.portal-status-muted{color:var(--muted);font-size:.85rem}.portal-empty{background:#fff;border:1px dashed #AEC0AC;border-radius:14px;padding:32px;text-align:center}.portal-empty h2{font-size:1.6rem;margin:10px 0}.portal-empty p{max-width:660px;margin:auto;color:var(--muted)}.portal-empty .portal-actions{justify-content:center}
.portal-grid,.portal-service-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.portal-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-hero{display:grid;grid-template-columns:1.4fr .6fr;gap:32px;align-items:center;padding-bottom:28px}.portal-hero h1{font-size:2.4rem;color:var(--green);margin:12px 0}.portal-lede{color:var(--muted);font-size:1.05rem}.portal-art img{display:block;width:100%;aspect-ratio:470/260}.portal-service-flow{margin:16px 0}.portal-service-flow img{max-width:320px;max-height:130px;margin:auto;display:block}.portal-card-icon{width:38px;height:38px;background:var(--sage);color:var(--green);display:grid;place-items:center;border-radius:8px}.portal-service-steps article{border-block-start:2px solid var(--gold)}.brand-workspace{display:grid;grid-template-columns:205px minmax(0,1fr);gap:28px;align-items:start}.portal-admin-workspace{position:sticky;top:104px;background:var(--sage);border:1px solid var(--line);border-radius:14px;padding:20px}.portal-admin-workspace strong{font-size:1.05rem}.portal-admin-workspace p{font-size:.85rem;color:var(--muted);margin-top:8px}.portal-admin-workspace nav{display:grid;gap:6px;margin-top:18px}.portal-admin-workspace a{font-size:.9rem;padding:10px 12px;border-radius:8px}.portal-admin-workspace a[aria-current=page]{background:var(--green);color:white}.portal-admin-workspace a:hover{background:white;color:var(--green)}
@media(max-width:1023px){.editorial-hero{grid-template-columns:1fr;gap:24px;padding-block:10px 36px}.editorial-hero h1{font-size:2.5rem;max-width:650px}.editorial-art{max-width:540px;margin-inline:auto}.editorial-art img{max-height:350px}.path-strip{grid-template-columns:1fr;gap:18px}.portal-grid,.portal-service-steps{grid-template-columns:1fr}.portal-grid-two{grid-template-columns:1fr 1fr}.brand-workspace{grid-template-columns:1fr}.portal-admin-workspace{position:static}.portal-admin-workspace nav{display:flex;flex-wrap:wrap}.portal-admin-workspace p{display:none}}
@media(max-width:899px){.library-shelf{grid-template-columns:1fr}.shelf-next{grid-column:auto}.portal-hero{grid-template-columns:1fr}.portal-art{max-width:360px}.portal-grid-two{grid-template-columns:1fr}.portal-filter{grid-template-columns:1fr 1fr}}
@media(max-width:639px){.brand-container,.brand-header>div,.brand-footer>div{padding-inline:20px}.brand-main{padding-block:24px 40px}.brand-header>div>div{min-height:72px}.brand-header .leading-tight>span:first-child{font-size:1.05rem}.brand-header a[href='/register']{padding:8px 10px;font-size:.83rem}.editorial-hero h1{font-size:2.35rem}.editorial-hero p{font-size:1.06rem}.portal-section{margin-block:42px}.portal-section-head h2{font-size:1.7rem}.path-strip{padding:20px}.path-strip form,.tools-grid,.editorial-support,.document-grid,.portal-filter{grid-template-columns:1fr}.path-strip button{width:100%}.shelf-panel{padding:22px;grid-template-columns:1fr 92px}.shelf-panel img{width:92px;height:130px}.shelf-next{align-items:start;flex-direction:column;padding:22px}.tools-section{padding:24px 20px}.tool-panel{padding:24px}.catalog-heading h1{font-size:2rem}.catalog-heading{padding-bottom:16px}.portal-tabs{gap:18px;font-size:.9rem}.portal-tabs a{padding:10px 0}.portal-material{min-height:0}.portal-filter{padding:18px}.portal-results{font-size:.85rem}.portal-empty{padding:26px 18px}.brand-content table{min-width:580px}.portal-actions{gap:10px}.portal-button{padding:10px 16px}.brand-footer .grid{row-gap:28px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.brand-header,.brand-footer,.portal-admin-workspace,[data-wa-btn]{display:none}.brand-main{padding:0}.brand-site{background:white;color:black}}

.tools-disclaimer{color:#E6ECE3;font-size:.9rem;margin-top:22px}
.card{background:white;border:1px solid var(--line);border-radius:14px;padding:24px}.badge{display:inline-flex;align-items:center;gap:6px;background:var(--sage);color:var(--green);border:1px solid #BBCDB6;border-radius:6px;padding:4px 9px;font-size:.85rem}.badge-warn{background:#FFF2D9;color:var(--warning);border-color:#D7B779}.btn-ghost{background:white;color:var(--green)}.input{width:100%}.muted{color:var(--muted)}.ui-accent-panel.h-full{background:var(--green)}

@media(min-width:1024px) and (max-width:1170px){.brand-header nav{display:none}.brand-header [data-mobile-toggle]{display:inline-flex}.brand-header #mobileMenu:not(.hidden){display:block}}

.brand-content :is(input,select,textarea):disabled{background:#EEF1EB;color:#68736A;cursor:not-allowed}.brand-content button:disabled{opacity:.55;cursor:not-allowed}

.brand-spinner{border-width:4px;border-style:solid;border-top-color:var(--green);animation:brand-spin 1s linear infinite}@keyframes brand-spin{to{transform:rotate(360deg)}}

.portal-material h2 bdi{unicode-bidi:isolate}.brand-site input[type=email]{direction:ltr;text-align:start}

.brand-content .brand-auth-title{font-size:clamp(1.9rem,3vw,2.4rem);font-weight:700;line-height:1.3;color:var(--green)}
