/* ===== AIForALab 교수 공유 게시판 ===== */
:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --border: #e4e7ee;
  --border-strong: #d3d8e3;
  --text: #1f2430;
  --text-soft: #5a6276;
  --muted: #8a93a6;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef0fe;
  --danger: #dc2626;
  --danger-soft: #fde8e8;
  --shadow: 0 1px 3px rgba(20, 24, 40, .06), 0 1px 2px rgba(20, 24, 40, .04);
  --shadow-md: 0 4px 16px rgba(20, 24, 40, .08);
  --radius: 12px;
  --radius-sm: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161c;
    --surface: #1c1f27;
    --surface-2: #22262f;
    --border: #2c313c;
    --border-strong: #3a4150;
    --text: #e7e9ef;
    --text-soft: #aeb6c6;
    --muted: #7d8698;
    --primary: #818cf8;
    --primary-dark: #6571f0;
    --primary-soft: #262a3d;
    --danger: #f87171;
    --danger-soft: #3a2326;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 22px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); font-weight: 400; }

/* ---- header ---- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px;
}
.brand-mark-lg { width: 56px; height: 56px; border-radius: 15px; font-size: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; }
.brand-text small { color: var(--muted); font-size: 11.5px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-link {
  color: var(--text-soft); padding: 7px 11px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
}
.nav-link:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav-cta { background: var(--primary); color: #fff; }
.nav-cta:hover { background: var(--primary-dark); color: #fff; }
.nav-muted { color: var(--muted); }
.nav-who { color: var(--text-soft); font-size: 13px; padding: 0 4px; font-weight: 600; }
.nav-search input {
  width: 130px; padding: 7px 11px; border: 1px solid var(--border-strong);
  border-radius: 20px; background: var(--surface-2); color: var(--text); font-size: 13.5px;
}
.nav-search input:focus { outline: none; border-color: var(--primary); width: 170px; }

.main { padding: 26px 18px 60px; }
.flash {
  background: var(--primary-soft); color: var(--primary-dark);
  border: 1px solid var(--primary); border-radius: var(--radius-sm);
  padding: 11px 15px; margin-bottom: 18px; font-size: 14px; font-weight: 500;
}
@media (prefers-color-scheme: dark) { .flash { color: var(--text); } }

/* ---- toolbar / filters ---- */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; flex: 1; }
.chip {
  padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-soft); font-size: 13.5px; font-weight: 600;
}
.chip:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.chip-on { background: var(--text); border-color: var(--text); color: var(--surface); }
.chip-on:hover { color: var(--surface); }

.search-note { font-size: 14px; color: var(--text-soft); margin: -4px 0 16px; }
.clear-link { margin-left: 8px; font-size: 13px; }

