/*
Theme Name: دار ممدوح عدوان
Theme URI: https://addar.mamdouhadwan.net/home
Author: Dar Mamdouh Adwan
Description: قالب عربي تحريري مخصص لدار ممدوح عدوان للنشر والتوزيع.
Version: 3.2.23
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: addar
*/

:root {
  --paper: #dededb;
  --paper-light: #ececea;
  --ink: #171719;
  --charcoal: #3b3b3d;
  --red: #e51b23;
  --line: rgba(23, 23, 25, .28);
  --content: 1500px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.75;
  direction: rtl;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.55), transparent 36%), linear-gradient(110deg, rgba(255,255,255,.2), transparent 55%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(calc(100% - 72px), var(--content)); margin-inline: auto; }

.site-header { padding-top: 24px; }
.header-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.brand-stack { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.brand-mark { width: 88px; height: 88px; object-fit: contain; mix-blend-mode: multiply; }
.brand-divider { width: 1px; height: 60px; background: var(--line); }
.brand-wordmark { display: block; width: clamp(260px, 24vw, 410px); max-height: 72px; object-fit: contain; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(9px, 1.15vw, 20px); padding: 0; margin: 0; font-size: .96rem; font-weight: 700; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 34px 0 32px; }
.primary-nav .sub-menu { position: absolute; z-index: 40; top: calc(100% - 8px); right: 50%; min-width: 230px; max-height: min(65vh, 520px); overflow-y: auto; display: grid; gap: 0; padding: 10px; margin: 0; background: var(--paper-light); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0,0,0,.16); opacity: 0; visibility: hidden; transform: translate(50%, 8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(50%, 0); }
.primary-nav .sub-menu li { width: 100%; }
.primary-nav .sub-menu a { padding: 9px 13px; white-space: nowrap; font-size: .88rem; font-weight: 650; }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu a:focus { color: #fff; background: var(--red); }
.primary-nav .sub-menu li::after { display: none; }
.submenu-toggle { display: none; }
.primary-nav .current-menu-item::after,
.primary-nav .current-menu-ancestor::after,
.primary-nav .current_page_item::after { content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--red); bottom: 17px; left: 50%; transform: translateX(-50%); }
.menu-toggle { display: none; border: 1px solid var(--ink); background: transparent; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }
.menu-close, .menu-backdrop { display: none; }

.hero { min-height: 690px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(540px, 1.15fr) minmax(430px, .85fr); gap: clamp(30px, 6vw, 100px); align-items: center; min-height: 690px; }
.hero-copy { padding: 56px 0 50px; }
.eyebrow { margin: 0 0 16px; font-size: clamp(1.1rem, 1.7vw, 1.55rem); font-weight: 600; }
.eyebrow small { display: flex; flex-wrap: wrap; gap: 5px 9px; align-items: center; margin-top: 7px; color: var(--charcoal); font-size: .58em; font-weight: 500; }
.quote-source-link { padding-bottom: 1px; border-bottom: 1px solid var(--red); font-weight: 750; }
.quote-source-link:hover { color: var(--red); }
.quote-source-separator { color: var(--red); }
.eyebrow::after { content: ""; display: block; width: 108px; height: 2px; background: var(--red); margin-top: 16px; }
.hero-quote-panel { position: relative; max-width: 760px; padding: 26px 30px 20px; background: rgba(255,255,255,.42); border: 1px solid rgba(0,0,0,.1); border-right: 5px solid var(--red); }
.hero-quote-panel::before { content: "“"; position: absolute; left: 18px; top: -22px; color: var(--red); font-family: Georgia, serif; font-size: 5.4rem; line-height: 1; opacity: .85; }
.hero-quote-panel .eyebrow { position: relative; z-index: 1; margin-bottom: 12px; padding-inline-end: 8px; }
.hero-quote-panel .hero-quote-share { position: relative; z-index: 1; margin: 0; }
.hero-title { margin: 0; font-size: clamp(4rem, 7.5vw, 8.1rem); line-height: 1.25; letter-spacing: -.055em; font-weight: 900; }
.hero-title .line { display: block; position: relative; width: fit-content; }
.hero-title .line:first-child { margin-inline-start: 12%; }
.red-dots { position: relative; display: inline-block; }
.red-dots::after { content: "••"; position: absolute; color: var(--red); font-size: .25em; letter-spacing: .05em; line-height: 1; left: 22%; bottom: 3%; }
.hero-wordmark { display: block; width: min(100%, 760px); height: auto; margin-top: 10px; }
.hero-random-selection { width: min(100%, 760px); margin-top: 24px; }
.hero-random-books { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hero-random-book { display: none; position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #eeeae2; border: 1px solid rgba(0,0,0,.1); box-shadow: 0 10px 20px rgba(0,0,0,.18); opacity: 0; transform: translateY(10px); transition: transform .28s ease, box-shadow .2s ease, opacity .28s ease; }
.hero-random-book.is-visible { display: block; }
.hero-random-book.is-entering { opacity: 1; transform: translateY(0); }
.hero-random-book img { width: 100%; height: 100%; object-fit: cover; }
.hero-random-book:hover, .hero-random-book:focus { transform: translateY(-5px); box-shadow: 0 16px 28px rgba(0,0,0,.24); }
.hero-random-book-title { position: absolute; right: 0; left: 0; bottom: 0; padding: 26px 8px 8px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.88)); font-size: .75rem; font-weight: 850; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.hero-random-book:hover .hero-random-book-title, .hero-random-book:focus .hero-random-book-title { opacity: 1; transform: translateY(0); }
.hero-random-refresh { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; padding: 7px 3px; color: var(--charcoal); background: transparent; border: 0; border-bottom: 1px solid var(--ink); font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; }
.hero-random-refresh span { color: var(--red); font-size: 1.25rem; }
.hero-intro { max-width: 720px; margin: 24px 0 0; font-size: clamp(1rem, 1.35vw, 1.3rem); color: var(--charcoal); }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 34px; }
.button { display: inline-flex; min-width: 250px; min-height: 68px; align-items: center; justify-content: center; padding: 14px 34px; background: var(--red); color: #fff; font-size: 1.2rem; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { background: #c9121a; transform: translateY(-2px); }
.text-link { padding: 12px 0 7px; border-bottom: 1px solid var(--ink); font-size: 1.15rem; }
.text-link::before { content: "‹"; color: var(--red); font-size: 2rem; line-height: 0; margin-left: 15px; vertical-align: -.15em; }

.hero-visual { position: relative; height: 590px; display: flex; align-items: center; justify-content: center; padding: 28px; }
.hero-feature-slogan { width: min(420px, 90%); max-height: 545px; object-fit: contain; }
.home-opening { padding: clamp(18px, 2.2vw, 34px) 0 clamp(54px, 7vw, 105px); border-bottom: 1px solid var(--line); }
.home-opening-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .78fr); gap: clamp(20px, 2.6vw, 42px); align-items: start; }
.home-opening-head { margin-bottom: 22px; }
.home-opening-head .section-title { font-size: clamp(2rem, 3.5vw, 4.1rem); }
.home-latest-books { width: min(100%, 660px); margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.45vw, 23px); align-items: start; }
.home-latest-book { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: #eeeae2; border: 1px solid rgba(0,0,0,.1); box-shadow: 0 12px 25px rgba(0,0,0,.18); transition: transform .25s ease, box-shadow .25s ease; }
.home-latest-book:hover, .home-latest-book:focus { transform: translateY(-7px); box-shadow: 0 19px 34px rgba(0,0,0,.24); }
.home-latest-book img { width: 100%; height: 100%; object-fit: cover; }
.home-latest-book span { position: absolute; right: 0; bottom: 0; left: 0; padding: 34px 9px 9px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.9)); font-size: .78rem; font-weight: 850; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.home-latest-book:hover span, .home-latest-book:focus span { opacity: 1; transform: translateY(0); }
.home-opening-intro { max-width: 820px; margin: 42px 0 0; color: var(--charcoal); font-size: clamp(1.05rem, 1.35vw, 1.32rem); }
.home-opening-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 25px; }
.home-opening-actions .button, .home-opening-actions .random-book-button { min-width: 170px; min-height: 54px; font-size: 1rem; }
.home-identity { display: grid; justify-items: center; align-self: start; gap: 22px; }
.home-slogan { display: grid; place-items: center; width: 100%; height: clamp(270px, 31vw, 445px); }
.home-slogan .hero-feature-slogan { width: min(315px, 82%); max-height: 420px; }
.home-opening-quote { max-width: 440px; padding: 20px 23px 16px; border-right-width: 4px; }
.home-opening-quote::before { top: -16px; font-size: 4rem; }
.home-opening-quote .eyebrow { font-size: clamp(.94rem, 1.15vw, 1.16rem); line-height: 1.75; }
.home-opening-quote .eyebrow::after { width: 72px; margin-top: 11px; }
.home-opening-quote .quote-share { font-size: .75rem; }
.home-random-section .hero-random-selection { width: min(100%, 1120px); margin: 0 auto; }
.home-random-section .section-head { align-items: center; }
.book-stack { width: min(440px, 90%); height: 520px; position: relative; z-index: 2; }
.book-card { position: absolute; width: 205px; height: 310px; background: #f0ede6; box-shadow: 0 14px 22px rgba(0,0,0,.23); overflow: hidden; border: 1px solid rgba(0,0,0,.08); transition: transform .25s ease; }
.book-card:hover { transform: translateY(-8px); z-index: 8; }
.book-card:nth-child(1) { right: 8px; top: 0; }
.book-card:nth-child(2) { left: 8px; top: 12px; }
.book-card:nth-child(3) { right: -34px; bottom: 4px; }
.book-card:nth-child(4) { left: 28px; bottom: 0; }
.book-card img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-cover { height: 100%; padding: 35px 24px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg,#f4f0e8,#e2dfd8); }
.placeholder-cover h3 { font-size: 1.45rem; line-height: 1.45; margin: 0; }
.placeholder-cover small { color: var(--charcoal); }
.placeholder-art { height: 45%; margin-inline: -24px; background: linear-gradient(120deg, transparent 8%, var(--ink) 9% 16%, transparent 17% 24%, var(--charcoal) 25% 45%, transparent 46% 55%, var(--ink) 56% 72%, transparent 73%); opacity: .88; }
.placeholder-cover::after { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--red); right: 20px; top: 112px; }
.edge-slogan { position: absolute; z-index: 4; left: clamp(8px, 1.5vw, 26px); top: 38px; width: clamp(130px, 10vw, 190px); max-height: 250px; object-fit: contain; }

.pillars { padding: 18px 0; }
.pillars.is-page-ending { margin-top: 0; padding: 34px 0; border-top: 1px solid var(--line); }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { min-height: 102px; display: flex; align-items: center; gap: 18px; padding: 15px 28px; border-left: 1px solid var(--line); }
.pillar:last-child { border-left: 0; }
.pillar-icon { width: 58px; height: 58px; border: 1px solid var(--charcoal); display: grid; place-items: center; flex: 0 0 auto; font-size: 1.6rem; }
.pillar-text h3 { margin: 0; font-size: 1.05rem; }
.pillar-text p { margin: 1px 0 0; font-size: .82rem; color: var(--charcoal); line-height: 1.45; }
.pillar-dots { color: var(--red); letter-spacing: 2px; font-size: 1.4rem; line-height: 1; }

.section { padding: 90px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 28px; }
.random-book-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 9px 20px; color: #fff; background: var(--red); border: 1px solid var(--red); font-weight: 850; transition: transform .2s ease, background .2s ease; }
.random-book-button:hover { color: #fff; background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.random-book-button.is-hero-action { min-height: 52px; background: transparent; color: var(--ink); border-color: var(--red); }
.random-book-button.is-hero-action:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.section-title { margin: 0; font-size: clamp(2rem, 4vw, 4.5rem); line-height: 1.25; }
.section-kicker { color: var(--red); font-weight: 800; }
.books-grid, .posts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.catalog-card { background: rgba(255,255,255,.32); padding: 18px; border: 1px solid rgba(0,0,0,.09); }
.catalog-cover { aspect-ratio: 2/3; background: #eeeae2; overflow: hidden; }
.catalog-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.catalog-card:hover .catalog-cover img { transform: scale(1.025); }
.catalog-card h3 { margin: 18px 0 5px; font-size: 1.2rem; line-height: 1.45; }
.meta { color: var(--charcoal); font-size: .9rem; }
.article-byline { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 10px; padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.article-byline a { color: var(--ink); font-weight: 850; border-bottom: 1px solid var(--red); }
.article-byline a:hover { color: var(--red); }
.post-card { border-top: 4px solid var(--ink); padding-top: 22px; }
.post-card:hover { border-color: var(--red); }
.post-card-image { display: block; aspect-ratio: 16 / 10; margin: -22px 0 18px; overflow: hidden; background: #ddd; }
.post-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card h3 { font-size: 1.35rem; line-height: 1.55; margin: 9px 0; }
.post-card p { color: var(--charcoal); }

.site-footer { background: var(--ink); color: #eee; padding: 54px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; }
.footer-logo { width: 75px; filter: invert(1); mix-blend-mode: screen; }
.footer-title { font-size: 1.5rem; margin: 14px 0 8px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(22px, 3vw, 46px); row-gap: 0; list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 4px 0; }
.footer-links .menu-item-has-children { display: grid; grid-template-columns: max-content 30px; column-gap: 8px; align-items: center; justify-content: start; }
.footer-links .menu-item-has-children > a { grid-column: 1; grid-row: 1; }
.footer-links .submenu-toggle { grid-column: 2; grid-row: 1; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.38); font: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.footer-links .submenu-toggle:hover, .footer-links .submenu-toggle:focus { color: #fff; background: var(--red); border-color: var(--red); }
.footer-links .sub-menu { grid-column: 1 / -1; display: none; list-style: none; margin: 8px 0 2px; padding: 8px 16px 8px 0; border-right: 2px solid var(--red); }
.footer-links .menu-item-has-children.submenu-open > .sub-menu { display: block; }
.footer-links .sub-menu li { margin: 2px 0; }
.footer-links .sub-menu a { color: #ccc; font-size: .88rem; }
.footer-links .sub-menu a:hover, .footer-links .sub-menu a:focus { color: #fff; }
.social-links { display: flex; flex-wrap: wrap; gap: 9px; }
.social-links a { width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 8px; border: 1px solid rgba(255,255,255,.35); font-size: .84rem; }
.social-links svg { width: 21px; height: 21px; display: block; fill: currentColor; }
.social-links a:hover { color: var(--red); border-color: var(--red); }
.copyright { border-top: 1px solid rgba(255,255,255,.2); margin-top: 38px; padding-top: 22px; font-size: .85rem; color: #bbb; }

.page-shell { min-height: 55vh; padding: 70px 0; }
.content-card { max-width: 920px; background: rgba(255,255,255,.38); padding: clamp(28px,5vw,70px); }
.entry-title { font-size: clamp(2.4rem,5vw,5.5rem); line-height: 1.25; margin: 0 0 26px; }
.entry-content { font-size: 1.08rem; }
.entry-content p { margin: 0 0 1.45em; }
.article-featured-image { margin: 0 0 34px; }
.article-featured-image img { display: block; width: 100%; height: auto; }
.article-quotes-section { max-width: 920px; margin-top: 44px; }
.article-quotes-grid { display: grid; gap: 18px; }
.article-quote-card { margin: 0; padding: 26px 30px; background: rgba(255,255,255,.5); border-inline-start: 4px solid var(--red); }
.article-quote-card blockquote { margin: 0; font-size: 1.25rem; line-height: 1.85; }
.article-quote-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; color: var(--charcoal); font-size: .82rem; font-weight: 800; }
.article-quote-share { display: flex; gap: 8px; }
.article-quote-share a { display: grid; width: 38px; height: 38px; place-items: center; padding: 8px; border: 1px solid var(--line); }
.article-quote-share a:hover { color: var(--red); border-color: var(--red); }
.article-quote-share svg { width: 20px; height: 20px; fill: currentColor; }
.article-quote-inline { margin: clamp(30px,5vw,55px) 0; }
.book-awards { margin: 28px 0; padding: 22px 24px; background: rgba(255,255,255,.38); border-right: 4px solid var(--red); }
.book-awards h2 { margin: 0 0 12px; font-size: 1.3rem; }
.book-awards-list { display: flex; flex-wrap: wrap; gap: 9px; }
.book-awards-list a { padding: 7px 12px; background: rgba(255,255,255,.62); border: 1px solid var(--line); font-weight: 750; }
.book-awards-list a:hover { color: #fff; background: var(--red); border-color: var(--red); }
.book-single { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(440px, 1.3fr); gap: 70px; }
.book-single-cover img { width: 100%; box-shadow: 0 18px 36px rgba(0,0,0,.2); }
.book-gallery-cover { margin-top: 24px; }
.catalog-card .book-badges { margin: 14px 0 0; }
.book-badges { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; }
.book-badge { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 13px; border: 1px solid var(--ink); font-size: .82rem; font-weight: 800; }
.book-badge.is-red { background: var(--red); border-color: var(--red); color: #fff; }
.book-badge.is-type { border-color: var(--charcoal); background: rgba(255,255,255,.42); }
.book-badge.is-ebook { border-color: #466b62; color: #244d44; background: rgba(255,255,255,.5); }
.book-badge.is-partner { border-color: var(--red); color: #b40f16; }
.book-badge:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.partner-logo-link { display: inline-flex; align-items: center; justify-content: center; min-width: 104px; min-height: 52px; padding: 5px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.62); transition: border-color .2s ease, transform .2s ease; }
.partner-logo-link:hover { border-color: var(--red); transform: translateY(-2px); }
.partner-logo-link img { display: block; width: auto; height: 40px; max-width: 112px; object-fit: contain; }
.partner-logo-link.is-rahba img { height: 58px; }
.catalog-card .partner-logo-link { min-width: 76px; min-height: 40px; padding: 4px 7px; }
.catalog-card .partner-logo-link img { height: 30px; max-width: 82px; }
.catalog-card .partner-logo-link.is-rahba img { height: 42px; }
.book-data { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin: 28px 0; }
.book-data div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.book-data strong { display: block; font-size: .78rem; color: var(--charcoal); }
.book-data a { display: inline-flex; align-items: center; gap: 5px; padding: 2px 5px; margin-inline: -5px 1px; font-weight: 800; border-bottom: 2px solid var(--red); cursor: pointer; transition: color .2s ease, background .2s ease; }
.book-data a::after { content: "↗"; color: var(--red); font-size: .8em; }
.book-data a:hover { color: #fff; background: var(--ink); }
.external-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.external-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 9px 20px; border: 1px solid var(--ink); font-weight: 800; }
.external-link:hover { background: var(--ink); color: #fff; }
.external-link.is-ebook-link { border-color: #466b62; color: #244d44; }
.external-link.is-ebook-link:hover { background: #466b62; color: #fff; }
.book-pdf-reader { margin: 30px 0; border: 1px solid #466b62; background: rgba(255,255,255,.42); }
.book-pdf-reader summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 56px; padding: 12px 20px; color: #244d44; font-weight: 850; cursor: pointer; list-style: none; }
.book-pdf-reader summary::-webkit-details-marker { display: none; }
.book-pdf-reader summary::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; color: #fff; background: #466b62; font-size: 1.35rem; line-height: 1; }
.book-pdf-reader[open] summary { color: #fff; background: #466b62; }
.book-pdf-reader[open] summary::after { content: "−"; color: #244d44; background: #fff; }
.book-pdf-reader-frame { height: min(78vh, 900px); min-height: 560px; padding: 12px; border-top: 1px solid #466b62; }
.book-pdf-reader-frame iframe { display: block; width: 100%; height: 100%; background: #fff; border: 0; }
.book-pdf-reader-actions { display: flex; justify-content: flex-end; padding: 0 12px 12px; }
.book-pdf-reader-actions a { padding-bottom: 2px; color: #244d44; border-bottom: 1px solid #466b62; font-size: .86rem; font-weight: 800; }
.book-pdf-reader-noscript { padding: 0 12px 12px; }
.external-platforms { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.external-platform { display: inline-flex; align-items: center; gap: 10px; min-height: 62px; padding: 7px 14px 7px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.48); font-weight: 800; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.external-platform:hover { transform: translateY(-2px); border-color: var(--red); background: #fff; }
.external-platform-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 46px; padding: 4px; background: #fff; overflow: hidden; }
.external-platform-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.external-platform[href*="goodreads"] .external-platform-icon img { width: 34px; height: 34px; }
.book-primary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 24px 0 28px; }
.book-distributors-button { min-width: 210px; min-height: 54px; font-size: 1rem; }
.book-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.book-share strong { margin-inline-end: 4px; font-size: .9rem; }
.book-share a { width: 44px; height: 44px; display: grid; place-items: center; padding: 10px; color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.4); transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.book-share a:hover { color: var(--red); border-color: var(--red); transform: translateY(-2px); }
.book-share svg { width: 22px; height: 22px; fill: currentColor; }
.amazon-ae-platform { display: none; }
.amazon-ae-platform.is-region-visible { display: inline-flex; }
.section-head .search-form { width: min(100%, 460px); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; padding: 5px; background: rgba(255,255,255,.56); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0,0,0,.07); }
.section-head .search-form label { min-width: 0; }
.section-head .search-field { width: 100%; height: 50px; padding: 9px 16px; color: var(--ink); background: transparent; border: 0; outline: 0; font: inherit; }
.section-head .search-field:focus { background: #fff; }
.section-head .search-submit { min-width: 96px; padding: 8px 18px; color: #fff; background: var(--ink); border: 0; font: inherit; font-weight: 850; cursor: pointer; }
.section-head .search-submit:hover { background: var(--red); }
.book-catalog-search { width: min(100%, 650px); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) auto; gap: 8px; align-items: end; }
#book-search { scroll-margin-top: 110px; }
.book-catalog-search label { display: grid; gap: 5px; color: var(--charcoal); font-size: .78rem; font-weight: 800; }
.book-catalog-search input { min-width: 0; height: 50px; padding: 9px 13px; color: var(--ink); background: rgba(255,255,255,.56); border: 1px solid var(--line); font: inherit; }
.book-catalog-search button { min-height: 50px; padding: 9px 20px; color: #fff; background: var(--ink); border: 0; font: inherit; font-weight: 850; cursor: pointer; }
.book-catalog-search button:hover { background: var(--red); }
.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 18px; padding: 22px; background: rgba(255,255,255,.38); border-top: 4px solid var(--ink); }
.catalog-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; }
.catalog-filters label { display: grid; gap: 6px; color: var(--charcoal); font-size: .82rem; font-weight: 800; }
.catalog-filters select { min-width: 220px; min-height: 48px; padding: 8px 14px; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line); font: inherit; }
.catalog-filters .translated-filter { display: flex; flex-direction: row; align-items: center; min-height: 48px; padding: 8px 13px; color: var(--ink); background: rgba(255,255,255,.42); border: 1px solid var(--line); cursor: pointer; }
.translated-filter input { width: 18px; height: 18px; accent-color: var(--red); }
.catalog-filters button { min-height: 48px; padding: 9px 20px; color: #fff; background: var(--red); border: 0; font: inherit; font-weight: 850; cursor: pointer; }
.catalog-reset { min-height: 48px; display: inline-flex; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--ink); font-weight: 750; }
.catalog-exports { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.catalog-exports span { width: 100%; color: var(--charcoal); font-size: .78rem; font-weight: 800; }
.catalog-exports a { min-width: 74px; padding: 9px 13px; text-align: center; border: 1px solid var(--ink); font-weight: 850; }
.catalog-exports a:hover { color: #fff; background: var(--ink); }
.catalog-order-note { margin: 0 0 24px; color: var(--charcoal); font-size: .88rem; }
.catalog-empty { padding: 50px; text-align: center; background: rgba(255,255,255,.35); }
.partner-catalog-toolbar { margin-bottom: 28px; }
.partner-order-note { color: var(--charcoal); font-size: .82rem; font-weight: 750; white-space: nowrap; }
.book-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.book-tags a { padding: 4px 10px; border: 1px solid var(--red); background: rgba(255,255,255,.35); font-size: .88rem; font-weight: 700; cursor: pointer; }
.book-tags a:hover { background: var(--red); color: #fff; }
.book-tags-label { width: 100%; margin-bottom: 2px; color: var(--charcoal); font-size: .78rem; font-weight: 800; }
.catalog-meta-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.catalog-meta-links a { border-bottom: 1px solid var(--red); cursor: pointer; }
.catalog-meta-links a:hover { color: var(--red); }
.goodreads-panel { margin: 28px 0; overflow: hidden; border: 1px solid var(--line); background: var(--paper-light); }
.goodreads-heading { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; color: #553b2f; background: rgba(255,255,255,.5); border-bottom: 1px solid var(--line); }
.goodreads-heading a, .goodreads-heading > span { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-weight: 700; }
.goodreads-heading img { width: 30px; height: 30px; object-fit: contain; }
.goodreads-heading a:hover { color: var(--red); }
.goodreads-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line); }
.goodreads-stat { min-width: 0; background: var(--paper-light); padding: 16px; text-align: center; }
.goodreads-stat strong { display: block; font-size: 1.45rem; }
.goodreads-stat span { display: block; }
.goodreads-stat small { display: inline; color: var(--charcoal); font-size: .72em; }
.related-section { padding-top: 65px; }
.person-role-section + .person-role-section { margin-top: 72px; padding-top: 58px; border-top: 1px solid var(--line); }
.directory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.directory-card { min-height: 120px; padding: 24px; background: rgba(255,255,255,.35); border-top: 3px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.directory-card:hover { border-color: var(--red); }
.directory-card h2 { margin: 0; font-size: 1.18rem; }
.directory-card span { color: var(--charcoal); font-size: .85rem; }
.directory-card.has-person-photo { min-height: 145px; display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; justify-content: initial; gap: 18px; }
.directory-person-photo { width: 88px; height: 96px; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: #fff !important; font-size: 2rem !important; font-weight: 900; }
.directory-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.directory-person-copy { min-width: 0; color: var(--ink) !important; }
.directory-person-copy h2 { margin-bottom: 8px; }
.directory-person-copy small { color: var(--charcoal); font-size: .85rem; }
.directory-card[hidden] { display: none; }
.directory-search { display: block; max-width: 620px; margin: -14px 0 32px auto; }
.directory-search input { width: 100%; min-height: 58px; padding: 10px 20px; border: 1px solid var(--line); border-bottom: 3px solid var(--ink); background: rgba(255,255,255,.48); color: var(--ink); font: inherit; font-size: 1.05rem; }
.directory-search input:focus { outline: 2px solid var(--red); outline-offset: 2px; border-bottom-color: var(--red); }
.directory-empty { padding: 24px; background: rgba(255,255,255,.35); }
.term-profile { display: grid; grid-template-columns: minmax(220px, 330px) minmax(0, 1fr); gap: 42px; align-items: start; margin-bottom: 50px; }
.term-profile-photo { aspect-ratio: 1/1; overflow: hidden; border-top: 5px solid var(--red); background: rgba(255,255,255,.38); }
.term-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.term-biography { max-width: 850px; margin-top: 18px; color: var(--charcoal); }
.profile-source { display: inline-block; margin-top: 12px; padding-bottom: 2px; border-bottom: 1px solid var(--red); color: var(--charcoal); font-size: .78rem; }
.term-profile.is-partner-profile { grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); align-items: center; }
.term-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.partner-social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.partner-social-links a { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: rgba(255,255,255,.34); border: 1px solid var(--line); transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.partner-social-links a:hover, .partner-social-links a:focus { color: var(--red); border-color: var(--red); transform: translateY(-2px); }
.partner-social-links svg { width: 20px; height: 20px; fill: currentColor; }
.term-partner-logo { min-height: 180px; display: grid; place-items: center; padding: 28px; background: rgba(255,255,255,.58); border-top: 5px solid var(--red); }
.term-partner-logo img { display: block; width: 100%; max-height: 150px; object-fit: contain; }

.home-news-card { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(380px, 1.1fr); background: rgba(255,255,255,.34); border-top: 5px solid var(--ink); }
.home-awards-section.is-prominent { padding: 52px 0 62px; border-top: 0; border-bottom: 1px solid var(--line); }
.home-awards-section.is-prominent .section-head { margin-bottom: 28px; }
.home-awards-section.is-prominent .section-title { font-size: clamp(2rem, 3.4vw, 3.8rem); }
.home-news-image { min-height: 330px; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: #fff; font-size: 2rem; font-weight: 900; }
.home-news-image img { width: 100%; height: 100%; object-fit: cover; }
.home-news-copy { padding: clamp(28px, 5vw, 70px); align-self: center; }
.home-news-copy h3 { margin: 8px 0 16px; font-size: clamp(1.8rem, 3vw, 3.5rem); line-height: 1.35; }
.home-news-copy p { color: var(--charcoal); }
.news-grid { display: grid; gap: 28px; }
.news-card { display: grid; grid-template-columns: minmax(260px, .6fr) minmax(420px, 1.4fr); background: rgba(255,255,255,.34); border-top: 4px solid var(--ink); }
.news-image { min-height: 270px; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: #fff; font-weight: 900; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-copy { padding: 34px; }
.news-copy h2 { margin: 6px 0 12px; font-size: 1.8rem; }

.awards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.award-card { min-height: 360px; display: grid; grid-template-rows: 150px 1fr; background: rgba(255,255,255,.46); border: 1px solid rgba(0,0,0,.1); border-top: 6px solid var(--ink); }
.award-card:nth-child(2) { border-top-color: var(--red); }
.award-logo { display: grid; place-items: center; padding: 22px; background: rgba(255,255,255,.42); border-bottom: 1px solid var(--line); }
.award-logo img { max-width: 100%; max-height: 108px; object-fit: contain; }
.award-logo span { width: 82px; height: 82px; display: grid; place-items: center; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-size: 2.4rem; }
.award-copy { padding: 26px; }
.award-copy h2, .award-copy h3 { margin: 7px 0 12px; font-size: 1.35rem; line-height: 1.5; }
.award-year { color: var(--red); font-size: 1.1rem; font-weight: 900; }
.award-subtitle { color: var(--charcoal); font-weight: 700; }
.awards-page .award-card { min-height: 440px; }

.book-quotes-section { margin-top: 72px; padding-top: 65px; border-top: 1px solid var(--line); }
.book-quotes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.book-quote-card { min-height: 285px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 46px); background: var(--ink); color: #fff; border-bottom: 6px solid var(--red); scroll-margin-top: 32px; }
.book-quote-card:target { outline: 4px solid var(--red); outline-offset: 5px; }
.book-quote-text { display: block; }
.book-quote-text blockquote { margin: 0; font-size: clamp(1.25rem, 2vw, 1.85rem); font-weight: 750; line-height: 1.9; }
.book-quote-text:hover { color: #fff; }
.book-quote-footer { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.24); }
.book-quote-source { padding-bottom: 2px; border-bottom: 1px solid var(--red); font-weight: 850; }
.quote-share { display: flex; align-items: center; gap: 8px; }
.quote-share > span { margin-inline-end: 3px; color: #bbb; font-size: .74rem; }
.quote-share a, .quote-share button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.4); background: transparent; color: inherit; cursor: pointer; font: inherit; }
.quote-share button { width: 52px; grid-template-columns: 18px 1fr; gap: 2px; }
.quote-share button small { font-size: .52rem; line-height: 1; }
.quote-share a:hover, .quote-share button:hover { color: var(--red); border-color: var(--red); }
.quote-share button:disabled { opacity: .45; cursor: wait; }
.quote-share svg { width: 19px; height: 19px; fill: currentColor; }
.hero-quote-share { justify-content: flex-start; margin: -4px 0 18px; color: var(--ink); }
.hero-quote-share > span { color: var(--charcoal); }
.hero-quote-share a, .hero-quote-share button { border-color: var(--line); }

.book-praise-section { margin-top: 72px; padding-top: 65px; border-top: 1px solid var(--line); }
.book-praise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.book-praise-card { position: relative; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: 38px; background: rgba(255,255,255,.46); border-top: 5px solid var(--ink); }
.book-praise-card::before { content: "“"; position: absolute; top: 6px; left: 24px; color: var(--red); font-family: Georgia, serif; font-size: 5rem; line-height: 1; opacity: .8; }
.book-praise-card blockquote { position: relative; z-index: 1; margin: 0; padding-inline-end: 12px; font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 650; line-height: 1.9; }
.book-praise-card blockquote p { margin: 0; }
.book-praise-card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.book-praise-card figcaption span { color: var(--red); font-size: .78rem; font-weight: 900; }
.book-praise-card figcaption a, .book-praise-card figcaption strong { font-weight: 900; }
.book-praise-card figcaption a { border-bottom: 1px solid var(--red); }
.article-linked-books { max-width: 1200px; }
.article-linked-authors { display: grid; gap: 15px; margin: 22px 0 0; padding: 20px 24px; background: rgba(255,255,255,.34); border-right: 4px solid var(--red); }
.article-linked-author-list { display: flex; flex-wrap: wrap; gap: 12px; }
.article-linked-author { min-width: 190px; display: flex; align-items: center; gap: 11px; padding: 8px 10px; background: rgba(255,255,255,.38); border: 1px solid var(--line); font-weight: 850; }
.article-linked-author-photo { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: #fff; font-size: 1.25rem; }
.article-linked-author-photo img { width: 100%; height: 100%; object-fit: cover; }
.article-linked-authors a:hover, .article-linked-authors a:focus { color: var(--red); }

.manuscript-closed { max-width: 920px; min-height: 240px; display: flex; align-items: center; gap: 28px; padding: clamp(32px,6vw,78px); background: rgba(255,255,255,.46); border-top: 6px solid var(--red); }
.manuscript-closed > span { color: var(--red); font-size: 5rem; font-weight: 300; line-height: 1; }
.manuscript-closed p { margin: 0; font-size: clamp(1.3rem, 2.4vw, 2.25rem); font-weight: 800; }
.manuscript-form { max-width: 980px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: clamp(26px,5vw,58px); background: rgba(255,255,255,.42); border-top: 5px solid var(--ink); }
.manuscript-form label { display: grid; gap: 8px; font-weight: 800; }
.manuscript-form .is-wide { grid-column: 1 / -1; }
.manuscript-form input, .manuscript-form textarea { width: 100%; min-height: 54px; padding: 10px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.72); color: var(--ink); font: inherit; }
.manuscript-form textarea { resize: vertical; }
.manuscript-form small { color: var(--charcoal); font-weight: 400; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-notice { max-width: 980px; padding: 18px 24px; margin-bottom: 22px; font-weight: 800; }
.form-notice.is-success { background: #dcebdd; border-right: 5px solid #247332; }
.form-notice.is-error { background: #f2dada; border-right: 5px solid var(--red); }

.search-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.search-result-card { grid-column: span 2; display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px; background: rgba(255,255,255,.38); border-top: 4px solid var(--ink); }
.search-result-image { min-height: 190px; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: #fff; }
.search-result-image img { width: 100%; height: 100%; object-fit: cover; }

.distributors-page { min-height: 60vh; }
.distributors-hero { padding: 80px 0 58px; border-bottom: 1px solid var(--line); }
.distributors-intro { max-width: 760px; margin-top: 20px; color: var(--charcoal); font-size: 1.12rem; }
.distributors-intro p { margin: 0; }
.distributors-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.distributors-section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.distributors-section-head h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3.2rem); }
.distributors-section-head p { margin: 5px 0 0; color: var(--charcoal); }
.distributors-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.distributor-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: -8px 0 28px; }
.distributor-filter { min-height: 38px; padding: 5px 15px; border: 1px solid var(--line); background: rgba(255,255,255,.35); color: var(--ink); font: inherit; font-size: .83rem; font-weight: 800; cursor: pointer; }
.distributor-filter:hover, .distributor-filter.is-active { border-color: var(--red); background: var(--red); color: #fff; }
.distributor-card[hidden] { display: none; }
.distributor-card { min-height: 180px; display: flex; align-items: stretch; gap: 18px; padding: 22px; background: rgba(255,255,255,.36); border: 1px solid rgba(0,0,0,.1); border-top: 4px solid var(--ink); transition: transform .2s ease, border-color .2s ease; }
.distributor-card:hover { transform: translateY(-3px); border-top-color: var(--red); }
.distributor-logo { width: 82px; height: 72px; flex: 0 0 82px; padding: 6px; display: grid; place-items: center; overflow: hidden; background: var(--paper-light); border: 1px solid var(--line); }
.distributor-logo img { width: 100%; height: 100%; object-fit: contain; }
.distributor-logo span { color: var(--red); font-size: 2rem; font-weight: 900; }
.distributor-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.distributor-country { color: var(--red); font-size: .78rem; font-weight: 800; }
.distributor-card h3 { margin: 5px 0 18px; font-size: 1.2rem; line-height: 1.4; }
.distributor-link { margin-top: auto; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: .88rem; font-weight: 800; }
.distributor-link:hover { color: var(--red); border-color: var(--red); }

/* مساعد الكتب الذكي */
.addar-ai { position: fixed; right: 24px; bottom: 22px; z-index: 9998; font-family: inherit; }
.addar-ai-launcher { min-height: 54px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 0; border-radius: 0; background: var(--ink); color: #fff; box-shadow: 0 13px 34px rgba(0,0,0,.24); font: inherit; font-size: .92rem; font-weight: 850; cursor: pointer; }
.addar-ai-launcher:hover, .addar-ai-launcher:focus { background: var(--red); }
.addar-ai-launcher:focus-visible, .addar-ai-close:focus-visible, .addar-ai-form button:focus-visible, .addar-ai-prompts button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.addar-ai-launcher-mark { width: 29px; height: 29px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 1.05rem; }
.addar-ai-launcher:hover .addar-ai-launcher-mark { background: #fff; color: var(--red); }
.addar-ai-panel { position: absolute; right: 0; bottom: 66px; width: min(430px, calc(100vw - 34px)); height: min(680px, calc(100vh - 110px)); grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden; background: var(--paper-light); border: 1px solid var(--line); border-top: 6px solid var(--red); box-shadow: 0 24px 65px rgba(0,0,0,.28); }
.addar-ai-panel:not([hidden]) { display: grid; }
.addar-ai-header { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 19px; background: var(--ink); color: #fff; }
.addar-ai-header h2 { margin: 1px 0 0; color: inherit; font-size: 1.35rem; }
.addar-ai-kicker { color: #d2d2d2; font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.addar-ai-close { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font: inherit; font-size: 1.65rem; line-height: 1; cursor: pointer; }
.addar-ai-close:hover { color: var(--red); border-color: var(--red); }
.addar-ai-messages { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; background: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)), var(--paper); }
.addar-ai-turn { display: grid; gap: 9px; margin-top: 15px; }
.addar-ai-turn:first-child { margin-top: 0; }
.addar-ai-message { max-width: 88%; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .9rem; line-height: 1.75; }
.addar-ai-message.is-assistant { margin-inline-end: auto; border-right: 4px solid var(--red); }
.addar-ai-message.is-user { margin-inline-start: auto; border-color: var(--ink); background: var(--ink); color: #fff; }
.addar-ai-message.is-error { margin-inline-end: auto; border-color: var(--red); background: #fff0f0; color: #7b1717; }
.addar-ai-message.is-notice { margin-inline-end: auto; border-color: #9a7620; border-right: 4px solid #9a7620; background: #fff9e8; color: var(--ink); }
.addar-ai-prompts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.addar-ai-prompts button { padding: 7px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.6); color: var(--ink); font: inherit; font-size: .75rem; font-weight: 750; cursor: pointer; }
.addar-ai-prompts button:hover { border-color: var(--red); color: var(--red); }
.addar-ai-books { display: grid; gap: 7px; max-width: 96%; }
.addar-ai-book { min-height: 88px; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 8px; background: #fff; border: 1px solid var(--line); border-right: 3px solid var(--ink); }
.addar-ai-book:hover { color: inherit; border-right-color: var(--red); transform: translateX(-2px); }
.addar-ai-book img, .addar-ai-book-fallback { width: 58px; height: 78px; display: grid; place-items: center; object-fit: cover; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; }
.addar-ai-book-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.addar-ai-book-copy strong { font-size: .88rem; line-height: 1.5; }
.addar-ai-book-copy small { margin-top: 2px; color: var(--charcoal); font-size: .72rem; }
.addar-ai-book-copy em { margin-top: 7px; color: var(--red); font-size: .7rem; font-style: normal; font-weight: 850; }
.addar-ai-form { display: grid; grid-template-columns: minmax(0, 1fr) 74px; gap: 8px; padding: 12px; background: var(--paper-light); border-top: 1px solid var(--line); }
.addar-ai-form textarea { width: 100%; min-height: 50px; max-height: 110px; resize: none; padding: 10px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .86rem; line-height: 1.5; }
.addar-ai-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.addar-ai-form button { border: 0; background: var(--red); color: #fff; font: inherit; font-size: .82rem; font-weight: 850; cursor: pointer; }
.addar-ai-form button:hover { background: var(--ink); }
.addar-ai-form button:disabled, .addar-ai-form textarea:disabled { opacity: .58; cursor: wait; }
.addar-ai-disclaimer { margin: 0; padding: 0 13px 11px; background: var(--paper-light); color: var(--charcoal); font-size: .64rem; line-height: 1.55; }

@media (max-width: 1080px) {
  .header-inner { min-height: 94px; }
  .menu-toggle { display: grid; place-items: center; position: relative; z-index: 61; padding: 0; line-height: 1; }
  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 49;
    padding: 0;
    border: 0;
    background: rgba(23,23,25,.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
  }
  .primary-nav {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    z-index: 60;
    width: min(86vw, 390px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper-light);
    padding: 76px 24px 28px;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 45px rgba(0,0,0,.2);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(105%);
    transition: transform .25s ease, visibility .25s ease;
  }
  html[dir="ltr"] .primary-nav {
    right: auto;
    left: 0;
    border-right: 1px solid var(--line);
    border-left: 0;
    box-shadow: 18px 0 45px rgba(0,0,0,.2);
    transform: translateX(-105%);
  }
  .primary-nav.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
  html[dir="ltr"] .primary-nav.is-open { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .menu-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 18px;
    left: 20px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    font: inherit;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
  }
  html[dir="ltr"] .menu-close { right: 20px; left: auto; }
  .primary-nav ul { display: grid; gap: 0; }
  .primary-nav a { padding: 12px; }
  .primary-nav li::after { display: none; }
  .primary-nav .menu-item-has-children { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; }
  .primary-nav .menu-item-has-children > a { grid-column: 1; grid-row: 1; }
  .submenu-toggle { grid-column: 2; grid-row: 1; display: grid; width: 38px; height: 38px; place-items: center; justify-self: end; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); font: inherit; font-size: 1.35rem; font-weight: 700; line-height: 1; cursor: pointer; }
  .submenu-toggle:hover, .submenu-toggle:focus { color: #fff; background: var(--red); border-color: var(--red); }
  .primary-nav .sub-menu { grid-column: 1 / -1; position: static; max-height: none; display: none; padding: 3px 18px 10px; border: 0; border-right: 2px solid var(--red); box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .primary-nav .menu-item-has-children.submenu-open > .sub-menu { display: grid; }
  .primary-nav .sub-menu a { padding: 8px 10px; }
  .hero-grid { grid-template-columns: 1fr 430px; }
  .hero-title { font-size: clamp(3.8rem, 7.6vw, 6rem); }
  .hero-feature-slogan { width: min(350px, 86%); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-left: 0; }
  .books-grid, .posts-grid, .search-results-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: 1fr 1fr; }
  .book-praise-grid { grid-template-columns: 1fr; }
  .book-quotes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 34px), var(--content)); }
  .brand-wordmark { width: clamp(170px, 42vw, 280px); max-height: 58px; }
  .brand-mark { width: 62px; height: 62px; }
  .brand-divider { height: 44px; }
  .hero { padding-bottom: 25px; }
  .hero-grid { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { padding: 42px 0 0; }
  .hero-title { font-size: clamp(3.4rem, 16vw, 5.6rem); }
  .hero-title .line:first-child { margin-inline-start: 0; }
  .hero-intro { font-size: 1rem; }
  .hero-actions { flex-wrap: wrap; gap: 15px 24px; }
  .button { min-width: 210px; min-height: 58px; }
  .hero-random-selection { width: min(100%, 390px); margin: 24px auto 0; }
  .hero-random-books { gap: 6px; }
  .hero-random-book { box-shadow: 0 7px 13px rgba(0,0,0,.16); }
  .hero-visual { width: 100%; height: 310px; padding: 18px 0; }
  .hero-feature-slogan { width: 210px; max-height: 275px; }
  .home-opening { padding: 48px 0 60px; }
  .home-opening-grid { grid-template-columns: 1fr; gap: 54px; }
  .home-latest-books { width: 100%; margin-inline: 0; gap: 7px; }
  .home-latest-book span { display: none; }
  .home-opening-intro { margin-top: 28px; }
  .home-opening-actions { align-items: stretch; }
  .home-opening-actions .button, .home-opening-actions .random-book-button { flex: 1 1 210px; width: auto; }
  .home-identity { gap: 20px; }
  .home-slogan { height: 250px; }
  .home-slogan .hero-feature-slogan { width: 190px; max-height: 235px; }
  .home-opening-quote { width: min(100%, 480px); }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-bottom: 1px solid var(--line); }
  .books-grid, .posts-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .catalog-card { padding: 10px; }
  .footer-grid, .book-single { grid-template-columns: 1fr; gap: 35px; }
  .directory-grid { grid-template-columns: repeat(2, 1fr); }
  .distributors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term-profile { grid-template-columns: 220px minmax(0, 1fr); }
  .home-news-card, .news-card { grid-template-columns: 1fr; }
  .search-result-card { grid-column: 1 / -1; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .book-catalog-search { width: 100%; grid-template-columns: 1fr; }
  .section-head-actions { width: 100%; justify-content: flex-start; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-filters { align-items: stretch; flex-direction: column; }
  .catalog-filters select { width: 100%; }
  .catalog-exports span { width: auto; margin-inline-end: 6px; }
  .book-primary-actions { align-items: flex-start; flex-direction: column; }
  .book-pdf-reader-frame { height: 68vh; min-height: 430px; padding: 8px; }
}

@media (max-width: 470px) {
  .footer-links { grid-template-columns: 1fr; }
  .addar-ai { right: 12px; bottom: 12px; }
  .addar-ai-launcher { min-height: 50px; padding: 8px 13px; font-size: .82rem; }
  .addar-ai-panel { right: -1px; bottom: 59px; width: calc(100vw - 22px); height: min(660px, calc(100vh - 84px)); }
  .addar-ai-header { min-height: 72px; }
  .addar-ai-messages { padding: 13px; }
  .addar-ai-form { grid-template-columns: minmax(0, 1fr) 65px; padding: 9px; }
  .brand-divider { display: none; }
  .brand-wordmark { width: 155px; }
  .books-grid, .posts-grid { grid-template-columns: 1fr; }
  .directory-grid, .goodreads-stats { grid-template-columns: 1fr; }
  .term-profile { grid-template-columns: 1fr; }
  .term-profile-photo { max-width: 280px; }
  .distributors-grid { grid-template-columns: 1fr; }
  .distributors-hero { padding: 56px 0 40px; }
  .external-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .external-platform { padding: 7px 9px; }
  .distributors-section { padding: 46px 0; }
  .awards-grid, .manuscript-form { grid-template-columns: 1fr; }
  .manuscript-form .is-wide { grid-column: auto; }
  .hero-random-selection { width: min(100%, 340px); }
  .hero-random-books { gap: 5px; }
  .hero-visual { height: 250px; transform: none; margin-bottom: 0; }
  .hero-feature-slogan { width: 180px; max-height: 225px; }
  .home-opening-head { margin-bottom: 22px; }
  .home-opening-head .section-title { font-size: 2.15rem; }
  .home-latest-books { gap: 4px; }
  .home-latest-book { box-shadow: 0 6px 12px rgba(0,0,0,.16); }
  .home-opening-intro { font-size: .98rem; }
  .home-opening-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .home-opening-actions .button, .home-opening-actions .random-book-button { min-width: 0; min-height: 50px; padding: 10px 12px; }
  .home-random-section .hero-random-books { gap: 4px; }
  .section { padding: 58px 0; }
  .random-book-button.is-hero-action { width: 100%; }
  .catalog-toolbar { padding: 16px; }
  .catalog-exports { width: 100%; }
  .catalog-exports a { flex: 1; }
  .book-share { width: 100%; }
}
/* Reader community */
.reader-account-links{display:flex;gap:14px;align-items:center;margin-inline-start:18px;font-size:.9rem}
.reader-account-links a{color:var(--red);font-weight:800}
.reader-account-links a:hover,.reader-account-links a:focus-visible{color:#a70f17;text-decoration:underline;text-underline-offset:4px}
.reader-book-panel,.reader-reviews,.reader-profile{margin-top:32px;padding:25px;border:1px solid var(--line);background:#fff}
.reader-book-panel h2,.reader-reviews h2{margin-top:0}
.reader-stars{display:flex;direction:ltr;justify-content:flex-end;gap:3px;margin:12px 0}
.reader-stars button{border:0;background:transparent;color:#bbb;font-size:2rem;cursor:pointer;padding:0}.reader-stars button.is-active{color:#d19a00}.reader-stars button:disabled{cursor:not-allowed}
.reader-shelves{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.reader-shelves button,.reader-review-like,.reader-save-quote{border:1px solid var(--line);background:#fff;padding:7px 11px;cursor:pointer}.reader-shelves button.is-active,.reader-review-like.is-active,.reader-save-quote.is-active{border-color:var(--red);color:var(--red)}
.reader-review-form{display:grid;gap:9px;margin-top:22px}.reader-review-form textarea{width:100%;padding:12px;border:1px solid var(--line)}
.reader-review{padding:20px 0;border-top:1px solid var(--line)}.reader-review header{display:flex;flex-wrap:wrap;gap:8px 15px;align-items:baseline}.reader-review header span,.reader-review time{color:var(--muted);font-size:.85rem}
.reader-profile header{margin-bottom:24px}.reader-new-shelf{display:flex;gap:8px;margin-bottom:30px}.reader-new-shelf input{min-width:250px;padding:10px}.reader-profile-shelves>section{margin:32px 0}.reader-delete-shelf{color:var(--red);border:0;background:none;cursor:pointer}
.reader-saved-quotes blockquote{padding:14px 20px;border-right:3px solid var(--red);background:var(--paper)}
.reader-auth-shell{max-width:720px;margin:0 auto}.reader-auth-intro{margin-bottom:24px;color:var(--charcoal)}
.reader-auth-form,.reader-account-form{display:grid;gap:16px;padding:28px;background:rgba(255,255,255,.62);border:1px solid var(--line)}
.reader-auth-form label,.reader-account-form label{display:grid;gap:7px;font-weight:800}.reader-auth-form input,.reader-account-form input{width:100%;min-height:48px;padding:10px 13px;border:1px solid var(--line);background:#fff;font:inherit}
.reader-auth-form .button,.reader-account-form .button{justify-self:start}.reader-auth-note{padding:13px 16px;background:rgba(70,107,98,.1);border-right:3px solid #466b62}
.reader-auth-error{padding:13px 16px;color:#8b1015;background:#fff0f0;border-right:3px solid var(--red)}.reader-auth-success{padding:13px 16px;background:#eef8f3;border-right:3px solid #2d725c}
.reader-captcha-row{display:grid;grid-template-columns:1fr 150px;gap:12px;align-items:end}.reader-captcha-row span{grid-column:1/-1}.reader-hp{position:absolute!important;right:-10000px!important}
.reader-account-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.country-filter-link{font-weight:800;color:var(--red)}
.book-single-cover{position:relative}.book-cover-new-badge{position:absolute;z-index:2;top:12px;right:12px;box-shadow:0 2px 8px rgba(0,0,0,.18)}

/* English professional rights site */
body:has(.en-hero),body:has(.en-page-head),body:has(.en-book-page){direction:ltr;text-align:left}
.primary-nav{display:flex;align-items:center}.language-switch{display:flex;align-items:center}.language-switch a{padding:5px 10px;border:1px solid var(--line);font-size:.78rem;font-weight:800;line-height:1.5;color:var(--charcoal)}.language-switch a:hover,.language-switch a:focus{color:var(--red);border-color:var(--red)}
@media(max-width:1080px){.primary-nav{display:block}}
.is-menu-language{order:-1;margin-inline-end:28px}
.en-hero{padding:90px 0 80px;background:linear-gradient(135deg,rgba(255,255,255,.65),rgba(225,222,215,.75))}
.en-hero h1{max-width:920px;margin:10px 0 24px;font-size:clamp(2.5rem,5.6vw,5.4rem);line-height:.98;letter-spacing:-.045em}
.en-kicker{text-transform:uppercase;letter-spacing:.14em;color:var(--red);font-size:.75rem;font-weight:900}
.en-lead{max-width:700px;font-size:1.2rem;line-height:1.7}.en-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.button.is-outline{background:transparent;color:var(--ink);border:1px solid var(--ink)}
.en-section{padding:75px 0}.en-section-alt{background:rgba(255,255,255,.34)}.en-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:32px}.en-section-head h2{margin:4px 0 0;font-size:clamp(2rem,4vw,3.4rem)}
.en-book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 22px}.en-book-card img,.en-cover-placeholder{width:100%;aspect-ratio:2/3;object-fit:cover;background:#d8d5ce}.en-cover-placeholder{display:grid;place-items:center;padding:25px;font-weight:900;text-align:center}
.en-book-card h3{margin:13px 0 4px;font-size:1.1rem;line-height:1.2}.en-original-title,.en-card-author{margin:4px 0;color:var(--muted);font-size:.9rem}.en-rights-status{display:inline-block;margin:8px 0 0;padding:5px 8px;background:rgba(176,25,35,.09);color:var(--red);font-size:.75rem;font-weight:800}
.en-contact-strip{padding:65px 0;background:var(--ink);color:#fff}.en-contact-strip .container{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 30px}.en-contact-strip h2,.en-contact-strip p{margin:0}.en-contact-strip .button{grid-column:2;grid-row:1/3}
.en-page-head{padding:72px 0 55px;background:rgba(255,255,255,.34)}.en-page-head h1{margin:6px 0;font-size:clamp(2.6rem,5vw,5rem);letter-spacing:-.04em}.en-page-head .container>p:last-child{max-width:720px;font-size:1.1rem}
.en-archive{padding-top:55px;padding-bottom:80px}.en-prose{max-width:850px;padding-top:55px;padding-bottom:80px;font-size:1.12rem;line-height:1.85}.en-prose h2{margin-top:2em}
.en-contact-page{padding-top:45px;padding-bottom:80px}.en-contact-page .en-prose{padding:0}.en-contact-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:35px}.en-contact-cards>div{padding:28px;background:rgba(255,255,255,.5);border-top:4px solid var(--red)}.en-contact-details{max-width:850px;margin-top:34px;border-top:1px solid var(--line)}.en-contact-details>div{display:grid;grid-template-columns:170px 1fr;gap:20px;padding:12px 0;border-bottom:1px solid var(--line)}.en-contact-details dt{font-weight:900}.en-contact-details dd{margin:0}
.en-authors-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:35px 22px;padding-top:55px;padding-bottom:80px}.en-authors-grid img,.en-author-placeholder{display:grid;place-items:center;width:100%;aspect-ratio:1;object-fit:cover;background:var(--ink);color:#fff;font-size:4rem}.en-authors-grid h2{font-size:1.15rem}.en-translated-author-grid{padding-top:0;padding-bottom:0}
.en-author-count{margin:.2rem 0 0;color:var(--muted);font-size:.82rem}.en-translation-section[id],.en-archive[id]{scroll-margin-top:30px}
.en-author-head{display:grid;grid-template-columns:180px 1fr;gap:35px;align-items:center}.en-author-head img{width:180px;height:180px;object-fit:cover;border-radius:50%}.en-author-head h1{font-size:clamp(2.4rem,4vw,4rem)}
.en-book-page{display:grid;grid-template-columns:minmax(260px,38%) 1fr;gap:70px;padding-top:70px;padding-bottom:90px}.en-book-cover img{width:100%;height:auto}.en-book-info h1{font-size:clamp(2.4rem,4.5vw,4.8rem);line-height:1;letter-spacing:-.04em}.en-byline{font-size:1.15rem}.en-book-description{font-size:1.08rem;line-height:1.75;margin:28px 0}
.en-book-facts{border-top:1px solid var(--line)}.en-book-facts>div{display:grid;grid-template-columns:170px 1fr;gap:20px;padding:12px 0;border-bottom:1px solid var(--line)}.en-book-facts dt{font-weight:900}.en-book-facts dd{margin:0}
.en-translation-section{padding:45px 0 60px;border-bottom:1px solid var(--line)}.en-translation-section:last-child{border-bottom:0}.en-translated-authors{display:flex;flex-wrap:wrap;gap:12px}.en-translated-authors a{padding:10px 15px;background:rgba(255,255,255,.48);border:1px solid var(--line);font-weight:800}.en-translated-authors a:hover{color:#fff;background:var(--red);border-color:var(--red)}
.en-author-search{display:grid;max-width:440px;gap:6px;margin:28px 0;font-weight:800}.en-author-search input,.en-catalog-filters input,.en-catalog-filters select{width:100%;min-height:46px;padding:9px 12px;border:1px solid var(--line);background:#fff;font:inherit}.en-catalog-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 38px;padding:24px;background:rgba(255,255,255,.42);border:1px solid var(--line)}.en-catalog-filters label{display:grid;gap:6px;font-size:.82rem;font-weight:850}.en-catalog-filters button{min-height:46px;padding:9px 18px;border:0;background:var(--red);color:#fff;font:inherit;font-weight:850;cursor:pointer}.en-catalog-filters>a{align-self:center;font-weight:850;text-decoration:underline}

/* Addar 3.2: refined editorial scale and reader controls. */
.single-addar_book .entry-title{font-size:clamp(2.15rem,4.25vw,4.65rem)}
.single-post .entry-title{font-size:clamp(2rem,4.15vw,4.5rem)}
.person-role-title{font-size:clamp(1.65rem,3vw,3rem)}
.single-addar_book .section-title{font-size:clamp(1.7rem,3vw,3.2rem)}
.book-quote-text blockquote{font-size:clamp(1.08rem,1.6vw,1.55rem);line-height:1.85}
.book-praise-card blockquote{font-size:clamp(.96rem,1.25vw,1.16rem);line-height:1.8}
.book-praise-card figcaption{font-size:.9rem}
.reader-captcha{display:grid;max-width:260px;gap:7px}.reader-captcha input[type=number]{padding:10px;border:1px solid var(--line)}
.reader-honeypot{position:absolute!important;inset-inline-start:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
.quote-share .reader-save-quote{flex-basis:100%;width:max-content;min-height:40px;margin-top:4px;padding:8px 15px;border:1px solid rgba(255,255,255,.5);color:#fff;background:transparent;font:inherit;font-size:.78rem;font-weight:850}
.quote-share .reader-save-quote:hover,.quote-share .reader-save-quote.is-active{border-color:var(--red);background:var(--red);color:#fff}
.reader-shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.reader-shelf-heading h2{margin:0}.reader-shelf-heading>div{display:flex;gap:9px}
.reader-share-shelf,.reader-copy-share{padding:7px 11px;border:1px solid var(--line);background:#fff;cursor:pointer;font:inherit}.reader-share-shelf.is-active{border-color:var(--red);color:var(--red)}
.reader-share-url{display:flex;align-items:end;gap:8px;margin:14px 0}.reader-share-url label{display:grid;flex:1;gap:5px}.reader-share-url input{width:100%;padding:9px;border:1px solid var(--line);direction:ltr;text-align:left}
.reader-profile-books{grid-template-columns:repeat(auto-fill,minmax(92px,120px));gap:16px;justify-content:start}.reader-profile-books .book-card h3{font-size:.72rem}.reader-profile-books .book-card-meta{font-size:.65rem}
.reader-saved-quotes{display:grid;gap:16px}.reader-saved-quote{padding:18px 20px;background:var(--paper);border-inline-start:3px solid var(--red)}.reader-saved-quote blockquote{margin:0 0 10px;font-size:1.02rem;line-height:1.8}.reader-saved-quote p{margin:0 0 12px;font-size:.85rem}.reader-saved-quote .quote-share{color:var(--ink)}
.reader-my-reviews article{padding:16px 0;border-top:1px solid var(--line)}.reader-my-reviews h3{margin:0 0 8px;font-size:1rem}.reader-my-reviews small{color:var(--muted)}
.reader-social-logins{display:grid;gap:10px;margin:18px auto;max-width:520px;text-align:center}.reader-social-login{display:block;padding:12px 18px;border:1px solid var(--line);background:#fff;font-weight:850}.reader-social-login:hover{border-color:var(--red);color:var(--red)}
.addar-goodreads-fetch{margin-top:18px}
@media(max-width:700px){.reader-shelf-heading,.reader-share-url{align-items:stretch;flex-direction:column}.reader-profile-books{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Addar 3.2.1: compact shelves, explicit privacy, and shelf sharing. */
.reader-profile-books{grid-template-columns:repeat(auto-fill,18px);gap:10px;align-items:start}
.reader-profile-books .catalog-card{width:18px;padding:0}
.reader-profile-books .catalog-cover{width:18px}
.reader-profile-books .catalog-card h3,.reader-profile-books .catalog-card .book-badges,.reader-profile-books .catalog-card .meta{display:none}
.reader-shelf-controls{display:flex;align-items:center;gap:12px}
.reader-shelf-visibility{display:flex;align-items:center;gap:7px;font-size:.78rem;font-weight:800}
.reader-share-shelf{min-height:38px;padding:6px 30px 6px 10px;border:1px solid var(--line);background:#fff;font:inherit;cursor:pointer}
.reader-share-shelf.is-active{border-color:var(--red);color:var(--red)}
.reader-share-url{align-items:center;flex-wrap:wrap;padding:12px;background:var(--paper)}
.reader-shelf-social{display:flex;gap:7px}
.reader-shelf-social a{display:grid;width:38px;height:38px;place-items:center;border:1px solid var(--line);background:#fff}
.reader-shelf-social a:hover{color:var(--red);border-color:var(--red)}
.reader-shelf-social svg{width:19px;height:19px;fill:currentColor}
.footer-legal-links{display:inline-flex;gap:12px;margin-inline-start:16px}
.footer-legal-links a{text-decoration:underline;text-underline-offset:3px}
.footer-legal-links button{padding:0;border:0;color:inherit;background:none;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.reader-deletion-form{max-width:720px;margin:24px 0}
.reader-deletion-confirm{grid-template-columns:auto 1fr!important;align-items:start}
.reader-deletion-confirm input{width:auto!important;min-height:0!important;margin-top:5px}
@media(max-width:700px){
  .reader-profile-books{grid-template-columns:repeat(auto-fill,18px)}
  .reader-shelf-controls{align-items:stretch;flex-direction:column}
  .reader-shelf-visibility{align-items:stretch;flex-direction:column}
  .footer-legal-links{display:flex;margin:8px 0 0}
}

/* Addar 3.2.15: store groups, reader discovery, and granular consent. */
.goodreads-heading-link{display:inline-flex;align-items:center;gap:8px;padding:5px 8px;border:1px solid transparent;border-radius:4px;font-weight:900;text-decoration:underline;text-underline-offset:4px}
.goodreads-heading-link:hover,.goodreads-heading-link:focus-visible{color:var(--red);border-color:var(--red)}
.book-format-links{margin-top:22px}.book-format-links h2{margin:0 0 9px;font-size:1rem;line-height:1.6}.book-format-links .external-platforms{margin-top:0}
.sanad-platform .external-platform-icon b{display:grid;width:100%;height:100%;place-items:center;border-radius:50%;color:#fff;background:#792d21;font-size:.62rem}
.book-syria-button[hidden]{display:none!important}.book-syria-button .external-platform-icon{display:grid;place-items:center;border-radius:50%;color:#fff;background:#228b4e;font-weight:900}
.entry-title:empty{display:none}.reader-review-author{text-decoration:underline;text-underline-offset:3px}.reader-review-author:hover{color:var(--red)}
.reader-shared-shelf h1,.reader-public-profile h1{margin:0 0 8px;font-size:clamp(2rem,4vw,3.8rem)}.reader-shared-shelf-byline{font-size:1.02rem}.reader-shared-shelf-byline strong{font-size:1.18rem}
.addar-cookie-consent,.reader-welcome-modal{position:fixed;z-index:99999;inset:0;display:grid;place-items:end center;padding:20px;background:rgba(15,15,16,.5)}
.addar-cookie-consent[hidden],.reader-welcome-modal[hidden]{display:none}
.addar-cookie-card,.reader-welcome-card{position:relative;width:min(100%,620px);padding:18px 20px;border:1px solid var(--line);border-top:4px solid var(--red);background:#fff;box-shadow:0 18px 55px rgba(0,0,0,.28)}
.addar-cookie-card h2,.reader-welcome-card h2{margin:0 0 7px;font-size:1.55rem}.addar-cookie-card p,.reader-welcome-card p{margin:0 0 12px;font-size:.94rem}
.addar-cookie-actions,.reader-welcome-card>div{display:flex;flex-wrap:wrap;gap:9px}.addar-cookie-actions button,.reader-welcome-card button{min-height:42px;padding:8px 14px;border:1px solid var(--line);background:#fff;font:inherit;font-weight:800;cursor:pointer}
.addar-cookie-actions .button[data-cookie-action="all"]{border-color:var(--red);background:var(--red);color:#fff}.addar-cookie-actions .button[data-cookie-action="all"]:hover,.addar-cookie-actions .button[data-cookie-action="all"]:focus-visible{border-color:#8d1717;background:#8d1717;color:#fff}
.addar-cookie-close{position:absolute;top:9px;left:11px;border:0;background:none;font-size:1.7rem;cursor:pointer}.addar-cookie-settings{display:grid;gap:10px;margin-top:16px}.addar-cookie-settings label{display:grid;grid-template-columns:auto 1fr;gap:10px;padding:10px;background:var(--paper-light)}.addar-cookie-settings span{display:grid;gap:2px}.addar-cookie-settings small{color:var(--muted)}.addar-cookie-policy-link{display:inline-block;margin-top:14px;text-decoration:underline;text-underline-offset:3px}
.reader-welcome-modal{place-items:center}.reader-welcome-card{width:min(100%,540px);text-align:center}.reader-welcome-card>div{justify-content:center}
@media(max-width:700px){.addar-cookie-consent{padding:8px}.addar-cookie-card,.reader-welcome-card{padding:16px 14px}.addar-cookie-card h2,.reader-welcome-card h2{font-size:1.3rem}.addar-cookie-actions>*{width:100%}.book-format-links .external-platforms{grid-template-columns:1fr 1fr}}

/* Addar 3.2.2: readable shelf covers and compact profile controls. */
.reader-profile-books{grid-template-columns:repeat(auto-fill,72px);gap:14px}
.reader-profile-books .catalog-card{width:72px}
.reader-profile-books .catalog-cover{width:72px}
.reader-profile .button,
.reader-profile button,
.reader-profile select{
  min-width:0;
  min-height:34px;
  padding:5px 10px;
  font-size:.76rem;
  line-height:1.35;
}
.reader-profile .reader-delete-shelf{min-height:0;padding:4px 7px}
.reader-saved-quote-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.reader-remove-saved-quote{border:1px solid var(--red)!important;color:var(--red);background:#fff!important}
.reader-remove-saved-quote:hover{color:#fff;background:var(--red)!important}
@media(max-width:700px){
  .reader-profile-books{grid-template-columns:repeat(auto-fill,72px)}
}

/* Addar 3.2.3: account settings trigger. */
.reader-account-settings{margin:0 0 24px}
.reader-account-settings>summary.reader-account-settings-button{
  display:inline-flex;
  width:auto;
  list-style:none;
  cursor:pointer;
  user-select:none;
}
.reader-account-settings>summary.reader-account-settings-button::-webkit-details-marker{display:none}
.reader-account-settings[open]>summary.reader-account-settings-button{margin-bottom:12px}
.reader-account-settings[open]>.reader-account-form{animation:addar-account-form-in .16s ease-out}
@keyframes addar-account-form-in{
  from{opacity:0;transform:translateY(-5px)}
  to{opacity:1;transform:none}
}

/* Addar 3.2.4: refined sign-in layout and branded social buttons. */
.reader-auth-form .reader-remember-row{
  display:flex;
  width:100%;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin-top:-2px;
  font-size:.86rem;
  font-weight:700;
}
.reader-auth-form .reader-remember-row input{
  width:17px;
  min-height:17px;
  margin:0;
}
.reader-auth-form .reader-login-submit{
  justify-self:start;
  width:auto;
  min-width:132px;
  min-height:40px;
  padding:7px 20px;
  font-size:.88rem;
}
.reader-social-logins{
  width:min(100%,520px);
  gap:11px;
  margin-top:20px;
}
.reader-social-logins>span{
  color:var(--charcoal);
  font-size:.78rem;
  font-weight:750;
}
.reader-social-login{
  position:relative;
  display:flex;
  min-height:48px;
  align-items:center;
  justify-content:center;
  gap:11px;
  padding:9px 18px;
  border-radius:3px;
  box-shadow:0 1px 2px rgba(23,23,25,.06);
  font-size:.9rem;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.reader-social-login:hover,.reader-social-login:focus-visible{
  box-shadow:0 4px 12px rgba(23,23,25,.09);
  transform:translateY(-1px);
}
.reader-social-login svg{
  width:22px;
  height:22px;
  flex:0 0 22px;
}
.reader-social-login.is-google svg{fill:none}
.reader-social-login.is-facebook{border-color:#1877f2;color:#1877f2}
.reader-social-login.is-facebook:hover,.reader-social-login.is-facebook:focus-visible{background:#1877f2;color:#fff}
@media(max-width:900px){.en-book-grid,.en-authors-grid{grid-template-columns:repeat(2,1fr)}.en-book-page{grid-template-columns:1fr;gap:35px}.en-book-cover{max-width:420px}.en-contact-strip .container{display:block}.en-contact-strip .button{display:inline-flex;margin-top:20px}.en-contact-cards{grid-template-columns:1fr}.en-catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.en-hero{padding:60px 0}.en-hero h1{font-size:2.7rem}.en-book-grid{gap:24px 12px}.en-author-head{grid-template-columns:1fr}.en-author-head img{width:130px;height:130px}.en-book-facts>div,.en-contact-details>div{grid-template-columns:1fr;gap:4px}.en-catalog-filters{grid-template-columns:1fr}}


/* 3.2.8 — experimental notice, author articles, and short-link copy */
.beta-notice { background: var(--ink); color: #fff; position: relative; z-index: 1001; }
.beta-notice-inner { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.beta-notice a { color: #fff; font-weight: 850; border-bottom: 1px solid var(--red); }
.beta-notice a:hover { color: var(--red); }
.beta-notice-close { position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: #fff; font-size: 1.45rem; line-height: 1; cursor: pointer; }
.book-share button { width: 44px; height: 44px; display: grid; place-items: center; padding: 10px; color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.4); cursor: pointer; font: inherit; transition: color .2s ease, border-color .2s ease, transform .2s ease, background .2s ease; }
.book-share button:hover, .book-share button.is-copied { color: var(--red); border-color: var(--red); transform: translateY(-2px); }
.book-share button.is-copied { background: rgba(255,255,255,.75); }
.book-copy-link > span[aria-hidden="true"] { font-size: 1.35rem; line-height: 1; }
.person-articles-section { margin-top: 72px; padding-top: 58px; border-top: 1px solid var(--line); }
.person-articles-section .post-card { display: flex; flex-direction: column; }
.person-articles-section .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 700px) {
  .beta-notice-inner { justify-content: flex-start; padding-inline-end: 48px; text-align: right; font-size: .82rem; }
  .beta-notice-inner a { white-space: nowrap; }
  .beta-notice-close { inset-inline-end: 8px; }
}

/* Addar 3.2.10: Arabic-first layout for the single book page only.
   On desktop, book information appears on the viewer's right and the cover on the left. */
@media (min-width: 901px) {
  body.single-addar_book .book-single {
    direction: ltr;
  }
  body.single-addar_book .book-single > article {
    direction: rtl;
    text-align: right;
  }
  body.single-addar_book .book-single-cover {
    direction: rtl;
  }
}

/* Addar 3.2.12 — branded popup feedback form */
body.beta-feedback-open { overflow: hidden; }
.beta-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  direction: rtl;
}
.beta-feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23,23,25,.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: addarFeedbackFade .18s ease-out both;
}
.beta-feedback-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--paper-light);
  color: var(--ink);
  border: 1px solid rgba(23,23,25,.25);
  border-top: 5px solid var(--red);
  padding: 28px 34px 32px;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  direction: rtl;
  text-align: right;
  animation: addarFeedbackPop .22s ease-out both;
}
.beta-feedback-dialog::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 82% 10%, rgba(255,255,255,.72), transparent 36%);
  z-index: -1;
}
.beta-feedback-x {
  position: absolute;
  inset-inline-start: 16px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.beta-feedback-x:hover,
.beta-feedback-x:focus-visible { background: var(--red); color: #fff; border-color: var(--red); }
.beta-feedback-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding-inline-end: 2px;
  padding-inline-start: 54px;
  margin-bottom: 18px;
}
.beta-feedback-brand-mark { width: 52px; height: 52px; object-fit: contain; mix-blend-mode: multiply; }
.beta-feedback-brand-line { width: 1px; height: 42px; background: var(--line); }
.beta-feedback-brand-wordmark { width: min(270px, 60vw); max-height: 52px; object-fit: contain; object-position: right center; }
.beta-feedback-heading { padding-bottom: 19px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.beta-feedback-kicker { display: block; margin-bottom: 3px; color: var(--red); font-size: .84rem; font-weight: 850; }
.beta-feedback-dialog h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.35; }
.beta-feedback-intro { max-width: 590px; margin: 7px 0 0; color: var(--charcoal); font-size: .96rem; }
.beta-feedback-form { display: grid; gap: 16px; }
.beta-feedback-form label { display: grid; gap: 7px; font-weight: 800; font-size: .95rem; }
.beta-feedback-form small { font-weight: 500; color: var(--charcoal); }
.beta-feedback-form input,
.beta-feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(23,23,25,.3);
  background: rgba(255,255,255,.56);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  border-radius: 0;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.beta-feedback-form input:hover,
.beta-feedback-form textarea:hover { border-color: rgba(23,23,25,.5); }
.beta-feedback-form input:focus,
.beta-feedback-form textarea:focus {
  outline: 0;
  border-color: var(--red);
  background: rgba(255,255,255,.82);
  box-shadow: 0 0 0 2px rgba(229,27,35,.12);
}
.beta-feedback-form input[readonly] {
  background: rgba(23,23,25,.045);
  color: var(--charcoal);
  direction: ltr;
  text-align: left;
  font-size: .86rem;
}
.beta-feedback-form textarea { resize: vertical; min-height: 132px; }
.beta-feedback-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.beta-feedback-captcha { width: min(270px,100%); }
.beta-feedback-captcha input { max-width: 150px; }
.beta-feedback-submit {
  justify-self: start;
  min-width: 165px;
  min-height: 52px;
  padding: 10px 24px;
  font-size: 1rem;
}
.beta-feedback-submit:disabled { opacity: .55; cursor: wait; transform: none; }
.beta-feedback-status { width: 100%; margin: 2px 0 0; padding: 12px 15px; border: 1px solid rgba(23,23,25,.24); background: rgba(255,255,255,.55); color: var(--charcoal); font-size: 1rem; font-weight: 800; line-height: 1.7; }
.beta-feedback-status:empty { display: none; }
.beta-feedback-status[data-state="success"] { border-color: #27864a; background: #e7f6ec; color: #175f34; }
.beta-feedback-status[data-state="success"]::before { content: "✓"; display: inline-block; margin-inline-end: 8px; font-weight: 900; }
.beta-feedback-status[data-state="error"] { border-color: var(--red); background: #fff0f0; color: #a20f16; }
.beta-feedback-honeypot { position: absolute !important; inline-size: 1px !important; block-size: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.beta-feedback-config-warning { margin: 0; padding: 10px 12px; border: 1px solid var(--red); font-size: .88rem; }
@keyframes addarFeedbackFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes addarFeedbackPop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .beta-feedback-backdrop, .beta-feedback-dialog { animation: none; }
}
@media (max-width: 640px) {
  .beta-feedback-modal { padding: 10px; align-items: end; }
  .beta-feedback-dialog { width: 100%; max-height: calc(100vh - 10px); padding: 22px 17px 24px; border-top-width: 4px; }
  .beta-feedback-x { inset-inline-start: 11px; top: 10px; width: 36px; height: 36px; }
  .beta-feedback-brand { min-height: 48px; gap: 10px; margin-bottom: 14px; padding-inline-start: 44px; }
  .beta-feedback-brand-mark { width: 40px; height: 40px; }
  .beta-feedback-brand-line { height: 34px; }
  .beta-feedback-brand-wordmark { width: min(220px, 58vw); max-height: 42px; }
  .beta-feedback-heading { padding-bottom: 14px; margin-bottom: 17px; }
  .beta-feedback-two-cols { grid-template-columns: 1fr; }
  .beta-feedback-submit { width: 100%; }
}
