/* /dimensions «لوحات المقاسات» — Ihab 2026-10-30 12:47 (Q5/Q6). Spec-book identity on the fw-page tokens (fow.css; day values in
   spec_pages.css): S03 head (kicker · Arabic big · English small), S12 alternating grounds (spec_rev.css), S20 chips + S21 pinned
   row (c128.js), S22 table. The board is the focus: ~62 % of the row on the desktop, first on the phone. */
html body:not(.adm) main.dm-page{--dm-col:min(1680px,100%);--dm-g:clamp(16px,3.4vw,56px);--dm-line:color-mix(in srgb,var(--fw-iv) 14%,transparent)}
html body:not(.adm) main.dm-page>.fw-sec{box-sizing:border-box;width:100%;max-width:var(--dm-col);margin-inline:auto;padding-inline:var(--dm-g)}

/* head (S03) */
html body:not(.adm) .dm-top{padding-top:clamp(28px,4vw,64px)!important;padding-bottom:clamp(20px,2.6vw,36px)!important}
html body:not(.adm) .dm-kick{margin:0 0 12px!important}
html body:not(.adm) .dm-title{margin:0;font:400 clamp(34px,4.4vw,62px)/1.22 var(--amiri,Amiri),Amiri,serif;color:var(--fw-iv);text-wrap:balance}
html[lang="en"] body:not(.adm) .dm-title{font-family:var(--news),serif}
html body:not(.adm) .dm-sub{margin:8px 0 0;font:400 clamp(13px,1.1vw,16px)/1.4 var(--abel,Abel),Abel,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--fw-mu);opacity:.85}
html body:not(.adm) .dm-lead{max-width:62ch;margin:18px 0 0;font:400 clamp(15px,1.15vw,18px)/1.75 var(--ar);color:var(--fw-mu)}
html[lang="en"] body:not(.adm) .dm-lead{font-family:var(--en)}
html body:not(.adm) .dm-count{margin:14px 0 0;font:400 13px/1.4 var(--ar);color:var(--fw-mu2)}
html body:not(.adm) .dm-count b{font:500 15px/1 var(--en);color:var(--fw-g);margin-inline-end:4px}

/* the world jump row (S20 chips, pinned by c128.js under the header: S21) */
html body:not(.adm) .dm-jump{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;box-sizing:border-box;width:100%;max-width:var(--dm-col);margin:0 auto;padding:10px var(--dm-g)}
html body:not(.adm) .dm-jump::-webkit-scrollbar{display:none}
html body:not(.adm) .dm-jump .fw-chip{flex:none;white-space:nowrap}

/* a world */
html body:not(.adm) .dm-world{padding-top:clamp(36px,4vw,56px)!important;padding-bottom:clamp(36px,4vw,56px)!important;scroll-margin-top:150px}
html body:not(.adm) .dm-wh{margin:0 0 clamp(18px,2vw,28px)}
html body:not(.adm) .dm-wk{display:flex;gap:12px;align-items:baseline;margin:0 0 8px;font:500 11px/1.5 var(--en);letter-spacing:.14em;text-transform:uppercase;color:var(--fw-g)}
html body:not(.adm) .dm-wk span+span{font-family:var(--ar);letter-spacing:0;text-transform:none;font-size:13px}
html body:not(.adm) .dm-wt{margin:0;font:400 clamp(28px,3vw,44px)/1.25 var(--amiri,Amiri),Amiri,serif;color:var(--fw-iv)}
html[lang="en"] body:not(.adm) .dm-wt{font-family:var(--news),serif}
html body:not(.adm) .dm-wsub{margin:6px 0 0;font:400 13px/1.4 var(--abel,Abel),Abel,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--fw-mu)}