/* ---- post list ---- */
.post-list { list-style: none; margin: 0; padding: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-row {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 15px 18px; transition: background .12s;
}
.post-row:last-child { border-bottom: 0; }
.post-row:hover { background: var(--surface-2); }
.post-row.pinned { background: linear-gradient(0deg, var(--surface), var(--primary-soft)); }
.post-row-main { flex: 1; min-width: 0; }
.post-row-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.post-row-title {
  display: block; font-size: 16px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.post-row-title:hover { color: var(--primary); text-decoration: none; }
.post-row-sub { margin-top: 4px; }
.excerpt { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; min-width: 96px; }
.badges { display: flex; gap: 8px; }
.mini { font-size: 12px; color: var(--text-soft); white-space: nowrap; }
.post-row-info { font-size: 12px; color: var(--muted); white-space: nowrap; }
.post-row-info .author { color: var(--text-soft); font-weight: 600; }
.dot { margin: 0 4px; color: var(--border-strong); }
.pin { font-size: 13px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 11.5px; font-weight: 700; }
.badge-cat { letter-spacing: .2px; }

/* ---- empty / pager ---- */
.empty { text-align: center; padding: 70px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty p { color: var(--muted); margin-bottom: 18px; font-size: 15px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.page-link { padding: 7px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); font-size: 13.5px; }
.page-link:hover { border-color: var(--primary); text-decoration: none; }
.page-link.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .12s;
}
.btn:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-danger { background: var(--surface); border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text-soft); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 4px; line-height: 1; }
.link-btn:hover { color: var(--danger); }

/* ---- login ---- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md); padding: 34px 30px; }
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand .brand-mark-lg { margin: 0 auto 14px; }
.login-brand h1 { font-size: 19px; margin: 0 0 4px; }
.login-brand p { margin: 0; font-size: 13px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.login-form input { padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-size: 15px; }
.login-form input:focus { outline: none; border-color: var(--primary); }
.login-foot { text-align: center; margin: 18px 0 0; font-size: 12.5px; }
.alert { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---- forms ---- */
.page-title { font-size: 22px; margin: 0 0 20px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.fld input, .fld select, .fld textarea, .comment-form input, .comment-form textarea, .link-row input {
  padding: 10px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); font-size: 14.5px; font-family: inherit; width: 100%;
}
.fld input:focus, .fld select:focus, .fld textarea:focus, .comment-form *:focus, .link-row input:focus { outline: none; border-color: var(--primary); }
.fld textarea { resize: vertical; line-height: 1.6; }
.form-grid { display: flex; gap: 14px; }
.fld-cat { width: 160px; }
.fld-author { flex: 1; }
.fld-group { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0; }
.fld-group legend { font-size: 13px; font-weight: 700; color: var(--text-soft); padding: 0 6px; }
.link-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.link-row input[type=url] { flex: 2; }
.link-row input[type=text] { flex: 1; }
.fld-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-soft); font-weight: 600; }
.form-actions { display: flex; gap: 10px; }
.file-edit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.file-edit-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.del-file { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.del-x { color: var(--danger); font-size: 12px; font-weight: 700; }

/* ---- post view ---- */
.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.post-head { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 22px; }
.post-head-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.post-h1 { font-size: 25px; margin: 0 0 12px; line-height: 1.35; }
.post-byline { font-size: 13px; color: var(--muted); }
.post-byline .author { color: var(--text-soft); font-weight: 700; }
.post-body { font-size: 15.5px; color: var(--text); word-break: break-word; }
.md p { margin: 0 0 14px; }
.md h3, .md h4, .md h5 { margin: 22px 0 10px; line-height: 1.35; }
.md ul, .md ol { margin: 0 0 14px; padding-left: 24px; }
.md li { margin: 3px 0; }
.md blockquote { margin: 0 0 14px; padding: 6px 16px; border-left: 3px solid var(--primary); background: var(--surface-2); color: var(--text-soft); border-radius: 0 6px 6px 0; }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
.md code.icode { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: 13.5px; font-family: "SFMono-Regular", Consolas, monospace; border: 1px solid var(--border); }
.md pre.codeblock { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; margin: 0 0 14px; }
.md pre.codeblock code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.md a { word-break: break-all; }

/* ---- attachments ---- */
.attach-block { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.attach-h { font-size: 15px; margin: 0 0 12px; color: var(--text-soft); }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.link-card { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.link-card:hover { border-color: var(--primary); text-decoration: none; }
.link-label { font-weight: 600; color: var(--text); }
.link-url { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.img-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.img-gallery img { max-width: 220px; max-height: 220px; border-radius: var(--radius-sm); border: 1px solid var(--border); object-fit: cover; }
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.file-dl { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); }
.file-dl:hover { border-color: var(--primary); text-decoration: none; }
.file-ico { color: var(--primary); font-weight: 700; }
.file-name { flex: 1; word-break: break-all; }
.file-size { font-size: 12.5px; }

.post-foot-actions { display: flex; align-items: center; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.post-foot-actions .spacer { flex: 1; }
.inline-form { display: inline; }

/* ---- comments ---- */
.comments { margin-top: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.comment-list { list-style: none; margin: 0 0 20px; padding: 0; }
.comment { padding: 13px 0; border-bottom: 1px solid var(--border); }
.comment:first-child { padding-top: 0; }
.comment-head { display: flex; align-items: center; gap: 4px; font-size: 12.5px; margin-bottom: 5px; }
.comment-head .author { color: var(--text); font-weight: 700; }
.cmt-del { margin-left: auto; }
.comment-body { font-size: 14.5px; color: var(--text); word-break: break-word; }
.comment-form { border-top: 1px solid var(--border); padding-top: 16px; }
.comment-form-row { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-row .cmt-author { flex: 0 0 130px; width: 130px; }
.comment-form-row textarea { flex: 1 1 auto; width: auto; min-width: 0; resize: vertical; }
.comment-form-actions { margin-top: 10px; text-align: right; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 20px 0; margin-top: 40px; }
.site-footer .wrap { color: var(--muted); font-size: 12.5px; text-align: center; }
.foot-sep { margin: 0 8px; }

/* ---- responsive ---- */
@media (max-width: 600px) {
  .brand-text small { display: none; }
  .nav-search { display: none; }
  .nav-who { display: none; }
  .post-row-side { min-width: 70px; }
  .excerpt { display: none; }
  .form-grid { flex-direction: column; }
  .fld-cat { width: 100%; }
  .comment-form-row { flex-direction: column; }
  .cmt-author { width: 100%; }
  .post { padding: 20px 16px; }
  .img-gallery img { max-width: 45%; }
}

/* ══════════════════════════════════════════════════════════════
   한우 시장 AI 포털 테마 — 소팔때 앱과 같은 색·서체를 쓴다.
   ══════════════════════════════════════════════════════════════ */
:root {
  --bg: #EFEAE0;
  --surface: #FCFAF4;
  --surface-2: #F7F2E8;
  --border: rgba(23,20,15,.11);
  --border-strong: rgba(23,20,15,.20);
  --text: #17140F;
  --text-soft: #5E574C;
  --muted: #8A8276;
  --primary: #C1452C;
  --primary-dark: #A5381F;
  --primary-soft: #FAEAE3;
  --danger: #C1452C;
  --danger-soft: #FAE7E2;
  --shadow: 0 1px 3px rgba(23,20,15,.06), 0 1px 2px rgba(23,20,15,.04);
  --shadow-md: 0 4px 18px rgba(23,20,15,.10);
  --gold: #B8890C;
  --grn: #1E6E4F;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13110D;
    --surface: #1C1914;
    --surface-2: #100E0B;
    --border: rgba(242,237,226,.13);
    --border-strong: rgba(242,237,226,.24);
    --text: #F2EDE2;
    --text-soft: #D6CFC2;
    --muted: #968E81;
    --primary: #E8836A;
    --primary-dark: #D9705A;
    --primary-soft: #2E1712;
    --danger: #E8836A;
    --danger-soft: #2E1712;
    --shadow: 0 1px 3px rgba(0,0,0,.4);
    --shadow-md: 0 6px 22px rgba(0,0,0,.45);
    --gold: #E8BC4A;
    --grn: #5FBE91;
  }
}
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}
.brand-mark { background: transparent !important; font-size: 22px; }
.brand-text strong { letter-spacing: -.02em; }
.nav-link.on { color: var(--primary); font-weight: 700; }

/* ── 상태 배지 ── */
.badge-st {
  background: transparent;
  border: 1px solid;
  font-weight: 700;
}
.toolbar-sub { margin-top: -4px; padding-top: 0; border-top: 0; }
.filter-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--muted); margin-right: 4px; text-transform: uppercase;
}
.chip-sm { font-size: 12px; padding: 3px 10px; }

/* ── 보기 화면의 즉시 상태 변경 ── */
.status-quick { display: inline-flex; margin-left: auto; }
.status-quick select {
  font: inherit; font-size: 12.5px; padding: 3px 8px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--text-soft); cursor: pointer;
}
.post-head-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

/* ── 페이지 머리 ── */
.page-head { margin-bottom: 20px; }
.page-h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 6px; }
.page-sub { color: var(--text-soft); font-size: 14.5px; margin: 0; max-width: 64ch; line-height: 1.65; }

