/* ==========================================================================
   AILO Board — 그누보드5 통합 게시판 스킨 (아일로 자체 코드)
   - 색·서체는 테마 토큰(--ailo-bg/fg/muted/line/accent/accent-ink, --ailo-font)을 그대로 따른다.
     토큰이 없는 테마(그누보드 기본 테마 등)에서는 아래 중립 기본값을 쓴다.
   - 모든 규칙은 .ailo-bd 안에서만 적용되며 클래스는 ab- 접두어.
   ========================================================================== */

.ailo-bd {
  --ab-bg: var(--ailo-bg, #ffffff);
  --ab-fg: var(--ailo-fg, #16181c);
  --ab-muted: var(--ailo-muted, #5f6570);
  --ab-line: var(--ailo-line, rgba(128, 128, 128, .26));
  --ab-accent: var(--ailo-accent, #2f5bff);
  --ab-ink: var(--ailo-accent-ink, #ffffff);
  --ab-font: var(--ailo-font, "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif);
  --ab-radius: var(--ailo-radius, 14px);
  --ab-radius-sm: 10px;
  --ab-ease: var(--ailo-ease, cubic-bezier(.22, .61, .36, 1));
  /* color-mix 미지원 브라우저용 값 → 아래 @supports 에서 토큰 기반으로 덮어씀 */
  --ab-soft: rgba(128, 128, 128, .08);
  --ab-soft-2: rgba(128, 128, 128, .15);
  --ab-line-strong: rgba(128, 128, 128, .5);
  --ab-accent-text: var(--ab-fg);
  --ab-accent-soft: rgba(128, 128, 128, .12);
  --ab-shadow: 0 18px 40px -22px rgba(0, 0, 0, .35);
  --ab-gap: clamp(16px, 2.2vw, 28px);
  --ab-cols: 3;
  --ab-ratio: 4 / 3;

  font-family: var(--ab-font);
  color: var(--ab-fg);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .ailo-bd {
    --ab-soft: color-mix(in srgb, var(--ab-fg) 5%, var(--ab-bg));
    --ab-soft-2: color-mix(in srgb, var(--ab-fg) 10%, var(--ab-bg));
    --ab-line-strong: color-mix(in srgb, var(--ab-fg) 30%, transparent);
    --ab-accent-text: color-mix(in srgb, var(--ab-accent) 62%, var(--ab-fg));
    --ab-accent-soft: color-mix(in srgb, var(--ab-accent) 13%, var(--ab-bg));
  }
}

.ailo-bd *, .ailo-bd *::before, .ailo-bd *::after { box-sizing: border-box; }
.ailo-bd :where(h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset) { margin: 0; padding: 0; }
.ailo-bd :where(ul, ol) { list-style: none; }
.ailo-bd :where(a) { color: inherit; text-decoration: none; }
.ailo-bd :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ailo-bd :where(img) { max-width: 100%; height: auto; border: 0; }
.ailo-bd fieldset { border: 0; min-width: 0; }
.ailo-bd legend { position: static; float: none; width: auto; height: auto; padding: 0; margin: 0 0 8px; font-size: 14px; line-height: 1.4; text-indent: 0; overflow: visible; clip: auto; }
.ailo-bd :focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 2px; border-radius: 4px; }

.ailo-bd .ab-sr,
.ailo-bd .sound_only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ab-ico { display: inline-block; flex: none; vertical-align: -0.2em; }

.ab-inner { width: 100%; margin-inline: auto; padding-block: clamp(24px, 4vw, 56px); }
.ab-inner--narrow { max-width: 920px !important; }

/* ---------- 머리 ---------- */
.ab-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.ab-head__title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.ab-head__mode { font-size: .6em; font-weight: 600; color: var(--ab-muted); margin-left: 6px; }
.ab-head__count { color: var(--ab-muted); font-size: 14px; }
.ab-head__count strong { color: var(--ab-fg); font-weight: 700; }

/* ---------- 버튼 ---------- */
.ailo-bd .ab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 16px; border-radius: var(--ab-radius-sm);
  border: 1px solid var(--ab-line-strong); background: transparent; color: var(--ab-fg);
  font-size: 14.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ab-ease);
}
.ailo-bd .ab-btn:hover { background: var(--ab-soft-2); color: var(--ab-fg); }
.ailo-bd .ab-btn--primary { background: var(--ab-accent); border-color: var(--ab-accent); color: var(--ab-ink); }
.ailo-bd .ab-btn--primary:hover { background: var(--ab-accent); color: var(--ab-ink); filter: brightness(1.08); transform: translateY(-1px); }
.ailo-bd .ab-btn--ghost { border-color: var(--ab-line); }
.ailo-bd .ab-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.ailo-bd .ab-btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.ailo-bd .ab-btn--icon { width: 42px; padding: 0; }
.ailo-bd .ab-btn[disabled] { opacity: .5; cursor: default; }

/* ---------- 분류 ---------- */
.ab-cate { margin-bottom: 18px; }
.ab-cate__list { display: flex; gap: 4px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ab-cate__list::-webkit-scrollbar { display: none; }
.ab-cate__list li { flex: none; }
.ab-cate--tab .ab-cate__list { gap: 0 22px; border-bottom: 1px solid var(--ab-line); }
.ab-cate--tab a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ab-muted); font-weight: 600; font-size: 15px; }
.ab-cate--tab a:hover { color: var(--ab-fg); }
.ab-cate--tab a.is-on { color: var(--ab-fg); border-bottom-color: var(--ab-fg); }
.ab-cate--pill .ab-cate__list { flex-wrap: wrap; }
.ab-cate--pill a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border: 1px solid var(--ab-line); border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ab-fg); transition: background-color .2s, color .2s; }
.ab-cate--pill a:hover { background: var(--ab-soft-2); }
.ab-cate--pill a.is-on { background: var(--ab-fg); border-color: var(--ab-fg); color: var(--ab-bg); }
.ab-cate__num { font-size: 12px; font-weight: 600; opacity: .62; font-variant-numeric: tabular-nums; }
.ab-cate--select { display: flex; align-items: center; gap: 10px; }
.ab-cate__label { font-size: 14px; font-weight: 600; color: var(--ab-muted); }
@media (max-width: 575.98px) { .ab-cate--pill .ab-cate__list { flex-wrap: nowrap; } }

