/* Board-only editorial layer. Loaded by auth/templates/board_base.html. */
.editorial-card,
.editorial-post {
  width: min(100%, 800px);
  margin-inline: auto;
  border-radius: 16px;
}
.editorial-card--write .card__hd {
  display: flex;
  align-items: baseline;
  padding: 30px 40px 16px;
  border: 0;
  font-size: 23px;
  letter-spacing: -.045em;
}
.editorial-card--write .card__bd { padding: 18px 40px 40px; }
.editorial-card--write { overflow: visible; }
.editorial-write [hidden] { display: none !important; }
.editorial-write { gap: 28px; }
.editorial-write .field { gap: 9px; }
.editorial-write .field__label { font-size: 13px; font-weight: 750; color: var(--sub); }
.editorial-write .field__input {
  height: auto;
  padding: 8px 0 14px;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.045em;
}
.editorial-write .field__input:focus { border-bottom-color: var(--key); outline: 0; }
.editorial-write .field__input::placeholder { color: var(--faint); }

.editorial-write .ed {
  overflow: visible;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 19, 24, .06);
}
.ed__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 14px 0;
  border-bottom: 1px solid var(--line);
}
.ed__modes { display: flex; gap: 4px; align-self: stretch; }
.ed__mode {
  position: relative;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--sub);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.ed__mode.is-on, .ed__mode[aria-selected="true"] { color: var(--ink); }
