/* =========================================
   RESET
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f4f1ec;
  color: #12202a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   TOKENS
   ========================================= */
:root {
  --brand:       #00374d;
  --brand-dark:  #00263a;
  --brand-mid:   #004d6b;
  --brand-light: #006d94;

  --bg:          #f4f1ec;
  --bg-warm:     #ede9e2;
  --white:       #ffffff;
  --text:        #12202a;
  --muted:       #5e7887;
  --border:      #ddd8cf;

  /* category — dark (card-visual panels) */
  --food-dim:          #7c3306;
  --travel-dim:        #024f7a;
  --music-dim:         #5b21b6;
  --entertainment-dim: #9f1239;
  --daily-dim:         #0a6b60;
  --work-dim:          #1e3a8a;
  --tech-dim:          #0e6e87;
  --society-dim:       #3a5c0a;
  --relationships-dim: #9d174d;
  --education-dim:     #3730a3;

  /* category — accent (card top borders) */
  --food-accent:          #c2440f;
  --travel-accent:        #0369a1;
  --music-accent:         #7c3aed;
  --entertainment-accent: #be123c;
  --daily-accent:         #0d9488;
  --work-accent:          #1d4ed8;
  --tech-accent:          #0891b2;
  --society-accent:       #65a30d;
  --relationships-accent: #db2777;
  --education-accent:     #4338ca;

  --radius-card: 16px;
  --shadow:      0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  background: var(--brand);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 300;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 62px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 13px;
}
.logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}
.logo-text {
  display: flex;
  align-items: center;
  gap: 11px;
}
.logo-ab {
  font-size: 17px;
  font-weight: 900;
  color: var(--brand-dark);
  background: white;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.logo-name {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: white;
  line-height: 1.25;
}
.logo-tagline {
  display: block;
  font-size: 10.5px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.05px;
  margin-top: 1px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-exclusive {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.55);
}
.header-stat {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.btn-print {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-print:hover { background: rgba(255,255,255,0.18); }

/* =========================================
   HERO  (index.html)
   ========================================= */
.hero {
  background: var(--brand);
  background-image: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(95,179,201,0.09) 0%, transparent 100%);
  padding: 100px 32px 80px;
  text-align: center;
}
.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow-text {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.62);
  letter-spacing: 4px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 48px;
}

/* stats 3-column */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.hero-stat {
  padding: 0 32px;
  text-align: center;
  position: relative;
  flex: 1;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.hero-stat-n {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #5FB3C9;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-l {
  display: block;
  font-size: 9.5px;
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 600;
}

/* search */
.search-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto 44px;
}
.search-wrap input {
  width: 100%;
  padding: 14px 22px 14px 50px;
  border-radius: 13px;
  border: 1px solid rgba(95,179,201,0.30);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0,20,32,0.55);
}
.search-wrap input::placeholder { color: #9aadba; }
.search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aadba;
  width: 19px;
  height: 19px;
  pointer-events: none;
}

/* =========================================
   MAIN
   ========================================= */
.main-content { padding: 40px 0 100px; }

/* =========================================
   CATEGORIES GRID  (index.html)
   ========================================= */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.cat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 26px 28px;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.18s cubic-bezier(.2,.8,.3,1),
              box-shadow 0.18s cubic-bezier(.2,.8,.3,1);
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cat-emoji { font-size: 32px; line-height: 1; flex-shrink: 0; }
.cat-names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cat-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.cat-name-en {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

/* =========================================
   TOPIC CARDS  (category.html + search results)
   ========================================= */
.section-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.topic-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.18s cubic-bezier(.2,.8,.3,1),
              box-shadow 0.18s cubic-bezier(.2,.8,.3,1),
              border-color 0.15s;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 8px;
  background: var(--white);
}

.card-emoji { font-size: 30px; line-height: 1; }
.card-count {
  color: #4a6474;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.card-count span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #8da3b0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.card-body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.card-cat-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.cat-topic-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-warm);
  padding: 2px 9px;
  border-radius: 4px;
}

.card-arrow {
  color: #b0bfc9;
  transition: transform 0.18s, color 0.18s;
  flex-shrink: 0;
}
.topic-card:hover .card-arrow,
.cat-card:hover .card-arrow {
  transform: translateX(3px);
  color: var(--brand);
}

/* =========================================
   NO RESULTS
   ========================================= */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 100px 20px;
  color: var(--muted);
}
.no-results svg { opacity: 0.35; }
.no-results p { font-size: 15px; }

/* =========================================
   CATEGORY PAGE HERO  (category.html)
   ========================================= */
