@import url("/static/css/academy-user-premium.css?v=20261011");
:root{
    --bg:#050505;
    --panel:#0b0a08;
    --panel-2:#11100d;
    --gold:#d8af58;
    --gold-soft:#a9843c;
    --gold-bright:#f0d28a;
    --text:#f3efe5;
    --muted:#a9a399;
    --line:rgba(216,175,88,.22);
    --line-strong:rgba(216,175,88,.46);
}

.reader-shell{max-width:1440px}.reader-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.reader-head{display:flex;justify-content:space-between;gap:24px;padding:24px;background:#102c32;color:#fff;border-radius:18px}.reader-head h1{margin:5px 0}.reader-head button,.reader-tools input{padding:9px;border-radius:8px;border:1px solid #d4b46a}.reader-tools{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:18px 0;padding:14px;background:#f6f1e5;border-radius:12px}.pdf-frame{width:100%;height:72vh;border:1px solid #d4b46a;border-radius:12px;background:#fff}.reader-card{padding:24px;border-radius:12px;background:#f6f1e5}.reader-note{display:block;margin-top:18px;font-weight:700}.reader-note textarea{display:block;width:100%;min-height:130px;margin-top:8px;padding:12px;border:1px solid #d4b46a;border-radius:10px;font:inherit}.reader-back{border:0;background:transparent;color:#245b65;font:inherit;font-weight:700;padding:0 0 12px;cursor:pointer}@media(max-width:700px){.reader-head{display:block}.pdf-frame{height:62vh}}
*{box-sizing:border-box}
html{background:var(--bg);scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 50% 0%,rgba(148,99,27,.10),transparent 34rem),linear-gradient(180deg,#070706 0%,#030303 100%);color:var(--text);font-family:"Segoe UI",Arial,sans-serif}
button,input{font:inherit}button{color:inherit}
[hidden]{display:none!important}
.library-shell{width:min(1500px,94vw);margin:0 auto;padding:32px 0 44px}
.library-header{display:grid;grid-template-columns:auto 1fr auto;gap:28px;align-items:center;padding:28px 30px;border:1px solid var(--line-strong);background:linear-gradient(135deg,rgba(19,16,10,.96),rgba(5,5,5,.96));box-shadow:0 18px 60px rgba(0,0,0,.44),inset 0 0 32px rgba(216,175,88,.035);position:relative;overflow:hidden}
.library-header::after{content:"";position:absolute;left:12%;right:12%;bottom:0;height:1px;background:linear-gradient(90deg,transparent,var(--gold-soft),transparent)}
.home-button{align-self:start;color:var(--gold-bright);text-decoration:none;border:1px solid var(--line);padding:10px 14px;border-radius:8px;background:rgba(255,255,255,.015)}
.home-button:hover{border-color:var(--line-strong);background:rgba(216,175,88,.06)}
.library-brand{text-align:center;max-width:850px;justify-self:center}.eyebrow{font-size:12px;letter-spacing:.27em;color:var(--gold-soft);font-weight:700}
.library-brand h1{margin:8px 0 9px;color:var(--gold-bright);font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,5vw,72px);font-weight:600;letter-spacing:.035em}
.library-brand p{margin:0;color:#c8c2b6;line-height:1.65;font-size:16px}
.library-badge{width:100px;height:100px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line-strong);background:#050505;padding:3px;overflow:hidden;box-shadow:inset 0 0 22px rgba(216,175,88,.07),0 0 24px rgba(216,175,88,.08)}
.library-badge img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.library-toolbar{margin-top:22px;display:flex;gap:18px;align-items:end;justify-content:space-between;padding:18px;background:rgba(9,9,8,.92);border:1px solid var(--line)}
.search-box{display:grid;gap:8px;flex:1;max-width:660px;color:var(--gold-soft);font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.search-box input{width:100%;border:1px solid var(--line);background:#050505;color:var(--text);outline:none;border-radius:8px;padding:13px 14px}
.search-box input:focus{border-color:var(--gold-soft);box-shadow:0 0 0 3px rgba(216,175,88,.06)}
.toolbar-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.filter-button,.open-category,.direction-back,.open-subdivision,.resource-buttons button{border:1px solid var(--line);background:rgba(255,255,255,.018);border-radius:8px;padding:10px 12px;cursor:pointer;transition:.18s ease}
.filter-button:hover,.filter-button.active,.open-category:hover,.direction-back:hover,.open-subdivision:hover{border-color:var(--line-strong);background:rgba(216,175,88,.08);color:var(--gold-bright)}
.library-status{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 4px 2px;color:var(--muted)}
.library-status strong{color:var(--gold-bright);font-size:24px;font-family:Georgia,"Times New Roman",serif}.library-status p{margin:0;text-align:right}
.category-grid{margin-top:18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.category-card{min-height:280px;display:flex;flex-direction:column;position:relative;padding:22px;background:linear-gradient(155deg,rgba(18,16,12,.98),rgba(7,7,6,.98));border:1px solid var(--line);overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.category-card::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(240,210,138,.38),transparent)}
.category-card:hover{transform:translateY(-3px);border-color:var(--line-strong);box-shadow:0 16px 35px rgba(0,0,0,.28),inset 0 0 20px rgba(216,175,88,.025)}
.category-number{position:absolute;right:17px;top:14px;color:rgba(216,175,88,.35);font-family:Georgia,"Times New Roman",serif;font-size:14px}
.category-icon{width:52px;height:52px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:var(--gold-bright);font-size:23px;font-family:Georgia,"Times New Roman",serif;margin-bottom:18px;background:rgba(216,175,88,.035)}
.category-card h2{margin:0 0 10px;color:#e5c578;font-family:Georgia,"Times New Roman",serif;font-size:22px;font-weight:600}.category-card p{margin:0 0 20px;color:#aaa397;line-height:1.55;font-size:14px;flex:1}.open-category{width:100%;color:#cdb573;text-align:center}
.direction-view{margin-top:22px}.direction-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 2px 14px;color:var(--gold-soft);font-size:11px;letter-spacing:.18em;font-weight:700}.direction-back{color:var(--gold-bright)}
.direction-hero{display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center;padding:34px;border:1px solid var(--line-strong);background:radial-gradient(circle at 82% 20%,rgba(216,175,88,.08),transparent 25rem),linear-gradient(135deg,rgba(20,17,11,.98),rgba(7,7,6,.98));box-shadow:0 18px 50px rgba(0,0,0,.34),inset 0 0 28px rgba(216,175,88,.025)}
.direction-kicker,.subdivision-kicker{color:var(--gold-soft);font-size:11px;letter-spacing:.22em;font-weight:700}.direction-hero h2{margin:8px 0 10px;color:var(--gold-bright);font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,5vw,64px);font-weight:600}.direction-hero p{margin:0;max-width:900px;color:#beb7ab;line-height:1.7;font-size:16px}.direction-emblem{width:96px;height:96px;display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:50%;color:var(--gold-bright);font-size:38px;background:rgba(216,175,88,.035);box-shadow:inset 0 0 24px rgba(216,175,88,.06)}
.direction-section-heading{display:flex;justify-content:space-between;align-items:end;gap:28px;padding:26px 4px 14px}.direction-section-heading span{color:var(--gold-soft);font-size:11px;letter-spacing:.18em;font-weight:700}.direction-section-heading h3{margin:7px 0 0;color:var(--gold-bright);font-family:Georgia,"Times New Roman",serif;font-size:28px}.direction-section-heading p{max-width:680px;margin:0;color:var(--muted);text-align:right;line-height:1.55}
.subdivision-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.subdivision-card{min-height:200px;display:flex;flex-direction:column;position:relative;padding:20px;background:linear-gradient(155deg,rgba(16,14,10,.98),rgba(7,7,6,.98));border:1px solid var(--line);transition:.18s ease}.subdivision-card:hover{transform:translateY(-2px);border-color:var(--line-strong);box-shadow:0 14px 30px rgba(0,0,0,.24)}.subdivision-number{position:absolute;right:15px;top:12px;color:rgba(216,175,88,.35);font-family:Georgia,"Times New Roman",serif}.subdivision-card h4{margin:15px 0 9px;padding-right:26px;color:#e5c578;font-family:Georgia,"Times New Roman",serif;font-size:20px;font-weight:600}.subdivision-card p{margin:0 0 18px;color:#958f85;line-height:1.5;font-size:13px;flex:1}.open-subdivision{width:100%;color:#cdb573}
.subdivision-panel{margin-top:18px;position:relative;padding:28px;border:1px solid var(--line-strong);background:linear-gradient(135deg,#11100d,#080807);box-shadow:0 18px 50px rgba(0,0,0,.34)}.subdivision-close{position:absolute;right:14px;top:10px;border:0;background:transparent;color:var(--muted);font-size:28px;cursor:pointer}.subdivision-panel h3{margin:8px 0 10px;color:var(--gold-bright);font-family:Georgia,"Times New Roman",serif;font-size:30px}.subdivision-panel p{margin:0;color:#b7b0a4;line-height:1.65}.resource-buttons{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}.resource-buttons button:disabled{cursor:not-allowed;opacity:.5}
.library-footer{margin-top:28px;padding:18px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;color:#79746c;font-size:12px;line-height:1.6}.library-footer span:last-child{text-align:right;max-width:760px}
.learning-materials{margin:26px 0;border:1px solid var(--line-strong);padding:24px;background:linear-gradient(135deg,rgba(18,16,12,.98),rgba(7,7,6,.98))}.learning-materials-head{display:flex;justify-content:space-between;gap:16px;align-items:start;border-bottom:1px solid var(--line);padding-bottom:16px}.learning-materials h2{margin:5px 0;color:var(--gold-bright);font:600 30px Georgia,"Times New Roman",serif}.learning-materials p{color:var(--muted);line-height:1.5}.learning-materials-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.learning-material-card{border:1px solid var(--line);padding:16px;background:rgba(255,255,255,.012)}.learning-material-card h3{margin:7px 0;color:#e5c578;font:600 19px Georgia,"Times New Roman",serif}.learning-material-card p{font-size:13px;margin:7px 0}.learning-material-type,.learning-material-source{font-size:11px!important;color:#aaa18d!important}.learning-material-action,.learning-material-disabled{display:inline-block;margin-top:8px;padding:8px 10px;border:1px solid var(--line-strong);border-radius:6px;color:var(--gold-bright);text-decoration:none;font-size:12px}.learning-material-disabled{opacity:.6}
@media (max-width:1150px){.category-grid,.subdivision-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.library-toolbar{align-items:stretch;flex-direction:column}.search-box{max-width:none}.toolbar-actions{justify-content:flex-start}}
@media (max-width:1150px){.learning-materials-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:820px){.library-shell{width:min(96vw,1500px);padding-top:14px}.library-header{grid-template-columns:1fr;padding:22px 18px;text-align:center}.home-button{justify-self:start}.library-badge{display:none}.category-grid,.subdivision-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-status{align-items:flex-start;flex-direction:column}.library-status p{text-align:left}.direction-hero{grid-template-columns:1fr;padding:24px}.direction-emblem{display:none}.direction-section-heading{align-items:flex-start;flex-direction:column}.direction-section-heading p{text-align:left}.library-footer{flex-direction:column}.library-footer span:last-child{text-align:left}}
@media (max-width:540px){.category-grid,.subdivision-grid{grid-template-columns:1fr}.category-card{min-height:240px}.filter-button{flex:1 1 46%}.direction-topbar{align-items:flex-start;flex-direction:column}.direction-hero h2{font-size:38px}}
@media (max-width:540px){.learning-materials{padding:17px}.learning-materials-head{flex-direction:column}.learning-materials-grid{grid-template-columns:1fr}}
.heritage-entry-card{display:flex;flex-direction:column;gap:5px;max-width:560px;margin:20px auto 0;padding:18px 22px;border:1px solid var(--gold-soft);border-radius:10px;background:linear-gradient(125deg,rgba(216,175,88,.17),rgba(255,255,255,.025));color:#eee3c7;text-decoration:none;box-shadow:0 12px 32px rgba(0,0,0,.25)}.heritage-entry-card:hover{border-color:var(--gold-bright);transform:translateY(-1px)}.heritage-entry-card span{font-size:10px;letter-spacing:.16em;color:var(--gold-soft)}.heritage-entry-card strong{font:600 27px Georgia,"Times New Roman",serif;color:var(--gold-bright)}.heritage-entry-card small{color:#c8c0b0}.heritage-people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.heritage-person-card{display:flex;min-height:290px;flex-direction:column;align-items:flex-start;padding:25px;border:1px solid var(--line-strong);background:linear-gradient(145deg,rgba(31,27,17,.98),rgba(8,8,7,.98));color:var(--muted);text-decoration:none;box-shadow:0 16px 38px rgba(0,0,0,.28);transition:transform .18s ease,border-color .18s ease}.heritage-person-card:hover{border-color:var(--gold-bright);transform:translateY(-4px)}.heritage-person-card h2{margin:20px 0 12px;color:var(--gold-bright);font:600 29px Georgia,"Times New Roman",serif}.heritage-person-card p{line-height:1.55}.heritage-person-card .learning-material-action{margin-top:auto}.heritage-person-roles{color:#eee0b9;font-weight:700}.author-nav{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.author-section{margin:16px 0;padding:22px;border:1px solid var(--line);background:rgba(255,255,255,.012)}.author-section h2{margin:0 0 12px;color:var(--gold-bright);font:600 28px Georgia,"Times New Roman",serif}.author-section p,.author-section li{line-height:1.6}.author-section ul,.author-section ol{padding-left:22px}.author-section a{color:var(--gold-bright)}.author-empty{color:var(--muted);font-style:italic}
@media (max-width:1150px){.heritage-people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:540px){.heritage-people-grid{grid-template-columns:1fr}.heritage-entry-card{margin-top:15px}.heritage-person-card{min-height:230px}}
.heritage-page{background:radial-gradient(circle at 50% 0,rgba(183,139,55,.11),transparent 30rem),#070706}.heritage-shell{padding-bottom:70px}.heritage-hero,.heritage-author-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr auto;gap:28px;align-items:center;padding:44px 48px;border:1px solid rgba(225,188,101,.58);background:linear-gradient(130deg,rgba(34,29,19,.98),rgba(8,8,7,.99) 56%,rgba(36,30,19,.96));box-shadow:0 25px 70px rgba(0,0,0,.52),inset 0 0 60px rgba(216,175,88,.055)}.heritage-hero::before,.heritage-author-hero::before{content:'✦  ·  ✦  ·  ✦';position:absolute;left:0;right:0;top:12px;text-align:center;letter-spacing:1.2em;color:rgba(228,193,115,.32);font-size:11px}.heritage-hero-copy{max-width:820px;justify-self:center;text-align:center}.heritage-hero-copy h1{margin:10px 0 14px;color:#f1d487;font:600 clamp(46px,6vw,82px) Georgia,"Times New Roman",serif;letter-spacing:.04em}.heritage-hero-copy p{margin:0;color:#d1c5aa;line-height:1.8;font-size:16px}.heritage-ornament{font-size:40px;color:#ebcb78;text-shadow:0 0 24px rgba(235,203,120,.45)}.heritage-hero-seal{width:105px;height:105px;display:grid;place-content:center;border:1px solid rgba(231,197,113,.75);border-radius:50%;text-align:center;color:#efd28c;font:600 19px Georgia,serif;letter-spacing:.11em;box-shadow:inset 0 0 24px rgba(216,175,88,.1)}.heritage-hero-seal span{font-size:9px;letter-spacing:.2em}.heritage-introduction{position:relative;margin:25px 0 20px;padding:34px 42px;text-align:center;border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong);background:linear-gradient(90deg,transparent,rgba(216,175,88,.06),transparent)}.heritage-introduction h2{margin:10px 0;color:#e5c578;font:600 31px Georgia,"Times New Roman",serif}.heritage-introduction p{max-width:720px;margin:auto;color:#c3baaa;line-height:1.65}.heritage-people-grid{gap:20px}.heritage-person-card{min-height:340px;padding:31px;border-color:rgba(216,175,88,.44);background:linear-gradient(155deg,rgba(40,34,22,.97),rgba(10,10,8,.99));box-shadow:0 18px 42px rgba(0,0,0,.34)}.heritage-person-card::before{content:'✦';color:var(--gold-bright);font-size:19px}.heritage-person-card h2{font-size:32px}.heritage-card-mark{margin-top:16px;color:#cdae67;font-size:10px;letter-spacing:.18em}.heritage-card-link{margin-top:auto;color:#edcf83;font-size:13px;letter-spacing:.08em}.heritage-card-link b{margin-left:8px;font-size:20px}.heritage-corpus-card{border-color:rgba(216,175,88,.5);background:linear-gradient(145deg,rgba(44,37,22,.94),rgba(13,12,9,.98))}.heritage-author-hero{grid-template-columns:auto 1fr;padding:38px 48px}.heritage-author-hero .heritage-hero-copy{text-align:left;justify-self:start}.heritage-author-hero .heritage-hero-copy h1{font-size:clamp(40px,5vw,66px)}.author-nav{padding:16px 0;border-bottom:1px solid var(--line)}.author-nav a,.author-back{color:#e9ca7f;text-decoration:none;border:1px solid rgba(216,175,88,.4);padding:9px 12px;background:rgba(216,175,88,.04);font-size:12px}.author-nav a:hover,.author-back:hover{background:rgba(216,175,88,.13);border-color:var(--gold-bright)}.author-section{padding:30px 34px;border-color:rgba(216,175,88,.28);background:linear-gradient(140deg,rgba(24,22,17,.92),rgba(9,9,8,.98))}.author-section h2{font-size:32px}.author-section p{max-width:900px;color:#c7c0b1;font-size:15px}.author-work-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;padding:0!important}.author-work-list li,.edition-list article{padding:16px;border:1px solid rgba(216,175,88,.22);background:rgba(255,255,255,.018)}.author-work-list b,.edition-list h3{display:block;color:#ebcc80;font:600 18px Georgia,"Times New Roman",serif}.author-work-list small{display:block;margin-top:7px;color:#aaa08e}.edition-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.edition-list h3{margin:0 0 8px;font-size:18px}.edition-list p{margin:0 0 12px;font-size:13px}.edition-list a{color:#e9ca7f;text-decoration:none}.author-empty{color:#a9a092}.heritage-page .learning-material-type{color:#c6a966!important}
@media (max-width:820px){.heritage-hero,.heritage-author-hero{grid-template-columns:1fr;padding:34px 22px;text-align:center}.heritage-hero-copy,.heritage-author-hero .heritage-hero-copy{text-align:center;justify-self:center}.heritage-ornament,.heritage-hero-seal{display:none}.heritage-introduction{padding:26px 18px}.author-work-list,.edition-list{grid-template-columns:1fr}.author-section{padding:24px 20px}}

/* Uzbek literature and IRFAN Heritage — public premium presentation */
.uzbek-heritage-portal{isolation:isolate;position:relative;display:flex;min-height:220px;flex-direction:column;align-items:center;justify-content:center;gap:10px;margin:0 0 22px;overflow:hidden;border:1px solid rgba(220,181,95,.68);background:radial-gradient(ellipse at 50% 108%,rgba(163,111,30,.23),transparent 54%),linear-gradient(118deg,#15130f 0%,#060605 48%,#17140e 100%);box-shadow:0 20px 54px rgba(0,0,0,.48),inset 0 0 0 7px rgba(219,179,91,.035),inset 0 0 46px rgba(201,151,60,.07);color:#e9d5a0;text-align:center;text-decoration:none}.uzbek-heritage-portal::before,.uzbek-heritage-portal::after{content:"";position:absolute;z-index:-1;width:230px;height:230px;border:1px solid rgba(218,179,92,.18);transform:rotate(45deg);background:linear-gradient(45deg,transparent 49.6%,rgba(220,181,95,.13) 50%,transparent 50.4%)}.uzbek-heritage-portal::before{left:-108px}.uzbek-heritage-portal::after{right:-108px}.uzbek-heritage-portal:hover{border-color:#f1d28a;box-shadow:0 24px 62px rgba(0,0,0,.55),inset 0 0 55px rgba(215,168,72,.12)}.portal-kicker{letter-spacing:.28em;font-size:10px;font-weight:700;color:#b99756}.uzbek-heritage-portal strong{font:600 clamp(39px,5vw,68px) Georgia,"Times New Roman",serif;letter-spacing:.06em;color:#efd38e;text-shadow:0 1px 0 #5e4215,0 0 22px rgba(227,185,88,.13)}.uzbek-heritage-portal small{color:#c8bfae;letter-spacing:.07em}.portal-action{margin-top:7px;padding:9px 15px;border:1px solid rgba(222,183,96,.46);background:rgba(171,121,37,.11);font-size:11px;letter-spacing:.13em;text-transform:uppercase}.portal-action b{font-size:17px;margin-left:8px}.portal-glint{position:absolute;width:8px;height:8px;background:#d7a84e;transform:rotate(45deg);box-shadow:0 0 13px 4px rgba(215,168,78,.23)}.portal-glint::after{content:"";position:absolute;inset:-10px 3px;background:linear-gradient(transparent,rgba(236,204,126,.75),transparent)}.portal-glint-one{top:28%;left:17%}.portal-glint-two{right:18%;bottom:26%;transform:scale(.65) rotate(45deg)}
.library-status{display:block;padding:24px 0 4px}.era-pills{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.era-pill{position:relative;min-height:74px;overflow:hidden;border:1px solid rgba(212,174,91,.37);background:linear-gradient(135deg,#171715,#090909);box-shadow:inset 0 0 24px rgba(189,143,53,.045),0 8px 22px rgba(0,0,0,.18);color:#d8c6a0;cursor:pointer;transition:.2s ease}.era-pill::before{content:"";position:absolute;inset:5px;border:1px solid rgba(215,176,92,.1);clip-path:polygon(8% 0,92% 0,100% 22%,100% 78%,92% 100%,8% 100%,0 78%,0 22%)}.era-pill::after{content:"";position:absolute;top:50%;left:8px;width:calc(100% - 16px);height:1px;background:linear-gradient(90deg,transparent,rgba(232,196,113,.36),transparent)}.era-pill span{position:relative;z-index:1;display:block;padding:12px 14px;color:#deca96;font:600 14px/1.28 Georgia,"Times New Roman",serif;text-align:center}.era-pill:hover,.era-pill.active{border-color:#e5bf69;background:radial-gradient(circle at 50% 100%,rgba(167,113,31,.18),transparent 70%),linear-gradient(135deg,#1d1a12,#0a0a09);box-shadow:0 0 22px rgba(197,142,46,.14),inset 0 0 30px rgba(197,142,46,.09)}.era-pill.active span{color:#f0d48d}
.heritage-shell{width:min(1500px,94vw)}.heritage-hero{grid-template-columns:150px 1fr 150px;min-height:390px;padding:48px 60px}.heritage-hero>.home-button{position:absolute;left:24px;top:24px;z-index:3}.heritage-hero::after{content:"";position:absolute;inset:13px;pointer-events:none;border:1px solid rgba(235,197,113,.13);clip-path:polygon(3% 0,97% 0,100% 9%,100% 91%,97% 100%,3% 100%,0 91%,0 9%)}.heritage-hero-seal{z-index:1;width:138px;height:138px;padding:5px;background:#080807;border:1px solid rgba(239,202,118,.78);box-shadow:0 0 0 6px rgba(193,139,45,.12),0 0 42px rgba(200,150,52,.22),inset 0 0 22px rgba(223,181,92,.16)}.heritage-hero-seal img{width:100%;height:100%;border-radius:50%;object-fit:cover}.heritage-sparkles{z-index:1;position:relative;height:170px}.heritage-sparkles i,.introduction-spark{position:absolute;width:8px;height:8px;background:#d7ab57;transform:rotate(45deg);box-shadow:0 0 16px 4px rgba(224,184,95,.22)}.heritage-sparkles i::before,.introduction-spark::before{content:"";position:absolute;left:3px;top:-16px;width:1px;height:40px;background:linear-gradient(transparent,#dfbe75,transparent)}.heritage-sparkles i::after,.introduction-spark::after{content:"";position:absolute;left:-16px;top:3px;width:40px;height:1px;background:linear-gradient(90deg,transparent,#dfbe75,transparent)}.heritage-sparkles i:nth-child(1){top:18px;left:22px}.heritage-sparkles i:nth-child(2){top:78px;right:20px;transform:scale(.62) rotate(45deg)}.heritage-sparkles i:nth-child(3){bottom:11px;left:57px;transform:scale(.42) rotate(45deg)}.heritage-sparkles i:nth-child(4){bottom:52px;right:0;transform:scale(.28) rotate(45deg)}.heritage-sparkles-right{grid-column:3}.heritage-sparkles-right i:nth-child(1){left:auto;right:22px}.heritage-sparkles-right i:nth-child(2){right:auto;left:20px}.heritage-sparkles-right i:nth-child(3){left:auto;right:57px}.heritage-hero-copy{z-index:1}.heritage-introduction{margin:30px 0 24px;overflow:hidden;border:1px solid rgba(218,178,91,.26);border-left:0;border-right:0}.introduction-spark{top:49%;transform:scale(.62) rotate(45deg)}.introduction-spark-left{left:7%}.introduction-spark-right{right:7%}.heritage-person-card{position:relative;align-items:center;overflow:hidden;text-align:center;border:1px solid rgba(219,180,92,.5);background:radial-gradient(ellipse at 50% 115%,rgba(159,108,29,.17),transparent 57%),linear-gradient(155deg,#211c12,#080807 70%)}.heritage-person-card::after{content:"";position:absolute;inset:8px;border:1px solid rgba(218,178,91,.1);pointer-events:none}.heritage-person-card h2{min-height:75px;display:grid;place-items:center;position:relative;z-index:1;margin:20px 0 12px}.heritage-person-roles{position:relative;z-index:1}.heritage-card-mark,.heritage-card-link{position:relative;z-index:1}.heritage-card-link{padding:9px 14px;border:1px solid rgba(221,182,94,.35);background:rgba(174,121,31,.09)}.official-source-button{display:inline-block;padding:9px 12px;border:1px solid rgba(221,182,94,.45);background:rgba(174,121,31,.08);color:#e9ca7f!important;text-decoration:none!important;font-size:12px}.official-source-button:hover{border-color:#f0d28a;background:rgba(174,121,31,.16)}
@media (max-width:900px){.era-pills{grid-template-columns:repeat(2,minmax(0,1fr))}.heritage-hero{grid-template-columns:1fr;min-height:0;padding:88px 24px 38px}.heritage-hero-seal{grid-row:1;width:116px;height:116px;justify-self:center}.heritage-sparkles{display:none}.heritage-hero-copy{grid-row:2}.heritage-hero>.home-button{left:18px;top:18px}.introduction-spark{display:none}}
@media (max-width:540px){.era-pills{grid-template-columns:1fr}.uzbek-heritage-portal{min-height:205px}.portal-glint{display:none}.uzbek-heritage-portal strong{font-size:39px}.heritage-person-card h2{min-height:auto}}
.heritage-hero .heritage-hero-seal{grid-column:1;grid-row:1}.heritage-hero .heritage-hero-copy{grid-column:2;grid-row:1}.heritage-hero .heritage-sparkles{position:absolute;width:128px;top:50%;transform:translateY(-50%)}.heritage-hero .heritage-sparkles-left{left:25px}.heritage-hero .heritage-sparkles-right{right:25px}@media (max-width:900px){.heritage-hero .heritage-hero-seal{display:grid;grid-column:1;grid-row:1}.heritage-hero .heritage-hero-copy{grid-column:1;grid-row:2}}
.heritage-hero::before,.heritage-author-hero::before,.heritage-person-card::before{content:""}

/* Heritage refinement: contained, warm-metal illumination and a clear family hierarchy. */
.heritage-page{background:radial-gradient(ellipse at 50% 0,rgba(199,142,46,.19),transparent 36rem),radial-gradient(ellipse at 50% 54%,rgba(78,65,48,.18),transparent 50rem),linear-gradient(180deg,#0d0c0a 0%,#030303 82%)}
.heritage-hero{grid-template-columns:1fr 156px!important;min-height:408px!important;padding:54px 72px 48px!important;border:1px solid rgba(246,203,111,.78)!important;background:radial-gradient(ellipse at 83% 50%,rgba(187,127,31,.22),transparent 28%),radial-gradient(ellipse at 52% 105%,rgba(105,84,51,.20),transparent 48%),linear-gradient(128deg,#292217 0%,#100f0c 49%,#17130e 100%)!important;box-shadow:0 28px 82px rgba(0,0,0,.68),inset 0 0 0 1px rgba(255,223,150,.10),inset 0 0 72px rgba(225,174,77,.10)!important}
.heritage-hero::after{inset:10px!important;border-color:rgba(244,207,124,.26)!important}
.heritage-hero .heritage-hero-copy{grid-column:1!important;grid-row:1!important;max-width:920px!important}
.heritage-hero .heritage-hero-seal{display:grid!important;grid-column:2!important;grid-row:1!important;justify-self:end;width:146px!important;height:146px!important;border-color:rgba(251,211,127,.92)!important;box-shadow:0 0 0 7px rgba(215,158,53,.17),0 0 52px rgba(225,171,65,.30),inset 0 0 28px rgba(248,206,119,.22)!important}
.heritage-hero-copy h1{color:#ffe0a0!important;text-shadow:0 2px 0 #4d3210,0 0 30px rgba(240,191,91,.18)!important}
.heritage-hero-copy p{color:#ddd2be!important;font-size:16.5px!important}
.heritage-hero .eyebrow,.heritage-collection-label{color:#eac574!important;text-shadow:0 0 14px rgba(235,189,88,.16)}
.heritage-hero .heritage-sparkles{width:155px!important;height:210px!important;opacity:.98}
.heritage-hero .heritage-sparkles-left{left:22px!important}.heritage-hero .heritage-sparkles-right{right:230px!important}
.heritage-sparkles i,.introduction-spark{background:#f1c86f!important;box-shadow:0 0 13px 4px rgba(230,177,65,.35),0 0 36px 7px rgba(177,117,26,.13)!important}
.heritage-sparkles i::before,.introduction-spark::before{background:linear-gradient(transparent,rgba(255,221,145,.95),transparent)!important}.heritage-sparkles i::after,.introduction-spark::after{background:linear-gradient(90deg,transparent,rgba(255,221,145,.95),transparent)!important}
.heritage-introduction{margin:32px 0 26px!important;padding:38px 50px!important;border:1px solid rgba(239,196,106,.42)!important;background:linear-gradient(90deg,rgba(22,19,14,.7),rgba(123,83,23,.18) 50%,rgba(22,19,14,.7))!important;box-shadow:inset 0 1px rgba(255,224,154,.08),0 16px 42px rgba(0,0,0,.22)}
.heritage-introduction::before,.heritage-introduction::after{content:'✦  ❖  ✦';position:absolute;top:12px;color:rgba(239,199,111,.5);font-size:11px;letter-spacing:.36em}.heritage-introduction::before{left:7%}.heritage-introduction::after{right:7%}
.heritage-collection-label{display:block;font-family:"Palatino Linotype",Georgia,serif!important;font-size:12px!important;font-weight:400!important;letter-spacing:.34em!important;line-height:1.45!important;transform:scaleY(1.13);transform-origin:center;opacity:.96}.heritage-introduction h2{color:#f4d287!important;text-shadow:0 1px 0 #543913;margin:11px 0!important}.heritage-introduction p{color:#d8cdbc!important}
.heritage-person-card{min-height:352px!important;padding:34px 30px!important;border:1px solid rgba(245,200,106,.66)!important;background:radial-gradient(ellipse at 50% 118%,rgba(190,125,25,.28),transparent 57%),linear-gradient(145deg,#302717 0%,#12100b 60%,#070706 100%)!important;box-shadow:0 20px 50px rgba(0,0,0,.48),inset 0 0 0 5px rgba(238,194,104,.035),inset 0 0 36px rgba(220,163,60,.08)!important}
.heritage-person-card::after{inset:6px!important;border-color:rgba(245,204,120,.23)!important;clip-path:polygon(5% 0,95% 0,100% 5%,100% 95%,95% 100%,5% 100%,0 95%,0 5%)}
.heritage-person-card:hover{border-color:#ffe0a0!important;box-shadow:0 25px 56px rgba(0,0,0,.56),0 0 28px rgba(215,158,53,.14),inset 0 0 44px rgba(225,167,65,.12)!important}.heritage-card-mark{color:#e4bb61!important}
.heritage-card-name{position:relative;z-index:1;display:flex;width:100%;min-height:78px;align-items:center;justify-content:center;padding:0 40px 0 12px}.heritage-person-card h2{min-height:0!important;display:block!important;flex:1;margin:16px 0 12px!important;color:#f7d98f!important;text-shadow:0 1px 0 #553913!important;font-size:31px!important}
.heritage-card-seal{position:absolute;right:2px;top:50%;display:grid;width:42px;height:42px;place-items:center;transform:translateY(-50%);border:1px solid rgba(250,211,126,.85);border-radius:50%;background:#0b0906;padding:3px;box-shadow:0 0 0 3px rgba(202,141,37,.14),0 0 18px rgba(222,164,51,.24)}.heritage-card-seal img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.heritage-person-roles{color:#f0dfb7!important}.heritage-card-link{border-color:rgba(246,202,110,.55)!important;background:rgba(184,122,26,.16)!important;color:#f5d58e!important}
@media (max-width:900px){.heritage-hero{grid-template-columns:1fr!important;padding:92px 26px 42px!important}.heritage-hero .heritage-hero-seal{grid-column:1!important;grid-row:1!important;justify-self:center!important}.heritage-hero .heritage-hero-copy{grid-column:1!important;grid-row:2!important}.heritage-hero .heritage-sparkles{display:none!important}.heritage-introduction::before,.heritage-introduction::after{display:none}}

/* Uzbek literature: the family-collection portal follows the approved straight-edged, symmetrical composition. */
.uzbek-literature-page .uzbek-heritage-portal{min-height:292px;gap:9px;border:1px solid rgba(246,205,120,.82);background:radial-gradient(ellipse at 50% 108%,rgba(174,112,25,.27),transparent 53%),radial-gradient(ellipse at 20% 48%,rgba(146,97,24,.14),transparent 24%),linear-gradient(112deg,#15120d 0%,#050505 48%,#16120c 100%);box-shadow:0 22px 60px rgba(0,0,0,.58),inset 0 0 0 8px rgba(242,202,118,.035),inset 0 0 58px rgba(210,151,48,.1)}
.uzbek-literature-page .uzbek-heritage-portal::before,.uzbek-literature-page .uzbek-heritage-portal::after{content:none!important}
.uzbek-literature-page .uzbek-heritage-portal strong{position:relative;z-index:1;color:#ffe0a0;text-shadow:0 2px 0 #4a300e,0 0 28px rgba(237,183,72,.24)}.uzbek-literature-page .portal-kicker{color:#e5bd66}.uzbek-literature-page .uzbek-heritage-portal small{color:#dfd0b4}.uzbek-literature-page .portal-action{border-color:rgba(248,207,118,.6);background:rgba(191,128,26,.18);color:#f5d68e}
.portal-seal{position:absolute;z-index:2;right:7.5%;top:50%;display:grid;width:138px;height:138px;place-items:center;transform:translateY(-50%);border:1px solid rgba(253,215,132,.96);border-radius:50%;background:#090704;padding:5px;box-shadow:0 0 0 7px rgba(205,143,36,.16),0 0 48px rgba(236,179,67,.34),inset 0 0 26px rgba(251,207,113,.25)}.portal-seal img{width:100%;height:100%;border-radius:50%;object-fit:cover;filter:saturate(1.18) contrast(1.08) brightness(1.08)}
.uzbek-literature-page .uzbek-heritage-portal{outline:1px solid rgba(242,200,112,.24);outline-offset:-12px}.uzbek-literature-page .uzbek-heritage-portal .portal-kicker::before,.uzbek-literature-page .uzbek-heritage-portal .portal-kicker::after{content:'❖';display:inline-block;margin:0 16px;color:#e8bd63;font-size:14px;text-shadow:0 0 12px rgba(243,194,86,.45)}
.portal-glint{z-index:2;background:#f6cf78;box-shadow:0 0 15px 4px rgba(239,186,74,.4),0 0 34px 8px rgba(171,108,22,.14)}.portal-glint-three{left:12%;bottom:26%;transform:scale(.58) rotate(45deg)}.portal-glint-four{right:14%;top:23%;transform:scale(.8) rotate(45deg)}.portal-glint-five{left:26%;top:18%;transform:scale(.38) rotate(45deg)}.portal-glint-six{right:27%;bottom:19%;transform:scale(.42) rotate(45deg)}
.uzbek-literature-page .library-header{display:block;position:relative;margin-top:24px;padding:32px 34px;text-align:center}.uzbek-literature-page .library-brand{max-width:880px;margin:auto}.uzbek-literature-page .library-header .home-button{position:absolute;left:18px;top:18px;opacity:.62;font-size:12px}.uzbek-literature-page .library-header .home-button:hover{opacity:1}
.heritage-hero{background:radial-gradient(ellipse at 88% 50%,rgba(188,126,30,.24),transparent 29%),radial-gradient(ellipse at 48% 110%,rgba(105,84,51,.18),transparent 48%),linear-gradient(128deg,#292217 0%,#100f0c 49%,#17130e 100%)!important}.heritage-hero::before{content:'❖  ·  ✦  ·  ❖'!important;color:rgba(248,204,116,.62)!important}.heritage-hero .heritage-hero-seal{width:158px!important;height:158px!important;box-shadow:0 0 0 8px rgba(215,158,53,.19),0 0 58px rgba(231,174,61,.36),inset 0 0 30px rgba(248,206,119,.26)!important}.heritage-sparkles i:nth-child(5){top:42px;left:86px;transform:scale(.34) rotate(45deg)}.heritage-sparkles i:nth-child(6){bottom:28px;right:53px;transform:scale(.54) rotate(45deg)}.heritage-sparkles-right i:nth-child(5){left:auto;right:86px}.heritage-sparkles-right i:nth-child(6){right:auto;left:53px}
@media (max-width:900px){.portal-seal{position:relative;right:auto;top:auto;margin:4px 0 2px;transform:none;width:118px;height:118px}.uzbek-literature-page .uzbek-heritage-portal{padding:28px 18px}.uzbek-literature-page .portal-glint{display:block}.uzbek-literature-page .library-header{padding-top:62px}.uzbek-literature-page .library-header .home-button{left:50%;transform:translateX(-50%);white-space:nowrap}}

.heritage-work-link{display:inline-block;color:#efd28c;font:600 18px Georgia,"Times New Roman",serif;text-decoration:none}.heritage-work-link:hover{text-decoration:underline;text-underline-offset:4px}.material-card{border-color:rgba(232,193,105,.58)!important;background:linear-gradient(145deg,rgba(45,37,21,.97),rgba(11,10,8,.99))!important}.material-card h3{margin:26px 0 10px;color:#e4c277;font:600 22px Georgia,"Times New Roman",serif}.material-author{color:#e7cf93!important;font-weight:700}.material-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.material-facts>div{padding:12px;border:1px solid rgba(216,175,88,.24);background:rgba(216,175,88,.035)}.material-facts small{display:block;margin-bottom:5px;color:#a99b7f}.material-facts b{color:#dfd1ad;font-size:13px;line-height:1.45}.edition-status{color:#d3b66e!important;font-size:11px;letter-spacing:.07em}.material-source{margin-top:10px;color:#bcb19b}.material-source summary{cursor:pointer;color:#dfc170;font-size:12px}.material-source p{font-size:12px!important}.source-pending{color:#9f9582!important;font-size:11px!important}@media(max-width:820px){.material-facts{grid-template-columns:1fr}}

/* Premium visual layer: neutral archival artwork only; content and navigation remain unchanged. */
.heritage-hero{background-image:linear-gradient(90deg,rgba(17,14,10,.97) 0%,rgba(17,14,10,.88) 46%,rgba(17,14,10,.48) 100%),url('/static/images/heritage-library-cover.png')!important;background-position:center,right center!important;background-size:cover!important}

/* Library visual layer: one neutral archival visual, re-cropped across the existing 20 directions. */
.library-header{background-image:linear-gradient(90deg,rgba(12,10,7,.98) 0%,rgba(12,10,7,.9) 52%,rgba(12,10,7,.48) 100%),url('/static/images/heritage-library-cover.png');background-position:center,right center;background-size:cover}.category-card{background-image:linear-gradient(155deg,rgba(13,12,9,.93),rgba(7,7,6,.88)),url('/static/images/heritage-library-cover.png');background-size:cover}.category-card:nth-child(4n+1){background-position:8% center}.category-card:nth-child(4n+2){background-position:34% center}.category-card:nth-child(4n+3){background-position:64% center}.category-card:nth-child(4n){background-position:91% center}.category-card:hover{border-color:rgba(240,210,138,.78);box-shadow:0 16px 35px rgba(0,0,0,.34),inset 0 0 24px rgba(216,175,88,.05)}

/* Library Beta content cards: details and primary reading remain inside IRFAN. */
.library-beta-card h3 a,.library-author a,.material-author a{color:inherit;text-decoration:none}.library-beta-card h3 a:hover,.library-author a:hover,.material-author a:hover{text-decoration:underline;text-underline-offset:4px}.library-beta-card{display:flex;min-height:276px;flex-direction:column}.library-beta-card .learning-material-action{margin-top:auto;align-self:flex-start}.library-author{color:#e7cf93!important;font-weight:700}.library-access{color:#cfc3aa!important}.category-card-pending{opacity:.72}.category-card-pending .learning-material-disabled{display:inline-block;margin-top:auto;padding:10px 12px;border:1px solid rgba(216,175,88,.16);color:#9f9582;font-size:12px;text-align:center}.material-source a{color:var(--gold-bright)}
html[dir="rtl"] .library-shell{direction:rtl;text-align:right}
html[dir="rtl"] .library-header .home-button{justify-self:end}
html[dir="rtl"] .library-status p,html[dir="rtl"] .direction-section-heading p{text-align:left}
html[dir="rtl"] .direction-back{align-self:flex-start}
html[dir="rtl"] .subdivision-number,html[dir="rtl"] .category-number{left:15px;right:auto}

/* Library visual finish: archival depth, search clarity, and long-list reading only. */
.library-shell{width:min(1380px,calc(100% - 40px));padding-top:38px}.library-header{min-height:176px;border-radius:16px;border-color:rgba(230,193,109,.48);box-shadow:0 26px 70px rgba(0,0,0,.5),inset 0 1px rgba(255,237,187,.06)}.library-header::before{position:absolute;inset:10px;border:1px solid rgba(228,190,104,.11);border-radius:10px;content:"";pointer-events:none}.library-header>*{position:relative;z-index:1}.home-button{border-radius:999px;transition:transform .18s ease,border-color .18s ease,background .18s ease}.home-button:hover{border-color:var(--gold-bright);background:rgba(216,175,88,.12);transform:translateY(-1px)}.home-button:focus-visible,.filter-button:focus-visible,.open-category:focus-visible,.learning-material-action:focus-visible,.official-source-button:focus-visible,.search-box input:focus-visible{outline:2px solid var(--gold-bright);outline-offset:3px}.library-brand h1{letter-spacing:.025em}.library-brand p{max-width:640px;margin-inline:auto}
.library-toolbar{position:relative;overflow:hidden;margin-top:18px;padding:20px;border-color:rgba(216,175,88,.28);border-radius:14px;background:linear-gradient(105deg,rgba(22,19,13,.96),rgba(8,8,7,.95));box-shadow:inset 0 1px rgba(255,236,183,.04)}.library-toolbar::after{position:absolute;right:18px;bottom:0;left:18px;height:1px;background:linear-gradient(90deg,transparent,rgba(240,210,138,.48),transparent);content:""}.search-box{font-size:10px;letter-spacing:.17em}.search-box input{min-height:48px;border-color:rgba(216,175,88,.35);border-radius:10px;background:rgba(4,4,4,.72);font-size:15px;letter-spacing:normal;text-transform:none;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.search-box input:focus{border-color:var(--gold-bright);background:#050504;box-shadow:0 0 0 4px rgba(216,175,88,.09)}.filter-button{border-radius:999px;font-size:12px}.filter-button.active{box-shadow:inset 0 1px rgba(255,238,188,.11)}
.library-status{position:relative;margin-top:12px;padding:18px 20px;border-left:2px solid var(--gold);background:linear-gradient(90deg,rgba(87,62,19,.18),transparent);font-size:14px}.library-status strong{font-size:31px;line-height:1}.category-grid{gap:16px}.category-card{min-height:292px;border-radius:13px;border-color:rgba(216,175,88,.24);box-shadow:inset 0 1px rgba(255,236,183,.035);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.category-card::after{position:absolute;right:18px;bottom:18px;left:18px;height:1px;background:linear-gradient(90deg,transparent,rgba(216,175,88,.23),transparent);content:""}.category-card:hover{box-shadow:0 20px 42px rgba(0,0,0,.35),inset 0 1px rgba(255,236,183,.07);transform:translateY(-4px)}.category-icon{box-shadow:inset 0 0 18px rgba(216,175,88,.06)}.open-category{position:relative;border-radius:7px;z-index:1}.category-card-pending{background-image:linear-gradient(155deg,rgba(13,12,9,.95),rgba(7,7,6,.93));opacity:.78}
.learning-materials{margin-top:32px;border-radius:14px;border-color:rgba(216,175,88,.34);background:linear-gradient(145deg,rgba(22,19,13,.97),rgba(8,8,7,.98));box-shadow:0 18px 48px rgba(0,0,0,.28),inset 0 1px rgba(255,236,183,.04)}.learning-materials-head{padding-bottom:18px}.learning-materials h2{letter-spacing:.01em}.learning-material-card{min-height:244px;border-radius:10px;border-color:rgba(216,175,88,.23);background:linear-gradient(145deg,rgba(29,25,17,.75),rgba(10,10,8,.84));transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.learning-material-card:hover{border-color:rgba(240,210,138,.63);box-shadow:0 13px 28px rgba(0,0,0,.28);transform:translateY(-2px)}.learning-material-type{letter-spacing:.06em}.learning-material-action{border-radius:7px;transition:background .18s ease,border-color .18s ease,transform .18s ease}.learning-material-action:hover{border-color:var(--gold-bright);background:rgba(216,175,88,.13);transform:translateY(-1px)}.direction-topbar{padding-top:4px}.material-source{padding:12px 0;border-top:1px solid rgba(216,175,88,.16)}.material-source summary{padding:.25rem 0}.library-footer{padding-top:22px}
@media(max-width:820px){.library-shell{width:min(100% - 24px,1380px);padding-top:14px}.library-header{min-height:0;padding:24px 18px;border-radius:13px;background-image:linear-gradient(145deg,rgba(12,10,7,.98),rgba(12,10,7,.86)),url('/static/images/heritage-library-cover.png')}.library-header::before{inset:7px}.library-toolbar{padding:14px;border-radius:12px}.library-status{padding:15px 16px}.category-grid{gap:12px}.learning-materials{margin-top:22px;padding:18px}.learning-material-card{min-height:0}}
@media(max-width:390px){.library-brand h1{font-size:2.5rem}.library-brand p{font-size:14px}.toolbar-actions{width:100%}.filter-button{flex:1 1 100%;padding:10px 8px}.library-status{gap:9px}.library-status strong{font-size:28px}.category-card{min-height:0;padding:19px}.direction-topbar{font-size:10px}.learning-materials h2{font-size:25px}.learning-material-card{padding:14px}.library-footer{font-size:11px}}
html[dir="rtl"] .library-status{border-right:2px solid var(--gold);border-left:0;background:linear-gradient(270deg,rgba(87,62,19,.18),transparent)}html[dir="rtl"] .library-toolbar::after{background:linear-gradient(270deg,transparent,rgba(240,210,138,.48),transparent)}html[dir="rtl"] .category-card::after{background:linear-gradient(270deg,transparent,rgba(216,175,88,.23),transparent)}
@import url("/static/css/irfan-design-tokens.css");
@media(max-width:820px){.library-shell .filter-button,.library-shell .open-category,.library-shell .learning-material-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px}}
