/* 창조회 시안 — 소개(S모루 · 2026-10-12)
   틀 = 해인갤러리 「갤러리 소개」(가운데 제목 · 탭 둘 · 바탕 한자 도장 · 서명 줄 · 단추 둘 · 아이콘 정보 줄)
   색 · 글꼴은 style.css 를 쓰고, 포인트 한 색만 더함 = 도록 속 로고 · 「연혁」 제목의 자주(사진에서 잼 · 원본 받으면 맞춤)
   글자: 본문 17px · 캡션 15px 이상 · 누르는 곳 48px 이상 */
:root { --ac: #9c3d62; --ac-soft: rgba(156, 61, 98, .08); }

/* ── 인사말 ── */
.ab-hello { padding: 56px var(--side) 88px; text-align: center; background: var(--paper); overflow-x: clip; }
.ab-lab { margin: 0; font-size: 16px; letter-spacing: .08em; color: var(--ink-2); }
.ab-tabs { display: flex; justify-content: center; gap: 12px; margin: 26px 0 44px; flex-wrap: wrap; }
.ab-tab { min-width: 176px; min-height: 60px; padding: 12px 26px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font-size: 18px; font-weight: var(--w-strong); color: var(--ink-2); transition: border-color .25s, color .25s, background .25s; }
.ab-tab svg { width: 58px; height: auto; fill: currentColor; display: block; }
.ab-tab:hover { border-color: var(--ac); color: var(--ac); }
.ab-tab[aria-selected="true"] { border-color: var(--ac); color: var(--ac); background: var(--ac-soft); }
.ab-tab:focus-visible { outline: 3px solid var(--ac); outline-offset: 3px; }

/* 두 창을 같은 칸에 겹쳐 두어 바꿀 때 화면이 안 움직인다 */
.ab-panes { position: relative; display: grid; justify-items: center; align-items: start; max-width: 860px; margin: 0 auto; }
.ab-pane { grid-area: 1 / 1; position: relative; z-index: 2; width: 100%; transition: opacity .35s ease; }
.ab-pane[hidden] { display: block; visibility: hidden; opacity: 0; pointer-events: none; }
.ab-seal { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 0; pointer-events: none; }
.ab-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.ab-fx i { position: absolute; left: 0; top: 0; display: block; background-repeat: no-repeat; will-change: transform, opacity; }

.ab-shout { margin: 0; font-weight: var(--w-strong); font-size: clamp(24px, 2.2vw, 28px); line-height: 1.45; letter-spacing: -.02em; color: var(--ink); }
.ab-body { max-width: 40em; margin: 26px auto 0; text-align: left; }
.ab-body p { margin: 0 0 1.1em; font-size: 17px; line-height: 1.95; color: var(--ink-2); }
.ab-body .ab-lead { font-size: 20px; line-height: 1.85; color: var(--ink); }
.ab-src { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.ab-sign { display: flex; justify-content: center; align-items: baseline; gap: 12px; max-width: 40em; margin: 34px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.ab-sign b { font-size: 20px; color: var(--ink); font-weight: var(--w-strong); letter-spacing: .02em; }
.ab-more { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.ab-btn, .ab-btn2 { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font-size: 16px; font-weight: var(--w-strong); text-decoration: none; border-radius: 2px; }
.ab-btn { background: var(--ac); color: #fff; }
.ab-btn:hover { background: #7f2f4f; }
.ab-btn2 { border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.ab-btn2:hover { border-color: var(--ac); color: var(--ac); }

/* 글이 차례로 떠오름(about.js 가 .in 을 붙임) — 줄인 움직임이면 처음부터 보임 */
.ab-anim [data-rise] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.ab-anim [data-rise].in { opacity: 1; transform: none; }

/* ── 숫자 ── */
.ab-nums { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--wall); padding: 64px var(--side); gap: 24px; text-align: center; }
.ab-nums b { display: block; font-weight: var(--w-strong); font-size: clamp(44px, 4.4vw, 64px); line-height: 1.1; color: var(--ac); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ab-nums span { display: block; margin-top: 10px; font-size: 16px; color: var(--ink-2); }

/* ── 연혁: 시대마다 선이 그어지며 줄이 차례로 ── */
.ab-hist header .ab-src { margin-top: 10px; }
.ab-tl { max-width: 860px; }
.ab-dec { position: relative; padding: 0 0 36px 32px; }
.ab-dec::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 0; width: 1px; background: var(--ac); opacity: .45; transform-origin: top; transform: scaleY(1); }
.ab-dec h3 { position: relative; margin: 0 0 10px; font-size: 24px; font-weight: var(--w-strong); color: var(--ac); }
.ab-dec h3::before { content: ""; position: absolute; left: -32px; top: 50%; width: 13px; height: 13px; margin-top: -6px; border-radius: 50%; background: var(--ac); }
.ab-dec ol { list-style: none; margin: 0; padding: 0; }
.ab-dec li { display: grid; grid-template-columns: 5.5em 7.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.55; }
.ab-dec li .n { color: var(--ink); font-weight: var(--w-strong); }
.ab-dec li .d { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ab-dec li .tag { display: inline-block; margin-left: 8px; padding: 0 9px; border-radius: 999px; background: var(--ac-soft); color: var(--ac); font-size: 15px; line-height: 1.7; vertical-align: 1px; }
.ab-anim .ab-dec::before { transform: scaleY(0); transition: transform 1.4s cubic-bezier(.3, .6, .2, 1); }
.ab-anim .ab-dec h3, .ab-anim .ab-dec li { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.ab-anim .ab-dec.in::before { transform: scaleY(1); }
.ab-anim .ab-dec.in h3, .ab-anim .ab-dec.in li { opacity: 1; transform: none; }

/* ── 가입 · 문의: 아이콘 동그라미 + 이름 + 값(해인 「오시는 길」 줄) ── */
.ab-rows { list-style: none; margin: 0 0 28px; padding: 0; max-width: 860px; border-bottom: 1px solid var(--line); }
.ab-rows li { display: grid; grid-template-columns: 48px 8em 1fr; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.ab-rows i { width: 40px; height: 40px; border-radius: 50%; background: var(--ac-soft); color: var(--ac); display: grid; place-items: center; }
.ab-rows i svg { width: 18px; height: 18px; fill: currentColor; }
.ab-rows .k { font-size: 15px; letter-spacing: .06em; color: var(--ac); font-weight: var(--w-strong); }
.ab-rows .v { font-size: 18px; color: var(--ink); }
.ab-rows .v small { display: block; font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.ab-rows .v.todo { color: #6b6b68; font-size: 17px; }

@media (max-width: 767px) {
  .ab-hello { padding: 32px var(--side) 64px; }
  .ab-tabs { margin: 20px 0 32px; }
  .ab-tab { min-width: 140px; min-height: 52px; font-size: 16px; padding: 10px 18px; }
  .ab-tab svg { width: 48px; }
  .ab-shout { font-size: 22px; }
  .ab-body p { font-size: 17px; }
  .ab-body .ab-lead { font-size: 19px; }
  .ab-more { flex-direction: column; } .ab-btn, .ab-btn2 { width: 100%; font-size: 17px; }
  .ab-nums { grid-template-columns: 1fr; gap: 28px; padding: 44px var(--side); }
  .ab-hist > header { display: block; }
  .ab-dec { padding-left: 26px; }
  .ab-dec h3::before { left: -26px; }
  .ab-dec li { grid-template-columns: 4.6em 1fr; gap: 2px 10px; }
  .ab-dec li .p { grid-column: 1 / -1; }
  .ab-rows li { grid-template-columns: 40px 1fr; }
  .ab-rows .v { grid-column: 2; }
}
