/* pk-route-focus.css — 找路全頁模式（專注版面）第一期（2026-10-24；map r1608）
   殼照 #baro-page（.bp-head／.bp-back／.bp-title 住在 map.html 的主樣式表，這裡直接用）。
   🔴 本檔不寫 body 前綴（放大鏡鏡內 body.x 不生效，memory project_css_cascade_traps 坑十二）：暗化一律裸 .map-dim。
   🔴 字級一律 var(--fs-N, Npx)；大字級的差異寫成 --fsc-rtf-* 變數（:root 定標準、html.pk-fs-large{} 只定義變數）。
   🔴 第一區是真的 #rt-go-chip 搬進來（同一個 DOM），這裡只改它的「殼」：靜態、整寬、不限高、兩面同時顯示；文案與數字一個字不碰。 */
:root { --fsc-rtf-big: 34px; --fsc-rtf-big-lh: 38px; --fsc-rtf-of: 17px; }
html.pk-fs-large { --fsc-rtf-big: 38px; --fsc-rtf-big-lh: 42px; --fsc-rtf-of: 19px; }
/* 第三期矮螢幕與大字級（PLAN-v2 §2.1）：剖面高度、塞不下時的小地圖尺寸、狀態列要不要 sticky，全寫成變數（同上：不寫 html.pk-fs-large X{}） */
:root { --rtf-prof-n: 136px; --rtf-prof-fit: 120px; --rtf-prof-dock: 110px; --rtf-pip-fit: 140px; --rtf-status-pos: static; --rtf-status-lc: transparent; --rtf-status-lc-d: transparent; }
html.pk-fs-large { --rtf-prof-n: 124px; --rtf-prof-fit: 112px; --rtf-pip-fit: 160px; --rtf-status-pos: sticky; --rtf-status-lc: rgba(174, 189, 212, .55); --rtf-status-lc-d: rgba(255, 255, 255, .14); }

#rtfull-page { position: fixed; inset: 0; z-index: 900; display: none; background: var(--pk-mist, #F4F1EC); overflow-y: auto; -webkit-overflow-scrolling: touch; }
#rtfull-page.show { display: block; }
.map-dim #rtfull-page { background: #171B26; }
#rtfull-page .rtf-body { max-width: 560px; margin: 0 auto; padding: 8px 12px 10px; }   /* 底部安全區由狀態列自己帶（審查 3-2：狀態列 padding-bottom:env(safe-area-inset-bottom)）；第一期在這裡寫 env＋34，iPhone 上等於算兩次 */

/* ── 第一區＝搬進來的找路資訊卡 ───────────────────────────── */
#rtfull-page #rt-go-chip { position: static; padding: 0; visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: none; }
#rtfull-page #rt-go-chip .ri-frame { position: relative; isolation: isolate; max-height: none; border-radius: 16px; }
#rtfull-page #rt-go-chip .ri-side { display: none; }                 /* 收起／全頁兩顆：全頁裡沒有事做（返回在標題列與狀態列） */
#rtfull-page #rt-go-chip .ri-content { overflow: visible; padding: 18px 12px 8px; }   /* 頂端留日出日落那一列（.rtf-edge） */
/* 兩面同時顯示（創辦人第六輪：找路卡與剖面卡融合成一格）：摘要的路線條、下一處在上，剖面在下；剖面那一面重複的上端兩行藏掉（同一份資料） */
#rtfull-page #rt-go-chip #ri-summary[hidden], #rtfull-page #rt-go-chip #rt-elev[hidden] { display: block !important; }   /* 卡片 CSS 的 `#rt-go-chip [hidden]{display:none!important}` 要用 !important 才蓋得掉；兩面在全頁同時顯示 */
#rtfull-page.rtf-no-prof #rt-go-chip #rt-elev, #rtfull-page.rtf-no-prof #rt-go-chip #rt-elev[hidden], #rtfull-page.rtf-no-prof .rtf-chips, #rtfull-page.rtf-no-prof .rtf-sel { display: none !important; }   /* 這條路線開不了剖面（太長、沒高度）：不畫上一條路線留下的圖（map.html rtfProf；審查 🟡14） */
#rtfull-page #rt-go-chip #rt-elev .ri-heading, #rtfull-page #rt-go-chip #rt-elev .ri-gains, #rtfull-page #rt-go-chip #rt-elev .ri-totals { display: none; }
#rtfull-page #rt-go-chip #ri-summary .ri-mode-control { display: none; }   /* 「看剖面」鈕：剖面已經在同一張卡下面 */
#rtfull-page #rt-go-chip #rt-elev { border-top: 1px solid var(--line, rgba(174,189,212,.5)); margin-top: 6px; padding-top: 8px; }
#rtfull-page #rt-go-chip .ri-primary strong { font-size: var(--fsc-rtf-big, 34px); line-height: var(--fsc-rtf-big-lh, 38px); }
#rtfull-page #rt-go-chip .ri-of { font-size: var(--fsc-rtf-of, 17px); }
#rtfull-page #rt-go-chip .ri-next b { font-size: var(--fs-16, 16px); }
/* 剖面高度（審查 3-2／3-18、第三期矮螢幕）：標準 136、大字級 124；直向 R／L 塞不下 120（大字級 112）；直向底部固定（D）110。
   🔴 要 !important：卡片模組每次更新查看點都用行內樣式把畫布寫成 116（pk-route-info.js 的 readout()）——第一期只寫 height:136px，實際一直是 116。
   查看點讀數的「距 A」那一行，卡片模組放在 top＝116−字高；這裡改成貼底（畫布多高都在最下面）。r1629 畫布單指縱向仍可捲動頁面（touch-action:pan-y）。 */
