/* IRCTC on Bindu. Only what is IRCTC's own lives here: the rail map, the
   departures board, results and the coach picker. Everything else is
   bindu.css. Colours come from Bindu tokens; layout is logical
   (inline/block) so Urdu reads right to left with no extra rules. */

.arrow { display: inline-block; }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 32rem) minmax(0, 1fr);
  grid-template-areas: "copy map" "search map"; grid-template-rows: auto 1fr;
  gap: 1.75rem 3.5rem; padding-block: 2.5rem 0; align-items: start;
}
.hero-copy { grid-area: copy; padding-top: 1.5rem; display: grid; gap: 1.125rem; }
.hero-copy .b-lede { max-width: 28rem; }
.map-fig { grid-area: map; position: relative; min-width: 0; }
.map-fig canvas { width: 100%; height: auto; aspect-ratio: 101 / 115; touch-action: pan-y; border-radius: var(--b-r-block); }
.map-fig.is-zoomed canvas { touch-action: none; cursor: grab; }
.map-fig.is-dragging canvas { cursor: grabbing; }
.map-cap { position: absolute; right: 0; top: 2%; display: grid; gap: 0.25rem; max-width: 40%; text-align: right; justify-items: end; font-size: var(--b-t-micro); color: rgba(255, 255, 255, 0.7); pointer-events: none; z-index: 2; }
.map-cap b { font-size: 1rem; font-weight: 600; color: #fff; }
.map-cap .km { font-size: 2.5rem; font-weight: 600; font-stretch: 112%; color: #fff; line-height: 1.1; letter-spacing: -0.02em; }
:root[data-contrast="high"] .map-cap, :root[data-contrast="high"] .map-cap b, :root[data-contrast="high"] .map-cap .km { color: #000; }
.map-frame { position: relative; border-radius: var(--b-r-block); overflow: hidden; }
.map-fig canvas:focus-visible { outline: 3px solid var(--b-haldi); outline-offset: -3px; box-shadow: none; }
.map-tip {
  position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; white-space: nowrap;
  background: var(--b-ink); color: var(--b-paper); font-size: var(--b-t-micro); padding: 0.375rem 0.625rem; border-radius: 8px;
}
.map-tip small { opacity: 0.65; margin-left: 0.375rem; }
@media (max-width: 1039px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "search" "map"; gap: 1.5rem; }
  .hero-copy { padding-top: 0.5rem; }
  .map-fig { max-width: 35rem; width: 100%; justify-self: center; }
  .map-cap { position: static; max-width: none; margin-top: 0.5rem; text-align: start; justify-items: start; }
}

/* -------------------------------------------------------------- search */
.search { grid-area: search; }
.panel { padding: 1.125rem; }
.fields { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.fields .field-from, .fields .field-to { grid-column: 1 / -1; }
.field-date { cursor: pointer; }
.field-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.field-date .value { font-size: 1.125rem; font-weight: 600; white-space: nowrap; line-height: 1.4; }
.swap {
  position: absolute; inset-inline-end: 1rem; top: 4.15rem; z-index: 2; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--b-paper); box-shadow: 0 0 0 1px var(--b-rule-strong); color: var(--b-ink);
  display: grid; place-items: center; transform: rotate(90deg); transition: transform 320ms var(--b-ease-deal);
}
.swap:hover { background: var(--b-sunk); }
.swap.is-turned { transform: rotate(270deg); }
.swap svg { width: 1.125rem; height: 1.125rem; }
.quick { display: flex; gap: 0.375rem; margin-top: 0.625rem; flex-wrap: wrap; }
.row2 { display: grid; gap: 0.875rem; margin-top: 0.875rem; }
.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 1.125rem; }
.quota { display: flex; align-items: center; gap: 0.5rem; font-size: var(--b-t-small); color: var(--b-ink-3); }
.quota > .b-icon { color: var(--b-neel); }
.quota-sel { position: relative; display: inline-block; }
.quota-sel select {
  appearance: none; -webkit-appearance: none; border: 0; background: var(--b-sunk); color: var(--b-ink); cursor: pointer;
  padding-block: 0.5rem; padding-inline: 0.75rem 2rem; border-radius: 8px; font-size: var(--b-t-small); font-weight: 600;
}
.quota-sel::after { inset-inline-end: 0.75rem; }
#book-error, #pnr-error { margin-top: 0.75rem; }
.inline-form { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.inline-form .b-field { flex: 1 1 15rem; }
.panel-note { margin-top: 0.75rem; }
@media (max-width: 559px) { .panel { padding: 0.875rem; } }

/* station suggestions */
.suggest {
  position: absolute; inset-inline: 0; top: calc(100% + 0.375rem); z-index: 20;
  margin: 0; padding: 0.375rem; list-style: none; max-height: 20rem; overflow: auto;
  background: var(--b-paper); border-radius: 12px; box-shadow: 0 0 0 1px var(--b-rule), 0 12px 32px rgba(20, 22, 43, 0.1);
}
.suggest li { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 8px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--b-sunk); }
.suggest .s-name { font-size: 0.9375rem; font-weight: 600; }
.suggest .s-state { font-size: var(--b-t-micro); color: var(--b-ink-3); }
.suggest .s-code { font-size: var(--b-t-micro); color: var(--b-ink-3); letter-spacing: 0.04em; }
.suggest .s-empty { color: var(--b-ink-3); cursor: default; }

/* pnr and chart results */
.out-card { margin-top: 1.125rem; padding: 1.125rem; border-radius: 12px; box-shadow: 0 0 0 1px var(--b-rule); }
.out-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.25rem; }
.out-head h3 { font-size: 1.0625rem; }
.out-head p { color: var(--b-ink-3); font-size: var(--b-t-small); }
.rows { margin-top: 0.875rem; display: grid; gap: 0.5rem; }
.row { display: grid; grid-template-columns: 7rem 1fr auto; gap: 0.75rem; align-items: center; font-size: var(--b-t-small); padding-top: 0.5rem; border-top: 1px solid var(--b-rule); }
.row > span:first-child { color: var(--b-ink-3); }