/* ---------- 도구 막대 · 검색 ---------- */
.ab-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.ab-total { font-size: 14px; color: var(--ab-muted); margin-right: 4px; }
.ab-search { display: flex; align-items: stretch; flex: 1 1 340px; max-width: 460px; min-width: 0; border: 1px solid var(--ab-line-strong); border-radius: var(--ab-radius-sm); background: var(--ab-bg); overflow: hidden; }
.ab-search:focus-within { border-color: var(--ab-accent); box-shadow: 0 0 0 3px var(--ab-accent-soft); }
.ab-search .ab-select { border: 0; border-right: 1px solid var(--ab-line); border-radius: 0; flex: none; }
.ab-search .ab-select select { min-height: 42px; border: 0; padding-right: 30px; background-color: transparent; font-size: 14px; }
.ailo-bd .ab-search .ab-search__input { flex: 1; min-width: 0; height: auto; min-height: 42px; border: 0; background: transparent; padding: 0 12px; font-size: 15px; box-shadow: none; }
.ailo-bd .ab-search .ab-search__input:focus { outline: 0; box-shadow: none; }
.ab-search__btn { flex: none; width: 46px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ab-fg); }
.ab-search__btn:hover { background: var(--ab-soft-2); }
.ab-search__btn:focus-visible { outline-offset: -3px; }
@media (max-width: 575.98px) { .ab-search { flex-basis: 100%; max-width: none; order: 2; } .ab-actions { margin-left: 0; width: 100%; justify-content: flex-end; } }

.ab-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -4px 0 18px; padding: 12px 16px; border-radius: var(--ab-radius-sm); background: var(--ab-soft); font-size: 14.5px; }
.ab-result__reset { display: inline-flex; align-items: center; gap: 4px; color: var(--ab-muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.ab-result__reset:hover { color: var(--ab-fg); }

/* ---------- 입력 공통 ---------- */
.ailo-bd .ab-input {
  display: block; width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--ab-line-strong); border-radius: var(--ab-radius-sm);
  background: var(--ab-bg); color: var(--ab-fg); font-size: 15.5px; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.ailo-bd .ab-input::placeholder { color: var(--ab-muted); opacity: .8; }
.ailo-bd .ab-input:focus { outline: 0; border-color: var(--ab-accent); box-shadow: 0 0 0 3px var(--ab-accent-soft); }
.ailo-bd .ab-input--lg { min-height: 52px; font-size: 17px; font-weight: 600; }
.ailo-bd .ab-input--sm { min-height: 40px; font-size: 14px; }
.ailo-bd .ab-textarea { min-height: 120px; resize: vertical; }
.ab-select { position: relative; display: inline-flex; border: 1px solid var(--ab-line-strong); border-radius: var(--ab-radius-sm); background: var(--ab-bg); }
.ab-select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; rotate: 45deg; pointer-events: none; opacity: .7; }
.ailo-bd .ab-select select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 36px 0 14px; border: 0; border-radius: inherit; background: transparent; color: var(--ab-fg); font-size: 15px; cursor: pointer; }
.ailo-bd .ab-select select option { background: var(--ab-bg); color: var(--ab-fg); }
.ab-select:focus-within { border-color: var(--ab-accent); box-shadow: 0 0 0 3px var(--ab-accent-soft); }
.ailo-bd .ab-select select:focus-visible { outline: 0; }
.ab-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.ab-req { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: var(--ab-accent-soft); color: var(--ab-accent-text); font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.ab-help { margin-top: 6px; font-size: 13px; color: var(--ab-muted); }
.ab-help-inline { margin-left: 6px; font-size: 12.5px; font-weight: 500; color: var(--ab-muted); }
.ab-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.ailo-bd .ab-check input, .ailo-bd .ab-chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--ab-accent); cursor: pointer; }
.ab-check label { cursor: pointer; }

/* ---------- 관리자 일괄 처리 ---------- */
.ab-adminbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding: 10px 12px 10px 14px; border-radius: var(--ab-radius-sm); background: var(--ab-soft); }
.ab-adminbar__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.ab-chk label { cursor: pointer; }
.ab-chk--all label { font-weight: 600; }
.ab-grid .ab-chk, .ab-pf__item > .ab-chk, .ab-news-lead > .ab-chk { position: absolute; z-index: 3; top: 10px; left: 10px; padding: 6px; border-radius: 8px; background: var(--ab-bg); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.ab-noscript { margin-top: 10px; font-size: 13px; color: var(--ab-muted); }

/* ---------- 공지 띠 ---------- */
.ab-notices { margin-bottom: 22px; border-top: 1px solid var(--ab-fg); }
.ab-notices__item { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--ab-line); font-size: 15px; }
.ab-notices__link { flex: 0 1 auto; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-notices__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ab-notices__date { margin-left: auto; flex: none; font-size: 13px; color: var(--ab-muted); font-variant-numeric: tabular-nums; }

/* ---------- 작은 표시 ---------- */
.ab-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; flex: none; }
.ab-tag--notice { background: var(--ab-fg); color: var(--ab-bg); }
.ab-tag--current { background: var(--ab-accent-soft); color: var(--ab-accent-text); }
.ab-flag { display: inline-flex; align-items: center; justify-content: center; flex: none; margin-left: 2px; color: var(--ab-muted); }
.ab-flag .ab-ico { width: 15px; height: 15px; }
.ab-flag--new { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 4px; background: var(--ab-accent); color: var(--ab-ink); font-size: 10.5px; font-weight: 800; line-height: 1; }
.ab-flag--hot { height: 17px; padding: 0 4px; border: 1px solid currentColor; border-radius: 4px; color: var(--ab-accent-text); font-size: 10px; font-weight: 800; line-height: 1; }
.ab-ccount { flex: none; margin-left: 2px; color: var(--ab-accent-text); font-size: .82em; font-weight: 700; font-variant-numeric: tabular-nums; }
.ab-ccount::before { content: "["; } .ab-ccount::after { content: "]"; }
.ab-kicker { display: inline-block; margin-bottom: 6px; color: var(--ab-accent-text); font-size: 13px; font-weight: 700; letter-spacing: .01em; position: relative; z-index: 2; }
a.ab-kicker:hover { text-decoration: underline; text-underline-offset: 3px; }
.ab-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; color: var(--ab-muted); font-size: 13px; }
.ab-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.ab-meta .ab-ico { width: 15px; height: 15px; }
.ab-meta__author { position: relative; z-index: 2; }
.ab-empty { padding: clamp(48px, 8vw, 96px) 16px; text-align: center; color: var(--ab-muted); list-style: none; grid-column: 1 / -1; }

