.ta-atlas {
  --ta-deep: #102326;
  --ta-edge: #405658;
  --ta-white: #edf3df;
  --ta-muted: #b4c9c3;
  --ta-signal: #ffb57f;
  --ta-stock: #ebe5d2;
  --ta-ink: #263e3d;
  --ta-mono: "IBM Plex Mono", Consolas, monospace;
  color: var(--ta-white);
  font: 400 1rem/1.45 var(--body, "DM Sans", Arial, sans-serif);
  min-width: 0;
  text-align: left;
}
.ta-atlas *, .ta-atlas *::before, .ta-atlas *::after { box-sizing: border-box; }
.ta-atlas [hidden] { display: none !important; }
.ta-atlas button { cursor: pointer; font: inherit; }
.ta-atlas button:focus-visible { outline: 3px solid #ffd093; outline-offset: 2px; }
.ta-atlas .ta-icon { width: 1.2rem; height: 1.2rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.ta-toolbar, .ta-source, .ta-station header, .ta-page { display: flex; align-items: center; }
.ta-toolbar { gap: .7rem; justify-content: space-between; margin: 0 0 .85rem; flex-wrap: wrap; }
.ta-source { flex-wrap: wrap; gap: .15rem .65rem; }
.ta-source strong, .ta-station header h3, .ta-country, .ta-date, .ta-page-count, .ta-position, .ta-row-date, .ta-total, .ta-print-text {
  font-family: var(--ta-mono); font-weight: 500;
}
.ta-source strong { font-size: .81rem; color: var(--ta-signal); }
.ta-source span { font-size: .89rem; color: #c4cbd4; }
.ta-atlas .ta-ride, .ta-atlas .ta-retry {
  display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid #536664; border-radius: 4px; background: #203235; color: #e4eee4; padding: .4rem .7rem; font-weight: 600; font-size: .88rem;
}
.ta-atlas .ta-ride:hover, .ta-atlas .ta-retry:hover { background: #314c49; border-color: #a6c4b8; }
.ta-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: start; gap: clamp(.8rem, 1.9vw, 1.35rem); }
.ta-station { display: grid; gap: .75rem; min-width: 0; }
.ta-map, .ta-departures { min-width: 0; overflow: hidden; border: 1px solid var(--ta-edge); background: var(--ta-deep); border-radius: 5px; }
.ta-station header { gap: .55rem; min-height: 2.6rem; padding: .4rem .8rem; color: #c4dbce; }
.ta-station header h3 { margin: 0; color: #eef3e4; font-size: .9rem; letter-spacing: .035em; }
.ta-atlas .ta-zoom {
  margin-left: auto; min-height: 2rem; padding: .24rem .48rem; color: #d2e1d6; background: transparent; border: 1px solid #4e6762; border-radius: 3px; font: 500 .79rem/1.1 var(--ta-mono);
}
.ta-atlas .ta-zoom:hover:enabled { color: #102326; background: #bfdbc8; }
.ta-atlas .ta-zoom:disabled { opacity: .52; cursor: default; }
.ta-grid {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2; border-block: 1px solid #354e50;
  background-color: #132c32;
  background-image: linear-gradient(90deg,#52696845 1px,transparent 1px),linear-gradient(#52696845 1px,transparent 1px),radial-gradient(ellipse at 62% 43%,#1c3940,transparent 76%);
  background-size: 8.33333% 100%,100% 16.66667%,100% 100%;
}
.ta-surface, .ta-markers, .ta-earth { position: absolute; inset: 0; width: 100%; height: 100%; }
.ta-surface { transform-origin: 0 0; transition: transform .34s cubic-bezier(.18,.7,.22,1); }
.ta-earth { pointer-events: none; }
.ta-atlas .ta-pin {
  position: absolute; z-index: 1; width: 24px; height: 24px; margin: 0; padding: 0; border: none; border-radius: 50%; background: transparent;
  transform: translate(-50%,-50%) scale(var(--ta-inverse,1)); display: grid; place-items: center;
}
.ta-pin::before, .ta-pin::after { content: ""; display: block; position: absolute; border-radius: 50%; }
.ta-pin::before { width: 8px; height: 8px; border: 1px solid #254149; background: #d2eada; box-shadow: 0 0 0 1px #e5e9d066; }
.ta-pin[aria-pressed="true"] { z-index: 2; }
.ta-pin[aria-pressed="true"]::before { width: 9px; height: 9px; background: #ffc29c; border-color: #422e27; }
.ta-pin[aria-pressed="true"]::after { width: 19px; height: 19px; border: 1px solid #ffc59d; box-shadow: 0 0 0 4px #ffae7a19; animation: ta-lock .35s ease-out; }
.ta-pin:hover::before { background: white; }
.ta-position { min-height: 2rem; display: flex; align-items: center; padding: .35rem .8rem; color: #bdd2c8; font-size: .78rem; }
.ta-position::before { content: ""; display: block; width: 9px; height: 9px; margin-right: .55rem; background: linear-gradient(var(--ta-signal),var(--ta-signal)) center/1px 100% no-repeat,linear-gradient(var(--ta-signal),var(--ta-signal)) center/100% 1px no-repeat; }
.ta-departures header { border-bottom: 1px solid #415653; }
.ta-total { margin-left: auto; flex-shrink: 0; color: #c6d6c9; font-size: .78rem; }
.ta-rows { max-height: 14.5rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #627c72 #162729; }
.ta-atlas .ta-row {
  width: 100%; display: grid; grid-template-columns: .55rem minmax(0,1fr) auto; align-items: center;
  gap: .68rem; padding: .57rem .82rem; min-height: 48px; text-align: left; border: 0; border-bottom: 1px solid #344b49;
  background: #172b2c; color: #edf1dd;
}
.ta-atlas .ta-row:last-child { border-bottom: 0; }
.ta-atlas .ta-row[aria-pressed="true"] { background: #35423b; box-shadow: inset 3px 0 var(--ta-signal); }
.ta-atlas .ta-row:hover { background: #2b3d38; }
.ta-atlas .ta-row:focus-visible { position: relative; z-index: 2; outline-offset: -3px; }
.ta-row-pip { width: 7px; height: 7px; border: 1px solid #8faca1; border-radius: 1px; transform: rotate(45deg); }
.ta-row[aria-pressed="true"] .ta-row-pip { background: var(--ta-signal); border-color: var(--ta-signal); }
.ta-destination { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .05rem .52rem; overflow-wrap: anywhere; }
.ta-destination b { font: 650 1.02rem/1.3 var(--body, "DM Sans", Arial, sans-serif); }
.ta-destination > span, .ta-row-date { color: #c5d1c8; font-size: .81rem; }
.ta-row-date { white-space: nowrap; text-align: right; }
.ta-post { min-width: 0; }
.ta-postcard { touch-action: pan-y pinch-zoom; }
.ta-card { margin: 0; overflow: hidden; border: 1px solid #e2cfad; border-radius: 4px; color: var(--ta-ink); background: var(--ta-stock); box-shadow: 0 .55rem 1.1rem #050f1830; }
.ta-postcard .ta-card { animation: ta-card-arrive .22s ease-out; }
.ta-window { position: relative; aspect-ratio: 1.95; overflow: hidden; background: #203237; border-bottom: 4px solid #cebfa5; }
.ta-poster, .ta-photo { display: block; height: 100%; width: 100%; object-fit: cover; }
.ta-window.ta-expanded { aspect-ratio: auto; }
.ta-expanded .ta-photo { height: auto; max-height: 62dvh; object-fit: contain; }
.ta-atlas .ta-expand { position: absolute; right: .55rem; bottom: .55rem; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; background: #101c21dc; border: 1px solid #ffffff7a; border-radius: 4px; color: white; }
.ta-mapprint { display: grid; place-items: center; background-image: linear-gradient(90deg,#65786c36 1px,transparent 1px),linear-gradient(#65786c36 1px,transparent 1px); background-size: 18px 18px; }
.ta-print-layer { position: relative; width: 88%; aspect-ratio: 2; }
.ta-mini-earth { display: block; width: 100%; height: 100%; }
.ta-ink-pin { position: absolute; width: 13px; height: 13px; transform: translate(-50%,-50%); border: 2px solid #ffcc9e; border-radius: 50%; background: #9d583f; box-shadow: 0 0 0 4px #f7c7a338; }
.ta-print-text { position: absolute; bottom: .6rem; right: .75rem; padding: .15rem .35rem; background: #15282cdd; color: #deebdf; font-size: .75rem; letter-spacing: .035em; }
.ta-paper { position: relative; padding: clamp(.95rem,2.3vw,1.55rem); background: radial-gradient(ellipse at 77% 7%,#f9f1df,transparent 68%),var(--ta-stock); }
.ta-writing { display: grid; grid-template-columns: minmax(0,1fr) 2.85rem; column-gap: .7rem; align-items: end; }
.ta-country { grid-column: 1; margin: 0 0 .2rem; color: #695749; font-size: .84rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .11em; overflow-wrap: anywhere; }
.ta-card .ta-city { margin: 0; grid-column: 1; color: #293d3c; font: 760 clamp(1.8rem,3.6vw,3.05rem)/1.04 var(--display,Bricolage,"Trebuchet MS",sans-serif); letter-spacing: -.055em; overflow-wrap: anywhere; }
.ta-postmark { align-self: center; justify-self: end; grid-column: 2; grid-row: 1/3; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border: 1px solid #a25b48; color: #a25b48; outline: 1px dashed #aa6952; outline-offset: -5px; border-radius: 50%; transform: rotate(10deg); }
.ta-postmark .ta-icon { width: 1.4rem; height: 1.4rem; }
.ta-date { margin-top: .4rem; font-size: .82rem; color: #6a5949; }
.ta-memory { margin: .85rem 0 0; padding-top: .75rem; border-top: 1px dashed #b4ad96; color: #34413b; font-size: 1rem; line-height: 1.52; white-space: pre-line; overflow-wrap: anywhere; }
.ta-page { justify-content: end; gap: .42rem; padding-top: .55rem; }
.ta-page-count { color: #d4dcd4; font-size: .85rem; min-width: 4.2rem; text-align: center; }
.ta-atlas .ta-turn { display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid #52665f; border-radius: 4px; background: #1c2d31; color: var(--ta-white); }
.ta-atlas .ta-turn:hover { background: #344a45; border-color: #b3c8b7; }
.ta-reader { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ta-loading, .ta-failure { padding: 1.15rem; margin: 0; background: var(--ta-deep); border: 1px solid var(--ta-edge); border-radius: 4px; }
.ta-failure p { margin: 0 0 .65rem; }
.ta-failure button + button { margin-left: .55rem; }
.ta-preview { max-width: 38rem; margin: auto; }
@keyframes ta-card-arrive { from { opacity: .65; transform: translateY(3px) } to { opacity: 1; transform: none } }
@keyframes ta-lock { from { transform: scale(1.5); opacity: .5 } to { transform: scale(1); opacity: 1 } }
@media (max-width: 680px) {
  .ta-layout { grid-template-columns: minmax(0,1fr); gap: .75rem; }
  .ta-station { display: contents; }
  .ta-post { grid-row: 1; }
  .ta-departures { grid-row: 2; }
  .ta-map { grid-row: 3; }
  .ta-source { display: block; flex: 1 1 11rem; }
  .ta-source strong, .ta-source span { display: block; }
  .ta-source span { font-size: .83rem; line-height: 1.3; }
  .ta-page { justify-content: center; }
  .ta-turn, .ta-atlas .ta-turn { min-width: 44px; height: 44px; }
}
@media (max-width: 365px) { .ta-rows .ta-destination { display: grid; } .ta-atlas .ta-toolbar { align-items: stretch; } }
@media (prefers-reduced-motion: reduce) {
  .ta-atlas *, .ta-atlas *::before, .ta-atlas *::after { transition-duration: 0s !important; animation: none !important; }
}
