/* Protection Stories: the series page and the story page frame. Everything is scoped under .hps / .hps-story so the
   theme's own styles are never touched. Colours are the site's: ink, white, greys, red, orange; deep blue for book 2. */
@font-face{font-family:'Aref Ruqaa';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/aref-ruqaa-700-arabic.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}
.hps,.hps-story{--ink:#21262c;--red:#d81e32;--orange:#e55b2c;--deep:#1a7fc0;--grey:#f3f4f5;--pencil:#6b7280;color:var(--ink)}
.hps{max-width:1120px;margin:0 auto;padding:28px 24px 64px}
.hps h1,.hps h2,.hps p{margin:0}
.hps-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:56px;align-items:end}
.hps h1{font-family:'Aref Ruqaa',serif;font-weight:700;font-size:clamp(44px,7vw,76px);line-height:1.1}
.hps[lang=en] h1{font-family:inherit;font-weight:700;letter-spacing:-.01em}
.hps-lead{font-size:19px;line-height:1.8;max-width:52ch;padding-bottom:14px}
.hps-shelf{margin-top:24px;display:grid;grid-template-columns:1fr 1fr;gap:48px;position:relative}
.hps-shelf::after{content:"";position:absolute;inset-inline:0;top:clamp(330px,38vw,470px);height:12px;background:var(--ink)}
.hps-book{display:grid;grid-template-rows:clamp(330px,38vw,470px) auto}
.hps-cover{align-self:end;justify-self:center;width:min(66%,330px);background:var(--ink);padding:22px 20px 18px;text-decoration:none;box-shadow:-10px 10px 0 rgba(0,0,0,.08)}
.hps-cover img{display:block;width:100%;height:auto;border:6px solid #fff;box-sizing:border-box}
.hps-cover .hps-t{display:block;color:#fff;font-family:'Aref Ruqaa',serif;font-weight:700;font-size:30px;line-height:1.2;margin:12px 0 0;padding-bottom:6px}
.hps[lang=en] .hps-cover .hps-t{font-family:inherit;font-size:24px}
.hps-book:nth-child(1) .hps-cover{transform:rotate(-1.5deg)}.hps-book:nth-child(2) .hps-cover{transform:rotate(1.2deg)}
.hps-book:nth-child(1) .hps-t{border-bottom:5px solid var(--orange)}.hps-book:nth-child(2) .hps-t{border-bottom:5px solid var(--deep)}
.hps-cover{transition:transform .25s}.hps-cover:hover,.hps-cover:focus-visible{transform:translateY(-8px) rotate(0)}
.hps-cover:focus-visible{outline:3px solid var(--red);outline-offset:6px}
.hps-info{padding:34px 8px 0;display:grid;gap:4px;font-size:16.5px;line-height:1.75}
.hps-for{font-weight:600}.hps-meta{color:var(--pencil);font-size:15px}
.hps-btns{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:10px!important}
.hps-btn{font-weight:600;background:var(--ink);color:#fff!important;border-radius:999px;padding:9px 24px;text-decoration:none}
.hps-btn:hover,.hps-btn:focus-visible{background:var(--red)}
.hps-alt{color:var(--ink)!important;text-decoration:underline;font-weight:600}
.hps-below{margin-top:64px;display:grid;grid-template-columns:1fr 1.2fr;gap:40px;align-items:center}
.hps-privacy{color:var(--pencil)}
.hps-kit{background:var(--ink);color:#fff;padding:22px 26px}
.hps-kit h2{font-size:20px;color:#fff;margin:0 0 6px}
.hps-kit a{color:#fff!important;text-decoration:underline}
/* the story page: a title line, then the book in its own frame */
.hps-story{max-width:1240px;margin:0 auto;padding:18px 24px 40px}
.hps-story-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin:0 0 12px}
.hps-story h1{font-size:22px;margin:0;font-weight:700}
.hps-story-head a{color:var(--ink)!important;font-size:15px}
.hps-frame{display:block;width:100%;height:860px;border:0;background:#e4e6e9}   /* a starting height; the page script then fits it to the book */
/* the theme forces its heading font with !important behind an id-weight selector (html[lang|=ar] body:not(#hm-x) :is(h1,…)); outweigh it */
html[lang] body:not(#hm-ps) main .hps h1,html[lang] body:not(#hm-ps) main .hps .hps-t{font-family:'Aref Ruqaa',serif!important}
html[lang] body:not(#hm-ps) main .hps[lang=en] h1,html[lang] body:not(#hm-ps) main .hps[lang=en] .hps-t{font-family:'IBM Plex Sans',sans-serif!important}
@media (max-width:1000px){.hps-head{grid-template-columns:1fr;gap:6px}}
@media (max-width:760px){
  .hps-head,.hps-shelf,.hps-below{grid-template-columns:1fr;gap:28px}
  .hps-shelf::after{display:none}
  .hps-book{grid-template-rows:auto auto}
  .hps-cover{width:86%}
  .hps-story{padding:12px 0 24px}.hps-story-head{padding:0 16px}
  .hps-frame{height:900px}
}
@media (prefers-reduced-motion:reduce){.hps-cover{transition:none}}
