/*
Theme Name: Modatrip
Theme URI: https://modatrip.com
Author: Modatrip
Description: 한국 여행자를 위한 출국 준비 도구 허브. 기내반입·Wh·예산·짐·추천 5개 도구.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.2
Text Domain: modatrip
*/


:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #F1F4F8;
  --ink: #0B1B2B;
  --ink-2: #2A3B4D;
  --muted: #6B7785;
  --muted-2: #A0AAB6;
  --line: #E6EAEF;
  --line-2: #D9DFE6;

  --blue: #1E6BFF;
  --blue-soft: #E8F0FF;
  --mint: #00C2A8;
  --mint-soft: #E0F7F2;
  --coral: #FF6B5B;
  --coral-soft: #FFE9E5;
  --amber: #F5A623;
  --amber-soft: #FFF3DC;
  --violet: #7A5BFF;
  --violet-soft: #ECE6FF;

  --ok: #1A9D6F;
  --ok-soft: #DDF4EA;
  --warn: #C57A00;
  --warn-soft: #FFF1D6;
  --danger: #D9342B;
  --danger-soft: #FFE2E0;
  --info: #1E6BFF;
  --info-soft: #E8F0FF;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11,27,43,0.04);
  --shadow: 0 4px 14px rgba(11,27,43,0.06);
  --shadow-lg: 0 12px 30px rgba(11,27,43,0.08);

  --font-kr: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-num: 'Inter', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-kr);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* -------------------- Layout -------------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.main {
  flex: 1;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 96px;
}
.page { display: flex; flex-direction: column; gap: 20px; }

/* -------------------- Top nav -------------------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.brand-mark.sm { width: 22px; height: 22px; border-radius: 6px; }
.brand-mark::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--mint) 100%);
}
.brand-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}
.brand-mark.sm .brand-dot { width: 6px; height: 6px; }
.brand-name {
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-name.sm { font-size: 14px; }
.topnav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
  flex: 1;
}
.topnav-link {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
}
.topnav-link:hover { background: var(--surface-2); color: var(--ink); }
.topnav-link.is-active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--ink);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
}
.mobile-menu-item:hover { background: var(--surface-2); }
.mm-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
}
.mm-label { font-weight: 600; }
.mm-sub { font-size: 12px; color: var(--muted); grid-column: 2 / 4; margin-top: -2px; }

/* -------------------- Bottom nav (mobile) -------------------- */
.bottomnav {
  display: none; background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.bn-item.is-active { color: var(--blue); }

/* -------------------- Page header -------------------- */
.pageheader { padding: 8px 4px 0; }
.pageheader-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pageheader-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.pageheader-updated {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--muted-2); font-weight: 500;
  font-family: var(--font-num);
}
.pageheader-title {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  text-wrap: balance;
}
.pageheader-sub { color: var(--muted); margin: 0; font-size: 15px; }
.pageheader-trust {
  margin: 12px 0 0;
  font-size: 13.5px; color: var(--ink-2); font-weight: 500;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--blue-soft) 0%, var(--mint-soft) 100%);
  border-radius: 10px;
  display: inline-block;
}

/* InfoBox */
.infobox {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12.5px; color: var(--ink-2);
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  border-left: 3px solid var(--line-2);
}
.infobox svg { flex-shrink: 0; margin-top: 2px; color: var(--muted); }
.infobox-warn { background: var(--warn-soft); border-left-color: var(--warn); }
.infobox-warn svg { color: var(--warn); }