/* ------------------------------------------------- below the hero */
.below-hero { display: grid; gap: 1rem; padding-block: 0.5rem 0; }
.board { position: relative; border-radius: var(--b-r-block); background: #13110d; padding: 1.375rem 1.5rem; box-shadow: 0 0 0 1px #000, inset 0 0 0 6px #1d1a14; }
.board canvas { width: 100%; height: auto; }
.board-caption { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 0.625rem; font-size: var(--b-t-micro); color: var(--b-ink-3); }
@media (max-width: 559px) { .board { padding: 0.875rem; border-radius: 14px; } }

/* ------------------------------------------------------------- results */
.results { padding-block: 1.5rem; }
.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; }
.results-head h2 { font-size: var(--b-t-h2); line-height: var(--b-lh-head); letter-spacing: var(--b-track-head); font-stretch: 108%; }
.results-head p { color: var(--b-ink-3); margin-top: 0.375rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.train-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-top: 1.375rem; }
.train { padding: 1.25rem 1.375rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.125rem; animation: deal 520ms var(--b-ease-deal) both; }
@keyframes deal { from { opacity: 0; transform: translateY(10px); } }
.train-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 1rem 2rem; align-items: center; }
.train-name { font-size: 1.1875rem; font-weight: 600; }
.train-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-top: 0.25rem; font-size: var(--b-t-micro); color: var(--b-ink-3); }
.days { display: inline-flex; gap: 0.25rem; }
.days b { font-weight: 600; color: var(--b-ink); }
.days i { font-style: normal; opacity: 0.4; }
.times { display: grid; grid-template-columns: auto 1fr auto; gap: 0.875rem; align-items: center; direction: ltr; }
.time { font-size: 1.5rem; font-weight: 600; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.1; }
.time small { display: block; font-size: var(--b-t-micro); font-weight: 400; letter-spacing: 0; color: var(--b-ink-3); margin-top: 0.25rem; }
.time sup { font-size: 0.75rem; color: var(--b-ink-3); font-weight: 400; }
.times .end { text-align: right; }
.dur { position: relative; text-align: center; font-size: var(--b-t-micro); color: var(--b-ink-3); }
.dur::before { content: ""; position: absolute; inset-inline: 0; top: 50%; border-top: 2px dotted var(--b-rule-strong); }
.dur span { position: relative; background: var(--b-paper); padding-inline: 0.5rem; }
.classes { display: flex; gap: 0.5rem; overflow-x: auto; padding: 8px; margin: -8px; scrollbar-width: thin; }
.cls {
  flex: 0 0 auto; min-width: 8rem; text-align: start; border: 0; cursor: pointer;
  padding: 0.625rem 0.75rem; border-radius: 10px; background: var(--b-sunk);
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 140ms, background-color 140ms;
}
.cls:hover { box-shadow: inset 0 0 0 1px var(--b-rule-strong); }
.cls[aria-pressed="true"] { background: var(--b-paper); box-shadow: inset 0 0 0 2px var(--b-neel); }
.cls-top { display: flex; justify-content: space-between; gap: 0.625rem; font-size: var(--b-t-small); }
.cls-top b { font-weight: 700; }
.cls .b-status { margin-top: 0.375rem; }
.train-more { justify-self: start; display: inline-flex; align-items: center; gap: 0.5rem; border: 0; background: none; padding: 0; cursor: pointer; font-size: var(--b-t-small); font-weight: 600; color: var(--b-neel); }
.train-more::after { content: ""; width: 0.4rem; height: 0.4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 200ms var(--b-ease); }
.train-more[aria-expanded="true"]::after { transform: rotate(225deg); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.375rem; }
.stops { display: flex; overflow-x: auto; padding-bottom: 0.375rem; scrollbar-width: thin; }
.stop { flex: 0 0 auto; min-width: 6rem; display: grid; gap: 0.125rem; position: relative; padding-top: 1.25rem; font-size: var(--b-t-micro); }
.stop::before { content: ""; position: absolute; top: 0.3rem; inset-inline: 0; border-top: 2px solid var(--b-neel); }
.stop::after { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--b-paper); box-shadow: inset 0 0 0 2px var(--b-neel); }
.stop:first-child::after, .stop:last-child::after { background: var(--b-neel); }
.stop:last-child::before { inset-inline-end: auto; width: 0.75rem; }
.stop b { font-weight: 600; font-variant-numeric: tabular-nums; }
.stop span { color: var(--b-ink-3); white-space: nowrap; }
.coach-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.625rem 1.25rem; }
.coach-tabs { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.legend { display: flex; gap: 0.875rem; font-size: 0.75rem; color: var(--b-ink-3); }
.legend i { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 3px; vertical-align: -0.1em; margin-inline-end: 0.3rem; }
.legend .l-free { background: var(--b-paper); box-shadow: inset 0 0 0 1px var(--b-rule-strong); }
.legend .l-taken { background: var(--b-sunk); }
.legend .l-mine { background: var(--b-neel); }
.coach-scroll { overflow-x: auto; padding: 2px; scrollbar-width: thin; direction: ltr; }
.coach { display: inline-flex; align-items: stretch; gap: 0.375rem; padding: 0.875rem 1rem; border-radius: 22px 10px 10px 22px; background: var(--b-neel-tint); }
.coach::before, .coach::after { content: ""; flex: 0 0 1.375rem; border-radius: 6px; background-image: radial-gradient(circle, var(--b-neel-dot) 1px, transparent 1.5px); background-size: 6px 6px; }
.bay { display: grid; grid-auto-rows: 1.875rem; gap: 0.25rem; padding-inline: 0.25rem; }
.bay + .bay { border-inline-start: 1px dotted var(--b-neel-dot); padding-inline-start: 0.5rem; }
.bay .pair { display: grid; grid-auto-flow: column; gap: 0.25rem; }
.bay .aisle { height: 0.875rem; }
.berth {
  width: 2.125rem; height: 1.875rem; border: 0; padding: 0; border-radius: 6px; cursor: pointer; font-size: 0.6875rem; font-variant-numeric: tabular-nums;
  background: var(--b-paper); box-shadow: inset 0 0 0 1px var(--b-rule-strong); color: var(--b-ink);
  transition: background-color 120ms, transform 160ms var(--b-ease-deal);
}
.berth:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 0 0 2px var(--b-neel); }
.berth:disabled { background: transparent; box-shadow: none; color: var(--b-neel-dot); cursor: not-allowed; }
.berth[aria-pressed="true"] { background: var(--b-neel); color: #fff; box-shadow: none; }
.coach-note { font-size: var(--b-t-small); color: var(--b-ink-2); }
.train-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.625rem 1.25rem; padding-top: 0.875rem; border-top: 1px solid var(--b-rule); }
.train-foot p { font-size: var(--b-t-small); color: var(--b-ink-2); }
.results-note { margin-top: 0.75rem; font-size: var(--b-t-micro); color: var(--b-ink-3); }
@media (max-width: 759px) {
  .train { padding: 1rem; }
  .train-top { grid-template-columns: 1fr; }
  .train-foot .b-btn { width: 100%; }
}

/* ------------------------------------------------------- services */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 959px) { .cards { grid-template-columns: 1fr; } }
.card { padding: 0.625rem; display: flex; flex-direction: column; border-radius: var(--b-r-block); }
.well { position: relative; border-radius: 12px; height: 16.25rem; overflow: hidden; display: grid; place-items: center; }
.card-body { padding: 1.125rem 0.75rem 0.75rem; display: grid; gap: 0.375rem; }
.card-body h3 { font-size: var(--b-t-h3); line-height: var(--b-lh-head); }
.card-body p { color: var(--b-ink-2); }
.card-body a { margin-top: 0.375rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.375rem; }
.card-body a:hover { text-decoration: underline; }

