/* frontend/panseo/base.css — 판서. 독립 페이지 기본 스타일 = 원본 globals.css 이식본.
   원본 핸드오프(.superpowers/sdd/2026-08-15-panseo-community-core/panseo-src/app/globals.css)를
   그대로 옮겼다(클래스명·값 무변경). Next 전용 의존은 원본에 없었다 —
   폰트는 원본이 선언한 Pretendard 시스템 스택 그대로.

   ⚠ 카스케이드 순서: 원본 번들 순서는 globals → 뷰별 CSS → readability 다.
   그래서 readability.css 는 이 파일에서 분리해 /panseo/readability.css 로 두고,
   panseo.html 이 **뷰 CSS 들 뒤 · 마지막 스타일시트**로 링크한다. 결과적으로
   readability ∩ community-enhancements 의 12개 충돌 선택자
   (.attachment-card / .comment / .comment-author small / .comment-author strong /
    .discussion / .draft-attachment-list li / .draft-attachment-list strong /
    .following-note / .no-comments / .paste-zone small / .reply / .reply > p)가
   원본과 동일하게 readability 우선으로 해결된다.
   ⚠ 뷰별 CSS(community.css·jobs.css …)는 이 파일 뒤, readability.css 앞에 링크할 것. */
:root {
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #171717;
  --muted: #706d67;
  --faint: #706d67;
  --line: #e5e5e5;
  --line-dark: #bdbdbd;
  --orange: #c9471b;
  --orange-dark: #a83a16;
  --orange-soft: #fff0e9;

  /* ── 테마 토큰(2026-10-17 판서 먹 종이 다크). 라이트 값은 기존 하드코딩 값 그대로다.
     블랙 값은 readability.css 의 :root[data-theme="black"] 블록 한 곳에서 다시 정한다. ── */
  --on-ink: #ffffff;            /* 잉크 채움(선택 칩·잉크 버튼·아바타) 위 글자 */
  --on-orange: #ffffff;         /* 오렌지 채움 위 글자 */
  --orange-text: var(--orange); /* 오렌지를 글자로 쓸 때 */
  --orange-dark-text: var(--orange-dark);
  --orange-hot: #d94b1d;        /* 광고 편집기 강조 채움 */
  --orange-hot-text: #d94b1d;
  --orange-tint: #fff8f4;
  --orange-tint-2: #fff4ef;
  --orange-tint-line: #efc8b9;
  --block: #171717;             /* 먹 블록(소개·추천글·달력·안내 상자·광고): 블랙에서도 어둡게 남는다 */
  --on-block: #ffffff;
  --topbar-bg: rgba(255, 255, 255, 0.97);
  --hover-veil: rgba(255, 255, 255, 0.45);
  --row-hover: rgba(0, 0, 0, 0.02);
  --wash: #fafafa;
  --wash-2: #f7f7f7;
  --wash-3: #f3f3f3;
  --wash-4: #f5f5f5;
  --wash-hover: #fbfbfb;
  --checker: #f4f4f2;
  --rule-band: #eeeeee;
  --disabled-fill: #eeeeee;
  --done-fill: #e6e2da;
  --placeholder: #aaa69e;
  --text-body: #505050;
  --text-reply: #3f3f3f;
  --text-summary: #4b4b4b;
  --text-answer: #353432;
  --text-detail: #343330;
  --text-about: #373633;
  --text-caution: #5f5853;
  --text-op: #604e43;
  --op-line: #7e6b5e;
  --danger-fill: #b3271e;
  --danger-text: #b3271e;
  --warm-muted: #77736c;
  --warm-faint: #8e8a82;
  --warm-label: #6f6b64;
  --warm-line: #ddd9d0;
  --warm-control: #aaa69e;
  --warm-control-2: #a7a39b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font: inherit;
}