/* ── 이력 입력 폼 ── */
.cl-form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 26px; box-shadow: var(--shadow);
}
.cl-form-toggle {
  cursor: pointer; padding: 13px 18px; font-weight: 700; font-size: 14.5px;
  color: var(--primary); list-style: none;
}
.cl-form-toggle::-webkit-details-marker { display: none; }
.cl-form { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.cl-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cl-form label, .cl-full { display: flex; flex-direction: column; gap: 5px; font-size: 13px;
  font-weight: 700; color: var(--text-soft); flex: 1 1 160px; }
.cl-full { flex: 1 1 100%; }
.cl-form input, .cl-form select, .cl-form textarea {
  font: inherit; font-size: 14px; font-weight: 400; color: var(--text);
  padding: 9px 11px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--surface-2); width: 100%;
}
.cl-form textarea { resize: vertical; line-height: 1.6; }
.cl-form-actions { display: flex; justify-content: flex-end; }

/* ── 이력 목록 ── */
.cl-list { list-style: none; padding: 0; margin: 0; }
.cl-month {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--muted);
  text-transform: uppercase; margin: 26px 0 10px; padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
.cl-month:first-child { margin-top: 0; }
.cl-item { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.cl-item:last-child { border-bottom: 0; }
.cl-date {
  flex: none; width: 46px; font-size: 13px; font-weight: 700; color: var(--muted);
  font-variant-numeric: tabular-nums; padding-top: 2px;
}
.cl-body { flex: 1; min-width: 0; }
.cl-top { display: flex; gap: 9px; align-items: baseline; flex-wrap: wrap; }
.badge-target {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-soft); font-size: 11.5px; font-weight: 700; flex: none;
}
.cl-summary { font-size: 15px; font-weight: 600; line-height: 1.55; }
.cl-detail {
  font-size: 13.8px; color: var(--text-soft); line-height: 1.65;
  margin: 7px 0 0; white-space: normal;
}
.cl-meta {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); margin-top: 7px;
}
.cl-del { display: inline; }
.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--muted); text-decoration: underline;
}
.linklike:hover { color: var(--danger); }

