@font-face {
  font-family: "Pretendard Variable";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --ink: #07111f;
  --muted: #64748b;
  --line: #dbeafe;
  --soft: #f6f9ff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #10b981;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.guide-shell {
  overflow: hidden;
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(18px);
}

.guide-header-inner,
.guide-section,
.guide-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.guide-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #07111f;
  font-size: 20px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.guide-brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.guide-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.guide-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #475569;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.guide-nav a:hover {
  background: #eff6ff;
  color: var(--blue);
}

.guide-nav .primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.guide-hero {
  position: relative;
  padding: 86px 0 58px;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.92), rgba(23, 40, 86, 0.82)),
    url("/assets/hero-rail-ops.png") center / cover no-repeat;
  color: #ffffff;
}

.guide-hero .guide-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.guide-eyebrow {
  margin: 0 0 12px;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 950;
}

.guide-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.guide-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 650;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

.guide-button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.guide-proof-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.guide-proof-card h2 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.3;
}

.guide-proof-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-proof-list li {
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 760;
  line-height: 1.55;
}

.guide-proof-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: #34d399;
}

.guide-main {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 46%, #ffffff 100%);
}

.guide-section {
  padding: 76px 0;
}

.guide-section.compact {
  padding-top: 0;
}

.guide-section-title {
  max-width: 760px;
  margin: 0;
  color: #07111f;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
}

.guide-section-copy {
  max-width: 780px;
  margin: 16px 0 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 650;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.guide-info-card,
.guide-step-card,
.guide-faq-card,
.guide-route-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 20px 52px rgba(15, 35, 76, 0.08);
}

.guide-info-card {
  min-height: 198px;
  padding: 26px;
}

.guide-info-card strong,
.guide-step-card strong,
.guide-route-card strong {
  display: block;
  color: #07111f;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 950;
}

.guide-info-card p,
.guide-step-card p,
.guide-route-card p,
.guide-faq-card p {
  margin: 12px 0 0;
  color: #475569;
  font-size: 15.5px;
  line-height: 1.76;
  font-weight: 650;
}

.guide-step-card {
  padding: 26px;
}

.guide-step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-weight: 950;
}

.guide-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.guide-route-card {
  padding: 24px;
}

.guide-route-card em {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
}

.guide-cta-band {
  margin-top: 36px;
  padding: 32px;
  border-radius: 24px;
  background: #07111f;
  color: #ffffff;
  box-shadow: 0 26px 72px rgba(7, 17, 31, 0.2);
}

.guide-cta-band h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
}

.guide-cta-band p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.72;
  font-weight: 650;
}

.guide-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.guide-faq-card {
  padding: 24px;
}

.guide-faq-card h3 {
  margin: 0;
  color: #07111f;
  font-size: 19px;
  line-height: 1.32;
}

.guide-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.guide-related a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
}

.guide-footer {
  padding: 38px 0 54px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
}

.guide-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guide-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-footer a {
  color: #334155;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 900px) {
  .guide-nav a:not(.primary) {
    display: none;
  }

  .guide-hero .guide-section,
  .guide-grid,
  .guide-route-grid,
  .guide-faq-grid {
    grid-template-columns: 1fr;
  }

  .guide-hero {
    padding: 58px 0 42px;
  }
}

@media (max-width: 560px) {
  .guide-header-inner,
  .guide-section,
  .guide-footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .guide-header-inner {
    min-height: 62px;
  }

  .guide-brand {
    font-size: 18px;
  }

  .guide-brand img {
    width: 32px;
    height: 32px;
  }

  .guide-nav .primary {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .guide-hero h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .guide-lead,
  .guide-section-copy {
    font-size: 16px;
  }

  .guide-actions {
    flex-direction: column;
  }

  .guide-button {
    width: 100%;
  }

  .guide-section {
    padding: 54px 0;
  }

  .guide-info-card,
  .guide-step-card,
  .guide-route-card,
  .guide-faq-card,
  .guide-cta-band {
    border-radius: 18px;
    padding: 22px;
  }
}

/* Public guide page typography polish */
.guide-header-inner,
.guide-section,
.guide-footer-inner {
  width: min(1080px, calc(100% - 48px));
}

.guide-hero {
  padding: clamp(58px, 7vw, 82px) 0 clamp(42px, 5vw, 58px);
}

.guide-hero h1 {
  max-width: 740px;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.12;
  font-weight: 880;
  text-wrap: balance;
}

.guide-lead {
  max-width: 700px;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.68;
}

.guide-section {
  padding: clamp(52px, 6vw, 74px) 0;
}

.guide-section.compact {
  padding-top: clamp(12px, 2vw, 24px);
}

.guide-section-title {
  max-width: 760px;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.2;
  font-weight: 880;
  text-wrap: balance;
}

.guide-section-copy {
  max-width: 760px;
  font-size: clamp(16px, 1.25vw, 17px);
  line-height: 1.72;
}

.guide-grid,
.guide-route-grid,
.guide-faq-grid {
  gap: clamp(14px, 2vw, 20px);
}

.guide-info-card,
.guide-step-card,
.guide-faq-card,
.guide-route-card {
  min-height: auto;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 24px;
}

.guide-info-card strong,
.guide-step-card strong,
.guide-route-card strong {
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.28;
  font-weight: 880;
  text-wrap: balance;
}

.guide-faq-card h3 {
  font-size: clamp(20px, 1.7vw, 23px);
  line-height: 1.3;
  font-weight: 880;
  text-wrap: balance;
}

.guide-info-card p,
.guide-step-card p,
.guide-route-card p,
.guide-faq-card p {
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.68;
  font-weight: 650;
}

.guide-button {
  min-height: 50px;
  padding: 0 22px;
  font-size: 16px;
}

.guide-proof-card {
  padding: clamp(22px, 2.6vw, 30px);
}

.guide-proof-card h2 {
  font-size: clamp(21px, 2vw, 26px);
}

.guide-proof-list li {
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.6;
}

.guide-cta-band {
  padding: clamp(28px, 3.2vw, 36px);
}

.guide-cta-band h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.22;
}