/* NextActions */
.nextactions { margin-top: 4px; }
.nextactions-head { margin-bottom: 12px; padding: 0 4px; }
.nextactions-eyebrow { font-size: 11px; font-weight: 700; color: var(--mint); letter-spacing: 0.06em; text-transform: uppercase; }
.nextactions-head h3 { font-size: 17px; margin: 4px 0 0; font-weight: 700; }
.nextactions-grid { display: flex; flex-direction: column; gap: 8px; }
.nextaction {
  display: grid;
  grid-template-columns: 40px 1fr 16px;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink-2);
  transition: all .15s;
}
.nextaction:hover { background: var(--surface-2); border-color: var(--line-2); }
.nextaction.is-primary {
  background: var(--ink); color: white; border-color: var(--ink);
}
.nextaction.is-primary:hover { background: #142A40; }
.nextaction-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
}
.nextaction-icon.tint-blue   { background: var(--blue-soft); color: var(--blue); }
.nextaction-icon.tint-mint   { background: var(--mint-soft); color: var(--mint); }
.nextaction-icon.tint-coral  { background: var(--coral-soft); color: var(--coral); }
.nextaction-icon.tint-amber  { background: var(--amber-soft); color: #B07300; }
.nextaction-icon.tint-violet { background: var(--violet-soft); color: var(--violet); }
.nextaction.is-primary .nextaction-icon { background: rgba(255,255,255,0.12); color: white; }
.nextaction-text { display: flex; flex-direction: column; gap: 2px; }
.nextaction-title { font-weight: 600; font-size: 14px; color: inherit; }
.is-primary .nextaction-title { color: white; }
.nextaction-sub { font-size: 12.5px; color: var(--muted); }
.is-primary .nextaction-sub { color: rgba(255,255,255,0.7); }

/* -------------------- Card -------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card-search { padding: 18px; }
.card-form { padding: 20px; }

/* Section heads */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head.sm { margin-bottom: 10px; }
.section-head h2 { font-size: 20px; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.section-head h3 { font-size: 16px; margin: 0; font-weight: 700; }
.section-hint { font-size: 12px; color: var(--muted); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 14px;
  background: var(--surface-2);
  color: var(--ink);
  transition: transform .1s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: #142A40; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; padding: 14px; }
.btn-sm { padding: 8px 12px; font-size: 13px; }

/* -------------------- HOME -------------------- */
.home-hero { padding: 8px 4px 0; }
.home-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 16px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-mint { background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.home-hero-title {
  font-size: 40px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin: 0 0 14px;
  text-wrap: balance;
}
.home-hero-sub { font-size: 17px; color: var(--muted); margin: 0 0 18px; max-width: 540px; }
.home-hero-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.home-hero-meta b { color: var(--ink); font-weight: 700; font-family: var(--font-num); }
.home-hero-meta .sep { color: var(--muted-2); }

.home-tools { margin-top: 8px; }

/* Essentials */
.home-essentials { margin-top: 4px; }
.essentials-grid { display: flex; flex-direction: column; gap: 8px; }
.essential-card {
  display: grid;
  grid-template-columns: 28px 40px 1fr 16px;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
  transition: all .15s;
}
.essential-card:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }
.essential-num { font-family: var(--font-num); font-weight: 800; font-size: 12px; color: var(--muted-2); }
.essential-card:hover .essential-num { color: var(--blue); }
.essential-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-2);
  display: grid; place-items: center;
}
.essential-card:hover .essential-icon { background: white; color: var(--blue); }
.essential-text { display: flex; flex-direction: column; gap: 2px; }
.essential-q { font-weight: 700; font-size: 15px; color: var(--ink); }
.essential-sub { font-size: 12.5px; color: var(--muted); }
.section-head h3 { display: inline-flex; align-items: center; gap: 6px; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 180px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.tool-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tool-card-num { font-family: var(--font-num); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; color: var(--muted-2); }
.tool-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
}
.tool-card.tint-blue   .tool-card-icon { background: var(--blue-soft); color: var(--blue); }
.tool-card.tint-mint   .tool-card-icon { background: var(--mint-soft); color: var(--mint); }
.tool-card.tint-coral  .tool-card-icon { background: var(--coral-soft); color: var(--coral); }
.tool-card.tint-amber  .tool-card-icon { background: var(--amber-soft); color: var(--amber); }
.tool-card.tint-violet .tool-card-icon { background: var(--violet-soft); color: var(--violet); }

.tool-card-body h3 { font-size: 17px; margin: 0 0 4px; font-weight: 700; letter-spacing: -0.01em; }
.tool-card-body p { color: var(--muted); margin: 0; font-size: 13.5px; }

.tool-card-cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-top: auto;
}
.tool-card.tint-blue .tool-card-cta   { color: var(--blue); }
.tool-card.tint-mint .tool-card-cta   { color: var(--mint); }
.tool-card.tint-coral .tool-card-cta  { color: var(--coral); }
.tool-card.tint-amber .tool-card-cta  { color: #B07300; }
.tool-card.tint-violet .tool-card-cta { color: var(--violet); }

.home-quick { margin-top: 8px; }
.quick-card {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background-image: radial-gradient(circle at 100% 0%, rgba(0,194,168,0.18), transparent 50%), radial-gradient(circle at 0% 100%, rgba(30,107,255,0.15), transparent 50%);
}
.quick-text h4 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.quick-text p { margin: 0; color: rgba(255,255,255,0.7); font-size: 14px; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-card .btn-primary { background: white; color: var(--ink); }
.quick-card .btn-primary:hover { background: rgba(255,255,255,0.92); }
.quick-card .btn-ghost { color: white; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }
.quick-card .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* -------------------- Inputs / Forms -------------------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-block { margin-top: 16px; }
.block-label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 8px; }
.block-hint { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0 6px;
  position: relative;
}
.field-label {
  grid-column: 1 / 3;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.field-input {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field-num { font-family: var(--font-num); font-weight: 600; }
.field-suffix {
  font-size: 13px; color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Stepper */
.stepper {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.stepper:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.stepper button {
  border: none; background: var(--surface-2); color: var(--ink);
  font-size: 18px; font-weight: 600;
}
.stepper button:hover { background: var(--line); }
.stepper input {
  border: none; outline: none; text-align: center;
  font-family: var(--font-num); font-weight: 600; font-size: 16px;
  background: transparent;
  width: 100%;
  padding: 12px 0;
  color: var(--ink);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.hint {
  margin: 12px 0 0;
  display: flex; gap: 6px; align-items: center;
  font-size: 12.5px; color: var(--muted);
}
.hint b { color: var(--ink); font-weight: 600; }
.finehint { margin: 12px 0 0; font-size: 12px; color: var(--muted-2); }

/* -------------------- Search box -------------------- */
.searchbox {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 4px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.searchbox:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.searchinput {
  flex: 1;
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 16px;
  padding: 14px 0;
  color: var(--ink);
}
.searchinput::placeholder { color: var(--muted-2); }
.searchclear {
  width: 28px; height: 28px;
  border: none; background: var(--surface-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
}
.searchclear:hover { background: var(--line); }

/* -------------------- Chips -------------------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  padding: 8px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { background: var(--surface-2); }
.chip.is-active {
  background: var(--ink); color: white; border-color: var(--ink);
}

/* Presets row */
.presets { display: flex; gap: 6px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.presets-label { font-size: 12px; color: var(--muted); margin-right: 4px; }

/* -------------------- Results -------------------- */
.results { display: flex; flex-direction: column; gap: 14px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.results-head h3 { font-size: 17px; margin: 0; font-weight: 700; }
.results-count { font-size: 13px; color: var(--muted); font-family: var(--font-num); }

/* Result card */
.resultcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.resultcard::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.resultcard.tone-ok::before { background: var(--ok); }
.resultcard.tone-info::before { background: var(--info); }
.resultcard.tone-warn::before { background: var(--warn); }
.resultcard.tone-danger::before { background: var(--danger); }
.resultcard.is-preview { border-style: dashed; }
.preview-tag {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px; font-weight: 700;
  background: var(--surface-2); color: var(--muted);
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.resultcard-headline {
  margin: 14px 0 12px;
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.reasonlist {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px 14px;
}
.reason-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.reason-label {
  font-weight: 700; font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.04em;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  height: fit-content;
  text-align: center;
}

.resultcard-top { display: flex; gap: 12px; align-items: flex-start; }
.resultcard-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.tone-ok .resultcard-icon { background: var(--ok-soft); color: var(--ok); }
.tone-info .resultcard-icon { background: var(--info-soft); color: var(--info); }
.tone-warn .resultcard-icon { background: var(--warn-soft); color: var(--warn); }
.tone-danger .resultcard-icon { background: var(--danger-soft); color: var(--danger); }

.resultcard-meta { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.resultcard-meta h4 { margin: 0; font-size: 17px; font-weight: 700; }
.resultcard-why { margin: 12px 0 8px; font-size: 14px; color: var(--ink-2); }
.resultcard-note {
  display: flex; gap: 10px;
  background: var(--surface-2);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.note-label {
  font-weight: 700; color: var(--ink);
  flex-shrink: 0;
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  height: fit-content;
}
.resultcard-tags { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.tag { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.resultcard-actions {
  display: flex; gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Pills */
.pill {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.01em;
  align-self: flex-start;
}
.pill-sm { font-size: 11px; padding: 3px 8px; }
.pill-lg { font-size: 14px; padding: 6px 14px; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-neutral { background: var(--surface-2); color: var(--ink-2); }

/* Empty / legend */
.emptystate { text-align: center; padding: 20px 8px 16px; }
.emptystate-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 16px;
  display: grid; place-items: center;
}
.emptystate h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.emptystate p { margin: 0; color: var(--muted); font-size: 13.5px; }
.legend {
  display: flex; gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.dotdot { width: 8px; height: 8px; border-radius: 50%; }
.dotdot.tone-ok { background: var(--ok); }
.dotdot.tone-info { background: var(--info); }
.dotdot.tone-warn { background: var(--warn); }
.dotdot.tone-danger { background: var(--danger); }

.empty {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 32px 16px;
  text-align: center;
}
.empty-icon {
  width: 48px; height: 48px;
  background: var(--surface);
  border-radius: 14px;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  color: var(--muted);
}
.empty h4 { margin: 0 0 4px; font-size: 15px; }
.empty p { margin: 0; color: var(--muted); font-size: 13px; }

/* -------------------- WH RESULT -------------------- */
.whresult { padding: 22px; }
.whresult.tone-ok { border-color: rgba(26,157,111,0.25); background: linear-gradient(180deg, var(--ok-soft) 0%, white 60%); }
.whresult.tone-warn { border-color: rgba(197,122,0,0.25); background: linear-gradient(180deg, var(--warn-soft) 0%, white 60%); }
.whresult.tone-danger { border-color: rgba(217,52,43,0.25); background: linear-gradient(180deg, var(--danger-soft) 0%, white 60%); }

.whresult-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.whresult-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.whresult-num { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.whresult-big { font-family: var(--font-num); font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.whresult-unit { font-size: 22px; font-weight: 600; color: var(--ink-2); }
.whresult-sub { color: var(--ink-2); margin-top: 8px; font-size: 14px; }
.whresult-formula {
  margin-top: 8px;
  font-family: var(--font-num);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface-2);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}
.whresult-formula code { font-family: inherit; }
.whbar-locate {
  margin: 8px 0 0; font-size: 13px; color: var(--ink-2);
}
.whbar-locate b { color: var(--ink); font-weight: 700; }

.action-list { margin-top: 18px; }
.action-list-label {
  font-size: 11px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.06em; text-transform: uppercase;
  display: block; margin-bottom: 8px;
}
.action-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.action-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--ink-2);
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: 8px;
}
.action-dot {
  width: 6px; height: 6px; border-radius: 50%;
  margin-top: 7px; flex-shrink: 0;
  background: var(--muted);
}
.action-item.tone-ok .action-dot { background: var(--ok); }
.action-item.tone-warn .action-dot { background: var(--warn); }
.action-item.tone-danger .action-dot { background: var(--danger); }

.whbar { margin: 22px 0 6px; position: relative; padding-bottom: 26px; }
.whbar-track { display: flex; height: 36px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.whbar-zone {
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  position: relative;
}
.whbar-zone span { position: relative; z-index: 1; }
.zone-ok { background: var(--ok-soft); color: var(--ok); }
.zone-warn { background: var(--warn-soft); color: var(--warn); }
.zone-danger { background: var(--danger-soft); color: var(--danger); }

.whbar-marker {
  position: absolute;
  top: -8px;
  width: 20px;
  text-align: center;
}
.whbar-marker-pin {
  width: 4px; height: 52px;
  background: var(--ink);
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.whbar-marker-num {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 12px;
  margin-top: 2px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  display: inline-block;
}

.whresult-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* -------------------- BIG SUMMARY -------------------- */
.bigsummary { display: flex; flex-direction: column; gap: 12px; }
.bigsummary-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}
.bigsum-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.bigsum-primary {
  background: var(--ink); color: white;
  border-color: var(--ink);
  background-image: radial-gradient(circle at 100% 0%, rgba(0,194,168,0.18), transparent 50%);
}
.bigsum-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.bigsum-primary .bigsum-label { color: rgba(255,255,255,0.7); }
.bigsum-num { font-family: var(--font-num); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; color: var(--ink); }
.bigsum-num-md { font-size: 22px; }
.bigsum-primary .bigsum-num { color: white; }
.bigsum-sub { font-size: 12px; color: var(--muted); }
.bigsum-primary .bigsum-sub { color: rgba(255,255,255,0.6); }

.insightlist { display: flex; flex-direction: column; gap: 6px; }
.insight {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
}
.insight.tone-ok { background: var(--ok-soft); color: var(--ok); }
.insight.tone-warn { background: var(--warn-soft); color: var(--warn); }
.insight.tone-danger { background: var(--danger-soft); color: var(--danger); }

/* Accordion */
.accordion { padding: 0; overflow: hidden; }
.accordion-head {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
  cursor: pointer;
}
.accordion-head h3 { font-size: 16px; margin: 0; font-weight: 700; }
.accordion-sub { font-size: 12px; color: var(--muted); }
.accordion .budget-grid { padding: 0 20px 20px; }
.accordion .budget-chart-grid { padding: 0 20px 20px; }

.budget-chart-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
}
.legend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.legend-list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; }
.legend-name { color: var(--ink-2); }
.legend-pct { font-family: var(--font-num); font-weight: 700; color: var(--ink); }

/* -------------------- BUDGET -------------------- */
.budget-grid { display: flex; flex-direction: column; gap: 14px; }
.budget-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  transition: background .15s;
}
.budget-row.is-largest { background: white; border: 1px solid var(--blue-soft); box-shadow: 0 0 0 1px var(--blue-soft); }
.budget-row-head { display: flex; align-items: center; gap: 8px; }
.budget-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.budget-label { font-weight: 600; font-size: 14px; flex: 1; }
.budget-pct { font-family: var(--font-num); font-size: 12px; color: var(--muted); font-weight: 600; }
.budget-input-wrap {
  display: flex; align-items: center; gap: 8px;
}
.budget-input-wrap .field-input { background: white; }
.budget-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.budget-bar-fill { height: 100%; transition: width .25s; }

.budget-summary { padding: 22px; }
.budget-summary.is-over { border-color: rgba(217,52,43,0.3); }
.budget-summary-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
}
.bs-donut svg { display: block; }
.bs-donut-num { font-family: var(--font-num); font-weight: 800; font-size: 14px; fill: var(--ink); letter-spacing: -0.02em; }
.bs-donut-label { font-size: 9px; fill: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.bs-stats { display: flex; flex-direction: column; gap: 12px; }
.bs-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.bs-stat:last-child { border-bottom: none; padding-bottom: 0; }
.bs-stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.bs-stat-num { font-family: var(--font-num); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

.budget-cap { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.budget-cap-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cap-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cap-input { max-width: 160px; }
.cap-status {
  margin-top: 10px;
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 13px; font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.cap-status.is-ok { background: var(--ok-soft); color: var(--ok); }
.cap-status.is-over { background: var(--danger-soft); color: var(--danger); }

/* -------------------- PACKING -------------------- */
.trip-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.trip-type {
  display: flex; flex-direction: column;
  gap: 2px; padding: 14px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  text-align: center;
  transition: all .15s;
}
.trip-type:hover { background: var(--surface-2); }
.trip-type.is-active {
  border-color: var(--ink); background: var(--ink); color: white;
}
.tt-label { font-weight: 700; font-size: 14px; }
.tt-sub { font-size: 11px; color: var(--muted); }
.trip-type.is-active .tt-sub { color: rgba(255,255,255,0.7); }

.progress-card { padding: 20px; }
.progress-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.progress-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.progress-num { font-size: 16px; margin-top: 2px; color: var(--ink-2); }
.progress-num b { color: var(--ink); font-family: var(--font-num); font-weight: 700; }
.progress-pct { font-family: var(--font-num); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: var(--blue); }
.progressbar { height: 8px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.progressbar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  transition: width .3s;
}
.progress-actions { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }

/* Big progress card */
.bigprogress {
  background: linear-gradient(135deg, var(--ink) 0%, #142A40 100%);
  color: white;
  border-radius: var(--radius);
  padding: 22px;
  background-image: radial-gradient(circle at 100% 0%, rgba(0,194,168,0.25), transparent 50%), radial-gradient(circle at 0% 100%, rgba(30,107,255,0.18), transparent 50%);
}
.bigprogress-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.bigprogress-label { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.bigprogress-pct {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 56px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: white;
  display: inline-flex; align-items: baseline; gap: 4px;
}
.bigprogress-pct span { font-size: 28px; opacity: 0.7; }
.bigprogress-pct em { font-size: 16px; font-style: normal; font-weight: 600; opacity: 0.7; margin-left: 6px; }
.bigprogress-stats { display: flex; gap: 14px; }
.bigprogress-stats > div {
  display: flex; flex-direction: column; gap: 2px;
  text-align: right;
}
.bp-stat-num { font-family: var(--font-num); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.bp-done { color: var(--mint); }
.bp-warn { color: var(--coral); }
.bp-stat-lbl { font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 500; letter-spacing: 0.02em; }
.bigprogress .progressbar { background: rgba(255,255,255,0.12); }
.bigprogress .progressbar-fill { background: linear-gradient(90deg, var(--mint), #5BE5CF); }
.bigprogress .progress-actions { padding-top: 14px; }
.bigprogress .btn-ghost { color: white; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }
.bigprogress .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* Must missing */
.must-missing {
  background: white;
  border: 1px solid var(--coral-soft);
  border-radius: var(--radius);
  padding: 18px;
  border-left: 4px solid var(--coral);
}
.must-missing-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.must-missing-head svg { color: var(--coral); flex-shrink: 0; }
.must-missing-head h3 { font-size: 16px; margin: 0 0 2px; font-weight: 700; }
.must-missing-head span { font-size: 12px; color: var(--muted); }
.must-missing-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.must-missing-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--coral-soft);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s;
}
.must-missing-item:hover { background: #FFD5CE; }
.must-missing-box {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.6px solid var(--coral);
  background: white;
  flex-shrink: 0;
}
.must-missing-name { font-weight: 600; flex: 1; color: var(--ink); }
.must-missing-cat { font-size: 11px; color: var(--coral); font-weight: 600; }

/* Cat tabs */
.cat-tabs {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-tab span { font-family: var(--font-num); font-size: 11px; color: var(--muted); font-weight: 600; }
.cat-tab.is-active { background: var(--ink); color: white; border-color: var(--ink); }
.cat-tab.is-active span { color: rgba(255,255,255,0.7); }

.add-card { padding: 16px; }

.checklist { display: flex; flex-direction: column; gap: 12px; }
.checkgroup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.checkgroup-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.checkgroup-head h4 { margin: 0; font-size: 15px; font-weight: 700; }
.checkgroup-count { font-family: var(--font-num); font-size: 12px; color: var(--muted); font-weight: 600; }
.checklist-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.checkitem {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px;
  min-height: 44px;
  border-radius: 8px;
  transition: background .12s;
}
.checkitem:hover { background: var(--surface-2); }
.checkitem-box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.6px solid var(--line-2);
  background: white;
  flex-shrink: 0;
  display: grid; place-items: center;
  color: white;
  transition: all .15s;
}
.checkitem.is-done .checkitem-box {
  background: var(--blue);
  border-color: var(--blue);
}
.checkitem-name { flex: 1; font-size: 14.5px; cursor: pointer; user-select: none; }
.checkitem.is-done .checkitem-name { color: var(--muted-2); text-decoration: line-through; }
.must-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--coral-soft);
  color: var(--coral);
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.checkitem.is-done .must-tag { opacity: 0.5; }
.checkitem-remove {
  width: 28px; height: 28px;
  border: none; background: transparent;
  border-radius: 6px; color: var(--muted-2);
  display: grid; place-items: center;
}
.checkitem-remove:hover { background: var(--surface-2); color: var(--danger); }

.add-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; }
.add-row select.field-input { padding: 14px 10px; }

/* -------------------- RECOMMENDATION -------------------- */
.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}
.seg-item {
  border: none;
  background: transparent;
  padding: 10px 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: background .15s;
}
.seg-item.is-active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.destcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.destcard-cover {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.destcard-cover-bg { position: absolute; inset: 0; }
.destcard-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.45) 100%);
}
.destcard-cover-text {
  position: absolute;
  bottom: 14px; left: 16px; right: 16px;
  color: white;
  z-index: 1;
}
.destcard-country { font-size: 12px; opacity: 0.85; font-weight: 500; }
.destcard-cover-text h4 { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.destcard-rank {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-family: var(--font-num); font-weight: 800;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 100px;
}
.destcard-score {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  line-height: 1;
}
.ds-num { font-family: var(--font-num); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.ds-lbl { font-size: 9px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }
.destcard.is-preview { border-style: dashed; opacity: 0.95; }
.destcard.is-preview .preview-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-size: 10px; font-weight: 700;
  background: white; color: var(--muted);
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.destcard.is-preview .destcard-rank { display: none; }
.destcard-reasons {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.destcard-reasons li {
  display: flex; gap: 6px; align-items: flex-start;
  font-size: 13px; color: var(--ink-2);
  line-height: 1.4;
}
.destcard-reasons svg { color: var(--ok); flex-shrink: 0; margin-top: 4px; }
.dd-plan { font-size: 12px; line-height: 1.4; }
.destcard-stytags { display: flex; gap: 4px; flex-wrap: wrap; }
.styletag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 500;
}
.destcard-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.destcard-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.destcard-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.destcard-why { margin: 0; font-size: 13.5px; color: var(--ink-2); flex: 1; }
.destcard-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.destcard-meta div { display: flex; flex-direction: column; gap: 2px; }
.destcard-meta dt { font-size: 11px; color: var(--muted); font-weight: 500; }
.destcard-meta dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.destcard-plan { font-size: 13px; }
.destcard-plan summary { cursor: pointer; color: var(--blue); font-weight: 600; padding: 8px 0; list-style: none; }
.destcard-plan summary::-webkit-details-marker { display: none; }
.destcard-plan summary::before { content: '+ '; }
.destcard-plan[open] summary::before { content: '− '; }
.destcard-plan p { margin: 4px 0 0; color: var(--ink-2); padding: 12px; background: var(--surface-2); border-radius: 8px; }

.recommend-actions {
  display: flex; gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* -------------------- Related -------------------- */
.related { margin-top: 8px; }
.related-head { margin-bottom: 12px; padding: 0 4px; }
.related-head h3 { font-size: 15px; margin: 0; font-weight: 700; color: var(--ink-2); }
.related-grid { display: flex; flex-direction: column; gap: 8px; }
.related-card {
  display: grid;
  grid-template-columns: 36px 1fr 16px;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
  transition: background .15s, border-color .15s;
}
.related-card:hover { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.related-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
}
.tint-blue   { /* used by related-icon */ }
.related-icon.tint-blue   { background: var(--blue-soft); color: var(--blue); }
.related-icon.tint-mint   { background: var(--mint-soft); color: var(--mint); }
.related-icon.tint-coral  { background: var(--coral-soft); color: var(--coral); }
.related-icon.tint-amber  { background: var(--amber-soft); color: var(--amber); }
.related-icon.tint-violet { background: var(--violet-soft); color: var(--violet); }
.related-text { display: flex; flex-direction: column; gap: 2px; }
.related-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.related-sub { font-size: 12px; color: var(--muted); }

/* -------------------- Footer -------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 6px; }
.footer-tagline { color: var(--muted); font-size: 13.5px; margin: 8px 0 24px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.footer-cols h5 { font-size: 12px; margin: 0 0 10px; color: var(--ink-2); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-cols a { display: block; padding: 4px 0; font-size: 13px; color: var(--muted); }
.footer-cols a:hover { color: var(--ink); }
.footer-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.footer-bot {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; color: var(--muted-2);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.footer-bot .sep { color: var(--line-2); }

/* -------------------- Responsive -------------------- */
@media (max-width: 760px) {
  .topnav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: none; }
  .mobile-menu.is-open { display: flex; }
  .bottomnav { display: flex; }

  .main { padding: 16px 16px 110px; }
  .pageheader-title { font-size: 24px; }
  .home-hero-title { font-size: 32px; }

  .tool-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .trip-types { grid-template-columns: repeat(3, 1fr); }
  .seg { grid-template-columns: repeat(4, 1fr); }
  .dest-grid { grid-template-columns: 1fr; }

  .budget-summary-grid { grid-template-columns: 1fr; gap: 12px; }
  .bs-donut { display: flex; justify-content: center; }
  .bigsummary-grid { grid-template-columns: 1fr; }
  .bigprogress-pct { font-size: 44px; }
  .bigprogress-stats { width: 100%; justify-content: space-between; }
  .bigprogress-stats > div { text-align: left; }
  .budget-chart-grid { grid-template-columns: 1fr; justify-items: center; }
  .reason-row { grid-template-columns: 1fr; gap: 4px; }
  .reason-label { justify-self: flex-start; }
  .pageheader-trust { font-size: 13px; padding: 10px 12px; }

  .add-row { grid-template-columns: 1fr 1fr; }
  .add-row .btn { grid-column: 1 / 3; }

  .footer-cols { grid-template-columns: 1fr; gap: 18px; }

  .quick-card { padding: 20px; }
  .quick-actions .btn { flex: 1; }

  .whresult-big { font-size: 44px; }
}
@media (max-width: 420px) {
  .trip-types { grid-template-columns: repeat(2, 1fr); }
  .pageheader-title { font-size: 22px; }
  .home-hero-title { font-size: 28px; }
}

/* Print */
@media print {
  .topnav, .bottomnav, .footer, .related, .pageheader-badge { display: none; }
  body { background: white; }
  .card, .checkgroup { break-inside: avoid; box-shadow: none; }
}


/* =========================================================
   v3 · SEO/AEO/GEO + Kakao share components
   ========================================================= */

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  background: #0B1B2B; color: white; padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; z-index: 200;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: toast-in 0.18s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Kakao share button */
.kakao-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FEE500; color: #181600;
  border: none; border-radius: 10px; padding: 10px 16px;
  font-family: var(--font-kr); font-size: 14px; font-weight: 700;
  cursor: pointer; height: 40px;
  transition: filter 0.15s, transform 0.05s;
}
.kakao-btn:hover { filter: brightness(0.96); }
.kakao-btn:active { transform: scale(0.98); }
.kakao-btn .kakao-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
}
.kakao-sm { padding: 7px 12px; height: 32px; font-size: 12.5px; border-radius: 8px; }
.kakao-block { width: 100%; justify-content: center; height: 48px; font-size: 15px; }

/* Mobile sticky share bar */
.sharebar-mobile {
  display: none;
  position: sticky; bottom: 64px; z-index: 30;
  margin: 16px -20px -8px; padding: 12px 20px;
  background: linear-gradient(180deg, rgba(246,247,249,0) 0%, var(--bg) 30%);
}
@media (max-width: 720px) {
  .sharebar-mobile { display: block; }
}

/* Answer Box (AEO) */
.answerbox {
  background: linear-gradient(180deg, #F4F8FF 0%, #FFFFFF 100%);
  border: 1.5px solid #D6E4FF;
  border-radius: var(--radius-lg);
  padding: 22px 24px; margin: 20px 0;
  position: relative; overflow: hidden;
}
.answerbox::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--mint) 100%);
}
.answerbox-q { margin-bottom: 14px; }
.answerbox-q h3 {
  font-size: 17px; font-weight: 700; color: var(--ink);
  margin: 6px 0 0; line-height: 1.45;
}
.answerbox-a p {
  font-size: 16px; line-height: 1.7; color: var(--ink-2);
  margin: 8px 0 0; font-weight: 500;
}
.ab-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: white; color: var(--blue);
  border: 1px solid var(--blue-soft);
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.ab-pill-a { color: var(--mint); border-color: var(--mint-soft); }
.ab-formula {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 10px 14px;
  background: #0B1B2B; color: #C5DCFF;
  border-radius: 10px;
  font-family: var(--font-num); font-size: 13.5px;
}
.ab-formula-label { color: #6B89B8; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.ab-formula code { color: #fff; font-weight: 600; }
.ab-note {
  margin-top: 10px !important; font-size: 13px !important;
  color: var(--muted) !important; display: flex; align-items: center; gap: 6px;
}

/* GEO block */
.geoblock { margin: 24px 0; }
.geoblock-head { margin-bottom: 14px; }
.geoblock-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase;
}
.geoblock-head h3 { font-size: 18px; font-weight: 700; margin: 4px 0 0; }
.geoblock-list { display: grid; gap: 12px; }
.geo-item {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.geo-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.geo-num {
  background: var(--blue-soft); color: var(--blue);
  font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px;
  letter-spacing: 0.04em;
}
.geo-item-head h4 { margin: 0; font-size: 15.5px; line-height: 1.4; font-weight: 700; }
.geo-rows { margin: 0; display: grid; gap: 8px; }
.geo-row {
  display: grid; grid-template-columns: 80px 1fr; gap: 10px;
  font-size: 14px; line-height: 1.6;
  padding: 6px 0;
}
.geo-row dt {
  font-size: 12px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.02em; padding-top: 2px;
}
.geo-row dd { margin: 0; color: var(--ink-2); }
.geo-row dd code {
  font-family: var(--font-num); background: #F1F4F8;
  padding: 2px 8px; border-radius: 6px; font-size: 13px; color: var(--ink);
}
.geo-row-answer dd { font-weight: 600; color: var(--ink); }
.geo-row-warn dd { color: var(--warn); }
.geo-row-next dd { color: var(--blue); font-weight: 600; }

@media (max-width: 540px) {
  .geo-row { grid-template-columns: 60px 1fr; gap: 8px; font-size: 13.5px; }
  .geo-row dt { font-size: 11px; }
}

/* FAQ */
.faq { margin: 24px 0; }
.faq-head { margin-bottom: 12px; }
.faq-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--mint); letter-spacing: 0.08em; text-transform: uppercase;
}
.faq-head h3 { font-size: 18px; font-weight: 700; margin: 4px 0 0; }
.faq-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.faq-item {
  background: white; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq-item.is-open { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; font-family: var(--font-kr); font-size: 15px; font-weight: 600;
  color: var(--ink);
}
.faq-q-mark {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px;
  background: var(--blue-soft); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.faq-q-text { flex: 1; line-height: 1.45; }
.faq-q-chev {
  display: inline-flex; color: var(--muted-2);
  transition: transform 0.2s;
}
.faq-item.is-open .faq-q-chev { transform: rotate(180deg); color: var(--blue); }
.faq-a {
  display: flex; gap: 12px; padding: 0 18px 18px 18px;
  border-top: 1px solid var(--line);
  margin-top: -1px;
}
.faq-a-mark {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px;
  background: var(--mint-soft); color: var(--mint);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 16px;
}
.faq-a p {
  margin: 16px 0 0; font-size: 14.5px; line-height: 1.7;
  color: var(--ink-2); font-weight: 500;
}

/* Related */
.related { margin: 24px 0; }
.related-head { margin-bottom: 12px; }
.related-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--violet); letter-spacing: 0.08em; text-transform: uppercase;
}
.related-head h3 { font-size: 18px; font-weight: 700; margin: 4px 0 0; }
.related-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.related-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: white; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.related-item:hover {
  border-color: var(--blue); color: var(--blue);
  background: var(--blue-soft);
}
.related-item svg:first-child { color: var(--muted-2); }
.related-item:hover svg:first-child { color: var(--blue); }
.related-item svg:last-child { color: var(--muted-2); }

/* Quick info */
.quickinfo { margin: 24px 0; }
.quickinfo-head { margin-bottom: 12px; }
.quickinfo-head h3 { font-size: 18px; font-weight: 700; margin: 0; }
.quickinfo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.quickinfo-card {
  background: white; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.qi-num {
  flex-shrink: 0; font-family: var(--font-num);
  font-size: 12px; font-weight: 800; color: var(--blue);
  background: var(--blue-soft); padding: 4px 7px; border-radius: 6px;
  letter-spacing: 0.02em;
}
.qi-body h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.qi-body p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 540px) {
  .quickinfo-grid { grid-template-columns: 1fr; }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted); margin-bottom: 10px;
}
.bc-link {
  color: var(--muted); text-decoration: none; font-weight: 500;
  cursor: pointer;
}
.bc-link:hover { color: var(--blue); }
.bc-sep { color: var(--muted-2); }
.bc-current { color: var(--ink-2); font-weight: 600; }

/* OG preview card (mock) */
.ogcard {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  margin: 20px 0;
}
.ogcard-tag {
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 10px;
}
.ogcard-frame {
  border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  background: white;
  max-width: 360px;
  box-shadow: 0 2px 8px rgba(11,27,43,0.05);
}
.ogcard-img {
  height: 140px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--mint) 100%);
  position: relative; padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ogcard-blue .ogcard-img { background: linear-gradient(135deg, #1E6BFF 0%, #0B1B2B 100%); }
.ogcard-mint .ogcard-img { background: linear-gradient(135deg, #00C2A8 0%, #1E6BFF 100%); }
.ogcard-coral .ogcard-img { background: linear-gradient(135deg, #FF6B5B 0%, #7A5BFF 100%); }
.ogcard-amber .ogcard-img { background: linear-gradient(135deg, #F5A623 0%, #FF6B5B 100%); }
.ogcard-violet .ogcard-img { background: linear-gradient(135deg, #7A5BFF 0%, #1E6BFF 100%); }
.ogcard-brand {
  font-family: var(--font-num); font-size: 12px; font-weight: 800;
  color: rgba(255,255,255,0.85); letter-spacing: 0.06em;
}
.ogcard-title {
  color: white; font-size: 22px; font-weight: 800;
  line-height: 1.25; max-width: 90%;
}
.ogcard-text { padding: 12px 16px 14px; }
.ogcard-msg {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--ink); line-height: 1.5;
}
.ogcard-foot {
  display: block; margin-top: 6px;
  font-size: 11.5px; color: var(--muted);
}

/* Result card actions row needs space for kakao */
.resultcard-actions, .whresult-actions, .destcard-actions, .progress-actions {
  flex-wrap: wrap;
}

/* Print: hide kakao bar and toast */
@media print {
  .toast, .sharebar-mobile, .kakao-btn { display: none !important; }
}


/* =========================================================
   v3 polish · primary kakao + share preview + source box + collapsible
   ========================================================= */

/* Kakao primary CTA · visually dominant, larger */
.kakao-btn.kakao-primary {
  height: 48px; padding: 0 22px; font-size: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(254, 229, 0, 0.4), 0 1px 2px rgba(0,0,0,0.04);
  font-weight: 800;
}
.kakao-btn.kakao-primary .kakao-ico {
  width: 22px; height: 22px;
}
.kakao-btn.kakao-primary .kakao-ico svg { width: 20px; height: 20px; }
.kakao-btn.kakao-primary:hover { box-shadow: 0 6px 18px rgba(254, 229, 0, 0.5), 0 1px 2px rgba(0,0,0,0.06); }

/* Share preview line */
.sharepreview {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 14px; margin-top: 10px;
  background: #FFFCEB; border: 1px dashed #FFE15A;
  border-radius: 10px;
  font-size: 12.5px; line-height: 1.5;
  flex-wrap: wrap;
}
.sp-label {
  font-weight: 700; color: #8B6F00;
  font-size: 11px; letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.sp-text {
  color: var(--ink-2); font-weight: 600;
  font-size: 13px;
}

/* Source / trust box */
.sourcebox {
  margin: 18px 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-left: 3px solid var(--mint);
}
.sb-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 4px 0;
  font-size: 13px; line-height: 1.6;
  align-items: baseline;
}
.sb-label {
  font-weight: 700; color: var(--muted);
  font-size: 11.5px; letter-spacing: 0.04em;
}
.sb-value { color: var(--ink-2); }
.sb-row.sb-note .sb-value { color: var(--muted); font-size: 12.5px; }
@media (max-width: 540px) {
  .sb-row { grid-template-columns: 70px 1fr; gap: 8px; font-size: 12.5px; }
  .sb-label { font-size: 11px; }
}

/* Collapsible wrapper */
.collapsible {
  background: white; border: 1px solid var(--line);
  border-radius: 12px; margin: 12px 0; overflow: hidden;
}
.collapsible-toggle {
  width: 100%; background: none; border: none;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: var(--font-kr);
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.collapsible-toggle .ct-chev { color: var(--muted-2); transition: transform 0.2s; }
.collapsible.is-open .ct-chev { transform: rotate(180deg); color: var(--blue); }
.collapsible-body {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line);
  margin-top: -1px;
  padding-top: 16px;
}

/* FAQ "더 보기" button */
.faq-more {
  width: 100%; margin-top: 8px;
  padding: 10px 14px; background: white;
  border: 1px dashed var(--line-2); border-radius: 10px;
  cursor: pointer; font-family: var(--font-kr);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.faq-more:hover {
  border-color: var(--blue); color: var(--blue);
  background: var(--blue-soft);
}
.faq-more svg { transform: rotate(0deg); }

/* Strong result-summary header (mobile-first) */
.result-summary {
  position: sticky; top: 0; z-index: 5;
  margin: -8px -20px 12px; padding: 14px 20px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: none; /* mobile only */
}
@media (max-width: 720px) {
  .result-summary { display: flex; align-items: center; gap: 10px; }
}
.result-summary-num { font-family: var(--font-num); font-weight: 800; font-size: 18px; color: var(--ink); }
.result-summary-pill { margin-left: auto; }

/* Recommendation card v3: 추천 대상 / 피해야 할 경우 추가 */
.destcard-fitlists {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.destcard-fit {
  padding: 10px 12px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.5;
}
.destcard-fit.is-good { background: var(--ok-soft); }
.destcard-fit.is-bad { background: #FFF1F0; }
.destcard-fit-label {
  display: flex; align-items: center; gap: 4px;
  font-weight: 700; font-size: 11px;
  margin-bottom: 4px;
}
.destcard-fit.is-good .destcard-fit-label { color: var(--ok); }
.destcard-fit.is-bad .destcard-fit-label { color: var(--danger); }
.destcard-fit-text { color: var(--ink-2); }
@media (max-width: 540px) {
  .destcard-fitlists { grid-template-columns: 1fr; }
}

/* Result card primary actions row · kakao first, ghost btns smaller */
.resultcard-actions, .destcard-actions, .whresult-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.resultcard-actions .kakao-btn,
.destcard-actions .kakao-btn,
.whresult-actions .kakao-btn {
  order: -1; /* always first */
}

/* Mobile: kakao share fills full width on result cards */
@media (max-width: 540px) {
  .resultcard-actions .kakao-btn,
  .destcard-actions .kakao-btn,
  .whresult-actions .kakao-btn {
    flex: 1 0 100%;
  }
  .resultcard-actions .btn,
  .destcard-actions .btn,
  .whresult-actions .btn {
    flex: 1;
  }
}

/* Home: kakao share point */
.home-kakao-tip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: #FFFCEB; color: #8B6F00;
  font-size: 12px; font-weight: 700;
  margin-top: 16px;
}
.home-kakao-tip svg { width: 14px; height: 14px; }

/* Big budget summary status pill */
.budget-status-banner {
  margin-bottom: 12px;
  padding: 12px 16px; border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600;
}
.budget-status-banner.is-ok { background: var(--ok-soft); color: var(--ok); }
.budget-status-banner.is-warn { background: var(--warn-soft); color: var(--warn); }
.budget-status-banner.is-danger { background: var(--danger-soft); color: var(--danger); }
.bsb-num {
  margin-left: auto; font-family: var(--font-num); font-weight: 800;
}

/* Packing must-missing · 톤 다운 */
.must-missing { background: #FFF8E8 !important; border: 1px solid #FFE7A1 !important; }
.must-missing-head svg { color: var(--warn) !important; }
.must-missing-head h3 { color: var(--ink) !important; }
.must-missing-list { color: var(--ink-2) !important; }


/* =========================================================
   WordPress 호환 보강 (mu-plugin SEO/AEO 출력 호환)
   ========================================================= */
.mdt-seo-boost { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.mdt-quick-answer { margin: 28px auto 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--blue-soft), var(--mint-soft)); box-shadow: var(--shadow); }
.mdt-seo-kicker { margin-bottom: 8px; color: var(--blue); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.05em; }
.mdt-quick-answer h2, .mdt-answer-pack h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.22; color: var(--ink); }
.mdt-quick-answer p { margin: 0; color: var(--ink-2); font-size: 1.04rem; line-height: 1.7; }
.mdt-source-mini { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; color: var(--muted); font-size: 0.84rem; }
.mdt-answer-pack { padding: 48px 0 64px; }
.mdt-table-wrap { overflow-x: auto; margin: 16px 0 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.mdt-table-wrap table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.94rem; }
.mdt-table-wrap th { padding: 13px 15px; background: var(--blue); color: #fff; text-align: left; font-weight: 700; }
.mdt-table-wrap td { padding: 13px 15px; border-top: 1px solid var(--line); color: var(--ink-2); }
.mdt-table-wrap tr:nth-child(even) td { background: var(--surface-2); }
.mdt-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0 32px; }
.mdt-faq-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.mdt-faq-card h3 { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.35; color: var(--ink); }
.mdt-faq-card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.65; }
.mdt-link-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 16px 0 32px; padding: 0; list-style: none; }
.mdt-link-list a { display: block; padding: 13px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--blue); font-weight: 700; text-decoration: none; transition: all 0.2s; }
.mdt-link-list a:hover { background: var(--blue-soft); border-color: var(--blue); }
.mdt-source-box { padding: 20px; border-radius: var(--radius-lg); background: var(--surface-2); color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.mdt-source-box strong { display: block; margin-bottom: 8px; color: var(--ink); }
.mdt-source-box p { margin: 0.35rem 0; }
.mdt-quick-answer { color: var(--ink); }
.modatrip-update-footer { margin-top: 48px; padding: 24px; background: var(--surface-2); border-radius: var(--radius-lg); font-size: 0.88rem; color: var(--muted); }
.modatrip-quick-answer { margin: 0 0 32px; padding: 20px 24px; background: linear-gradient(135deg, var(--blue-soft), var(--mint-soft)); border-left: 4px solid var(--blue); border-radius: var(--radius); }

/* WordPress 블록 기본 보정 */
.wp-site-blocks { background: var(--bg); }
.wp-block-template-part > .wp-block-group { background: rgba(255,255,255,0.92); }
.has-blue-background-color { background-color: var(--blue) !important; }
.has-blue-color { color: var(--blue) !important; }
.has-mint-color { color: var(--mint) !important; }
.has-coral-color { color: var(--coral) !important; }
.has-amber-color { color: var(--amber) !important; }
.has-violet-color { color: var(--violet) !important; }

/* Pretendard / Inter 폰트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');


/* === 2026-05-25 모든 계산기 공유 버튼 공통 중앙정렬 === */
[class$="-share-wrap"] {
  text-align: center !important;
  margin: 18px 0 !important;
}
[class$="-share"]:not([class$="-share-wrap"]):not([class$="-share-msg"]):not([class$="-share-chk"]) {
  display: inline-block !important;
  max-width: 100% !important;
  width: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.kakao-btn.kakao-primary {
  display: inline-block !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
