/* ==========================================================================
   slotsite.paldoslot.net (슬롯머신사이트) 전용 스타일시트
   팔레트: P05 화이트 오렌지 (밝음) | 글꼴: F08 Gothic A1 800 + 시스템 고딕
   스타일: 스위스 에디토리얼 (2px 잉크 블랙 외곽선, 4px 오프셋 그림자, 미세 격자)
   공통 클래스 유지: .wrap .ad-slot .ad .ad-label .tbl-wrap .fig
   ========================================================================== */

:root {
  --sm-bg: #ffffff;
  --sm-surface: #faf7f4;
  --sm-surface-2: #f3ede6;
  --sm-ink: #111111;
  --sm-muted: #4a4a52;
  --sm-accent: #c4400c;
  --sm-accent-bright: #ff5a1f;
  --sm-accent-soft: #fff1eb;
  --sm-line: #111111;
  --sm-line-soft: #dfd8cf;
  --sm-ok: #14532d;
  --sm-ok-bg: #ecfdf5;
  --sm-warn: #991b1b;
  --sm-warn-bg: #fef2f2;
  --sm-font-head: "Gothic A1", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --sm-font-body: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --sm-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Apple SD Gothic Neo", "Malgun Gothic", monospace;
  --sm-shadow: 4px 4px 0 #111111;
  --sm-radius: 4px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--sm-bg);
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--sm-ink);
  font-family: var(--sm-font-body);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  word-break: keep-all;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sm-accent-bright);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--sm-font-head);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.28;
  margin: 0;
  color: var(--sm-ink);
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.sm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sm-ink);
  color: #ffffff;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 999;
}

.sm-skip:focus {
  left: 12px;
  top: 12px;
}

/* --- Header --- */
.sm-hd {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--sm-line);
}

.sm-hd-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.sm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sm-mark svg {
  display: block;
}

.sm-mk-bg { fill: #111111; }
.sm-mk-shield { fill: #ff5a1f; }
.sm-mk-chk { stroke: #ffffff; }

.sm-brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sm-brand-ko {
  font-family: var(--sm-font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sm-brand-en {
  font-family: var(--sm-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--sm-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sm-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: var(--sm-radius);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.sm-nav a:hover {
  background: var(--sm-accent-soft);
  border-color: var(--sm-line);
  color: var(--sm-accent);
}

.sm-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  cursor: pointer;
  padding: 0;
}

.sm-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sm-ink);
}

/* --- Buttons --- */
.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font-family: var(--sm-font-head);
  font-size: 15px;
  font-weight: 800;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s;
}

.sm-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--sm-line);
}

.sm-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--sm-line);
}

.sm-btn-pri {
  background: var(--sm-accent);
  color: #ffffff;
}

.sm-btn-pri:hover {
  background: #c93d0b;
}

.sm-btn-sub {
  background: #ffffff;
  color: var(--sm-ink);
}

.sm-btn-sub:hover {
  background: var(--sm-surface-2);
}