.cat-page-hero {
  background: #f4f1ec;
  border-bottom: 1px solid var(--border);
  padding: 40px 32px 44px;
  color: var(--text);
}
.cat-page-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 700px;
  margin-top: 20px;
}
.cat-page-emoji {
  font-size: 60px;
  line-height: 1;
  flex-shrink: 0;
}
.cat-page-info { flex: 1; }
.cat-page-name-en {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 6px;
}
.cat-page-name {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--text);
}
.cat-page-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}
.cat-page-count {
  font-size: 11.5px;
  color: #9aadba;
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* =========================================
   TOPIC HERO  (topic.html)
   ========================================= */
.topic-hero {
  background: #f4f1ec;
  border-bottom: 1px solid var(--border);
  padding: 48px 32px;
  color: var(--text);
}
.topic-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.topic-emoji { font-size: 56px; line-height: 1; flex-shrink: 0; }
.topic-info { flex: 1; }

.topic-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.topic-breadcrumb a {
  color: var(--muted);
  transition: color 0.15s;
}
.topic-breadcrumb a:hover { color: var(--brand); }
.breadcrumb-sep { opacity: 0.4; font-size: 10px; }
.breadcrumb-current { color: var(--text); font-weight: 600; }

.topic-title {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--text);
}
.topic-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.6;
}
.topic-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.q-count-lg {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================
   TOPIC MAIN  (topic.html)
   ========================================= */
.topic-main { padding: 36px 0 100px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.back-link:hover { color: var(--brand); }
.questions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.q-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 17px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.q-item:hover {
  border-color: var(--brand-light);
  box-shadow: 0 4px 16px rgba(0,55,77,0.09);
}
.q-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-light);
  min-width: 24px;
  padding-top: 2px;
  flex-shrink: 0;
}
.q-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

/* =========================================
   FEEDBACK PAPER  (feedback.html)
   ========================================= */
.feedback-main { padding: 30px 0 80px; }

.feedback-main .back-link { margin-bottom: 16px; }

.feedback-paper {
  background: white;
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 64px 48px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
}
.feedback-paper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand);
  border-radius: 6px 6px 0 0;
}

/* head row */
.paper-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.paper-brand { display: flex; align-items: center; gap: 12px; }
.paper-brand-mark {
  width: 38px; height: 38px;
  background: var(--brand);
  color: white;
  font-size: 14px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
  letter-spacing: -0.5px;
}
.paper-brand-name { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
.paper-brand-tagline { font-size: 10px; color: var(--muted); letter-spacing: 0.5px; margin-top: 2px; }

.paper-meta { text-align: right; }
.paper-meta-row {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-bottom: 4px;
  font-size: 11px;
}
.paper-meta-label {
  color: var(--muted);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
}
.paper-meta-val { color: var(--text); font-weight: 700; min-width: 80px; text-align: right; }

/* title block */
.paper-title-block {
  padding: 30px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.paper-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.paper-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 8px;
}
.paper-subtitle {
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* info fields */
.paper-info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px 28px;
  margin-bottom: 44px;
}
.info-field-wide { grid-column: span 2; }
.info-field label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.info-field label span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #a8b6bf;
}
.info-field input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--text);
  background: transparent;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  padding: 4px 2px 6px;
  color: var(--text);
}
.info-field input::placeholder { color: #c2cdd3; font-weight: 400; }
.info-field input:focus {
  outline: none;
  border-bottom-color: var(--brand);
}

/* section heads */
.paper-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text);
}
.paper-section-head-tight {
  margin-top: 36px;
}
.paper-section-head h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.paper-section-head p {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.2px;
}
.paper-section-count {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* feedback table */
.fb-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  table-layout: fixed;
}
.fb-table th {
  text-align: left;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: bottom;
}
.fb-table th em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: none;
  color: #a8b6bf;
  margin-top: 4px;
}
.fb-col-num   { width: 36px; text-align: center !important; }
.fb-col-error { width: auto; }
.fb-col-fix   { width: auto; }
.fb-col-note  { width: 26%; }
.fb-col-del   { width: 32px; }

.fb-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}
.fb-row-num {
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  font-size: 12.5px;
  padding-top: 14px !important;
}
.fb-cell {
  outline: none;
  min-height: 22px;
  padding: 4px 6px;
  border-radius: 4px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.fb-cell-note {
  font-size: 12.5px;
  color: var(--muted);
}
.fb-cell:empty::before {
  content: attr(data-placeholder);
  color: #c8d2d8;
  pointer-events: none;
}
.fb-cell:focus {
  background: rgba(0,55,77,0.04);
  box-shadow: 0 0 0 1px rgba(0,55,77,0.15);
}
.fb-row-del {
  background: none;
  border: none;
  color: #cdd6db;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.fb-row-del:hover {
  color: #c2440f;
  background: rgba(194,68,15,0.06);
}

.fb-add-btn {
  background: transparent;
  border: 1px dashed #cdd6db;
  color: var(--muted);
  padding: 13px 0;
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 7px;
  letter-spacing: 0.5px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.fb-add-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(0,55,77,0.025);
  border-style: solid;
}

/* overall notes textarea */
.paper-textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  resize: vertical;
  background: #fafaf6;
  transition: border-color 0.15s, background 0.15s;
}
.paper-textarea::placeholder { color: #b8c4cb; }
.paper-textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: white;
}

