/* 走拍模式 (platform-share.mjs walkContent, walk-mode.js): the camera full screen with one shutter, like a phone's own
   camera; the private 走拍相簿 as a plain column. Colours use the site's dark tokens where it has them (theme.css). */
.wk { --wk-blue:#006bff; --wk-ink:var(--lb-text,#101113); --wk-muted:var(--lb-text-2,#5f6672); --wk-line:var(--lb-line,#eef0f3); position:relative; color:var(--wk-ink); font-size:14px; }
.wk [hidden] { display:none !important; }
.wk .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.walk-body .ag-header, .walk-body .ag-footer, .walk-body .bottom-nav, .walk-body .ag-header-space { display:none !important; }
.walk-body.aggregate-body .page-shell { padding-bottom:0; }

/* The camera: the picture fills the screen; ✕ and the globe at the top, the last shot and the shutter at the bottom. */
.wk-cam { position:fixed; inset:0; z-index:60; overflow:hidden; background:#000; color:#fff; }
.wk-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.wk-flash .wk-cam::after { content:""; position:absolute; inset:0; background:#fff; opacity:.55; pointer-events:none; }
.wk-round { position:absolute; top:calc(12px + env(safe-area-inset-top)); z-index:2; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:rgb(0 0 0 / 38%); color:#fff; cursor:pointer; }
.wk-close { left:12px; }
.wk-public { right:12px; }
.wk-public .wk-on, .wk-public[aria-pressed="true"] .wk-off { display:none; }
.wk-public[aria-pressed="true"] { background:var(--wk-blue); }
.wk-public[aria-pressed="true"] .wk-on { display:grid; }
.wk-public .wk-off, .wk-public .wk-on { place-items:center; }
.wk-round:focus-visible, .wk-shutter:focus-within, .wk-shutter:focus-visible, .wk-last:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.wk-note { position:absolute; top:calc(68px + env(safe-area-inset-top)); left:50%; z-index:2; width:max-content; max-width:calc(100% - 32px); margin:0; padding:8px 14px; border-radius:18px; background:rgb(0 0 0 / 62%); font-size:14px; line-height:1.5; text-align:center; transform:translateX(-50%); }
.wk-note a { color:#9cc4ff; font-weight:700; }
.wk-bar { position:absolute; right:0; bottom:0; left:0; z-index:2; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:20px 24px calc(28px + env(safe-area-inset-bottom)); background:linear-gradient(transparent, rgb(0 0 0 / 45%)); }
.wk-shutter { position:relative; display:block; width:76px; height:76px; padding:0; border:4px solid #fff; border-radius:50%; background:rgb(255 255 255 / 85%); box-shadow:inset 0 0 0 4px #000; cursor:pointer; }
.wk-shutter:active { transform:scale(.94); }
.wk-input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.wk-last { position:relative; justify-self:start; display:block; width:48px; height:48px; border:2px solid #fff; border-radius:10px; background:rgb(255 255 255 / 18%); }
.wk-last img { width:100%; height:100%; border-radius:8px; object-fit:cover; }
.wk-count { position:absolute; top:-8px; right:-8px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:var(--wk-blue); color:#fff; font-size:12px; line-height:20px; text-align:center; }

/* 走拍相簿 */
.wk-album { max-width:720px; margin:0 auto; padding-bottom:40px; background:var(--lb-bg,#fff); min-height:100vh; }
.wk-head { position:sticky; top:0; z-index:3; display:grid; grid-template-columns:52px minmax(0,1fr) 52px; align-items:center; height:52px; padding:0 4px; border-bottom:1px solid var(--wk-line); background:var(--lb-bg,#fff); }
.wk-head h1 { margin:0; font-size:17px; font-weight:700; text-align:center; }
.wk-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; color:var(--wk-ink); }
.wk-lead, .wk-status { margin:12px 16px 0; color:var(--wk-muted); }
.wk-days { margin:0; padding:0; list-style:none; }
.wk-day { padding:16px 0 4px; }
.wk-day-head { display:flex; align-items:center; gap:8px; padding:0 16px; }
.wk-day-head h2 { margin:0; font-size:16px; font-weight:700; }
.wk-day-count { flex:1; color:var(--wk-muted); }
.wk-day-note { margin:6px 16px 0; color:var(--wk-muted); font-size:13px; }
.wk-day-note:empty { display:none; }
.wk-pill { min-height:36px; padding:0 14px; border:1px solid var(--wk-line); border-radius:18px; background:var(--lb-surface,#fff); color:var(--wk-ink); font:inherit; font-weight:700; cursor:pointer; }
.wk-pill.wk-go { border-color:var(--wk-blue); background:var(--wk-blue); color:#fff; }
.wk-pill:disabled { opacity:.55; }
.wk-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px; margin:10px 0 0; padding:0; list-style:none; }
.wk-tile { position:relative; display:block; width:100%; aspect-ratio:1; padding:0; border:0; background:var(--wk-line); cursor:pointer; }
.wk-tile img { width:100%; height:100%; object-fit:cover; }
.wk-tile[data-published]::after { content:""; position:absolute; top:6px; right:6px; width:10px; height:10px; border:2px solid #fff; border-radius:50%; background:var(--wk-blue); }
.wk-viewer { width:min(100vw,720px); max-width:100vw; max-height:100dvh; padding:0; border:0; background:#000; color:#fff; }
.wk-viewer::backdrop { background:rgb(0 0 0 / 85%); }
.wk-viewer img { display:block; width:100%; max-height:78dvh; object-fit:contain; }
.wk-viewer-bar { display:flex; justify-content:flex-end; gap:8px; padding:12px; }
.wk-viewer-bar .wk-pill:not(.wk-go) { border-color:rgb(255 255 255 / 30%); background:transparent; color:#fff; }
.wk-viewer-note { margin:0 12px 12px; color:#d5dae1; }
.wk-viewer-note:empty { display:none; }
.wk-viewer-note a, .wk-day-note a { color:var(--lb-link,var(--wk-blue)); font-weight:700; }
@media (prefers-reduced-motion:reduce) { .wk-shutter:active { transform:none; } }

/* 學生團 organiser (group-posts.ts): the tick that the students agreed, before 公開這天 goes again. */
.wk-consent { display:flex; gap:8px; align-items:flex-start; }

/* 走拍週記's page (walk-week.js): the site's own header and bar stay; a plain column with the map and the days. */
.ww-page { max-width:720px; margin:0 auto; padding:0 16px 32px; }
.ww-page .wk-head { position:static; }
/* 「第 48 週」 large, the dates under it, ‹ › to the side; then the week's row of day squares, sideways on a phone. */
.ww-top { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:14px 0 12px; }
.ww-week { margin:0; font-size:40px; font-weight:800; line-height:1.1; letter-spacing:-.01em; }
.ww-range { margin:4px 0 0; color:var(--wk-muted); font-size:14px; }
.ww-nav { display:flex; gap:8px; }
.ww-step { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:var(--lb-surface,#eef1f5); color:var(--wk-ink); }
.ww-step:focus-visible { outline:2px solid var(--wk-blue); outline-offset:2px; }
.ww-strip { display:flex; gap:4px; margin:0 -16px 16px; padding:0 16px; overflow-x:auto; list-style:none; scroll-snap-type:x proximity; scrollbar-width:none; }
.ww-strip::-webkit-scrollbar { display:none; }
.ww-strip > li { flex:0 0 78px; scroll-snap-align:start; }
.ww-tile { position:relative; display:grid; place-content:center; justify-items:center; height:104px; overflow:hidden; border-radius:12px; background:var(--lb-surface,#eef1f5); color:var(--wk-muted); text-decoration:none; line-height:1.15; }
.ww-tile-month, .ww-tile-day { font-size:12px; }
.ww-tile-date { font-size:26px; font-weight:700; }
.ww-tile[data-today] { box-shadow:inset 0 0 0 2px var(--wk-ink); }
.ww-tile.ww-add { color:var(--wk-ink); }
.ww-tile.has-shots { color:#fff; text-shadow:0 1px 3px rgb(0 0 0 / 45%); }
.ww-tile.has-shots img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ww-tile.has-shots::after { content:""; position:absolute; inset:0; background:rgb(0 0 0 / 28%); }
.ww-tile.has-shots > span { position:relative; z-index:1; }
.ww-tile.has-shots[data-today] { box-shadow:none; outline:2px solid var(--wk-ink); outline-offset:-2px; }
.ww-tile-count { position:absolute !important; top:6px; right:6px; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:rgb(0 0 0 / 55%); font-size:12px; font-weight:700; line-height:20px; text-align:center; text-shadow:none; }
.ww-tile:focus-visible { outline:2px solid var(--wk-blue); outline-offset:2px; }
.ww-day { scroll-margin-top:72px; }
@media (min-width:600px) { .ww-strip { margin:0 0 16px; padding:0; } .ww-strip > li { flex:1 0 78px; } }
.ww-share { margin:0 0 14px; padding:12px; border:1px solid var(--wk-line); border-radius:14px; }
.ww-share h2 { margin:0 0 8px; font-size:15px; }
.ww-seg { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; padding:3px; border-radius:12px; background:var(--lb-surface,#eef1f5); }
.ww-choice { min-height:40px; padding:0 6px; border:0; border-radius:9px; background:transparent; color:var(--wk-ink); font:inherit; font-weight:600; cursor:pointer; }
.ww-choice[aria-checked="true"] { background:var(--lb-bg,#fff); color:var(--wk-blue); box-shadow:0 1px 3px rgb(0 0 0 / 12%); }
.ww-choice:disabled { opacity:.45; cursor:default; }
.ww-choice:focus-visible { outline:2px solid var(--wk-blue); outline-offset:1px; }
.ww-note { margin:8px 0 0; color:var(--wk-muted); font-size:13px; line-height:1.5; }
.ww-note a { color:var(--lb-link,#006bff); }
.ww-share .wk-pill { display:inline-flex; align-items:center; gap:6px; margin-top:10px; }
.ww-map { position:relative; height:220px; margin:0 0 6px; overflow:hidden; border-radius:14px; background:var(--lb-surface,#f3f5f8); color:var(--wk-blue); }
.ww-map > svg { display:block; width:100%; height:100%; }
.ww-map-canvas { width:100%; height:100%; }
.ww-days { margin:12px 0 0; padding:0; list-style:none; }
.ww-day h2 { margin:18px 0 8px; font-size:16px; }
.ww-day h2 small { color:var(--wk-muted); font-size:13px; font-weight:400; }
/* Each day one row of its photos, newest first, to swipe sideways. */
.ww-grid { display:flex; gap:3px; margin:0 -16px; padding:0 16px; overflow-x:auto; list-style:none; scroll-snap-type:x proximity; scrollbar-width:none; }
.ww-grid::-webkit-scrollbar { display:none; }
.ww-grid > li { flex:0 0 42%; max-width:200px; scroll-snap-align:start; }
.ww-shot { display:block; width:100%; padding:0; border:0; border-radius:10px; overflow:hidden; background:var(--lb-surface,#e9edf2); cursor:zoom-in; }
.ww-shot img { display:block; width:100%; height:auto; aspect-ratio:3 / 4; object-fit:cover; }
.ww-shot:focus-visible { outline:2px solid var(--wk-blue); outline-offset:1px; }
.ww-empty { color:var(--wk-muted); }
@media (min-width:900px) { .ww-map { height:320px; } }
@media (min-width:600px) { .ww-grid { margin:0; padding:0; } }

/* The viewer: the photo full screen; a tap anywhere on it is the next one. 留言 and the answer to its taker sit below. */
.ww-viewer { position:fixed; inset:0; width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; padding:0; overflow:hidden; border:0; background:#000; color:#fff; }
.ww-viewer[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.ww-viewer::backdrop { background:#000; }
.ww-v-top { display:flex; align-items:center; gap:8px; padding:calc(8px + env(safe-area-inset-top)) 8px 8px; }
.ww-v-when { margin:0; font-size:14px; }
.ww-v-when span { margin-left:6px; color:#c9ced6; }
.ww-v-close { display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:transparent; color:inherit; cursor:pointer; }
/* The whole photo fits the space between the top and the bottom, on a phone and on a wide screen (the owner, 2026-11-26:
   「照片點進去是直接看照片沒有自適應全螢幕」). */
.ww-v-stage { position:relative; display:block; min-height:0; overflow:hidden; padding:0; border:0; background:transparent; cursor:pointer; touch-action:pan-y; -webkit-user-select:none; user-select:none; }
.ww-v-stage img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; pointer-events:none; }
.ww-v-bottom { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 12px calc(12px + env(safe-area-inset-bottom)); }
.ww-v-talk { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 14px; border:1px solid rgb(255 255 255 / 35%); border-radius:22px; background:transparent; color:#fff; font:inherit; font-weight:600; cursor:pointer; }
.ww-v-reply { display:flex; flex:1 1 220px; align-items:center; gap:6px; min-height:44px; padding:0 4px 0 16px; border:1px solid rgb(255 255 255 / 35%); border-radius:22px; }
.ww-v-reply input { flex:1; min-width:0; border:0; background:transparent; color:#fff; font:inherit; font-size:16px; outline:none; }
.ww-v-reply input::placeholder { color:#c9ced6; }
.ww-v-reply button { display:grid; place-items:center; width:38px; height:38px; padding:0; border:0; border-radius:50%; background:var(--wk-blue); color:#fff; cursor:pointer; }
.ww-v-note { flex-basis:100%; margin:0; color:#d5dae1; font-size:13px; }
.ww-v-note:empty { display:none; }
.ww-v-note a { color:#9cc4ff; font-weight:700; }
.ww-v-talk:focus-visible, .ww-v-close:focus-visible, .ww-v-reply:focus-within { outline:2px solid #fff; outline-offset:2px; }
.ww-v-stage:focus-visible { outline:2px solid rgb(255 255 255 / 30%); outline-offset:-2px; }
.ww-v-panel { position:fixed; right:0; bottom:0; left:0; max-height:70dvh; overflow:auto; padding:0 16px calc(16px + env(safe-area-inset-bottom)); border-radius:16px 16px 0 0; background:var(--lb-bg,#fff); color:var(--wk-ink); }
.ww-v-panel-head { position:sticky; top:0; display:flex; align-items:center; justify-content:space-between; padding:8px 0; background:inherit; }
.ww-v-panel-head h2 { margin:0; font-size:16px; }
.ww-v-panel .cm-comments { margin-top:0; }
@media (min-width:900px) { .ww-v-panel { left:auto; top:0; width:400px; max-height:none; border-radius:0; } }
/* 上傳照片 on one's own week, and 分享 in the viewer asking 朋友／公開 for a week still 只有我. */
.ww-upload { margin:0 0 12px; }
.ww-upload-pick { display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.ww-upload-pick:focus-within { outline:2px solid var(--wk-blue); outline-offset:2px; }
.ww-upload .ww-note:empty { display:none; }
.ww-v-who { display:flex; flex-basis:100%; flex-wrap:wrap; align-items:center; gap:8px; font-size:14px; }