.guide-cta-band p {
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.68;
}

@media (max-width: 900px) {
  .guide-hero .guide-section {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .guide-header-inner,
  .guide-section,
  .guide-footer-inner {
    width: min(100% - 32px, 560px);
  }

  .guide-header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .guide-brand {
    gap: 8px;
    font-size: 20px;
  }

  .guide-brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .guide-nav {
    gap: 8px;
  }

  .guide-nav .primary {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  .guide-hero {
    padding: 52px 0 36px;
  }

  .guide-hero .guide-section {
    gap: 22px;
  }

  .guide-eyebrow {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .guide-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.5vw, 38px);
    line-height: 1.18;
  }

  .guide-lead {
    margin-top: 18px;
    max-width: 100%;
    font-size: 15.5px;
    line-height: 1.7;
  }

  .guide-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .guide-button {
    min-height: 50px;
    font-size: 15.5px;
  }

  .guide-proof-card {
    border-radius: 22px;
    padding: 22px;
  }

  .guide-section {
    padding: 42px 0;
  }

  .guide-section.compact {
    padding-top: 10px;
  }

  .guide-section-title {
    font-size: clamp(24px, 6.4vw, 30px);
    line-height: 1.26;
  }

  .guide-section-copy {
    margin-top: 14px;
    font-size: 15.5px;
    line-height: 1.7;
  }

  .guide-grid,
  .guide-route-grid,
  .guide-faq-grid {
    gap: 14px;
    margin-top: 22px;
  }

  .guide-info-card,
  .guide-step-card,
  .guide-route-card,
  .guide-faq-card {
    padding: 22px 20px;
    border-radius: 22px;
  }

  .guide-step-card span {
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
  }

  .guide-info-card strong,
  .guide-step-card strong,
  .guide-route-card strong {
    font-size: 20.5px;
    line-height: 1.3;
  }

  .guide-faq-card h3 {
    font-size: 20.5px;
    line-height: 1.32;
  }

  .guide-info-card p,
  .guide-step-card p,
  .guide-route-card p,
  .guide-faq-card p {
    margin-top: 12px;
    font-size: 15.2px;
    line-height: 1.68;
  }

  .guide-cta-band {
    margin-top: 26px;
    padding: 26px 22px;
    border-radius: 24px;
  }

  .guide-cta-band h2 {
    font-size: 24px;
    line-height: 1.24;
  }

  .guide-cta-band p {
    font-size: 15.2px;
    line-height: 1.68;
  }

  .guide-related {
    gap: 8px;
  }

  .guide-related a {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .guide-footer {
    padding: 32px 0 46px;
  }

  .guide-footer-inner {
    justify-content: center;
    text-align: center;
  }

  .guide-footer-links {
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .guide-header-inner,
  .guide-section,
  .guide-footer-inner {
    width: calc(100% - 28px);
  }

  .guide-brand {
    font-size: 18px;
  }

  .guide-nav .primary {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }

  .guide-hero h1 {
    font-size: 29px;
  }

  .guide-section-title {
    font-size: 23px;
  }

  .guide-info-card strong,
  .guide-step-card strong,
  .guide-route-card strong,
  .guide-faq-card h3 {
    font-size: 19.5px;
  }
}

/* SEO guide card and related-link alignment */
.guide-info-card {
  display: flex;
  min-height: clamp(150px, 14vw, 190px);
  flex-direction: column;
  justify-content: center;
}

.guide-step-card {
  position: relative;
  display: flex;
  min-height: clamp(150px, 14vw, 190px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(44px, 4vw, 54px);
  padding-bottom: clamp(24px, 3vw, 32px);
  text-align: center;
}

.guide-step-card span {
  position: absolute;
  top: clamp(20px, 2.4vw, 26px);
  left: clamp(20px, 2.4vw, 26px);
  margin-bottom: 0;
}

.guide-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.guide-related a {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .guide-info-card,
  .guide-step-card {
    min-height: 142px;
  }

  .guide-step-card {
    padding-top: 46px;
  }

  .guide-step-card span {
    top: 20px;
    left: 20px;
  }

  .guide-related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .guide-related a {
    min-height: 42px;
    padding: 8px 6px;
    font-size: clamp(12px, 3.2vw, 14px);
  }
}

/* Mobile overflow guards for SEO guide hero/header */
.guide-hero h1,
.guide-lead,
.guide-proof-card,
.guide-proof-list li {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  html,
  body,
  .guide-shell {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .guide-header-inner,
  .guide-section,
  .guide-footer-inner {
    width: calc(100vw - 32px) !important;
    max-width: 560px;
  }

  .guide-header-inner {
    overflow: hidden;
  }

  .guide-hero .guide-section {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .guide-hero .guide-section > * {
    min-width: 0;
    max-width: 100%;
  }

  .guide-nav {
    flex: 0 1 auto;
    min-width: 0;
  }

  .guide-nav .primary {
    max-width: min(42vw, 148px);
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .guide-hero h1,
  .guide-lead {
    word-break: normal;
  }

  .guide-button {
    max-width: 100%;
    text-align: center;
    line-height: 1.2;
  }
}

@media (max-width: 390px) {
  .guide-header-inner,
  .guide-section,
  .guide-footer-inner {
    width: calc(100vw - 28px) !important;
  }
}

/* Final mobile containment pass for shared link previews and guide pages. */
@media (max-width: 640px) {
  .guide-shell,
  .guide-header,
  .guide-main,
  .guide-hero,
  .guide-footer {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .guide-header-inner,
  .guide-section,
  .guide-footer-inner {
    width: min(100%, 560px) !important;
    max-width: calc(100% - 32px) !important;
    margin-right: auto;
    margin-left: auto;
  }

  .guide-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
  }

  .guide-brand {
    min-width: 0;
    overflow: hidden;
  }

  .guide-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .guide-nav {
    justify-self: end;
    max-width: 42vw;
    overflow: hidden;
  }

  .guide-nav .primary {
    width: 100%;
    max-width: 148px;
    padding: 0 12px;
  }

  .guide-hero .guide-section,
  .guide-grid,
  .guide-route-grid,
  .guide-faq-grid {
    width: min(100%, 560px) !important;
    max-width: calc(100% - 32px) !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .guide-hero .guide-section > *,
  .guide-grid > *,
  .guide-route-grid > *,
  .guide-faq-grid > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .guide-hero h1,
  .guide-lead,
  .guide-section-title,
  .guide-section-copy,
  .guide-proof-card,
  .guide-proof-card h2,
  .guide-proof-list li,
  .guide-info-card,
  .guide-info-card strong,
  .guide-info-card p,
  .guide-step-card,
  .guide-step-card strong,
  .guide-step-card p,
  .guide-route-card,
  .guide-route-card strong,
  .guide-route-card p,
  .guide-faq-card,
  .guide-faq-card h3,
  .guide-faq-card p,
  .guide-cta-band,
  .guide-cta-band h2,
  .guide-cta-band p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .guide-lead,
  .guide-section-copy,
  .guide-proof-list li,
  .guide-info-card p,
  .guide-step-card p,
  .guide-route-card p,
  .guide-faq-card p {
    word-break: keep-all;
  }

  .guide-actions,
  .guide-button {
    width: 100%;
    max-width: 100%;
  }

  .guide-button {
    min-width: 0;
    white-space: normal;
  }
}

/* SRT fee tables use additive selectors so existing guide layouts stay unchanged. */
.guide-fee-table-wrap {
  max-width: 100%;
  margin-top: 34px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 20px 52px rgba(15, 35, 76, 0.08);
  -webkit-overflow-scrolling: touch;
}

.guide-fee-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: #07111f;
}

.guide-fee-table caption {
  padding: 24px 26px 18px;
  color: #07111f;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 880;
  text-align: left;
}

.guide-fee-table th,
.guide-fee-table td {
  padding: 18px 26px;
  border-top: 1px solid #e2e8f0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
  text-align: left;
}

.guide-fee-table thead th {
  color: #475569;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 800;
}

.guide-fee-table tbody th {
  width: 40%;
  font-weight: 800;
}

.guide-fee-table td strong {
  color: var(--blue-dark);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 900;
}

.guide-fee-note {
  max-width: 820px;
  margin: 18px 0 0;
  color: #475569;
  font-size: clamp(15.5px, 1.2vw, 17px);
  font-weight: 650;
  line-height: 1.72;
}

.guide-fee-note a {
  color: var(--blue-dark);
  font-weight: 850;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .guide-fee-table-wrap {
    border-radius: 18px;
  }

  .guide-fee-table {
    min-width: 560px;
  }

  .guide-fee-table caption,
  .guide-fee-table th,
  .guide-fee-table td {
    padding-right: 20px;
    padding-left: 20px;
  }
}