@media (max-width: 560px) {
  .cl-item { gap: 11px; }
  .cl-date { width: 40px; font-size: 12.5px; }
  .status-quick { margin-left: 0; }
}

/* ══════════════════════════════════════════════════════════════
   한글 줄바꿈 — 글자 단위로 끊기지 않게 한다.
   CSS 기본값은 한글을 글자 사이 아무 데서나 끊어서, 칸이 좁아지면
   '의/견', '로그아/웃' 처럼 한두 글자짜리 줄이 생긴다.
   keep-all 은 띄어쓰기에서만 끊고, 긴 URL 등은 break-word 로 처리한다.
   ══════════════════════════════════════════════════════════════ */
body, input, select, textarea, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 헤더: 좁아지면 글자를 쪼개지 말고 줄로 접는다 */
.header-inner { flex-wrap: wrap; row-gap: 10px; }
.nav { flex-wrap: wrap; row-gap: 7px; align-items: center; }
.nav-link, .nav-cta, .nav-who, .btn, .chip, .badge {
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand { flex: 0 1 auto; min-width: 0; }
.brand-text { min-width: 0; }
.brand-text strong { white-space: nowrap; }
.brand-text small {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.nav-search { flex: 0 1 auto; min-width: 0; }
.nav-search input { min-width: 110px; width: 100%; }

/* 목록·본문에서도 같은 규칙 */
.post-row-title, .cl-summary, .post-h1, .page-h1 { word-break: keep-all; }
.excerpt { word-break: keep-all; }
.link-url, .post-body code, .post-body pre { word-break: break-all; }

@media (max-width: 720px) {
  .nav-search { order: 10; flex: 1 1 100%; }
  .nav-search input { width: 100%; }
}

/* 필수 입력 표시 */
.req{color:var(--danger);font-weight:800;margin-left:2px}
