/* Al Moudira guest app, design by Matilda Fender */
/* fonts, served from this site (no requests to Google); SIL Open Font License, see fonts/ */
@font-face { font-family: 'Vollkorn'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/vollkorn-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Vollkorn'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/vollkorn-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #ffffff;
  --ink: #1c1c1c;
  --body: #4a4a4a;
  --muted: #6e6e6e;
  --faint: #8e8e8e;
  --line: #e6e3de;
  --surface: #f3f1ed;
  --sand: #f6f1e8;
  --nile: #163A51;
  --linen: #F2EBE4;
  --on-ink: #ffffff;
  --ok: #2f6b4f;
  --serif: Vollkorn, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
input, textarea { font: inherit; color: var(--ink); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* layout */
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; background: var(--bg); }
@media (min-width: 560px) { body { background: var(--surface); } #app { box-shadow: 0 0 0 0.5px var(--line), 0 20px 60px rgba(0,0,0,0.08); } }
.screen { padding: calc(18px + var(--safe-t)) 24px calc(var(--tabbar) + var(--safe-b) + 40px); }
.screen.no-tabs { padding-bottom: calc(40px + var(--safe-b)); }

/* type */
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
h1, .h1 { margin: 8px 0 0; font-family: var(--serif); font-size: 34px; line-height: 1.22; font-weight: 400; }
h2.section { margin: 40px 0 0; padding-bottom: 12px; border-bottom: 0.5px solid var(--line); font: 600 14px/1.3 var(--sans); letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); }
.lede { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--body); }
.small { font-size: 17px; line-height: 1.5; color: var(--muted); }
.note { margin: 16px 0 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.sun { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 17px; color: var(--body); font-variant-numeric: tabular-nums; }

/* rows */
.row { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 0.5px solid var(--line); width: 100%; }
.row .grow { flex: 1; min-width: 0; }
.row .val { color: var(--muted); text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.row .sub { display: block; font-size: 17px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.chev { flex-shrink: 0; width: 8px; height: 13px; }
.item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 0.5px solid var(--line); }
.item .t { width: 46px; flex-shrink: 0; font-size: 17px; color: var(--muted); font-variant-numeric: tabular-nums; }
.item .n { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.item .s { display: block; font-size: 17px; line-height: 1.45; color: var(--muted); margin-top: 5px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
.status.confirmed { color: var(--ok); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* cards, buttons */
.card { display: block; margin-top: 28px; border-radius: 12px; overflow: hidden; background: var(--surface); width: 100%; }
.card img { width: 100%; height: 170px; object-fit: cover; }
.card .in { padding: 18px 18px 20px; }
.card .title { margin-top: 8px; font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.card .line { margin-top: 6px; font-size: 17px; line-height: 1.5; color: var(--body); }
.btn { height: 50px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: default; }
.btn.soft { background: var(--surface); color: var(--ink); }
.pill { flex-shrink: 0; min-height: 44px; padding: 0 20px; border-radius: 22px; background: var(--ink); color: var(--on-ink); display: inline-flex; align-items: center; font-size: 17px; font-weight: 600; }
.pill.soft { background: var(--surface); color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 22px -24px 0; padding: 0 24px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips::after { content: ""; flex: 0 0 16px; }
.item.past { opacity: .45; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 10px 0 0; padding: 0; }
.chips.wrap::after { display: none; }
.chip { flex-shrink: 0; min-height: 44px; padding: 0 18px; border-radius: 22px; display: inline-flex; align-items: center; font-size: 17px; font-weight: 500; background: var(--surface); color: var(--ink); white-space: nowrap; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); color: var(--on-ink); }

/* discover */
.offer { padding: 26px 0 30px; border-bottom: 0.5px solid var(--line); }
.offer img, .offer .ph { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; }
.ph { background: var(--sand); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.offer .name { margin-top: 20px; font-family: var(--serif); font-size: 22px; line-height: 1.28; }
.offer .text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--body); }
.offer .foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offer .foot .l { font-size: 15px; line-height: 1.5; color: var(--muted); }
.offer .foot .l b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }

/* forms */
label.f { display: block; margin-top: 22px; font-size: 17px; color: var(--body); }
.input { display: block; width: 100%; margin-top: 8px; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 10px; background: var(--surface); font-size: 17px; }
textarea.input { min-height: 84px; resize: none; }
.radio { display: flex; align-items: center; gap: 14px; min-height: 52px; border-bottom: 0.5px solid var(--line); width: 100%; }
.radio .o { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--faint); flex-shrink: 0; display: grid; place-items: center; }
.radio[aria-checked="true"] .o { border-color: var(--ink); }
.radio[aria-checked="true"] .o::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.err { margin-top: 14px; color: #b3261e; font-size: 15px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tile { min-height: 84px; border-radius: 12px; background: var(--surface); padding: 14px; display: flex; flex-direction: column; justify-content: flex-start; }
.tile b { font-weight: 500; font-size: 16px; line-height: 1.3; }
.tile span { font-size: 15px; color: var(--muted); margin-top: 2px; }
.tile.done { background: var(--ink); color: var(--on-ink); }
.tile.done span { color: inherit; opacity: 0.8; }

/* segmented */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 10px; padding: 3px; margin-top: 20px; }
.seg a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 15px; font-weight: 500; }
.seg a[aria-current="page"] { background: var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }

/* menu */
.menu-row { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 0.5px solid var(--line); }
.menu-row .grow { flex: 1; }
.menu-row .p { color: var(--muted); font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: 10px; }
.round { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 18px; line-height: 1; }
.round.on { background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 600; }
.orderbar { position: sticky; bottom: calc(var(--tabbar) + var(--safe-b) + 12px); margin-top: 20px; }
.orderbar .btn { justify-content: space-between; padding: 0 20px; }

/* ask */
.thread { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.when { text-align: center; font-size: 15px; color: var(--muted); margin: 6px 0; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 17px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.bubble .who { display: block; font-size: 14px; color: var(--muted); margin-bottom: 3px; }
.bubble.bot { max-width: 88%; }
.bactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; white-space: normal; }
.bactions .pill { background: var(--bg); color: var(--ink); font-size: 16px; padding: 8px 16px; flex-shrink: 1; max-width: 100%; white-space: normal; line-height: 1.25; }
.bactions .pill.go { background: var(--ink); color: var(--on-ink); }
.typing { display: flex; gap: 5px; padding: 16px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: dot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; } }
.qlist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; white-space: normal; }
.qlist.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qbtn { min-height: 44px; padding: 10px 14px; border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 16px; font-weight: 500; text-align: left; line-height: 1.25; }
.notthis { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; margin-top: 8px; font-size: 15px; color: var(--muted); white-space: normal; }
.notthis .lk { min-height: 44px; font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.chip.front { background: var(--ink); color: var(--on-ink); }
@media (max-width: 330px) { .qlist.grid { grid-template-columns: 1fr; } }
.privacy { margin: 16px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
.front-link { display: block; margin: 12px auto 0; min-height: 44px; font-size: 16px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.composer { position: sticky; bottom: calc(var(--tabbar) + var(--safe-b)); background: var(--bg); padding: 12px 0; margin-top: 16px; }
.composer form { display: flex; gap: 8px; margin-top: 10px; }
.composer .input { margin: 0; border-radius: 22px; min-height: 44px; padding: 10px 16px; }
.send { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; flex-shrink: 0; }

/* tab bar */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(var(--tabbar) + var(--safe-b)); padding: 7px 0 var(--safe-b); border-top: 0.5px solid var(--line); background: #ffffff; box-shadow: 0 -6px 18px rgba(255,255,255,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); z-index: 20; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.tabbar a[aria-current="page"] { color: var(--nile); font-weight: 600; }
.tabbar svg { width: 25px; height: 25px; }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 40; opacity: 0; transition: opacity .2s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%); width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 16px 16px 0 0; z-index: 41; padding: 10px 24px calc(24px + var(--safe-b)); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.sheet.on { transform: translate(-50%, 0); }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.25; }
.sheet .lbl { margin-top: 22px; font-size: 17px; color: var(--body); }
.stepper { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 0.5px solid var(--line); }
.total { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0 6px; font-weight: 600; }
.taxnote { margin: 0; text-align: right; font-size: 15px; }
.close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }

/* request sent */
.done-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; margin: 30px auto 0; }
.progress { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 8px; margin-top: 26px; font-size: 15px; color: var(--muted); }
.progress .bar { height: 1px; background: var(--line); }
.progress .on { color: var(--ink); font-weight: 600; }

