﻿/* Midad editorial identity — specific to the literary library. */
.books-hero{background:radial-gradient(circle at 20% 0%,#433429 0,#241c17 45%,#1d1815 100%);position:relative;overflow:hidden}
.books-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,#b98d4930);pointer-events:none}
.books-hero-grid{position:relative;align-items:center}
.books-hero h1{max-width:730px;font-size:clamp(2.6rem,4.5vw,4.7rem);line-height:1.35}
.books-hero-grid>div>p{max-width:620px;font-size:1.1rem;line-height:2}
.books-hero-grid figure img{height:auto;aspect-ratio:3/2;border-radius:6px 92px 6px 6px;object-fit:cover;box-shadow:22px 24px 0 #ad845a24}
.midad-editorial{font-family:inherit}
.midad-section-heading{max-width:850px;margin-bottom:30px}
.midad-section-heading h2,.midad-shelf-heading h2,.midad-last-word h2{font-size:clamp(1.8rem,3vw,3.15rem);line-height:1.38;letter-spacing:-.025em;margin:.55rem 0 1rem;color:#2a211b}
.midad-section-heading p,.midad-shelf-heading p,.midad-last-word p{font-size:1rem;line-height:2;color:#594d41}
.midad-orient{padding-top:82px;padding-bottom:70px}
.midad-reading-routes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.midad-reading-routes article{position:relative;padding:32px;background:#fffdf8;border:1px solid #d9c9b3;border-top:5px solid #9b7041;display:flex;flex-direction:column;min-width:0}
.midad-reading-routes article:nth-child(2){border-top-color:#536451;background:#f3f3ea}
.midad-reading-routes article:nth-child(3){border-top-color:#675372;background:#f4f0f4}
.midad-reading-routes article>span,.midad-curation article>span{color:#806142;font-size:.78rem;font-weight:800;letter-spacing:.02em}
.midad-reading-routes h3,.midad-curation h3{font-size:1.35rem;line-height:1.55;margin:18px 0 10px;color:#2d231b}
.midad-reading-routes p,.midad-curation p{line-height:1.95;color:#594d41;margin:0 0 20px}
.midad-reading-routes a,.midad-curation a{margin-top:auto;color:#6c431c;font-weight:800;text-decoration:underline;text-underline-offset:5px}
.midad-shelf-story{padding:78px 0;background:#e9dfcc;position:relative}
.midad-shelf-story:before{content:"";position:absolute;inset:0;opacity:.18;background-image:repeating-linear-gradient(0deg,transparent 0 25px,#967450 26px);pointer-events:none}
.midad-shelf-grid{position:relative;display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);gap:clamp(28px,6vw,95px)}
.midad-shelf-heading{position:sticky;top:24px;align-self:start}
.midad-publishing-path{padding:0;margin:0;list-style:none;display:grid;gap:12px}
.midad-publishing-path li{display:grid;grid-template-columns:58px 1fr;gap:20px;background:#faf7ef;border:1px solid #d5c7b1;padding:24px 28px}
.midad-publishing-path b{color:#9b7041;font-size:1.5rem}
.midad-publishing-path h3{margin:0 0 7px;font-size:1.25rem;color:#2d231b}
.midad-publishing-path p{margin:0;color:#594d41;line-height:1.95}
.midad-curation{padding-top:84px;padding-bottom:84px}
.midad-curation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.midad-curation article{padding:32px;border-radius:8px 8px 65px 8px;background:#efe5d5;min-width:0;display:flex;flex-direction:column}
.midad-curation article:nth-child(2){background:#e9e9df;border-radius:65px 8px 8px 8px}
.midad-curation article:nth-child(3){background:#ede7eb;border-radius:8px 8px 8px 65px}
.midad-last-word{background:#282019;padding:78px 0;color:#eee4d2}
.midad-last-word-grid{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:clamp(30px,6vw,100px)}
.midad-last-word h2{color:#f5e8d0}
.midad-last-word p{color:#e1d3c0}
.midad-last-links{display:flex;flex-wrap:wrap;gap:20px;margin-top:20px}
.midad-last-links a{color:#efd0a0;text-decoration:underline;text-underline-offset:5px;font-weight:800}
.midad-reading-routes a:focus-visible,.midad-curation a:focus-visible,.midad-last-links a:focus-visible{outline:3px solid #d9a65c;outline-offset:4px}
@media(max-width:900px){.midad-reading-routes,.midad-curation-grid{grid-template-columns:1fr 1fr}.midad-shelf-grid,.midad-last-word-grid{grid-template-columns:1fr}.midad-shelf-heading{position:static}}
@media(max-width:650px){.midad-reading-routes,.midad-curation-grid{grid-template-columns:1fr}.midad-orient,.midad-curation{padding-top:50px;padding-bottom:50px}.midad-shelf-story,.midad-last-word{padding:50px 0}.midad-publishing-path li{grid-template-columns:38px 1fr;gap:12px;padding:20px}.books-hero-grid figure img{border-radius:4px 60px 4px 4px;box-shadow:12px 14px 0 #ad845a24}}
/* Each informational page uses a separate editorial treatment; body copy stays editable in admin. */
.information-page{--page-accent:#9b7041}
.information-page-methodology{--page-accent:#526451}
.information-page-copyright{--page-accent:#9d543a}
.information-page-privacy{--page-accent:#476771}
.information-page-terms{--page-accent:#695b73}
.information-page-contact{--page-accent:#a77c42}
.information-page .information-hero-v2{background:#e9e0d1}
.information-page .information-hero-v2:before{background:repeating-linear-gradient(90deg,transparent 0 119px,#6c50300d 120px)}
.information-page .information-hero-grid{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}
.information-page .information-visual{height:auto;aspect-ratio:1.32;max-height:560px}
.information-page .information-visual img{height:100%;width:100%;object-fit:cover}
.information-page .information-hero-v2 h1{color:#2b2119;letter-spacing:0;line-height:1.36}
.information-page .information-hero-copy>p{color:#594b3e!important}
.information-page .information-serial{color:#9b70412b}
.information-page .information-facts article{background:#fcf9f2}
.information-page .reading-intro{background:#2b251f;color:#fff}
.information-page .reading-intro p{color:#eee4d4}
.information-page .information-nav>a.active{background:#2d261f}
.information-page .information-principles h2{font-size:1.1rem;line-height:1.5}
.information-page .information-principles p{font-size:.9rem;line-height:1.85;color:#594e43}
.information-page .information-principles article{background:#f8f4eb}
.information-page .information-layout-v2 .policy-prose{background:#fffdf8;border-color:#dbd0c1}
.information-page .information-layout-v2 .policy-prose p,.information-page .information-layout-v2 .policy-prose li{font-size:1rem;line-height:1.95}
.information-page .information-next-v2{background:#dcd1c2}
.information-page-methodology .information-hero-v2{background:#e2e7df}
.information-page-methodology .information-visual{border-radius:8px 8px 125px 8px}
.information-page-methodology .information-principles{grid-template-columns:1fr;gap:10px;border:0}
.information-page-methodology .information-principles article{border-inline-start:5px solid var(--page-accent);padding:22px 25px}
.information-page-methodology .information-principles h2{margin:3px 0}
.information-page-copyright .information-hero-v2{background:#352923}
.information-page-copyright .information-hero-copy h1,.information-page-copyright .information-hero-copy .breadcrumb,.information-page-copyright .information-hero-copy .breadcrumb a{color:#f7ecdc}
.information-page-copyright .information-hero-copy>p{color:#e8d9c7!important}
.information-page-copyright .information-visual{border-radius:0 140px 0 0}
.information-page-copyright .information-facts article{background:#f3e9df}
.information-page-privacy .information-hero-v2{background:#dce7e8}
.information-page-privacy .information-visual{border-radius:180px 180px 8px 8px;max-height:490px}
.information-page-privacy .information-principles article{background:#e9f1f1}
.information-page-terms .information-hero-v2{background:#e9e4ed}
.information-page-terms .information-visual{border-radius:12px 12px 12px 145px}
.information-page-terms .information-principles article{background:#f1edf3}
.information-page-contact .information-hero-v2{background:#f2eadb}
.information-page-contact .information-visual{border-radius:160px 8px 8px 8px}
.information-page-contact .midad-contact-form{background:#fffefb;box-shadow:0 20px 45px #34251b12}
@media(max-width:800px){.information-page .information-hero-grid{grid-template-columns:1fr;gap:12px}.information-page .information-hero-copy{padding-bottom:24px}.information-page .information-visual{width:100%;height:340px;aspect-ratio:auto;border-radius:8px 70px 8px 8px}.information-page .information-hero-v2 .breadcrumb{margin-bottom:32px}.information-page .information-serial{display:none}}
@media(max-width:600px){.information-page .information-hero-v2 h1{font-size:2.4rem}.information-page .information-principles{grid-template-columns:1fr}.information-page .information-layout-v2 .policy-prose{padding:4px 20px 20px}.information-page .information-visual{height:280px}}
/* Long books are divided server-side; the page never ships the whole manuscript. */
.book-part-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:18px 22px;margin:22px 0 0;background:#eee5d7;border-inline-start:5px solid #9b7041;color:#3a2b20}
.book-part-heading span{font-size:.88rem;font-weight:800}
.book-part-heading strong{font-size:.8rem;color:#6d5745}
.book-part-nav{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:28px 0 38px;padding:26px 28px;background:#2a211b;color:#f5e9d7;border-radius:8px 38px 8px 8px}
.book-part-nav>div:first-child{display:grid;gap:5px}
.book-part-nav span{font-size:.72rem;color:#dcb988}
.book-part-nav b{font-size:1.25rem}
.book-part-nav small{font-size:.78rem;color:#d9cbb9;line-height:1.7}
.book-part-actions{display:flex;flex-wrap:wrap;gap:9px}
.book-part-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;background:#ecd9b9;color:#271c15;text-decoration:none;border-radius:6px;font-weight:800;white-space:nowrap}
.book-part-actions a[rel=prev]{background:#4b3d31;color:#f7ead6;border:1px solid #9e8568}
.book-part-actions a:hover{filter:brightness(1.1)}
.book-part-actions a:focus-visible,.toc-card nav a:focus-visible{outline:3px solid #c99658;outline-offset:3px}
.toc-card nav a.in-current-part{background:#eadcc4;color:#3d2815;font-weight:800}
.document-content>.prose{scroll-margin-top:30px}
@media(max-width:700px){.book-part-nav{align-items:stretch;flex-direction:column;padding:20px}.book-part-actions{display:grid;grid-template-columns:1fr}.book-part-heading{padding:14px 16px}}
.book-continuation-head{background:#e9dfd0;padding:32px 0 40px;border-bottom:1px solid #d0bea8}
.book-continuation-head>.shell{display:flex;align-items:end;justify-content:space-between;gap:30px}
.book-continuation-head h1{font-size:clamp(2rem,3vw,3.3rem);line-height:1.35;margin:7px 0;color:#2a211b}
.book-continuation-head p{color:#5e5044;margin:0}
.book-continuation-actions{display:flex;flex-wrap:wrap;gap:10px}
.book-continuation-actions a{display:inline-flex;min-height:44px;align-items:center;padding:10px 17px;border:1px solid #baa58c;color:#4b301d;background:#fffaf1;font-weight:800;text-decoration:none;border-radius:5px}
.book-continuation-actions a:last-child{background:#372a20;color:#f5e9d7;border-color:#372a20}
.book-continuation-actions a:focus-visible{outline:3px solid #b7874a;outline-offset:3px}
@media(max-width:700px){.book-continuation-head>.shell{display:grid}.book-continuation-head{padding:22px 0 28px}.book-continuation-actions a{flex:1 1 auto;justify-content:center}}

.toc-card .toc-summary{display:grid;gap:3px;cursor:pointer;list-style:none;position:relative;padding-inline-end:24px}
.toc-card .toc-summary::-webkit-details-marker{display:none}
.toc-card .toc-summary strong{font-size:1.16rem;line-height:1.45;color:#35291f}
.toc-card .toc-summary small{font-size:.73rem;color:#77634f}
.toc-card .toc-summary::after{content:'+';position:absolute;inset-inline-end:0;top:6px;color:#8c643d;font-size:1.5rem;line-height:1}
.toc-card[open] .toc-summary::after{content:'−'}
.toc-card .toc-summary:focus-visible{outline:3px solid #c99658;outline-offset:4px}
.toc-card nav{margin-top:16px}
@media(max-width:760px){.document-reading-layout .document-sidebar{display:grid;gap:10px}.document-reading-layout .toc-card{padding:16px}.document-reading-layout .reading-tools{margin:0}.document-reading-layout .toc-card nav{max-height:260px}}