/* Design tokens - single source for the whole site (wiki + community).
   LIGHT is the default theme; `data-theme="dark"` restores the original dark
   palette. Every component must use these tokens (no hardcoded theme colors).
   System font stack (decision 2026-09-27: no self-hosted webfont): platform
   Korean faces first so Android gets Noto Sans KR, macOS Apple SD Gothic,
   Windows Malgun without extra payload. */
:root{
  --bg:#F3F6FA; --bg2:#FFFFFF; --ink:#172A3E; --sub:#5C7189;
  --amber:#F59E0B; --amber2:#B45309; --line:#D8E1EC; --green:#17914A;
  --bg3:#E9EFF6; --bg4:#D7E2EE; --ink2:#33506B; --danger:#DC2626;
  --radius:14px; --radius-sm:10px;
  --shadow:0 6px 24px rgba(23,42,62,.12);
  --ring:0 0 0 3px rgba(245,158,11,.30);
  --header-bg:rgba(243,246,250,.94);
  --tap:44px; --side:248px;
  /* two width steps: 760 reading column (wiki) / 1320 layout (portal+boards) */
  --wrap-read:760px; --wrap-wide:1320px;
}
:root[data-theme="dark"]{
  --bg:#14283F; --bg2:#1E3A5F; --ink:#EAF2FA; --sub:#9FB8CC;
  --amber:#FFB020; --amber2:#FFE27A; --line:#27466B; --green:#2FA84F;
  --bg3:#173052; --bg4:#0E1F33; --ink2:#CFE0EE; --danger:#E4584F;
  --shadow:0 6px 24px rgba(0,0,0,.28);
  --ring:0 0 0 3px rgba(255,176,32,.38);
  --header-bg:rgba(20,40,63,.92);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic","Segoe UI",sans-serif;
  line-height:1.55; -webkit-text-size-adjust:100%;
}
a{color:inherit;text-decoration:none}
.ic{width:1em;height:1em;vertical-align:-.15em;flex:none}
.wrap{max-width:var(--wrap-read);margin:0 auto;padding:0 16px 48px}

/* header / footer (hidden in app embed mode by site.js)
   single source: bbs.css used to re-define these — merged here (same render) */
#site-header{
  position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:8px;
  padding:8px 14px;background:var(--header-bg);backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.brand{font-weight:900;font-size:17px;letter-spacing:-.2px;white-space:nowrap}
/* 모바일 전용 헤더 타이틀(메뉴 버튼 옆) - ≤940px 에서만 bbs.css가 표시 */
.header-title{display:none}
.brand-dice{color:var(--amber)}
.brand-mark{display:inline-block;height:22px;width:auto;vertical-align:-3px;margin-right:4px;overflow:visible}
.brand-sub{margin-left:auto;color:var(--sub);font-size:13px}
.theme-toggle{
  flex:none;width:38px;height:38px;border-radius:9px;cursor:pointer;font-size:16px;
  border:1px solid var(--line);background:var(--bg2);color:var(--ink);
  display:inline-flex;align-items:center;justify-content:center;
}
.theme-toggle:hover{border-color:var(--amber)}
/* 모바일 전용 홈 버튼 (≤940px에서 brand가 숨겨질 때 표시). */
.mobile-home{
  display:none;flex:none;width:38px;height:38px;border-radius:9px;
  border:1px solid var(--line);background:var(--bg2);color:var(--ink);
  align-items:center;justify-content:center;
}
.mobile-home .ic{width:18px;height:18px}
.mobile-home:hover{border-color:var(--amber)}
#site-footer{
  display:flex;flex-direction:column;align-items:center;gap:10px;
  color:var(--sub);font-size:12.5px;text-align:center;
  padding:24px 16px 28px;border-top:1px solid var(--line);
}
.foot-nav,.foot-legal{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
}
.foot-item{padding:0 12px;color:var(--sub)}
.foot-nav .foot-item:not(:last-child){border-right:1px solid var(--line)}
.foot-copy{margin:0}
.foot-copy .foot-build{margin-left:6px}
/* 실시간 접속자 위젯 (푸터): site.js 폴러가 값을 채울 때까지 hidden */
.foot-online{color:var(--sub);font-size:12.5px}
.foot-online b{color:var(--ink2)}
.foot-operator{margin:0;font-size:12.5px}
.foot-addr{margin:0;font-size:12.5px}

