/* ======================================================================
   Design tokens
   ====================================================================== */
:root {
  --color-bg-page: #f4f6fc;
  --color-bg-white: #ffffff;
  --color-bg-slate: #f4f6fc;
  --color-bg-inverse-100: #f7f7f7;
  --color-bg-inverse-primary: #303030;

  --color-text-primary: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-text-tertiary: #8a8a8a;
  --color-text-placeholder: #b5b5b5;
  --color-text-inverse: #ffffff;

  --color-brand-500: #f97316;
  --color-brand-orange-alt: #ff8c2d;
  --color-red-500: #ef4444;

  --color-border-100: rgba(26, 26, 26, 0.09);

  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;

  --radius-10: 10px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-24: 24px;
  --radius-full: 999px;

  --font-family: 'NanumSquareRound', 'NanumSquare Neo', 'NanumSquare', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}

/* ======================================================================
   Reset & base
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--color-brand-500); text-decoration: underline; }

html, body {
  font-family: var(--font-family);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body.has-modal { overflow: hidden; }

/* 문의 작성 시에는 텍스트 선택/편집이 정상 동작해야 함 */
input, textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

/* ======================================================================
   Page shell
   ====================================================================== */
.page {
  width: 1280px;
  min-height: 100vh;
  background-color: var(--color-bg-slate);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto;
}

/* Top bar */
.top {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: 0 var(--space-16) 0 var(--space-8);
}
.btn-close {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.top__title {
  flex: 1 0 0;
  min-width: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}

/* Top tabs */
.tabs {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: stretch;
  gap: var(--space-40);
  padding: 0 var(--space-48);
  overflow: hidden;
}
.tab {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 0;
}
.tab__text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px var(--space-8);
  font-size: 20px;
  font-weight: 800;
  line-height: 24px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}
.tab__line {
  width: 100%;
  height: 2px;
  background-color: transparent;
}
.tab.is-active .tab__text { color: var(--color-text-primary); }
.tab.is-active .tab__line { background-color: var(--color-text-primary); }

/* Content shell */
.content {
  width: 100%;
  background-color: var(--color-bg-white);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-16);
  padding: var(--space-32) var(--space-48);
  overflow: visible;
  flex: 1;
}
.content__top {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  position: relative;
  z-index: 3;
}
.content__top--split { justify-content: space-between; }
.content__count {
  flex: 1 0 0;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--color-text-primary);
  text-align: right;
  white-space: nowrap;
}
.content__count-number { color: var(--color-brand-500); font-weight: 800; }

/* ======================================================================
   Dropdown
   ====================================================================== */
