/* 안내·공지 페이지 (서버 렌더) — 웹 디자인 "급식실 게시판"과 같은 모양 (src/components/web/web.scss 와 짝) */
:root {
  --paper: #f6f3ea;
  --paper-2: #efe9db;
  --ink: #111315;
  --ink-soft: #2b2f33;
  --muted: #7d7a70;
  --rule: #d9d2c1;
  --lime: #ccff33;
  --tomato: #ff5a36;
  --display: "Black Han Sans", "Pretendard Variable", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* 맨 아래에서 더 당겨도(오버스크롤) 푸터 아래로 크림 배경이 올라오지 않게: 위쪽은 종이색, 아래쪽은 푸터색 */
html { background: linear-gradient(to bottom, #f6f3ea 50%, #111315 50%); overscroll-behavior-y: none; }
body {
  color: var(--ink);
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(17, 19, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 21, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  /* 내용이 짧아도 푸터가 화면 맨 아래에 붙도록 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
a { color: inherit; }

/* 헤더 */
.web-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 234, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 2px solid var(--ink);
}
.web-head__inner {
  display: flex; align-items: center; gap: 28px;
  max-width: 1180px; height: 68px; margin: 0 auto; padding: 0 24px;
}
.web-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: var(--ink); }
.web-logo__mark {
  display: grid; grid-template-columns: 14px 8px; grid-template-rows: 8px 8px; gap: 3px;
  padding: 4px; border: 2px solid var(--ink); border-radius: 7px; background: #fff;
}
.web-logo__mark i { display: block; border-radius: 2px; background: var(--ink); }
.web-logo__mark i:first-child { grid-row: span 2; background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink); }
.web-logo__word { font-family: var(--display); font-size: 24px; line-height: 1; }
.web-logo__word b { font-weight: 400; margin-left: 2px; background: linear-gradient(transparent 52%, var(--lime) 52%, var(--lime) 92%, transparent 92%); }
/* 메뉴는 잘리지 않게 좁으면 다음 줄로 */
.web-nav { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
.web-nav__link {
  flex: none; padding: 8px 12px; border-radius: 999px;
  font-size: 14.5px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-soft); text-decoration: none;
  transition: background 160ms ease;
}
.web-nav__link:hover { background: var(--paper-2); }
.web-nav__link--on, .web-nav__link--on:hover { background: var(--ink); color: var(--lime); }

/* 본문 — 잉크 테두리 종이 한 장 */
.doc-wrap { flex: 1 0 auto; padding: 40px 24px 72px; }
.doc {
  max-width: 760px; margin: 0 auto; padding: 44px 48px 52px;
  border: 2px solid var(--ink); border-radius: 24px; background: #fff;
  box-shadow: 8px 8px 0 var(--ink);
}
.doc h1 {
  margin: 0 0 16px; font-family: var(--display); font-weight: 400;
  font-size: 38px; line-height: 1.22; letter-spacing: -0.01em;
}
.doc h2 {
  margin: 44px 0 12px; padding-top: 22px; border-top: 2px dashed var(--rule);
  font-size: 21px; letter-spacing: -0.02em;
}
.doc h3 { margin: 26px 0 6px; font-size: 17px; }
.doc h3::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink); vertical-align: 1px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc blockquote { margin: 18px 0; padding: 12px 16px; border-left: 4px solid var(--ink); background: var(--paper); border-radius: 0 12px 12px 0; }
.doc a:not(.btn) { text-decoration: none; background: linear-gradient(transparent 62%, rgba(204, 255, 51, 0.8) 62%); font-weight: 700; }
.doc strong { background: linear-gradient(transparent 62%, rgba(204, 255, 51, 0.55) 62%); }
.lead { font-size: 17.5px; color: var(--muted) !important; margin-top: 0; }
.empty { padding: 40px 0; text-align: center; color: var(--muted) !important; }

.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px; margin-top: 12px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--lime);
  font-weight: 900; text-decoration: none; box-shadow: 4px 4px 0 var(--lime);
}

.table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; font-size: 15px; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px dashed var(--rule); text-align: left; }
.table tr:last-child td { border-bottom: none; }
.table th { background: var(--ink); color: var(--lime); font-weight: 900; }
.table td:first-child { width: 72px; font-family: var(--display); font-size: 18px; }