/* home hero + search */
.hero-home{text-align:center;padding:28px 0 8px}
.hero-home h1{font-size:30px;margin:0 0 4px}
.hero-home .tag{color:var(--sub);margin:0 0 18px}
.search-bar{max-width:520px;margin:0 auto}
.search-bar input{
  width:100%;padding:14px 16px;font-size:16px;border-radius:14px;border:1px solid var(--line);
  background:var(--bg2);color:var(--ink);outline:none;
}
.search-bar input:focus{border-color:var(--amber)}

/* grid of destination cards */
.grid,.hl-grid{display:grid;gap:12px}
.grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));margin-top:22px}
#search-results{margin-top:18px}
.card{
  display:flex;flex-direction:column;gap:2px;padding:0;border-radius:16px;overflow:hidden;
  background:linear-gradient(180deg,var(--bg2),var(--bg3));border:1px solid var(--line);
}
.card-thumb{display:block;width:100%;height:118px;object-fit:cover;background-color:var(--bg3)}
.card-body{display:flex;flex-direction:column;gap:2px;padding:12px 14px}
.card:active{transform:scale(.98)}
.card-prov{color:var(--amber2);font-size:12px;font-weight:700}
.card-title{font-size:19px;font-weight:900}
.card-famous{color:var(--sub);font-size:12.5px}

/* destination page: hero media is a real <img> (LCP-controllable), the
   legibility scrim is the ::after layer; flat gradient shows when no image */
.spot .hero{border-radius:0 0 20px 20px;padding:64px 18px 22px;min-height:200px;
  background:linear-gradient(135deg,var(--bg3),var(--bg2));display:flex;align-items:flex-end;
  position:relative;isolation:isolate;overflow:hidden}
.hero picture{display:contents}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.spot .hero.has-img::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(10,23,38,.10),rgba(10,23,38,.68))}
.crumb{color:var(--sub);font-size:13px;margin:0 0 6px}
.crumb a{color:var(--amber2)}
.spot .hero h1{font-size:30px;margin:0;text-shadow:0 2px 8px rgba(0,0,0,.55)}
.famous{color:var(--ink);opacity:.9;margin:4px 0 0}
.photo-credit{margin:6px 2px 0;font-size:12.5px;color:var(--sub);text-align:right}
.photo-credit a{color:var(--sub);text-decoration:underline}