.dropdown-wrap { position: relative; }
.dropdown {
  height: 48px;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: 12px var(--space-12) 12px var(--space-16);
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-100);
  border-radius: var(--radius-full);
}
.dropdown--wide { min-width: 280px; }
.dropdown--form {
  min-width: 400px;
  height: 64px;
  padding: var(--space-16) var(--space-24);
  border-radius: var(--radius-12);
}
.dropdown--form .dropdown__label { font-size: 20px; line-height: 32px; font-weight: 700; }
.dropdown__label {
  flex: 1;
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
  color: var(--color-text-primary);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown__label.is-placeholder { color: var(--color-text-placeholder); font-weight: 700; }
.dropdown__icon { flex-shrink: 0; width: 24px; height: 24px; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--color-border-100);
  border-radius: var(--radius-12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  z-index: 20;
  display: none;
}
.dropdown-wrap.is-open .dropdown-menu { display: block; }
.dropdown-menu__item {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.dropdown-menu__item.is-selected { color: var(--color-text-primary); font-weight: 800; background: #f7f7f7; }
.dropdown-menu__item:hover { background: #f7f7f7; }

/* ======================================================================
   Table (notice)
   ====================================================================== */
.table { width: 100%; display: flex; flex-direction: column; }
.table__row {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-border-100);
}
.table__row:last-child { border-bottom: 1px solid var(--color-border-100); }
.table__row--head { height: auto; }
.table__cell {
  padding: var(--space-8) var(--space-16);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.table__row--head .table__cell {
  padding: var(--space-12) var(--space-16);
  color: var(--color-text-primary);
  font-weight: 800;
}
#notice-tbody .table__row { height: 64px; cursor: pointer; }
#notice-tbody .table__row:hover { background: #fafbff; }

.table__cell--no       { width: 80px;  flex-shrink: 0; }
.table__cell--category { width: 112px; flex-shrink: 0; }
.table__cell--title    { flex: 1 0 0; min-width: 0; justify-content: flex-start; text-align: left; }
.table__row--head .table__cell--title { justify-content: center; text-align: center; }
.table__cell--views    { width: 112px; flex-shrink: 0; }
.table__cell--date     { width: 152px; flex-shrink: 0; }

/* ======================================================================
   Inquiry list
   ====================================================================== */
.table--inquiry .table__row { height: 64px; cursor: pointer; }
.table--inquiry #inquiry-tbody > .table__row:last-child { border-bottom: none; }
.table--inquiry #inquiry-tbody { border-top: 1px solid var(--color-border-100); border-bottom: 1px solid var(--color-border-100); }

.inquiry-cell { padding: var(--space-8) var(--space-16); }
.inquiry-cell--status { width: 112px; flex-shrink: 0; }
.inquiry-cell--title  { flex: 1 0 0; min-width: 0; gap: 8px; justify-content: flex-start; text-align: left; overflow: hidden; }
.inquiry-cell--date   { width: 152px; flex-shrink: 0; }
.inquiry-cell--icon   { width: 56px;  flex-shrink: 0; color: var(--color-text-primary); }
.inquiry-category {
  color: var(--color-brand-500);
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}
.inquiry-title-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inquiry-answer {
  background: var(--color-bg-slate);
  padding: var(--space-16);
  border-top: 1px solid var(--color-border-100);
  border-bottom: 1px solid var(--color-border-100);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.inquiry-answer__desc {
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: normal;
  word-break: break-word;
}
.inquiry-answer__image {
  display: block;
}
.inquiry-answer__image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-10);
  display: block;
}
.inquiry-answer__reply {
  padding: var(--space-16);
  border-radius: var(--radius-10);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-100);
}
.inquiry-answer__text {
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: normal;
  word-break: break-word;
}
.inquiry-answer__actions {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-8) 0 0;
}
.btn--pill-icon {
  min-width: 0;
  padding: 0 var(--space-16) 0 var(--space-12);
  gap: 4px;
  color: var(--color-text-secondary);
}
.btn--pill-icon svg { flex-shrink: 0; }

/* ======================================================================
   Buttons
   ====================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--space-16);
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
  letter-spacing: 0;
  border-radius: var(--radius-10);
  min-width: 160px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--color-text-secondary);
  transition: filter 0.1s ease;
}
.btn:hover { filter: brightness(0.97); }
.btn--primary { background: var(--color-brand-500); color: #fff; border-color: var(--color-brand-500); }
.btn--secondary { background: #fff; color: var(--color-text-secondary); border-color: var(--color-border-100); }
.btn--rect { border-radius: var(--radius-10); }
.btn--pill { border-radius: var(--radius-full); background: #fff; border: 1px solid var(--color-border-100); }

/* ======================================================================
   Pagination
   ====================================================================== */
.pagination {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  padding-top: var(--space-16);
}
.pagination__arrow {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-inverse-100);
  border-radius: var(--radius-16);
}
.pagination__numbers { display: flex; align-items: center; gap: var(--space-8); }
.pagination__num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  border-radius: var(--radius-16);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--color-text-secondary);
}
.pagination__num--active { color: var(--color-brand-500); font-weight: 800; }
.pagination__num:not(.pagination__num--active):hover { background-color: var(--color-bg-inverse-100); }

/* ======================================================================
   Inquiry form
   ====================================================================== */