/* splash, sign in */
.splash { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.splash img.logo { width: 150px; }
.hero { width: 100%; height: 300px; object-fit: cover; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.photos img.wide { grid-column: span 2; aspect-ratio: 4 / 3; }
.map { margin-top: 18px; border-radius: 12px; background: var(--sand); }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 16px); transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 50; max-width: 90%; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
@media (prefers-reduced-motion: reduce) { .sheet, .scrim { transition: none; } }

/* image fade-in */
.iw { display: block; background: var(--sand); overflow: hidden; }
.iw img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.iw img.ld { opacity: 1; }
.iw.hero { height: 300px; }
.card .iw img { height: 170px; }
.offer .iw { border-radius: 10px; }
.offer .iw img { height: 200px; }
.iw.thumb { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; }
.photos .iw { border-radius: 8px; aspect-ratio: 3 / 4; }
.photos .iw.wide { grid-column: span 2; aspect-ratio: 4 / 3; }
.iw.mail { border-radius: 8px; height: 180px; }

/* splash transition */
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
#app.enter { animation: fadein .5s ease both; }

/* tick animation */
.tick { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s .1s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.after-tick { animation: fadein .35s .55s ease both; }

/* collapsing title */
.topbar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(44px + var(--safe-t)); padding-top: var(--safe-t); background: #ffffff; border-bottom: 0.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; z-index: 25; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.topbar.on { opacity: 1; }
h1.big { transform-origin: left bottom; transition: opacity .15s linear; }

@media (prefers-reduced-motion: reduce) {
  .iw img { transition: none; }
  #app.enter, .after-tick { animation: none; }
  .tick { animation: none; stroke-dashoffset: 0; }
  .topbar, h1.big { transition: none; }
}

/* text buttons */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 2px 0 0 -4px; padding: 0 12px 0 4px; font-size: 17px; font-weight: 500; color: var(--ink); }
.close-text { min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--surface); font-size: 16px; font-weight: 500; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.sheet-close { position: absolute; top: 12px; right: 16px; }
.send-text { min-height: 44px; padding: 0 20px; border-radius: 22px; background: var(--ink); color: var(--on-ink); font-size: 17px; font-weight: 600; flex-shrink: 0; }

/* discover rows */
.dhead { margin-top: 30px; }
.subhead { margin: 30px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.orow { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 10px 0; border-bottom: 0.5px solid var(--line); }
.orow.text { min-height: 72px; }
.iw.othumb { width: 62px; height: 62px; border-radius: 10px; flex-shrink: 0; }
.otext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; min-height: 44px; justify-content: center; }
.oname { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.oprice { font-size: 17px; line-height: 1.35; color: var(--muted); }

/* home screen hint */
.homenote { margin-top: 22px; display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 12px; background: var(--sand); }
.homenote div { flex: 1; font-size: 16px; line-height: 1.45; color: var(--body); }
.homenote b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* map thumbnail */
.mapbtn { display: block; position: relative; margin-top: 18px; }
.mapbtn .map { margin-top: 0; }
.maptag { position: absolute; right: 12px; bottom: 12px; min-height: 36px; padding: 0 14px; border-radius: 18px; background: rgba(255,255,255,.92); display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; }
.mapview { margin-top: 18px; overflow: auto; border-radius: 12px; background: var(--sand); -webkit-overflow-scrolling: touch; }
.mapview svg, .mapview img { display: block; width: 100%; height: auto; }
.mapview.zoom svg, .mapview.zoom img { width: 220%; }

/* narrow screens / large text */
.orow { flex-wrap: wrap; }
.otext { flex: 1 1 150px; }
.orow .pill { margin-left: auto; }
.row { flex-wrap: wrap; }
.row .grow { flex: 1 1 150px; }
.row .val { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.homenote { flex-wrap: wrap; }
.homenote div { flex: 1 1 180px; }
.homenote svg, .homenote span { max-width: 100%; }
.otext { flex-basis: 110px; }
@media (max-width: 330px) {
  .iw.othumb { display: none; }
  .tabbar a { font-size: 11px; letter-spacing: -0.2px; }
  .screen { padding-left: 18px; padding-right: 18px; }
  .chips:not(.wrap) { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .tabbar a span { text-align: center; line-height: 1.1; }
}

/* documents */
.olink { flex-basis: 100%; min-height: 44px; display: flex; align-items: center; padding-left: 76px; font-size: 17px; font-weight: 500; color: var(--nile); text-decoration: underline; text-underline-offset: 3px; }
.iw.othumb.doc { box-shadow: 0 0 0 0.5px var(--line); }
.iw.othumb.doc img { object-fit: cover; object-position: top; }
.docpages { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.iw.docpage { width: 100%; border-radius: 6px; box-shadow: 0 0 0 0.5px var(--line); }
.iw.docpage img { object-fit: contain; }

/* map + key */
.iw.mapimg { width: 100%; border-radius: 12px; }
.mapkey { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 16px; line-height: 1.35; color: var(--body); }
.mapkey li { display: flex; align-items: flex-start; gap: 8px; }
.mapkey .num { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--nile); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; margin-top: -1px; }

/* fullscreen map */
.mapfull { position: fixed; inset: 0; z-index: 60; background: var(--linen); display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; }
.mapbar { display: flex; justify-content: space-between; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 10px; }
.mapstage { flex: 1; min-height: 0; overflow: hidden; touch-action: none; display: flex; align-items: center; justify-content: center; cursor: grab; }
.mapstage img { max-width: 100%; max-height: 100%; transform-origin: center center; user-select: none; -webkit-user-drag: none; will-change: transform; }
.maphint { text-align: center; font-size: 15px; color: var(--muted); margin: 6px 0 calc(10px + var(--safe-b)); }
.mapkeysheet { max-height: 42vh; overflow-y: auto; background: var(--bg); border-radius: 16px 16px 0 0; padding: 6px 20px calc(16px + var(--safe-b)); box-shadow: 0 -6px 24px rgba(0,0,0,.08); }
@media (max-width: 330px) { .mapkey { grid-template-columns: 1fr; } .olink { padding-left: 0; } }