/* 카드 전체 클릭 영역 */
.ab-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ab-stretch:focus-visible { outline: 0; }
.ab-stretch:focus-visible::after { outline: 2px solid var(--ab-accent); outline-offset: 3px; }

/* 썸네일 */
.ab-thumb { position: relative; overflow: hidden; aspect-ratio: var(--ab-ratio); border-radius: var(--ab-radius); background: var(--ab-soft-2); }
.ab-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ab-ease); }
.ab-thumb.is-empty { display: grid; place-items: center; color: var(--ab-muted); }
.ab-thumb__ph .ab-ico { width: 28px; height: 28px; opacity: .55; }
.ab-hover-zoom :is(.ab-gallery__item, .ab-card, .ab-pf__item, .ab-video__item, .ab-webzine__item):hover .ab-thumb img { transform: scale(1.045); }
.ab-hover-lift :is(.ab-card, .ab-pf__item, .ab-video__item) { transition: transform .35s var(--ab-ease); }
.ab-hover-lift :is(.ab-card, .ab-pf__item, .ab-video__item):hover { transform: translateY(-4px); }
.ab-hover-lift :is(.ab-gallery__item, .ab-webzine__item):hover .ab-thumb img { transform: scale(1.035); }
.is-current .ab-thumb { box-shadow: 0 0 0 3px var(--ab-accent); }

/* ---------- 그리드 공통 ---------- */
.ab-grid { --c: var(--ab-cols); display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); gap: clamp(26px, 3vw, 40px) var(--ab-gap); }
.ab-grid > li { position: relative; min-width: 0; }
@media (max-width: 1199.98px) { .ab-cols-5 .ab-grid, .ab-cols-6 .ab-grid { --c: 4; } }
@media (max-width: 991.98px)  { .ab-cols-4 .ab-grid, .ab-cols-5 .ab-grid, .ab-cols-6 .ab-grid { --c: 3; } }
@media (max-width: 767.98px)  { .ab-grid { --c: 2 !important; } .ab-cols-1 .ab-grid { --c: 1 !important; } }
@media (max-width: 575.98px)  { .ab-type-card .ab-grid, .ab-type-portfolio .ab-grid, .ab-type-video .ab-grid { --c: 1 !important; } .ab-type-gallery .ab-grid { gap: 22px 12px; } }