/* paper foot */
.paper-foot {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  color: var(--muted);
}
.foot-stamp { letter-spacing: 0.5px; }
.foot-sig {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.foot-sig-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a8b6bf;
}
.foot-sig-line {
  display: block;
  width: 180px;
  border-bottom: 1px solid var(--text);
  height: 18px;
}

/* action bar */
.action-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 28px auto 0;
}
.btn-primary, .btn-ghost {
  padding: 12px 26px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--brand);
  color: white;
  border: 1px solid var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,55,77,0.18);
}
.btn-ghost {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* print — make it look like a clean printed document */
@media print {
  .site-header,
  .site-footer,
  .action-bar,
  .back-link,
  .fb-add-btn,
  .fb-col-del,
  .fb-row-del { display: none !important; }

  body { background: white !important; }
  .feedback-main { padding: 0 !important; }
  .feedback-paper {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .feedback-paper::before { display: none !important; }
  .fb-table th { padding: 6px 8px 8px; }
  .fb-table td { padding: 8px; }
  .info-field input { border-bottom: 1px solid #333; }
  .paper-textarea { background: white !important; }
  @page { margin: 18mm; }
}

/* responsive */
@media (max-width: 720px) {
  .feedback-paper { padding: 36px 24px 30px; }
  .paper-title { font-size: 28px; }
  .paper-info { grid-template-columns: 1fr 1fr; gap: 20px; }
  .info-field-wide { grid-column: span 2; }
  .fb-table { font-size: 13px; }
  .fb-col-note { width: 22%; }
  .paper-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-sig { align-items: flex-start; }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--bg-warm);
  color: var(--muted);
  text-align: center;
  padding: 36px 28px;
  font-size: 12px;
  letter-spacing: 0.2px;
  border-top: 1px solid var(--border);
}
.site-footer strong {
  color: var(--text);
  font-weight: 600;
}
.footer-notice {
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.footer-branches {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.6;
}
.footer-sep {
  color: var(--border);
  font-size: 12px;
}
.footer-copy {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.6;
}
@media (max-width: 580px) {
  .footer-sep { display: none; }
  .footer-branches { flex-direction: column; gap: 4px; }
}

/* =========================================
   PRINT
   ========================================= */
@media print {
  .site-header, .back-link, .btn-print, .site-footer { display: none !important; }
  body { background: white !important; }
  .topic-hero {
    background: white !important;
    color: var(--brand) !important;
    border-bottom: 2px solid var(--brand);
    padding: 0 0 20px !important;
    margin-bottom: 24px;
  }
  .topic-breadcrumb { display: none !important; }
  .topic-title  { color: var(--brand) !important; font-size: 22px !important; }
  .topic-desc   { color: #555 !important; }
  .q-count-lg   { color: #555 !important; }
  .topic-main   { padding: 0 !important; }
  .topic-emoji  { display: none !important; }
  .q-item {
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    padding: 12px 0 !important;
  }
  .q-item:last-child { border-bottom: none !important; }
  @page { margin: 20mm; }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 860px) {
  .cats-grid    { grid-template-columns: 1fr; }
  .section-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .container { padding: 0 20px; }
  .cat-page-hero { padding: 28px 20px 32px; }
  .topic-hero    { padding: 28px 20px 32px; }
}

@media (max-width: 580px) {
  .hero { padding: 60px 20px 52px; }
  .hero h1 { font-size: 30px; letter-spacing: -1px; }
  .hero-eyebrow-text { font-size: 16px; letter-spacing: 3px; }
  .hero-stat { padding: 0 16px; }
  .hero-stat-n { font-size: 18px; }
  .cat-page-inner { flex-direction: column; gap: 14px; }
  .cat-page-name { font-size: 28px; }
  .cat-page-emoji { font-size: 44px; }
  .topic-title { font-size: 24px; }
  .topic-emoji { font-size: 40px; }
  .topic-hero-inner { flex-direction: column; gap: 14px; }
  .header-exclusive { display: none; }
  .header-stat { display: none; }
  .topic-card { grid-template-columns: 76px 1fr; }
  .card-count { font-size: 17px; }
  .card-emoji { font-size: 24px; }
  .cat-topics-list { padding-left: 0; }
}
