/* Kevin, Nov 18 2026: Google-style directions in the site's black/gold look (approved stills).
   Only new colours: MTA line colours (from MTA data) and the green "live" dot. */
.nyfe-dir{--nd-gold:#ffd700;--nd-line:#303030;--nd-muted:#b8c0cc}
.nyfe-dir .sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.nyfe-dir .eyebrow{margin-bottom:12px}
.nyfe-dir-modes{display:flex;gap:6px;margin:0 0 14px}
.nyfe-dir-mode{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:58px;padding:8px 4px 7px;border:1px solid #444;border-radius:10px;background:transparent;color:#ddd;font:inherit;font-size:13px;cursor:pointer}
.nyfe-dir-mode svg{width:20px;height:20px}
.nyfe-dir-mode.on{border-color:var(--nd-gold);background:#2a2400;color:var(--nd-gold);font-weight:700}
.nyfe-dir-mode:focus-visible{outline:2px solid var(--nd-gold);outline-offset:2px}
.nyfe-dir-ends{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:center;margin-bottom:10px}
.nyfe-dir-rail{grid-row:1/3;display:flex;flex-direction:column;align-items:center;align-self:stretch;padding:15px 0}
.nyfe-dir-rail i{width:11px;height:11px;border-radius:50%;border:2px solid #fff;flex:none}
.nyfe-dir-rail b{flex:1;width:0;border-left:2px dotted #777;margin:3px 0}
.nyfe-dir-rail em{width:12px;height:12px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--nd-gold);flex:none}
.nyfe-dir .route-start-field{margin:0}
.nyfe-dir .route-start-field small:empty{display:none}
.nyfe-dir-to{background:#191919;border:1px solid #555;border-radius:10px;padding:11px 12px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.nyfe-dir-tools{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.nyfe-dir-whenrow{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 10px}
.nyfe-when{border:1px solid #444;border-radius:999px;padding:5px 11px;background:transparent;color:var(--nd-muted);font:inherit;font-size:13px;cursor:pointer;min-height:32px}
.nyfe-when.on{border-color:var(--nd-gold);color:var(--nd-gold)}
.nyfe-when-pick{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--nd-muted);margin:0 0 10px}
.nyfe-when-pick input{width:100%;min-width:0}
.nyfe-dir .route-feedback:empty{display:none}
.nyfe-dir-wait,.nyfe-dir-error{font-size:14px!important;line-height:1.5}
.nyfe-dir-error{color:#ffb3a7}
.nyfe-dir-options{display:flex;flex-direction:column;gap:10px;margin:6px 0 4px}
.nyfe-opt{display:block;width:100%;text-align:left;border:1px solid var(--nd-line);border-radius:12px;padding:12px 14px;background:#101010;color:#fff;font:inherit;cursor:pointer}
.nyfe-opt.on{border-color:var(--nd-gold)}
.nyfe-opt.static{cursor:default;margin:6px 0 4px}
.nyfe-opt:focus-visible{outline:2px solid var(--nd-gold);outline-offset:2px}
.nyfe-opt-wrap{display:block}
.nyfe-opt-wrap.open{border:1px solid var(--nd-gold);border-radius:12px;background:#101010}
.nyfe-opt-wrap.open>.nyfe-opt{border-color:transparent;border-radius:12px 12px 0 0}
.nyfe-opt-wrap .nyfe-opt-sub{position:relative;padding-right:24px}
.nyfe-opt-chev{width:16px;height:16px;position:absolute;right:0;top:1px;color:var(--nd-muted);transition:transform .15s}
.nyfe-opt-wrap.open .nyfe-opt-chev{transform:rotate(180deg);color:var(--nd-gold)}
.nyfe-opt-steps{padding:0 14px 6px;border-top:1px solid var(--nd-line)}
.nyfe-opt-steps .nyfe-timeline{margin:12px 0 4px}
.nyfe-opt-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.nyfe-opt-when{font-size:17px;font-weight:700}
.nyfe-opt-dur{font-size:17px;font-weight:700;color:var(--nd-gold);white-space:nowrap}
.nyfe-opt:not(.on) .nyfe-opt-dur{color:#ddd}
.nyfe-opt-sub{display:block;font-size:13px;color:var(--nd-muted);margin-top:6px;line-height:1.45}
.nyfe-chips{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:8px 0 0}
.nyfe-chips svg{width:18px;height:18px;color:#ccc;display:block}
.nyfe-chip-ride{display:inline-flex;gap:3px}
.nyfe-chip-sep{color:#666;font-size:13px}
.nyfe-bullet{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--b,#7c858c);color:var(--bt,#fff);font:800 13px/1 Helvetica,Arial,sans-serif;flex:none;vertical-align:middle}
.nyfe-bullet.diamond{border-radius:4px;transform:rotate(45deg) scale(.86)}
.nyfe-bullet.pill{width:auto;min-width:22px;padding:0 6px;border-radius:6px;font-size:12px;white-space:nowrap;gap:2px;display:inline-flex;align-items:center;justify-content:center}
.nyfe-bullet.pill small{font-size:8.5px;font-weight:800;letter-spacing:.02em;margin-left:3px;padding:1px 3px;border-radius:3px;background:rgba(0,0,0,.55);color:#fff}
.nyfe-live{color:#7ee2a8}
.nyfe-live:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#2fd27a;margin-right:6px;box-shadow:0 0 0 3px rgba(47,210,122,.18);vertical-align:1px}
.nyfe-walk-hint{display:flex;gap:8px;align-items:center;width:100%;text-align:left;margin:4px 0 10px;padding:9px 12px;border:1px solid #444;border-radius:10px;background:transparent;color:#ddd;font:inherit;font-size:13px;cursor:pointer}
.nyfe-walk-hint svg{width:18px;height:18px;flex:none}
.nyfe-alerts{margin:10px 0 4px;padding:10px 12px;border:1px solid #6b4a00;border-radius:10px;background:#1b1405;font-size:13px;line-height:1.5}
.nyfe-alerts strong{display:block;color:var(--nd-gold);margin-bottom:4px}
.nyfe-alerts p{margin:0 0 6px;font-size:13px!important}
.nyfe-alerts .nyfe-bullet{width:18px;height:18px;font-size:11px}
.nyfe-alerts a{color:var(--nd-gold);font-size:12px}
.nyfe-timeline{list-style:none;margin:14px 0 6px;padding:0}
.nyfe-timeline>li{display:grid;grid-template-columns:64px 22px minmax(0,1fr);column-gap:10px}
.nyfe-timeline .t{font-size:13px;font-weight:700;text-align:right;padding-top:1px;white-space:nowrap}
.nyfe-timeline .n{display:flex;flex-direction:column;align-items:center}
.nyfe-timeline .x{padding-bottom:14px;font-size:14px;line-height:1.45;min-width:0}
.nyfe-timeline .x small{display:block;color:var(--nd-muted);font-size:12.5px}
.nyfe-timeline .dot{width:14px;height:14px;border-radius:50%;border:3px solid #fff;background:#000;flex:none}
.nyfe-timeline .dot.ride{border-color:var(--line)}
.nyfe-timeline .pin{width:15px;height:15px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--nd-gold);flex:none;margin-top:1px}
.nyfe-timeline .walkline{flex:1;width:0;border-left:3px dotted #8a8a8a;margin:3px 0;min-height:34px}
.nyfe-timeline .rideline{flex:1;width:6px;background:var(--line);margin:-1px 0;min-height:60px;border-radius:2px}
.nyfe-tl-walk .x{display:flex;gap:8px;align-items:flex-start;color:#ddd;padding:6px 0 16px}
.nyfe-tl-walk .x svg{width:18px;height:18px;color:#bbb;flex:none}
.nyfe-tl-walk .x small small{display:inline}
.nyfe-ride-head{display:flex;gap:10px;align-items:flex-start;margin:6px 0 4px}
.nyfe-ride-head>.nyfe-bullet{width:26px;height:26px;font-size:15px}
.nyfe-ride-head>.nyfe-bullet.pill{width:auto;min-width:30px;padding:0 7px;font-size:13px}
.nyfe-ride-head small .nyfe-bullet.pill{width:auto;padding:0 4px}
.nyfe-ride-head small .nyfe-bullet{width:17px;height:17px;font-size:10px;margin-left:3px}
.nyfe-stops summary{font-size:12.5px;color:var(--nd-muted);cursor:pointer;margin-top:4px}
.nyfe-stops ol{margin:6px 0 0;padding-left:18px;font-size:12.5px;color:#ddd}
.nyfe-stops p{font-size:12.5px!important;color:var(--nd-muted);margin:4px 0 0}
.nyfe-livebox{margin-top:8px;font-size:12.5px;background:#0e1a12;border:1px solid #1f4d33;border-radius:8px;padding:6px 9px;color:#bfe9cf}
.nyfe-steps{list-style:none;margin:10px 0 0;padding:0}
.nyfe-steps li{display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid #2a2a2a;font-size:14px;line-height:1.4}
.nyfe-steps li svg{width:20px;height:20px;color:#ccc;margin-top:1px}
.nyfe-steps li small{display:block;color:var(--nd-muted);font-size:12.5px}
.nyfe-dir .route-attribution{margin-top:12px}
.nyfe-dir [data-action="route-save"]{margin-top:12px}
.nyfe-dir [data-action="itinerary-from-place"]{margin-top:10px}
.nyfe-dir-point{margin-bottom:6px}
.nyfe-dir-point h2{margin:12px 0 4px}
.nyfe-dir-point p{margin:0;color:var(--nd-muted)}
.nyfe-dir-point+.nyfe-dir{margin-top:14px}
@media (max-width:420px){.nyfe-timeline>li{grid-template-columns:56px 20px minmax(0,1fr);column-gap:8px}.nyfe-opt-when,.nyfe-opt-dur{font-size:16px}}

/* Map lines (site CSS sets every .nyfe-route-line blue; these win by specificity). */
.nyfe-route-line.casing{stroke:#000;stroke-width:11px;stroke-opacity:.85}
.nyfe-route-line.ride{stroke-width:7px;stroke-opacity:1}
.nyfe-route-line.walk{stroke:#9aa3ad;stroke-width:6px;stroke-dasharray:0.1 10}
.nyfe-route-line.walkroute{stroke:#ffd700;stroke-width:7px;stroke-dasharray:0.1 11}
.nyfe-route-line.drive{stroke:#ffd700;stroke-width:6px}
.nyfe-route-line.station{fill:#000;fill-opacity:1;stroke-width:3px}
.nyfe-route-line.c0062CF{stroke:#0062CF}.nyfe-route-line.cEB6800{stroke:#EB6800}.nyfe-route-line.c799534{stroke:#799534}.nyfe-route-line.c8E5C33{stroke:#8E5C33}.nyfe-route-line.c7C858C{stroke:#7C858C}.nyfe-route-line.cF6BC26{stroke:#F6BC26}.nyfe-route-line.cD82233{stroke:#D82233}.nyfe-route-line.c009952{stroke:#009952}.nyfe-route-line.c9A38A1{stroke:#9A38A1}.nyfe-route-line.c08179C{stroke:#08179C}.nyfe-route-line.c6CBE45{stroke:#6CBE45}.nyfe-route-line.c996633{stroke:#996633}.nyfe-route-line.cA7A9AC{stroke:#A7A9AC}.nyfe-route-line.cFCCC0A{stroke:#FCCC0A}.nyfe-route-line.c00933C{stroke:#00933C}.nyfe-route-line.cEE352E{stroke:#EE352E}.nyfe-route-line.cB933AD{stroke:#B933AD}.nyfe-route-line.cFF6319{stroke:#FF6319}.nyfe-route-line.c0039A6{stroke:#0039A6}.nyfe-route-line.c808183{stroke:#808183}.nyfe-route-line.c006CB7{stroke:#006CB7}.nyfe-route-line.c00AEEF{stroke:#00AEEF}.nyfe-route-line.cFAA61A{stroke:#FAA61A}.nyfe-route-line.cFF8330{stroke:#FF8330}