#rtfull-page { --rtf-prof: var(--rtf-prof-n, 136px); }
#rtfull-page.rtf-fit-prof { --rtf-prof: var(--rtf-prof-fit, 120px); }
#rtfull-page[data-pip="D"]:not(.rtf-two) { --rtf-prof: var(--rtf-prof-dock, 110px); }
#rtfull-page #rt-go-chip #rt-elev-canvas { height: var(--rtf-prof, 136px) !important; touch-action: pan-y; }
#rtfull-page #rt-go-chip #ri-read-label { top: auto !important; bottom: 0; }
#rtfull-page[data-pip="D"]:not(.rtf-two) #rt-go-chip #ri-readout { display: none !important; }   /* §5：D 態 110 高的剖面不放查看點讀數（讀數框會被擠到軸標下面）；黑方塊照畫、讀屏照念 */
#rtfull-page #rt-go-chip.ri-legend-open .rtf-wash, #rtfull-page #rt-go-chip.ri-legend-open .rtf-edge { display: none; }   /* 圖例蓋上來時底色與時刻不留在後面 */

/* ── 日光底色（A 案）：米色＝日出到日落；只到 A—B 路線條上緣（--rtf-wh 由 host 量 #ri-bar 的頂邊）就垂直漸淡到 0；
      日出那道邊羽化 16 px＋1 px 界線（審查 3-24）。位置與寬度是卡寬的比例（host 算好寫進 --rtf-wl／--rtf-ww）；錨變化 400 ms 緩動（審查 3-14）。 */
