:root{--bg:#070707;--panel:#111;--panel2:#171717;--yellow:#ff8b00;--text:#f7f7f7;--muted:#b9b9b9;--line:rgba(255,196,0,.35)}*{box-sizing:border-box}html{scroll-behavior:smooth;background:var(--bg)}body{margin:0;background:transparent;color:var(--text);font-family:'DM Sans','Noto Sans Bengali',sans-serif}.site-shell{max-width:1920px;margin:auto;overflow:hidden;background:transparent;min-height:100vh;display:flex;flex-direction:column}.topbar{height:82px;padding:0 3.5%;display:flex;align-items:center;gap:28px;background:rgba(5,5,5,.97);border-bottom:1px solid #171717;position:relative;z-index:10}.brand{display:flex;align-items:center;gap:14px;white-space:nowrap;text-decoration:none;color:#fff;font-size:27px;font-weight:800;padding-right:34px;border-right:1px solid #777}.brand b,.hero h1 span,.why-copy h3 span{color:var(--yellow)}.brand-mark{width:45px;height:45px}.brand-mark svg{width:100%;height:100%;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.nav-links{display:flex;align-items:center;justify-content:space-between;gap:clamp(12px,2.3vw,38px);flex:1}.nav-links a{color:#eee;text-decoration:none;font-size:14px;white-space:nowrap;display:flex;align-items:center;gap:9px;min-height:82px;border-bottom:2px solid transparent}.nav-links a svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:color .18s ease,transform .18s ease}.nav-links a:hover svg{transform:translateY(-1px)}.nav-links a.active svg{stroke-width:2}.nav-links a[data-view="download"] svg{width:19px;height:19px}.nav-links a.active{color:var(--yellow);border-color:var(--yellow);font-weight:700}.live-status{font-size:13px;color:#c7d89b;white-space:nowrap}.live-status i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#00d56a;margin-right:8px}.theme-button{border:0;background:#181818;color:var(--yellow);border-radius:50%;width:44px;height:44px;font-size:22px;cursor:pointer}.menu-toggle{display:none}.hero{min-height:675px;position:relative;padding:74px 6.1% 0;isolation:isolate}.station-backdrop{position:absolute;z-index:-2;inset:0 0 70px 0;background-image:url('assets/sealdah-hero.jpg');background-size:cover;background-position:center 47%;filter:grayscale(1) brightness(.72);opacity:.88}.hero-shade{position:absolute;z-index:-1;inset:0 0 0;background:linear-gradient(90deg,#070707 0%,rgba(7,7,7,.96) 22%,rgba(7,7,7,.58) 48%,rgba(7,7,7,.12) 100%),linear-gradient(0deg,#080808 0%,transparent 38%,rgba(0,0,0,.28) 100%)}.hero-copy{position:relative;z-index:2;max-width:660px;padding-bottom:clamp(64px,13vw,190px)}.eyebrow{margin:0 0 10px 0;color:var(--yellow);font-size:22px;font-weight:800;letter-spacing:12px}.hero h1{font-size:clamp(54px,5.3vw,88px);line-height:1.08;letter-spacing:-3px;margin:0 0 6px;font-weight:800}.hero h2{font-size:clamp(21px,2.1vw,34px);margin:0 0 24px;color:#d0d0d0;font-weight:700}.intro{font-size:18px;line-height:1.5;color:#ddd;margin:0}.yellow-rule{width:52px;height:3px;background:var(--yellow);margin:22px 0 28px}.download-actions{display:flex;gap:34px;align-items:center}.download-btn{height:78px;min-width:246px;padding:10px 20px;border:2px solid var(--yellow);border-radius:16px;display:flex;align-items:center;justify-content:center;gap:14px;color:#fff;text-decoration:none;background:rgba(8,8,8,.78);box-shadow:0 0 18px rgba(255,196,0,.08);transition:.2s}.download-btn:hover{background:rgba(255,196,0,.13);transform:translateY(-2px);box-shadow:0 8px 24px rgba(255,196,0,.14)}.download-btn span{display:flex;flex-direction:column;line-height:1.2}.download-btn small{font-size:12px;letter-spacing:.3px}.download-btn strong{font-size:21px;font-weight:600}.play-icon{width:38px;height:43px}.android-icon{width:42px;height:42px;fill:#fff;stroke:#fff;stroke-width:2;stroke-linecap:round}.download-note{color:#9c9c9c;font-size:12px;margin:12px 0 0 5px}.phone-wrap{position:absolute;right:7.2%;top:38px;width:340px;height:625px;z-index:1;transform:rotate(7deg)}.phone{width:100%;height:100%;padding:10px;border:2px solid #bdbdbd;border-radius:54px;background:linear-gradient(120deg,#555,#090909 20%,#333 70%,#aaa);box-shadow:0 20px 60px #000,0 0 0 3px #080808 inset}.phone-screen{height:100%;border-radius:44px;background:linear-gradient(160deg,#111,#050505 55%,#151515);overflow:hidden;padding:22px 17px;position:relative;border:1px solid #555}.phone-status{display:flex;justify-content:space-between;font-size:12px;font-weight:700;padding:0 8px 19px}.phone-brand{font-size:18px;font-weight:800;display:flex;align-items:center;gap:6px;padding:5px 4px 17px}.phone-brand b{color:var(--yellow)}.mini-train{font-size:24px}.gear{margin-left:auto;color:var(--yellow);font-size:22px}.phone-station{height:170px;margin:0 -5px 18px;background:linear-gradient(0deg,rgba(0,0,0,.5),rgba(0,0,0,.12)),url('assets/sealdah-hero.jpg') center/cover;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#111;text-shadow:0 1px rgba(255,255,255,.2)}.phone-station span{font-family:'Noto Sans Bengali',sans-serif;background:var(--yellow);font-size:25px;font-weight:800;padding:3px 15px}.phone-station strong{background:var(--yellow);font-size:23px;padding:0 15px 5px}.phone-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.phone-grid div{height:85px;background:#171717;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;font-size:10px;color:#eee}.phone-grid b,.phone-grid .feature-icon{font-size:24px;color:var(--yellow)}
.phone-grid .feature-icon{width:auto;height:auto;border:0;border-radius:0;background:none;box-shadow:none;place-items:center}
.phone-grid .feature-icon svg{width:22px;height:22px;stroke-width:1.7}.phone-alert{display:flex;align-items:center;gap:10px;margin-top:13px;padding:13px 10px;border:1px solid rgba(255,196,0,.3);border-radius:14px;background:#121212}.phone-alert>b{color:var(--yellow);font-size:20px}.phone-alert span{display:flex;flex-direction:column;font-size:11px}.phone-alert small{color:#aaa;font-size:9px;margin-top:3px}.phone-alert i{margin-left:auto;color:var(--yellow);font-size:24px}.phone-bottom{position:absolute;bottom:9px;left:38%;display:flex;gap:5px}.phone-bottom span{width:27px;height:3px;border-radius:4px;background:#eee}.feature-strip{position:absolute;left:4.4%;right:36.5%;bottom:38px;min-height:130px;display:grid;grid-template-columns:repeat(4,1fr);align-items:center;background:rgba(13,13,13,.91);border:1px solid #303030;border-radius:27px;backdrop-filter:blur(12px);box-shadow:0 12px 40px #0008;z-index:3}.feature{display:flex;align-items:center;justify-content:center;gap:17px;padding:18px 12px;min-width:0;border-right:1px solid #555}.feature:last-child{border:0}.feature-icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 auto;border-radius:14px;color:var(--yellow);background:radial-gradient(circle at 30% 20%,rgba(255,139,0,.2),rgba(255,139,0,.05));border:1px solid rgba(255,139,0,.3);box-shadow:inset 0 0 18px rgba(255,139,0,.07)}.feature-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.feature div{display:flex;flex-direction:column;gap:5px}.feature strong{font-size:16px;white-space:nowrap}.feature div span{font-size:13px;color:#aaa;white-space:nowrap}.why-section{min-height:180px;border-top:1px solid rgba(255,196,0,.35);display:grid;grid-template-columns:270px 1fr 1.3fr;align-items:center;gap:36px;padding:22px 3.5%;background:linear-gradient(180deg,rgba(11,11,11,.86),rgba(7,7,7,.94))}.train-art{height:130px;display:flex;align-items:center;border-right:1px solid #333;padding-right:28px}.train-art svg{width:100%;fill:none;stroke:var(--yellow);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 5px #ffc40044)}.why-copy h3{font-size:22px;color:var(--yellow);margin:0 0 10px}.why-copy ul{list-style:none;padding:0;margin:0;display:grid;gap:5px;color:#ddd}.why-copy li:before{content:'\2713\A0';color:var(--yellow);font-weight:800;margin-right:12px}.kolkata-note{min-height:95px;border:1px solid rgba(255,196,0,.23);border-radius:24px;display:flex;align-items:center;gap:14px;padding:18px 28px;position:relative;overflow:hidden}.kolkata-note>span{font-size:29px;color:var(--yellow)}.kolkata-note em{font-size:17px;z-index:1}.kolkata-note svg{position:absolute;right:0;bottom:0;width:48%;height:65px;fill:none;stroke:var(--yellow);stroke-width:1.5;opacity:.8}footer{display:flex;justify-content:space-between;padding:17px 4%;border-top:1px solid #1c1c1c;color:#777;font-size:12px}.soft-light{filter:brightness(1.15)}
@media(max-width:1200px){.topbar{gap:17px;padding:0 2.5%}.brand{font-size:22px;padding-right:20px}.nav-links{gap:13px}.nav-links a{font-size:12px}.phone-wrap{right:3%;width:300px;height:565px}.feature-strip{right:31%;left:3%;}.feature{gap:9px}.feature strong{font-size:13px}.feature div span{font-size:11px}.why-section{grid-template-columns:210px 1fr 1.1fr;gap:25px}}
@media(max-width:900px){.topbar{height:72px}.brand{border:0;margin-right:auto}.menu-toggle{display:flex;flex-direction:column;gap:5px;background:none;border:0;padding:10px;z-index:12}.menu-toggle span{width:25px;height:2px;background:#fff}.nav-links{display:none;position:absolute;top:72px;left:0;right:0;background:#0b0b0b;padding:15px 25px 22px;flex-direction:column;align-items:stretch;gap:0;border-bottom:1px solid #333}.nav-links.open{display:flex}.nav-links a{min-height:45px;border-bottom:1px solid #222}.live-status{display:none}.theme-button{width:38px;height:38px}.hero{padding:58px 5% 0;min-height:900px}.station-backdrop{background-position:55% center}.hero-shade{background:linear-gradient(90deg,#070707 0%,rgba(7,7,7,.85) 45%,rgba(7,7,7,.3)),linear-gradient(0deg,#080808 0%,transparent 55%)}.hero-copy{max-width:600px}.phone-wrap{width:245px;height:460px;right:8%;top:380px;opacity:.95}.phone-screen{padding:17px 12px}.phone-station{height:120px}.phone-grid div{height:62px;font-size:8px}.phone-grid b{font-size:19px}.phone-alert{padding:8px}.feature-strip{left:4%;right:4%;bottom:28px;min-height:112px}.feature{flex-direction:column;text-align:center;gap:6px;padding:12px 5px}.feature-icon{width:40px;height:40px;border-radius:12px}.feature-icon svg{width:20px;height:20px}.feature strong{font-size:12px}.feature div span{font-size:10px}.why-section{grid-template-columns:150px 1fr;gap:20px}.kolkata-note{grid-column:1/-1;min-height:75px}.train-art{height:110px}.train-art svg{max-height:100px}}
@media(max-width:560px){.brand{font-size:20px;gap:9px}.brand-mark{width:37px;height:37px}.hero{min-height:1040px;padding:48px 6% 0;background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('sealdah-hero.png') no-repeat center center / cover, url('sealdah-hero.jpg') no-repeat center center / cover; background-color: #222;}.eyebrow{font-size:15px;letter-spacing:8px}.hero h1{font-size:49px;letter-spacing:-2px}.hero h2{font-size:19px;line-height:1.25;margin-top:8px}.intro{font-size:15px}.desktop-only{display:none}.download-actions{gap:12px;flex-direction:column;align-items:flex-start}.download-btn{height:65px;width:230px;min-width:0;justify-content:flex-start;border-radius:13px}.download-btn strong{font-size:18px}.phone-wrap{top:515px;right:12%;width:220px;height:415px;transform:rotate(5deg)}.phone{border-radius:38px;padding:7px}.phone-screen{border-radius:32px;padding:13px 10px}.phone-status{padding-bottom:12px}.phone-brand{font-size:14px;padding-bottom:12px}.phone-station{height:100px;margin-bottom:10px}.phone-station span{font-size:19px}.phone-station strong{font-size:18px}.phone-grid{gap:5px}.phone-grid div{height:55px;border-radius:10px;font-size:7px}.phone-grid b{font-size:16px}.phone-alert{margin-top:8px}.feature-strip{bottom:22px;grid-template-columns:repeat(2,1fr);min-height:175px;border-radius:20px}.feature{flex-direction:row;justify-content:flex-start;text-align:left;border-right:1px solid #444;padding:12px 10px}.feature:nth-child(2){border-right:0}.feature:nth-child(-n+2){border-bottom:1px solid #444}.feature-icon{width:34px;height:34px;border-radius:11px}.feature-icon svg{width:18px;height:18px}.feature strong{font-size:11px}.feature div span{font-size:9px}.why-section{grid-template-columns:1fr;padding:25px 7%;gap:18px}.train-art{display:none}.why-copy h3{font-size:20px}.kolkata-note{grid-column:auto;padding:15px}.kolkata-note em{font-size:14px}.kolkata-note svg{width:45%}footer{gap:10px;flex-direction:column;text-align:center}}
/* APK download gate (Cloudflare Turnstile) */
button.download-btn{font-family:inherit;cursor:pointer;text-align:left;-webkit-appearance:none;appearance:none}
button.download-btn:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:0 0 18px rgba(255,196,0,.08)}
button.download-btn:disabled:hover{background:rgba(8,8,8,.78);transform:none}
.turnstile-slot{min-height:65px;margin-top:16px;max-width:340px}
.download-status{margin:10px 0 0;font-size:12.5px;line-height:1.45;color:#9c9c9c;max-width:430px;min-height:18px}
.download-status[data-tone="ready"]{color:#7fe3a1}
.download-status[data-tone="error"]{color:#ffb4a8}
.download-fallback{display:inline-block;margin-top:8px;color:var(--yellow);font-size:12.5px;text-decoration:underline;text-underline-offset:3px}
.download-fallback[hidden]{display:none}
.download-fallback:hover{color:#ffb13b}
@media (min-width:901px){body.gate-on .hero{min-height:790px}}
/* Disabled navigation (unbuilt tabs) */
.nav-links .nav-disabled{display:flex;align-items:center;gap:9px;min-height:82px;font-size:14px;white-space:nowrap;color:#5e5e5e;border-bottom:2px solid transparent;cursor:not-allowed;user-select:none}
.nav-links .nav-disabled span{text-decoration:line-through;text-decoration-color:rgba(255,255,255,.16)}
/* Train search (between-stations timetable) */
.trains-section{position:relative;padding:clamp(46px,6.5vw,84px) 5% clamp(42px,6vw,72px);background:radial-gradient(circle at 50% 0,rgba(255,139,0,.075),transparent 58%);border-top:1px solid #191919;scroll-margin-top:84px}
.trains-head{max-width:760px;margin:0 auto 22px;text-align:center}
.trains-head .eyebrow{margin:0 0 12px;color:var(--yellow);font-size:12px;font-weight:700;letter-spacing:6px}
.trains-head h2{margin:0;font-size:clamp(26px,3.4vw,40px);line-height:1.1;letter-spacing:-.6px}
.trains-head p{margin:12px 0 0;color:var(--muted);font-size:14.5px;line-height:1.6}
.train-form{display:grid;grid-template-columns:minmax(0,1.2fr) auto minmax(0,1.2fr) 150px 118px auto;gap:12px;align-items:end;max-width:1120px;margin:0 auto;padding:18px;border:1px solid #2a2a2a;border-radius:18px;background:linear-gradient(180deg,#121212,#0c0c0c);box-shadow:0 18px 44px rgba(0,0,0,.45)}
.train-form .field{display:flex;flex-direction:column;gap:7px;min-width:0}
.train-form .field label{font-size:11px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:#8f8f8f}
.train-form .field input{width:100%;height:48px;padding:0 13px;border:1px solid #333;border-radius:11px;background:#0a0a0a;color:var(--text);font:inherit;font-size:14px;outline:none;transition:border-color .15s,box-shadow .15s}
.train-form .field input:focus{border-color:var(--yellow);box-shadow:0 0 0 3px rgba(255,139,0,.14)}
.train-form .field input::-webkit-calendar-picker-indicator{filter:invert(.78);cursor:pointer}
.combo{position:relative;min-width:0}
.suggestions{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:30;margin:0;padding:6px;list-style:none;max-height:270px;overflow:auto;border:1px solid #343434;border-radius:12px;background:#111;box-shadow:0 20px 44px rgba(0,0,0,.65)}
.suggestions[hidden]{display:none}
.suggestions li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border-radius:8px;font-size:13.5px;cursor:pointer}
.suggestions li:hover,.suggestions li[aria-selected="true"]{background:#1e1e1e}
.suggestion-code{color:var(--yellow);font-size:11px;font-weight:700;letter-spacing:.6px}
.swap-btn{width:44px;height:48px;border:1px solid #3a3a3a;border-radius:11px;background:#151515;color:var(--yellow);font-size:18px;line-height:1;cursor:pointer;transition:border-color .15s,background .15s}
.swap-btn:hover{border-color:var(--yellow);background:#1c1c1c}
.search-btn{height:48px;padding:0 24px;border:0;border-radius:11px;background:var(--yellow);color:#111;font:inherit;font-size:14px;font-weight:800;letter-spacing:.2px;white-space:nowrap;cursor:pointer;transition:background .15s,transform .15s}
.search-btn:hover{background:#ffa733}
.search-btn:disabled{opacity:.55;cursor:progress;transform:none}
.quick-routes{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;max-width:1120px;margin:14px auto 0}
.quick-routes>span{color:#777;font-size:11px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase}
.quick-routes button{padding:7px 12px;border:1px solid #303030;border-radius:999px;background:#101010;color:#d8d8d8;font:inherit;font-size:12px;cursor:pointer;transition:border-color .15s,color .15s}
.quick-routes button:hover{border-color:var(--yellow);color:var(--yellow)}
.search-status{max-width:1120px;margin:16px auto 0;min-height:18px;color:#9a9a9a;font-size:12.5px;line-height:1.5;text-align:center}
.search-status[data-tone="ready"]{color:#7fe3a1}
.search-status[data-tone="error"]{color:#ffb4a8}
.results{max-width:1120px;margin:26px auto 0}
.results[hidden]{display:none}
.results-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px;margin-bottom:14px}
.results-head h3{margin:0;font-size:19px;letter-spacing:-.2px}
.results-meta{margin:0;color:#8f8f8f;font-size:12.5px}
.results-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.train-card{display:flex;flex-direction:column;gap:9px;padding:16px 17px;border:1px solid #2c2c2c;border-radius:15px;background:#0f0f0f;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,transform .15s,background .15s}
.train-card:hover{border-color:rgba(255,139,0,.55);background:#121212;transform:translateY(-2px)}
.train-card:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}
.train-card-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.train-number{font-size:15px;font-weight:800;letter-spacing:.4px;color:var(--yellow)}
.train-kind{padding:2px 8px;border:1px solid #3a3a3a;border-radius:999px;color:#bbb;font-size:10px;font-weight:700;letter-spacing:.8px;text-transform:uppercase}
.train-flag{padding:2px 8px;border-radius:999px;background:rgba(255,80,60,.15);color:#ffb4a8;font-size:10px;font-weight:700;letter-spacing:.4px}
.train-name{font-size:14.5px;font-weight:600;line-height:1.35}
.train-route{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;margin-top:2px}
.train-time{display:flex;flex-direction:column;gap:3px;min-width:0}
.train-time strong{font-size:17px;font-weight:800;letter-spacing:-.3px}
.train-time small{color:#8d8d8d;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.train-time-end{text-align:right;align-items:flex-end}
.train-duration{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:74px}
.train-duration em{color:#8d8d8d;font-size:10.5px;font-style:normal;white-space:nowrap}
.train-duration i{position:relative;display:block;width:100%;height:1px;background:#3a3a3a}
.train-duration i::before,.train-duration i::after{content:"";position:absolute;top:-2px;width:5px;height:5px;border-radius:50%;background:#5a5a5a}
.train-duration i::before{left:0}
.train-duration i::after{right:0}
.train-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:2px;padding-top:10px;border-top:1px solid #232323;color:#8f8f8f;font-size:11px;letter-spacing:.3px}
.results-empty{grid-column:1/-1;padding:34px 22px;border:1px dashed #333;border-radius:15px;text-align:center;color:var(--muted)}
.results-empty p{margin:0;font-size:14px}
.results-empty-icon{display:block;margin-bottom:8px;font-size:26px}
.results-hint{margin-top:6px!important;color:#8a8a8a;font-size:12px!important}
.results-error{color:#ffb4a8;border-color:rgba(255,80,60,.35)}
.results-retry{margin-top:14px;padding:9px 18px;border:1px solid var(--yellow);border-radius:999px;background:transparent;color:var(--yellow);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.results-retry:hover{background:rgba(255,139,0,.12)}
.results-loading{grid-column:1/-1;display:flex;justify-content:center;gap:8px;padding:34px 0}
.results-loading span{width:9px;height:9px;border-radius:50%;background:var(--yellow);opacity:.35;animation:rk-pulse 1s infinite ease-in-out}
.results-loading span:nth-child(2){animation-delay:.15s}
.results-loading span:nth-child(3){animation-delay:.3s}
@keyframes rk-pulse{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-4px)}}
/* Train detail sheet */
body.detail-open{overflow:hidden}
.detail-overlay{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(3,3,3,.76);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.detail-overlay[hidden]{display:none}
.detail-panel{width:min(640px,100%);max-height:88vh;overflow:auto;padding:22px 22px 26px;border:1px solid #303030;border-radius:20px;background:linear-gradient(180deg,#141414,#0b0b0b);box-shadow:0 30px 80px rgba(0,0,0,.7)}
.detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.detail-back{padding:7px 13px;border:1px solid #333;border-radius:999px;background:#101010;color:#ddd;font:inherit;font-size:12.5px;cursor:pointer}
.detail-back:hover{border-color:var(--yellow);color:var(--yellow)}
.detail-tag{padding:3px 10px;border:1px solid rgba(255,139,0,.4);border-radius:999px;color:var(--yellow);font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase}
.detail-title{margin:0;font-size:19px;line-height:1.3}
.detail-subtitle{margin:5px 0 0;color:#a5a5a5;font-size:12.5px}
.detail-disclaimer{margin:12px 0 18px;padding:10px 12px;border:1px solid rgba(255,196,0,.25);border-radius:10px;background:rgba(255,139,0,.07);color:#e7c98f;font-size:12px;line-height:1.5}
.progress-track{position:relative}
.stop-row{position:relative;display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 0}
.stop-row::before{content:"";position:absolute;left:12px;top:0;bottom:0;width:2px;background:#2b2b2b}
.stop-row:first-child::before{top:50%}
.stop-row:last-child::before{bottom:50%}
.stop-node{position:relative;z-index:1;width:12px;height:12px;margin-left:6px;border:2px solid #565656;border-radius:50%;background:#0d0d0d}
.stop-row.passed .stop-node{border-color:var(--yellow);background:var(--yellow)}
.stop-row.current .stop-node{border-color:var(--yellow);box-shadow:0 0 0 4px rgba(255,139,0,.18)}
.stop-info{display:flex;align-items:baseline;gap:8px;min-width:0}
.stop-name{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stop-code{color:#777;font-size:10px;font-weight:700;letter-spacing:.6px}
.stop-times{color:#b9b9b9;font-size:11.5px;white-space:nowrap;font-variant-numeric:tabular-nums}
.stop-row.passed .stop-name{color:#8a8a8a}
.stop-row.current .stop-name{color:var(--yellow)}
.detail-note{margin:10px 0 0;padding:12px;border-radius:10px;background:#111;color:#9a9a9a;font-size:12px;line-height:1.5;text-align:center}
@media (max-width:1100px){
  .train-form{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
}
@media (max-width:640px){
  .trains-section{padding-left:5%;padding-right:5%;scroll-margin-top:74px}
  .train-form{grid-template-columns:1fr;gap:10px;padding:14px;border-radius:16px}
  .train-form .field input,.swap-btn,.search-btn{height:46px}
  .swap-btn{width:100%;font-size:15px}
  .swap-btn::after{content:" swap stations";font-size:12px;letter-spacing:.4px}
  .search-btn{width:100%}
  .quick-routes{justify-content:flex-start}
  .results-list{grid-template-columns:1fr}
  .detail-overlay{padding:0;align-items:flex-end}
  .detail-panel{width:100%;max-height:92vh;border-radius:20px 20px 0 0;padding:18px 16px calc(22px + env(safe-area-inset-bottom))}
  .stop-row{grid-template-columns:24px minmax(0,1fr) auto;gap:10px}
  .stop-row::before{left:11px}
  .stop-times{font-size:11px}
}
@media (max-width:560px){
  .menu-toggle{display:flex}
  .nav-links{display:none;position:absolute;top:64px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;padding:12px 6% 18px;background:#0b0b0b;border-bottom:1px solid #333;z-index:11}
  .nav-links.open{display:flex}
  .nav-links a,.nav-links .nav-disabled{min-height:46px;padding:0;border:0;border-bottom:1px solid #222;border-radius:0;font-size:14px;justify-content:flex-start}
  .nav-links a.active{border-bottom-color:var(--yellow)}
  .nav-links .nav-disabled span{text-decoration:none}
  .brand{border-right:0;padding-right:0}
}
@media (prefers-reduced-motion:reduce){
  .train-card{transition:none}
  .train-card:hover{transform:none}
  .results-loading span{animation:none;opacity:.7}
}
/* Single-page views (Home / Live Board / Metro / Map) */
main{flex:1 0 auto}
.page-view[hidden]{display:none}
.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}
.view-head{max-width:840px;margin:0 auto;padding:clamp(40px,5.2vw,70px) 5% 0;text-align:center}
.view-head .eyebrow{margin:0 0 10px;color:var(--yellow);font-size:12px;font-weight:700;letter-spacing:6px}
.view-head h1{margin:0;font-size:clamp(26px,3.6vw,42px);line-height:1.1;letter-spacing:-.7px}
.view-sub{margin:12px auto 0;max-width:640px;color:var(--muted);font-size:14px;line-height:1.65}
.view-body{max-width:1120px;margin:0 auto;padding:clamp(24px,3.4vw,38px) 5% clamp(46px,6vw,76px)}
.section-title{margin:34px 0 12px;font-size:17px;letter-spacing:-.2px}
/* Live board */
.board-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.segmented{display:inline-flex;padding:4px;border:1px solid #2c2c2c;border-radius:999px;background:#0d0d0d}
.segmented button{border:0;background:none;color:#a3a3a3;font:inherit;font-size:13px;font-weight:700;padding:9px 20px;border-radius:999px;cursor:pointer;transition:color .15s,background .15s}
.segmented button:hover{color:#fff}
.segmented button.is-on{background:var(--yellow);color:#111}
.board-filter input{height:42px;width:min(290px,100%);padding:0 13px;border:1px solid #333;border-radius:11px;background:#0a0a0a;color:var(--text);font:inherit;font-size:13.5px;outline:none;transition:border-color .15s,box-shadow .15s}
.board-filter input:focus{border-color:var(--yellow);box-shadow:0 0 0 3px rgba(255,139,0,.14)}
.board-meta{margin:0 0 4px;color:#8f8f8f;font-size:12px}
.board-status{margin:0 0 14px;color:#9a9a9a;font-size:12.5px;line-height:1.5;min-height:18px}
.board-status[data-tone="error"]{color:#ffb4a8}
.board-status[data-tone="ready"]{color:#7fe3a1}
.board-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.board-row{display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 16px;border:1px solid #242424;border-radius:13px;background:#0e0e0e;transition:border-color .15s}
.board-row:hover{border-color:#3a3a3a}
.board-time{display:flex;align-items:baseline;gap:4px;color:var(--yellow);white-space:nowrap}
.board-time strong{font-size:20px;font-weight:800;letter-spacing:-.4px;font-variant-numeric:tabular-nums}
.board-time em{font-size:10px;font-style:normal;letter-spacing:.6px;color:#c2c2c2}
.board-name{display:block;font-size:13.5px;font-weight:600;line-height:1.35}
.board-sub{display:block;margin-top:3px;color:#8f8f8f;font-size:11.5px}
.board-stamp{padding:3px 9px;border:1px solid rgba(80,200,120,.3);border-radius:999px;color:#8fe0ab;font-size:10px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;white-space:nowrap}
.board-more{display:block;margin:16px auto 0;padding:10px 20px;border:1px solid #3a3a3a;border-radius:999px;background:#111;color:#ddd;font:inherit;font-size:12.5px;cursor:pointer;transition:border-color .15s,color .15s}
.board-more:hover{border-color:var(--yellow);color:var(--yellow)}
.board-more[hidden]{display:none}
.board-loading,.board-empty{list-style:none;padding:30px 20px;border:1px dashed #2f2f2f;border-radius:13px;text-align:center;color:var(--muted)}
.board-empty p{margin:0;font-size:13.5px}
.board-empty>span{display:block;margin-bottom:8px;font-size:24px}
.board-error{color:#ffb4a8;border-color:rgba(255,80,60,.35)}
.board-loading{display:flex;justify-content:center;gap:8px}
.board-loading span{width:9px;height:9px;border-radius:50%;background:var(--yellow);animation:results-pulse 1s infinite ease-in-out}
.board-loading span:nth-child(2){animation-delay:.15s}
.board-loading span:nth-child(3){animation-delay:.3s}
/* Metro */
.metro-planner{padding:18px;border:1px solid #2a2a2a;border-radius:18px;background:linear-gradient(180deg,#121212,#0c0c0c);box-shadow:0 18px 44px rgba(0,0,0,.45);margin-bottom:8px}
.metro-planner h2{margin:0 0 14px;font-size:15px;letter-spacing:.2px;color:#eee}
.metro-form{display:grid;grid-template-columns:minmax(0,1.2fr) auto minmax(0,1.2fr) 150px 118px auto;gap:12px;align-items:end}
.metro-form .field{display:flex;flex-direction:column;gap:7px;min-width:0}
.metro-form .field label{font-size:11px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:#8f8f8f}
.metro-form select,.metro-form input{width:100%;height:48px;padding:0 11px;border:1px solid #333;border-radius:11px;background:#0a0a0a;color:var(--text);font:inherit;font-size:13.5px;outline:none;transition:border-color .15s,box-shadow .15s}
.metro-form select:focus,.metro-form input:focus{border-color:var(--yellow);box-shadow:0 0 0 3px rgba(255,139,0,.14)}
.metro-form input::-webkit-calendar-picker-indicator{filter:invert(.78);cursor:pointer}
.metro-planner .search-status{margin:14px 0 0;text-align:left}
.metro-result-meta{margin:18px 0 10px;color:#8f8f8f;font-size:12px}
.metro-results-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.metro-train,.metro-journey{padding:15px 16px;border:1px solid #262626;border-radius:15px;background:#0e0e0e}
.metro-train{border-left:3px solid var(--line,#ff8b00)}
.metro-train-head{display:flex;align-items:center;gap:9px}
.metro-train-head strong{font-size:15px;letter-spacing:-.2px}
.metro-dur{margin-left:auto;color:#8f8f8f;font-size:11px;white-space:nowrap}
.metro-dot{width:9px;height:9px;border-radius:50%;background:var(--line,#ff8b00);flex:0 0 auto}
.metro-train-sub{margin:6px 0 0;color:#a5a5a5;font-size:12px}
.metro-journey-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 10px;margin-bottom:10px}
.metro-journey-head strong{font-size:15px}
.metro-journey-head span{color:#8f8f8f;font-size:11.5px}
.metro-leg{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #262626;border-radius:12px;background:#0b0b0b}
.metro-leg-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.metro-leg-body strong{font-size:12.5px}
.metro-leg-body span{color:#9a9a9a;font-size:11.5px}
.metro-leg-time{margin-left:auto;color:#ccc;font-size:11px;white-space:nowrap}
.metro-transfer{margin:6px 0;padding-left:13px;color:var(--yellow);font-size:11px;letter-spacing:.3px}
.metro-lines{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}
.metro-line{padding:16px;border:1px solid #262626;border-top:3px solid var(--line,#ff8b00);border-radius:16px;background:#0e0e0e}
.metro-line-head{display:flex;align-items:center;gap:10px}
.metro-line-head h3{margin:0;font-size:15px}
.metro-line-head p{margin:3px 0 0;color:#8f8f8f;font-size:11.5px}
.metro-swatch{width:12px;height:12px;border-radius:50%;background:var(--line,#ff8b00);flex:0 0 auto}
.metro-chip{margin-left:auto;padding:3px 9px;border:1px solid #333;border-radius:999px;color:#c9c9c9;font-size:10.5px;white-space:nowrap}
.metro-line-meta{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:11px;color:#8f8f8f;font-size:11.5px}
.metro-line-meta b{color:#ddd}
.metro-stops{margin-top:12px;padding-top:10px;border-top:1px solid #232323}
.metro-stops summary{cursor:pointer;color:var(--yellow);font-size:11.5px;font-weight:700;letter-spacing:.3px;list-style:none}
.metro-stops summary::-webkit-details-marker{display:none}
.metro-stops summary::before{content:"+ "}
.metro-stops[open] summary::before{content:"\2212\A0"}
.metro-stops ol{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:0;max-height:270px;overflow:auto}
.metro-stops li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:6px 0;border-bottom:1px dashed #1e1e1e;font-size:12px;color:#d2d2d2}
.metro-stops li:last-child{border-bottom:0}
.metro-stop-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.metro-stop-code{color:#6f6f6f;font-size:10px;letter-spacing:.5px}
.metro-stop-offset{min-width:58px;text-align:right;color:#9a9a9a;font-size:10.5px}
.line-blue{--line:#1e88e5}
.line-green{--line:#00a651}
.line-yellow{--line:#e5b800}
.line-purple{--line:#8e44ad}
.line-orange{--line:#fb8c00}
/* Map */
.map-shell{position:relative;max-width:640px;margin:0 auto;border:1px solid #242424;border-radius:18px;background:radial-gradient(circle at 50% 35%,#101010,#070707 72%);overflow:hidden}
#rail-map{display:block;width:100%;height:auto;max-height:78vh;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
#rail-map.dragging{cursor:grabbing}
.rail-line{fill:none;stroke:#4f4f4f;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.rail-station{fill:#ff8b00;opacity:.9}
.map-toolbar{position:absolute;top:12px;right:12px;z-index:2;display:flex;flex-direction:column;gap:6px}
.map-toolbar button{width:40px;height:40px;border:1px solid #3a3a3a;border-radius:11px;background:rgba(10,10,10,.92);color:#eee;font:inherit;font-size:17px;line-height:1;cursor:pointer;transition:border-color .15s,color .15s}
.map-toolbar button:hover{border-color:var(--yellow);color:var(--yellow)}
.map-tooltip{position:absolute;z-index:3;pointer-events:none;padding:6px 10px;border:1px solid #3f3f3f;border-radius:9px;background:rgba(8,8,8,.96);box-shadow:0 8px 22px rgba(0,0,0,.65);font-size:12px;white-space:nowrap;transform:translate(-50%,-150%)}
.map-tooltip[hidden]{display:none}
.map-tooltip strong{display:block;font-size:12.5px}
.map-tooltip span{color:var(--yellow);font-size:10.5px;letter-spacing:.6px}
.map-meta{margin:10px 0 0;color:#8f8f8f;font-size:12px;text-align:center}
.map-status{margin:4px 0 0;color:#8f8f8f;font-size:12px;line-height:1.5;text-align:center;min-height:18px}
.map-status[data-tone="error"]{color:#ffb4a8}
@media (max-width:900px){
  .view-head{padding-top:38px}
  .metro-form{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  .metro-form .field:nth-of-type(3){grid-column:1/2}
  .metro-form .field:nth-of-type(4){grid-column:2/4}
  .metro-form .search-btn{grid-column:1/-1}
}
@media (max-width:560px){
  .view-head{padding:32px 6% 0}
  .view-sub{font-size:13px}
  .view-body{padding:22px 6% 44px}
  .board-controls{flex-direction:column;align-items:stretch}
  .segmented{display:flex;width:100%}
  .segmented button{flex:1;padding:9px 10px}
  .board-filter input{width:100%}
  .board-row{grid-template-columns:72px minmax(0,1fr);gap:10px;padding:11px 13px}
  .board-time strong{font-size:17px}
  .board-stamp{display:none}
  .board-name{font-size:12.5px}
  .metro-form{grid-template-columns:minmax(0,1fr)}
  .metro-form .field{grid-column:auto!important}
  #metro-swap{display:none}
  .metro-results-list,.metro-lines{grid-template-columns:1fr}
  #rail-map{height:auto;max-height:min(64vh,520px)}
  .map-toolbar{top:8px;right:8px}
  .map-toolbar button{width:36px;height:36px;font-size:15px}
}

/* Page backdrop: the same Sealdah photograph sits behind every view, dimmed so
   the panels stay readable. --page-photo is set per page folder (.png / .jpg). */
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background-image:var(--page-photo,url('sealdah-hero.jpg'));background-position:center 42%;background-size:cover;filter:grayscale(1) brightness(.52);opacity:.5}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(7,7,7,.48) 0%,rgba(7,7,7,.72) 32%,rgba(7,7,7,.88) 58%,rgba(7,7,7,.96) 80%,#080808 100%)}
@media (max-width:560px){body::before{background-position:center 32%;opacity:.45}}

/* Home header (the big wordmark that used to live only on Download) */
.home-hero{max-width:none;margin:0;padding:clamp(56px,7.6vw,100px) 5% clamp(10px,1.6vw,20px);text-align:left}
.home-hero .eyebrow{margin:0 0 14px;font-size:12px;font-weight:700;letter-spacing:6px}
.home-hero h1{margin:0 0 10px;font-size:clamp(44px,6.4vw,84px);line-height:1.06;letter-spacing:-2.4px;font-weight:800}
.home-hero h1 span{color:var(--yellow)}
.home-hero h2{margin:0 0 16px;font-size:clamp(18px,2.2vw,30px);color:#d2d2d2;font-weight:700;letter-spacing:-.3px}
.home-intro{max-width:640px;margin:14px 0 0;color:#c9c9c9;font-size:clamp(13.5px,1.3vw,16px);line-height:1.6;text-wrap:balance}
.home-hero+.trains-section{padding-top:clamp(10px,1.8vw,22px);border-top:0}
@media (max-width:560px){
  .home-hero{padding-top:40px}
  .home-hero .eyebrow{font-size:10.5px;letter-spacing:4px;margin-bottom:10px}
  .home-hero h1{letter-spacing:-1.6px}
  .home-hero h2{margin-bottom:12px}
}