.inquiry-form { display: flex; flex-direction: column; gap: 0; width: 100%; }
.inquiry-form__row {
  display: flex;
  align-items: center;
  min-height: 96px;
  border-bottom: 1px solid var(--color-border-100);
  padding: var(--space-8) 0;
}
.inquiry-form__row:first-child { border-top: 1px solid var(--color-border-100); }
.inquiry-form__row--textarea { min-height: 256px; align-items: stretch; padding: var(--space-16) 0; }
.inquiry-form__row--file { min-height: 80px; }
.inquiry-form__label {
  width: 152px;
  flex-shrink: 0;
  padding: 0 var(--space-16);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 24px;
}
.inquiry-form__row--textarea .inquiry-form__label { padding-top: 20px; align-self: flex-start; }
.req { color: var(--color-red-500); }

.input {
  flex: 1;
  height: 64px;
  padding: var(--space-16) var(--space-24);
  background: #fff;
  border: 1px solid var(--color-border-100);
  border-radius: var(--radius-12);
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.input::placeholder { color: var(--color-text-placeholder); }
.input--textarea { height: 224px; min-height: 224px; padding: var(--space-24); resize: vertical; }

.inquiry-form__textarea-wrap { flex: 1; display: flex; flex-direction: column; }
.inquiry-form__textarea-wrap .input--textarea { flex: 1; }
.inquiry-form__char-count {
  align-self: flex-end;
  margin-top: var(--space-8);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.inquiry-form__file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inquiry-form__file .btn--pill { height: 48px; min-width: 160px; }
.inquiry-form__file-size { font-size: 16px; font-weight: 700; color: var(--color-text-secondary); }
.inquiry-form__file-name { font-size: 16px; font-weight: 700; color: var(--color-text-primary); }
.inquiry-form__file-preview {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.inquiry-form__file-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-10);
  border: 1px solid var(--color-border-100);
  display: block;
}
.inquiry-form__file-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.inquiry-form__file-remove:hover { background: rgba(26, 26, 26, 0.88); }
.text-brand { color: var(--color-brand-orange-alt); }
.inquiry-form__file-hint { font-size: 16px; font-weight: 700; color: var(--color-text-secondary); }

.inquiry-form__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: var(--space-24);
}
.inquiry-form__note {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 20px;
}

/* ======================================================================
   Terms
   ====================================================================== */
.terms-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding-bottom: var(--space-8);
}
.pill-tab {
  height: 48px;
  padding: 0 var(--space-16);
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--color-border-100);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.pill-tab.is-active {
  background: var(--color-bg-inverse-primary);
  color: #fff;
  border-color: var(--color-bg-inverse-primary);
}
.terms-panel { padding-top: var(--space-16); display: flex; flex-direction: column; gap: var(--space-24); }
.terms-panel[hidden] { display: none; }
.terms-panel__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 28px;
  color: var(--color-text-primary);
}
.terms-panel__title--icon { display: flex; align-items: center; gap: 12px; }
.privacy-icon { display: inline-flex; }

