:root {
  --ink: #172033;
  --muted: #64748b;
  --line: #dce3ec;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --blue: #1359c5;
  --blue-dark: #0b3d91;
  --accent: #f59e0b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.78;
  word-break: keep-all;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; width: 100%; height: auto; }
.site-header { background: #0b1730; color: white; }
.nav { max-width: 1080px; margin: auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: white; font-weight: 800; font-size: 1.18rem; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 18px; font-size: .94rem; }
.nav-links a { color: #dbeafe; }
.container { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.hero { margin: 34px auto 24px; position: relative; overflow: hidden; border-radius: 24px; background: #0b1730; min-height: 380px; }
.hero img { height: 430px; object-fit: cover; opacity: .62; }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end; padding: clamp(28px, 6vw, 70px); color: white; background: linear-gradient(transparent 20%, rgba(5,15,35,.92)); }
.hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.15; letter-spacing: -.055em; }
.hero p { max-width: 720px; margin: 0; color: #e2e8f0; font-size: 1.08rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; margin: 28px 0 50px; }
.card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 10px 26px rgba(15,23,42,.05); }
.card h2 { margin: 8px 0 10px; font-size: 1.35rem; line-height: 1.4; letter-spacing: -.03em; }
.card p { color: var(--muted); margin: 0 0 16px; }
.tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: var(--blue-dark); background: #e8f1ff; font-size: .78rem; font-weight: 700; }
.article { max-width: 820px; margin: 34px auto 60px; background: var(--surface); padding: clamp(24px, 6vw, 64px); border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(15,23,42,.05); }
.breadcrumbs { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }
.article h1 { font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.22; letter-spacing: -.055em; margin: 0 0 18px; }
.lead { font-size: 1.12rem; color: #334155; border-left: 4px solid var(--blue); padding-left: 18px; }
.meta { color: var(--muted); font-size: .9rem; margin: 14px 0 28px; }
.article-hero { border-radius: 16px; margin: 26px 0 36px; aspect-ratio: 16/9; object-fit: cover; }
.article-figure { margin: 30px 0 36px; }
.article-inline-image { display: block; width: 100%; height: auto; border-radius: 16px; aspect-ratio: 3/2; object-fit: cover; }
.article-figure figcaption { margin-top: 9px; color: var(--muted); font-size: .88rem; line-height: 1.55; text-align: center; }
.article h2 { margin: 42px 0 12px; font-size: 1.62rem; line-height: 1.35; letter-spacing: -.035em; }
.article h3 { margin: 30px 0 8px; font-size: 1.22rem; }
.article p, .article li { color: #293548; }
.article li + li { margin-top: 8px; }
.note { background: #eef5ff; border: 1px solid #cfe0ff; border-radius: 14px; padding: 18px 20px; margin: 26px 0; }
.warning { background: #fff8e6; border-color: #f6d98a; }
.checklist { padding-left: 22px; }
.cta { margin-top: 44px; padding: 28px; color: white; background: linear-gradient(135deg, #0b3d91, #1769d2); border-radius: 18px; }
.cta h2 { color: white; margin-top: 0; }
.cta p { color: #eaf2ff; margin-bottom: 0; }
.cta-button { display: inline-flex; align-items: center; justify-content: center; margin-top: 20px; padding: 12px 19px; color: #0b3d91; background: white; border-radius: 11px; font-size: .94rem; font-weight: 800; box-shadow: 0 6px 16px rgba(3,18,49,.18); }
.cta-button:hover { color: #082f73; background: #f3f7ff; text-decoration: none; transform: translateY(-1px); }
.related { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.related ul { padding-left: 20px; }
.seo-guide-links { margin: 36px auto 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.bottom-article-links { margin: 34px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.bottom-article-links h2 { margin: 0 0 9px; color: #64748b; font-size: .88rem; }
.bottom-article-links ul { display: flex; flex-wrap: wrap; gap: 5px 15px; margin: 0; padding: 0; list-style: none; }
.bottom-article-links a { color: #64748b; font-size: .78rem; text-decoration: underline; text-decoration-color: #cbd5e1; text-underline-offset: 3px; }
.bottom-article-links a:hover { color: var(--blue-dark); text-decoration-color: var(--blue); }
.seo-guide-links h2 { margin: 0 0 13px; color: #475569; font-size: .96rem; letter-spacing: -.02em; }
.seo-guide-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.seo-guide-link-card { display: block; padding: 12px 14px; color: #475569; background: #f8fafc; border: 1px solid #e5eaf1; border-radius: 10px; font-size: .8rem; line-height: 1.45; }
.seo-guide-link-card:hover { color: var(--blue-dark); border-color: #bfdbfe; text-decoration: none; }
.seo-guide-link-card span { display: block; margin-bottom: 2px; color: #64748b; font-size: .73rem; }
.seo-guide-link-card strong { display: block; font-weight: 650; }
.seo-copy { margin: 24px 0 8px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.seo-copy h2 { margin-top: 0; font-size: 1.45rem; }
.seo-copy h3 { margin: 24px 0 6px; font-size: 1.08rem; }
.seo-copy p { color: #475569; margin: 0 0 12px; }
.site-footer { text-align: center; color: var(--muted); padding: 30px 16px 44px; font-size: .88rem; }
@media (max-width: 720px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { flex-wrap: wrap; gap: 10px 14px; }
  .grid { grid-template-columns: 1fr; }
  .hero img { height: 480px; }
  .article { width: min(100% - 20px, 820px); padding: 26px 20px; }
  .seo-guide-link-grid { grid-template-columns: 1fr; }
}

/* 승인된 SRT·KTX 가이드 허브 */
.guide-home { line-height: 1.65; background: #f5f7fb; }
.guide-wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.guide-header { position: sticky; top: 0; z-index: 20; color: var(--ink); background: rgba(255,255,255,.95); border-bottom: 1px solid #e5e9f0; backdrop-filter: blur(12px); }
.guide-header .nav { max-width: 1120px; min-height: 68px; padding-block: 12px; }
.guide-header .brand { display: flex; align-items: center; gap: 10px; color: #0b1b34; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: #1769e0; border-radius: 11px; }
.brand-mark img { width: 34px; height: 34px; border-radius: 11px; }
.guide-header .nav-links a { color: #445069; font-weight: 700; }
.nav-cta { padding: 10px 16px; color: white !important; background: #0b1b34; border-radius: 10px; font-size: .88rem; font-weight: 800; }
.nav-cta:hover { text-decoration: none; background: #162b4d; }
.guide-hero { padding: 72px 0 52px; background: radial-gradient(circle at 75% 20%, #d9e9ff 0, transparent 33%), linear-gradient(135deg, #fff, #edf4ff); border-bottom: 1px solid #e5e9f0; }
.guide-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-flex; padding: 7px 11px; color: #0d58bd; background: #e7f1ff; border-radius: 999px; font-size: .8rem; font-weight: 900; }
.guide-hero h1 { margin: 18px 0; color: #0b1b34; font-size: clamp(2.3rem, 5vw, 3.65rem); line-height: 1.14; letter-spacing: -.055em; }
.guide-hero p { max-width: 650px; margin: 0; color: #536079; font-size: 1.08rem; }
.guide-search { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 15px; margin-top: 28px; background: white; border: 1px solid #dbe3ef; border-radius: 14px; box-shadow: 0 12px 34px rgba(25,55,99,.09); }
.guide-search span { color: #8490a6; font-size: 1.4rem; }
.guide-search input { min-width: 0; flex: 1; padding: 11px 5px; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; }
.guide-search button { padding: 12px 18px; color: white; background: #1769e0; border: 0; border-radius: 10px; font-weight: 900; cursor: pointer; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0,0,0,0); white-space: nowrap; }
.guide-feature { overflow: hidden; color: var(--ink); background: white; border: 1px solid #e5e9f0; border-radius: 22px; box-shadow: 0 20px 55px rgba(15,36,70,.14); }
.guide-feature:hover { text-decoration: none; transform: translateY(-2px); }
.guide-feature img { aspect-ratio: 3/2; object-fit: cover; }
.guide-feature span { display: block; padding: 22px; }
.guide-feature strong { display: block; margin-bottom: 5px; font-size: 1.18rem; }
.guide-feature small { display: block; color: var(--muted); font-size: .88rem; }
.guide-section, .route-section { padding: 66px 0; }
#srt.guide-section, #ktx.guide-section { padding-top: 0; }
.guide-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.guide-section-head h2 { margin: 0; color: #0b1b34; font-size: 1.9rem; letter-spacing: -.04em; }
.guide-section-head p { max-width: 620px; margin: 7px 0 0; color: var(--muted); }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.topic-card { position: relative; min-height: 215px; padding: 22px; color: var(--ink); background: white; border: 1px solid #e5e9f0; border-radius: 18px; transition: .2s ease; }
.topic-card:hover { transform: translateY(-3px); border-color: #b9d2f5; box-shadow: 0 14px 35px rgba(20,45,85,.08); text-decoration: none; }
.topic-card h3 { margin: 11px 0 8px; font-size: 1.2rem; line-height: 1.38; letter-spacing: -.025em; }
.topic-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.topic-arrow { position: absolute; right: 20px; bottom: 18px; color: #1769e0; font-weight: 900; }
.guide-filter-item[hidden] { display: none !important; }
.route-section { background: white; border-block: 1px solid #e5e9f0; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.route-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 21px; color: var(--ink); border: 1px solid #e5e9f0; border-radius: 15px; }
.route-card:hover { background: #f8fbff; border-color: #9fc3f4; text-decoration: none; }
.route-label { display: flex; align-items: center; gap: 14px; }
.route-label strong, .route-label small { display: block; }
.route-label small { color: var(--muted); }
.train-badge { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; color: white; background: #1769e0; border-radius: 13px; font-weight: 900; }
.train-badge.srt { background: #7a3fb1; }
.route-principle { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 30px; margin-top: 24px; color: white; background: #0b1b34; border-radius: 20px; }
.route-principle h3 { margin: 0 0 8px; font-size: 1.45rem; }
.route-principle p { margin: 0; color: #c6d2e8; }
.route-principle ul { margin: 0; padding-left: 20px; color: #dce6f6; }
.faq-wrap { width: min(850px, calc(100% - 36px)); }
.guide-faq details, .article-faq details { margin-bottom: 11px; padding: 0 20px; background: white; border: 1px solid #e5e9f0; border-radius: 14px; }
.guide-faq summary, .article-faq summary { padding: 19px 0; cursor: pointer; color: #0b1b34; font-weight: 900; }
.guide-faq details p, .article-faq details p { margin: 0 0 20px; color: var(--muted); }
.article-faq { margin-top: 44px; }
.guide-final-cta { padding: 0 0 76px; }
.guide-cta-box { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 38px 42px; color: white; background: linear-gradient(135deg, #1769e0, #0a3b89); border-radius: 22px; box-shadow: 0 20px 55px rgba(23,105,224,.2); }
.guide-cta-box h2 { margin: 0 0 8px; font-size: 1.75rem; }
.guide-cta-box p { margin: 0; color: #d9e7ff; }
.guide-cta-box a { padding: 14px 21px; color: #0b1b34; background: white; border-radius: 11px; font-weight: 900; white-space: nowrap; }
.guide-cta-box a:hover { text-decoration: none; }
.guide-external-links { margin-bottom: 55px; }
.guide-footer { padding: 35px 0; color: #7b8497; background: #0a1426; font-size: .8rem; }
.guide-footer p { margin-bottom: 0; }
.guide-footer-links { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.guide-footer-links a { color: #c2cada; }

@media (max-width: 850px) {
  .guide-header .nav-links { display: none; }
  .guide-hero-grid, .route-principle { grid-template-columns: 1fr; }
  .guide-feature { max-width: 620px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .guide-cta-box { grid-template-columns: 1fr; }
  .guide-cta-box a { justify-self: start; }
}
@media (max-width: 560px) {
  .guide-wrap, .faq-wrap { width: min(100% - 24px, 1120px); }
  .guide-header .nav { flex-direction: row; align-items: center; }
  .guide-header .nav-cta { display: none; }
  .guide-hero { padding-top: 46px; }
  .guide-search button { padding-inline: 12px; }
  .topic-grid, .route-grid { grid-template-columns: 1fr; }
  .guide-section-head { align-items: start; flex-direction: column; }
  .guide-cta-box { padding: 30px 24px; }
}
