/* Page explainers (assets/mf-help.js): "?" buttons (the knowledge layer's .mk-q), a side drawer in the knowledge
   pop-over's colours, the "How to use this page" box and the glossary list. Added 2026-11-15 for ar.html and enso.html. */
.mfh-q{flex:none}
.mk-q.mfh-q{opacity:.7}
.mk-q.mfh-q[aria-expanded="true"]{opacity:1;background:#b8975a;border-color:#b8975a;color:#0d1014}
.mfh-mapq{position:absolute;left:8px;top:8px;z-index:4;display:inline-flex;align-items:center;gap:6px;font:600 12px/1 Inter,system-ui,sans-serif;color:#0b1f33;background:#ffffffe6;border:1px solid #0b1f3333;border-radius:999px;padding:4px 10px 4px 5px;cursor:pointer;box-shadow:0 2px 8px #0b1f3322}
.mfh-mapq b{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;border:1px solid currentColor;font-size:11px}
.mfh-mapq:hover,.mfh-mapq:focus-visible{background:#fff}

/* drawer: right (or left) side on wide screens, full-screen sheet on phones */
.mfh-dr{position:fixed;top:0;bottom:0;right:0;z-index:3200;width:min(460px,94vw);display:flex;flex-direction:column;background:#0d1014;color:#f4efe5;border-left:1px solid #b8975a66;box-shadow:-14px 0 34px #0008;font:500 13.5px/1.62 Inter,system-ui,sans-serif}
.mfh-dr.left{right:auto;left:0;border-left:0;border-right:1px solid #b8975a66;box-shadow:14px 0 34px #0008}
.mfh-dr[hidden]{display:none}
.mfh-top{display:flex;align-items:center;gap:8px;padding:10px 10px 8px 18px;border-bottom:1px solid #ffffff1a}
.mfh-top span{flex:1;font-size:10.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#d9c49a}
.mfh-x{width:36px;height:36px;border:1px solid #3a3f48;border-radius:6px;background:transparent;color:#f4efe5;font-size:20px;line-height:1;cursor:pointer}
.mfh-x:hover,.mfh-x:focus-visible{border-color:#b8975a;color:#fff}
.mfh-body{flex:1;overflow:auto;padding:14px 20px 28px;overscroll-behavior:contain}
.mfh-body:focus{outline:none}
.mfh-body h2{margin:0 0 6px;font-size:19px;line-height:1.3;font-weight:700;letter-spacing:-.01em}
.mfh-body h2:focus{outline:none}
.mfh-lead{font-size:14.5px;line-height:1.6;color:#fff;margin:0 0 12px}
.mfh-body section{border-top:1px solid #ffffff14;padding-top:10px;margin-top:12px}
.mfh-body h3{margin:0 0 6px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#d9c49a}
.mfh-body p{margin:0 0 9px}
.mfh-body ul,.mfh-body ol{margin:0 0 9px;padding-left:20px}
.mfh-body li{margin:0 0 5px}
.mfh-body b{color:#fff;font-weight:650}
.mfh-body a{color:#d9c49a}
.mfh-body code,.mfh-body .mono{font:500 12px "JetBrains Mono",ui-monospace,monospace}
.mfh-body table{width:100%;border-collapse:collapse;margin:4px 0 10px;font-size:12.5px}
.mfh-body th,.mfh-body td{text-align:left;padding:5px 6px;border-bottom:1px solid #ffffff1a;vertical-align:top}
.mfh-body th{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:#b5afa1;font-weight:600}
.mfh-body .sw{display:inline-block;width:11px;height:11px;border-radius:2px;margin-right:5px;vertical-align:-1px;box-shadow:0 0 0 1px #0006}
.mfh-box{border:1px solid #b8975a55;background:#b8975a14;border-radius:6px;padding:8px 11px;margin:6px 0 10px}
.mfh-ex{border-left:3px solid #b8975a;padding:2px 0 2px 11px;margin:6px 0 10px}
.mfh-rel{display:flex;flex-wrap:wrap;gap:5px;margin:4px 0 6px}
.mfh-rel button{font:500 11.5px/1.2 Inter,system-ui,sans-serif;color:#f4efe5;background:transparent;border:1px solid #b8975a88;border-radius:12px;padding:5px 10px;cursor:pointer}
.mfh-rel button:hover,.mfh-rel button:focus-visible{background:#b8975a26}
.mfh-links{list-style:none;padding:0 !important}
.mfh-links li{margin:0 0 7px}
.mfh-links small{display:block;color:#b5afa1;font-size:11.5px;line-height:1.45}
.mfh-foot{font-size:11px;color:#b5afa1;margin-top:16px}
@media(max-width:700px){
  .mfh-dr,.mfh-dr.left{left:0;right:0;width:auto;border:0;box-shadow:none}
  .mfh-body{padding:12px 16px 32px}
}
body.mfh-lock{overflow:hidden}

/* "How to use this page" */
.mfh-intro{margin:12px 0 14px}
.mfh-intro>summary{cursor:pointer;font-weight:700;font-size:14px;list-style:none;display:flex;align-items:center;gap:8px;color:var(--ink)}
.mfh-intro>summary::-webkit-details-marker{display:none}
.mfh-intro>summary::before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s;margin:0 3px 0 2px}
.mfh-intro[open]>summary::before{transform:rotate(45deg)}
.mfh-intro>summary small{font-weight:500;font-size:12px;color:var(--ink-3)}
.mfh-intro ul{margin:8px 0 6px;padding-left:20px;columns:2 340px;column-gap:28px;font-size:13px;line-height:1.55;color:var(--ink-2)}
.mfh-intro li{margin:0 0 5px;break-inside:avoid}
.mfh-intro p{margin:6px 0 2px;font-size:13px;color:var(--ink-2)}
.mfh-intro .mk-q{color:var(--ink)}

/* fixed-screen pages (winterlab): the intro is a drop-down from the top bar, so the map keeps its height */
.mfh-intro.mfh-drop{margin:0;position:relative}
.mfh-intro.mfh-drop>summary{font-size:12.5px;font-weight:600;border:1px solid var(--gold,#b8975a);border-radius:4px;padding:5px 10px 5px 8px;white-space:nowrap}
.mfh-intro.mfh-drop>.mfh-dropbody{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:min(580px,calc(100vw - 24px));background:var(--card);border:1px solid var(--line);border-radius:6px;box-shadow:0 12px 30px #14171c33;padding:10px 16px 12px}
.mfh-intro.mfh-drop ul{columns:auto}
@media(max-width:700px){.mfh-intro.mfh-drop{position:static}.mfh-intro.mfh-drop>.mfh-dropbody{left:12px;right:12px;width:auto;top:auto}}

/* glossary list at the foot of the page */
.mfh-gloss dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:4px 26px;margin:6px 0 4px}
.mfh-gloss dl>div{padding:7px 0;border-bottom:1px solid var(--line-2)}
.mfh-gloss dt{font-weight:650;font-size:13px}
.mfh-gloss dt a{color:var(--ink);text-decoration:none;border-bottom:1px dotted var(--ink-3)}
.mfh-gloss dt a:hover{color:var(--accent-2)}
.mfh-gloss dt small{font-weight:500;color:var(--ink-3);margin-left:5px}
.mfh-gloss dd{margin:2px 0 0;font-size:12.5px;line-height:1.5;color:var(--ink-2)}
.mfh-gloss .mfh-gnote{font-size:12px;color:var(--ink-3);margin:6px 0 0}
@media(pointer:coarse){.mfh-rel button{min-height:38px}.mk-q.mfh-q{width:26px;height:26px}}
@media print{.mfh-q,.mfh-mapq,.mfh-dr{display:none !important}}