#rtfull-page .rtf-wash { position: absolute; z-index: -1; top: 0; left: var(--rtf-wl, 0%); width: var(--rtf-ww, 0%); height: var(--rtf-wh, 0px);
  background: linear-gradient(to right, rgba(242,238,234,0) 0, var(--rtf-wash, #f2eeea) 16px); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 36px), transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 36px), transparent 100%);
  transition: left .4s ease, width .4s ease; }
#rtfull-page .rtf-wash.no-rise { background: var(--rtf-wash, #f2eeea); }   /* 左緣不是日出（夜裡那一段從卡左緣開始）：不羽化、沒有界線 */
#rtfull-page .rtf-wash::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: calc(100% - 36px); background: rgba(74,81,104,.3); }
#rtfull-page .rtf-wash.no-rise::after { display: none; }
.map-dim #rtfull-page .rtf-wash { --rtf-wash: #33302f; }
.map-dim #rtfull-page .rtf-wash::after { background: rgba(198,207,223,.35); }
#rtfull-page .rtf-edge { position: absolute; z-index: 1; left: 12px; right: 12px; top: 3px; height: 15px; pointer-events: none; font-size: var(--fs-11, 11px); font-weight: 700; line-height: 1; color: var(--muted, #4A5168); font-variant-numeric: tabular-nums; }
#rtfull-page .rtf-sun { position: absolute; top: 0; display: flex; align-items: center; gap: 3px; white-space: nowrap; transform: translateX(-50%); }
#rtfull-page .rtf-sun.is-l { left: 0; transform: none; }
#rtfull-page .rtf-sun.is-r { left: auto; right: 0; transform: none; }
#rtfull-page .rtf-sun svg { width: 14px; height: 14px; flex: none; color: var(--up, #a56b45); }   /* 審查 3-10：太陽 14 px、圓心實填、光芒 3、色用 --up（卡片的上坡色） */
#rtfull-page .rtf-sun.is-r svg { margin-right: -19px; }   /* 審查 3-11：卡外那顆被卡緣切半（半顆＝在外面）；只寫時刻、沒有 › */
#rtfull-page .rtf-sun.is-l svg { margin-left: -19px; }

/* ── 這段坡條（PLAN-v2 §2.3；審查 3-15／3-16）──────────────── */
#rtfull-page .rtf-seg { padding: 6px 0 2px; }
#rtfull-page .rtf-seg[hidden] { display: none; }
#rtfull-page .rtf-seg-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
#rtfull-page .rtf-seg-t { flex: none; font-size: var(--fs-11, 11px); font-weight: 700; color: var(--muted, #4A5168); }
#rtfull-page .rtf-seg-v { min-width: 0; text-align: right; font-size: var(--fs-15, 15px); font-weight: 750; color: var(--ink, #1E2330); font-variant-numeric: tabular-nums; }
#rtfull-page .rtf-seg-of { font-size: var(--fs-12, 12px); font-weight: 600; color: var(--muted, #4A5168); }
#rtfull-page .rtf-band { position: relative; height: 9px; margin: 5px 0 2px; }
#rtfull-page .rtf-cell { position: absolute; top: 1px; height: 7px; border-radius: 2px; background: var(--c, rgba(174,189,212,.5)); }
#rtfull-page .rtf-cell.is-past { top: 2.5px; height: 4px; opacity: .7; }   /* 身後的格矮而淡 */
#rtfull-page .rtf-cell.is-none { background: repeating-linear-gradient(135deg, rgba(174,189,212,.55) 0 2px, transparent 2px 5px); }   /* 坡度不知道（直線段、沒有高度）：斜紋，不上坡度色 */
#rtfull-page .rtf-band .rtf-you { position: absolute; top: -1.5px; width: 12px; height: 12px; border-radius: 50%; background: var(--you, #4A8B8D); border: 2px solid #fff; box-sizing: border-box; transform: translateX(-50%); }
#rtfull-page .rtf-band .rtf-next { position: absolute; top: -2.5px; transform: translateX(-50%); }
#rtfull-page .rtf-band .rtf-next .ri-stop { position: static; transform: none; }   /* 借卡片路線條的徽章畫法（.ri-via），那邊是絕對定位在條上方；這裡由 .rtf-next 定位 */
#rtfull-page .rtf-band .rtf-next .ri-via::after { display: none; }

/* ── 地標列（剖面正下方，同一把尺；審查 3-1）──────────────── */
#rtfull-page .rtf-lane { position: relative; height: 40px; margin: 2px 0 0; }
#rtfull-page .rtf-lane[hidden] { display: none; }
#rtfull-page .rtf-lane-line { position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: rgba(174,189,212,.9); }
#rtfull-page .rtf-lane-ahead { position: absolute; top: 16.5px; height: 2px; background: var(--muted, #7f8ca3); opacity: .75; }   /* 前粗後細：● 之後那一段粗 */
#rtfull-page .rtf-lm { position: absolute; top: 9px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap; }
#rtfull-page .rtf-lm b { font-size: var(--fs-11, 11px); font-weight: 700; color: var(--ink, #1E2330); font-variant-numeric: tabular-nums; line-height: 1; min-height: 11px; }
#rtfull-page .rtf-lm .rtf-nm { position: absolute; top: -13px; font-size: var(--fs-10, 10px); font-weight: 700; color: var(--ink, #1E2330); }
#rtfull-page .rtf-lm.is-A, #rtfull-page .rtf-lm.is-B { top: 0; }
#rtfull-page .rtf-lm.is-A { transform: none; align-items: flex-start; }
#rtfull-page .rtf-lm.is-B { transform: translateX(-100%); align-items: flex-end; }
#rtfull-page .rtf-lm .rtf-end { font-size: var(--fs-10, 10px); font-weight: 700; color: var(--muted, #4A5168); line-height: 1; }
#rtfull-page .rtf-lm .rtf-tick { width: 2px; height: 10px; background: var(--ink, #1E2330); }
#rtfull-page .rtf-lm .rtf-g { display: block; width: 16px; height: 16px; }
#rtfull-page .rtf-lm .rtf-g-you { width: 12px; height: 12px; border-radius: 50%; background: var(--you, #4A8B8D); border: 2px solid #fff; box-sizing: border-box; margin: 2px 0; }
#rtfull-page .rtf-lm .rtf-g svg { width: 16px; height: 16px; display: block; }
#rtfull-page .rtf-lm .ri-stop { position: static; transform: none; }   /* 經過點／打卡點借卡片路線條的畫法（.ri-via／.ri-ck），只改成靜態排版 */
#rtfull-page .rtf-lm .ri-via::after { display: none; }   /* 路線條上那截接到條的小豎線：徽章改成靜態之後它會落到數字底下（真畫面拍到） */
#rtfull-page .rtf-lane-unit { position: absolute; left: 0; bottom: 0; font-size: var(--fs-10, 10px); color: var(--muted, #4A5168); line-height: 1; }

/* ── 狀態列（兩行；創辦人第七輪）──────────────────────────── */
#rtfull-page .rtf-status { display: flex; flex-direction: column; gap: 4px; margin: 0 -12px; padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 2px);
  font-size: var(--fs-11-5, 11.5px); color: var(--pk-dusk, #4A5168); white-space: nowrap;
  position: var(--rtf-status-pos, static); bottom: 0; z-index: 3; background: var(--pk-mist, #F4F1EC); box-shadow: 0 -1px 0 var(--rtf-status-lc, transparent); }
  /* 底部安全區住這裡（審查 3-2）。大字級 sticky 在底部（§2.1：整頁塞不下時狀態至少看得到）；底色＝頁面底色，不 sticky 時看不出來。
     左右 −12 px 撐滿內容區、再補回 14 px：字的位置與第一期相同（12＋2） */
#rtfull-page .rtf-r1, #rtfull-page .rtf-r2 { display: flex; align-items: center; gap: 0 8px; min-width: 0; }
#rtfull-page .rtf-r2 { padding-left: 4px; min-height: 18px; }
#rtfull-page .rtf-sp { flex: 1; }
#rtfull-page .rtf-status b { color: var(--pk-ink, #1E2330); font-weight: 650; }
#rtfull-page .rtf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pk-sky, #AEBDD4); display: inline-block; margin-right: 4px; vertical-align: 1px; }
#rtfull-page .rtf-dot.live { background: var(--pk-summit, #4A8B8D); }
#rtfull-page .rtf-dot.rc-warn { background: var(--pk-amber, #C4845A); }
#rtfull-page .rtf-pill { position: relative; flex: none; border: 1px solid rgba(174,189,212,.6); border-radius: 14px; padding: 3px 9px; background: #fff; font: inherit; font-weight: 650; color: var(--pk-ink, #1E2330); cursor: pointer; }
#rtfull-page .rtf-pill::before { content: ''; position: absolute; inset: -9px -4px; }   /* 命中區 44（審查 3-19） */
#rtfull-page .rtf-pill.is-on { background: var(--pk-night, #1E2330); color: #fff; border-color: var(--pk-night, #1E2330); }
#rtfull-page .rtf-pill:disabled { opacity: .55; cursor: default; }
#rtfull-page .rtf-wake-why { font-size: var(--fs-10-5, 10.5px); color: var(--pk-dusk, #4A5168); }
#rtfull-page .rtf-wake-why:empty { display: none; }
.map-dim #rtfull-page .rtf-status { color: #C6CFDF; background: #171B26; box-shadow: 0 -1px 0 var(--rtf-status-lc-d, transparent); }
.map-dim #rtfull-page .rtf-status b { color: #E9EDF5; }
.map-dim #rtfull-page .rtf-pill { background: #232937; color: #E9EDF5; border-color: rgba(255,255,255,.18); }
.map-dim #rtfull-page .rtf-pill.is-on { background: #C6CFDF; color: #1E2330; border-color: #C6CFDF; }

/* ── 左欄找路資訊鈕的啟用態與長按環（住在 map.html 的 #map-info-btn；常駐、單擊收起／展開、長按＝全頁）──
      環用 ::after：::before 已被「有路線」的小點占用（r1372）；.zoom-btn 要 overflow:visible 環才露得出。 */
#map-info-btn.on { background: var(--pk-night, #1E2330); border-color: var(--pk-night, #1E2330); color: #fff; }
.map-dim #map-info-btn.on { background: #C6CFDF; border-color: #C6CFDF; color: #1E2330; }
#map-info-btn.lp { overflow: visible; }
#map-info-btn.lp::after { content: ''; position: absolute; inset: -5px; border-radius: 13px; pointer-events: none; padding: 3px;
  background: conic-gradient(var(--pk-summit, #4A8B8D) var(--lp, 0%), rgba(74,139,141,.18) 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.map-dim #map-info-btn.lp::after { background: conic-gradient(#6FCFD1 var(--lp, 0%), rgba(111,207,209,.42) 0); }

@media (prefers-reduced-motion: reduce) { #rtfull-page .rtf-wash { transition: none; } }

/* ── 第二期：浮動小地圖（@rtpip；PLAN-v2 §3）──
   R＝右下（預設）、L＝左下：方窗住在卡片與狀態列之間那一列（第三期的環境／本趟兩列住在它旁邊）；D＝底部固定（滿寬、工具列、可拖捏）；
   M＝收起成狀態列第二行右端的「地圖」。大字級方窗 196（寫成變數：不寫 html.pk-fs-large X{}——放大鏡鏡內不生效）。 */
:root { --rtf-pip: 172px; }
html.pk-fs-large { --rtf-pip: 196px; }
#rtfull-page.rtf-fit-pip { --rtf-pip: var(--rtf-pip-fit, 140px); }   /* 第三期矮螢幕：直向 R／L 塞不下時的第一步（host 真的量，見 map.html rtfLayout） */
#rtfull-page.rtf-fit-prof .rtf-kv { row-gap: 3px; padding-top: 7px; padding-bottom: 7px; }   /* 第二步順手把兩列收緊（不拿掉任何一項；360 寬時兩列比小地圖高，光縮小地圖不夠） */
#rtfull-page .rtf-mid { display: flex; margin-top: 10px; }
#rtfull-page .rtf-mid[hidden] { display: none; }
#rtfull-page .rtf-pip { position: relative; flex: none; width: var(--rtf-pip, 172px); border-radius: 14px; overflow: hidden;
  border: 1px solid #d9d3c7; box-shadow: 0 6px 18px rgba(30, 35, 48, .16); background: #f4efe4;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
#rtfull-page .rtf-pip[data-pos="R"] { margin-left: auto; }
#rtfull-page .rtf-pip[data-pos="L"] { margin-right: auto; }
#rtfull-page .rtf-pip[data-pos="D"] { width: 100%; touch-action: auto; cursor: auto; }
#rtfull-page .rtf-pip-view { position: relative; height: var(--rtf-pip, 172px); }
#rtfull-page .rtf-pip[data-pos="D"] .rtf-pip-view { height: clamp(144px, 26vh, 260px); }
#rtfull-page .rtf-pip-map { position: absolute; inset: 0; }
/* D 態工具列：小標「前方朝右／北朝上」不可按（審查 3-6）；範圍 chip、浮動、收起（命中區 44，視覺 26） */
#rtfull-page .rtf-pip-top { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px 0 10px; background: #fff; border-bottom: 1px solid #e3ddd2; }
#rtfull-page .rtf-pip-top[hidden] { display: none; }
#rtfull-page .rtf-pip-top .rtf-sp { flex: 1 1 auto; }
#rtfull-page .rtf-pip-lab { font-size: var(--fs-11-5, 11.5px); font-weight: 650; color: #4A5168; white-space: nowrap; }
#rtfull-page .rtf-pip-chip { position: relative; height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid #d9d3c7; background: #fff;
  color: #1E2330; font-family: inherit; font-size: var(--fs-11-5, 11.5px); font-weight: 650; white-space: nowrap; cursor: pointer; }
#rtfull-page .rtf-pip-chip::before { content: ''; position: absolute; inset: -9px -4px; }
/* 角落：視窗 chip（小窗）、指北（跟著地圖轉）、比例尺（小窗左下、D 右下）、角落那一句、回到我（D 左下；審查 3-19） */
#rtfull-page .rtf-pip-win { position: absolute; left: 7px; top: 7px; padding: 2px 7px; border-radius: 10px; background: rgba(255, 255, 255, .9);
  font-size: var(--fs-10-5, 10.5px); font-weight: 650; color: #4A5168; pointer-events: none; }
#rtfull-page .rtf-pip[data-pos="D"] .rtf-pip-win { display: none; }
#rtfull-page .rtf-pip-n { position: absolute; right: 7px; top: 7px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 3px rgba(30, 35, 48, .25); pointer-events: none; }
#rtfull-page .rtf-pip-n svg { display: block; width: 100%; height: 100%; }
#rtfull-page .rtf-pip-scale { position: absolute; left: 8px; bottom: 7px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; pointer-events: none; }
#rtfull-page .rtf-pip-scale i { display: block; width: 40px; height: 4px; border: 1.5px solid #1E2330; border-top: 0; }
#rtfull-page .rtf-pip-scale b { font-size: var(--fs-10, 10px); font-weight: 650; color: #1E2330; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 2px #fff; }
#rtfull-page .rtf-pip[data-pos="D"] .rtf-pip-scale { left: auto; right: 8px; align-items: flex-end; }
#rtfull-page .rtf-pip-msg { position: absolute; left: 8px; right: 8px; top: 36px; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .92);
  font-size: var(--fs-11, 11px); color: #4A5168; text-align: center; pointer-events: none; }
#rtfull-page .rtf-pip[data-pos="D"] .rtf-pip-msg { top: 8px; left: 48px; right: 48px; }
#rtfull-page .rtf-pip-msg[hidden] { display: none; }
#rtfull-page .rtf-pip-me { position: absolute; left: 8px; bottom: 8px; }
#rtfull-page .rtf-pip-me[hidden] { display: none; }
/* 我：定位停住＝空心（§4.1） */
#rtfull-page .rtp-hollow .pk-dot { background: #fff; border-color: #C53030; }
/* 狀態列的「地圖」（M 態）；建不起來時多一點琥珀，按下去只講原因 */
#rtfull-page .rtf-pipbtn[hidden] { display: none; }
#rtfull-page .rtf-pipbtn.is-fail::after { content: ''; position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: #d99a2b; }
.map-dim #rtfull-page .rtf-pip { border-color: #3a4152; }
.map-dim #rtfull-page .rtf-pip-top { background: #222837; border-color: #3a4152; }
.map-dim #rtfull-page .rtf-pip-lab { color: #C6CFDF; }
.map-dim #rtfull-page .rtf-pip-chip { background: #2a3142; border-color: #3a4152; color: #E8ECF4; }

/* ── 第三期：環境／本趟兩列、情境換面（@rtctx；PLAN-v2 §2.1、§4.2）──
   中列＝環境／本趟兩列＋小地圖（讓位不覆蓋）：R 兩列在左、小地圖在右；L 反過來；D 小地圖在上、兩列在下；M 只剩兩列。 */
#rtfull-page .rtf-mid { align-items: stretch; gap: 10px; }
#rtfull-page .rtf-mid[data-pos="L"] .rtf-pip { order: -1; }
#rtfull-page .rtf-mid[data-pos="D"] { flex-direction: column; }
#rtfull-page .rtf-mid[data-pos="M"] .rtf-pip { display: none; }
#rtfull-page .rtf-kv { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 8px; row-gap: 6px;
  align-content: center; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(174, 189, 212, .6); background: #fff; }
#rtfull-page .rtf-mid .rtf-pip { align-self: flex-start; }   /* 小地圖不跟著兩列拉長 */
#rtfull-page .rtf-kv[hidden] { display: none; }
#rtfull-page .rtf-mid[data-pos="D"] .rtf-kv { order: 2; }
#rtfull-page .rtf-kv-r { display: contents; }   /* 整個框共用兩欄：標籤欄＝最長的標籤，數值欄對齊 */
#rtfull-page .rtf-kv-r .k { font-size: var(--fs-11-5, 11.5px); font-weight: 650; color: #4A5168; white-space: nowrap; }
#rtfull-page .rtf-kv-r .vs { min-width: 0; line-height: 1.25; }   /* 數值與小字同一欄：放不下時小字換到下一行（不截字） */
#rtfull-page .rtf-kv-r .v { font-size: var(--fs-13-5, 13.5px); font-weight: 750; color: #1E2330; }
#rtfull-page .rtf-kv-r .v > span { white-space: nowrap; }   /* 每一段不拆；段與段之間（「 · 」）可以換行 */
/* r1736：全線那兩列只給讀屏的一句（「最高 3,886 公尺，最低 2,100 公尺」，可見的字 aria-hidden）。列是 display:contents ⇒ 要絕對定位，才不會多佔格線的一格 */
#rtfull-page .rtf-kv-r .rtf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#rtfull-page .rtf-kv-r .s { font-size: var(--fs-10-5, 10.5px); color: #4A5168; white-space: normal; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }   /* 長小字在欄內換行（不溢出、不截字；審查 🟡13） */
#rtfull-page .rtf-kv.is-rest .rtf-kv-g[data-g="env"] .v { font-size: var(--fs-15, 15px); }   /* 停留 ≥3 分：環境那一組放大一級（§4.2；本趟那一組不放大——審查 🟡13） */
.map-dim #rtfull-page .rtf-kv { background: #1f2533; border-color: #3a4152; }
.map-dim #rtfull-page .rtf-kv-r .k, .map-dim #rtfull-page .rtf-kv-r .s { color: #C6CFDF; }
.map-dim #rtfull-page .rtf-kv-r .v { color: #EEF1F6; }
/* 兩列分三組（環境：海拔、氣壓、日出／本趟：本趟、出發後、近 5 分／全線：最高/最低、起點/終點，r1730）。旁邊有小地圖（直向 R／L）時組是 display:contents、一項一行；
   全寬（收起 M、直向底部固定 D、橫向兩欄的左欄）就真的排成兩行——環境一行、本趟一行，放不下才換行、不截字（§2.1「kv 列收兩行」）。夜面維持一項一行（放大的字對齊好讀）。 */
#rtfull-page .rtf-kv-g { display: contents; }
#rtfull-page:not(.rtf-night-on) .rtf-mid:is([data-pos="M"], [data-pos="D"]) .rtf-kv:not([hidden]), #rtfull-page.rtf-two:not(.rtf-night-on) .rtf-kv:not([hidden]) { display: flex; flex-direction: column; gap: 5px; }
#rtfull-page:not(.rtf-night-on) .rtf-mid:is([data-pos="M"], [data-pos="D"]) .rtf-kv-g, #rtfull-page.rtf-two:not(.rtf-night-on) .rtf-kv-g { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 16px; }
#rtfull-page:not(.rtf-night-on) .rtf-mid:is([data-pos="M"], [data-pos="D"]) .rtf-kv-r, #rtfull-page.rtf-two:not(.rtf-night-on) .rtf-kv-r { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
/* 夜面（紮營：停 ≥30 分且離山屋／營地 ≤150 m）：路線三區收成一行；海拔／氣壓／日出／電量／上傳放大；常亮已自動關 */
#rtfull-page .rtf-nightline { margin: 4px 2px 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(174, 189, 212, .6);
  font-size: var(--fs-15, 15px); font-weight: 750; color: #1E2330; }
#rtfull-page .rtf-nightline[hidden] { display: none; }
#rtfull-page.rtf-night-on #rtfull-card { display: none; }
#rtfull-page.rtf-night-on .rtf-mid .rtf-pip { display: none; }   /* 夜面：小地圖讓位，兩列用滿寬 */
#rtfull-page.rtf-night-on .rtf-kv-g:not([data-g="line"]) .v { font-size: var(--fs-17, 17px); }   /* 全線那一組不放大（夜面放大的是海拔／氣壓／日出／電量／上傳，§4.2） */
#rtfull-page.rtf-night-on .rtf-status { font-size: var(--fs-13-5, 13.5px); }
.map-dim #rtfull-page .rtf-nightline { background: #1f2533; border-color: #3a4152; color: #EEF1F6; }
/* ── 第三期：剖面 chips（全線／前方 3 km／選段）與選段那一行（@rtprof；PLAN-v2 §5：chips 一律在剖面底部右側）── */
#rtfull-page .rtf-chips { display: flex; justify-content: flex-end; gap: 6px; margin: 8px 0 2px; }
#rtfull-page .rtf-chip { position: relative; height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid rgba(174, 189, 212, .8); background: #fff;
  color: #1E2330; font-family: inherit; font-size: var(--fs-12, 12px); font-weight: 650; white-space: nowrap; cursor: pointer; }
#rtfull-page .rtf-chip::before { content: ''; position: absolute; inset: -8px -3px; }   /* 命中區 44（視覺 28） */
#rtfull-page .rtf-chip.is-on { background: #1E2330; border-color: #1E2330; color: #fff; }
#rtfull-page .rtf-chip:disabled { opacity: .45; cursor: default; }
#rtfull-page .rtf-sel { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 6px; font-size: var(--fs-12, 12px); font-weight: 650; color: #7a2e74; }
#rtfull-page .rtf-sel[hidden] { display: none; }
#rtfull-page .rtf-sel .rtf-chip { height: 24px; padding: 0 9px; }
#rtfull-page .rtf-lm.is-edge { transform: translateX(-100%); align-items: flex-end; }   /* 視窗外貼右緣的那一個：靠右對齊（同 B），數字不被切掉 */
#rtfull-page .rtf-lm.is-edge b { color: var(--muted, #4A5168); }   /* 卡片的 --muted：暗化時換成淺色（寫死深灰在深色底上約 1.85:1；審查 🟡20） */
.map-dim #rtfull-page .rtf-chip { background: #2a3142; border-color: #3a4152; color: #E8ECF4; }
.map-dim #rtfull-page .rtf-chip.is-on { background: #E8ECF4; border-color: #E8ECF4; color: #1E2330; }
.map-dim #rtfull-page .rtf-sel { color: #D090D6; }

/* ── 第三期：橫向兩欄（PLAN-v2 §2.1「左＝第一區＋剖面＋狀態列，右＝地圖滿高」）──
   .rtf-two 由 host 掛（map.html rtfLayout：RTF_LAND_MQ 成立、小地圖開著〔R／L／D〕、不是夜面）——判準只有 JS 那一份，這裡不另寫 media query。
   R、D 地圖在右、L 在左（輕觸照舊 R→L→D 輪替）；收起（M）照直向一欄。地圖那一欄 sticky、高度＝一屏；另一欄自己捲。
   中列 display:contents ⇒ 兩列與小地圖各自成為格子裡的一格；最後一列 1fr 吃掉小地圖比左欄高出來的部分（不把左欄撐開）。 */
#rtfull-page.rtf-two { --rtf-land-top: calc(env(safe-area-inset-top, 0px) + 56px); }
#rtfull-page.rtf-two .rtf-body { max-width: 1100px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto auto 1fr;
  column-gap: 12px; align-items: start; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
#rtfull-page.rtf-two .rtf-mid { display: contents; }
#rtfull-page.rtf-two .rtf-body > *, #rtfull-page.rtf-two .rtf-kv { grid-column: 1; order: 0; }
#rtfull-page.rtf-two[data-pip="L"] .rtf-body > *, #rtfull-page.rtf-two[data-pip="L"] .rtf-kv { grid-column: 2; }
#rtfull-page.rtf-two .rtf-kv { margin-top: 10px; }
#rtfull-page.rtf-two .rtf-mid .rtf-pip { grid-column: 2; grid-row: 1 / -1; position: sticky; top: var(--rtf-land-top, 56px); width: auto; margin: 0; align-self: start; order: 0; }
#rtfull-page.rtf-two[data-pip="L"] .rtf-mid .rtf-pip { grid-column: 1; }
#rtfull-page.rtf-two .rtf-pip .rtf-pip-view { height: calc(100vh - var(--rtf-land-top, 56px) - 10px - env(safe-area-inset-bottom, 0px)); }
#rtfull-page.rtf-two .rtf-pip[data-pos="D"] .rtf-pip-view { height: calc(100vh - var(--rtf-land-top, 56px) - 44px - env(safe-area-inset-bottom, 0px)); }   /* 扣掉工具列 34＋10 */

/* 剖面連續縮放：讀數仍對齊畫布，不吃到底部控制列。 */
#rtfull-page #rt-go-chip #ri-readout { height: var(--rtf-prof, 136px); }
#rtfull-page #rt-view-tools [data-prof="full"] { display: none; }
