/* ELBOSSILY Books | Editorial Design Preview V1 — local preview only.
 * Loaded after the existing stylesheet. No store links or book data are changed.
 */
:root {
  --preview-paper: #fbf8f0;
  --preview-deep: #17263a;
  --preview-wine: #7d2638;
  --preview-gold: #ae8846;
  --preview-faint: #e8ddc9;
}
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(circle at 90% 3%,rgba(174,136,70,.11),transparent 30rem),
              radial-gradient(circle at 0% 39%,rgba(125,38,56,.055),transparent 32rem),
              var(--preview-paper) !important;
}
body .site-header {
  background: rgba(251,248,240,.94) !important;
  border-bottom: 1px solid rgba(174,136,70,.25) !important;
  box-shadow: 0 6px 32px rgba(23,38,58,.04);
}
body .site-header .brand strong { letter-spacing:.025em; }
body .top-nav a[href] { transition: color .22s ease, opacity .22s ease; }
body .top-nav a[href]:hover { color: var(--preview-wine) !important; }
body .hero {
  min-height: auto !important;
  padding-top: clamp(38px,6vw,92px) !important;
  padding-bottom: clamp(36px,5vw,70px) !important;
  gap: clamp(24px,4vw,64px) !important;
}
body .hero-copy { position:relative; }
body .hero-copy:before {
  content:""; display:block; width:76px; height:3px; border-radius:4px;
  background: linear-gradient(90deg,var(--preview-wine),var(--preview-gold));
  margin-bottom:24px;
}
body:not(.lang-ar) .hero-copy h1 {
  font-size:clamp(2.3rem,4.2vw,4.9rem) !important;
  letter-spacing:-.035em !important;
  line-height:1.08 !important;
  color:var(--preview-wine) !important;
  text-wrap:balance;
}
html body.lang-ar .hero .hero-copy h1 {
  font-size:clamp(2.4rem,4.4vw,5.1rem) !important;
  line-height:1.4 !important;
  letter-spacing:0 !important;
  color:var(--preview-wine) !important;
  text-wrap:balance;
}
body .hero-subtitle {max-width:58ch;}
body .carousel-panel {
  border:1px solid rgba(174,136,70,.34) !important;
  background:linear-gradient(148deg,rgba(255,253,248,.98),rgba(238,230,213,.68)) !important;
  box-shadow:0 20px 68px rgba(23,38,58,.12) !important;
  overflow:hidden;
}
body .carousel-panel:before {
  content:""; display:block; position:absolute; width:270px; height:270px;
  background:radial-gradient(circle,rgba(174,136,70,.14),transparent 70%);
  top:-120px;right:-85px;pointer-events:none;
}
body .book-stage .carousel-book.slot-0 .cover-card {
  animation:elb-cover-breathe 7.5s ease-in-out infinite;
  box-shadow:0 28px 62px rgba(23,38,58,.23) !important;
}
@keyframes elb-cover-breathe {
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-7px)}
}
body .carousel-arrow {
  transition:transform .22s ease,background .22s ease !important;
}
body .carousel-arrow:hover{transform:scale(1.065) !important;}
body .hero-actions .button, body .platform-row .platform-button.active,
body .author-platforms .hub-links .hub-pill,
body .author-platforms .compact-link-list a {
  transition: transform .2s ease, background .25s ease, box-shadow .25s ease !important;
}
body .hero-actions .button:hover,
body .author-platforms .hub-links .hub-pill:hover,
body .author-platforms .compact-link-list a:hover {transform:translateY(-2px) !important;}
/* Editorial changing thought — not an attributed quotation from a book. */
body #elb-editorial-thought {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:8px;
  width:var(--elb-rail,min(1280px,calc(100vw - 48px))) !important;
  max-width:1280px !important;
  min-height:180px;
  margin:8px auto 26px !important;
  padding:29px clamp(20px,5vw,65px) !important;
  border:1px solid rgba(174,136,70,.27);
  border-radius:25px;
  background:linear-gradient(112deg,#fffdf8 0%,#f4eadd 100%);
  text-align:center;
  overflow:hidden;
}
body #elb-editorial-thought:before, body #elb-editorial-thought:after {
  content:"";position:absolute;left:6%;right:6%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(174,136,70,.3),transparent);
}
body #elb-editorial-thought:before{top:15px;}
body #elb-editorial-thought:after{bottom:15px;}
body #elb-editorial-thought .elb-thought-label {
  display:block; font:700 .75rem Arial,sans-serif; letter-spacing:.18em;
  text-transform:uppercase; color:var(--preview-gold) !important;
}
body #elb-editorial-thought .elb-thought-text {
  margin:0 !important;
  max-width:820px;
  color:var(--preview-wine) !important;
  font-size:clamp(1.45rem,2.6vw,2.45rem) !important;
  line-height:1.55 !important;
  transition:opacity .65s ease,transform .65s ease;
}
body #elb-editorial-thought .elb-thought-text.elb-is-changing {opacity:0;transform:translateY(8px);}
body.lang-ar #elb-editorial-thought .elb-thought-label {letter-spacing:0;}
body #elb-editorial-thought .elb-thought-en {display:block;}
body #elb-editorial-thought .elb-thought-ar {display:none;}
body.lang-ar #elb-editorial-thought .elb-thought-en {display:none;}
body.lang-ar #elb-editorial-thought .elb-thought-ar {display:block;}
/* Profile portrait: existing links/text retained verbatim. */
body .author-platforms .elb-author-spotlight {
  background:linear-gradient(120deg,#fffdf8, #f3eadc) !important;
  border-color:rgba(174,136,70,.4) !important;
}
body .elb-author-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,300px);
  align-items:center;
  gap:clamp(24px,4vw,65px);
}
body.lang-ar .elb-author-layout {direction:rtl;}
body .elb-author-text {min-width:0;}
body .elb-author-text h3 {font-size:clamp(1.7rem,2.9vw,3rem) !important;line-height:1.35 !important;}
body .elb-author-portrait { margin:0;position:relative;justify-self:center;width:min(100%,300px); }
body .elb-author-portrait:before {
  content:"";position:absolute;inset:12px -11px -11px 12px;
  border:1px solid rgba(174,136,70,.75);border-radius:22px;z-index:0;
}
body .elb-author-portrait img {
  position:relative;display:block;width:100%;height:auto;
  aspect-ratio:4/5;object-fit:cover;object-position:center 27%;
  border-radius:22px;border:4px solid #fffdf8;
  box-shadow:0 22px 60px rgba(23,38,58,.23);
}
body .elb-author-portrait figcaption {
  display:block;text-align:center;margin-top:17px;
  color:var(--preview-wine) !important;font:600 .84rem Arial,sans-serif;
  letter-spacing:.07em;
}
body.lang-ar .elb-author-portrait figcaption {font-family:'Noto Naskh Arabic',Tahoma,sans-serif !important;letter-spacing:0;}
body .elb-author-portrait .elb-caption-ar {display:none;}
body.lang-ar .elb-author-portrait .elb-caption-en {display:none;}
body.lang-ar .elb-author-portrait .elb-caption-ar {display:block;}
body .author-platforms .hub-card,body .visitor-opinions-card {
  border-radius:24px !important;
}
body .egyptian-heritage.heritage-interactive {
  border-color:rgba(174,136,70,.35) !important;
  background:rgba(255,253,248,.78) !important;
}
/* Reveal happens only when JS observes an element, avoiding blank content if JS fails. */
body .elb-await-reveal { opacity:0; transform:translateY(16px); }
body .elb-await-reveal.elb-revealed {
  opacity:1; transform:translateY(0);
  transition:opacity .9s ease,transform .9s cubic-bezier(.2,.8,.2,1);
}
body .elb-author-portrait img {transition:filter .4s ease,box-shadow .4s ease;}
body .elb-author-portrait img:hover {filter:brightness(1.04);box-shadow:0 25px 70px rgba(23,38,58,.29);}
@media (max-width:980px) {
  body .elb-author-layout { grid-template-columns:minmax(0,1fr) minmax(180px,260px); }
}
@media (max-width:700px) {
  html body .hero {grid-template-columns:1fr !important;gap:24px !important;}
  body .elb-author-layout {grid-template-columns:1fr !important;}
  body .elb-author-portrait { width:min(100%,260px); }
  body #elb-editorial-thought {min-height:145px;margin-top:14px !important;}
  body .site-header {flex-wrap:wrap;}
  body .site-header .top-nav {
    display:flex !important;flex-wrap:wrap;width:100%;gap:8px 14px;
    justify-content:center !important;font-size:.85rem;
  }
  body .site-header .top-nav .language-switcher {margin:0 !important;}
  body .site-header .brand { max-width:100%; }
  body .site-header .brand strong {font-size:.93rem;}
  body .site-header .brand small {font-size:.75rem;}
}
@media (prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto;}
  body .book-stage .carousel-book.slot-0 .cover-card {animation:none !important;}
  body .elb-await-reveal {opacity:1 !important;transform:none !important;}
  body .elb-await-reveal.elb-revealed,body #elb-editorial-thought .elb-thought-text {
    transition:none !important;
  }
}