.doc-loading, .doc-fallback { color: var(--color-text-tertiary); }
.doc-body {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text-secondary);
  white-space: normal;
}
.doc-body h1 { font-size: 20px; font-weight: 800; color: var(--color-text-primary); margin: 32px 0 12px; }
.doc-body h2 { font-size: 18px; font-weight: 800; color: var(--color-text-primary); margin: 24px 0 8px; }
.doc-body h3 { font-size: 16px; font-weight: 800; color: var(--color-text-primary); margin: 20px 0 6px; }
.doc-body h4 { font-size: 16px; font-weight: 800; color: var(--color-text-primary); margin: 20px 0 6px; }
.doc-body p  { margin: 8px 0; }
.doc-body ol { margin: 8px 0 8px 28px; list-style: decimal; }
.doc-body ul { margin: 8px 0 8px 28px; list-style: disc; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.doc-body th, .doc-body td {
  border: 1px solid var(--color-border-100);
  padding: 8px 12px;
  vertical-align: top;
  text-align: left;
}
.doc-body th, .doc-body tr:first-child td { background: #f7f7f7; font-weight: 800; color: var(--color-text-primary); }
.doc-body table.privacy-icon-table td {
  background: #fff;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-align: center;
  vertical-align: middle;
}
.doc-body table.privacy-icon-table tr:first-child td { background: #fff; }
.doc-body table.privacy-icon-table img {
  width: 64px;
  height: 69px;
  object-fit: contain;
  display: inline-block;
}
.doc-body .accordion { border: 1px solid var(--color-border-100); border-radius: var(--radius-12); padding: 12px 16px; margin: 8px 0; }
.doc-body .accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  color: var(--color-text-primary);
  cursor: pointer;
  user-select: none;
}
.doc-body .accordion-header > h3 { margin: 0; }
.doc-body .accordion-toggle {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.doc-body .accordion.is-open .accordion-toggle { transform: rotate(180deg); }
.doc-body .accordion-content { margin-top: 8px; }

/* ======================================================================
   Privacy cards
   ====================================================================== */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(4, 278px);
  gap: 24px;
}
.pcard {
  position: relative;
  width: 278px;
  height: 304px;
  border-radius: 24px 12px 12px 24px;
  color: var(--color-text-primary);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.10); }
.pcard__title {
  position: absolute;
  left: 32px;
  top: 40px;
  width: 214px;
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
  white-space: pre-line;
  z-index: 2;
}
.pcard__illust {
  position: absolute;
  left: 142px;
  top: 118px;
  width: 120px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.pcard__illust svg { width: 100%; height: 100%; }
.pcard__spine {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  border-radius: 24px 0 10px 24px;
  z-index: 0;
}
.pcard__pages {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 38px;
  background: #f5efe4;
  border-radius: 8px 4px 4px 12px;
  z-index: 1;
}
.pcard--orange { background: #ffaf5a; }
.pcard--orange .pcard__spine { background: #f5962d; }
.pcard--yellow { background: #fcbc46; }
.pcard--yellow .pcard__spine { background: #efa32a; }
.pcard--green  { background: #69d287; }
.pcard--green  .pcard__spine { background: #32b271; }
.pcard--blue   { background: #5aafff; }
.pcard--blue   .pcard__spine { background: #3b86ff; }
.pcard--teal   { background: #38cbaa; }
.pcard--teal   .pcard__spine { background: #1aae96; }
.pcard--sky    { background: #73d2ff; }
.pcard--sky    .pcard__spine { background: #4ab2f8; }
.pcard--purple { background: #9c97ff; }
.pcard--purple .pcard__spine { background: #7d6ff4; }
.pcard--violet { background: #c293ff; }
.pcard--violet .pcard__spine { background: #a162fa; }
.pcard--pink   { background: #fe9aff; }
.pcard--pink   .pcard__spine { background: #e97ee5; }

/* ======================================================================
   Privacy modal (book overlay)
   ====================================================================== */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pmodal[hidden] { display: none; }
.pmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
}
.pmodal__stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.pmodal__book {
  position: relative;
  width: 880px;
  height: 496px;
  display: flex;
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.pmodal__book::before,
.pmodal__book::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 1;
}
.pmodal__book::before {
  left: 0;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.06), transparent);
}
.pmodal__book::after {
  right: 0;
  border-radius: 0 20px 20px 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.06), transparent);
}
.pmodal__spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.10) 20%,
    rgba(0, 0, 0, 0.10) 80%,
    rgba(0, 0, 0, 0.02)
  );
  pointer-events: none;
  z-index: 1;
}
.pmodal__page {
  width: 440px;
  height: 100%;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 2;
}
.pmodal__page--left {
  align-items: flex-start;
  padding-right: 48px;
}
.pmodal__page--right {
  padding-left: 40px;
  padding-right: 48px;
}
.pmodal__title {
  font-family: 'NanumSquare Neo', var(--font-family);
  font-size: 36px;
  line-height: 48px;
  font-weight: 800;
  color: var(--color-text-primary);
  white-space: pre-line;
  word-break: keep-all;
}
.pmodal__illust {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin: auto 0 0;
}
.pmodal__illust svg { width: 100%; height: 100%; }
.pmodal__body {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-secondary);
  font-weight: 700;
  word-break: keep-all;
}
.pmodal__body p { margin: 0 0 24px; }
.pmodal__body p:last-child { margin-bottom: 0; }
.pmodal__body strong { color: var(--color-text-primary); font-weight: 800; }

.pmodal__link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-secondary);
  background: var(--color-bg-inverse-100);
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
}
.pmodal__link:hover { filter: brightness(0.97); }
.pmodal__link[hidden] { display: none; }

.pmodal__icons {
  display: grid;
  grid-template-columns: repeat(2, 172px);
  grid-template-rows: repeat(2, 104px);
  gap: 8px;
  margin-top: auto;
}
.pmodal__icons[hidden] { display: none; }
.pmodal__icon-tile {
  width: 172px;
  height: 104px;
  background: #f4f6fc;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pmodal__icon-tile svg {
  width: 80px;
  height: 80px;
  display: block;
}

.pmodal__nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
}
.pmodal__arrow {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f7f7f7;
}
.pmodal__arrow:disabled { opacity: 0.4; cursor: not-allowed; }

.pmodal__confirm {
  width: 200px;
  height: 64px;
  padding: 20px 40px;
  border-radius: 32px;
  background: var(--color-brand-500);
  color: #fff;
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 800;
  line-height: 26px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

/* ======================================================================
   Notice detail
   ====================================================================== */
.notice-detail {
  width: 100%;
  background: var(--color-bg-white);
  border-radius: var(--radius-16);
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}
.notice-detail__header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid #b5b5b5;
}
.notice-detail__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 34px;
  color: var(--color-text-primary);
  word-break: keep-all;
}
.notice-detail__meta {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  color: var(--color-text-tertiary);
  font-size: 14px;
  font-weight: 600;
}
.notice-detail__sep {
  color: var(--color-text-placeholder);
  font-weight: 400;
  user-select: none;
}
.notice-detail__category { color: var(--color-text-secondary); font-weight: 700; }
.notice-detail__date { color: var(--color-text-tertiary); }
.notice-detail__views { color: var(--color-text-tertiary); }

.notice-detail__body {
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  font-size: 15px;
  line-height: 26px;
  color: var(--color-text-secondary);
  word-break: keep-all;
}
.notice-detail__body img { max-width: 100%; height: auto; }
.notice-detail__body p { margin: 0 0 12px; }
.notice-detail__body a { color: var(--color-brand-500); }

.notice-detail__foot {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-top: var(--space-16);
}

/* ======================================================================
   Confirm modal
   ====================================================================== */
.cmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cmodal[hidden] { display: none; }
.cmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
}
.cmodal__panel {
  position: relative;
  background: #fff;
  border-radius: 32px;
  min-width: 480px;
  max-width: 1096px;
  width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cmodal__head {
  position: relative;
  height: 88px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 88px;
  box-sizing: border-box;
}
.cmodal__close {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cmodal__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 26px;
  color: var(--color-text-secondary);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.cmodal__title:empty { display: none; }
.cmodal__body {
  padding: 24px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.cmodal__headline {
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
  color: var(--color-text-primary);
  word-break: keep-all;
}
.cmodal__headline:empty { display: none; }
.cmodal__message {
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-text-secondary);
  white-space: pre-line;
  word-break: keep-all;
}
.cmodal__message:empty { display: none; }
.cmodal__foot {
  padding: 0 24px 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}
.cmodal__btn {
  height: 64px;
  padding: 0 40px;
  border-radius: 32px;
  font-size: 20px;
  font-weight: 800;
  line-height: 26px;
  min-width: 144px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.cmodal__btn--secondary {
  background: #fff;
  color: var(--color-text-secondary);
  border: 2px solid var(--color-border-100);
}
.cmodal__btn--primary {
  background: var(--color-brand-500);
  color: #fff;
}
.cmodal__btn:hover { filter: brightness(0.97); }
