/* ==========================================================================
   출발지 운임 상세 페이지 (운임/{시도}/{시군구}.html) — styles.css 토큰 사용
   ========================================================================== */

/* ─── HERO / TOP ─── */
.org-hero {
  background:
    radial-gradient(120% 140% at 85% -10%, var(--brand-tint) 0%, transparent 55%),
    var(--bg-soft);
  padding: 84px 0 48px;
  border-bottom: 1px solid var(--line);
}
.org-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.org-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-mute);
}
.org-crumb a { color: var(--ink-soft); font-weight: 600; }
.org-crumb a:hover { color: var(--brand-strong); }
.org-crumb-sep { color: var(--line-strong); }
.org-crumb-cur { color: var(--ink); font-weight: 700; }
.org-live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--bg-panel); border: 1px solid var(--line-strong);
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace; white-space: nowrap;
}
.org-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
  animation: orgPulse 2s ease-in-out infinite;
}
.org-topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.org-change {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-soft); font-size: 13.5px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.org-change svg { width: 14px; height: 14px; }
.org-change:hover { color: var(--brand-strong); }
@keyframes orgPulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.org-title {
  font-size: 46px; font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; color: var(--ink); margin: 0;
}
.org-updated-ago { font-weight: 600; opacity: .72; }
.org-title-row { display: flex; align-items: center; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
.org-updated {
  font-size: 14px; font-weight: 700; color: #0b7a52;
  font-family: 'JetBrains Mono', monospace; white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  padding: 6px 13px; border-radius: 999px;
}

/* ─── SUMMARY BOX ─── */
.org-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; margin-top: 24px;
  padding: 24px 26px; border-radius: var(--r-lg);
  background: var(--brand-tint); border: 1px solid var(--brand-soft);
}
.org-summary-text {
  margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--ink-soft);
  text-wrap: pretty;
}
.org-summary-text b { color: var(--ink); font-weight: 700; }
.org-sum-city { white-space: nowrap; }
.org-summary-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-md);
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow-md); transition: background .15s, transform .12s;
}
.org-summary-btn svg { width: 16px; height: 16px; }
.org-summary-btn:hover { background: var(--brand-strong); transform: translateY(-1px); }

/* ─── RATE TABLE ─── */
.org-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.org-rates { padding: 64px 0; }
.org-rates-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 16px;
}
.org-sec-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--brand-strong); font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}
.org-sec-title {
  font-size: 28px; font-weight: 800; letter-spacing: -0.025em;
  color: var(--ink); margin: 10px 0 0;
}
.org-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-panel); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); padding: 0 14px; min-width: 260px;
  transition: border-color .15s, box-shadow .15s;
}
.org-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.org-search svg { width: 18px; height: 18px; color: var(--ink-mute); flex-shrink: 0; }
.org-search input {
  border: 0; outline: 0; background: transparent; font: inherit;
  font-size: 15px; color: var(--ink); padding: 12px 0; width: 100%;
}
.org-search input::placeholder { color: var(--ink-mute); }

.org-table-unit {
  font-size: 12.5px; color: var(--ink-mute); font-weight: 600;
  margin-bottom: 10px; font-family: 'JetBrains Mono', monospace;
}

