/* South Korea route diagram: the thickness is a diagram surface, not elevation. */
.korea-road-trip { margin-block: 44px 56px; min-width: 0; }
.korea-trip-heading h2 { margin: 0 0 12px; color: var(--forest-dark); font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.3; }
.korea-trip-heading p { max-width: 68ch; margin: 0 0 24px; }
.korea-trip-figure { margin: 0; }
.korea-trip-scene { position: relative; width: 100%; aspect-ratio: 1; isolation: isolate; background: color-mix(in oklch, var(--sky) 12%, var(--panel)); border-radius: 12px; }
.korea-trip-land { display: block; width: 100%; height: 100%; overflow: visible; }
.korea-land-shadow { fill: color-mix(in oklch, var(--forest-dark) 12%, transparent); filter: blur(8px); }
.korea-land-depth { fill: color-mix(in oklch, var(--forest) 72%, var(--paper)); }
.korea-land-top { fill: color-mix(in oklch, var(--wash) 78%, var(--forest) 22%); stroke: color-mix(in oklch, var(--forest) 45%, var(--wash)); stroke-width: 2; }
.korea-land-region { fill: none; stroke: color-mix(in oklch, var(--forest) 20%, transparent); stroke-width: 2; stroke-dasharray: 7 8; }
.korea-trip-line { fill: none; stroke: var(--forest-dark); stroke-width: 3.3; stroke-linecap: round; stroke-linejoin: round; }
#korea-trip-arrow path { fill: var(--forest-dark); }
.korea-trip-line--return { stroke-dasharray: 8 8; }
.korea-trip-region { position: absolute; z-index: 2; left: var(--korea-x); top: var(--korea-y); display: grid; place-items: center; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.korea-trip-region span { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--paper); border-radius: 50%; background: var(--forest-dark); color: var(--panel); box-shadow: 0 4px 9px oklch(0.22 0.03 158 / .16); }
.korea-trip-region:hover span, .korea-trip-region:focus-visible span { background: var(--ink); }
.korea-trip-region:focus-visible, .korea-road-trip a:focus-visible { outline: 3px solid var(--forest-dark); outline-offset: 3px; }
.korea-trip-dot { position: absolute; z-index: 2; left: var(--korea-x); top: var(--korea-y); display: grid; place-items: center; width: 21px; height: 21px; transform: translate(-50%, -50%); border: 1px solid var(--paper); border-radius: 50%; background: var(--forest-dark); color: var(--panel); font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; pointer-events: none; }
.korea-trip-seoul { position: absolute; left: 36%; top: 20%; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; min-width: 44px; min-height: 44px; transform: translate(-50%, -50%); }
.korea-trip-seoul > span { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--paper); border-radius: 50%; background: var(--coral); color: var(--forest-dark); font-size: 12px; font-weight: 900; }
.korea-trip-seoul strong { position: absolute; left: -12px; bottom: calc(100% + 1px); width: max-content; max-width: 145px; padding: 3px 7px; border-radius: 4px; background: var(--paper); color: var(--forest-dark); font-size: 12px; line-height: 1.35; }
.korea-trip-sea { position: absolute; z-index: -1; color: var(--muted); font-size: clamp(.67rem, 1.5vw, .82rem); font-weight: 600; }
.korea-trip-sea--west { left: 2%; top: 51%; max-width: 18%; }
.korea-trip-sea--east { right: 1%; top: 43%; max-width: 15%; }
.korea-trip-sea--south { left: 44%; bottom: 1%; }
.korea-trip-figure figcaption { display: grid; gap: 7px; padding: 15px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.korea-trip-line-key { display: flex; gap: 10px; align-items: center; color: var(--forest-dark); font-weight: 700; }
.korea-trip-line-key::before { content: ''; width: 24px; border-top: 2px solid var(--forest-dark); flex: 0 0 auto; }
.korea-road-trip .korea-trip-hint { margin: 22px 0 12px; color: var(--text); font-size: .9rem; }
.korea-trip-regions { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-block: 8px 22px; border-bottom: 1px solid var(--line); }
.korea-trip-regions a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--forest-dark); font-size: .88rem; }
.korea-trip-regions b { display: grid; place-items: center; width: 25px; height: 25px; background: var(--wash); border-radius: 50%; font-size: .8rem; }
.korea-road-trip h3 { margin: 32px 0 14px; color: var(--forest-dark); font-size: 1.2rem; line-height: 1.45; }
.korea-trip-stays { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .88rem; }
.korea-trip-stays th, .korea-trip-stays td { padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.korea-trip-stays thead th { padding-block: 10px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.korea-trip-stays thead th:nth-child(1) { width: 29%; }
.korea-trip-stays thead th:nth-child(2) { width: 20%; }
.korea-trip-stays thead th:nth-child(3) { width: 51%; }
.korea-trip-stays th > a { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; padding-top: 8px; line-height: 1.5; }
.korea-stop-number { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--forest-dark); color: var(--panel); font-size: .73rem; font-variant-numeric: tabular-nums; }
.korea-trip-stays td > span, .korea-trip-stays td > strong { display: block; line-height: 1.55; padding-top: 8px; font-variant-numeric: tabular-nums; }
.korea-trip-stays td > strong { padding-top: 3px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.korea-stop-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.korea-stop-links a { display: flex; align-items: center; min-height: 44px; padding-block: 7px; color: var(--forest-dark); font-size: .8rem; line-height: 1.4; text-decoration: underline; text-underline-offset: 4px; }
.korea-trip-stays tr:target { background: var(--wash); }
.korea-trip-stays tr { scroll-margin-top: 110px; }
.korea-road-trip .korea-trip-drive-note { margin: 22px 0 0; color: var(--muted); font-size: .87rem; line-height: 1.75; }
.korea-road-trip ::selection { background: var(--forest-dark); color: var(--panel); }
@media (max-width: 600px) {
  .korea-trip-dot { width: 17px; height: 17px; font-size: 9px; }
  .korea-trip-region span { width: 34px; height: 34px; }
  .korea-trip-seoul strong { left: -5px; max-width: 115px; font-size: 10px; }
  .korea-trip-sea--east { right: 1%; top: 44%; }
  .korea-trip-regions { gap: 1px 14px; }
  .korea-trip-regions a { font-size: .82rem; }
  .korea-trip-stays { font-size: .83rem; }
  .korea-trip-stays th, .korea-trip-stays td { padding-right: 6px; }
  .korea-trip-stays thead th:nth-child(1) { width: 30%; }
  .korea-trip-stays thead th:nth-child(2) { width: 22%; }
  .korea-trip-stays thead th:nth-child(3) { width: 48%; }
  .korea-trip-stays th > a { gap: 5px; }
  .korea-stop-number { flex-basis: 20px; height: 20px; font-size: .67rem; }
}
@media (prefers-reduced-motion: reduce) {
  .korea-road-trip *, .korea-road-trip *::before, .korea-road-trip *::after { scroll-behavior: auto; transition: none; animation: none; }
}

/* These named shortcuts are present only on articles with a Korea route. */
.travelclip-site .day-jump.korea-day-jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 28px; }
.travelclip-site .day-jump.korea-day-jump a { display: flex; align-items: center; min-width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid var(--line); color: var(--forest-dark); font-size: .8rem; font-weight: 600; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.travelclip-site .side-day-nav.korea-side-day-nav { grid-template-columns: 1fr; max-height: min(48vh, 440px); overflow-y: auto; scrollbar-color: var(--forest) var(--wash); scrollbar-width: thin; padding-right: 8px; }
.travelclip-site .travel-reading-layout .side-toc .korea-side-day-nav a { display: flex; justify-content: flex-start; min-height: 44px; padding: 8px; font-size: .76rem; line-height: 1.45; }
@media (max-width: 600px) {
  .travelclip-site .day-jump.korea-day-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
