/* =====================================================================
 * 알리카지노 (alicasino.oncaguide.com) 전용 스타일시트
 * 팔레트: P02 그린 펠트 (어두움) / 글꼴: F10 Hahmlet 700 + 시스템 고딕 / 접두어: ac-
 * 공통 유지 클래스: .wrap .ad-slot .ad .ad-label .tbl-wrap .fig
 * ===================================================================== */

:root {
  --ac-bg: #0b1a14;
  --ac-bg-alt: #0f221a;
  --ac-surface: #12271e;
  --ac-surface2: #163025;
  --ac-line: #234939;
  --ac-line-gold: rgba(217, 194, 122, 0.34);
  --ac-ink: #e9f1ec;
  --ac-muted: #b8cfc2;
  --ac-brand: #1f7a4d;
  --ac-brand-hi: #34d399;
  --ac-link: #6ee7b7;
  --ac-gold: #d9c27a;
  --ac-gold-deep: #b89d4e;
  --ac-font-head: "Hahmlet", "Noto Serif KR", "Batang", Georgia, serif;
  --ac-font-body: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --ac-font-num: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Apple SD Gothic Neo", "Malgun Gothic", monospace;
  --ac-rad: 12px;
  --ac-rad-sm: 8px;
  --ac-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ac-bg); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 122, 77, 0.22) 0%, transparent 46%),
    radial-gradient(circle at 86% 6%, rgba(217, 194, 122, 0.11) 0%, transparent 38%),
    var(--ac-bg);
  color: var(--ac-ink);
  font-family: var(--ac-font-body);
  font-size: 16px;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ac-link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--ac-gold);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.ac-num {
  font-family: var(--ac-font-num);
  font-variant-numeric: tabular-nums;
}

/* 스킵 링크 */
.ac-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ac-gold);
  color: #0b1a14;
  padding: 10px 16px;
  border-radius: var(--ac-rad-sm);
  font-weight: 700;
  z-index: 200;
}
.ac-skip:focus { left: 12px; }

