html{scroll-padding-top:100px}body{isolation:isolate}button,input{font:inherit}button,a,[role=button],summary{outline-offset:5px}button:focus-visible,a:focus-visible,[role=button]:focus-visible,input:focus-visible{outline:2px solid var(--gold-primary)}button{cursor:pointer}.hero-title{line-height:1.55}.hero-actions{flex-wrap:wrap}.arch-inner img{object-position:50% 20%}.poems-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}.books-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}.mobile-menu{display:none}.gallery-item img{object-position:50% 25%}.gallery-item:focus-visible .gallery-overlay{opacity:1}.poem-search{max-width:550px;display:block;margin:0 auto 1.2rem;color:var(--gold-light);font-size:.9rem}.poem-search input{display:block;width:100%;margin-top:8px;border:1px solid #d4af3750;background:var(--card-bg-dark);border-radius:9px;padding:12px 15px;color:var(--text-light)}.filter-status{text-align:center;color:var(--gold-light);margin-bottom:1.5rem;font-size:.9rem}.source-links{display:flex;justify-content:center;flex-wrap:wrap;gap:15px;margin-top:25px}.source-links .btn-secondary{font-size:.9rem}.book-card h3{color:var(--text-light)!important}.book-card>p{color:var(--text-light)!important;opacity:.75}.books-grid{max-width:800px;margin:auto}.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-item{height:370px}.gallery-overlay{opacity:1;background:linear-gradient(to top,#051c17d0,transparent 60%);padding:1.2rem}body.light-mode header{background:#f4efebed}body.light-mode .brand-title,body.light-mode .hero-title,body.light-mode .section-title,body.light-mode .poem-title,body.light-mode .about-text h3{color:#122822}body.light-mode .brand-title span,body.light-mode .about-text p,body.light-mode .stat-card .label,body.light-mode .poem-footer{color:#52615b}body.light-mode .saudi-badge,body.light-mode .hero-verse p,body.light-mode .poem-snippet,body.light-mode .btn-secondary,body.light-mode .poem-search,body.light-mode .filter-status{color:#795d09}body.light-mode .hero-verse{background:#e7decd}body.light-mode .stat-card{background:#f5f0e8}body.light-mode .poem-footer{border-color:#ccc3b4}.andalusian-arch-frame{max-width:100%}dialog{margin:auto;width:min(960px,94vw);max-height:92dvh;border:1px solid #d4af3760;border-radius:16px;padding:0;background:var(--bg-dark);color:var(--text-light)}dialog::backdrop{background:#000a;backdrop-filter:blur(8px)}.reader-top{position:sticky;top:0;z-index:2;background:var(--bg-dark);padding:15px 23px;border-bottom:1px solid #d4af3740;display:flex;justify-content:space-between;align-items:center;color:var(--gold-primary)}.reader-top button{font-size:28px;line-height:1}#readerContent{padding:28px}.reader-title{font-family:var(--font-nastaliq);font-size:1.8rem;color:var(--gold-primary)}.reader-meta,.reader-note{font-size:.9rem;opacity:.75;line-height:1.9;margin-top:12px}.reader-tools{display:flex;flex-wrap:wrap;gap:10px;margin:23px 0}.reader-tools button{background:transparent;border:1px solid #d4af3750;border-radius:8px;padding:7px 13px;color:var(--text-light)}.reader-tools button.selected{background:var(--gold-primary);color:var(--emerald-dark)}.reader-verses{font:var(--verse-size,28px)/2.3 var(--font-amiri);padding:20px 0}.reader-verses>div{display:flex;justify-content:space-around;gap:20px}.reader-original{max-width:700px;margin:auto}.reader-original img,.full-image{display:block;width:100%;height:auto;border-radius:8px}.download-image{display:inline-block;margin:20px 0 5px}.reader-notice{font-size:.85rem;color:var(--gold-primary);min-height:1.6em;margin-top:15px}[hidden]{display:none!important}@media(max-width:992px){header{padding:1rem 5%;flex-wrap:wrap;gap:12px}.mobile-menu{display:flex}nav{order:3;width:100%}nav ul{display:none;gap:10px;justify-content:space-around;flex-wrap:wrap;padding-top:12px}nav.open ul{display:flex}nav a{font-size:.9rem}.hero-actions{justify-content:center}.hero{gap:35px;min-height:0}.hero-title{font-size:2.7rem}.gallery-item{height:300px}.about-container{padding:2rem;gap:2rem}}@media(max-width:600px){header{padding:12px 4%}.brand{gap:8px}.brand-logo{width:35px;height:35px;font-size:1rem}.brand-title{font-size:1rem}.brand-title span{font-size:.65rem}.nav-actions{gap:7px}.btn-theme{width:34px;height:34px}.hero{padding-top:115px;padding-bottom:40px}.hero-title{font-size:2rem;line-height:1.7}.saudi-badge{font-size:.75rem;padding:5px 12px}.hero-verse{padding:1rem}.hero-verse p{font-size:1.4rem}.hero-actions{gap:12px}.btn-primary,.btn-secondary{padding:10px 17px;font-size:.9rem}.andalusian-arch-frame{width:290px;height:390px}section{padding:48px 5%}.section-header{margin-bottom:2rem}.section-title{font-size:1.8rem}.section-subtitle{font-size:1.1rem}.about-container{padding:1.4rem;gap:1.5rem}.about-text h3{font-size:1.4rem}.about-text p{font-size:.95rem}.stats-grid{gap:12px}.stat-card{padding:1rem}.stat-card .number{font-size:2rem}.stat-card .label{font-size:.8rem}.poetry-filter{gap:8px;margin-bottom:1.5rem}.filter-btn{font-size:.85rem;padding:6px 15px}.poem-card{padding:1.5rem}.poem-title{font-size:1.3rem}.poem-snippet{font-size:1.25rem}.poem-footer{font-size:.8rem;gap:10px}.gallery-grid{grid-template-columns:1fr;gap:18px}.gallery-item{height:400px;max-width:400px;width:100%;margin:auto}.footer-brand{font-size:1.2rem}.footer-links{gap:16px;flex-wrap:wrap;font-size:.85rem}.copyright{font-size:.75rem}.reader-verses>div{display:block;text-align:center;margin-bottom:20px}.reader-verses span{display:block}#readerContent{padding:20px}.reader-title{font-size:1.4rem}.reader-tools{gap:7px}.reader-tools button{font-size:.85rem;padding:7px 10px}.reader-meta,.reader-note{font-size:.8rem}.reader-verses{font-size:var(--verse-size,25px)}dialog{width:100vw;max-width:none;max-height:100dvh;height:100dvh;border:0;border-radius:0;margin:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
/* Biography: continuous prose and clearly separated career entries. */
#about .about-container{grid-template-columns:minmax(0,1fr);gap:2.5rem;align-items:start}
#about .about-text{min-width:0;width:100%;max-width:80ch;margin-inline:auto;direction:rtl;text-align:start}
#about .about-text h3{margin-bottom:1.5rem;line-height:1.7;text-wrap:balance}
#about .bio-content{font-size:1.1rem;line-height:2.15;color:rgba(255,255,255,.88);overflow-wrap:break-word}
#about .bio-content p{font-size:inherit;line-height:inherit;margin:0 0 1.2em;text-align:start}
#about .bio-list{list-style:disc;margin:1.5rem 0;padding-inline-start:1.5em;display:grid;gap:.7em}
#about .bio-list li{padding-inline-start:.35em;line-height:2}
#about .bio-list li::marker{color:var(--gold-primary)}
#about .bio-content .bio-note{border-top:1px solid #d4af3733;margin-top:1.8rem;padding-top:1.3rem;text-align:center;color:var(--gold-light)}
#about .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #d4af3733;padding-top:2rem;gap:1rem}
body.light-mode #about .bio-content{color:#334d42}
body.light-mode #about .bio-content .bio-note{color:#795d09}
@media(max-width:600px){#about .about-container{padding:1.4rem 1.15rem;gap:1.8rem}#about .bio-content{font-size:1rem;line-height:2.05}#about .bio-list{gap:.8em;padding-inline-start:1.2em}#about .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:1.5rem}}
#about .bio-works{margin-top:2rem;padding-top:1.6rem;border-top:1px solid #d4af3733}
#about .bio-works h4{font-family:var(--font-nastaliq);font-size:1.3rem;color:var(--gold-light);margin:0 0 .8rem;line-height:1.7}
#about .bio-works-list{list-style:decimal;margin:.8rem 0 0;padding-inline-start:1.8em;display:grid;gap:.45em}
#about .bio-works-list li{padding-inline-start:.4em;line-height:1.9}
#about .bio-works-list li::marker{color:var(--gold-primary);font-weight:700}
body.light-mode #about .bio-works h4{color:#795d09}
/* Separate public pages share the original emerald-and-gold design. */
a.poem-card{display:block;text-decoration:none;color:inherit}#mainNav a[aria-current=page]{color:var(--gold-primary);border-bottom:1px solid var(--gold-primary);padding-bottom:6px}.skip-link{position:fixed;top:-100px;right:20px;z-index:200;background:var(--gold-primary);color:#072a22;padding:10px 18px}.skip-link:focus{top:10px}.internal-page{padding-top:115px;min-height:75vh}.internal-page>section{padding-top:25px}.breadcrumbs{max-width:1200px;margin:0 auto;padding:15px 5% 5px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:.9rem;color:var(--gold-light)}.breadcrumbs a{text-decoration:none;color:var(--text-light);opacity:.75}.breadcrumbs a:hover{opacity:1;text-decoration:underline}.home-summary{display:grid;grid-template-columns:1fr 1.2fr;gap:50px;align-items:start;padding-top:30px;padding-bottom:30px}.home-summary h2,.featured-heading h2{font-family:var(--font-nastaliq);color:var(--gold-light);font-size:1.7rem;margin-bottom:15px}.home-summary p{line-height:2;margin-bottom:22px;color:var(--text-light);opacity:.85}.home-destinations{display:grid;gap:12px}.home-destinations>a{position:relative;display:block;padding:18px 55px 18px 22px;background:var(--card-bg-dark);border:1px solid #d4af3733;border-radius:12px;text-decoration:none;color:var(--text-light)}.home-destinations>a:hover{border-color:var(--gold-primary)}.home-destinations>a>span{position:absolute;right:18px;color:var(--gold-primary)}.home-destinations h3{font-size:1.1rem}.home-destinations p{font-size:.9rem;margin:4px 0 0}.featured-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px}.featured-heading a{color:var(--gold-primary);text-decoration:none}.home-featured{padding-top:25px}.poem-page{max-width:1080px;margin:0 auto;padding:25px 5% 70px}.poem-page .section-header{margin-bottom:1.8rem}.poem-reading-tools{display:flex;justify-content:center;gap:10px;margin-bottom:24px}.poem-reading-tools button{border:1px solid #d4af3766;border-radius:7px;background:var(--card-bg-dark);color:var(--text-light);padding:8px 17px}.poem-full-text{font-family:var(--font-amiri);font-size:var(--poem-size,28px);line-height:2.4;padding:30px 18px;background:var(--card-bg-dark);border:1px solid #d4af3733;border-radius:14px;overflow-wrap:break-word}.verse-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;text-align:center;margin-bottom:.65em}.verse-row>span:only-child{grid-column:1/-1}.poem-source{margin:35px 0;border:1px solid #d4af3744;border-radius:10px;padding:18px}.poem-source summary{cursor:pointer;color:var(--gold-primary)}.poem-source img{display:block;width:100%;max-width:700px;height:auto;margin:20px auto}.poem-source .btn-secondary{display:inline-block}.back-to-poems{display:inline-block;margin-top:30px;color:var(--gold-primary);text-decoration:none}#copyStatus{min-height:1.8em;color:var(--gold-primary);font-size:.9rem;margin-top:15px}.published-works{max-width:850px;margin:0 auto 50px;background:var(--card-bg-dark);border:1px solid #d4af3733;border-radius:14px;padding:30px}.published-works h2,.digital-heading{font-family:var(--font-nastaliq);font-size:1.4rem;color:var(--gold-light);margin-bottom:15px}.published-works ol{padding-inline-start:1.8em;line-height:2.2;margin-top:18px}.published-works li{padding-inline-start:.4em;margin-bottom:.3em}.published-works li::marker{color:var(--gold-primary)}.digital-heading{text-align:center;margin-bottom:30px}.missing-page{text-align:center}.missing-page p{margin:15px 0 25px}body.light-mode .breadcrumbs,body.light-mode .home-summary h2,body.light-mode .featured-heading h2,body.light-mode .published-works h2,body.light-mode .digital-heading{color:#795d09}
@media(max-width:992px){.internal-page{padding-top:125px}.home-summary{grid-template-columns:1fr;gap:25px}.breadcrumbs{width:100%;order:initial}.home-page .hero{padding-bottom:35px}}
@media(max-width:600px){.internal-page{padding-top:100px}.internal-page>section{padding-top:22px}.breadcrumbs{font-size:.8rem;padding-top:12px;gap:8px}.poem-page{padding-top:25px}.poem-full-text{padding:22px 12px}.verse-row{grid-template-columns:1fr;gap:0;margin-bottom:1em}.home-summary h2,.featured-heading h2{font-size:1.4rem}.featured-heading a{font-size:.85rem}.published-works{padding:22px 18px}.published-works ol{font-size:1rem}.poem-page .section-title{font-size:1.8rem}.poem-reading-tools button{padding:8px 12px}}
/* Equal-width Arabic hemistich columns and aligned verse endpoints. */
.hero-content{min-width:0}.hero-verse{min-width:0}.hero-verse>p{--hero-base-size:25.6px;display:grid;gap:.55em;width:100%;margin:0;font-size:var(--hero-base-size);line-height:2.2;direction:rtl}
.hero-bayt{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(16px,2.5vw,36px);width:100%}
.hero-hemistich{display:block;min-width:0;white-space:nowrap;text-align:justify;text-align-last:justify;text-justify:inter-word;letter-spacing:normal}
.hero-bayt.single-hemistich{grid-template-columns:minmax(0,1fr)}
@media(max-width:600px){.hero-verse>p{--hero-base-size:20px;line-height:2.25;gap:.7em}.hero-bayt{column-gap:14px}}
/* The poet's full name shares the outer width of the verse panel. */
.hero-title{width:100%;min-width:0;margin-bottom:1.5rem}
.hero-title .hero-role{display:block;font-family:var(--font-nastaliq);font-size:1.6rem;line-height:1.8;color:var(--text-light);text-align:start;margin-bottom:.35rem}
.hero-title .hero-poet-name{--name-base-size:68px;display:block;width:100%;font-family:'Arabic Typesetting','Amiri',serif;font-weight:700;font-size:var(--name-base-size);line-height:1.5;direction:rtl;white-space:nowrap;text-align:justify;text-align-last:justify;text-justify:inter-word;letter-spacing:normal;color:var(--gold-primary)}
@media(max-width:600px){.hero-title .hero-role{font-size:1.2rem}.hero-title .hero-poet-name{--name-base-size:44px}.hero-title{margin-bottom:1.2rem}}

/* Digital diwan and multi-page poem sources */
.book-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:24px 0}
.book-contents{text-align:right;margin-top:24px;border-top:1px solid rgba(212,175,55,.25);padding-top:16px}
.book-contents summary,.poem-source summary{cursor:pointer;font-weight:700;padding:10px 0}
.book-contents ol{padding-inline-start:24px;margin-top:16px}
.book-contents li{padding:8px 0;border-bottom:1px solid rgba(212,175,55,.12)}
.book-contents a{color:var(--text-light);text-underline-offset:5px}
.book-contents li span{font-size:.8rem;opacity:.7;margin-inline-start:12px;white-space:nowrap}
.poem-provenance{margin:36px 0;padding:28px;border:1px solid rgba(212,175,55,.25);border-radius:16px;text-align:right}
.poem-provenance h2{font-family:var(--font-amiri);font-size:1.6rem;color:var(--gold-primary)}
.poem-provenance>a:last-child{display:inline-block;margin-top:20px;color:var(--gold-primary)}
.source-caption{font-size:.9rem;opacity:.8;margin:10px 0 20px}
.source-page-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px;margin-top:20px}
.source-page-grid figure{margin:0;min-width:0}
.source-page-grid img{display:block;width:100%;height:auto;margin:0;border-radius:8px}
.source-page-grid figcaption{font-family:var(--font-tajawal);font-size:.85rem;padding:12px 0}
.source-page-grid figcaption a{display:block;color:var(--gold-primary);margin-top:6px}
.transcription-note{text-align:right;border-inline-start:3px solid var(--gold-primary);padding:16px;background:var(--card-bg-dark)}
@media(max-width:600px){.poem-provenance{padding:18px 14px}.book-actions>a{width:100%}}