.mini {
  width: min(78%, 17.5rem); background: var(--b-paper); border-radius: 12px; padding: 0.875rem;
  box-shadow: 0 0 0 1px var(--b-rule); display: grid; gap: 0.625rem; font-size: var(--b-t-micro);
}
.mini-head { display: flex; justify-content: space-between; color: var(--b-ink-3); font-size: 0.75rem; }
.mini-item { display: flex; justify-content: space-between; gap: 0.625rem; }
.mini-item > span:first-child { display: flex; align-items: center; gap: 0.5rem; }
.veg { width: 0.7rem; height: 0.7rem; border: 1.5px solid var(--b-patti); border-radius: 2px; display: grid; place-items: center; flex-shrink: 0; }
.veg::after { content: ""; width: 0.3rem; height: 0.3rem; border-radius: 50%; background: var(--b-patti); }
.mini-step { display: flex; align-items: center; gap: 0.5rem; padding-top: 0.625rem; border-top: 1px solid var(--b-rule); color: var(--b-ink-2); }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--b-kesar); flex: 0 0 auto; }
.play .mini > * { animation: rise 600ms var(--b-ease-deal) both; }
.play .mini > *:nth-child(2) { animation-delay: 160ms; }
.play .mini > *:nth-child(3) { animation-delay: 300ms; }
.play .mini > *:nth-child(4) { animation-delay: 900ms; }
.play .mini > *:nth-child(5) { animation-delay: 1500ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.ladder { display: grid; gap: 0.625rem; width: min(78%, 17.5rem); }
.rung { display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; background: var(--b-paper); border-radius: 10px; padding: 0.7rem 0.875rem; font-size: var(--b-t-micro); box-shadow: 0 0 0 1px var(--b-rule); }
.rung > span:first-child { color: var(--b-ink-2); }
.play .rung { animation: rise 600ms var(--b-ease-deal) both; }
.play .rung:nth-child(2) { animation-delay: 700ms; }
.play .rung:nth-child(3) { animation-delay: 1400ms; }
.route { width: 86%; height: auto; overflow: visible; }
.route path { fill: none; stroke: var(--b-neel); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 0; }
.route circle { fill: var(--b-paper); stroke: var(--b-neel); stroke-width: 2; }
.route circle.end { fill: var(--b-kesar); stroke: var(--b-kesar); }
.route text { font-family: "Anek Latin", sans-serif; font-size: 11px; fill: var(--b-ink-2); }
.play .route path { animation: draw 2.4s var(--b-ease) both; }
.play .route g { animation: rise 500ms var(--b-ease-deal) both; }
@keyframes draw { from { stroke-dashoffset: 520; } }

.more { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border-radius: var(--b-r-block); }
.more a { padding: 1.25rem 1.375rem; text-decoration: none; color: var(--b-ink); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.125rem 0.875rem; align-content: start; align-items: center; box-shadow: inset -1px -1px 0 var(--b-rule); }
.more a .b-icon-tile { grid-row: span 2; }
.more a:hover .b-icon-tile { background: var(--b-neel); color: #fff; }
.more a:hover { background: var(--b-sunk); color: var(--b-ink); }
.more b { font-weight: 600; }
.more span { font-size: var(--b-t-small); color: var(--b-ink-3); }
@media (max-width: 759px) { .more { grid-template-columns: 1fr 1fr; } }

.windows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 859px) { .windows { grid-template-columns: 1fr; } }
.window { padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; justify-items: start; }
.window .b-icon-tile { margin-bottom: 0.5rem; }
.window .big { font-size: 2.75rem; font-weight: 600; font-stretch: 112%; letter-spacing: var(--b-track-display); line-height: 1.15; color: var(--b-neel); }
.window h3 { font-size: 1.0625rem; margin-top: 0.5rem; }
.window p { color: var(--b-ink-2); font-size: var(--b-t-small); }

.tours { margin-top: 2.5rem; border-top: 1px solid var(--b-rule); }
.tour { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 0.5rem 1.5rem; align-items: center; padding-block: 1.5rem; border-bottom: 1px solid var(--b-rule); text-decoration: none; color: var(--b-ink); }
.tour:hover { color: var(--b-ink); }
.tour h3 { font-size: 1.375rem; font-weight: 600; line-height: var(--b-lh-head); }
.tour p { color: var(--b-ink-2); max-width: 60ch; }
.tour .go { font-weight: 600; white-space: nowrap; color: var(--b-neel); display: inline-flex; align-items: center; gap: 0.375rem; }
.tour:hover .b-icon-tile { background: var(--b-neel); color: #fff; }
.tour:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
@media (max-width: 759px) { .tour { grid-template-columns: auto minmax(0, 1fr); } .tour p, .tour .go { grid-column: 2; } }

.phones { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.phones div { display: grid; grid-template-columns: auto auto; gap: 0 0.875rem; align-items: center; justify-content: start; }
.phones .b-icon-tile { grid-row: span 2; background: var(--b-paper); }
.phones b { font-size: 2.5rem; font-weight: 600; font-stretch: 112%; line-height: 1.1; color: var(--b-neel); }
.phones span { font-size: var(--b-t-small); color: var(--b-ink-2); }

.concept { padding-bottom: 1.5rem; font-size: var(--b-t-micro); color: var(--b-ink-3); }
.map-cap { transition: background-color 200ms, padding 200ms; border-radius: 14px; }
.map-fig.is-zoomed .map-cap { top: 0.75rem; right: 0.75rem; padding: 0.75rem 1rem; background: color-mix(in srgb, var(--b-rang-deep) 72%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.map-fig.is-zoomed .map-cap .km { font-size: 1.75rem; }
.map-fig.is-zoomed .map-cap [data-i18n="map.hint"] { display: none; }
@media (max-width: 1039px) { .map-fig.is-zoomed .map-cap { position: static; background: none; padding: 0; backdrop-filter: none; } }
:root[data-contrast="high"] .map-fig.is-zoomed .map-cap { background: #fff; box-shadow: 0 0 0 1px #000; }

.train-more .b-icon { width: 1.125rem; height: 1.125rem; }
.field-date:focus-visible { box-shadow: inset 0 0 0 2px var(--b-neel), 0 0 0 4px var(--b-haldi); outline: none; }
.row2 { grid-template-columns: minmax(0, 1fr); }
.opts > * { min-width: 0; }
.quota { max-width: 100%; }
.quota-sel { min-width: 0; }
.quota-sel select { max-width: 100%; text-overflow: ellipsis; }

/* ======================================================= the ticket */
/* The booking card reads like a railway ticket: one journey block joined
   by a dotted route line, a compact when-row, and a search button on a
   perforated stub with punched notches. All of it fits the first screen. */
.search { overflow: visible; }
.search.is-ticket:not(.is-listing) {
  --notch: calc(100% - 5.25rem);
  -webkit-mask: radial-gradient(circle 0.75rem at 0 var(--notch), transparent 96%, #000 100%), radial-gradient(circle 0.75rem at 100% var(--notch), transparent 96%, #000 100%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 0.75rem at 0 var(--notch), transparent 96%, #000 100%), radial-gradient(circle 0.75rem at 100% var(--notch), transparent 96%, #000 100%);
  mask-composite: intersect;
}
.search .b-tabs { padding-top: 0.375rem; }
.search .b-tab { padding-block: 0.625rem 0.75rem; }
#panel-book { padding: 1rem 1.125rem 1.125rem; }

.journey { position: relative; border-radius: 14px; background: var(--b-paper); box-shadow: 0 0 0 1px var(--b-rule-strong); }
.journey::before {
  content: ""; position: absolute; inset-inline-start: 1.6875rem; top: 2.6rem; bottom: 2.6rem; z-index: 0;
  border-inline-start: 2px dotted var(--b-neel-dot);
}
.j-row { position: relative; display: grid; grid-template-columns: 3.375rem minmax(0, 1fr) auto; align-items: center; min-height: 4.125rem; padding-inline-end: 4rem; transition: background-color 140ms; }
.j-row:first-child { border-radius: 14px 14px 0 0; }
.j-row:nth-child(2) { border-radius: 0 0 14px 14px; box-shadow: inset 0 1px 0 var(--b-rule); }
.j-row:focus-within { background: var(--b-neel-tint); }
.j-row.is-error { background: var(--b-sindoor-tint); }
.j-icon { justify-self: center; width: 1.375rem; height: 1.375rem; color: var(--b-neel); position: relative; z-index: 1; background: var(--b-paper); border-radius: 50%; box-shadow: 0 0 0 4px var(--b-paper); }
.j-row:focus-within .j-icon { background: var(--b-neel-tint); box-shadow: 0 0 0 4px var(--b-neel-tint); }
.j-text { display: grid; min-width: 0; }
.j-text label, .j-label { font-size: var(--b-t-micro); color: var(--b-ink-3); line-height: 1.3; }
.j-text input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; font-size: 1.25rem; font-weight: 600; line-height: var(--b-lh-field); letter-spacing: -0.01em; text-overflow: ellipsis; }
.j-text input:focus-visible { box-shadow: none; }
.j-err { font-size: var(--b-t-micro); color: var(--b-sindoor); line-height: 1.35; }
.j-code { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.2rem 0.45rem; border-radius: 6px; background: var(--b-sunk); color: var(--b-ink-2); font-variant-numeric: tabular-nums; }
.j-code:empty { display: none; }
.journey .swap {
  position: absolute; inset-inline-end: 0.875rem; top: 50%; transform: translateY(-50%) rotate(90deg); z-index: 3;
  width: 2.375rem; height: 2.375rem; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--b-paper); color: var(--b-neel); box-shadow: 0 0 0 1px var(--b-rule-strong), 0 2px 6px rgba(20, 22, 43, 0.08);
  transition: transform 360ms var(--b-ease-deal), background-color 140ms;
}
.journey .swap:hover { background: var(--b-neel); color: #fff; }
.journey .swap.is-turned { transform: translateY(-50%) rotate(270deg); }
.journey .swap .b-icon { width: 1.125rem; height: 1.125rem; }

.when { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-top: 0.5rem; border-radius: 14px; background: var(--b-paper); box-shadow: 0 0 0 1px var(--b-rule-strong); }
.j-cell { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: center; min-height: 3.625rem; padding-inline-end: 0.75rem; transition: background-color 140ms; }
.j-cell:first-child { border-radius: 14px 0 0 14px; }
.j-cell + .j-cell { box-shadow: inset 1px 0 0 var(--b-rule); border-radius: 0 14px 14px 0; }
[dir="rtl"] .j-cell:first-child { border-radius: 0 14px 14px 0; }
[dir="rtl"] .j-cell + .j-cell { box-shadow: inset -1px 0 0 var(--b-rule); border-radius: 14px 0 0 14px; }
.j-cell:hover, .j-cell:focus-within, .field-date:focus-visible { background: var(--b-neel-tint); }
.j-cell .j-icon { width: 1.25rem; height: 1.25rem; box-shadow: none; background: none; }
.j-value { font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: var(--b-lh-field); }
.j-muted { color: var(--b-ink-3); font-weight: 400; font-size: var(--b-t-small); }
.field-date { cursor: pointer; }
.field-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.field-class .j-text { position: relative; }
.field-class select { width: 100%; border: 0; outline: 0; padding: 0; padding-inline-end: 1.25rem; background: transparent; font-size: 1rem; font-weight: 600; line-height: var(--b-lh-field); appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.field-class .b-select::after { inset-inline-end: 0; top: auto; bottom: 0.65em; transform: rotate(45deg); }

.search .quick { margin-top: 0.625rem; gap: 0.3rem; }
.search .quick .b-chip { padding: 0.3rem 0.65rem; }
.extras { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; margin-top: 0.625rem; }
.extras .quota { gap: 0.4rem; }
.more-btn { display: inline-flex; align-items: center; gap: 0.3rem; border: 0; background: none; cursor: pointer; padding: 0.375rem 0.25rem; font-size: var(--b-t-small); font-weight: 600; color: var(--b-neel); }
.more-btn .b-icon { width: 1rem; height: 1rem; transition: transform 200ms var(--b-ease); }
.more-btn[aria-expanded="true"] .b-icon { transform: rotate(180deg); }
.more-opts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.125rem; margin-top: 0.5rem; padding: 0.75rem 0.875rem; border-radius: 12px; background: var(--b-khadi); }
#book-error { margin-top: 0.625rem; }
.stub { position: relative; margin: 1rem -1.125rem -1.125rem; padding: 1rem 1.125rem 1.125rem; border-top: 2px dashed var(--b-rule-strong); }
.search:not(.is-ticket) .stub { border-top-style: solid; border-top-color: var(--b-rule); }
.stub .b-btn { min-height: 3.125rem; font-size: 1.125rem; }

/* tighter hero copy so the whole ticket sits on the first screen */
.hero { padding-block: 1.5rem 0; gap: 1.25rem 3.5rem; }
.hero-copy { padding-top: 0.5rem; gap: 0.75rem; }
.hero-copy .b-display { font-size: clamp(2.5rem, 4.6vw, 4.25rem); }
.hero-copy .b-lede { font-size: 1.0625rem; }
@media (max-height: 820px) and (min-width: 1040px) { .hero-copy .b-display { font-size: clamp(2.25rem, 3.8vw, 3.5rem); } .hero-copy .b-lede { display: none; } }
@media (max-width: 559px) {
  .j-row { padding-inline-end: 3.5rem; min-height: 3.875rem; }
  .j-text input { font-size: 1.125rem; }
  .journey .swap { inset-inline-end: 0.625rem; }
}
:root:not([data-script="latn"]) .hero-copy .b-display { font-size: clamp(2.125rem, 3.6vw, 3.25rem); }
:root:not([data-script="latn"]) .hero-copy .b-lede { font-size: 1rem; line-height: 1.6; }
:root:not([data-script="latn"]) .search .b-tab .b-icon { display: none; }
@media (min-width: 1040px) { .hero { grid-template-columns: minmax(0, 33rem) minmax(0, 1fr); } }
/* quota is a quiet pill, not another field */
.extras .quota > .b-icon { color: var(--b-ink-3); }
.extras .quota-sel select { background: transparent; box-shadow: inset 0 0 0 1px var(--b-rule-strong); border-radius: 999px; padding-block: 0.375rem; padding-inline: 0.75rem 1.875rem; font-size: var(--b-t-small); }
.extras .quota-sel select:hover { background: var(--b-khadi); }

/* round 5: calmer map controls, results before the board, no truncation on phones */
.b-mapctl { gap: 0; padding: 0.25rem; border-radius: 14px; background: rgba(13, 18, 64, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0.8; transition: opacity 160ms; }
.map-fig:hover .b-mapctl, .b-mapctl:focus-within { opacity: 1; }
.b-mapctl button { width: 2.25rem; height: 2.25rem; background: transparent; box-shadow: none; border-radius: 10px; }
.b-mapctl .gap { height: 1px; margin: 0.2rem 0.375rem; background: rgba(255, 255, 255, 0.18); }
.results { padding-block: 2rem 0.5rem; }
.board-wrap { max-width: 56rem; }
@media (max-width: 479px) {
  .when { grid-template-columns: 1fr; }
  .j-cell:first-child { border-radius: 14px 14px 0 0; }
  .j-cell + .j-cell { box-shadow: inset 0 1px 0 var(--b-rule); border-radius: 0 0 14px 14px; }
  [dir="rtl"] .j-cell:first-child { border-radius: 14px 14px 0 0; }
  [dir="rtl"] .j-cell + .j-cell { box-shadow: inset 0 1px 0 var(--b-rule); border-radius: 0 0 14px 14px; }
  .j-value { white-space: normal; }
}
.trip-film { margin-top: 2rem; width: 100%; height: clamp(15rem, 34vw, 30rem); }

/* ================================================================ day 3 */
/* SARKARI Day 3. Sections are information; each one has a reason to look at
   it: a PNR you can follow on a phone, a refund you can work out before you
   cancel, and real lines you can search. ir- is IRCTC's own prefix. */
.ir-big { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; font-stretch: 108%; font-weight: 600; max-width: 18ch; }
:root:not([data-script="latn"]) .ir-big { line-height: 1.25; max-width: 20em; letter-spacing: 0; }
.ir-lede { margin-top: 0.875rem; font-size: var(--b-t-lede); color: var(--b-ink-2); max-width: 36rem; }
.ir-head { margin-bottom: 2.25rem; }
#main > .b-block { padding-top: 6rem; }
.below-hero { padding-top: 1.5rem; }

/* ---------------------------------------------------- know when you confirm */
.ir-confirm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 31rem); gap: 2.5rem 4.5rem; align-items: center; }
.ir-moves { list-style: none; margin: 2.25rem 0 0; padding: 0; max-width: 34rem; border-top: 1px solid var(--b-rule); }
.ir-moves li { border-bottom: 1px solid var(--b-rule); }
.ir-moves button { width: 100%; display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem 0.75rem 1rem 0; border: 0; background: none; text-align: start; font: inherit; color: var(--b-ink); cursor: pointer; border-radius: 0; position: relative; }
.ir-moves button::before { content: ""; position: absolute; inset-block: -1px; inset-inline-start: -1rem; width: 3px; border-radius: 2px; background: var(--b-neel); opacity: 0; transition: opacity 160ms; }
.ir-moves button[aria-pressed="true"]::before { opacity: 1; }
.ir-moves button:hover b { color: var(--b-neel); }
.ir-moves button:focus-visible { outline: 3px solid var(--b-haldi); outline-offset: 2px; }
.ir-moves-n { justify-self: start; margin-top: 0.125rem; padding: 0.25rem 0.5rem; border-radius: 8px; background: var(--b-sunk); font-size: var(--b-t-small); font-weight: 700; color: var(--b-ink-2); white-space: nowrap; transition: background 160ms, color 160ms; }
.ir-moves button[aria-pressed="true"] .ir-moves-n { background: var(--b-neel); color: #fff; }
.ir-moves li:last-child button[aria-pressed="true"] .ir-moves-n { background: var(--b-patti); }
.ir-moves b { display: block; font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.ir-moves small { display: block; margin-top: 0.25rem; font-size: var(--b-t-small); color: var(--b-ink-2); line-height: 1.45; }
.ir-moves button[aria-pressed="false"] small { color: var(--b-ink-3); }
.ir-inset { margin-top: 1.75rem; max-width: 34rem; }

.ir-device-wrap { margin: 0; display: grid; justify-items: center; gap: 1rem; padding: 2.75rem 1.5rem 1.5rem; border-radius: var(--b-r-block); position: relative; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 30%, color-mix(in srgb, var(--b-neel) 15%, #fff) 0%, color-mix(in srgb, var(--b-neel) 6%, #fff) 70%); }
.ir-device-wrap::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, color-mix(in srgb, var(--b-neel) 20%, transparent) 1px, transparent 1.6px); background-size: 14px 14px; pointer-events: none; }
.ir-device-wrap > * { position: relative; }
.ir-device-wrap figcaption { font-size: var(--b-t-small); color: var(--b-ink-2); }
.ir-device { width: min(100%, 18.75rem); aspect-ratio: 300 / 630; padding: 9px; border-radius: 46px; background: linear-gradient(150deg, #33373e, #0b0d10 45%); box-shadow: inset 0 0 0 1.5px #464b53, 0 50px 80px -40px rgba(13, 18, 64, 0.55), 0 16px 32px -20px rgba(0, 0, 0, 0.35); }
.ir-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #f4f5f8; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; color: #14162b; text-align: start; }
.ir-screen::before { content: ""; position: absolute; z-index: 9; top: 9px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 12px; background: #000; }
.ir-screen::after { content: ""; position: absolute; z-index: 9; bottom: 7px; left: 50%; width: 108px; height: 4px; margin-left: -54px; border-radius: 2px; background: rgba(20, 22, 43, 0.85); }
.ph-top { position: relative; color: #fff; padding-bottom: 16px; background: radial-gradient(120% 140% at 80% 0%, var(--b-rang) 0%, var(--b-rang-deep) 78%); }
.ph-top::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0.8px, transparent 1.3px); background-size: 9px 9px; pointer-events: none; }
.ph-top > * { position: relative; z-index: 1; }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 20px 0 28px; font-size: 13px; font-weight: 600; }
.ph-sb { width: 58px; height: 11px; }
.ph-bar { display: flex; align-items: center; gap: 6px; padding: 0 16px; min-height: 30px; }
.ph-bar b { font-size: 17px; font-weight: 600; }
.ph-bar .b-icon { width: 20px; height: 20px; stroke-width: 2.2; }
[dir="rtl"] .ph-bar .b-icon { transform: scaleX(-1); }
.ph-trip { margin: 10px 16px 0; display: grid; gap: 2px; }
.ph-trip small { font-size: 11.5px; color: rgba(255, 255, 255, 0.72); }
.ph-trip b { font-size: 14px; font-weight: 600; }
.ph-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 10px 16px 0; font-variant-numeric: tabular-nums; }
.ph-route b { display: block; font-size: 18px; font-weight: 600; line-height: 1.1; }
.ph-route small { font-size: 11px; color: rgba(255, 255, 255, 0.72); }
.ph-route i { height: 0; border-top: 1.5px dotted rgba(255, 255, 255, 0.5); }
.ph-route > span:last-child { text-align: right; }
.ph-body { position: relative; flex: 1; padding: 12px 14px 0; overflow: hidden; display: grid; align-content: start; gap: 10px; }
.ph-now { padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #e6e8eb; display: grid; gap: 4px; }
.ph-now small { font-size: 11.5px; font-weight: 600; color: #6b6f80; }
.ph-big { font-size: 30px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; line-height: 1.05; font-variant-numeric: tabular-nums; color: #9a5a00; }
.ir-screen[data-state="2"] .ph-big { color: var(--b-neel); }
.ir-screen[data-state="3"] .ph-big { color: var(--b-patti); }
.ph-now span { font-size: 12.5px; color: #55586e; }
.ph-berth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.ph-berth > span { padding: 7px 8px; border-radius: 10px; background: #eef7f1; display: grid; gap: 1px; }
.ph-berth small { font-size: 10.5px; color: #557062; font-weight: 500; }
.ph-berth b { font-size: 15px; font-weight: 700; color: #14361f; }
.ph-log { list-style: none; margin: 0; padding: 4px 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #e6e8eb; }
.ph-log li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 8px 0; position: relative; }
.ph-log li + li { box-shadow: inset 0 1px 0 #eceef1; }
.ph-log li i { width: 8px; height: 8px; border-radius: 50%; background: #c9ccd4; justify-self: center; }
.ph-log li.is-now i { background: var(--b-neel); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-neel) 22%, transparent); }
.ph-log li.is-now:last-child i { }
.ph-log b { display: block; font-size: 12.5px; font-weight: 600; }
.ph-log small { display: block; font-size: 11px; color: #8a8d9b; }
.ph-log em { font-style: normal; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: #55586e; }
.ph-log li.is-new { animation: ir-in 420ms var(--b-ease-deal, ease) both; }
.ph-foot { padding: 12px 16px 24px; background: #fff; box-shadow: 0 -1px 0 #eceef1; display: grid; gap: 8px; }
.ph-alert { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 500; }
.ph-switch { position: relative; width: 40px; height: 24px; border: 0; border-radius: 12px; background: var(--b-neel); flex: none; }
.ph-switch::after { content: ""; position: absolute; top: 2px; inset-inline-start: 18px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.ph-btn { display: grid; place-items: center; min-height: 42px; padding: 4px 8px; border: 0; border-radius: 12px; background: var(--b-neel); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ph-btn:focus-visible { outline: 2px solid var(--b-haldi); outline-offset: 2px; }
.ph-btn--ghost { background: #fff; color: #14162b; box-shadow: inset 0 0 0 1.5px #d6d9de; }
/* the message that arrives each time the PNR moves */
.ph-note { position: absolute; z-index: 8; top: 44px; inset-inline: 8px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: start; padding: 10px 12px; border-radius: 18px; background: rgba(250, 250, 252, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35); color: #14162b; transform: translateY(-140%); opacity: 0; transition: transform 420ms var(--b-ease-deal, ease), opacity 300ms; pointer-events: none; }
.ph-note.is-on { transform: none; opacity: 1; }
.ph-note-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--b-neel); color: #fff; }
.ph-note-ic .b-icon { width: 17px; height: 17px; --b-icon-dot: var(--b-rang-glow); }
.ph-note small { display: flex; justify-content: space-between; font-size: 10.5px; color: #6b6f80; font-weight: 600; }
.ph-note p { font-size: 12px; line-height: 1.35; margin-top: 1px; }
@keyframes ir-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------- the times that matter */
.ir-times { max-width: 58rem; }
.ir-times dd { display: grid; gap: 0.25rem; }
.ir-times dd strong { font-size: 1.25rem; font-weight: 600; font-stretch: 106%; }
.ir-times dd span { color: var(--b-ink-2); }

/* ---------------------------------------------------- cancel a ticket: the neel band */
.ir-band { position: relative; margin-top: 6rem; color: #fff; background: radial-gradient(80% 110% at 50% 0%, var(--b-rang) 0%, var(--b-rang-deep) 72%); overflow: hidden; }
.ir-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.6px); background-size: 16px 16px; pointer-events: none; }
.ir-band > .b-block { position: relative; padding-block: 5rem !important; }
.ir-band-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; }
.ir-band-head h2 { color: #fff; }
.ir-band-head p { font-size: var(--b-t-lede); color: rgba(255, 255, 255, 0.8); max-width: 30rem; }
.ir-refund { margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 1.5rem; align-items: start; }
.ir-calc { display: grid; gap: 1.375rem; padding: 1.75rem 2rem 2rem; border-radius: var(--b-r-block); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.ir-calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ir-calc legend, .ir-fare > span:first-child { display: block; margin-bottom: 0.625rem; padding: 0; font-size: var(--b-t-small); font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.ir-seg { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.ir-seg button { min-height: 2.5rem; padding: 0 0.875rem; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); color: #fff; font: inherit; font-size: var(--b-t-small); font-weight: 600; cursor: pointer; transition: background 140ms, color 140ms; }
.ir-seg--cls button { min-width: 3.25rem; font-variant-numeric: tabular-nums; }
.ir-seg button:hover { background: rgba(255, 255, 255, 0.16); }
.ir-seg button[aria-pressed="true"] { background: #fff; color: var(--b-rang-deep); box-shadow: none; }
.ir-seg button:focus-visible, .ir-when input:focus-visible + span, .ir-fare input:focus-visible { outline: 3px solid var(--b-haldi); outline-offset: 2px; }
.ir-fare { display: block; }
.ir-fare-in { display: flex; align-items: center; gap: 0.5rem; max-width: 16rem; min-height: 3rem; padding: 0 1rem; border-radius: 12px; background: #fff; color: var(--b-ink); font-size: 1.25rem; font-weight: 600; }
.ir-fare-in input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: inherit; outline: none; padding: 0; }
.ir-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.375rem; }
.ir-when label { position: relative; cursor: pointer; }
.ir-when input { position: absolute; opacity: 0; }
.ir-when span { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0.5rem 0.875rem; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); font-weight: 500; transition: background 140ms; }
.ir-when span::before { content: ""; flex: none; width: 1.125rem; height: 1.125rem; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.ir-when input:checked + span { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1.5px #fff; }
.ir-when input:checked + span::before { box-shadow: inset 0 0 0 5px #fff; }
.ir-when.is-off { opacity: 0.45; }
.ir-out { display: grid; gap: 0.375rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ir-out small { font-size: var(--b-t-small); font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.ir-out-n { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; font-stretch: 112%; line-height: 1; letter-spacing: -0.02em; color: var(--b-rang-glow); font-variant-numeric: tabular-nums; }
.ir-out-n.is-zero { color: rgba(255, 255, 255, 0.55); }
.ir-out p { color: rgba(255, 255, 255, 0.85); max-width: 32rem; }
.ir-out p b { color: #fff; font-weight: 600; }
.ir-rules { padding: 1.75rem 2rem 2rem; border-radius: var(--b-r-block); background: #fff; color: var(--b-ink); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.5); }
.ir-rules h3 { font-size: 1.0625rem; font-weight: 600; }
.ir-rules h3 + * { margin-top: 0.625rem; }
.ir-rules * + h3 { margin-top: 1.75rem; }
.ir-table { width: 100%; border-collapse: collapse; font-size: var(--b-t-small); }
.ir-table th { text-align: start; font-weight: 600; color: var(--b-ink-3); font-size: var(--b-t-micro); padding: 0 0.75rem 0.5rem; }
.ir-table td { padding: 0.75rem; border-top: 1px solid var(--b-rule); vertical-align: top; transition: background 160ms; }
.ir-table td:first-child { width: 42%; font-weight: 500; }
.ir-table tr.is-on td { background: color-mix(in srgb, var(--b-neel) 8%, #fff); }
.ir-table tr.is-on td:first-child { box-shadow: inset 3px 0 0 var(--b-neel); }
[dir="rtl"] .ir-table tr.is-on td:first-child { box-shadow: inset -3px 0 0 var(--b-neel); }
.ir-flat { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--b-rule); overflow: hidden; }
.ir-flat > div { padding: 0.625rem 0.75rem; display: grid; gap: 0.125rem; transition: background 160ms; }
.ir-flat > div + div { box-shadow: inset 1px 0 0 var(--b-rule); }
[dir="rtl"] .ir-flat > div + div { box-shadow: inset -1px 0 0 var(--b-rule); }
.ir-flat dt { font-size: var(--b-t-micro); color: var(--b-ink-3); font-weight: 600; }
.ir-flat dd { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.ir-flat > div.is-on { background: var(--b-neel); }
.ir-flat > div.is-on dt, .ir-flat > div.is-on dd { color: #fff; }
.ir-rules-note { margin-top: 1.25rem; font-size: var(--b-t-small); color: var(--b-ink-2); }

/* ---------------------------------------------------- trips */
.ir-trips .b-carousel-track { grid-auto-columns: min(38%, 29rem); align-items: start; }
.ir-trips .b-slide-media { aspect-ratio: 4 / 3; }
.ir-trips .b-slide-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ir-trips figcaption { display: grid; gap: 0.3rem; padding-top: 0.875rem; }
.ir-trips figcaption b { font-size: 1.1875rem; font-weight: 600; line-height: 1.25; color: var(--b-ink); }
.ir-trips figcaption > span:not(.ir-trip-at) { color: var(--b-ink-2); max-width: 38ch; }
.ir-trip-at { font-size: var(--b-t-micro); color: var(--b-ink-3); }
.ir-trips figcaption a { justify-self: start; margin-top: 0.25rem; font-weight: 500; }
.ir-tours { margin-top: 2.5rem; }
@media (max-width: 899px) { .ir-trips .b-carousel-track { grid-auto-columns: 70%; } }
@media (max-width: 559px) { .ir-trips .b-carousel-track { grid-auto-columns: 86%; } }

/* ---------------------------------------------------- questions */
.ir-faqs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem 4rem; align-items: start; }
.ir-faq-side { position: sticky; top: 7rem; }
.ir-arrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-weight: 600; text-decoration: none; }
.ir-arrow .b-icon { width: 1.125rem; height: 1.125rem; transition: transform 160ms; }
.ir-arrow:hover .b-icon { transform: translateX(3px); }
[dir="rtl"] .ir-arrow .b-icon, [dir="rtl"] .ir-help-go { transform: scaleX(-1); }
.ir-faq-list { border-top: 1px solid var(--b-rule); }
.ir-q { border-bottom: 1px solid var(--b-rule); }
.ir-q summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.375rem; cursor: pointer; list-style: none; font-size: 1.1875rem; font-weight: 600; line-height: 1.35; color: var(--b-ink); }
.ir-q summary::-webkit-details-marker { display: none; }
.ir-q summary:hover { color: var(--b-neel); }
.ir-q summary i { flex: none; position: relative; width: 2rem; height: 2rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--b-rule-strong); transition: background 160ms, box-shadow 160ms; }
.ir-q summary i::before, .ir-q summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.75px; margin: -0.875px 0 0 -6px; border-radius: 1px; background: currentColor; transition: transform 200ms var(--b-ease-deal, ease); }
.ir-q summary i::after { transform: rotate(90deg); }
.ir-q[open] summary i { background: var(--b-ink); color: #fff; box-shadow: none; }
.ir-q[open] summary i::after { transform: rotate(0deg); }
.ir-q p { padding: 0 3.5rem 1.5rem 0; color: var(--b-ink-2); font-size: 1.0625rem; max-width: 42rem; }
[dir="rtl"] .ir-q p { padding: 0 0 1.5rem 3.5rem; }

/* ---------------------------------------------------- help */
.ir-help-grid { margin-top: 2.25rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; }
.ir-help-call { position: relative; display: grid; align-content: space-between; gap: 0.5rem; min-height: 19rem; padding: 2rem 2.25rem; border-radius: var(--b-r-block); color: #fff; text-decoration: none; overflow: hidden; background: radial-gradient(110% 130% at 85% 0%, var(--b-rang) 0%, var(--b-rang-deep) 70%); }
.ir-help-call::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.6px); background-size: 14px 14px; pointer-events: none; }
.ir-help-call > * { position: relative; }
.ir-help-k { font-size: var(--b-t-small); font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.ir-help-n { font-size: clamp(4rem, 8vw, 6.5rem); font-weight: 600; font-stretch: 112%; line-height: 1; letter-spacing: -0.02em; color: var(--b-rang-glow); }
.ir-help-d { font-size: 1.125rem; color: rgba(255, 255, 255, 0.85); }
.ir-help-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1rem; }
.ir-help-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 12px; background: #fff; color: var(--b-rang-deep); font-weight: 600; }
.ir-help-btn .b-icon { width: 1.125rem; height: 1.125rem; }
.ir-help-call:hover .ir-help-btn { background: var(--b-rang-tie); }
.ir-help-alt { font-size: var(--b-t-small); color: rgba(255, 255, 255, 0.75); }
.ir-help-side { display: grid; gap: 1rem; }
.ir-help-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1.25rem 1.5rem; border-radius: var(--b-r-block); background: var(--b-paper); box-shadow: 0 0 0 1px var(--b-rule); color: var(--b-ink); text-decoration: none; transition: box-shadow 160ms; }
.ir-help-card:hover { box-shadow: 0 0 0 1.5px var(--b-neel), 0 14px 30px -22px rgba(13, 18, 64, 0.4); }
.ir-help-card > span:nth-child(2) { display: grid; gap: 0.2rem; }
.ir-help-card b { font-size: 1.125rem; font-weight: 600; }
.ir-help-card .b-num { color: var(--b-neel); font-weight: 600; overflow-wrap: anywhere; }
.ir-help-card small { font-size: var(--b-t-small); color: var(--b-ink-2); }
.ir-help-ic { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--b-neel-tint); color: var(--b-neel); }
.ir-help-ic .b-icon { width: 1.375rem; height: 1.375rem; }
.ir-help-go { width: 1.25rem; height: 1.25rem; color: var(--b-ink-3); margin-top: 0.25rem; }
.ir-last { padding-bottom: 6rem; }
.b-footer { padding-top: 3.5rem; }

@media (max-width: 1099px) {
  .ir-confirm { grid-template-columns: minmax(0, 1fr); }
  .ir-device-wrap { justify-self: start; width: min(100%, 31rem); }
  .ir-refund { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 959px) {
  .ir-faqs { grid-template-columns: minmax(0, 1fr); }
  .ir-faq-side { position: static; }
  .ir-help-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699px) {
  #main > .b-block { padding-top: 4rem; }
  .ir-band { margin-top: 4rem; }
  .ir-band > .b-block { padding-block: 3.5rem !important; }
  .ir-calc { padding: 1.25rem; }
  .ir-when { grid-template-columns: minmax(0, 1fr); }
  .ir-rules { padding: 1.25rem; }
  .ir-flat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ir-flat > div:nth-child(4) { box-shadow: inset 0 1px 0 var(--b-rule); }
  .ir-flat > div:nth-child(5) { box-shadow: inset 1px 1px 0 var(--b-rule); }
  .ir-table td:first-child { width: 40%; }
  .ir-q summary { font-size: 1.0625rem; }
  .ir-q p { padding-inline-end: 0; }
  .ir-help-call { min-height: 0; padding: 1.5rem; }
  .ir-device-wrap { padding: 2rem 1rem 1.25rem; }
  .ir-moves button { grid-template-columns: 4.5rem minmax(0, 1fr); }
}
:root[data-contrast="high"] .ir-band, :root[data-contrast="high"] .ir-help-call { background: #fff; color: #000; box-shadow: 0 0 0 2px #000; }
:root[data-contrast="high"] .ir-band *:not(.ir-rules *):not(.ir-seg button[aria-pressed="true"]):not(.ir-fare-in *) { color: #000 !important; }
:root[data-contrast="high"] .ir-help-call * { color: #000 !important; }
:root[data-contrast="high"] .ir-device-wrap { background: #fff; box-shadow: 0 0 0 2px #000; }

/* ---------------------------------------------------- booking: who, pay, ticket */
.bk { display: grid; gap: 1.5rem; padding-top: 0.5rem; }
.bk-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: var(--b-t-small); font-weight: 600; color: var(--b-ink-3); }
.bk-steps li { display: inline-flex; align-items: center; gap: 0.5rem; }
.bk-steps i { display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; font-style: normal; font-size: 0.8125rem; box-shadow: inset 0 0 0 1.5px var(--b-rule-strong); }
.bk-steps i .b-icon { width: 0.875rem; height: 0.875rem; stroke-width: 2.6; }
.bk-steps .is-done { color: var(--b-ink-2); }
.bk-steps .is-done i { background: var(--b-patti); color: #fff; box-shadow: none; }
.bk-steps .is-now { color: var(--b-ink); }
.bk-steps .is-now i { background: var(--b-neel); color: #fff; box-shadow: none; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.bk-form { padding: 1.75rem; display: grid; gap: 1.25rem; animation: ir-in 420ms var(--b-ease-deal) both; }
.bk-form h2 { font-size: var(--b-t-h3); font-weight: 600; }
.bk-sub { margin-top: -0.75rem; color: var(--b-ink-2); }
.bk-name { grid-column: span 2; }
.bk-seat { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; border-radius: 12px; background: var(--b-sunk); }
.bk-seat small { display: block; font-size: var(--b-t-micro); color: var(--b-ink-3); font-weight: 600; }
.bk-seat b { font-weight: 600; }
.bk-acts { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.bk-acts .b-btn { min-height: 3rem; }
.b-btn.is-paying { opacity: 0.85; cursor: progress; }
.b-btn.is-paying .b-icon { animation: ir-pulse 900ms ease-in-out infinite alternate; }
@keyframes ir-pulse { to { opacity: 0.3; } }
.bk-sum { padding: 1.5rem; display: grid; gap: 1.25rem; animation: ir-in 420ms 80ms var(--b-ease-deal) both; }
.bk-train { display: grid; gap: 0.25rem; }
.bk-train b { font-size: 1.1875rem; font-weight: 600; }
.bk-train span { font-size: var(--b-t-small); color: var(--b-ink-3); }
.bk-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.875rem; align-items: center; }
.bk-route > span:last-child { text-align: right; }
.bk-route b { display: block; font-size: 1.5rem; font-weight: 600; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.1; }
.bk-route sup { font-size: 0.75rem; color: var(--b-ink-3); font-weight: 400; }
.bk-route small { display: block; margin-top: 0.125rem; font-size: var(--b-t-micro); color: var(--b-ink-3); }
.bk-route i { position: relative; text-align: center; font-style: normal; font-size: var(--b-t-micro); color: var(--b-ink-3); }
.bk-route i::before { content: ""; position: absolute; inset-inline: 0; top: 50%; border-top: 2px dotted var(--b-rule-strong); }
.bk-route i span { position: relative; background: var(--b-paper); padding-inline: 0.5rem; }
.bk-fare { margin: 0; display: grid; border-top: 1px solid var(--b-rule); }
.bk-fare > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.625rem; border-bottom: 1px solid var(--b-rule); font-size: var(--b-t-small); }
.bk-fare dt { color: var(--b-ink-2); }
.bk-fare dd { margin: 0; font-weight: 500; }
.bk-fare .is-total { border-bottom: 0; font-size: 1.0625rem; }
.bk-fare .is-total dt { color: var(--b-ink); font-weight: 600; }
.bk-fare .is-total dd { font-weight: 700; }

.bk-done { display: flex; align-items: center; gap: 1rem; animation: ir-in 420ms var(--b-ease-deal) both; }
.bk-done-ic { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #e2f2e9; color: var(--b-patti); }
.bk-done-ic .b-icon { width: 1.5rem; height: 1.5rem; stroke-width: 2.4; }
.bk-done h2 { font-size: var(--b-t-h2); font-weight: 600; font-stretch: 106%; line-height: 1.15; }
.bk-done p { color: var(--b-ink-2); margin-top: 0.25rem; }
/* the e-ticket: neel head with the PNR, a perforation, then the facts */
.tkt { border-radius: var(--b-r-block); background: var(--b-paper); box-shadow: 0 0 0 1px var(--b-rule), 0 30px 60px -40px rgba(13, 18, 64, 0.45); overflow: hidden; animation: ir-in 520ms 120ms var(--b-ease-deal) both; }
.tkt-top { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.25rem 1.75rem; color: #fff; background: radial-gradient(120% 160% at 85% 0%, var(--b-rang) 0%, var(--b-rang-deep) 75%); }
.tkt-top::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0.9px, transparent 1.4px); background-size: 10px 10px; pointer-events: none; }
.tkt-top > * { position: relative; }
.tkt-top::after { content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 12px; background: radial-gradient(circle at 6px 6px, var(--b-paper) 4px, transparent 4.5px) 0 0 / 16px 12px repeat-x; }
.tkt-org { display: flex; align-items: center; gap: 0.75rem; }
.tkt-org img { width: 2rem; height: auto; padding: 0.25rem; border-radius: 8px; background: #fff; }
.tkt-org b { display: block; font-weight: 600; }
.tkt-org small { display: block; font-size: var(--b-t-micro); color: rgba(255, 255, 255, 0.7); }
.tkt-pnr { display: grid; justify-items: end; }
.tkt-pnr small { font-size: var(--b-t-micro); font-weight: 700; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.7); }
.tkt-pnr b { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; font-stretch: 112%; letter-spacing: 0.02em; line-height: 1; color: var(--b-rang-glow); }
.tkt-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; padding: 1.75rem; }
.tkt-main { display: grid; gap: 1.25rem; align-content: start; }
.tkt-pax { width: 100%; border-collapse: collapse; font-size: var(--b-t-small); }
.tkt-pax th { text-align: start; font-size: var(--b-t-micro); color: var(--b-ink-3); font-weight: 600; padding: 0 0.75rem 0.5rem 0; }
.tkt-pax td { padding: 0.75rem 0.75rem 0.75rem 0; border-top: 1px solid var(--b-rule); font-weight: 500; vertical-align: top; }
.tkt-pax td small { display: block; margin-top: 0.25rem; color: var(--b-ink-3); font-size: var(--b-t-micro); }
.tkt-side { display: grid; gap: 1.25rem; align-content: start; }
.tkt-code { display: flex; align-items: center; gap: 1rem; }
.tkt-code svg { width: 5.5rem; height: 5.5rem; fill: var(--b-ink); flex: none; }
.tkt-code small { font-size: var(--b-t-micro); color: var(--b-ink-3); max-width: 16ch; }
.bk-acts--after { margin-top: 0.25rem; }
@media (max-width: 859px) {
  .bk-grid, .tkt-body { grid-template-columns: minmax(0, 1fr); }
  .bk-name { grid-column: 1 / -1; }
  .bk-form .b-inputs { --cols: 2 !important; }
}
@media (max-width: 559px) {
  .bk-form, .bk-sum { padding: 1.125rem; }
  .tkt-top, .tkt-body { padding: 1.125rem; }
  .tkt-pnr { justify-items: start; }
  .bk-acts .b-btn { width: 100%; }
}
.ph-next { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--b-neel) 7%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-neel) 14%, #fff); }
.ph-next .b-icon { width: 20px; height: 20px; color: var(--b-neel); flex: none; }
.ph-next small { display: block; font-size: 11px; color: #6b6f80; font-weight: 600; }
.ph-next b { display: block; font-size: 12.5px; font-weight: 600; }