/* ---------- 표 (list) ---------- */
.ab-table-wrap { width: 100%; }
.ab-table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ab-fg); font-size: 15px; }
.ab-table th { padding: 14px 10px; border-bottom: 1px solid var(--ab-line); font-size: 13.5px; font-weight: 600; color: var(--ab-muted); text-align: center; white-space: nowrap; background: transparent; }
.ab-table th a { color: inherit; }
.ab-table th a:hover { color: var(--ab-fg); text-decoration: underline; text-underline-offset: 3px; }
.ab-table td { padding: 16px 10px; border-bottom: 1px solid var(--ab-line); text-align: center; vertical-align: middle; background: transparent; }
.ab-table tbody tr { transition: background-color .15s; }
.ab-table tbody tr:hover { background: var(--ab-soft); }
.ab-table tr.is-notice { background: var(--ab-soft); }
.ab-table tr.is-notice .ab-subj__link { font-weight: 700; }
.ab-table tr.is-current { background: var(--ab-accent-soft); }
.ab-table__chk { width: 48px; }
.ab-table__num { width: 76px; color: var(--ab-muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ab-table .ab-table__subj { text-align: left; }
.ab-table__name { width: 130px; font-size: 14px; }
.ab-table__hit { width: 74px; color: var(--ab-muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ab-table__date { width: 100px; color: var(--ab-muted); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ab-table__mmeta { display: none; }
.ab-subj { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding-left: calc(var(--ab-depth, 0) * 16px); }
.ab-subj__cate { flex: none; padding: 1px 8px; border-radius: 6px; background: var(--ab-soft-2); color: var(--ab-muted); font-size: 12.5px; font-weight: 600; }
.ab-subj__cate:hover { color: var(--ab-fg); }
.ab-subj__re { color: var(--ab-muted); display: inline-flex; }
.ab-subj__re .ab-ico { width: 15px; height: 15px; rotate: 180deg; scale: 1 -1; }
.ab-subj__link { font-weight: 500; }
.ab-subj__link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767.98px) {
  .ab-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ab-table .ab-table__num, .ab-table .ab-table__name, .ab-table .ab-table__hit, .ab-table .ab-table__date { display: none; }
  .ab-table td { padding: 14px 6px; }
  .ab-table__mmeta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 6px; color: var(--ab-muted); font-size: 12.5px; padding-left: calc(var(--ab-depth, 0) * 16px); }
  .ab-table__chk { width: 36px; }
}

/* ---------- 웹진 ---------- */
.ab-webzine { border-top: 1.5px solid var(--ab-fg); }
.ab-webzine__item { position: relative; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 36px); padding: clamp(18px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--ab-line); }
.ab-webzine__item > .ab-chk { position: absolute; z-index: 3; top: clamp(26px, 3vw, 38px); left: 8px; padding: 5px; border-radius: 8px; background: var(--ab-bg); }
.ab-webzine__title { font-size: clamp(18px, 1.9vw, 22px); font-weight: 700; letter-spacing: -.015em; line-height: 1.4; }
.ab-webzine__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ab-webzine__excerpt { margin-top: 10px; color: var(--ab-muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575.98px) {
  .ab-webzine__item { grid-template-columns: minmax(0, 1fr) 108px; gap: 14px; align-items: start; }
  .ab-webzine__thumb { order: 2; border-radius: 10px; }
  .ab-webzine__excerpt { -webkit-line-clamp: 2; font-size: 14px; }
  .ab-webzine__title { font-size: 16.5px; }
}

/* ---------- 갤러리 ---------- */
.ab-gallery__cap { padding-top: 12px; }
.ab-gallery__title { font-size: 15.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-gallery .ab-meta { margin-top: 4px; }
.ab-gallery__item:hover .ab-gallery__title a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 카드 ---------- */
.ab-card { display: flex; flex-direction: column; border: 1px solid var(--ab-line); border-radius: var(--ab-radius); background: var(--ab-bg); overflow: hidden; }
.ab-card:hover { box-shadow: var(--ab-shadow); }
.ab-card__thumb { border-radius: 0; }
.ab-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.ab-card__title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-card__excerpt { margin-top: 8px; color: var(--ab-muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ab-card .ab-meta { margin-top: auto; padding-top: 14px; }

/* ---------- 포트폴리오 ---------- */
.ab-pf__thumb { border: 1px solid var(--ab-line); }
.ab-pf__thumb img { object-position: top center; }
.ab-pf__badge { position: absolute; z-index: 2; top: 12px; right: 12px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ab-fg); color: var(--ab-bg); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.ab-pf__badge.is-inline { position: static; }
.ab-pf__more { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 30px 12px 14px; background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent); color: #fff; font-size: 14px; font-weight: 700; opacity: 0; translate: 0 8px; transition: opacity .3s, translate .3s var(--ab-ease); }
.ab-pf__item:hover .ab-pf__more, .ab-pf__item:focus-within .ab-pf__more { opacity: 1; translate: 0 0; }
.ab-pf__body { padding-top: 16px; }
.ab-pf__cate { display: inline-flex; align-items: center; gap: 6px; color: var(--ab-muted); font-size: 13px; font-weight: 600; position: relative; z-index: 2; }
.ab-pf__cate::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ab-accent); }
.ab-pf__title { margin-top: 6px; font-size: clamp(17px, 1.6vw, 19px); font-weight: 700; letter-spacing: -.015em; line-height: 1.4; }
.ab-pf__item:hover .ab-pf__title a { text-decoration: underline; text-underline-offset: 4px; }
.ab-hashtags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
.ab-hashtags a { position: relative; z-index: 2; color: var(--ab-muted); font-size: 13.5px; }
.ab-hashtags a:hover { color: var(--ab-accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 뉴스 ---------- */
.ab-news-lead { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(18px, 3.4vw, 48px); padding-bottom: clamp(24px, 3.4vw, 40px); margin-bottom: 4px; border-bottom: 1.5px solid var(--ab-fg); }
.ab-news-lead.no-thumb { grid-template-columns: minmax(0, 1fr); }
.ab-news-lead__title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.025em; line-height: 1.28; }
.ab-news-lead__title a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.ab-news-lead__sub { margin-top: 14px; color: var(--ab-muted); font-size: clamp(15px, 1.4vw, 17px); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ab-news__by { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; color: var(--ab-muted); font-size: 13px; }
.ab-news__by > * + *::before { content: ""; display: inline-block; width: 1px; height: 10px; margin-right: 12px; background: var(--ab-line-strong); vertical-align: -1px; }
.ab-news__item { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: start; gap: clamp(14px, 2.4vw, 32px); padding: 22px 0; border-bottom: 1px solid var(--ab-line); }
.ab-news__item > .ab-chk { position: absolute; z-index: 3; top: 22px; left: -4px; }
.ab-news__date { display: flex; flex-direction: column; line-height: 1.1; padding-top: 2px; font-variant-numeric: tabular-nums; }
.ab-news__d { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.ab-news__ym { margin-top: 4px; font-size: 12.5px; color: var(--ab-muted); }
.ab-news__title { font-size: clamp(17px, 1.7vw, 20px); font-weight: 700; letter-spacing: -.015em; line-height: 1.42; }
.ab-news__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ab-news__sub { margin-top: 6px; color: var(--ab-muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-news__thumb { width: 180px; border-radius: 10px; }
.ab-news__by:empty { display: none; }
@media (max-width: 767.98px) {
  .ab-news-lead { grid-template-columns: minmax(0, 1fr); }
  .ab-news__item { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
  .ab-news__date { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 6px; }
  .ab-news__d { font-size: 15px; font-weight: 700; } .ab-news__d::after { content: "일"; font-size: 12px; font-weight: 500; color: var(--ab-muted); }
  .ab-news__ym { order: -1; margin: 0; }
  .ab-news__thumb { width: 96px; }
  .ab-news__item > .ab-chk { top: 18px; left: auto; right: 0; }
}

/* ---------- FAQ ---------- */
.ab-faq { border-top: 1.5px solid var(--ab-fg); }
.ab-faq__tools { display: flex; justify-content: flex-end; padding: 10px 0; border-bottom: 1px solid var(--ab-line); }
.ab-faq__item { border-bottom: 1px solid var(--ab-line); }
.ab-faq__q { display: flex; align-items: center; gap: 8px; font-size: inherit; font-weight: inherit; }
.ab-faq__q > .ab-chk { flex: none; padding-left: 4px; }
.ailo-bd .ab-faq__btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 16px 4px; border: 0; background: transparent; color: var(--ab-fg); text-align: left; font-size: clamp(15.5px, 1.6vw, 17.5px); font-weight: 600; line-height: 1.5; cursor: pointer; }
.ab-faq__btn:hover .ab-faq__text { text-decoration: underline; text-underline-offset: 4px; }
.ab-faq__mark { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ab-accent-soft); color: var(--ab-accent-text); font-size: 14px; font-weight: 800; }
.ab-faq__mark--a { background: var(--ab-soft-2); color: var(--ab-muted); }
.ab-faq__text { flex: 1; min-width: 0; }
.ab-faq__cate { display: inline-block; margin-right: 8px; color: var(--ab-muted); font-size: .82em; font-weight: 600; }
.ab-faq__chev { flex: none; display: inline-flex; color: var(--ab-muted); transition: rotate .3s var(--ab-ease); }
.ab-faq__btn[aria-expanded="true"] .ab-faq__chev { rotate: 180deg; color: var(--ab-fg); }
.ab-faq__a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 14px; padding: 4px 4px 24px; }
.ab-faq__a[hidden] { display: none; }
.ab-js .ab-faq:not(.is-ready) .ab-faq__a:not([data-ab-open]) { display: none; }
.ab-faq__answer { color: var(--ab-fg); font-size: 15.5px; padding-top: 4px; }
.ab-faq__more { grid-column: 2; font-size: 13px; }
.ab-faq__more a { color: var(--ab-muted); text-decoration: underline; text-underline-offset: 3px; }
.ab-faq__more a:hover { color: var(--ab-fg); }
.ab-faq__item.is-notice .ab-faq__btn { font-weight: 700; }

/* ---------- 타임라인 ---------- */
.ab-tl { display: grid; gap: clamp(28px, 4vw, 52px); }
.ab-tl__year { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); }
.ab-tl__y { position: sticky; top: calc(var(--ailo-header-h, 0px) + 20px); align-self: start; font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ab-fg); font-variant-numeric: tabular-nums; }
.ab-tl__list { position: relative; border-left: 1.5px solid var(--ab-line-strong); padding-left: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }
.ab-tl__item { position: relative; }
.ab-tl__dot { position: absolute; left: calc(-1 * clamp(22px, 3vw, 36px) - 6.5px); top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ab-bg); border: 2.5px solid var(--ab-accent); }
.ab-tl__item > .ab-chk { position: absolute; z-index: 3; right: 0; top: 0; }
.ab-tl__date { font-size: 14px; font-weight: 800; color: var(--ab-accent-text); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ab-tl__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 6px; }
.ab-tl__card.has-thumb { grid-template-columns: minmax(0, 1fr) 200px; }
.ab-tl__title { font-size: clamp(17px, 1.7vw, 20px); font-weight: 700; line-height: 1.45; }
.ab-tl__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ab-tl__excerpt { margin-top: 6px; color: var(--ab-muted); font-size: 15px; }
.ab-tl__thumb { border-radius: 10px; }
@media (max-width: 767.98px) {
  .ab-tl__year { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ab-tl__y { position: static; font-size: 40px; }
  .ab-tl__card.has-thumb { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
}

/* ---------- 동영상 ---------- */
.ab-video__thumb { background: #0d0d0f; }
.ab-video__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(0, 0, 0, .58); color: #fff; backdrop-filter: blur(4px); transition: scale .3s var(--ab-ease), background-color .3s; }
.ab-video__play .ab-ico { width: 24px; height: 24px; margin-left: 3px; }
.ab-video__item:hover .ab-video__play { scale: 1.1; background: var(--ab-accent); color: var(--ab-ink); }
.ab-video__dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 5px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ab-video__body { padding-top: 12px; }
.ab-video__title { font-size: 16.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-video .ab-meta { margin-top: 6px; }

/* ---------- 페이지 번호 (코어 get_paging 마크업) ---------- */
.ab-paging { margin-top: clamp(28px, 4vw, 48px); }
.ailo-bd .pg_wrap { display: flex; justify-content: center; float: none; width: 100%; margin: 0; padding: 0; clear: both; }
.ailo-bd .pg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ailo-bd .pg_page, .ailo-bd .pg_current {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--ab-line); border-radius: var(--ab-radius-sm); background: transparent; color: var(--ab-fg);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; float: none; margin: 0;
}
.ailo-bd .pg_page:hover { background: var(--ab-soft-2); color: var(--ab-fg); }
.ailo-bd .pg_current { background: var(--ab-fg); border-color: var(--ab-fg); color: var(--ab-bg); }
.ailo-bd .pg_start, .ailo-bd .pg_end, .ailo-bd .pg_prev, .ailo-bd .pg_next { text-indent: 0; width: auto; font-size: 13px; color: var(--ab-muted); background-image: none; }
.ab-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 24px; }

/* ---------- 사이드뷰 (글쓴이 메뉴, 코어 마크업) ---------- */
.ailo-bd .sv_wrap { position: relative; display: inline-block; font-weight: inherit; }
.ailo-bd .sv_wrap .sv { display: none; position: absolute; z-index: 60; top: 100%; left: 0; min-width: 132px; margin: 6px 0 0; padding: 6px; border: 1px solid var(--ab-line); border-radius: 10px; background: var(--ab-bg); box-shadow: var(--ab-shadow); text-align: left; }
.ailo-bd .sv_wrap .sv::before { display: none; }
.ailo-bd .sv_wrap .sv a { display: block; width: auto; padding: 7px 10px; border-radius: 6px; color: var(--ab-fg); font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.ailo-bd .sv_wrap .sv a:hover { background: var(--ab-soft-2); color: var(--ab-fg); }
.ailo-bd .sv_wrap .sv.sv_on { display: block !important; top: 100%; left: 0; width: auto; height: auto; }
.ailo-bd .sv_member, .ailo-bd .sv_guest { color: inherit; }
.ailo-bd .profile_img img { display: inline-block; width: 22px; height: 22px; margin-right: 4px; border-radius: 50%; object-fit: cover; vertical-align: -6px; }

/* ==========================================================================
   보기
   ========================================================================== */
.ab-v .ab-inner { max-width: 1080px; }
.ab-v--portfolio .ab-inner { max-width: 1240px; }
.ab-vhead { padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--ab-line); }
.ab-vhead__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.025em; line-height: 1.3; }
.ab-vhead__sub { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ab-accent-text); font-weight: 700; }
.ab-vmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; color: var(--ab-muted); font-size: 14px; }
.ab-vmeta > * { display: inline-flex; align-items: center; gap: 5px; }
.ab-vmeta .ab-ico { width: 16px; height: 16px; }
.ab-vmeta__avatar img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ab-vmeta__name { color: var(--ab-fg); font-weight: 600; }
.ab-vmeta__cmt:hover { color: var(--ab-fg); }
.ab-vmeta__ip { font-weight: 400; color: var(--ab-muted); }
.ab-vbody { margin-bottom: 36px; }
.ab-v-images { display: grid; gap: 18px; margin-bottom: 28px; }
.ab-v-figure { text-align: center; }
.ab-v-figure img { display: inline-block; max-width: 100%; height: auto; border-radius: var(--ab-radius-sm); }
.ab-v-figure figcaption { margin-top: 8px; color: var(--ab-muted); font-size: 13.5px; }
.ab-sec-title { margin-bottom: 14px; font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.ab-sec-title span { color: var(--ab-accent-text); }

/* 본문 타이포 */
.ab-prose { font-size: 17px; line-height: 1.85; color: var(--ab-fg); overflow-wrap: anywhere; }
.ab-prose > :first-child { margin-top: 0; }
.ab-prose :where(p, ul, ol, blockquote, pre, table, figure) { margin: 0 0 1.05em; }
.ab-prose :where(h1, h2, h3, h4) { margin: 1.6em 0 .6em; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.ab-prose h1 { font-size: 1.6em; } .ab-prose h2 { font-size: 1.4em; } .ab-prose h3 { font-size: 1.2em; } .ab-prose h4 { font-size: 1.05em; }
.ab-prose :where(ul) { list-style: disc; padding-left: 1.4em; }
.ab-prose :where(ol) { list-style: decimal; padding-left: 1.4em; }
.ab-prose li { margin: .25em 0; }
.ab-prose a { color: var(--ab-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.ab-prose img { max-width: 100% !important; height: auto !important; border-radius: 8px; }
.ab-prose blockquote { padding: 4px 0 4px 18px; border-left: 3px solid var(--ab-accent); color: var(--ab-muted); }
.ab-prose table { width: 100%; border-collapse: collapse; font-size: .92em; display: block; overflow-x: auto; }
.ab-prose th, .ab-prose td { padding: 8px 10px; border: 1px solid var(--ab-line); }
.ab-prose pre { padding: 14px 16px; border-radius: 10px; background: var(--ab-soft-2); overflow-x: auto; font-size: .88em; }
.ab-prose hr { border: 0; border-top: 1px solid var(--ab-line); margin: 2em 0; }
.ab-prose iframe, .ab-prose video { max-width: 100%; }

/* 첨부·링크 */
.ab-files { margin-top: 28px; padding: 18px 20px; border-radius: var(--ab-radius); background: var(--ab-soft); }
.ab-files ul { display: grid; gap: 10px; }
.ab-files li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; font-size: 14.5px; }
.ab-files__link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ab-files__link strong { font-weight: 600; overflow-wrap: anywhere; }
.ab-files__link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ab-files__desc, .ab-files__size, .ab-files__info { color: var(--ab-muted); font-size: 13px; }

/* 추천 */
.ab-good { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 36px 0 8px; }
.ab-good__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 20px; border: 1px solid var(--ab-line-strong); border-radius: 999px; font-size: 14.5px; font-weight: 600; }
a.ab-good__btn:hover { border-color: var(--ab-accent); color: var(--ab-accent-text); }
.ab-good__btn strong { font-variant-numeric: tabular-nums; }
.ab-good__msg { flex-basis: 100%; text-align: center; color: var(--ab-muted); font-size: 13px; min-height: 1em; }

/* 공유 */
.ab-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 28px; }
.ailo-bd #bo_v_sns { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ailo-bd #bo_v_sns li { margin: 0; }
.ailo-bd #bo_v_sns img { width: 34px; height: 34px; border-radius: 50%; }

/* 관리 버튼 */
.ab-vactions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ab-line); }
.ab-vactions__main, .ab-vactions__sub { display: flex; flex-wrap: wrap; gap: 8px; }

/* 이전·다음 */
.ab-vnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.ab-vnav__item { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 18px; border: 1px solid var(--ab-line); border-radius: var(--ab-radius); transition: background-color .2s, border-color .2s; }
a.ab-vnav__item:hover { background: var(--ab-soft); border-color: var(--ab-line-strong); }
.ab-vnav__item.is-empty { border-style: dashed; opacity: .4; }
.ab-vnav__item--next { flex-direction: row-reverse; text-align: right; }
.ab-vnav__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ab-vnav__dir { display: inline-flex; align-items: center; gap: 4px; color: var(--ab-muted); font-size: 12.5px; font-weight: 700; }
.ab-vnav__item--next .ab-vnav__dir { justify-content: flex-end; }
.ab-vnav__dir .ab-ico { width: 14px; height: 14px; }
.ab-vnav__subj { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-vnav__date { color: var(--ab-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ab-vnav__thumb { flex: none; width: 112px; aspect-ratio: 16 / 10; border-radius: 8px; border: 1px solid var(--ab-line); }
.ab-vnav--thumb .ab-vnav__thumb img { object-position: top center; }
@media (max-width: 575.98px) {
  .ab-vnav { grid-template-columns: minmax(0, 1fr); }
  .ab-vnav__item.is-empty { display: none; }
  .ab-vnav__thumb { width: 84px; }
}
.ab-signature { margin-top: 28px; padding: 16px 18px; border-left: 3px solid var(--ab-line-strong); color: var(--ab-muted); font-size: 14px; }

/* ---------- 보기: 포트폴리오 ---------- */
.ab-pfv__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: start; gap: clamp(20px, 4vw, 56px); padding-bottom: clamp(24px, 3vw, 36px); margin-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--ab-line); }
.ab-pfv__crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.ab-pfv__crumb .ab-pf__cate { font-size: 14px; }
.ab-pfv__title { font-size: clamp(30px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.ab-pfv .ab-hashtags { margin-top: 18px; gap: 6px 14px; }
.ab-pfv .ab-hashtags a { font-size: 14.5px; }
.ab-spec { display: grid; gap: 0; margin-bottom: 18px; border-top: 1px solid var(--ab-fg); }
.ab-spec > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ab-line); font-size: 14.5px; }
.ab-spec dt { color: var(--ab-muted); font-weight: 600; font-size: 13px; padding-top: 1px; }
.ab-spec dd { margin: 0; font-weight: 600; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-chips li { padding: 2px 10px; border-radius: 999px; background: var(--ab-soft-2); font-size: 13px; font-weight: 600; }
.ab-pfv__go { width: 100%; }
.ab-pfv__go .ab-ico { width: 18px; height: 18px; }
@media (max-width: 991.98px) { .ab-pfv__head { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* 긴 캡처 뷰어 */
.ab-viewer { margin-bottom: clamp(32px, 4vw, 56px); }
.ab-viewer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.ab-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ab-soft-2); }
.ailo-bd .ab-seg__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ab-muted); font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s; }
.ailo-bd .ab-seg__btn:hover { color: var(--ab-fg); }
.ailo-bd .ab-seg__btn[aria-pressed="true"] { background: var(--ab-bg); color: var(--ab-fg); box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.ab-device[hidden] { display: none !important; }
.ab-device--pc { border: 1px solid var(--ab-line-strong); border-radius: var(--ab-radius); overflow: hidden; background: var(--ab-soft); box-shadow: var(--ab-shadow); }
.ab-device__chrome { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--ab-line); background: var(--ab-soft-2); }
.ab-device__chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--ab-line-strong); }
.ab-device__chrome span { flex: 1; max-width: 420px; margin: 0 auto; padding: 4px 12px; border-radius: 999px; background: var(--ab-bg); color: var(--ab-muted); font-size: 12.5px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-device__screen { max-height: min(76vh, 880px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: var(--ab-bg); }
.ab-device__screen:focus-visible { outline-offset: -3px; }
.ab-device__screen img { display: block; width: 100%; height: auto; max-width: none; }
.ab-device--mobile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(18px, 3vw, 36px) 0; border-radius: var(--ab-radius); background: var(--ab-soft); }
.ab-device__phone { position: relative; width: min(372px, 100%); padding: 12px; border-radius: 46px; background: #121316; box-shadow: var(--ab-shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.ab-device__notch { position: absolute; z-index: 2; top: 20px; left: 50%; translate: -50% 0; width: 92px; height: 24px; border-radius: 999px; background: #121316; }
.ab-device__phone .ab-device__screen { height: min(70vh, 720px); max-height: none; border-radius: 34px; }
.ab-viewer.is-expanded .ab-device__screen { max-height: none; height: auto; }
.ab-viewer__note { color: var(--ab-muted); font-size: 13px; }
.ab-pfv__desc { max-width: 820px; }
.ab-pfv__more { margin-top: clamp(32px, 4vw, 48px); }
.ab-pfv__shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.ab-pfv__shots img { width: 100%; height: auto; border-radius: var(--ab-radius-sm); border: 1px solid var(--ab-line); }
.ab-pfv__shots figcaption { margin-top: 6px; color: var(--ab-muted); font-size: 13px; }
.ab-pfv .ab-vnav--thumb .ab-vnav__thumb { width: 150px; }
@media (max-width: 575.98px) {
  .ab-seg { width: 100%; } .ailo-bd .ab-seg__btn { flex: 1; justify-content: center; padding: 0 10px; }
  .ab-viewer__bar [data-ab-expand] { margin-left: auto; }
  .ab-device__chrome span { font-size: 11.5px; }
  .ab-device__phone { width: min(300px, 100%); border-radius: 38px; padding: 9px; }
  .ab-device__phone .ab-device__screen { border-radius: 29px; height: 64vh; }
  .ab-pfv .ab-vnav--thumb .ab-vnav__thumb { width: 84px; }
}

/* ---------- 보기: 뉴스 ---------- */
.ab-nv__head, .ab-nv__body, .ab-nv__fig, .ab-nv__foot { max-width: 760px; margin-inline: auto; }
.ab-nv__head { padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--ab-line); }
.ab-nv__kicker { margin-bottom: 4px; }
.ab-nv__title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.24; }
.ab-nv__lede { margin-top: 18px; padding-left: 16px; border-left: 3px solid var(--ab-accent); color: var(--ab-muted); font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; line-height: 1.65; }
.ab-nv__byline { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 20px; color: var(--ab-muted); font-size: 13.5px; }
.ab-nv__byline > * + *::before { content: ""; display: inline-block; width: 1px; height: 10px; margin-right: 12px; background: var(--ab-line-strong); vertical-align: -1px; }
.ab-nv__by { color: var(--ab-fg); font-weight: 700; }
.ab-nv__hero { max-width: 1040px; margin: 0 auto 32px; }
.ab-nv__hero img, .ab-nv__fig img { display: block; width: 100%; height: auto; border-radius: var(--ab-radius); }
.ab-nv__hero figcaption, .ab-nv__fig figcaption { margin-top: 10px; color: var(--ab-muted); font-size: 13.5px; text-align: center; }
.ab-nv__body { font-size: 18px; }
.ab-nv__fig { margin-top: 24px; margin-bottom: 24px; }
.ab-nv .ab-vactions, .ab-nv .ab-vnav { max-width: 760px; margin-inline: auto; }

