/* Theme: Soft Pastel Wellness (site 035) — from design-system sample */
:root{
  --bg:#F4F7FB; --surface:#FFFFFF; --surface-alt:#FFF8F0;
  --mint:#E4F3EE; --blush:#FBEAEF;
  --text:#243240; --muted:#5E6E7C; --border:#D9E2EC;
  --accent:#1C6E8C; --accent-h:#185E78; --accent-2:#BE4F63; --rose-ink:#9C3A4B;
  --success:#2A8466; --warning:#9C6318; --danger:#C2485C;
  --r-input:12px; --r-card:16px; --r-img:14px; --r-pill:999px;
  --s1:0 1px 2px rgba(36,50,64,.06), 0 1px 3px rgba(36,50,64,.05);
  --s2:0 6px 16px rgba(36,50,64,.10);
  --micro:220ms ease-out;
  --shell:1280px;
  --font:Pretendard,'IBM Plex Sans','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  --mono:'IBM Plex Mono','D2Coding',monospace;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font); font-size:16px; line-height:1.7;
  letter-spacing:-0.01em; -webkit-font-smoothing:antialiased;
}
a{color:var(--accent); text-decoration:none}
a:hover{color:var(--accent-h)}
img,svg{display:block; max-width:100%}
h1,h2,h3{line-height:1.2; margin:0; letter-spacing:-0.01em}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:6px}

.shell{max-width:var(--shell); margin:0 auto; padding:0 24px}
.skip{position:absolute; left:-999px; top:0; background:var(--accent); color:#fff; padding:10px 16px; border-radius:0 0 12px 0; z-index:50}
.skip:focus{left:0}

/* ---- Masthead / nav ---- */
.masthead{position:sticky; top:0; z-index:40; background:var(--surface); border-bottom:1px solid var(--border)}
.bar{display:flex; align-items:center; gap:16px; height:64px}
.brand{display:flex; align-items:center; gap:10px; font-weight:700; font-size:20px; color:var(--text); white-space:nowrap}
.brand .mark{width:34px; height:34px; border-radius:11px; background:var(--mint); display:grid; place-items:center; flex:none}
.brand b{color:var(--accent)}
.search{margin-left:auto; flex:1; max-width:420px; display:flex; align-items:center; gap:8px;
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--r-pill); padding:8px 16px}
.search:focus-within{border-color:var(--accent); box-shadow:0 0 0 3px var(--mint)}
.search input{border:0; outline:0; background:transparent; flex:1; font:inherit; color:var(--text); min-width:60px; min-height:28px}
.search input::placeholder{color:var(--muted)}
.search .ic{color:var(--muted); flex:none; display:flex}
.menu-btn{display:none; margin-left:auto; width:44px; height:44px; border:1px solid var(--border); background:var(--surface); border-radius:12px; cursor:pointer; align-items:center; justify-content:center}
.tabs{border-top:1px solid var(--border)}
.tabnav{display:flex; gap:4px; overflow-x:auto; scrollbar-width:none}
.tabnav::-webkit-scrollbar{display:none}
.tabnav a{display:inline-flex; align-items:center; min-height:44px; padding:0 14px; color:var(--muted);
  font-weight:500; font-size:15px; border-bottom:2px solid transparent; white-space:nowrap}
.tabnav a:hover{background:var(--mint); color:var(--text)}
.tabnav a[aria-current="page"]{color:var(--accent); border-bottom-color:var(--accent); font-weight:700}

/* ---- Layout grid: webzine list + right rail ---- */
.wrap{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; padding:32px 0 48px}
.crumb{font-size:13px; color:var(--muted); margin-bottom:16px}
.crumb a{color:var(--muted)} .crumb a:hover{color:var(--accent)}
.pagehead{margin-bottom:8px}
.pagehead h1{font-size:31px; font-weight:700}
.intro{margin:0 0 24px; color:var(--muted); font-size:15px}
.section-label{margin:32px 0 16px; color:var(--text); font-size:18px; font-weight:700}

/* ---- Webzine row (signature: left accent stripe + 4:3 thumb + text) ---- */
.row{position:relative; display:grid; grid-template-columns:280px 1fr; gap:24px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card);
  box-shadow:var(--s1); padding:20px; padding-left:23px; margin-bottom:24px;
  transition:transform var(--micro), box-shadow var(--micro)}