/* 머리글 */
.ac-hd {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 26, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ac-line);
}
.ac-hd-in {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.ac-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ac-ink);
  text-decoration: none;
  flex-shrink: 0;
}
.ac-brand:hover { text-decoration: none; }
.ac-mark { flex-shrink: 0; }
.ac-mark-bg { fill: #0b1a14; }
.ac-mark-ring { fill: none; stroke: #d9c27a; stroke-width: 2.5; }
.ac-mark-spade { fill: #1f7a4d; stroke: #d9c27a; stroke-width: 2; stroke-linejoin: round; }
.ac-mark-dot { fill: #d9c27a; }
.ac-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.ac-brand-ko {
  font-family: var(--ac-font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--ac-ink);
  letter-spacing: -0.02em;
}
.ac-brand-en {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac-gold);
}

.ac-mbtn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-rad-sm);
  background: var(--ac-surface);
  cursor: pointer;
}
.ac-mbtn-bar {
  width: 20px;
  height: 2px;
  background: var(--ac-gold);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ac-nav {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  background: #0e2119;
  border-bottom: 1px solid var(--ac-line-gold);
  padding: 12px 18px 18px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}
.ac-nav.is-open { display: flex; }
.ac-nav-a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--ac-rad-sm);
  color: var(--ac-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.ac-nav-a:hover {
  background: var(--ac-surface2);
  color: var(--ac-gold);
  text-decoration: none;
}

@media (min-width: 860px) {
  .ac-mbtn { display: none; }
  .ac-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    gap: 6px;
  }
  .ac-nav-a { min-height: 40px; padding: 6px 12px; font-size: 14.5px; }
}

/* 공통 요소 */
.ac-eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  font-family: var(--ac-font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ac-gold);
  text-transform: uppercase;
}
.ac-h1 {
  margin: 0 0 14px;
  font-family: var(--ac-font-head);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: #f6fbf8;
}
.ac-h2 {
  margin: 0 0 12px;
  font-family: var(--ac-font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: #f4faf6;
}
.ac-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 122, 77, 0.28);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #86efac;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--ac-rad-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.ac-btn:hover { text-decoration: none; transform: translateY(-1px); }
.ac-btn-gold {
  background: var(--ac-gold);
  color: #0b1a14;
}
.ac-btn-gold:hover { background: #e6d396; }
.ac-btn-pri {
  background: var(--ac-brand);
  color: #ffffff;
}
.ac-btn-pri:hover { background: #26915c; }
.ac-btn-line, .ac-btn-sec {
  background: var(--ac-surface);
  color: var(--ac-ink);
  border-color: var(--ac-line-gold);
}
.ac-btn-line:hover, .ac-btn-sec:hover {
  background: var(--ac-surface2);
  border-color: var(--ac-gold);
}

/* 첫 화면 (H6 메뉴 카드형) */
.ac-hero {
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--ac-line);
  background-image: radial-gradient(rgba(217, 194, 122, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.ac-hero-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.ac-hero-lead {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--ac-muted);
  max-width: 56ch;
}
.ac-hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ac-hero-media {
  border-radius: var(--ac-rad);
  overflow: hidden;
  border: 1px solid var(--ac-line-gold);
  background: var(--ac-surface);
  box-shadow: var(--ac-shadow);
}
.ac-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ac-mgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.ac-mcard {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: linear-gradient(160deg, var(--ac-surface2) 0%, var(--ac-surface) 100%);
  border: 1px solid var(--ac-line);
  border-top: 2px solid var(--ac-gold-deep);
  border-radius: var(--ac-rad);
  color: var(--ac-ink);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.ac-mcard:hover {
  transform: translateY(-3px);
  border-color: var(--ac-gold);
  box-shadow: var(--ac-shadow);
  text-decoration: none;
}
.ac-mcard-tag {
  font-family: var(--ac-font-num);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ac-gold);
  margin-bottom: 6px;
}
.ac-mcard-t {
  font-family: var(--ac-font-head);
  font-size: 18px;
  color: #f6fbf8;
  margin-bottom: 6px;
}
.ac-mcard-d {
  font-size: 14px;
  color: var(--ac-muted);
  line-height: 1.58;
  flex: 1;
}
.ac-mcard-go {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ac-brand-hi);
}

@media (min-width: 640px) {
  .ac-mgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
  .ac-hero { padding: 48px 0 46px; }
  .ac-hero-top { grid-template-columns: 1.15fr 0.85fr; gap: 36px; }
  .ac-mgrid { grid-template-columns: repeat(4, 1fr); }
}

/* 공통 광고 배너 영역 (어두운 배경 가독성 보강 + 상단 배너 제목 디자인) */
.ad-slot {
  padding: 26px 0;
  background: rgba(15, 34, 26, 0.78);
  border-top: 1px solid var(--ac-line);
  border-bottom: 1px solid var(--ac-line);
}
.ad-slot .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ad-slot.ad-grid .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  gap: 14px;
}
.ad-top .ad-title {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 8px;
  font-family: var(--ac-font-head);
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 700;
  color: var(--ac-gold);
  text-align: center;
  letter-spacing: -0.015em;
}
.ad-slot .ad {
  display: block;
  width: 100%;
  max-width: 960px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(217, 194, 122, 0.28);
  background: #142c22;
}
.ad-slot .ad img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 일반 섹션 */
.ac-sec {
  padding: 52px 0;
}
.ac-sec-alt {
  background: var(--ac-bg-alt);
  border-top: 1px solid var(--ac-line);
  border-bottom: 1px solid var(--ac-line);
}
.ac-sec-head {
  margin-bottom: 26px;
  max-width: 740px;
}
.ac-sec-intro {
  margin: 0;
  color: var(--ac-muted);
  font-size: 15.5px;
}
.ac-footnote {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--ac-muted);
}

/* S17 매트릭스 표 */
.tbl-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ac-tbl-box {
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-rad);
  background: var(--ac-surface);
}
.ac-mtx {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.ac-mtx th, .ac-mtx td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--ac-line);
  text-align: left;
  vertical-align: middle;
}
.ac-mtx thead th {
  background: #0d1f18;
  color: var(--ac-gold);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}