/* ---------- 보기: 동영상 ---------- */
.ab-player { position: relative; aspect-ratio: 16 / 9; margin-bottom: 28px; border-radius: var(--ab-radius); overflow: hidden; background: #0d0d0f; }
.ab-player__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.ailo-bd .ab-player__btn { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: clamp(64px, 8vw, 88px); height: clamp(64px, 8vw, 88px); border: 0; border-radius: 50%; background: var(--ab-accent); color: var(--ab-ink); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: scale .3s var(--ab-ease); }
.ab-player__btn:hover { scale: 1.08; }
.ab-player__btn .ab-ico { width: 34%; height: 34%; margin-left: 4%; }
.ab-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ab-player .ab-video__dur { right: 14px; bottom: 14px; font-size: 13px; }

/* ==========================================================================
   댓글
   ========================================================================== */
.ab-comments { margin-top: clamp(40px, 5vw, 64px); }
.ab-nv ~ .ab-comments, .ab-v--news .ab-comments { max-width: 760px; margin-inline: auto; }
.ab-cmt__title { padding-bottom: 14px; border-bottom: 1.5px solid var(--ab-fg); font-size: 18px; font-weight: 800; }
.ab-cmt__title span { color: var(--ab-accent-text); }
.ab-cmt__item { border-bottom: 1px solid var(--ab-line); }
.ab-cmt__item.is-reply { margin-left: calc(var(--ab-depth, 1) * clamp(14px, 3vw, 32px)); }
.ab-cmt__item.is-reply .ab-cmt__box { padding-left: 16px; border-left: 2px solid var(--ab-line); }
.ab-cmt__box { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
.ab-cmt__avatar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ab-cmt__avatar:empty { display: none; }
.ab-cmt__box:has(.ab-cmt__avatar:empty) { grid-template-columns: minmax(0, 1fr); }
.ab-cmt__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.ab-cmt__name { font-weight: 700; }
.ab-cmt__date, .ab-cmt__ip { color: var(--ab-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ab-cmt__text { margin-top: 6px; font-size: 15.5px; line-height: 1.7; }
.ab-cmt__text a { color: var(--ab-accent-text); text-decoration: underline; }
.ab-cmt__act { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.ab-cmt__act a { display: inline-flex; align-items: center; gap: 4px; color: var(--ab-muted); font-size: 13px; font-weight: 600; }
.ab-cmt__act a:hover { color: var(--ab-fg); }
.ab-cmt__act .ab-ico { width: 14px; height: 14px; }
.ab-cmt__slot:empty { display: none; }
.ab-cmt__slot { margin-top: 12px; }
.ab-cmt__empty { padding: 32px 0; color: var(--ab-muted); text-align: center; border-bottom: 1px solid var(--ab-line); }
.ab-cmt__write { margin-top: 24px; }
.ab-cmt__form { padding: clamp(16px, 2.4vw, 24px); border-radius: var(--ab-radius); background: var(--ab-soft); }
.ab-cmt__form .ab-input { background: var(--ab-bg); }
.ab-cmt__count { margin-left: 6px; color: var(--ab-muted); font-weight: 500; font-size: 12.5px; }
.ab-cmt__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.ab-cmt__row:empty { display: none; }
.ab-field--inline { flex: 1 1 200px; }
.ab-cmt__submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; margin-top: 14px; }
.ab-cmt__submit .ab-check { margin-right: auto; }
.ab-captcha { margin-top: 14px; }
.ailo-bd .ab-captcha fieldset, .ailo-bd #captcha { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; position: static; }
.ailo-bd #captcha legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ailo-bd #captcha #captcha_img { height: 44px; width: auto; border-radius: 8px; border: 1px solid var(--ab-line); }
.ailo-bd #captcha #captcha_key { height: 44px; width: 120px; padding: 0 12px; border: 1px solid var(--ab-line-strong); border-radius: 8px; background: var(--ab-bg); color: var(--ab-fg); font-size: 16px; }
.ailo-bd #captcha button { height: 44px; min-width: 44px; border: 1px solid var(--ab-line); border-radius: 8px; background: var(--ab-bg); color: var(--ab-fg); cursor: pointer; }
.ailo-bd #captcha #captcha_info { flex-basis: 100%; color: var(--ab-muted); font-size: 12.5px; }

/* ==========================================================================
   글쓰기
   ========================================================================== */
.ab-form { display: grid; gap: 24px; }
.ab-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
@media (max-width: 575.98px) { .ab-grid2 { grid-template-columns: minmax(0, 1fr); } }
.ab-opts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 12px 16px; border-radius: var(--ab-radius-sm); background: var(--ab-soft); }
.ailo-bd .ab-extra { padding: 18px; border: 1px dashed var(--ab-line-strong); border-radius: var(--ab-radius); }
.ab-extra > legend { padding: 0 6px; margin-left: -6px; }
.ab-subject { position: relative; display: flex; gap: 8px; }
.ab-subject .ab-input { flex: 1; min-width: 0; }
.ab-subject #btn_autosave { flex: none; min-height: 52px; }
.ailo-bd .ab-autosave { display: none; position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: min(360px, 100%); padding: 0; border: 1px solid var(--ab-line); border-radius: 12px; background: var(--ab-bg); box-shadow: var(--ab-shadow); }
.ab-autosave strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ab-autosave ul { max-height: 200px; overflow-y: auto; padding: 8px; }
.ab-autosave li { display: flex; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 8px; font-size: 13.5px; }
.ab-autosave li:hover { background: var(--ab-soft-2); }
.ab-autosave li a, .ab-autosave li button { color: var(--ab-fg); background: none; border: 0; cursor: pointer; }
.ab-autosave > div { padding: 8px; border-top: 1px solid var(--ab-line); text-align: right; }
@media (max-width: 575.98px) { .ab-subject { flex-wrap: wrap; } .ab-subject #btn_autosave { min-height: 38px; } }
.ab-editor textarea, .ailo-bd #wr_content:not(.ab-textarea) { display: block; width: 100% !important; min-height: 320px; padding: 14px; border: 1px solid var(--ab-line-strong); border-radius: var(--ab-radius-sm); background: var(--ab-bg); color: var(--ab-fg); font: inherit; font-size: 15.5px; line-height: 1.7; resize: vertical; }
.ab-editor textarea:focus { outline: 0; border-color: var(--ab-accent); box-shadow: 0 0 0 3px var(--ab-accent-soft); }
.ab-editor iframe { max-width: 100%; }
.ab-inline { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ab-inline__label { flex: none; display: inline-flex; align-items: center; gap: 4px; width: 40px; color: var(--ab-muted); font-size: 13px; font-weight: 700; }
.ab-files-in { display: grid; gap: 10px; }
.ab-files-in > .ab-label { margin-bottom: 0; }
.ab-file { display: grid; gap: 8px; padding: 14px 16px; border: 1px dashed var(--ab-line-strong); border-radius: var(--ab-radius-sm); }
.ab-file__label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.ab-file__hint { color: var(--ab-muted); font-weight: 500; }
.ailo-bd .ab-file__input { width: 100%; font-size: 14px; color: var(--ab-muted); }
.ailo-bd .ab-file__input::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--ab-line-strong); border-radius: 8px; background: var(--ab-bg); color: var(--ab-fg); font: inherit; font-weight: 600; cursor: pointer; }
.ab-file__del { font-size: 13.5px; color: var(--ab-muted); }
.ab-formfoot { display: flex; justify-content: center; gap: 10px; padding-top: 24px; border-top: 1px solid var(--ab-line); }
.ab-formfoot .ab-btn { min-width: 140px; }

/* ---------- 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  .ailo-bd *, .ailo-bd *::before, .ailo-bd *::after { transition: none !important; animation: none !important; }
  .ab-hover-lift :is(.ab-card, .ab-pf__item, .ab-video__item):hover { transform: none; }
}

/* ---------- 인쇄 ---------- */
@media print {
  .ab-toolbar, .ab-adminbar, .ab-paging, .ab-foot, .ab-vactions, .ab-share, .ab-good, .ab-cmt__write, .ab-viewer__bar { display: none !important; }
  .ab-device__screen { max-height: none !important; height: auto !important; overflow: visible !important; }
}
