/**
 * site.css — 아티오 페이지·컴포넌트 (레거시 시안 이관)
 */

#wrapper.site {width: 100%; min-width: 320px;}

/* Artio mega GNB — template layout.css #header 기본값 무력화 */
#header.header {border-bottom: none;}
#header.header .contain {display: block; height: auto; max-width: none; padding: 0;}

#footer .copyright .design-credit {color: inherit; font-size: inherit;}

/* Artio footer — template layout.css #footer 기본값 무력화 */
#footer.footer {padding: 0 0 56px; background: var(--color-white); color: inherit; text-align: left;}
#footer.footer .copyright {font-size: 15px; font-weight: 400; line-height: 22px; letter-spacing: -0.26px; color: var(--color-muted);}
#footer.footer .footer__menu {background: #111111;}
#footer.footer .footer__menu a {color: var(--color-white);}
#footer.footer .footer__info {color: var(--color-body);}

/* Artio sub-visual — template layout.css .sub-visual flex 레이아웃 무력화 */
:is(#container, .sub-page) .sub-visual {display: block; height: auto; min-height: 0; margin-top: var(--header-height); align-items: unset; justify-content: unset; text-align: inherit; background: #e8f3ef;}
:is(#container, .sub-page) .sub-visual--archive,
:is(#container, .sub-page) .sub-visual--archive .sub-visual__main {background: #e8f3ef;}
:is(#container, .sub-page) .sub-visual--plaza,
:is(#container, .sub-page) .sub-visual--plaza .sub-visual__main {background: #f3ebe3;}
:is(#container, .sub-page) .sub-visual--company,
:is(#container, .sub-page) .sub-visual--company .sub-visual__main {background: #e0eaf6;}
:is(#container, .sub-page) .sub-visual--books,
:is(#container, .sub-page) .sub-visual--books .sub-visual__main {background: #e6f1eb;}
:is(#container, .sub-page) .sub-visual--series,
:is(#container, .sub-page) .sub-visual--series .sub-visual__main {background: #e9e7f2;}
:is(#container, .sub-page) .sub-visual--teaching,
:is(#container, .sub-page) .sub-visual--teaching .sub-visual__main {background: #e2edf7;}
:is(#container, .sub-page) .sub-visual--author,
:is(#container, .sub-page) .sub-visual--author .sub-visual__main {background: #f0ebe4;}
:is(#container, .sub-page) .sub-visual__tabs {width: 100%;}
:is(#container, .sub-page) .sub-visual__tabs-inner.inner {width: 100%; max-width: var(--width-content); margin: 0 auto; padding: 0; box-sizing: border-box;}

/* CMS 공통 CSS(doc.css website 레이아웃 · layout.css .sub-visual) 충돌 보정 */
body.website-layout #header.header {display: block !important;}
#main.website-layout #container {background: transparent;}
#shortcut .shortcut__heading {font-size: 36px;}
:is(#container, .sub-page) .sub-visual {overflow: visible; color: inherit;}
:is(#container, .sub-page) .sub-visual .inner {position: relative; top: auto; left: auto; transform: none; padding: 0;}
@media (max-width: 1440px) {
  :is(#container, .sub-page) .sub-visual .inner {padding: 0 40px;}
}
@media (max-width: 767px) {
  :is(#container, .sub-page) .sub-visual .inner {padding: 0 16px;}
  #shortcut .shortcut__heading {font-size: 24px; line-height: 32px;}
}

/* 페이지 빌더 디자인 서브페이지 — CMS .sub-content 래퍼 여백 제거 */
.sub-content:has(.artio-design-row) {padding: 0;}
.sub-content:has(.artio-design-row) > .container {max-width: none; padding: 0;}

/* html.fr-view(froala_style) 요소 규칙이 디자인 클래스보다 우선하는 문제 보정 — 특이도를 froala 와 맞춤 */
img.sub-visual__art-hero {position: absolute;}
h2.greeting__welcome {font-size: 28px;}
h2.book-catalog__heading {display: none !important; font-size: 40px;}
.book-catalog__head {margin-bottom: 0 !important;}
.book-catalog__head:not(:has(.book-catalog__lead)) {display: none !important;}
.book-catalog__lead {margin-bottom: 48px;}
h3.book-catalog__title {font-size: 17px; font-weight: 600;}
h2.book-detail__title {font-size: 28px;}
h2.notice-board__title {font-size: 40px;}
h2.form-section__title {font-size: 40px;}
h3.artio-form__privacy-title {font-size: 18px;}
ol.artio-form__privacy-list {padding-left: 20px;}
.book-detail__panel ul {list-style: none;}
table.notice-board__table {max-width: none; border-top: 2px solid #686868;}
table.notice-board__table th,
table.notice-board__table td {padding: 16px 40px; border: 0; border-bottom: 1px solid var(--color-border); background: var(--color-white);}
table.notice-board__table th {background: #fafafa;}
@media (max-width: 767px) {
  table.notice-board__table th,
  table.notice-board__table td {padding: 12px 8px;}
  h2.greeting__welcome {font-size: 20px;}
  h2.book-catalog__heading {font-size: 24px;}
  h3.book-catalog__title {font-size: 14px;}
  h2.book-detail__title {font-size: 20px;}
  h2.notice-board__title {font-size: 24px;}
  h2.form-section__title {font-size: 24px;}
  h3.artio-form__privacy-title {font-size: 16px;}
  #footer.footer {padding: 0 0 32px;}
  #footer.footer .copyright {font-size: 12px; line-height: 18px;}
}

/* 서브 비주얼 타이틀만 Bold — layout.css h2 inherit 방지 */
:is(#container, .sub-page) .sub-visual h2.sub-visual__title {font-size: 56px; font-weight: 700; line-height: 68px; letter-spacing: -1.12px; font-synthesis: none;}
@media (max-width: 767px) {
  :is(#container, .sub-page) .sub-visual h2.sub-visual__title {font-size: 28px; line-height: 36px; letter-spacing: -0.56px;}
}

.header__mega-card {max-width: 340px;}
.header__mega-cards--equal {flex-wrap: nowrap;}
.header__mega-cards--equal .header__mega-card {flex: 1 1 0; min-width: 0; max-width: none;}
.header__mega-desc {margin-top: 8px; font-size: 14px; font-weight: 400; line-height: 22px; letter-spacing: -0.28px; color: #888;}
@media (max-width: 1400px) {
  .header__mega-cards--equal {flex-wrap: wrap;}
  .header__mega-cards--equal .header__mega-card {flex: 1 1 calc(50% - 8px); max-width: calc(50% - 8px);}
}
@media (max-width: 1100px) {
  .header__mega-card {max-width: none;}
  .header__mega-desc {display: none;}
  .header__mega-cards--equal {flex-wrap: wrap;}
  .header__mega-cards--equal .header__mega-card {flex: 1 1 100%; max-width: none;}
}

.artio-form__captcha-img {cursor: pointer; user-select: none;}

/* artio board skin (module/board/skin/artio) */
.artio-board {width: 100%; max-width: var(--width-content); margin: 0 auto;}
.artio-board__empty {padding: 60px 0; color: #888;}
.artio-board__new {display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; background: var(--color-main); color: var(--color-white); font-size: 10px; font-weight: 700; vertical-align: middle;}
.notice-board__table td.notice-board__subject a,
.notice-board__table td.archive-board__file a {color: inherit;}
.notice-board__table td.notice-board__subject a:hover,
.notice-board__table td.archive-board__file a:hover {color: var(--color-main); text-decoration: underline;}
.notice-board__lock {display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px;}
.notice-pager a,
.notice-pager > span {display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 100px; font-size: 14px; font-weight: 400; color: #686868;}
.notice-pager > span.is-active {background: #111; color: var(--color-white); font-weight: 600;}
.notice-pager a:hover {color: var(--color-heading); background: #f2f2f2;}
.notice-pager a.notice-pager__arrow:hover {background: transparent;}
.notice-pager .notice-pager__arrow.is-disabled {opacity: 0.35; cursor: default;}
/* 모바일 게시판 목록 (767px 이하에서 표 대신 노출) */
ul.artio-board-m {display: none; margin: 20px 0 0; padding: 0; list-style: none; border-top: 2px solid #686868;}
.artio-board-m__item {display: flex; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--color-border);}
.artio-board-m__item.is-notice {background: #fafafa;}
.artio-board-m__body {flex: 1; min-width: 0;}
.artio-board-m__book {display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; line-height: 20px; letter-spacing: -0.26px; color: var(--color-main); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
.artio-board-m__title {display: -webkit-box; font-size: 15px; font-weight: 500; line-height: 22px; letter-spacing: -0.3px; color: var(--color-heading); word-break: keep-all; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.artio-board-m__title:hover {color: var(--color-main);}
.artio-board-m__label {display: inline-flex; align-items: center; height: 20px; margin-right: 6px; padding: 0 8px; border-radius: 100px; background: var(--color-main); color: var(--color-white); font-size: 11px; font-weight: 600; vertical-align: 1px;}
.artio-board-m__lock {display: inline-block; width: 12px; height: 14px; margin-left: 4px; vertical-align: -1px;}
.artio-board-m__info {display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 6px; font-size: 12px; line-height: 18px; color: #888;}
.artio-board-m__info > * + *::before {content: ""; display: inline-block; width: 1px; height: 8px; margin: 0 8px; background: #d0d0d0; vertical-align: middle;}
.artio-board-m__download {display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 100px; background: #111; color: var(--color-white); font-size: 12px; font-weight: 500; letter-spacing: -0.24px; white-space: nowrap;}
.artio-board-m__download img {width: 14px; height: 14px; filter: brightness(0) invert(1);}
.artio-board-m__download:hover {background: var(--color-main);}
.artio-board-m__empty {padding: 48px 0; border-bottom: 1px solid var(--color-border); text-align: center; font-size: 14px; color: #888;}
@media (max-width: 767px) {
  .artio-board .notice-board__table-wrap {display: none;}
  ul.artio-board-m {display: block;}
}

.artio-board__actions {display: flex; justify-content: flex-end; margin-top: 32px;}
.artio-board .board-actions {display: flex; flex-wrap: wrap; gap: 8px; margin: 0;}
.artio-board .board-actions a,
.artio-board .board-actions button {display: inline-flex; align-items: center; justify-content: center; min-width: 100px; height: 52px; padding: 0 24px; border: 1px solid var(--color-border); border-radius: 100px; font-size: 16px; font-weight: 600; color: var(--color-heading); background: var(--color-white); box-shadow: none;}
.artio-board .board-actions a:hover,
.artio-board .board-actions button:hover {border-color: #111; color: #111; background: var(--color-white);}
.artio-board .board-actions .btn-primary {min-width: 140px; border-color: var(--color-main); color: var(--color-white); background: var(--color-main);}
.artio-board .board-actions .btn-primary:hover {border-color: #c23832; color: var(--color-white); background: #c23832;}
.artio-view .notice-board__title {margin-bottom: 60px;}
.artio-view__article {border-top: 2px solid #686868;}
.artio-view__head {padding: 28px 40px; border-bottom: 1px solid var(--color-border); background: #fafafa;}
.artio-view__title {font-size: 24px; font-weight: 600; line-height: 34px; letter-spacing: -0.48px; color: var(--color-heading); word-break: keep-all;}
.artio-view__meta {display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 15px; line-height: 24px; color: #707070;}
.artio-view__meta dt {font-weight: 600; color: var(--color-heading);}
.artio-view__meta dd {margin: 0 0 0 -12px;}
.artio-view__body {min-height: 240px; padding: 48px 40px; border-bottom: 1px solid var(--color-border); font-size: 17px; line-height: 30px; color: var(--color-body); word-break: break-word;}
.artio-view__body img {max-width: 100%; height: auto;}
.artio-view__files {display: flex; flex-direction: column; gap: 10px; padding: 24px 40px; border-bottom: 1px solid var(--color-border); list-style: none;}
.artio-view__files li {display: flex; align-items: center; justify-content: space-between; gap: 16px;}
.artio-view__file-name {font-size: 16px; color: var(--color-heading); word-break: break-all;}
.artio-view__file-name em {font-style: normal; font-size: 14px; color: #888;}
.artio-view__foot {display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px;}
.artio-view__list {display: inline-flex; align-items: center; justify-content: center; min-width: 140px; height: 52px; padding: 0 28px; border: 1px solid #111; border-radius: 100px; font-size: 17px; font-weight: 600; color: #111; background: var(--color-white); transition: background-color 0.2s ease, color 0.2s ease;}
.artio-view__list:hover {background: #111; color: var(--color-white);}
.artio-board-form .notice-board__title {margin-bottom: 60px;}
.artio-board-form .artio-form {border-top: 2px solid #686868;}
.artio-board-form .artio-form__field > .fr-box,
.artio-board-form .artio-form__field > div {width: 100%;}
.artio-board-form .artio-form__agree {margin-top: 0;}
.artio-board-form__pass {max-width: 240px;}
.artio-board-form__files {display: flex; flex-direction: column; gap: 8px; width: 100%;}
.artio-board-form__add {min-height: 36px; padding: 0 14px; border: 1px dashed var(--color-border); border-radius: 8px; font-size: 14px; color: #707070; background: var(--color-white);}
.artio-board-form__attached {display: flex; flex-direction: column; gap: 6px; width: 100%; list-style: none; font-size: 14px; color: var(--color-heading);}
.artio-board-form__attached button {margin-left: 8px; padding: 2px 10px; border: 1px solid var(--color-border); border-radius: 6px; font-size: 13px; color: var(--color-main); background: var(--color-white);}
.artio-board-form .artio-form__actions {gap: 12px;}
@media (max-width: 767px) {
  .artio-board__empty {padding: 40px 0; font-size: 14px;}
  .notice-pager a,
  .notice-pager > span {width: 32px; height: 32px; font-size: 13px;}
  .artio-board__actions {margin-top: 24px;}
  .artio-board .board-actions a,
  .artio-board .board-actions button {min-width: 80px; height: 44px; padding: 0 18px; font-size: 14px;}
  .artio-board .board-actions .btn-primary {min-width: 110px;}
  .artio-view .notice-board__title,
  .artio-board-form .notice-board__title {margin-bottom: 32px;}
  .artio-view__head {padding: 18px 16px;}
  .artio-view__body {min-height: 160px; padding: 28px 16px; font-size: 15px; line-height: 26px;}
  .artio-view__files {gap: 8px; padding: 16px;}
  .artio-view__files li {flex-direction: column; align-items: flex-start; gap: 8px;}
  .artio-view__title {font-size: 18px; line-height: 28px; letter-spacing: -0.36px;}
  .artio-view__meta {gap: 4px 16px; margin-top: 8px; font-size: 13px; line-height: 20px;}
  .artio-view__file-name {font-size: 14px;}
  .artio-view__file-name em {font-size: 12px;}
  .artio-view__foot {margin-top: 28px;}
  .artio-view__list {min-width: 110px; height: 44px; padding: 0 20px; font-size: 15px;}
  .artio-board-form__add {min-height: 32px; padding: 0 12px; font-size: 13px;}
  .artio-board-form__attached {font-size: 13px;}
}

/* Unified archive book-title column. */
.archive-board--unified .archive-board__table th:nth-child(2),
.archive-board--unified .archive-board__table td:nth-child(2) {width: auto;}
.archive-board--unified .archive-board__table th:nth-child(3),
.archive-board--unified .archive-board__table td:nth-child(3) {width: 120px;}
.archive-board--unified .archive-board__table th:nth-child(4),
.archive-board--unified .archive-board__table td:nth-child(4) {width: 160px; padding-left: 0; padding-right: 0; text-align: center; white-space: nowrap;}
a[data-book-destination]:focus-visible {outline: 2px solid var(--color-main, #ef3333); outline-offset: 4px;}

/* Subpage page-title areas: keep navigation and content headings intact. */
h2.notice-board__title,
h2.form-section__title {display: none !important;}
