/**
 *                          ___                   _       _         _ 
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *                                                                    
 *
 * 	Author: MD OMAR FARUK
 * 	Author URI: www.faruk.bd
 * 	Author Contact: https://faruk.bd/#contact
 * 	Author Email: info@faruk.bd | farukmr@gmail.com
 * 	Copyright © 2026
 *                          ___                   _       _         _ 
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *                                                                    
 */
/* Quran CMS - the prayer guide in pictures: a tab for men and one for women,
   every position drawn, and the words said at each step. */
.pg { --pg-cl: #ffffff; --pg-cl2: #e4eae8; --pg-cl3: #d3dcd9; --pg-sk: #f3d9b4; --pg-sk2: #2a2e35;
      --pg-hj: #e5457f; --pg-hj2: #f0709d; --pg-bd: #26302e; --pg-out: #26302e;
      margin: 1.6rem 0; }
[data-theme="dark"] .pg { --pg-cl: #e9efec; --pg-cl2: #c7d2ce; --pg-cl3: #aebab6; --pg-out: #1b2422; }

.pg-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pg-tabs { display: flex; background: var(--brand-soft); border-radius: 999px; padding: .25rem; gap: .2rem; }
.pg-tabs button { display: flex; align-items: center; gap: .4rem; border: 0; background: none; font: inherit; font-weight: 700;
                  color: var(--ink-2); padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; }
.pg-tabs button.on { background: var(--brand); color: #fff; }
.pg-modes { display: flex; gap: .3rem; }
.pg-mode { display: flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: var(--surface); font: inherit;
           font-size: .85rem; font-weight: 600; color: var(--ink-2); padding: .45rem .8rem; border-radius: 10px; cursor: pointer; }
.pg-mode.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.pg-steps { display: grid; gap: 1rem; }
.pg-step { display: grid; grid-template-columns: 230px 1fr; gap: 1.2rem; align-items: start;
           border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 1.1rem 1.2rem; }
.pg-art { position: relative; background: linear-gradient(180deg, var(--brand-soft), transparent 70%); border-radius: 14px; padding: .5rem; }
.pg-no { position: absolute; top: .5rem; left: .5rem; width: 30px; height: 30px; border-radius: 10px; background: var(--brand); color: #fff;
         display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.pg-fig { display: block; width: 100%; height: auto; }
.pg-w { display: none; }
.pg.is-w .pg-w { display: block; }
.pg.is-w .pg-m { display: none; }
.pg-only-w { display: none; }
.pg.is-w .pg-only-w { display: block; }

.pg-txt h3 { margin: .1rem 0 .4rem; font-size: 1.16rem; color: var(--brand); }
.pg-txt p { margin: 0 0 .6rem; line-height: 1.75; }
.pg-only { background: var(--brand-soft); border-radius: 12px; padding: .6rem .8rem; font-size: .93rem; }

.pg-say { border-inline-start: 3px solid var(--gold, #c9a227); background: color-mix(in srgb, var(--gold, #c9a227) 8%, transparent);
          border-radius: 0 12px 12px 0; padding: .7rem .9rem; margin-top: .2rem; }
.pg-say-l { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
            color: var(--muted); margin-bottom: .3rem; }
.pg-ar { font-family: var(--font-ar, serif); font-size: 1.5rem; line-height: 2.1; direction: rtl; margin: 0 0 .35rem !important; }
.pg-tr { font-weight: 600; margin: 0 0 .2rem !important; }
.pg-mn { color: var(--muted); font-size: .92rem; margin: 0 !important; }

/* the figures themselves */
.pg-fig .pg-cl  { fill: var(--pg-cl); stroke: var(--pg-out); stroke-width: 2.4; stroke-linejoin: round; }
.pg-fig .pg-cl2 { fill: var(--pg-cl2); stroke: var(--pg-out); stroke-width: 2.2; stroke-linejoin: round; }
.pg-fig .pg-cl3 { fill: var(--pg-cl3); stroke: var(--pg-out); stroke-width: 2.2; stroke-linejoin: round; }
.pg-fig .pg-sk  { fill: var(--pg-sk); stroke: var(--pg-out); stroke-width: 2.2; stroke-linejoin: round; }
.pg-fig .pg-sk2 { fill: var(--pg-sk2); stroke: var(--pg-out); stroke-width: 2.2; stroke-linejoin: round; }
.pg-fig .pg-hj  { fill: var(--pg-hj); stroke: var(--pg-out); stroke-width: 2.4; stroke-linejoin: round; }
.pg-fig .pg-hj2 { fill: var(--pg-hj2); stroke: none; }
.pg-fig .pg-bd  { fill: var(--pg-bd); stroke: none; }
.pg-fig .pg-ln  { fill: none; stroke: var(--pg-out); stroke-width: 1.6; stroke-linecap: round; opacity: .5; }
.pg-fig .pg-point { opacity: 1; stroke-width: 2.4; }
.pg-fig .pg-sh  { fill: var(--ink); opacity: .08; }
.pg-fig .pg-gd  { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; opacity: .35; }
.pg-fig .pg-arrow { fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* one step at a time */
.pg.is-one .pg-step { display: none; }
.pg.is-one .pg-step.on { display: grid; }
.pg-nav { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1rem; }
.pg-nav[hidden] { display: none; }
.pg-dots { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: center; }
.pg-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.pg-dots button.on { background: var(--brand); transform: scale(1.25); }

.pg-note { margin-top: 1rem; font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .8rem; }

@media (max-width: 720px) {
  .pg-step { grid-template-columns: 1fr; }
  .pg-art { max-width: 240px; margin: 0 auto; }
  .pg-head { flex-direction: column; align-items: stretch; }
  .pg-tabs button { flex: 1; justify-content: center; }
  .pg-modes { justify-content: center; }
}
@media print {
  .pg-modes, .pg-nav { display: none !important; }
  .pg.is-one .pg-step { display: grid !important; }
  .pg-step { break-inside: avoid; }
}