.org-table-wrap {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-sm);
}
/* 도용 방지 워터마크 — 다불러 로고 타일, 대각선(반시계 45°), 셀 뒤에 흐리게 */
.org-table-wm {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; border-radius: inherit; pointer-events: none;
}
.org-table-wm::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("assets/logo-wm.png");
  background-repeat: repeat;
  background-size: 230px auto;
  opacity: .1;
}
.org-table { position: relative; z-index: 1; width: 100%; border-collapse: collapse; min-width: 920px; }
/* 도용 방지 — 표 데이터 드래그·선택·복사 차단 (봇의 DOM 파싱엔 영향 없음 → SEO와 무관) */
.org-table { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
.org-table thead th {
  position: sticky; top: 60px; z-index: 4;
  background: var(--bg-inverse); color: var(--ink-on-inverse);
  font-size: 12.5px; font-weight: 700; padding: 13px 10px;
  text-align: right; white-space: nowrap;
}
.org-table thead th:first-child { border-top-left-radius: var(--r-lg); }
.org-table thead th:last-child { border-top-right-radius: var(--r-lg); }
.org-table thead .org-th-dest {
  text-align: left; padding-left: 22px;
  position: sticky; left: 0; z-index: 5; min-width: 130px;
}
.org-table tbody .org-td-dest {
  position: sticky; left: 0; z-index: 1;
  background: var(--bg-panel);
}

/* 시도 그룹 헤더 행 */
.org-group-row th {
  text-align: left; padding: 10px 22px;
  background: var(--bg-soft);
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
  color: var(--brand-strong);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: sticky; left: 0; top: 104px; z-index: 3;
}

.org-table tbody tr { border-bottom: 1px solid var(--line); }
.org-table td { padding: 12px 10px; text-align: right; }
.org-td-dest { text-align: left; padding-left: 22px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.org-td-rate {
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  font-weight: 600; color: var(--ink-soft);
}

/* ── 크로스헤어 강조: 행 + 열, 교차점은 더 진하게 (JS가 ch-N 토글) ── */
.org-table tbody tr:hover td,
.org-table tbody tr:hover .org-td-dest { background: var(--brand-tint); }
.org-table.ch-1 td:nth-child(1), .org-table.ch-2 td:nth-child(2), .org-table.ch-3 td:nth-child(3),
.org-table.ch-4 td:nth-child(4), .org-table.ch-5 td:nth-child(5), .org-table.ch-6 td:nth-child(6),
.org-table.ch-7 td:nth-child(7), .org-table.ch-8 td:nth-child(8), .org-table.ch-9 td:nth-child(9),
.org-table.ch-10 td:nth-child(10), .org-table.ch-11 td:nth-child(11), .org-table.ch-12 td:nth-child(12),
.org-table.ch-13 td:nth-child(13), .org-table.ch-14 td:nth-child(14), .org-table.ch-15 td:nth-child(15) {
  background: var(--brand-tint);
}
.org-table.ch-1 thead th:nth-child(1), .org-table.ch-2 thead th:nth-child(2), .org-table.ch-3 thead th:nth-child(3),
.org-table.ch-4 thead th:nth-child(4), .org-table.ch-5 thead th:nth-child(5), .org-table.ch-6 thead th:nth-child(6),
.org-table.ch-7 thead th:nth-child(7), .org-table.ch-8 thead th:nth-child(8), .org-table.ch-9 thead th:nth-child(9),
.org-table.ch-10 thead th:nth-child(10), .org-table.ch-11 thead th:nth-child(11), .org-table.ch-12 thead th:nth-child(12),
.org-table.ch-13 thead th:nth-child(13), .org-table.ch-14 thead th:nth-child(14), .org-table.ch-15 thead th:nth-child(15) {
  background: var(--brand);
}
.org-table.ch-1 tbody tr:hover td:nth-child(1), .org-table.ch-2 tbody tr:hover td:nth-child(2), .org-table.ch-3 tbody tr:hover td:nth-child(3),
.org-table.ch-4 tbody tr:hover td:nth-child(4), .org-table.ch-5 tbody tr:hover td:nth-child(5), .org-table.ch-6 tbody tr:hover td:nth-child(6),
.org-table.ch-7 tbody tr:hover td:nth-child(7), .org-table.ch-8 tbody tr:hover td:nth-child(8), .org-table.ch-9 tbody tr:hover td:nth-child(9),
.org-table.ch-10 tbody tr:hover td:nth-child(10), .org-table.ch-11 tbody tr:hover td:nth-child(11), .org-table.ch-12 tbody tr:hover td:nth-child(12),
.org-table.ch-13 tbody tr:hover td:nth-child(13), .org-table.ch-14 tbody tr:hover td:nth-child(14), .org-table.ch-15 tbody tr:hover td:nth-child(15) {
  background: color-mix(in srgb, var(--brand) 22%, var(--bg));
  color: var(--brand-strong); font-weight: 700;
}
.org-table-empty {
  text-align: center !important; padding: 40px !important;
  color: var(--ink-mute); font-size: 14.5px;
}
.org-table-note {
  font-size: 13px; color: var(--ink-mute); line-height: 1.7; margin: 16px 4px 0;
}
.org-table-note b { color: var(--ink-soft); }

/* ─── CTA BAND ─── */
.org-cta { background: var(--bg-inverse); padding: 52px 0; }
.org-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.org-cta-title { font-size: 27px; font-weight: 800; color: #fff; margin: 0; letter-spacing: -0.02em; }
.org-cta-sub { font-size: 15px; color: rgba(255,255,255,.7); margin: 8px 0 0; }
.org-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.org-cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--r-md);
  font-size: 15.5px; font-weight: 700; transition: transform .12s, filter .15s;
}
.org-cta-btn svg { width: 18px; height: 18px; }
.org-cta-btn:hover { transform: translateY(-1px); }
.org-cta-btn-phone { background: var(--brand); color: #fff; }
.org-cta-btn-phone:hover { background: var(--brand-strong); }
.org-cta-btn-kakao { background: #FEE500; color: #3A1D1D; }
.org-cta-btn-kakao:hover { filter: brightness(.96); }
.org-cta-btn-quote {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.org-cta-btn-quote:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* 견적문의 드롭다운 (위/아래 공용) */
.org-quote { position: relative; flex-shrink: 0; }
.org-quote-caret { margin-left: 2px; transition: transform .2s; }
.org-quote.open .org-quote-caret { transform: rotate(180deg); }
.org-quote-drop {
  position: absolute; right: 0;
  width: 300px; padding: 8px;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity .16s, transform .16s, visibility .16s;
  z-index: 20;
}
.org-quote-up .org-quote-drop { bottom: calc(100% + 10px); transform: translateY(8px); }
.org-quote-down .org-quote-drop { top: calc(100% + 10px); transform: translateY(-8px); }
.org-quote.open .org-quote-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.org-quote-opt {
  display: block; padding: 13px 14px; border-radius: var(--r-sm);
  transition: background .14s;
}
.org-quote-opt:hover { background: var(--bg-soft); }
.org-quote-opt.is-featured { background: var(--brand-tint); }
.org-quote-opt.is-featured:hover { background: var(--brand-soft); }
.org-quote-opt-eyebrow {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .03em;
  color: var(--brand-strong); background: var(--brand-soft);
  padding: 2px 7px; border-radius: 5px; margin-bottom: 6px;
}
.org-quote-opt-title { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.org-quote-opt-desc { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }

/* ─── 운임 출처 박스 ─── */
/* 운임 산정 설명 (정보성 콘텐츠) */
.org-guide { padding: 36px 0 8px; }
.org-guide .org-sec-title { margin-bottom: 14px; }
.org-guide-text { margin: 0; max-width: 880px; font-size: 15.5px; line-height: 1.8; color: var(--ink-soft); }
.org-source { padding: 0 0 8px; margin-top: -28px; }
.org-source-box {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--brand-tint); border: 1px solid var(--brand-soft);
}
.org-source-icon {
  flex-shrink: 0; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-panel); color: var(--brand-strong);
  border: 1px solid var(--brand-soft);
}
.org-source-icon svg { width: 22px; height: 22px; }
.org-source-eyebrow {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  color: var(--brand-strong); font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; margin-bottom: 6px;
}
.org-source-text {
  margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-soft);
  text-wrap: pretty;
}
.org-source-text b { color: var(--ink); font-weight: 700; }
.org-source-link {
  display: inline-block; margin-left: 4px;
  font-weight: 700; color: var(--brand-strong);
}
.org-source-link:hover { text-decoration: underline; }

/* ─── FAQ ─── */
.org-faq { padding: 56px 0; }
.org-faq-head { margin-bottom: 24px; }
.org-faq-head .org-sec-eyebrow { display: block; }
.org-faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.org-faq-item {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-panel); overflow: hidden;
}
.org-faq-item.is-open { border-color: var(--line-strong); }
.org-faq-q {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 18px 20px; text-align: left;
}
.org-faq-qm {
  display: grid; place-items: center; width: 25px; height: 25px; flex-shrink: 0;
  font-size: 13px; font-weight: 800; color: var(--brand-strong);
  background: var(--brand-soft); border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
}
.org-faq-qt { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.org-faq-caret {
  width: 18px; height: 18px; color: var(--ink-mute); margin-left: auto; flex-shrink: 0;
}
.org-faq-item.is-open .org-faq-caret { transform: scaleY(-1); }
.org-faq-a { display: none; }
.org-faq-item.is-open .org-faq-a { display: block; }
.org-faq-a p {
  margin: 0; padding: 0 20px 20px 58px;
  font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); text-wrap: pretty;
}

/* ─── NEARBY ─── */
.org-nearby { padding: 52px 0; background: var(--bg-soft); }
.org-nearby-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.org-nearby-title { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0; }
.org-alllink { font-size: 13.5px; font-weight: 600; color: var(--brand-strong); }
.org-alllink:hover { text-decoration: underline; }
.org-nearby-chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.org-nearby-chips a {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  background: var(--bg-panel); border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: border-color .15s, color .15s, transform .12s;
}
.org-nearby-chips a:hover {
  border-color: var(--brand); color: var(--brand-strong); transform: translateY(-1px);
}
/* 주변 도착지 — 시도별 텍스트 링크 목록 */
.org-nearby-groups {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px;
}
.org-nearby-grp { display: flex; flex-direction: column; gap: 8px; }
.org-nearby-grp-sido {
  font-size: 12.5px; font-weight: 800; color: var(--brand-strong);
  font-family: 'JetBrains Mono', monospace;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.org-nearby-grp-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 14px;
}
.org-nearby-grp-links a {
  font-size: 13.5px; color: var(--ink-soft); padding: 2px 0;
}
.org-nearby-grp-links a:hover { color: var(--brand-strong); text-decoration: underline; }
.org-nearby-grp-links span { font-size: 13.5px; color: var(--ink-mute); }
@media (max-width: 720px) { .org-nearby-groups { grid-template-columns: 1fr; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .org-hero { padding: 70px 0 38px; }
  .org-title { font-size: 30px; }
  .org-summary { flex-direction: column; align-items: stretch; gap: 18px; padding: 20px; }
  .org-summary-btn { justify-content: center; }
  .org-summary-text { font-size: 14.5px; }
  .org-rates, .org-cta, .org-nearby { padding: 44px 0; }
  .org-sec-title { font-size: 22px; }
  .org-search { width: 100%; }
  .org-cta-title { font-size: 22px; }
  /* 모바일: 14개 차종 열을 가로 스크롤 없이 한 화면에 모두 표시 (화면폭에 맞춰 축소) */
  .org-rates .shell { padding-left: 10px; padding-right: 10px; }
  .org-table-wrap { overflow-x: hidden; max-height: none; }
  .org-table { min-width: 0; width: 100%; table-layout: fixed; }
  .org-table thead th,
  .org-table td { padding: 5px 1px; font-size: 1.8vw; letter-spacing: 0; word-break: keep-all; }
  .org-table thead .org-th-dest,
  .org-table tbody .org-td-dest,
  .org-td-dest { width: 15%; min-width: 0; padding-left: 5px; font-size: 2vw; }
  .org-td-rate { font-size: 1.8vw; }
  .org-group-cell { font-size: 2.2vw; padding-left: 6px; }
  .org-table thead th { top: 0; }
  .org-group-row th { top: 41px; }
  .org-summary .org-quote { width: 100%; }
  .org-summary-btn { width: 100%; justify-content: center; }
  .org-source { margin-top: -20px; }
  .org-source-box { flex-direction: column; gap: 12px; padding: 18px; }
  .org-faq { padding: 44px 0; }
  .org-faq-a p { padding-left: 20px; }
}