.ac-mtx tbody tr:last-child th, .ac-mtx tbody tr:last-child td { border-bottom: 0; }
.ac-mtx tbody tr:hover { background: rgba(31, 122, 77, 0.14); }
.ac-mtx-name {
  font-family: var(--ac-font-head);
  font-weight: 700;
  color: #f6fbf8;
  white-space: nowrap;
}
.ac-sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-right: 4px;
}
.ac-sym-ok { background: rgba(52, 211, 153, 0.2); color: #6ee7b7; }
.ac-sym-mid { background: rgba(217, 194, 122, 0.2); color: var(--ac-gold); }
.ac-sym-no { background: rgba(184, 207, 194, 0.14); color: var(--ac-muted); }
.ac-sym-txt { font-size: 13.5px; color: var(--ac-muted); }

/* S15 4단계 흐름도 */
.ac-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.ac-flow-step {
  padding: 20px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-left: 3px solid var(--ac-gold);
  border-radius: var(--ac-rad);
  display: flex;
  flex-direction: column;
}
.ac-flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ac-flow-num {
  font-family: var(--ac-font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0b1a14;
  background: var(--ac-gold);
  padding: 3px 9px;
  border-radius: 4px;
}
.ac-flow-arr { color: var(--ac-gold); transform: rotate(90deg); }
.ac-flow-t {
  margin: 0 0 8px;
  font-family: var(--ac-font-head);
  font-size: 18px;
  color: #f6fbf8;
}
.ac-flow-d {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--ac-muted);
  flex: 1;
}
.ac-flow-pt {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--ac-line);
  font-size: 13px;
  color: var(--ac-brand-hi);
  font-weight: 600;
}
@media (min-width: 760px) {
  .ac-flow { grid-template-columns: repeat(2, 1fr); }
  .ac-flow-arr { transform: none; }
}
@media (min-width: 1024px) {
  .ac-flow { grid-template-columns: repeat(4, 1fr); }
}

/* S03 콤프·롤링 계산기 */
.ac-calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.ac-preset-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--ac-rad-sm);
  border: 1px solid var(--ac-line-gold);
  background: var(--ac-surface);
  color: var(--ac-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ac-preset-btn:hover, .ac-preset-btn.is-active {
  background: var(--ac-brand);
  border-color: var(--ac-brand-hi);
  color: #ffffff;
}
.ac-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 22px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line-gold);
  border-radius: var(--ac-rad);
}
.ac-calc-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.ac-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ac-muted);
}
.ac-field input, .ac-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--ac-rad-sm);
  border: 1px solid var(--ac-line);
  background: #0b1a14;
  color: var(--ac-ink);
  font-size: 16px;
  font-family: var(--ac-font-num);
}
.ac-calc-out {
  padding: 20px;
  background: #0c1d16;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-rad-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.ac-out-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ac-line);
}
.ac-out-k { font-size: 14px; color: var(--ac-muted); }
.ac-out-v { font-size: 20px; color: #f6fbf8; white-space: nowrap; }
.ac-out-hi .ac-out-v { font-size: 24px; color: var(--ac-gold); }
.ac-out-note { margin: 4px 0 0; font-size: 13px; color: var(--ac-muted); line-height: 1.6; }
@media (min-width: 780px) {
  .ac-calc-grid { grid-template-columns: 1fr 1fr; padding: 28px; gap: 28px; }
  .ac-calc-form { grid-template-columns: 1fr 1fr; align-content: start; }
}

/* S07 용어집 */
.ac-gloss {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.ac-gloss-card {
  padding: 18px 20px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-rad);
}
.ac-gloss-dt {
  font-family: var(--ac-font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--ac-gold);
  margin-bottom: 6px;
}
.ac-gloss-dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ac-muted);
}
@media (min-width: 700px) {
  .ac-gloss { grid-template-columns: repeat(2, 1fr); }
}

/* S10 시나리오 4카드 */
.ac-scn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.ac-scn-card {
  padding: 22px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-rad);
  display: flex;
  flex-direction: column;
}
.ac-scn-t {
  margin: 12px 0 8px;
  font-family: var(--ac-font-head);
  font-size: 19px;
  color: #f6fbf8;
}
.ac-scn-b {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--ac-muted);
  flex: 1;
}
.ac-scn-tip {
  margin: 0;
  padding: 10px 12px;
  background: rgba(11, 26, 20, 0.7);
  border-left: 3px solid var(--ac-brand-hi);
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--ac-ink);
  font-weight: 600;
}
@media (min-width: 720px) {
  .ac-scn-grid { grid-template-columns: repeat(2, 1fr); }
}

