/* U229: 학교 댓글 (planning/design/comments_v1: C1v2, C2v2, C3~C6) and the header bell. Only on builds with site.school_comments. */
.cm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cm { margin: 40px 0 56px; }                                  /* 56px under it: the school-bottom ad never stands next to the writing box */
.cm [hidden], .cm-sheet [hidden], .cm-pop [hidden], .cm-notes [hidden], .hdr__bell [hidden] { display: none !important; }
.cm-h { margin: 0 0 6px; font-size: 24px; font-weight: 900; color: #0F1E46; scroll-margin-top: 12px; }
.cm-n { font-size: 18px; color: #6B7280; margin-left: 2px; }
.cm-lead { margin: 0 0 14px; font-size: 15.5px; line-height: 1.65; color: #4B515C; }
.cm-rules { margin: 0 0 16px; padding: 12px 16px 12px 34px; border: 1px solid #E1E4EB; border-radius: 14px; background: #F7F8FC; font-size: 14px; line-height: 1.7; color: #4B515C; }
.cm-rules a { display: inline-block; font-weight: 800; color: #1F3C88; padding: 12px 6px; margin: -12px -6px; }
.cm-msg { margin: 12px 0; font-size: 14.5px; color: #4B515C; }
.cm-login, .cm-close, .cm-more, .cm-send { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.cm-login, .cm-close, .cm-more { border: 1px solid #C9CEDA; background: #fff; color: #0F1E46; }
.cm-login:hover { color: #0F1E46; border-color: #1F3C88; text-decoration: none; }
.cm-send { border: 1px solid #0F1E46; background: #0F1E46; color: #fff; }
.cm-send--line { background: #fff; color: #0F1E46; }          /* a reply's button: the page keeps one filled navy button */
.cm-send:disabled { border-color: #C9CFD8; background: #C9CFD8; color: #fff; cursor: default; }
.cm-send--line:disabled { background: #fff; color: #9AA1AD; }
.cm-form { margin: 0; padding: 14px 16px; border: 1px solid #C9CEDA; border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.cm-form--reply { margin: 8px 0 4px; }
.cm-form__who { margin: 0; font-size: 14px; color: #4B515C; }
.cm-form__who b { color: #0F1E46; }
.cm-form__text { width: 100%; box-sizing: border-box; border: 1px solid #E1E4EB; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.6; color: #1F2329; resize: vertical; }
.cm-form__text:focus { border-color: #1F3C88; }
.cm-form__err { margin: 0; font-size: 14px; font-weight: 700; color: #C2410C; }
.cm-form__err:empty { display: none; }
.cm-form__consent { margin: 0; font-size: 13px; color: #6B7280; text-align: right; }
.cm-form__consent a { display: inline-block; font-weight: 800; color: #1F3C88; text-decoration: underline; padding: 14px 6px; margin: -14px -6px -10px; }
.cm-form__foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.cm-form__len { margin-right: auto; font-size: 13.5px; color: #6B7280; }
.cm-form__len.is-over { color: #C2410C; font-weight: 800; }
.cm-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: #EAF1FD; font-size: 14.5px; line-height: 1.65; color: #1F2329; }
.cm-note:empty { display: none; }
.cm-sort { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid #E1E4EB; }
.cm-sort__b { min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 800; color: #6B7280; cursor: pointer; }
.cm-sort__b[aria-pressed="true"] { color: #0F1E46; box-shadow: inset 0 -2px 0 #0F1E46; }
.cm-list, .cm-replies { list-style: none; margin: 0; padding: 0; }
.cm-list > .cm-item { border-bottom: 1px solid #E1E4EB; padding: 14px 0 6px; }
.cm-replies { margin: 6px 0 0 18px; border-left: 3px solid #E1E4EB; }
.cm-replies > .cm-item { padding: 10px 0 2px 14px; }
.cm-replies > .cm-item + .cm-item { border-top: 1px solid #E1E4EB; }
.cm-item { scroll-margin-top: 12px; }
.cm-item.is-target { background: #FFFBE6; }
.cm-meta { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: #6B7280; }
.cm-who { font-size: 14.5px; color: #0F1E46; }
.cm-tag { padding: 1px 8px; border-radius: 6px; background: #EEF1F7; font-size: 12px; font-weight: 800; color: #1F3C88; }
.cm-short { font-size: 12.5px; color: #8A919C; }
.cm-body { margin: 0; font-size: 15.5px; line-height: 1.7; color: #1F2329; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-heldline { margin: 0 0 2px; font-size: 13px; font-weight: 800; color: #C2410C; }
.cm-heldnote { margin: 0 0 6px; font-size: 13px; line-height: 1.6; color: #6B7280; }
.cm-gone { margin: 0; padding: 4px 0 8px; font-size: 14px; color: #8A919C; }
.cm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.cm-act { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px; border: 0; background: none; font: inherit; font-size: 13.5px; color: #6B7280; cursor: pointer; }
.cm-act:hover { color: #0F1E46; }
.cm-act--rights { margin-left: auto; font-size: 12.5px; text-decoration: none; }
.cm-more { width: 100%; margin-top: 14px; }
.cm-noscript { margin: 32px 0 56px; font-size: 14.5px; color: #4B515C; }
.wiki-comments-link a[data-cm-count] { display: inline-flex; align-items: center; min-height: 44px; }

/* the report window */
.cm-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 23, 42, 0.45); }
.cm-sheet__panel { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; box-sizing: border-box; padding: 18px 16px 16px; border-radius: 18px 18px 0 0; background: #fff; color: #1F2329; }
.cm-sheet__h { margin: 0 0 12px; font-size: 18px; font-weight: 900; color: #0F1E46; }
.cm-sheet__set { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.cm-sheet__opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid #E1E4EB; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; }
.cm-sheet__opt:has(input:checked) { border: 2px solid #0F1E46; padding: 0 13px; }
.cm-sheet__msg { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: #C2410C; }
.cm-sheet__msg:empty { display: none; }
.cm-sheet__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cm-sheet__done { margin: 0 0 12px; font-size: 15px; }
.cm-sheet__foot { margin: 10px 0 0; font-size: 12.5px; color: #6B7280; }

/* the bell: only for a signed-in person; the number is yellow (red is for wrong answers only) */
.hdr__bell { display: none; position: relative; flex: 0 0 auto; }
html[data-auth="in"] .hdr__bell { display: block; }
.hdr__bell + .hdr__acct { margin-left: 0; }
.cm-bell__a { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; }
.cm-bell__a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.cm-bell__n { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; box-sizing: border-box; padding: 0 5px; border-radius: 999px; background: #FFE94A; color: #0F1E46; font-size: 11px; font-weight: 900; line-height: 18px; text-align: center; }
.cm-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-height: 70vh; overflow-y: auto; z-index: 70; background: #fff; color: #1F2329; border: 1px solid #E5E8EB; border-radius: 12px; box-shadow: 0 14px 30px rgba(15, 30, 70, 0.18); }
.hdr .cm-pop :focus-visible { outline-color: #1F3C88; }
.cm-nt__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 16px; border-bottom: 1px solid #E5E8EB; min-height: 44px; }
.cm-nt__h { margin: 0; font-size: 16px; font-weight: 900; color: #0F1E46; }
h1.cm-nt__h { font-size: 22px; }
.cm-nt__all { min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 800; color: #1F5FD1; cursor: pointer; }
.cm-nt__list { list-style: none; margin: 0; padding: 0; }
.cm-nt__item { border-bottom: 1px solid #E5E8EB; }
.cm-nt__item.is-new { background: #FFFBE6; }
.cm-nt__a { position: relative; display: block; min-height: 44px; padding: 12px 16px 12px 32px; color: #1F2329; text-decoration: none; }
.cm-nt__a--btn { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.cm-nt__a--btn:hover { background: rgba(15, 30, 70, 0.04); }
.cm-blocked { padding: 12px 16px; border: 1px solid #E1E4EB; border-radius: 12px; background: #F7F8FC; }
a.cm-nt__a:hover { color: #1F2329; text-decoration: none; background: rgba(15, 30, 70, 0.04); }
.is-new .cm-nt__a::before { content: ""; position: absolute; left: 15px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: #FFD21E; }
.cm-nt__text { display: block; font-size: 14.5px; line-height: 1.6; }
.cm-nt__sub { display: block; font-size: 12.5px; color: #6B7280; overflow-wrap: anywhere; }
.cm-nt__empty { margin: 0; padding: 18px 16px; font-size: 14.5px; color: #4B515C; }
.cm-nt__foot { margin: 0; padding: 10px 16px; font-size: 12.5px; color: #6B7280; }
.cm-notes { max-width: 640px; margin: 0 auto 40px; }
@media (max-width: 899px) {
  .hdr__bell { order: 2; }
}