ol,
ul {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

:root[data-theme="black"] {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Pretendard Variable", SUIT, "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.018em;
  word-break: keep-all;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

::selection {
  color: var(--on-orange);
  background: var(--orange);
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

@keyframes view-loading-spin { to { transform: rotate(360deg); } }

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--ink);
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto auto minmax(210px, 1fr) auto;
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
  gap: 34px;
}

.wordmark {
  padding: 0;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1;
}

.wordmark .ps-brand-logo {
  height: 27px;
  width: auto;
  max-width: none;
}

:root[data-theme="black"] .ps-brand-logo {
  content: url("/panseo/brand-wordmark-dark.png?v=1acfc8deabb62eba");
}

.wordmark span,
.site-footer strong span {
  color: var(--orange-text);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-nav button {
  position: relative;
  padding: 19px 1px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.primary-nav button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.primary-nav button:hover,
.primary-nav button.active {
  color: var(--ink);
}

.primary-nav button.active::after {
  background: var(--orange);
}

.searchbox {
  display: flex;
  align-items: center;
  width: min(100%, 360px);
  margin-left: auto;
  border-bottom: 1px solid var(--control-line);
  color: var(--muted);
}

.searchbox > span {
  padding-right: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  transform: rotate(-15deg);
}

.searchbox input {
  width: 100%;
  padding: 9px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.searchbox input::placeholder {
  color: var(--muted);
}

.searchbox input:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.searchbox button {
  padding: 4px;
  color: var(--muted);
  font-size: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-button {
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 650;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
}

.primary-button {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--on-orange);
}

.primary-button:hover {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
}

.header-actions .primary-button span {
  margin-left: 8px;
  font-size: 17px;
  font-weight: 400;
}

.community-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 680px) minmax(240px, 1fr);
  align-items: start;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 92px;
  gap: 34px;
}

.subject-rail,
.right-rail {
  position: sticky;
  top: 98px;
}

.rail-title {
  margin: 0 0 12px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.subject-list {
  display: flex;
  flex-direction: column;
}

.subject-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  color: var(--muted);
  text-align: left;
  font-size: 15px;
}

.subject-list button:hover,
.subject-list button.active {
  color: var(--ink);
  font-weight: 750;
}

.subject-list button.active span:last-child {
  color: var(--orange-text);
}

.rail-rule {
  width: 28px;
  height: 1px;
  margin: 30px 0 17px;
  background: var(--ink);
}

.rail-caption {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.7;
}

.mobile-subjects {
  display: none;
}

.feed-column {
  min-width: 0;
}

.quick-compose {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 11px 13px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: left;
}

.quick-compose:hover {
  background: var(--hover-veil);
}

.mini-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.quick-compose > span:nth-child(2) {
  color: var(--muted);
  font-size: 14px;
}

.quick-plus {
  margin-left: auto;
  color: var(--orange-text);
  font-size: 22px;
  font-weight: 300;
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
}

.kind-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kind-filter label {
  color: var(--faint);
  font-size: 11px;
}

.kind-filter select {
  padding: 6px 24px 6px 7px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.result-note {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.result-note strong {
  color: var(--ink);
}

.featured-post {
  margin: 28px 0 6px;
  padding: 27px 28px 24px;
  background: var(--block);
  color: var(--on-block);
}

.featured-post > p {
  max-width: 580px;
  margin: 16px 0 0;
  color: #c7c4bd;
  font-size: 14px;
  line-height: 1.75;
}

.post-item {
  padding: 25px 2px 16px;
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 150ms ease;
}

.post-item:hover,
.post-item.is-open {
  background: var(--paper);
}

.post-item:hover {
  padding-right: 12px;
  padding-left: 12px;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.teacher-avatar {
  background: var(--ink);
  color: var(--on-ink);
}

.author-copy {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
  padding: 0;
  text-align: left;
  line-height: 1.35;
}

.author-copy:disabled {
  cursor: default;
}

.author-copy:not(:disabled):hover strong,
.instructor-name-button:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.author-copy strong,
.instructor strong {
  font-size: 13px;
  font-weight: 750;
}

.author-copy small,
.instructor small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 11px;
}

.verified-dot {
  display: inline-grid;
  width: 14px;
  height: 14px;
  margin-left: 5px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--on-orange);
  font-size: 9px;
  font-style: normal;
  line-height: 1;
  vertical-align: 1px;
}

/* 1단계 강사 배지(가입 role 기반). 재직 인증 ✓보다 낮은 시각 위계 — 외곽선만. */
.teacher-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  vertical-align: 2px;
}

/* 익명 안내 문구. identity.css(무수정 이식·해시 고정)가 base.css 뒤에 링크되므로
   .join-hint 단독 선택자는 그쪽 .join-help(9px)를 이기지 못한다 — 같은 노드가 달고 있는
   두 클래스를 함께 잡아 특이도로 이긴다. */
.join-help.join-hint {
  color: var(--muted);
  font-size: 12px;
}

.post-content {
  padding: 16px 0 2px 45px;
}

.post-title {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.45;
}

.post-title:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-content > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.attachment {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  text-align: left;
  font-size: 12px;
}

.attachment span {
  margin-right: 10px;
  color: var(--orange-dark-text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.attachment b {
  margin-left: auto;
  color: var(--ink);
  font-size: 15px;
}

.expanded-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.expanded-section > p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.85;
}

.post-actions {
  display: flex;
  align-items: center;
  padding: 11px 0 0 45px;
  gap: 18px;
}

.post-actions button {
  padding: 3px 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 650;
}

.post-actions button:hover,
.post-actions button.active {
  color: var(--orange-dark-text);
}

.post-actions button span {
  margin-right: 4px;
}

.post-actions .share-action {
  margin-left: auto;
  padding: 4px 8px;
  font-size: 15px;
}

.empty-state {
  padding: 70px 20px;
  border-bottom: 1px solid var(--line-dark);
  text-align: center;
}

.empty-state strong {
  font-size: 17px;
}

.empty-state p {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state button {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.right-rail {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rail-section {
  border-top: 2px solid var(--ink);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  border-bottom: 1px solid var(--line-dark);
}

.section-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-heading button {
  padding: 5px 0;
  color: var(--faint);
  font-size: 10px;
}

.waiting-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.waiting-list li {
  display: grid;
  grid-template-columns: 27px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 6px;
}

.question-number {
  padding-top: 1px;
  color: var(--orange-text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.waiting-list button {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
}

.waiting-list button > span {
  font-size: 12px;
  font-weight: 680;
  line-height: 1.5;
}

.waiting-list button:hover > span {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.waiting-list small {
  margin-top: 5px;
  color: var(--faint);
  font-size: 9px;
}

.instructor-list {
  display: flex;
  flex-direction: column;
}

.instructor {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  gap: 9px;
}

.instructor > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.3;
}

.instructor-avatar-button {
  padding: 0;
}

.instructor-name-button {
  width: max-content;
  max-width: 100%;
  padding: 0;
  text-align: left;
}

.instructor > button {
  padding: 5px 7px;
  border: 1px solid var(--control-line);
  font-size: 9px;
  font-weight: 750;
}

.instructor > button:hover,
.instructor > button.following {
  border-color: var(--orange);
  color: var(--orange-dark-text);
}

.community-rule {
  padding: 19px 18px 17px;
  border: 1px solid var(--line-dark);
  background: var(--white);
}

.community-rule > span {
  color: var(--orange-dark-text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.community-rule strong {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: -0.035em;
}

.community-rule p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.community-rule button {
  padding: 0;
  font-size: 10px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 45px;
  border-top: 1px solid var(--ink);
}

.site-footer strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.site-footer p {
  margin: 7px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

.site-footer nav button {
  padding: 0;
  color: var(--muted);
  font-size: 11px;
}

.mobile-nav {
  display: none;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(10, 10, 10, 0.64);
  overscroll-behavior: contain;
}

.modal {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 4px solid var(--orange);
  background: var(--paper);
}

.modal-backdrop-dismiss {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  cursor: default;
}

.compose-modal {
  padding: 28px 30px 30px;
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--ink);
}

.modal-label {
  display: block;
  margin-bottom: 4px;
  color: var(--orange-dark-text);
  font-size: 10px;
  font-weight: 800;
}

.modal-header h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.3;
}

.modal-close {
  padding: 0 4px;
  color: var(--muted);
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
}

.compose-modal form,
.compose-modal form > label,
.form-row label {
  display: flex;
  flex-direction: column;
}

.compose-modal form {
  gap: 17px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.compose-modal label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
}

.compose-modal input,
.compose-modal select,
.compose-modal textarea {
  width: 100%;
  border: 1px solid var(--control-line);
  border-radius: 0;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 450;
}

.compose-modal input,
.compose-modal select {
  height: 44px;
  padding: 0 12px;
}

.compose-modal textarea {
  padding: 12px;
  resize: vertical;
  line-height: 1.65;
}

.compose-modal input:focus,
.compose-modal select:focus,
.compose-modal textarea:focus {
  border-color: var(--ink);
}

.form-footnote {
  margin-top: -4px;
  color: var(--faint);
  font-size: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 5px;
  gap: 8px;
}

.secondary-button {
  border-color: var(--control-line);
  background: transparent;
}

.modal-close.standalone {
  position: absolute;
  top: 17px;
  right: 18px;
}

.toast {
  position: fixed;
  z-index: 150;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  border-left: 3px solid var(--orange);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12px;
}

@media (max-width: 1080px) {
  .topbar-inner,
  .community-grid,
  .site-footer {
    width: min(100% - 36px, 920px);
  }

  .topbar-inner {
    grid-template-columns: auto auto minmax(180px, 1fr) auto;
    gap: 22px;
  }

  .header-actions .text-button {
    display: none;
  }

  .header-actions .account-button {
    display: inline-flex;
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .primary-nav button:nth-child(5) {
    display: none;
  }

  .community-grid {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .right-rail {
    position: static;
    display: grid;
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
    margin-top: 15px;
  }

  .community-rule {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1081px) {
  .right-rail {
    max-height: calc(100dvh - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 780px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .topbar { padding-top: env(safe-area-inset-top); }

  .topbar-inner {
    display: flex;
    width: calc(100% - 28px);
    min-height: 58px;
    gap: 0;
  }

  .wordmark {
    font-size: 25px;
  }

  .wordmark .ps-brand-logo {
    height: 25px;
  }

  .primary-nav,
  .header-actions .text-button {
    display: none;
  }

  .searchbox {
    width: auto;
    min-width: 0;
    margin: 0 12px 0 auto;
    border: 0;
  }

  .searchbox > span {
    padding: 6px;
  }

  .searchbox input {
    display: block;
    width: 1px;
    min-width: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }

  .searchbox > button {
    display: none;
  }

  .searchbox:focus-within {
    position: absolute;
    z-index: 3;
    right: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 57px;
    margin: 0;
    padding: 0 15px;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
  }

  .searchbox:focus-within input {
    display: block;
    width: auto;
    flex: 1;
    padding: 9px 2px;
    opacity: 1;
    pointer-events: auto;
  }

  .searchbox:focus-within > button {
    display: block;
  }

  .header-actions .primary-button {
    min-height: 36px;
    padding: 7px 11px;
  }

  .header-actions .primary-button span {
    display: none;
  }

  .mobile-subjects {
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding: 0 14px;
    border-bottom: 1px solid var(--line-dark);
    scrollbar-width: none;
  }

  .mobile-subjects::-webkit-scrollbar {
    display: none;
  }

  .mobile-subjects button {
    flex: 0 0 auto;
    padding: 16px 13px 13px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-subjects button.active {
    color: var(--orange-dark-text);
  }

  .community-grid {
    display: block;
    width: 100%;
    padding: 0 0 56px;
  }

  .subject-rail {
    display: none;
  }

  .feed-column {
    width: 100%;
  }

  .quick-compose {
    min-height: 60px;
    padding-right: 16px;
    padding-left: 16px;
    border-top: 0;
  }

  .feed-toolbar {
    padding: 0 16px;
  }

  .kind-filter label {
    display: none;
  }

  .kind-filter select {
    max-width: 74px;
    padding-right: 10px;
  }

  .result-note {
    padding-right: 16px;
    padding-left: 16px;
  }

  .featured-post {
    margin: 22px 14px 6px;
    padding: 24px 22px 21px;
  }

  .post-item,
  .post-item:hover {
    padding: 23px 16px 15px;
  }

  .post-content {
    padding-left: 0;
  }

  .post-title {
    font-size: 18px;
  }

  .post-content > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .post-item.is-open .post-content > p,
  .post-content .expanded-section p {
    display: block;
    overflow: visible;
  }

  .post-actions {
    padding-left: 0;
    gap: 15px;
  }

  .right-rail {
    display: block;
    margin: 40px 16px 0;
  }

  .right-rail > section {
    margin-top: 30px;
  }

  .right-rail > section:first-child {
    margin-top: 0;
  }

  .site-footer {
    display: block;
    width: calc(100% - 32px);
    padding: 28px 0 32px;
  }

  .site-footer nav {
    margin-top: 22px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--ink);
    background: var(--white);
  }

  .mobile-nav:not(:has(.mobile-login)) {
    grid-template-columns: repeat(5, 1fr);
  }

  .mobile-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 5px 2px 4px;
    color: var(--muted);
    font-size: 11px;
    gap: 2px;
  }

  .mobile-nav button span {
    font-size: 19px;
    line-height: 1;
  }

  .mobile-nav button.active {
    color: var(--ink);
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
  }

  .compose-modal {
    padding: 24px 19px 25px;
  }

  .toast {
    right: 14px;
    bottom: calc(77px + env(safe-area-inset-bottom));
    left: 14px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .desktop-only {
    display: none;
  }

  .header-actions .primary-button {
    font-size: 12px;
  }

  .post-actions {
    gap: 10px;
  }

  .post-actions button {
    font-size: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

.post-title,
.post-content p,
.comment > p,
.reply > p,
.jobs-title-button strong,
.jobs-summary,
.jobs-detail-description,
.events-content h2,
.events-content > p,
.profile-about-copy p,
.attachment-card strong,
.draft-attachment-list strong {
  overflow-wrap: anywhere;
}

@media (hover: none) and (pointer: coarse) {
  .post-actions button,
  .post-follow-button,
  .instructor > button,
  .events-join button,
  .jobs-detail-button,
  .jobs-save-button,
  .jobs-reset-button,
  .modal-close {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  }

/* Expanded product areas */
.subpage-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 42px;
  border-bottom: 1px solid var(--ink);
  gap: 36px;
}

.subpage-hero h1 {
  margin: 0;
  font-size: clamp(37px, 4vw, 54px);
  font-weight: 840;
  letter-spacing: -0.065em;
  line-height: 1.12;
}

.subpage-hero > div > p:last-child {
  max-width: 650px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.subpage-hero > .primary-button {
  min-width: 132px;
  flex: 0 0 auto;
}

.events-page {
  min-height: 70vh;
}

.events-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  min-height: 70px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line-dark);
}

.events-kind-tabs {
  display: flex;
  align-items: center;
  gap: 25px;
}

.events-kind-tabs button {
  position: relative;
  padding: 23px 0 21px;
  color: var(--faint);
  font-size: 14px;
  font-weight: 720;
}

.events-kind-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.events-kind-tabs button.active {
  color: var(--ink);
}

.events-kind-tabs button.active::after {
  background: var(--orange);
}

.events-toolbar > select {
  padding: 7px 23px 7px 8px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 100px;
  gap: 44px;
}

.events-list {
  border-top: 2px solid var(--ink);
}

.events-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 102px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line-dark);
  gap: 22px;
}

.events-date {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 3px;
  line-height: 1;
}

.events-date span {
  color: var(--orange-dark-text);
  font-size: 10px;
  font-weight: 750;
}

.events-date strong {
  margin-top: 8px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.events-meta {
  display: flex;
  align-items: center;
  color: var(--faint);
  font-size: 10px;
  font-weight: 650;
  gap: 11px;
}

.events-meta span + span::before {
  margin-right: 11px;
  color: var(--line-dark);
  content: "/";
}

.events-meta .events-kind {
  color: var(--orange-dark-text);
  font-weight: 800;
}

.events-content h2 {
  margin: 9px 0 8px;
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.42;
}

.events-content > p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.events-host {
  margin-top: 13px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.events-content dl {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.65fr;
  margin: 18px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  gap: 13px;
}

.events-content dl > div {
  min-width: 0;
}

.events-content dt {
  color: var(--faint);
  font-size: 9px;
  font-weight: 750;
}

.events-content dd {
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 650;
}

.events-join {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-direction: column;
  gap: 9px;
}

.events-join span {
  color: var(--faint);
  font-size: 9px;
}

.events-join button {
  width: 92px;
  min-height: 36px;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.events-join button:hover,
.events-join button.joined {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--on-orange);
}

.events-calendar {
  position: sticky;
  top: 98px;
  padding: 21px 20px 17px;
  border-top: 3px solid var(--orange);
  background: var(--block);
  color: var(--on-block);
}

.events-calendar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 17px;
}

.events-calendar-head span {
  color: #9d9a94;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.events-calendar-head strong {
  font-size: 20px;
}

.events-week,
.events-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.events-week span {
  padding-bottom: 7px;
  color: #7f7d79;
  font-size: 8px;
}

.events-days span {
  position: relative;
  display: grid;
  height: 29px;
  place-items: center;
  color: #d1cec7;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.events-days span.has-event {
  color: var(--on-block);
  font-weight: 800;
}

.events-days span.has-event::after {
  position: absolute;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.events-calendar-note {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #353535;
  color: #8f8c86;
  font-size: 8px;
  gap: 6px;
}

.events-calendar-note i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.events-calendar > button {
  margin-top: 14px;
  padding: 0;
  color: var(--on-block);
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .subpage-hero,
  .events-toolbar,
  .events-layout {
    width: min(100% - 36px, 760px);
  }

  .events-layout {
    grid-template-columns: 1fr;
  }

  .events-calendar {
    position: static;
    max-width: 360px;
    order: -1;
  }
}

@media (max-width: 780px) {
  .subpage-hero {
    display: block;
    width: calc(100% - 28px);
    padding: 37px 0 28px;
  }

  .subpage-hero h1 {
    font-size: 36px;
  }

  .subpage-hero > .primary-button {
    margin-top: 23px;
  }

  .events-toolbar {
    width: 100%;
    overflow: hidden;
    padding: 0 14px;
  }

  .events-kind-tabs {
    overflow-x: auto;
    gap: 18px;
  }

  .events-kind-tabs button {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .events-layout {
    width: 100%;
    padding: 25px 16px 70px;
    gap: 34px;
  }

  .events-card {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 22px 0;
    gap: 14px;
  }

  .events-date strong {
    font-size: 29px;
  }

  .events-content h2 {
    font-size: 18px;
  }

  .events-content dl {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .events-join {
    grid-column: 2;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
  }

  .events-calendar {
    max-width: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   판서 셸 이식 보정 — 원본 globals.css 에 없는 추가분(정적 셸 전용).
   원본 React 는 조건부 렌더라 크롬을 아예 그리지 않았지만, 정적 셸은 같은 요소를
   hidden 속성으로 감춘다. 그런데 .site-footer{display:flex}·.mobile-nav{display:grid}
   같은 원본 규칙이 UA 기본 [hidden]{display:none} 을 이겨버려 #profile·#clips 에서
   푸터·모바일 내비가 그대로 남는다 → 명시 오버라이드로 못 박는다.
   ══════════════════════════════════════════════════════════════════════ */

[hidden] {
  display: none !important;
}

/* 풀다 복귀 링크(.fullda-return). 원본은 헤더의 .text-button 을 ≤1080px·≤780px 에서
   숨기고 .account-button/.profile-setup-button 만 되살렸다(위 이식 원문 참조).
   판서에는 그 두 버튼이 없고 이 링크가 유일한 풀다 복귀 경로라 같은 방식으로 되살린다. */
@media (max-width: 1080px) {
  .header-actions .text-button.fullda-return {
    display: inline-flex;
  }
}

@media (max-width: 780px) {
  .header-actions .text-button.fullda-return {
    display: inline-flex;
  }
}

/* 닉네임 설정 모달(nickname.js)의 오류 문구. identity.css 는 sha256 고정 무수정 이식본이라
   새 규칙을 넣을 수 없어, 그 파일의 .join-error 와 같은 형태를 여기에 최소로 둔다.
   나머지 모달 스타일(.join-backdrop/.join-modal/.join-field …)은 identity.css 것을 그대로 쓴다. */
.nickname-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
  color: var(--orange-dark-text);
  font-size: 11px;
  font-weight: 700;
}

/* 앱 셸(FulldaApp UA, panseo-core.js 가 html.fullda-app 을 단다): 웹뷰가 상태 표시줄 밑까지 그려지므로
   화면 폭과 상관없이 헤더를 상단 safe-area 만큼 내린다(780px 이하는 위 @media 규칙과 같은 값).
   모바일 하단 내비는 남긴다. 클립·모임은 그 내비가 유일한 진입점이다. */
html.fullda-app .topbar,
html.fullda-app .profile-topbar { padding-top: env(safe-area-inset-top); }

/* 판서 전용 도메인에서 SSO 자동 시도 뒤에도 미로그인일 때 보이는 로그인 안내(panseo-core.js ssoShowLogin). */
.ps-sso-login { max-width: 420px; margin: 72px auto; padding: 0 16px; text-align: center; }
.ps-sso-login p { margin: 0 0 16px; }
/* 자동 별명 표시(2026-10-26, A안). 강사 칩과 같은 외곽선 모양이되 글자는 12px 하한을 지킨다. */
.alias-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  vertical-align: 2px;
  white-space: nowrap;
}

/* 목록 위 내 별명 안내. 위아래 괘선만 두고 면은 칠하지 않는다. */
.my-alias-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.my-alias-card .avatar { flex: none; }
.my-alias-copy { flex: 1 1 200px; min-width: 0; }
.my-alias-copy strong { display: block; font-size: 14px; }
.my-alias-copy p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; word-break: keep-all; }
.my-alias-action {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--orange);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* 메타 정보(2026-11-02 문구 결정 Q2): 가운뎃점 대신 작은 아이콘과 간격으로 나눈다.
   아이콘은 저장소에 이미 있는 SVG 경로를 CSS 마스크로 쓴다. 장식이라 마크업에서 aria-hidden 이다. */
.mi{display:inline-flex;align-items:center;gap:4px;vertical-align:middle}
.mi-sep + .mi{margin-left:12px}
/* 항목 사이 구분 텍스트: 화면에는 숨기고 textContent·스크린리더에는 남긴다 */
.mi-sep{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.mi-ic{flex:none;width:13px;height:13px;background-color:currentColor;-webkit-mask:var(--mi-ic) center/contain no-repeat;mask:var(--mi-ic) center/contain no-repeat}
.mi-ic--user{--mi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-3 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3C/svg%3E")}
.mi-ic--clock{--mi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E")}
.mi-ic--cal{--mi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M3 9h18M8 2v4M16 2v4M8 14h5M8 17h8'/%3E%3C/svg%3E")}
.mi-ic--pin{--mi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}
.mi-ic--chat{--mi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E")}