/* S16 자가 점검 */
.ac-chk-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.ac-chk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ac-chk-lbl {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  min-height: 52px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-rad-sm);
  cursor: pointer;
}
.ac-chk-lbl:hover { border-color: var(--ac-gold-deep); }
.ac-chk-in {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ac-chk-box {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 2px solid var(--ac-gold);
  background: #0b1a14;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ac-chk-in:checked + .ac-chk-box {
  background: var(--ac-brand);
  border-color: var(--ac-brand-hi);
}
.ac-chk-in:checked + .ac-chk-box::after {
  content: "✓";
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}
.ac-chk-in:focus-visible + .ac-chk-box {
  outline: 2px solid var(--ac-gold);
  outline-offset: 2px;
}
.ac-chk-txt { font-size: 15px; color: var(--ac-ink); }
.ac-chk-panel {
  padding: 22px;
  background: #0c1d16;
  border: 1px solid var(--ac-line-gold);
  border-radius: var(--ac-rad);
  align-self: start;
}
.ac-chk-score-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.ac-chk-score-lbl { font-size: 14px; color: var(--ac-muted); }
.ac-chk-score-num { font-size: 26px; color: var(--ac-gold); }
.ac-chk-bar {
  height: 10px;
  background: var(--ac-surface2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.ac-chk-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ac-brand), var(--ac-gold));
  transition: width 0.25s ease;
}
.ac-chk-msg {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--ac-ink);
}
.ac-chk-reset { width: 100%; }
@media (min-width: 840px) {
  .ac-chk-wrap { grid-template-columns: 1.45fr 0.85fr; align-items: start; }
}

/* S18 가이드 글 카드 */
.ac-guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.ac-guide-card {
  display: flex;
  flex-direction: column;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-rad);
  overflow: hidden;
  color: var(--ac-ink);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.ac-guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--ac-gold);
  text-decoration: none;
}
.ac-guide-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ac-guide-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ac-guide-title {
  margin: 0;
  font-family: var(--ac-font-head);
  font-size: 18px;
  line-height: 1.38;
  color: #f6fbf8;
}
.ac-guide-sum {
  margin: 0;
  font-size: 14px;
  color: var(--ac-muted);
  line-height: 1.58;
}
@media (min-width: 680px) {
  .ac-guides-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .ac-guides-grid.ac-guides-3 { grid-template-columns: repeat(3, 1fr); }
}

/* S19 FAQ */
.ac-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ac-faq-item {
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-rad-sm);
  overflow: hidden;
}
.ac-faq-item[open] { border-color: var(--ac-line-gold); }
.ac-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 700;
  font-size: 15.5px;
  color: #f6fbf8;
}
.ac-faq-q::-webkit-details-marker { display: none; }
.ac-faq-q::after {
  content: "+";
  font-family: var(--ac-font-num);
  font-size: 20px;
  color: var(--ac-gold);
  flex-shrink: 0;
}
.ac-faq-item[open] .ac-faq-q::after { content: "−"; }
.ac-faq-a {
  padding: 0 20px 18px;
  color: var(--ac-muted);
  font-size: 15px;
  border-top: 1px solid rgba(35, 73, 57, 0.7);
}
.ac-faq-a p { margin: 12px 0 0; }

/* 하위 글 화면 (page.php) */
.ac-art { padding: 28px 0 0; }
.ac-art-wrap { max-width: 820px; }
.ac-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ac-muted);
  margin-bottom: 18px;
}
.ac-crumbs a { color: var(--ac-gold); }
.ac-art-head { margin-bottom: 22px; }
.ac-art-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ac-art-read { font-size: 13.5px; color: var(--ac-muted); }
.ac-art-h1 {
  margin: 0 0 12px;
  font-family: var(--ac-font-head);
  font-size: clamp(24px, 3.8vw, 36px);
  line-height: 1.3;
  color: #f6fbf8;
}
.ac-art-lead {
  margin: 0;
  font-size: 16.5px;
  color: var(--ac-muted);
  line-height: 1.7;
}
.ac-art-hero {
  margin: 0 0 26px;
  border-radius: var(--ac-rad);
  overflow: hidden;
  border: 1px solid var(--ac-line-gold);
}
.ac-art-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.ac-toc {
  margin: 0 0 28px;
  padding: 18px 22px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-left: 3px solid var(--ac-gold);
  border-radius: var(--ac-rad-sm);
}
.ac-toc-hd {
  margin: 0 0 10px;
  font-family: var(--ac-font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ac-gold);
}
.ac-toc-ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.ac-toc-ol a { color: var(--ac-ink); font-size: 15px; }
.ac-toc-ol a:hover { color: var(--ac-gold); }