.row::before{content:""; position:absolute; left:0; top:0; bottom:0; width:4px; border-radius:var(--r-card) 0 0 var(--r-card); background:var(--accent)}
.row.cat-caution::before{background:var(--accent-2)}
.row.cat-tip::before{background:var(--success)}
.row:hover{transform:translateY(-2px); box-shadow:var(--s2)}
.thumb{aspect-ratio:4/3; border-radius:var(--r-img); overflow:hidden; border:1px solid var(--border)}
.thumb svg{width:100%; height:100%}
.rbody{min-width:0; display:flex; flex-direction:column; gap:8px}
.rbody h3{font-size:20px; font-weight:500; line-height:1.3}
.rbody h3 a{color:var(--text)}
.rbody h3 a:hover{color:var(--accent); text-decoration:underline}
.excerpt{margin:0; color:var(--text); font-size:15px; line-height:1.6;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.meta{margin-top:auto; display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; color:var(--muted); font-size:13px}
.meta .mono{font-family:var(--mono); font-size:13px}
.dot{width:3px; height:3px; border-radius:50%; background:var(--border)}
.tagrow{display:flex; flex-wrap:wrap; gap:6px}
.tag{font-size:13px; color:var(--accent); background:var(--mint); padding:4px 10px; border-radius:var(--r-pill); line-height:1.2}
.tag:hover{background:#d6ede5; color:var(--accent-h)}

/* badges */
.badge{display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:500;
  padding:3px 10px; border-radius:var(--r-pill); width:fit-content; line-height:1.4}
.b-info{background:var(--mint); color:var(--accent)}
.b-caution{background:var(--blush); color:var(--rose-ink)}
.b-verified{background:var(--success); color:#fff}
.b-new{background:var(--accent); color:#fff}
.b-important{background:var(--accent-2); color:#fff}

/* ---- Featured row (cover) ---- */
.featured{grid-template-columns:460px 1fr; padding:24px; padding-left:27px}
.featured h2{font-size:25px; font-weight:700; line-height:1.25}
.featured h2 a{color:var(--text)}
.featured h2 a:hover{color:var(--accent); text-decoration:underline}
.featured .excerpt{-webkit-line-clamp:3; font-size:16px}

/* ---- Pagination ---- */
.pager{display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin-top:32px}
.pager a,.pager span{min-width:44px; min-height:44px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border); background:var(--surface); border-radius:var(--r-pill); color:var(--text); font-weight:500; font-size:15px}
.pager a:hover{background:var(--mint); color:var(--accent)}
.pager .cur{background:var(--accent); border-color:var(--accent); color:#fff}

/* ---- Right rail ---- */
.rail{display:flex; flex-direction:column; gap:24px}
.panel{background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card); box-shadow:var(--s1); padding:20px}
.panel h2{font-size:17px; font-weight:700; margin-bottom:14px}
.pop{list-style:none; margin:0; padding:0; counter-reset:p}
.pop li{counter-increment:p; display:flex; gap:10px; padding:8px 0; border-top:1px dashed var(--border); align-items:flex-start}
.pop li:first-child{border-top:0; padding-top:0}
.pop li::before{content:counter(p); font-family:var(--mono); font-weight:500; color:var(--accent); flex:none; width:18px; text-align:center}
.pop a{color:var(--text); font-size:14px; line-height:1.5}
.pop a:hover{color:var(--accent)}
.cloud{display:flex; flex-wrap:wrap; gap:8px}
.callout{border-radius:var(--r-input); padding:16px; position:relative; padding-left:19px}
.callout::before{content:""; position:absolute; left:0; top:0; bottom:0; width:3px; border-radius:var(--r-input) 0 0 var(--r-input)}
.callout.tip{background:var(--mint)} .callout.tip::before{background:var(--accent)}
.callout.caution{background:var(--blush)} .callout.caution::before{background:var(--accent-2)}
.callout h2{font-size:15px; margin-bottom:6px}
.callout p{margin:0; color:var(--text); font-size:14px; line-height:1.6}
.disclaimer{font-size:13px; color:var(--text); line-height:1.6}

/* ---- Footer ---- */
footer{background:var(--surface); border-top:1px solid var(--border); margin-top:24px}
.foot{padding:28px 0; display:flex; flex-wrap:wrap; gap:16px 24px; justify-content:space-between; align-items:center}
.foot nav{display:flex; flex-wrap:wrap; gap:6px 14px}
.foot nav a{color:var(--muted); font-size:14px; min-height:44px; display:inline-flex; align-items:center}
.foot nav a:hover{color:var(--accent)}
.foot .sig{font-family:var(--mono); font-size:13px; color:var(--muted)}

/* ---- Responsive ---- */
@media (max-width:1024px){
  .featured{grid-template-columns:340px 1fr}
}
@media (max-width:768px){
  .wrap{grid-template-columns:minmax(0,1fr); gap:32px; padding-top:24px}
  .menu-btn{display:flex}
  .search{order:3; max-width:none; flex-basis:100%; margin-left:0}
  .bar{flex-wrap:wrap; height:auto; padding:10px 0}
  .row{grid-template-columns:220px 1fr}
  .featured{grid-template-columns:1fr}
  .pagehead h1{font-size:27px}
}
@media (max-width:480px){
  .shell{padding:0 16px}
  .row{grid-template-columns:1fr; padding:16px}
  .row::before{top:0; left:0; right:0; bottom:auto; width:auto; height:4px; border-radius:var(--r-card) var(--r-card) 0 0}
  .rbody h3{font-size:18px}
  .featured h2{font-size:22px}
  .pagehead h1{font-size:24px}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none !important}
  .row:hover{transform:none}
}

/* ============ gnuboard dynamic supplements (Soft Pastel Wellness) ============ */
.thumb img{width:100%;height:100%;object-fit:cover;display:block;border-radius:var(--r-img);}
.pager strong,.pager .now{min-width:44px;min-height:44px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--accent);background:var(--accent);border-radius:var(--r-pill);color:#fff;font-weight:700;font-size:15px;}
.board-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:24px;padding-top:16px;border-top:1px solid var(--border);}
.board-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.board-search select,.board-search input[type=text]{height:44px;padding:0 14px;font-family:var(--font);font-size:14px;background:var(--surface);color:var(--text);border:1.5px solid var(--border);border-radius:var(--r-input);outline:none;}
.board-search select:focus,.board-search input[type=text]:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--mint);}
.btn-write{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;background:var(--accent);color:#fff;border-radius:var(--r-pill);font-weight:600;font-size:15px;border:none;cursor:pointer;text-decoration:none;}
.btn-write:hover{background:var(--accent-h);color:#fff;}
.btn-search{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;background:var(--surface);color:var(--accent);border:1.5px solid var(--accent);border-radius:var(--r-pill);font-weight:600;font-size:15px;cursor:pointer;}
.btn-search:hover{background:var(--mint);}
/* board detail (view) */
.hm-board-view{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);box-shadow:var(--s2);padding:28px;margin:32px auto 24px;max-width:920px;}
.hm-view-head{border-bottom:2px solid var(--border);padding-bottom:16px;margin-bottom:20px;}
.hm-view-head .hm-board-kicker{font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin:0 0 8px;}
.hm-view-head h1{font-size:26px;font-weight:700;line-height:1.3;color:var(--text);margin:0;}
.hm-view-meta{display:flex;gap:14px;margin-top:12px;font-family:var(--mono);font-size:13px;color:var(--muted);flex-wrap:wrap;}
.hm-view-content{font-size:16px;line-height:1.85;color:var(--text);padding:8px 0 24px;border-bottom:1px solid var(--border);}
.hm-view-content img{max-width:100%;height:auto;border-radius:var(--r-card);}
.hm-view-content p{margin:0 0 16px;}
.hm-view-files{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0;}
.hm-view-files a{font-family:var(--mono);font-size:13px;border:1px solid var(--border);border-radius:var(--r-pill);padding:6px 14px;color:var(--accent);background:var(--surface);}
.hm-view-files a:hover{background:var(--mint);}
.hm-view-neighbor{display:flex;flex-direction:column;gap:8px;margin:20px 0;}
.hm-view-neighbor a{display:flex;gap:12px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--r-card);background:var(--bg);transition:background var(--micro);}
.hm-view-neighbor a:hover{background:var(--mint);}
.hm-view-neighbor span{font-family:var(--mono);font-size:12px;color:var(--muted);flex:0 0 auto;}
.hm-view-neighbor strong{font-weight:500;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hm-view-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px;}
.hm-view-actions a{min-height:40px;display:inline-flex;align-items:center;padding:0 18px;border:1.5px solid var(--border);border-radius:var(--r-pill);font-weight:500;font-size:14px;color:var(--text);background:var(--surface);}
.hm-view-actions a:hover{background:var(--mint);border-color:var(--accent);color:var(--accent);}
.hm-view-actions a.is-primary{background:var(--accent);color:#fff;border-color:var(--accent);}
.hm-view-actions a.is-primary:hover{background:var(--accent-h);}
.hm-view-vote{display:flex;gap:10px;margin:16px 0;}
.hm-view-vote a{padding:8px 16px;border:1.5px solid var(--border);border-radius:var(--r-pill);color:var(--text);font-family:var(--mono);font-size:13px;}
.hm-view-vote a:hover{background:var(--mint);border-color:var(--accent);}