/* a board card: the board (focus) + the piece */
html body:not(.adm) .dm-card{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);gap:clamp(20px,2.6vw,44px);align-items:start;padding:clamp(22px,2.4vw,36px) 0;border-top:1px solid var(--dm-line);scroll-margin-top:150px}
html body:not(.adm) .dm-card:first-of-type{border-top:0;padding-top:0}
html body:not(.adm) .dm-board{position:relative;display:block;width:100%;margin:0;padding:0;border:0;border-radius:10px;overflow:hidden;background:#fff;cursor:zoom-in;box-shadow:0 1px 0 var(--dm-line),0 18px 40px -28px rgba(0,0,0,.45)}
html body:not(.adm) .dm-board img{display:block;width:100%;height:auto;max-width:100%}
html body:not(.adm) .dm-zoom{position:absolute;inset-inline-end:12px;bottom:12px;display:inline-flex;gap:6px;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;background:rgba(23,18,14,.78);color:#f5f2e8;font:400 12px/1 var(--ar);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html[lang="en"] body:not(.adm) .dm-zoom{font-family:var(--en)}
html body:not(.adm) .dm-side{position:sticky;top:150px;display:flex;flex-direction:column;gap:12px;min-width:0}
html body:not(.adm) .dm-ck{margin:0;font:400 12px/1.4 var(--ar);color:var(--fw-g)}
html[lang="en"] body:not(.adm) .dm-ck{font:500 11px/1.5 var(--en);letter-spacing:.14em;text-transform:uppercase}
html body:not(.adm) .dm-n{margin:0;font:400 clamp(26px,2.4vw,36px)/1.2 var(--amiri,Amiri),Amiri,serif}
html[lang="en"] body:not(.adm) .dm-n{font-family:var(--news),serif}
html body:not(.adm) .dm-n a{color:var(--fw-iv);text-decoration:none}
html body:not(.adm) .dm-n2{margin:-6px 0 0;font:400 13px/1.4 var(--abel,Abel),Abel,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--fw-mu)}
html body:not(.adm) .dm-pic{display:block;width:min(100%,260px);aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:var(--fw-bg2)}
html body:not(.adm) .dm-pic img{display:block;width:100%;height:100%;object-fit:cover}

/* S22 table: label column, zebra rows, numbers in Latin digits with their unit */
html body:not(.adm) .dm-tbl{width:100%;border-collapse:collapse;font:400 14px/1.5 var(--ar);color:var(--fw-iv)}
html[lang="en"] body:not(.adm) .dm-tbl{font-family:var(--en)}
html body:not(.adm) .dm-tbl caption{caption-side:top;text-align:start;padding:0 0 8px;font:500 11px/1.5 var(--en);letter-spacing:.14em;text-transform:uppercase;color:var(--fw-g)}
html[lang="ar"] body:not(.adm) .dm-tbl caption{font:400 13px/1.5 var(--ar);letter-spacing:0;text-transform:none}
html body:not(.adm) .dm-tbl th,html body:not(.adm) .dm-tbl td{padding:8px 12px;border-bottom:1px solid var(--dm-line);text-align:start;font-weight:400}
html body:not(.adm) .dm-tbl th{color:var(--fw-mu)}
html body:not(.adm) .dm-tbl td{white-space:nowrap;text-align:end}
html body:not(.adm) .dm-tbl td bdi{font:500 15px/1 var(--en);color:var(--fw-iv)}
html body:not(.adm) .dm-tbl td .u{font-size:12px;color:var(--fw-mu)}
html body:not(.adm) .dm-tbl tbody tr:nth-child(odd){background:color-mix(in srgb,var(--fw-iv) 4%,transparent)}
html body:not(.adm) .dm-side .sx-blk{margin:4px 0 0}
html body:not(.adm) .dm-note{margin:0;font:400 12px/1.6 var(--ar);color:var(--fw-mu2)}
html[lang="en"] body:not(.adm) .dm-note{font-family:var(--en)}
html body:not(.adm) .dm-acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:6px}
html body:not(.adm) .dm-full{font:400 12px/1.4 var(--ar);color:var(--fw-g);text-decoration:underline;text-underline-offset:3px}
html[lang="en"] body:not(.adm) .dm-full{font-family:var(--en)}

/* windowed widths and the phone: the board first, the piece under it */
@media (max-width:1100px){
  html body:not(.adm) .dm-card{grid-template-columns:minmax(0,1fr)}
  html body:not(.adm) .dm-side{position:static}
}
@media (max-width:760px){
  html body:not(.adm) main.dm-page{--dm-g:16px}
  html body:not(.adm) .dm-board{border-radius:8px}
  html body:not(.adm) .dm-zoom{inset-inline-end:8px;bottom:8px;min-height:30px;padding:0 10px}
  html body:not(.adm) .dm-pic{width:120px}
  html body:not(.adm) .dm-side{display:grid;grid-template-columns:minmax(0,1fr) 120px;column-gap:14px;align-items:start}
  html body:not(.adm) .dm-side>:not(.dm-pic){grid-column:1 / -1}
  html body:not(.adm) .dm-side>.dm-pic{grid-column:2;grid-row:1 / span 3}
  html body:not(.adm) .dm-side>:is(.dm-ck,.dm-n,.dm-n2){grid-column:1}
  html body:not(.adm) .dm-tbl th,html body:not(.adm) .dm-tbl td{padding:7px 8px}
}
/* the small English lines under Arabic titles sit under them (start = right on the Arabic page), not across the column */
html[lang="ar"] body:not(.adm) :is(.dm-sub,.dm-wsub,.dm-n2){direction:rtl;text-align:right!important;unicode-bidi:plaintext}

/* Ihab 13:46: the picker = two pinned rows (worlds, then the pieces of the chosen world); one board on the stage */
html body:not(.adm) .dm-pick{display:grid;gap:8px;box-sizing:border-box;width:100%;max-width:var(--dm-col);margin:0 auto;padding:10px var(--dm-g)}
html body:not(.adm) .dm-row{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;min-width:0}
html body:not(.adm) .dm-row::-webkit-scrollbar{display:none}
html body:not(.adm) .dm-row .fw-chip{flex:none;white-space:nowrap;cursor:pointer}
html body:not(.adm) .dm-ps .fw-chip{min-height:34px;font-size:13px}
html body:not(.adm) .dm-stage{padding-top:clamp(24px,3vw,44px)!important;padding-bottom:clamp(36px,4vw,56px)!important;scroll-margin-top:170px}
html body:not(.adm) .dm-stage .dm-card{border-top:0;padding-top:0}
html body:not(.adm) .dm-card[hidden]{display:none!important}
html body:not(.adm) .c128-on.dm-pick,html body:not(.adm) .dm-pick.c128-on{padding-top:18px}
/* ART_GATE_REV2 §6: the product row shows ONLY the pieces of the selected world (a chip style was overriding [hidden]); chip geometry */
html body:not(.adm) .dm-row [hidden]{display:none!important}
html body:not(.adm) .dm-row .fw-chip{min-height:44px;padding:10px 14px!important;border-radius:8px!important;font-size:14px!important;line-height:22px!important;box-sizing:border-box}
html body:not(.adm) .dm-pick{row-gap:8px}