/* --- Hero (H5 비교표 먼저) --- */
.sm-hero {
  padding: 44px 0 36px;
  border-bottom: 2px solid var(--sm-line);
  background: linear-gradient(180deg, rgba(250, 247, 244, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.sm-hero-top {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 30px;
}

.sm-kicker {
  display: inline-block;
  font-family: var(--sm-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: var(--sm-ink);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.sm-hero-copy h1 {
  font-size: clamp(27px, 3.6vw, 42px);
  line-height: 1.22;
  margin-bottom: 14px;
}

.sm-hero-lead {
  font-size: 16.5px;
  color: var(--sm-muted);
  margin-bottom: 22px;
  max-width: 58ch;
}

.sm-hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sm-hero-art {
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: 6px 6px 0 var(--sm-line);
  overflow: hidden;
}

.sm-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sm-quickcmp {
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
  padding: 20px;
}

.sm-quickcmp-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sm-tag {
  display: inline-block;
  font-family: var(--sm-font-head);
  font-size: 13px;
  font-weight: 800;
  background: var(--sm-accent);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 2px;
}

.sm-quickcmp-hd p {
  font-size: 14.5px;
  color: var(--sm-muted);
  font-weight: 600;
}



/* --- Common Banners (.ad-slot, .ad, .ad-top .ad-title) --- */
.ad-slot {
  padding: 28px 0;
  background: var(--sm-surface);
  border-bottom: 2px solid var(--sm-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(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.ad-top .ad-title {
  grid-column: 1 / -1;
  width: 100%;
  font-family: var(--sm-font-head);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--sm-ink);
  text-align: center;
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--sm-accent-bright);
  letter-spacing: -0.02em;
}

.ad {
  display: block;
  width: 100%;
  max-width: 100%;
}

.ad img {
  margin: 0 auto;
  border-radius: var(--sm-radius);
}

/* --- Section Base --- */
.sm-sec {
  padding: 64px 0;
  border-bottom: 2px solid var(--sm-line);
  background: rgba(255, 255, 255, 0.9);
}

.sm-sec-alt {
  background: rgba(250, 247, 244, 0.94);
}

.sm-sec-hd {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.sm-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 36px;
  padding: 0 10px;
  background: var(--sm-ink);
  color: #ffffff;
  font-family: var(--sm-font-mono);
  font-size: 14px;
  font-weight: 800;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sm-sec-hd h2 {
  font-size: clamp(22px, 2.8vw, 31px);
  margin-bottom: 6px;
}

.sm-sec-lead {
  color: var(--sm-muted);
  font-size: 15.5px;
  max-width: 68ch;
}

/* --- Tables (.tbl-wrap) --- */
.sm-card-box {
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
  padding: 20px;
}

.tbl-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sm-tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14.5px;
}

.sm-tbl th,
.sm-tbl td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--sm-line-soft);
  vertical-align: top;
}

.sm-tbl thead th {
  background: var(--sm-ink);
  color: #ffffff;
  font-family: var(--sm-font-head);
  font-weight: 800;
  font-size: 13.5px;
  border-bottom: 2px solid var(--sm-line);
  white-space: nowrap;
}

.sm-tbl tbody tr:nth-child(even) {
  background: var(--sm-surface);
}

.sm-tbl tbody th {
  font-weight: 800;
  color: var(--sm-ink);
  min-width: 150px;
}

.sm-subtxt {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sm-muted);
  margin-top: 2px;
}

.sm-num {
  font-family: var(--sm-font-mono);
  font-weight: 700;
  white-space: nowrap;
}

.sm-lv {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 9px;
  border: 1.5px solid var(--sm-line);
  border-radius: 2px;
  white-space: nowrap;
}

.sm-lv-lo { background: var(--sm-ok-bg); color: var(--sm-ok); }
.sm-lv-mid { background: #fff7ed; color: #9a3412; }
.sm-lv-hi { background: var(--sm-accent-soft); color: var(--sm-accent); }
.sm-lv-max { background: var(--sm-ink); color: #ffffff; }

.sm-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--sm-muted);
  padding-top: 12px;
  border-top: 1px dashed var(--sm-line-soft);
}

/* --- S11 SVG Chart --- */
.sm-chart-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.sm-chart-box,
.sm-chart-aside {
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
  padding: 22px;
}

.sm-svgchart {
  width: 100%;
  height: auto;
  display: block;
}

.sm-svg-lbl {
  font-family: var(--sm-font-mono);
  font-size: 13px;
  font-weight: 700;
  fill: #111111;
}

.sm-svg-val {
  font-family: var(--sm-font-body);
  font-size: 13px;
  font-weight: 700;
  fill: #111111;
}

.sm-bar-hi { fill: #e04810; }
.sm-bar-md { fill: #ff7a45; }
.sm-bar-lo { fill: #52525b; }

.sm-chart-aside h3 {
  font-size: 19px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sm-line);
}

.sm-keylist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sm-keylist strong {
  display: block;
  font-size: 15px;
  color: var(--sm-accent);
  margin-bottom: 3px;
}

.sm-keylist p {
  font-size: 14.5px;
  color: var(--sm-muted);
}

/* --- S05 Timeline --- */
.sm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.sm-step {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
  padding: 20px;
  align-items: start;
}

.sm-step-no {
  font-family: var(--sm-font-mono);
  font-size: 14px;
  font-weight: 800;
  background: var(--sm-accent-soft);
  color: var(--sm-accent);
  border: 2px solid var(--sm-line);
  padding: 6px 10px;
  text-align: center;
  border-radius: 2px;
}

.sm-step-body h3 {
  font-size: 18.5px;
  margin-bottom: 6px;
}

.sm-step-body p {
  font-size: 15px;
  color: var(--sm-muted);
}

.sm-step-chk {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--sm-surface);
  border-left: 4px solid var(--sm-accent);
  font-size: 14px;
  color: var(--sm-ink) !important;
  font-weight: 600;
}

.sm-step-chk span {
  display: inline-block;
  font-family: var(--sm-font-head);
  color: var(--sm-accent);
  margin-right: 6px;
}

/* --- S23 Before / After --- */
.sm-ba-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sm-ba-row {
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sm-ba-topic {
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sm-line);
}

.sm-ba-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sm-ba-col {
  padding: 14px;
  border-radius: 2px;
  border: 1.5px solid var(--sm-line-soft);
}

.sm-ba-before {
  background: var(--sm-warn-bg);
  border-color: #fecaca;
}

.sm-ba-after {
  background: var(--sm-ok-bg);
  border-color: #bbf7d0;
}

.sm-ba-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--sm-warn);
  color: #ffffff;
  margin-bottom: 6px;
}

.sm-ba-pill-ok {
  background: var(--sm-ok);
}

.sm-ba-col p {
  font-size: 14.5px;
  color: var(--sm-ink);
}

/* --- S24 Glossary Search (JS) --- */
.sm-dict-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  background: var(--sm-surface);
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  padding: 14px 16px;
}

.sm-dict-search {
  flex: 1 1 260px;
}

.sm-dict-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 15px;
  font-family: var(--sm-font-body);
  color: var(--sm-ink);
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
}