/* Nastaliq headings need room for descending and stacked letterforms. */
.poem-card .poem-title{text-align:center;font-family:var(--font-nastaliq);line-height:2.7;padding:.25em 0 .5em;margin-bottom:1rem;overflow:visible}
.section-title,.reader-title,.footer-brand{line-height:2.5}
.hero-role{line-height:2.7;padding-block:.15em .4em}
.brand-title{line-height:2.4}
.home-summary h2,.featured-heading h2,#about .bio-works h4{line-height:2.5}

/* Approved emerald, gold and ivory emblem */
.brand-logo.site-logo{display:block;width:68px;height:64px;object-fit:contain;flex-shrink:0;border:0;border-radius:0;background:transparent}.footer-logo-link{display:block;width:240px;max-width:70vw;margin:0 auto 24px}.footer-logo{display:block;width:100%;height:auto;border-radius:0;background:transparent}@media(max-width:600px){.brand-logo.site-logo{width:51px;height:48px}.footer-logo-link{width:210px}}

/* Individual poems: warm paper, quiet gold frame and two signature seals. */
.poem-page{max-width:1200px;padding:24px 24px 70px}
.poem-paper{position:relative;isolation:isolate;padding:52px 56px 32px;color:#073b2d;background-color:#ead09b;background-image:linear-gradient(#fff5db38,#fff5db38),url('/assets/poem-parchment.jpg');background-size:100% 100%,100% auto;background-repeat:no-repeat,repeat-y;border:3px double #96701e;outline:1px solid #ba913b;outline-offset:-10px;box-shadow:0 14px 45px #0003;border-radius:0}
.poem-paper .section-header{margin:0;text-align:center;padding:0}
.poem-paper .section-title{font-family:var(--font-nastaliq);font-size:clamp(2rem,4.5vw,3.5rem);line-height:2.2;color:#073b2d;background:none;-webkit-text-fill-color:currentColor;margin:0 0 12px;padding:0;overflow-wrap:anywhere}
.poem-paper .section-title::after{display:none}
.poem-paper .reader-meta{font-family:var(--font-amiri);font-size:clamp(1.2rem,2.5vw,1.65rem);color:#073b2d;line-height:1.8;margin:0}
.paper-divider{display:flex;align-items:center;justify-content:center;gap:10px;max-width:680px;margin:22px auto}
.paper-divider::before,.paper-divider::after{content:'';height:1px;background:#9b7628;flex:1}
.paper-divider img{display:block;width:72px;height:68px;object-fit:contain;flex-shrink:0}
.poem-paper .poem-full-text{background:none;border:0;border-radius:0;padding:8px 0;color:#073b2d;line-height:2.2;font-size:var(--poem-size,28px)}
.poem-paper .verse-row{gap:clamp(24px,4vw,60px);margin:0 0 1em;align-items:baseline}
.poem-paper .verse-row:last-child{margin-bottom:0}
.poem-paper .verse-row>span{text-align:center;text-align-last:center;word-spacing:normal;letter-spacing:normal;min-width:0}
.poem-paper .verse-row>span:only-child{text-align:center;text-align-last:center}
.paper-footer{text-align:center;font-family:var(--font-amiri);font-size:1.5rem;line-height:1.8}
.paper-footer p{margin:0}.paper-footer a{display:block;color:#073b2d;text-decoration:none;font-family:Georgia,serif;font-size:15px;letter-spacing:4px}
.paper-flourish{display:block;color:#96701e;font-size:29px;line-height:1.6}
.paper-corner{position:absolute;width:65px;height:65px;color:#96701e;pointer-events:none}.paper-corner svg{display:block;width:100%;height:100%}.paper-corner.tl{top:12px;left:12px}.paper-corner.tr{top:12px;right:12px;transform:rotate(90deg)}.paper-corner.br{bottom:12px;right:12px;transform:rotate(180deg)}.paper-corner.bl{bottom:12px;left:12px;transform:rotate(270deg)}
@media(max-width:600px){.poem-page{padding:18px 12px 45px}.poem-paper{padding:34px 22px 28px}.paper-corner{width:36px;height:36px}.poem-paper .section-title{font-size:2rem;line-height:2.3}.paper-divider{margin:18px auto;gap:8px}.paper-divider img{width:54px;height:51px}.poem-paper .poem-full-text{font-size:var(--poem-size,24px);padding:5px 0}.poem-paper .verse-row{grid-template-columns:1fr;gap:4px;margin-bottom:1.1em}.poem-paper .verse-row>span{text-align:center;text-align-last:center}.paper-footer{font-size:1.2rem}.paper-footer a{font-size:12px;letter-spacing:3px}}
@media print{.poem-reading-tools,.breadcrumbs,.poem-provenance,.back-to-poems,#copyStatus{display:none}.poem-paper{box-shadow:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}.poem-paper .verse-row{break-inside:avoid}}

/* Keep each hemistich intact visually; never stretch Arabic word spacing. */
.poem-paper .poem-full-text{max-width:960px;margin-inline:auto}
.poem-paper .verse-row{position:relative;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(48px,6vw,80px);line-height:2;margin-bottom:.8em}
.poem-paper .verse-row:has(>span:nth-child(2))::after{content:'✦';position:absolute;inset-inline-start:50%;top:.55em;transform:translateX(50%);font-size:11px;line-height:2;color:#96701e;opacity:.65}
@media(max-width:760px){.poem-paper .verse-row{grid-template-columns:1fr;row-gap:0;margin-bottom:1.25em;padding-bottom:.75em;border-bottom:1px solid #96701e26}.poem-paper .verse-row:last-child{border-bottom:0;padding-bottom:0}.poem-paper .verse-row:has(>span:nth-child(2))::after{display:none}.poem-paper .verse-row>span{text-align:center;text-align-last:center;line-height:1.9}}

.lineage-link{max-width:1000px;margin:0 auto 32px;text-align:center}.lineage-link .btn-secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:240px;padding:18px 30px;border-radius:12px}.lineage-page{max-width:1100px;margin:auto;padding:35px 5% 70px}.lineage-content{background:var(--card-bg-dark);border:1px solid #d4af3755;border-radius:16px;padding:clamp(22px,4vw,48px);margin-bottom:32px}.lineage-content p{font-family:var(--font-amiri);font-size:clamp(1.2rem,2.3vw,1.5rem);font-weight:700;line-height:2.3;text-align:right;word-spacing:normal;margin-bottom:1.2em;overflow-wrap:break-word}.lineage-content .lineage-chain{border-top:1px solid #d4af3744;padding-top:24px;margin-bottom:0;line-height:2.5}
