/* block-types page — scoped styles, not shared with other pages */
:root {
  --primary: #6A1B9A;
  --accent: #CE93D8;
  --bg: #FAF6FC;
  --text: #2A1A30;
  --radius: 8px;
  --max: 860px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2 {
  font-family: 'Hahmlet', serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}

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

a { color: var(--primary); }

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

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #EEE0F4;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.logo-mark { flex-shrink: 0; }

.nav-details {
  margin-left: auto;
  position: relative;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  list-style: none;
}

.hamburger::-webkit-details-marker { display: none; }
.hamburger::marker { content: ""; }

.hamburger span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

@media (min-width: 761px) {
  .nav-details .site-nav { display: block !important; }
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
}

.site-nav a:hover { background: var(--bg); color: var(--primary); }

@media (max-width: 760px) {
  .hamburger { display: flex; }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    margin: 8px 0 0 0;
  }

  .site-nav a { padding: 12px 8px; border-bottom: 1px solid var(--bg); }

  .header-inner { flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero {
  padding: 48px 20px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-left h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0;
}

.hero-right p { margin-top: 0; font-size: 1.05rem; }

@media (max-width: 700px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ---------- buttons (pill) ---------- */
.cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
}

.cta--call {
  background: var(--primary);
  color: #fff;
}

.cta--call:hover { background: #571582; }

.cta--call-alt {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta--call-alt:hover { background: var(--bg); }

.cta--sms {
  background: var(--accent);
  color: var(--text);
}

.cta--sms:hover { background: #c07fd0; }

/* ---------- content ---------- */
.content-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 60px;
}

.block-section { margin-top: 56px; }

.block-section > h2:first-child,
.block-section h2 {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  padding: 6px 16px;
  border-radius: var(--radius);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 0 0 20px;
}

.cta-block h3, .related-links h3 {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0 0 12px;
}

/* figure */
.shot {
  margin-block: 48px;
  margin-inline: auto;
  max-width: 900px;
}

.shot img { border-radius: var(--radius); width: 100%; }

.shot figcaption {
  font-size: 0.9rem;
  color: #6b5470;
  text-align: center;
  margin-top: 8px;
}

/* table */
.table-scroll { overflow-x: auto; margin-top: 20px; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #EEE0F4;
  font-size: 0.92rem;
  vertical-align: top;
}

thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}

tbody th[scope="row"] {
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
}

/* term cards */
.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 0;
}

.term-card {
  background: #fff;
  border: 1px solid #EEE0F4;
  border-radius: var(--radius);
  padding: 16px;
}

.term-card dt {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 6px;
}

.term-card dd { margin: 0; font-size: 0.94rem; }

/* decision flow */
.decision-flow {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.decision-flow li {
  background: #fff;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.decision-flow .q { font-weight: 500; margin: 0 0 8px; color: var(--primary); }
.decision-flow .a { margin: 0 0 4px; font-size: 0.94rem; }
.decision-flow .a:last-child { margin-bottom: 0; }

.decision-note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #6b5470;
}

/* checklist */
.checklist {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  background: #fff;
  border-radius: var(--radius);
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 14px;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid var(--primary);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 46%;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-60%) rotate(-45deg);
}

/* callout */
.callout {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0 0;
}

.callout p { margin: 0; font-size: 0.96rem; }

/* faq */
.faq-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 4px 18px;
  border: 1px solid #EEE0F4;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 500;
  color: var(--primary);
  list-style: none;
}

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

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--primary);
  font-weight: 700;
}

.faq-item[open] summary::before { content: "\2212"; }

.faq-item p { margin: 0 0 16px; font-size: 0.95rem; }

/* cta block */
.cta-block {
  margin-top: 56px;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.cta-block p { margin: 0 0 20px; }

.cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* related links */
.related-links { margin-top: 56px; }

.related-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-links a {
  display: block;
  background: #fff;
  border: 1px solid #EEE0F4;
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.related-links a:hover { border-color: var(--primary); color: var(--primary); }

/* footer */
footer {
  background: var(--primary);
  color: #F3E5F9;
  padding: 32px 20px;
  font-size: 0.88rem;
}

footer address {
  font-style: normal;
  max-width: 1100px;
  margin: 0 auto 12px;
  line-height: 1.8;
}

footer small {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  color: #D8AEE6;
}

@media (max-width: 360px) {
  .header-inner { padding: 12px 14px; }
  .hero { padding: 32px 14px; }
  .content-wrap { padding: 0 14px 48px; }
  .cta { padding: 12px 20px; font-size: 0.92rem; }
}