.sm-dict-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sm-cat-btn {
  min-height: 44px;
  padding: 6px 14px;
  font-family: var(--sm-font-head);
  font-size: 13.5px;
  font-weight: 800;
  background: #ffffff;
  color: var(--sm-ink);
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  cursor: pointer;
}

.sm-cat-btn.is-on {
  background: var(--sm-accent);
  color: #ffffff;
}

.sm-dict-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.sm-dict-item {
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  padding: 18px;
  box-shadow: 3px 3px 0 var(--sm-line);
}

.sm-dict-item[hidden] {
  display: none;
}

.sm-dict-item dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.sm-dict-cat {
  font-size: 11.5px;
  font-weight: 800;
  background: var(--sm-accent-soft);
  color: var(--sm-accent);
  border: 1px solid var(--sm-accent);
  padding: 1px 7px;
  border-radius: 2px;
}

.sm-dict-item dt strong {
  font-family: var(--sm-font-head);
  font-size: 17px;
}

.sm-dict-en {
  font-family: var(--sm-font-mono);
  font-size: 12px;
  color: var(--sm-muted);
}

.sm-dict-item dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--sm-muted);
}

.sm-dict-empty {
  padding: 24px;
  text-align: center;
  background: var(--sm-surface);
  border: 2px dashed var(--sm-line);
  font-weight: 700;
}

/* --- S14 Quote --- */
.sm-quote-sec {
  padding: 52px 0;
  background: var(--sm-ink);
  color: #ffffff;
  border-bottom: 2px solid var(--sm-line);
}

.sm-quote-box {
  margin: 0;
  padding: 28px 30px;
  border-left: 8px solid var(--sm-accent-bright);
  background: #1b1b1f;
}

.sm-quote-kicker {
  font-family: var(--sm-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--sm-accent-bright);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.sm-quote-txt {
  font-family: var(--sm-font-head);
  font-size: clamp(20px, 2.7vw, 30px);
  font-weight: 800;
  line-height: 1.38;
  color: #ffffff;
  margin-bottom: 10px;
}

.sm-quote-sub {
  font-size: 15px;
  color: #d4d4d8;
}

/* --- S20 Manage Rules --- */
.sm-limit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sm-limit-card {
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm-limit-no {
  font-family: var(--sm-font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--sm-accent);
  line-height: 1;
}

.sm-limit-card h3 {
  font-size: 19px;
}

.sm-limit-card p {
  font-size: 14.5px;
  color: var(--sm-muted);
}

.sm-limit-rule {
  margin-top: auto;
  padding: 10px 12px;
  background: var(--sm-accent-soft);
  border: 1.5px solid var(--sm-line);
  color: var(--sm-ink) !important;
  font-size: 13.5px !important;
  font-weight: 700;
}

/* --- S18 Guides --- */
.sm-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.sm-guides-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sm-guide-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
  overflow: hidden;
  transition: transform 0.14s, box-shadow 0.14s;
}

.sm-guide-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--sm-line);
}