.actions{display:flex;gap:10px;margin:18px 0}
.act{flex:1;text-align:center;padding:14px;border-radius:14px;font-weight:900;font-size:15px}
.act-loc{background:var(--green);color:#fff}
.act-rec{background:var(--amber);color:#241A00}

.content{margin:8px 0 22px}
.content p{color:var(--ink2);margin:0 0 12px}
.content strong{color:var(--ink)}
.content h2,.spot section h2{font-size:20px;margin:26px 0 12px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.content blockquote{border-left:3px solid var(--amber);margin:12px 0;padding:4px 14px;color:var(--sub)}
.content pre{background:var(--bg4);padding:12px;border-radius:10px;overflow:auto}
.content img{max-width:100%;height:auto;border-radius:12px}

/* highlights */
.hl{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:14px;
  background:var(--bg3);border:1px solid var(--line)}
.hl-i{font-size:18px;line-height:1.4}
.hl-t{display:flex;flex-direction:column}
.hl-t strong{font-size:16px}
.hl-t small{color:var(--sub);font-size:13px;margin-top:2px}

/* tips */
.tips dl{margin:0;display:grid;gap:10px}
.tip{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:baseline}
.tip dt{color:var(--amber2);font-weight:800}
.tip dd{margin:0;color:var(--ink2)}

.future ul{padding-left:20px;color:var(--ink2)}
[hidden]{display:none}

/* region destination list ("이 지역의 여행지") */
.dest-section .dest-count{color:var(--amber2);font-size:13px;font-weight:800}
.dest-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.dest-filter{padding:7px 14px;border-radius:9px;border:1px solid var(--line);
  background:var(--bg3);color:var(--ink2);font-size:13px;font-weight:700;cursor:pointer}
.dest-filter:hover{border-color:var(--amber)}
.dest-filter.is-on{background:var(--amber);color:#241A00;border-color:var(--amber)}
.dest-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.dest{display:flex;flex-direction:column;border-radius:16px;overflow:hidden;
  background:linear-gradient(180deg,var(--bg2),var(--bg3));border:1px solid var(--line)}
.dest:active{transform:scale(.98)}
.dest-media{display:block;aspect-ratio:16/10;background:var(--bg3);overflow:hidden}
.dest-thumb{display:block;width:100%;height:100%;object-fit:cover}
.dest-ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;
  font-size:15px;font-weight:900;color:var(--ink2);letter-spacing:.02em;
  background:linear-gradient(135deg,var(--bg3),var(--bg2))}
.dest-ph[data-maj="시장"]{background:linear-gradient(135deg,#6B4A1F,#4A3416);color:#FFE9C2}
.dest-ph[data-maj="숙박"]{background:linear-gradient(135deg,#1F5F3A,#14402A);color:#D9F2E2}
.dest-ph[data-maj="공원"]{background:linear-gradient(135deg,#1F4F6B,#14384F);color:#D5ECF7}
.dest-ph[data-maj="기타"]{background:linear-gradient(135deg,#4A4A66,#33334A);color:#E3E3F0}
.dest-ph-lg{min-height:200px;font-size:22px}
.dest-body{display:flex;flex-direction:column;gap:4px;padding:12px 14px}
.dest-title{display:flex;align-items:center;gap:8px}
.dest-badge{font-size:11px;font-weight:800;color:var(--amber2);
  background:rgba(255,176,32,.15);border:1px solid rgba(255,176,32,.45);
  padding:2px 8px;border-radius:8px;white-space:nowrap}
.dest-name{font-size:16px;font-weight:900}
.dest-meta{color:var(--sub);font-size:12.5px}
.dest-desc{color:var(--ink2);font-size:12.5px;line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* destination detail page */
.dest-detail .dest-hero{border-radius:0 0 20px 20px;overflow:hidden;min-height:200px}
.dest-detail .dest-hero .hero-img{width:100%;height:260px;object-fit:cover;display:block}
.dest-detail .dest-hero .dest-ph{border-radius:0 0 20px 20px}
.dest-detail h1{font-size:28px;margin:0}
.dest-head{margin:16px 0 0}
.dest-detail .dest-addr,.dest-detail .dest-src{color:var(--sub);font-size:13px}
.dest-detail .dest-src a{text-decoration:underline}
.dest-detail .more-row{margin-top:10px}

/* embed (app) mode: hide site chrome, tighten paddings */
body.embed #site-header,body.embed #site-footer,body.embed .crumb{display:none}
body.embed .spot .hero{border-radius:16px}
body.embed .wrap{padding-top:8px}
body.embed .dest-grid{grid-template-columns:1fr 1fr}
@media (max-width:560px){body.embed .dest-grid{grid-template-columns:1fr}}

/* ===========================================================================
   Portal (여행정보 포털): 홈 히어로, 가로형 리스트, 여행지 페이지, 작성 폼
   =========================================================================== */

/* 홈 히어로 (탐색 중심) */
.ph-hero{padding:34px 0 20px;text-align:center}
.ph-hero h1{font-size:30px;margin:0 0 4px;letter-spacing:-.4px}
.ph-hero .sub{color:var(--sub);margin:0 0 18px}
.ph-search{display:flex;gap:8px;max-width:560px;margin:0 auto 14px}
.ph-search input{flex:1;padding:12px 16px;border-radius:9px;border:1px solid var(--line);
  background:var(--bg2);color:var(--ink);font-size:15px}
.ph-search button{border-radius:9px;padding:0 22px}
.ph-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.ph-chip{border:1px solid var(--line);border-radius:9px;padding:6px 14px;font-size:13px;color:var(--ink2)}
.ph-chip:hover{border-color:var(--amber);color:var(--amber2)}
.ph-section{margin:26px 0}
.ph-section h2{font-size:18px;border-left:3px solid var(--amber);padding-left:10px}
.ph-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.ph-tile{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius-sm);
  overflow:hidden;display:flex;flex-direction:column}
.ph-tile-img img,.ph-tile-img .no-photo{width:100%;height:120px;object-fit:cover;display:flex;
  align-items:center;justify-content:center}
.ph-tile-title{padding:8px 10px 2px;font-weight:700;font-size:14px;line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ph-tile-meta{padding:0 10px 10px;color:var(--sub);font-size:12px}
.ph-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:8px}
@media (max-width:900px){.ph-grid{grid-template-columns:repeat(2,1fr)}.ph-cards{grid-template-columns:1fr}}

/* 가로형 리스트 (PC) / 카드형 (모바일) */
/* one post = ONE line row: [thumb] [추천수] [제목] [작성지·게시판] [작성일] [조회수] */
.portal-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.prow{display:flex;gap:8px;background:var(--bg2);border:1px solid var(--line);
  border-radius:var(--radius-sm);padding:5px 8px;align-items:center}
.prow:hover{border-color:var(--amber)}
.prow-media{flex:none;width:76px;height:50px;border-radius:7px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;background:var(--bg3)}
.prow-media img{width:100%;height:100%;object-fit:cover;display:block}
.prow-media .no-photo{color:var(--sub);font-size:16px}
.prow-likes{flex:none;min-width:44px;display:flex;align-items:center;justify-content:center;gap:4px;
  color:var(--ink2);font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums}
.prow-title{flex:1;min-width:0;display:block;font-weight:800;font-size:14px;line-height:1.3;
  color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prow-where{flex:none;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  color:var(--amber2);font-size:12px;font-weight:700}
.prow-when{flex:none;color:var(--sub);font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.prow-views{flex:none;min-width:44px;display:flex;align-items:center;justify-content:center;gap:4px;
  color:var(--sub);font-size:12px;white-space:nowrap}
.prow-tags{display:flex;flex-wrap:wrap;gap:4px}
.tag-chip{font-size:11.5px;color:var(--amber2);background:rgba(255,176,32,.12);
  border:1px solid rgba(255,176,32,.35);border-radius:8px;padding:0 7px}
@media (max-width:720px){
  .prow{gap:6px;padding:4px 6px}
  .prow-media{width:60px;height:40px}
  .prow-title{font-size:12.5px}
  .prow-where{max-width:92px}
}

/* 여행지 상세 (/p) */
.pv-hero-wrap{border-radius:var(--radius);overflow:hidden;margin:8px 0 14px}
.pv-hero{width:100%;max-height:300px;object-fit:cover;display:block}
.pv-ph{display:flex;align-items:center;justify-content:center;height:160px;color:var(--sub);
  background:linear-gradient(135deg,var(--bg3),var(--bg2));font-size:20px;font-weight:800}
.pv h1{font-size:26px;margin:0 0 4px}
.pv-info{list-style:none;padding:0;margin:10px 0;color:var(--ink2);font-size:14px}
.pv-info li{padding:4px 0}

/* 코스 일정 */
.course-list h2{font-size:17px}
.course-list ol{list-style:none;padding:0;margin:8px 0;display:flex;flex-direction:column;gap:8px}
.course-stop{display:flex;gap:10px;align-items:flex-start;background:var(--bg2);
  border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px}
.cs-seq{flex:none;width:26px;height:26px;border-radius:9px;background:var(--amber);color:#fff;
  font-weight:900;display:flex;align-items:center;justify-content:center;font-size:13px}
.cs-body{flex:1;display:flex;flex-direction:column;gap:2px}
.cs-body small{color:var(--sub)}
.cs-min{flex:none;color:var(--sub);font-size:12px}

/* 포털 작성 폼 */
.portal-write .pw-row{margin:0 0 12px}
.portal-write .pw-row.two,.portal-write .pw-row.three{display:grid;gap:10px}
.portal-write .pw-row.two{grid-template-columns:1fr 1fr}
.portal-write .pw-row.three{grid-template-columns:2fr 1fr 1fr}
@media (max-width:720px){.portal-write .pw-row.two,.portal-write .pw-row.three{grid-template-columns:1fr}}
.pw-region{width:100%}
.course-editor{margin:14px 0;border:1px dashed var(--line);border-radius:var(--radius-sm);padding:10px}
.course-editor summary{cursor:pointer;font-weight:700}
.course-stop-row{display:flex;gap:6px;margin:6px 0;flex-wrap:wrap}
.course-stop-row input{flex:1 1 130px}
.course-stop-row .cs-min{flex:0 0 70px}
.course-stop-row .cs-del{flex:none}

/* 바다낚시지수 (/fishing, 2026-11-04) */
.f-hero{padding:22px 2px 4px}
.f-hero h1{font-size:25px;margin:4px 0 6px;color:var(--ink)}
.f-sub{color:var(--sub);font-size:14px;margin:0}
.f-stale{background:#FFF7E6;border:1px solid #F0CE96;color:#8A5A00;border-radius:12px;
  padding:10px 14px;font-size:13.5px;margin:12px 0}
:root[data-theme="dark"] .f-stale{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.4);color:var(--amber2)}
.f-filters{display:flex;flex-direction:column;gap:8px;margin:14px 0 10px;padding:12px 14px;
  background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius-sm)}
.f-frow{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.f-flbl{font-size:12px;font-weight:800;color:var(--sub);min-width:34px}
.f-filters a{display:inline-block;padding:4px 11px;border-radius:999px;border:1px solid var(--line);
  background:var(--bg3);color:var(--ink2);font-size:13px;font-weight:600;text-decoration:none}
.f-filters a:hover{border-color:var(--amber);color:var(--ink)}
.f-filters a.is-on{background:var(--ink);border-color:var(--ink);color:var(--bg2)}
.f-filters a b{font-weight:800}
.f-legend{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 14px}
.f-legend .f-flbl{min-width:34px}
.f-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.f-card{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius-sm);padding:13px 14px;
  scroll-margin-top:72px}
.f-card:target{border-color:var(--amber);box-shadow:0 0 0 2px rgba(245,158,11,.30)}
.f-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.f-card h3{margin:0;font-size:15.5px;color:var(--ink)}
.f-card h3 a{color:var(--ink);text-decoration:none}
.f-card h3 a:hover{color:var(--amber2);text-decoration:underline}
.f-badge{font-size:11.5px;font-weight:800;padding:3px 9px;border-radius:999px;color:#fff;white-space:nowrap}
.f-idx5{background:#0B7A3E;color:#fff}
.f-idx4{background:#17914A;color:#fff}
.f-idx3{background:#C77E00;color:#fff}
.f-idx2{background:#D9541E;color:#fff}
.f-idx1{background:#C62828;color:#fff}
.f-idx0{background:var(--bg4);color:var(--sub)}
.f-fish{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:9px}
.f-chip{font-size:11.5px;padding:2px 8px;border-radius:999px;border:1px solid;font-weight:700}
.f-chip.f-idx5{background:rgba(11,122,62,.12);border-color:rgba(11,122,62,.4);color:#0B7A3E}
.f-chip.f-idx4{background:rgba(23,145,74,.12);border-color:rgba(23,145,74,.4);color:#12833F}
.f-chip.f-idx3{background:rgba(199,126,0,.12);border-color:rgba(199,126,0,.4);color:#8A5A00}
.f-chip.f-idx2{background:rgba(217,84,30,.12);border-color:rgba(217,84,30,.4);color:#B03A10}
.f-chip.f-idx1{background:rgba(198,40,40,.12);border-color:rgba(198,40,40,.4);color:#A31D1D}
.f-chip.f-idx0{background:var(--bg4);border-color:var(--line);color:var(--sub)}
.f-stats{display:grid;grid-template-columns:1fr 1fr;gap:3px 12px;margin:0;font-size:12.5px}
.f-stats div{display:flex;justify-content:space-between;gap:6px}
.f-stats dt{color:var(--sub)}
.f-stats dd{margin:0;color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}
.f-src{color:var(--sub);font-size:12.5px;margin:16px 0 8px}
.f-src a{color:var(--sub)}
.f-map{margin:0 0 16px}
.f-maprow{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(240px,.95fr);gap:14px;align-items:start;margin:0 0 16px}
.f-maprow .wx-map{margin:0}
.f-maprow .f-map svg{width:100%}
.f-panel{position:sticky;top:76px}
.f-panel #f-panel-card,.f-panel .f-tidecard{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 14px}
.f-panel-hint{margin:0 0 10px;font-size:12.5px;color:var(--sub)}
.f-panel .f-card{border:0;background:transparent;padding:0}
.f-panel .f-tidecard{margin-top:12px}
.f-tc-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin:0 0 8px;color:var(--ink)}
.f-tc-head b{font-size:13.5px}
.f-tc-head span{color:var(--sub);font-size:12.5px}
.f-tc-head em{margin-left:auto;font-style:normal;color:var(--sub);font-size:11.5px}
.f-tc-graph svg{display:block;width:100%;height:auto}
.f-tg-grid{stroke:var(--line);stroke-width:1}
.f-tg-tick{font-size:9px;fill:var(--sub)}
.f-tg-now{stroke:var(--amber);stroke-width:1.4;stroke-dasharray:3 3}
.f-tg-line{fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linejoin:round}
.f-tg-hi{fill:#C62828}
.f-tg-lo{fill:#1565C0}
.f-tg-lbl{font-size:9px;font-weight:700}
.f-tg-lbl.is-hi{fill:#C62828}
.f-tg-lbl.is-lo{fill:#1565C0}
:root[data-theme="dark"] .f-tg-hi{fill:#FF8A80}
:root[data-theme="dark"] .f-tg-lo{fill:#82B1FF}
:root[data-theme="dark"] .f-tg-lbl.is-hi{fill:#FF8A80}
:root[data-theme="dark"] .f-tg-lbl.is-lo{fill:#82B1FF}
.f-tc-ev{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;margin-top:8px;font-size:11.5px;font-weight:700}
.f-tc-ev span{white-space:nowrap}
.f-tc-ev .is-hi{color:#C62828}
.f-tc-ev .is-lo{color:#1565C0}
:root[data-theme="dark"] .f-tc-ev .is-hi{color:#FF8A80}
:root[data-theme="dark"] .f-tc-ev .is-lo{color:#82B1FF}
@media (max-width:860px){.f-maprow{grid-template-columns:1fr}.f-panel{position:static}}
.f-dot{stroke:#fff;stroke-width:1.2;fill-opacity:.95;cursor:pointer}
:root[data-theme="dark"] .f-dot{stroke:var(--bg2)}
.f-dots .f-dot:hover{stroke-width:2.4}
.f-dots a{outline:none}
.f-dots a:focus-visible .f-dot{stroke-width:2.4;stroke:var(--amber)}
.f-dot.f-idx5{fill:#0B7A3E}
.f-dot.f-idx4{fill:#17914A}
.f-dot.f-idx3{fill:#C77E00}
.f-dot.f-idx2{fill:#D9541E}
.f-dot.f-idx1{fill:#C62828}
.f-dot.f-idx0{fill:var(--sub)}
.f-boardmap{margin:0 0 12px}
.f-boardmap .f-maplink{display:block;text-align:right;font-size:12.5px;color:var(--sub);margin:0 0 6px}
.f-boardmap .f-maplink:hover{color:var(--ink)}
.f-nmap{width:100%;height:480px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg3)}
.f-maprow .f-nmap{height:520px}
.f-nm-dot{display:block;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-sizing:border-box;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.f-nm-dot.f-idx5{background:#0B7A3E}
.f-nm-dot.f-idx4{background:#17914A}
.f-nm-dot.f-idx3{background:#C77E00}
.f-nm-dot.f-idx2{background:#D9541E}
.f-nm-dot.f-idx1{background:#C62828}
.f-nm-dot.f-idx0{background:var(--sub)}
.f-nm-tide{display:block;width:28px;height:18px;border-radius:5px;background:#1565C0;color:#fff;font-size:9.5px;font-weight:800;line-height:18px;text-align:center;border:2px solid #fff;box-sizing:border-box;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.f-nm-iw{padding:8px 10px;font-size:12px;line-height:1.55;color:#172A3E;white-space:nowrap}
.f-nm-iw b{font-size:12.5px;display:block;margin-bottom:2px}
.f-nm-iw .is-hi{color:#C62828;font-weight:700}
.f-nm-iw .is-lo{color:#1565C0;font-weight:700}
@media (max-width:860px){.f-nmap{height:320px}.f-maprow .f-nmap{height:320px}}
.f-tideweek{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 14px;margin:0 0 16px}
.f-tw-title{margin:0 0 10px;font-size:16px;color:var(--ink)}
.f-tw-title span{font-size:12.5px;color:var(--sub);font-weight:600;margin-left:6px}
.f-tw-cols{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.f-tw-col{border:1px solid var(--line);border-radius:10px;padding:8px 9px;background:var(--bg3)}
.f-tw-head{font-weight:800;color:var(--ink);font-size:13px}
.f-tw-sub{display:flex;flex-direction:column;gap:1px;font-size:11.5px;color:var(--sub);margin:2px 0 6px}
.f-tw-mool{font-weight:700;color:var(--amber2)}
.f-tw-ev{font-size:12.5px;color:var(--ink2);padding:1px 0;font-variant-numeric:tabular-nums}
.f-tw-ev b{font-weight:800}
.f-tw-ev.is-hi b{color:#C62828}
.f-tw-ev.is-lo b{color:#1565C0}
.f-tw-ev i{font-style:normal;color:var(--sub)}
:root[data-theme="dark"] .f-tw-ev.is-hi b{color:#FF8A80}
:root[data-theme="dark"] .f-tw-ev.is-lo b{color:#82B1FF}
@media (max-width:860px){.f-tw-cols{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:560px){.f-tw-cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){.f-cards{grid-template-columns:1fr 1fr}.f-stats{font-size:12px}}
@media (max-width:460px){.f-cards{grid-template-columns:1fr}}
/* --- 오늘의 해루질 (/haeru, 2026-11-04) ------------------------------- */
.h-hero{margin:0 0 12px}
.h-hero h1{margin:0;font-size:22px;color:var(--ink)}
.h-sub{margin:4px 0 0;color:var(--sub);font-size:13px}
.h-safety{background:rgba(245,158,11,.08);border:1px solid rgba(245,158,11,.35);border-radius:var(--radius-sm);padding:10px 14px;margin:0 0 14px;font-size:12.5px;color:var(--ink)}
.h-safety b{display:block;margin-bottom:4px;color:var(--amber2)}
.h-safety ul{margin:0;padding-left:18px}
.h-safety li{margin:2px 0}
.h-dates{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.h-tab{padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--bg2);font-size:12.5px;color:var(--ink);text-decoration:none}
.h-tab.is-on{background:var(--ink);color:var(--bg2);border-color:var(--ink)}
.h-tab b{color:var(--amber);font-weight:700}
.h-counts{margin:0 0 10px;font-size:12.5px;color:var(--sub)}
.h-tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg2);margin:0 0 10px}
.h-table{width:100%;border-collapse:collapse;font-size:12.5px;min-width:760px}
.h-table th{text-align:left;padding:9px 10px;border-bottom:1px solid var(--line);color:var(--sub);font-weight:700;white-space:nowrap;background:var(--bg3)}
.h-table td{padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:top;white-space:nowrap;color:var(--ink)}
.h-table tr:last-child td{border-bottom:0}
.h-table .h-spot b{display:block;color:var(--ink);font-size:13px}
.h-table .h-spot small{color:var(--sub);font-size:11.5px}
.h-night{display:inline-block;margin-left:4px;padding:0 6px;border-radius:999px;background:#1D2B4F;color:#fff;font-size:10.5px;font-weight:700}
.h-grade{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:800;color:#fff}
.h-grade.h-good{background:#0B7A3E}
.h-grade.h-ok{background:#C77E00}
.h-grade.h-caution{background:#D9541E}
.h-grade.h-danger{background:#C62828}
.h-boardmap{margin:0 0 12px}
.h-boardmap .h-maplink{display:block;text-align:right;font-size:12.5px;color:var(--sub);margin:0 0 6px}
.h-boardmap .h-maplink:hover{color:var(--ink)}
.h-nmap{width:100%;height:420px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg3)}
.h-nm-pin{display:block;width:22px;height:22px;border-radius:50%;border:2px solid #fff;box-sizing:border-box;box-shadow:0 1px 4px rgba(0,0,0,.35);color:#fff;font-size:13px;font-weight:800;line-height:18px;text-align:center;font-family:Georgia,"Times New Roman",serif;font-style:italic}
.h-nm-pin.h-g-good{background:#0B7A3E}
.h-nm-pin.h-g-ok{background:#C77E00}
.h-nm-pin.h-g-caution{background:#D9541E}
.h-nm-pin.h-g-danger{background:#C62828}
.h-nm-iw{padding:8px 10px;font-size:12px;line-height:1.55;color:#172A3E;white-space:nowrap}
.h-nm-iw b{font-size:12.5px;display:block;margin-bottom:2px}
.h-nm-iw span{color:#5B6B7C;font-size:11.5px}
.h-nm-iw .h-nm-more{display:inline-block;margin-top:4px;font-size:11.5px;color:#1565C0;text-decoration:none}
.h-nm-iw .h-nm-more:hover{text-decoration:underline}
@media (max-width:860px){.h-nmap{height:320px}}
/* Mobile: the haeru table becomes labelled cards (no horizontal scroll). */
@media (max-width:640px){
  .h-tablewrap{border:0;background:transparent;overflow:visible}
  .h-table{min-width:0;display:block;border-collapse:separate}
  .h-table thead{display:none}
  .h-table tbody{display:block}
  .h-table tr{display:grid;grid-template-columns:1fr 1fr;gap:2px 12px;padding:10px 12px;margin:0 0 8px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg2)}
  .h-table td{display:block;border:0;padding:1px 0;white-space:normal;font-size:12.5px;line-height:1.5}
  .h-table td::before{content:attr(data-label);display:block;color:var(--sub);font-size:10.5px;font-weight:700;margin-bottom:1px}
  .h-table td.h-spot{grid-column:1 / -1;padding:0 0 4px}
  .h-table td.h-spot::before{content:none}
  .h-table td.h-spot b{font-size:14px}
  .h-table td:nth-child(2){grid-column:1}
  .h-table td:nth-child(3){grid-column:1 / -1}
  .h-table td:nth-child(4){grid-column:1 / -1}
  .h-table td:nth-child(5){grid-column:1}
  .h-table td:nth-child(6){grid-column:2}
  .h-table td:nth-child(7){grid-column:1}
  .h-table td:nth-child(8){grid-column:2}
  .h-table td:nth-child(9){grid-column:1 / -1}
  .h-nm-iw{white-space:normal;max-width:min(260px,calc(100vw - 48px))}
}
