/* Dreamdream editorial pages, adapted from the supplied Toss-style system. */
.tp { --g:#5c08a3; --gd:#470781; --navy:#281342; --ink:#342c3c; --muted:#685f70; --soft:#f8f3fc; --line:#ece4f3;
  color: var(--ink); overflow: hidden; }
.tp * { box-sizing: border-box; }
/* serif-only stack: JejuMyeongjo is single-weight, so a sans fallback would steal bold headings.
   Keeping only serif fallbacks makes bold headings synthesize from Jeju (never a gothic). */
.tp, .tp * { font-family: 'JejuMyeongjo', 'Noto Serif KR', serif !important; }
.tp .tp-hero h1 { text-align: center !important; }
.tp .tp-section { padding: clamp(60px, 9vw, 116px) 24px; }
.tp .tp-inner { max-width: 900px; margin: 0 auto; }
.tp .tp-narrow { max-width: 760px; margin: 0 auto; }
.tp .tp-soft { background: var(--soft); }

/* hero */
.tp .tp-hero { text-align: center; padding: clamp(66px, 11vw, 132px) 24px clamp(52px, 8vw, 96px);
  background: linear-gradient(180deg, #f5edfb 0%, #ffffff 100%); }
.tp .tp-eyebrow { display:inline-block; color: var(--gd); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; margin: 0 0 18px; }
.tp .tp-hero h1 { font-size: clamp(33px, 6.2vw, 58px); font-weight: 700; line-height: 1.28; color: var(--navy); margin: 0 0 22px; letter-spacing: -0.01em; }
.tp .tp-hero .tp-lead { font-size: clamp(16.5px, 2.4vw, 21px); line-height: 1.75; color: var(--ink); max-width: 620px; margin: 0 auto 34px; }
.tp .tp-cta { display: inline-flex; align-items: center; gap: 9px; background: var(--g); color:#fff !important;
  font-size: clamp(17px, 2.2vw, 20px); font-weight: 700; padding: 16px 40px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 26px rgba(92,8,163,.34); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.tp .tp-cta:hover { transform: translateY(-2px); background: var(--navy); box-shadow: 0 14px 32px rgba(40,19,66,.28); }
.tp .tp-cta-note { display:block; color: var(--muted); font-size: 14px; margin-top: 14px; }
/* blue Naver-map pill (site link blue) */
.tp .tp-cta-navy { background: #2563eb !important; box-shadow: 0 10px 26px rgba(37,99,235,.30) !important; }
.tp .tp-cta-navy:hover { background: #1d4ed8 !important; box-shadow: 0 14px 32px rgba(29,78,216,.38) !important; }
.tp .tp-cta-row { margin-top: 14px; }

/* upright inline photo band (never rotated) */
.tp .tp-photoband { margin: 8px 0 4px; }
.tp .tp-photoband figure { margin: 0 auto; max-width: 940px; padding: 0 clamp(20px, 5vw, 40px); }
.tp .tp-photoband img {
  width: 100%; height: auto; max-height: 440px; object-fit: cover;
  border-radius: 20px; box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  display: block; transform: none !important; rotate: none !important;
}
.tp .tp-photoband figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }

/* clickable link-cards (page leads) — pop more than a plain exam row */
.tp .tp-links { display: grid; gap: 14px; margin-top: 34px; }
.tp a.tp-link {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1.5px solid #e9d9f5; border-radius: 18px;
  padding: 22px 24px; text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tp a.tp-link:hover, .tp a.tp-link:focus {
  transform: translateY(-3px); border-color: var(--g);
  box-shadow: 0 14px 28px rgba(92,8,163,0.22);
}
.tp .tp-link .tp-link-body { flex: 1; min-width: 0; }
.tp .tp-link .tp-link-title { font-size: clamp(19px, 2.6vw, 23px); font-weight: 700; color: var(--navy); margin: 0; line-height: 1.35; }
.tp .tp-link .tp-link-sub { font-size: clamp(14.5px, 2vw, 16.5px); color: var(--muted); margin: 5px 0 0; line-height: 1.5; }
.tp .tp-link .tp-link-arrow {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g), var(--gd)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; line-height: 1;
  box-shadow: 0 5px 14px rgba(92,8,163,0.34); transition: transform .16s ease;
}
.tp a.tp-link:hover .tp-link-arrow, .tp a.tp-link:focus .tp-link-arrow { transform: translateX(4px); }

/* section headings */
.tp .tp-kicker { color: var(--gd); font-weight: 700; font-size: 15px; letter-spacing: .04em; margin: 0 0 14px; }
.tp .tp-h2 { font-size: clamp(26px, 4.6vw, 42px); font-weight: 700; line-height: 1.32; color: var(--navy); margin: 0 0 18px; letter-spacing: -0.01em; }
.tp .tp-p { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.85; color: var(--ink); margin: 0 0 16px; }
.tp .tp-p strong { color: var(--ink); font-weight: 700; }

/* prose (content-heavy sections) */
.tp .tp-prose h3 { font-size: clamp(19px,2.6vw,24px); font-weight:700; color:var(--navy); margin: 34px 0 12px; line-height:1.4; }
.tp .tp-prose h3:first-child { margin-top: 0; }
.tp .tp-prose p { font-size: clamp(16px,2.2vw,18px); line-height:1.85; color:var(--ink); margin:0 0 16px; }
.tp .tp-prose ul, .tp .tp-prose ol { margin: 0 0 18px; padding-left: 22px; }
.tp .tp-prose li { font-size: clamp(16px,2.2vw,18px); line-height:1.8; color:var(--ink); margin-bottom: 9px; }
.tp .tp-prose strong { color: var(--navy); font-weight:700; }
.tp .tp-prose a { color: var(--gd); font-weight:700; text-decoration:none; }
.tp .tp-prose a:hover { text-decoration: underline; }
.tp .tp-prose table { width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--line);
  border-radius:14px; overflow:hidden; margin: 22px 0; font-size: 15.5px; }
.tp .tp-prose th, .tp .tp-prose td { text-align:left; padding: 14px 16px; border-bottom:1px solid var(--line); line-height:1.6; }
.tp .tp-prose th { background: var(--soft); font-weight:700; color:var(--navy); }
.tp .tp-prose tbody tr:last-child td { border-bottom:none; }
.tp .tp-prose blockquote { border-left:4px solid var(--g); background:var(--soft); padding: 18px 22px; margin: 22px 0;
  border-radius: 0 12px 12px 0; font-size: clamp(16px,2.2vw,18px); line-height:1.8; color: var(--ink); }

/* figure / lead image */
.tp .tp-figure { margin: 8px 0 0; }
.tp .tp-figure img { width:100%; max-width: 760px; border-radius: 18px; display:block; margin: 0 auto; }
.tp .tp-figure figcaption { text-align:center; color: var(--muted); font-size: 14px; margin-top: 10px; }

/* scenario rows */
.tp .tp-scenarios { margin: 34px 0 0; display: grid; gap: 14px; }
.tp .tp-scn { display:flex; align-items:center; gap: 16px; background:#fff; border:1px solid var(--line);
  border-radius: 16px; padding: 22px 24px; font-size: clamp(16px, 2.2vw, 19px); color: var(--ink); line-height:1.6; }
.tp .tp-scn .tp-quote { flex-shrink:0; width: 40px; height: 40px; border-radius: 12px; background: var(--soft);
  color: var(--gd); font-weight: 700; font-size: 22px; display:flex; align-items:center; justify-content:center; }

/* cards */
.tp .tp-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.tp .tp-card { background:#fff; border:1px solid var(--line); border-radius: 22px; padding: 32px 28px; box-shadow: 0 8px 28px rgba(40,19,66,.05); }
.tp .tp-card .tp-card-tag { display:inline-block; font-size: 13px; font-weight:700; color: var(--gd); background: var(--soft); padding: 5px 13px; border-radius: 999px; margin: 0 0 16px; }
.tp .tp-card h3 { font-size: clamp(19px, 2.6vw, 23px); font-weight: 700; color: var(--navy); margin: 0 0 10px; line-height:1.4; }
.tp .tp-card p { font-size: 16px; line-height: 1.75; color: var(--ink); margin: 0; }

/* exam / list rows (label + why) */
.tp .tp-exams { margin-top: 34px; display:grid; gap: 12px; }
.tp .tp-exam { display:flex; flex-wrap:wrap; align-items:baseline; gap: 6px 22px; background:#fff; border:1px solid var(--line); border-left: 4px solid var(--g); border-radius: 14px; padding: 24px 28px; transition: box-shadow .15s ease, border-color .15s ease; }
.tp a.tp-exam:hover { border-left-color: var(--gd); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.tp .tp-exam .tp-exam-name { font-size: clamp(19px, 2.6vw, 22px); font-weight: 700; color: var(--navy); min-width: 200px; }
.tp .tp-exam .tp-exam-why { font-size: clamp(16px, 2.1vw, 18px); color: var(--ink); line-height:1.65; flex:1; min-width: 200px; }

/* dark credential band */
.tp .tp-trust { background: linear-gradient(160deg, #281342 0%, #4d1a72 100%); color:#fff; }
.tp .tp-trust .tp-inner { display:flex; flex-wrap:wrap; align-items:center; gap: 36px; }
.tp .tp-trust img { width: 220px; max-width: 44vw; border-radius: 16px; flex-shrink:0; }
.tp .tp-trust .tp-trust-copy { flex:1; min-width: 260px; }
.tp .tp-trust .tp-kicker { color: #fee500; }
.tp .tp-trust h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 700; line-height: 1.32; margin: 0 0 16px; color:#ffffff !important; letter-spacing:-.01em; }
.tp .tp-trust ul { list-style: none; margin: 0; padding: 0; }
.tp .tp-trust li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: clamp(15.5px,2.1vw,18px); line-height: 1.6; color: #dbe3ec; }
.tp .tp-trust li::before { content: "✓"; position:absolute; left:0; top:0; color: #fee500; font-weight: 700; }
.tp .tp-trust li strong { color:#fff; font-weight:700; }

/* steps */
.tp .tp-steps { margin-top: 40px; display:grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 20px; }
.tp .tp-step { text-align: left; background:#fff; border:1px solid var(--line); border-radius: 20px; padding: 34px 30px; }
.tp .tp-step .tp-step-num { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, var(--g), var(--gd)); color:#fff; font-size: 27px; font-weight: 700; display:flex; align-items:center; justify-content:center; margin: 0 0 20px; box-shadow: 0 6px 16px rgba(92,8,163,.30); }
.tp .tp-step h3 { font-size: clamp(20px,2.6vw,23px); font-weight:700; color: var(--navy); margin: 0 0 10px; line-height:1.4; }
.tp .tp-step h3 small { display:block; margin-top: 5px; font-size: 15px; font-weight: 600; }
.tp .tp-step p { font-size: clamp(16px,2.1vw,17.5px); line-height: 1.75; color: var(--ink); margin: 0; }

/* mid callout */
.tp .tp-callout { background: linear-gradient(135deg, #f5eafa, #edddf8); border-radius: 22px; padding: clamp(28px,4vw,44px); text-align:center; margin: 8px 0; }
.tp .tp-callout .tp-callout-title { font-size: clamp(20px,3vw,27px); font-weight:700; color:var(--navy); margin: 0 0 10px; line-height:1.4; }
.tp .tp-callout .tp-callout-sub { font-size: clamp(15px,2vw,17.5px); color:var(--ink); line-height:1.7; margin: 0 auto 24px; max-width: 560px; }

/* visit */
.tp .tp-visit { background: var(--soft); border: 1px solid var(--line); border-radius: 24px; padding: clamp(30px,5vw,48px); margin-top: 8px; }
.tp .tp-visit-row { display:flex; gap: 14px; margin-bottom: 18px; }
.tp .tp-visit-row:last-of-type { margin-bottom: 0; }
.tp .tp-visit-ic { flex-shrink:0; font-size: 20px; }
.tp .tp-visit-row div.t { font-size: clamp(16px,2.1vw,18px); line-height: 1.7; color: var(--ink); }
.tp .tp-visit-row strong { color: var(--navy); }
.tp .tp-final { text-align:center; }

/* faq */
.tp .tp-faq { margin-top: 36px; display:grid; gap: 14px; }
.tp .tp-faq-item { background:#fff; border:1px solid var(--line); border-radius: 18px; padding: 24px 26px; }
.tp .tp-faq-q { font-size: clamp(17px,2.3vw,19px); font-weight: 700; color: var(--navy); margin: 0 0 10px; line-height:1.5; }
.tp .tp-faq-a { font-size: 16px; line-height: 1.8; color: var(--ink); margin: 0; }
.tp .tp-faq-a a { color: var(--gd); font-weight: 700; text-decoration: none; }

/* related */
.tp .tp-related a { color: var(--gd); font-weight: 700; text-decoration: none; }
.tp .tp-related li { margin-bottom: 12px; font-size: 17px; line-height: 1.6; }

@media (max-width: 640px) {
  .tp .tp-section { padding: 56px 20px; }
  .tp .tp-trust .tp-inner { gap: 24px; }
  .tp .tp-trust img { width: 160px; }
  .tp .tp-exam .tp-exam-name { min-width: 100%; }
  .tp .tp-prose table { font-size: 14px; }
  .tp .tp-prose th, .tp .tp-prose td { padding: 10px 12px; }
}

.tp .reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms ease;
  will-change: opacity, transform;
}

.tp .reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .tp .reveal-up,
  .tp .reveal-up.is-visible {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Blog-specific additions */
.blog-page { background: #fff; }
.blog-post-date { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; }
.tp .blog-breadcrumb { display: block; margin-bottom: 25px; color: var(--gd); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.tp .blog-article-meta { display: block; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.tp .blog-photo-note { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 12px; }
.tp .blog-branch-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 24px; }
.tp .blog-branch-links .tp-cta { font-size: 16px; padding: 14px 24px; }
.tp a:focus-visible { outline: 3px solid #b77be2; outline-offset: 4px; }