.sm-guide-thumb {
  border-bottom: 2px solid var(--sm-line);
  background: var(--sm-surface);
  overflow: hidden;
}

.sm-guide-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sm-guide-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.sm-guide-cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: var(--sm-ink);
  padding: 2px 9px;
  border-radius: 2px;
}

.sm-guide-body h3 {
  font-size: 19px;
  line-height: 1.35;
}

.sm-guide-body p {
  font-size: 14.5px;
  color: var(--sm-muted);
}

.sm-guide-more {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--sm-font-head);
  font-size: 14px;
  font-weight: 800;
  color: var(--sm-accent);
}

/* --- S19 FAQ --- */
.sm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sm-faq-item {
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: 3px 3px 0 var(--sm-line);
}

.sm-faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
  font-family: var(--sm-font-head);
  font-size: 16.5px;
  font-weight: 800;
}

.sm-faq-item summary::-webkit-details-marker {
  display: none;
}

.sm-faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--sm-font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--sm-accent);
  flex-shrink: 0;
}

.sm-faq-item[open] summary::after {
  content: "−";
}

.sm-faq-qno {
  font-family: var(--sm-font-mono);
  font-size: 13px;
  font-weight: 800;
  background: var(--sm-accent);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.sm-faq-a {
  padding: 0 18px 18px 62px;
  color: var(--sm-muted);
  font-size: 15px;
  border-top: 1px dashed var(--sm-line-soft);
  padding-top: 14px;
}

/* --- Post (하위 글) --- */
.sm-post-main {
  background: #ffffff;
}

.sm-post {
  padding: 36px 0 64px;
  border-bottom: 2px solid var(--sm-line);
}

.sm-post-wrap {
  max-width: 820px;
}

.sm-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--sm-muted);
  margin-bottom: 20px;
  font-weight: 600;
}

.sm-crumbs a:hover {
  color: var(--sm-accent);
  text-decoration: underline;
}

.sm-post-hd {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--sm-line);
}

.sm-post-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sm-post-cat {
  font-size: 12.5px;
  font-weight: 800;
  background: var(--sm-accent);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 2px;
}

.sm-post-min {
  font-size: 13.5px;
  color: var(--sm-muted);
  font-weight: 700;
}

.sm-post-hd h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 12px;
}

.sm-post-lead {
  font-size: 17px;
  color: var(--sm-muted);
  line-height: 1.65;
}

.sm-post-hero {
  margin: 0 0 26px;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
  overflow: hidden;
  background: var(--sm-surface);
}

.sm-post-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sm-toc {
  background: var(--sm-surface);
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  padding: 18px 22px;
  margin-bottom: 32px;
}

.sm-toc-hd {
  font-family: var(--sm-font-head);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
}

.sm-toc ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sm-toc a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--sm-ink);
}

.sm-toc a:hover {
  color: var(--sm-accent);
  text-decoration: underline;
}

.sm-prose h2 {
  font-size: clamp(21px, 2.5vw, 26px);
  margin: 38px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sm-line);
}

.sm-prose h3 {
  font-size: 18.5px;
  margin: 24px 0 10px;
  color: var(--sm-accent);
}

.sm-prose p {
  margin-bottom: 16px;
  font-size: 16px;
  color: #1f1f24;
}

.sm-prose ul,
.sm-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.sm-prose li {
  margin-bottom: 8px;
}

.sm-prose a {
  color: var(--sm-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sm-prose blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--sm-accent-soft);
  border-left: 5px solid var(--sm-accent);
  border-top: 1px solid var(--sm-line);
  border-right: 1px solid var(--sm-line);
  border-bottom: 1px solid var(--sm-line);
  font-weight: 700;
  color: var(--sm-ink);
}

.sm-prose .tbl-wrap {
  margin: 22px 0;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
}

.sm-prose table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 14.5px;
}