.ac-prose { font-size: 16px; line-height: 1.82; color: var(--ac-ink); }
.ac-prose h2 {
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ac-line);
  font-family: var(--ac-font-head);
  font-size: clamp(20px, 2.6vw, 25px);
  color: var(--ac-gold);
}
.ac-prose h3 {
  margin: 24px 0 10px;
  font-family: var(--ac-font-head);
  font-size: 18px;
  color: #f6fbf8;
}
.ac-prose p { margin: 0 0 16px; }
.ac-prose ul, .ac-prose ol { margin: 0 0 18px; padding-left: 22px; }
.ac-prose li { margin-bottom: 8px; color: var(--ac-muted); }
.ac-prose li strong { color: var(--ac-ink); }
.ac-prose blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--ac-surface);
  border-left: 3px solid var(--ac-brand-hi);
  border-radius: 0 var(--ac-rad-sm) var(--ac-rad-sm) 0;
  color: #f6fbf8;
}
.ac-prose .tbl-wrap {
  margin: 20px 0;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-rad-sm);
}
.ac-prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 0;
  background: var(--ac-surface);
  font-size: 14.5px;
}
.ac-prose th, .ac-prose td {
  padding: 11px 13px;
  border: 1px solid var(--ac-line);
  text-align: left;
}
.ac-prose thead th { background: #0d1f18; color: var(--ac-gold); }
.ac-prose .fig { margin: 24px 0; }
.ac-prose .fig img { border-radius: var(--ac-rad-sm); border: 1px solid var(--ac-line); }
.ac-prose .fig figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ac-muted); text-align: center; }

.ac-art-faq { margin: 40px 0 44px; }
.ac-art-subh {
  margin: 0 0 16px;
  font-family: var(--ac-font-head);
  font-size: 22px;
  color: #f6fbf8;
}

/* 404 화면 */
.ac-nf { padding: 80px 0 96px; }
.ac-nf-box { max-width: 540px; text-align: center; }
.ac-nf-code {
  margin: 0 0 8px;
  font-family: var(--ac-font-num);
  font-size: 56px;
  font-weight: 700;
  color: var(--ac-gold);
  line-height: 1;
}
.ac-nf-h1 {
  margin: 0 0 14px;
  font-family: var(--ac-font-head);
  font-size: 26px;
  color: #f6fbf8;
}
.ac-nf-desc { margin: 0 0 26px; color: var(--ac-muted); }
.ac-nf-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* 바닥글 */
.ac-ft {
  background: #07120e;
  border-top: 1px solid var(--ac-line);
  padding: 42px 0 28px;
  color: var(--ac-muted);
  font-size: 14px;
}
.ac-ft-in {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ac-line);
}
.ac-ft-desc { margin: 12px 0 10px; max-width: 44ch; line-height: 1.65; }
.ac-ft-mail { margin: 0; font-size: 13.5px; }
.ac-ft-head {
  margin: 0 0 10px;
  font-family: var(--ac-font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ac-gold);
}
.ac-ft-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ac-ft-ul a { color: var(--ac-muted); }
.ac-ft-ul a:hover { color: var(--ac-ink); }
.ac-ft-base {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #8fb09e;
}
@media (min-width: 780px) {
  .ac-ft-in { grid-template-columns: 1.5fr 0.8fr 1.2fr; }
}

/* 맨 위로 버튼 */
.ac-topbtn {
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ac-gold);
  background: #12271e;
  color: var(--ac-gold);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  z-index: 90;
}
.ac-topbtn:hover { background: var(--ac-brand); color: #ffffff; }
