/* Muslim.Blue's Quran program on The First Refuge (inc/quran-door.php).
   Loaded only while the pieces show (the switch is on, or a reviewer is previewing). In the site's own look:
   a cartouche on the folio, double-ruled in rubric red, with the Red Sea crossing drawn in the site's dots. */

/* ------------------------------------------------------------------ the menu: one more item */
.bar__nav a.bar__q{color:var(--brass-2)}
.bar__nav a.bar__q:hover,.bar__nav a.bar__q[aria-current="page"]{color:var(--cotton)}
/* With "Get a Quran" the full bar needs about 100px more, so the drawer serves up to 1720px and the bar widens above it. */
@media (min-width:1581px) and (max-width:1720px){
  .bar__in{width:min(var(--wrap),100% - 40px)}
  .bar__btn{display:inline-flex}
  html:not(.js) .bar__nav,html:not(.js) .bar__btn{display:none}
  .bar__nav{position:fixed;inset:var(--bar) 0 auto 0;flex-direction:column;align-items:stretch;gap:0;padding:10px 20px 22px;background:var(--night-2);border-bottom:1px solid var(--line-2);
    max-height:calc(100vh - var(--bar));overflow:auto;font-size:1.05rem}
  .bar__nav[hidden]{display:none}
  .bar__nav a{padding:12px 6px;border-radius:0;border-bottom:1px solid var(--line)}
  .bar__nav .sep{display:none}
  /* site.js fades the bar on scroll unless the drawer is open at 1580px and below; keep it while the drawer is open here too */
  .bar.is-hidden:has(.bar__nav:not([hidden])){opacity:1;pointer-events:auto}
}
@media (min-width:1721px){.bar__in{width:min(1660px,100% - 40px)}}

/* ------------------------------------------------------------------ the banner on chapter I */
.folio .tfr-qb{display:grid;grid-template-columns:176px minmax(0,1fr);margin:2.8em auto 2.6em;background:var(--folio-2);color:var(--ink);
  border:1px solid rgba(166,58,36,.55);outline:1px solid rgba(166,58,36,.55);outline-offset:4px;border-radius:3px}
.tfr-qb__map{margin:0;background:var(--night);display:flex;flex-direction:column;justify-content:center;gap:10px;padding:18px 14px;border-radius:2px 0 0 2px}
.tfr-qb__map img{width:100%;height:auto}
.tfr-qb__map figcaption{font-family:var(--sans);font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;line-height:1.35;color:var(--brass-2);text-align:center}
.tfr-qb__body{padding:24px 26px 22px}
.folio .tfr-qb h2{font-size:1.45rem;line-height:1.15;margin:0 0 .5em}
.folio .tfr-qb h2::before{width:28px;margin-bottom:12px}
.folio .tfr-qb p{margin:0 0 .8em;font-size:1.02rem;line-height:1.55}
.folio .tfr-qb .tfr-qb__then{margin-bottom:.35em}
.folio .tfr-qb .tfr-qb__book{font-style:italic;font-weight:600;font-size:1.06rem}
.folio .tfr-qb .tfr-qb__act{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:1.1em 0 0}
.tfr-qb__act span{font-family:var(--sans);font-size:.86rem;font-weight:700;letter-spacing:.04em;color:var(--umber)}
@media (max-width:640px){
  .folio .tfr-qb{grid-template-columns:minmax(0,1fr)}
  .tfr-qb__map{flex-direction:row;align-items:center;padding:12px 16px;border-radius:2px 2px 0 0}
  .tfr-qb__map img{width:104px;flex:none}
  .tfr-qb__map figcaption{text-align:left}
  .tfr-qb__body{padding:20px 18px 18px}
}

/* ------------------------------------------------------------------ the door page */
.tfr-qd-page .tfr-qd__tie{font-size:1.08rem}
.tfr-qd-page .tfr-qd__note{margin-bottom:1.6em}
.folio .tfr-qd{margin:2.2em auto 0;padding:clamp(22px,4vw,36px) clamp(18px,4vw,34px);background:var(--folio-2);border:1px solid rgba(166,58,36,.55);
  outline:1px solid rgba(166,58,36,.55);outline-offset:4px;border-radius:3px;scroll-margin-top:calc(var(--bar) + 20px)}
.tfr-qd__eyebrow{font-family:var(--sans);font-size:.8rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--umber);margin:0 0 .4em!important}
.folio .tfr-qd h2{margin:0 0 .35em}
.folio .tfr-qd h2::before{display:none}
.folio .tfr-qd .tfr-qd__book{font-style:italic;font-weight:600;font-size:1.12rem;margin-bottom:1.2em}
.folio .tfr-qd__ways{list-style:none;padding:0;margin:0 0 1.4em;display:grid;gap:14px}
.folio .tfr-qd__way{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:start;margin:0;padding:14px 0 0;border-top:1px solid var(--rule)}
.tfr-qd__ico{width:40px;height:40px;padding:8px;border:1.5px solid var(--rubric);border-radius:50%;color:var(--rubric);background:var(--folio)}
.folio .tfr-qd__way h3{margin:2px 0 .2em;font-size:1.16rem}
.folio .tfr-qd__way p{margin:0;font-size:1.02rem;line-height:1.5}
.tfr-qd__act{margin:0 0 1.3em}
.folio .tfr-qd__btn{font-size:1.04rem;padding:14px 22px}
.tfr-qd__dot{opacity:.75}
.folio .tfr-qd__count{margin:.8em 0 0;font-family:var(--sans);font-size:.9rem;color:var(--umber)}
.folio .tfr-qd__who{margin:.9em 0 0;font-family:var(--sans);font-size:.92rem;line-height:1.45;color:var(--umber)}
.tfr-qd__gift{border-top:1px solid var(--rule);padding-top:1em}
.folio .tfr-qd__gift p{margin:0 0 .5em;font-size:1rem}
.folio .tfr-qd__gift .tfr-qd__qr08,.folio .tfr-qd__gift .tfr-qd__qr08tr{font-family:var(--sans);font-size:.9rem;line-height:1.45;color:var(--umber)}
.folio .tfr-qd__gift .tfr-qd__qr08tr{margin-top:.2em}

/* ------------------------------------------------------------------ the line on the new Muslims page */
.folio .tfr-ql{font-family:var(--sans);font-size:1rem;line-height:1.5;background:var(--folio-2);border-left:3px solid var(--rubric);padding:12px 16px;border-radius:0 8px 8px 0;margin-top:1.6em}
.folio .tfr-ql b{font-weight:700}
.folio .tfr-ql span{font-style:italic}
.folio .tfr-ql a{font-weight:700;white-space:nowrap}

/* ------------------------------------------------------------------ tap targets: the short text links reach 44px tall */
/* Padding makes the target; the equal negative margin keeps the line spacing of the prose exactly as it was. */
.folio .tfr-qd__gift a,.folio .tfr-qd__tie a,.folio .tfr-qb p a:not(.btn),.folio .tfr-ql a{display:inline-block;padding:11px 0;margin:-11px 0}

@media print{.tfr-qb,.tfr-ql{display:none}}