.sm-prose th,
.sm-prose td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--sm-line-soft);
  text-align: left;
}

.sm-prose thead th {
  background: var(--sm-ink);
  color: #ffffff;
  font-weight: 800;
}

.sm-prose tbody tr:nth-child(even) {
  background: var(--sm-surface);
}

.fig {
  margin: 24px 0;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  overflow: hidden;
  background: var(--sm-surface);
}

.fig figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--sm-muted);
  border-top: 1px solid var(--sm-line-soft);
}

.sm-post-faq {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 2px solid var(--sm-line);
}

.sm-post-faq h2 {
  font-size: 23px;
  margin-bottom: 16px;
}

/* --- 404 --- */
.sm-404 {
  max-width: 600px;
  margin: 32px auto;
  background: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: 6px 6px 0 var(--sm-line);
  padding: 40px 28px;
  text-align: center;
}

.sm-404-code {
  font-family: var(--sm-font-mono);
  font-size: 56px;
  font-weight: 800;
  color: var(--sm-accent);
  line-height: 1;
  margin-bottom: 12px;
}

.sm-404 h1 {
  font-size: 26px;
  margin-bottom: 12px;
}

.sm-404 p {
  color: var(--sm-muted);
  margin-bottom: 24px;
}

.sm-404-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --- Footer --- */
.sm-ft {
  background: var(--sm-ink);
  color: #f4f4f5;
  padding: 48px 0 42px;
}

.sm-ft-in {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 32px;
  align-items: start;
}

.sm-ft-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sm-font-head);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 12px;
}

.sm-ft-mk-bg { fill: #ffffff; }
.sm-ft-mk-shield { fill: #ff5a1f; }
.sm-ft-mk-chk { stroke: #ffffff; }

.sm-ft-desc {
  font-size: 14px;
  color: #d4d4d8;
  max-width: 40ch;
}

.sm-ft-kicker {
  font-family: var(--sm-font-head);
  font-size: 13px;
  font-weight: 800;
  color: var(--sm-accent-bright);
  margin-bottom: 10px;
}

.sm-ft-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.sm-ft-links a {
  font-size: 14px;
  color: #e4e4e7;
}

.sm-ft-links a:hover {
  color: var(--sm-accent-bright);
  text-decoration: underline;
}



.sm-ft-contact,
.sm-ft-copy {
  font-size: 13.5px;
  color: #a1a1aa;
  margin-top: 6px;
}

.sm-ft-contact a {
  color: #f4f4f5;
  text-decoration: underline;
}

/* --- Back to top --- */
.sm-topbtn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  background: var(--sm-accent);
  color: #ffffff;
  border: 2px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: 3px 3px 0 var(--sm-line);
  font-family: var(--sm-font-mono);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  z-index: 90;
}

.sm-topbtn[hidden] {
  display: none;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .sm-hero-top,
  .sm-chart-grid,
  .sm-limit-grid,
  .sm-guides-grid-3,
  .sm-ft-in {
    grid-template-columns: 1fr;
  }

  .ad-slot.ad-grid .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .sm-burger {
    display: inline-flex;
  }

  .sm-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #ffffff;
    border-bottom: 2px solid var(--sm-line);
    padding: 12px 20px 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .sm-nav.is-open {
    display: block;
  }

  .sm-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .sm-nav a {
    min-height: 44px;
    padding: 8px 12px;
    background: var(--sm-surface);
    border-color: var(--sm-line-soft);
  }

  .sm-ba-list,
  .sm-dict-grid,
  .sm-guides-grid {
    grid-template-columns: 1fr;
  }

  .sm-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sm-step-no {
    justify-self: start;
  }

  .sm-faq-a {
    padding-left: 18px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }

  .sm-hero {
    padding: 28px 0 28px;
  }

  .sm-sec {
    padding: 46px 0;
  }

  .sm-sec-hd {
    flex-direction: column;
    gap: 8px;
  }

  .sm-quickcmp,
  .sm-card-box,
  .sm-chart-box,
  .sm-chart-aside {
    padding: 15px;
  }

  .sm-hero-acts .sm-btn {
    width: 100%;
  }

  .sm-quote-box {
    padding: 20px 18px;
  }

  .ad-slot.ad-grid .wrap {
    grid-template-columns: 1fr;
  }
}