.ed__mode.is-on::after, .ed__mode[aria-selected="true"]::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 2px;
  background: var(--key);
  content: "";
}
.ed__save { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.editorial-write .ed__bar {
  position: sticky;
  top: 64px;
  z-index: 4;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 51px;
  padding: 9px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.editorial-write .ed__grp { gap: 3px; }
.editorial-write .ed__grp + .ed__grp { padding-left: 8px; }
.editorial-write .ed__b {
  min-width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 12px;
}
.editorial-write .ed__b.is-active, .editorial-write .ed__b[aria-pressed="true"] {
  color: var(--key); background: var(--key-soft); border-color: var(--key-line);
}
.editorial-write .ed__b--sm { font-size: 11px; }
.editorial-write .ed__b--md { font-size: 13px; }
.editorial-write .ed__b--lg { font-size: 15px; }
.editorial-write .ed__b--xl { font-size: 17px; }
.editorial-write .ed__b--key { background: var(--key-soft); }
.ed__dialog { padding: 18px 20px; background: var(--soft); border-bottom: 1px solid var(--line); }
.ed__dialog label { display: grid; gap: 8px; color: var(--sub); font-size: 13px; font-weight: 650; }
.ed__dialog input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.ed__dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.ed__dialog-actions button { padding: 8px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.ed__dialog-actions button:first-child { background: var(--key); color: white; border-color: var(--key); }
.editorial-write .ed__area {
  min-height: 510px;
  max-height: none;
  padding: 38px 42px 52px;
  overflow: visible;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: -.018em;
}
.editorial-write .ed__area.is-preview {
  min-height: 510px;
  background: var(--soft);
  caret-color: transparent;
}
.editorial-write .ed__area:focus-visible { outline: 0; }
.editorial-write .ed:focus-within { border-color: var(--key-line); }
.ed__area:not(.is-preview) .pimg__caption:empty::before {
  content: attr(data-placeholder); color: var(--faint); font-size: 12px;
}
.editorial-post + #comments { width: min(100%, 800px); margin-inline: auto; }
.editorial-write .ed__area p { margin-bottom: 1.25em; }
.editorial-write .ed__area h2 { margin: 2.1em 0 .7em; font-size: 1.55em; line-height: 1.45; }
.editorial-write .ed__area blockquote { margin: 1.6em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--key); color: var(--sub); }
.editorial-write .ed__area .pimg { margin: 2em 0; }
.editorial-write .ed__foot { padding: 13px 16px; border-top: 1px solid var(--line); background: var(--soft); }
.editorial-write .setup__actions { padding-top: 4px; }

.pimg__caption {
  display: block;
  max-width: min(100%, 620px);
  margin: 10px auto 0;
  padding: 5px 8px;
  border: 1px dashed transparent;
  border-radius: 6px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.ed__area .pimg.is-on .pimg__caption,
.pimg__caption:focus { border-color: var(--key-line); background: var(--key-soft); outline: 0; }
.editorial-write .thumbs { gap: 12px; }
.editorial-write .thumb { border-radius: 10px; overflow: hidden; }

.editorial-post { overflow: hidden; }
.editorial-post .post__hd { padding: 36px 56px 16px; border: 0; background: transparent; }
.editorial-post .post__t { max-width: 720px; font-size: 26px; font-weight: 750; line-height: 1.45; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere; }
.editorial-post .post__meta { margin: 0 56px; padding: 0 0 24px; color: var(--faint); font-size: 12px; }
.editorial-post .post__who { color: var(--sub); }
.editorial-post .card__bd { padding: 0 56px 48px; }
.editorial-post .post__body {
  max-width: 720px;
  min-height: 320px;
  margin: 0 auto;
  padding-top: 24px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.92;
  letter-spacing: -.018em;
}
.editorial-post .post__body > :first-child { margin-top: 0; }
.editorial-post .post__body p { margin: 0 0 1.45em; }
.editorial-post .post__body h2 { margin: 2.5em 0 .75em; font-size: 1.55em; line-height: 1.45; letter-spacing: -.035em; }
.editorial-post .post__body ul, .editorial-post .post__body ol { margin: 0 0 1.5em 1.45em; padding-left: .3em; }
.editorial-post .post__body li { margin: .38em 0; padding-left: .16em; }
.editorial-post .post__body blockquote { margin: 2em 0; padding: 3px 0 3px 20px; border-left: 3px solid var(--key); color: var(--sub); }
.editorial-post .post__body hr { margin: 3em 0; }
.editorial-post .pimg { margin: 2.5em 0; }
.editorial-post .pimg img { border-radius: 12px; box-shadow: 0 5px 20px rgba(17,19,24,.1); }
.editorial-post .pimg figcaption { max-width: 680px; margin: 10px auto 0; color: var(--sub); font-size: 13px; line-height: 1.6; text-align: center; }
.editorial-post .post__acts { max-width: 720px; margin: 38px auto 0; padding-top: 22px; border-top: 1px solid var(--line); }

@media (max-width: 680px) {
  .editorial-card, .editorial-post { border-right: 0; border-left: 0; border-radius: 0; }
  .editorial-card--write .card__hd { padding: 24px 20px 12px; font-size: 20px; }
  .editorial-card--write .card__bd { padding: 14px 20px 30px; }
  .editorial-write .ed__area { min-height: 420px; padding: 28px 20px 36px; font-size: 15.5px; }
  .editorial-write .ed__bar { padding-inline: 7px; }
  .ed__top { padding-inline: 8px; }
  .ed__save { max-width: 47%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .editorial-post .post__hd { padding: 32px 22px 13px; }
  .editorial-post .post__t { font-size: 18px; }
  .editorial-post .post__meta { margin: 0; padding: 0 22px 20px; font-size: 11px; }
  .editorial-post .card__bd { padding: 0 22px 34px; }
  .editorial-post .post__body { min-height: 240px; padding-top: 20px; font-size: 14px; line-height: 1.85; }
  .editorial-post .post__body h2 { font-size: 17px; }
}

@media (max-width: 380px) {
  .editorial-write .ed__area { padding-inline: 16px; }
  .editorial-write .ed__b { min-width: 28px; padding-inline: 5px; }
  .editorial-post .post__hd, .editorial-post .post__meta, .editorial-post .card__bd { padding-right: 16px; padding-left: 16px; }
}

:root[data-theme="dark"] .editorial-write .ed { box-shadow: 0 12px 30px rgba(0,0,0,.28); }
:root[data-theme="dark"] .editorial-post .pimg img { box-shadow: 0 5px 20px rgba(0,0,0,.34); }

.post-board-footer { width: 100%; max-width: 800px; margin: 30px auto 0; scroll-margin-top: 160px; }
.post-board-footer__actions { display: flex; gap: 7px; margin-left: auto; }
.post-board-footer .posts__row.is-current { background: var(--key-soft); }
.post-board-footer__current { display: inline-block; margin-left: 7px; padding: 2px 5px; border-radius: 4px; background: var(--key); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; vertical-align: 1px; }
.post-board-footer__pager { max-width: 800px; margin-inline: auto; }
@media (max-width: 680px) {
  .post-board-footer { margin-top: 22px; }
  .post-board-footer .card__hd { align-items: center; font-size: 14px; }
  .post-board-footer__actions { gap: 5px; }
  .post-board-footer__actions .btn { padding-inline: 8px; }
  .post-board-footer .posts__t { font-size: 12.5px; }
  .post-board-footer .posts__who, .post-board-footer .posts__when { font-size: 11px; }
}