.post-list { list-style: none; padding: 0 !important; margin: 24px 0; display: grid; gap: 10px; }
.post-list li { margin: 0; }
.post-list a {
  display: grid; gap: 4px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: 16px;
  background: #fff; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease;
}
.post-list a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.post-list strong { font-size: 17px; line-height: 1.45; color: var(--ink); background: none; }
.post-list__cat { font-size: 12px; font-weight: 900; color: var(--muted); }
.post-list__sum { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.post-list time { font-size: 12.5px; color: var(--muted); }

.crumb { font-size: 13.5px; font-weight: 800; color: var(--muted); }
.crumb a { background: none !important; }
.article__cat {
  display: inline-block; margin: 14px 0 0; padding: 3px 10px; border-radius: 999px;
  background: var(--ink); color: var(--lime) !important; font-size: 12px; font-weight: 800;
}
.article__meta { font-size: 13.5px; color: var(--muted) !important; margin-top: -4px; }
.article__body { margin-top: 26px; font-size: 16.5px; }

/* 푸터 */
.web-foot { border-top: 2px solid var(--ink); background: var(--ink); color: #c9cdd0; }
.web-foot__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 24px 48px;
  max-width: 1180px; margin: 0 auto; padding: 40px 24px 48px;
}
.web-foot__brand .web-logo__word { color: #fff; font-size: 22px; }
/* 어두운 푸터에서는 형광펜 밑줄 대신 라임 칸을 꽉 채워 "급식"이 보이게 */
.web-foot__brand .web-logo__word b { color: var(--ink); background: var(--lime); padding: 2px 5px 1px; border-radius: 5px; }
.web-foot__brand p { max-width: 34em; margin: 14px 0 0; font-size: 13.5px; line-height: 1.7; }
.web-foot__links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 28px; align-content: start; }
.web-foot__links a { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.web-foot__links a:hover { color: var(--lime); }
.web-foot__copy { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px dashed #3a3f44; font-size: 12px; color: #8a9094; }

@media (max-width: 640px) {
  .web-head__inner { padding: 10px 16px; }
  .doc-wrap { padding: 20px 12px 48px; }
  .doc { padding: 28px 20px 34px; border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); }
  .doc h1 { font-size: 29px; }
  .web-foot__inner { grid-template-columns: 1fr; padding: 32px 18px 40px; }
}

/* 입시·자격증 일정 카드 */
.xlist { list-style: none; padding: 0 !important; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.xcard {
  display: flex; flex-direction: column; gap: 4px; margin: 0 !important; padding: 16px 16px 14px;
  border: 2px solid var(--ink); border-radius: 16px; background: #fff;
}
.xcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xcard__dday { font-family: var(--display); font-size: 20px; line-height: 1; }
.xcard__stage { padding: 3px 9px; border-radius: 999px; background: var(--paper); font-size: 11.5px; font-weight: 900; color: var(--ink-soft); }
.xcard--now .xcard__stage { background: var(--lime); color: var(--ink); }
.xcard--exam .xcard__stage { background: var(--ink); color: var(--lime); }
.xcard--now { box-shadow: 4px 4px 0 var(--lime); }
.xcard__name { margin-top: 6px; font-size: 16.5px; font-weight: 900; color: var(--ink); background: none !important; }
.xcard__round { font-size: 13px; color: var(--muted); }
.xcard__dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--rule); font-size: 13px; }
.xcard__dl dt { font-weight: 800; color: var(--muted); }
.xcard__dl dd { margin: 0; color: var(--ink-soft); }
.xsrc { font-size: 12.5px; color: var(--muted) !important; }

/* 봉사활동·체험 찾기 */
.vtabs { display: flex; gap: 6px; margin: 18px 0 10px; }
.vtab { padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 900; text-decoration: none; background: #fff !important; }
.vtab--on { background: var(--ink) !important; color: var(--lime); }
.vform { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.vform select, .vform input { height: 46px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.vform input { flex: 1 1 200px; min-width: 0; }
.vform button { height: 46px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 12px; background: var(--ink); color: var(--lime); font: inherit; font-weight: 900; cursor: pointer; }
.vcount { margin: 10px 0 0; font-size: 13px; font-weight: 800; color: var(--muted) !important; }
.vlist { list-style: none; padding: 0 !important; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.vlist li { margin: 0; }
.vcard {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px;
  border: 2px solid var(--ink); border-radius: 16px; background: #fff !important; text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.vcard:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.vcard__when { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: var(--lime); font-size: 12px; font-weight: 900; color: var(--ink); }
.vcard__name { margin-top: 4px; font-size: 16px; line-height: 1.4; color: var(--ink); background: none !important; }
.vcard__org { font-size: 13px; color: var(--ink-soft); }
.vcard__meta { font-size: 12.5px; color: var(--muted); }
.vpager { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; font-weight: 800; }
.vpager a { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff !important; text-decoration: none !important; }
.vdl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 18px 0; padding: 18px; border: 2px dashed var(--rule); border-radius: 16px; }
.vdl dt { font-weight: 900; color: var(--muted); }
.vdl dd { margin: 0; color: var(--ink-soft); }

/* 햄버거 메뉴 (좁은 화면) */
.web-burger {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 42px; height: 42px; margin-left: auto; padding: 0 10px;
  border: 2px solid var(--ink); border-radius: 12px; background: #fff; cursor: pointer;
}
.web-burger span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 180ms ease, opacity 180ms ease; }
@media (max-width: 1180px) {
  .web-burger { display: flex; }
  .web-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px;
    padding: 10px 16px 16px; background: var(--paper); border-bottom: 2px solid var(--ink);
    box-shadow: 0 12px 24px rgba(17, 19, 21, 0.12);
  }
  .web-nav__link { padding: 12px 14px; border-radius: 12px; font-size: 16px; }
  .web-head.is-open .web-nav { display: flex; }
  .web-head.is-open .web-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .web-head.is-open .web-burger span:nth-child(2) { opacity: 0; }
  .web-head.is-open .web-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* 좁은 폰(≈360px 이하)에서도 아무것도 옆으로 밀려나지 않게 */
.doc, .doc * { min-width: 0; }
.doc { overflow-wrap: anywhere; }
.vtab { white-space: nowrap; }
.vform select { flex: 0 0 auto; }
.vform input { flex: 1 1 160px; }
.vform button { flex: 0 0 auto; }
.table { table-layout: fixed; }
@media (max-width: 400px) {
  .doc-wrap { padding: 16px 8px 40px; }
  .doc { padding: 22px 14px 28px; border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
  .doc h1 { font-size: 25px; }
  .vtab { padding: 7px 12px; font-size: 14px; }
  .web-head__inner { padding: 8px 12px; }
  .web-logo__word { font-size: 21px; }
}
