/* ShouldIDrive.sg — expressway gantry signage system
   Night asphalt base · signage green · road-marking yellow · Overpass (highway lettering) */
:root {
  --asphalt: #14171b;
  --asphalt-2: #1c2026;
  --asphalt-3: #242a32;
  --line: #2e3641;
  --lane-yellow: #ffd23f;
  --sign-green: #00854d;
  --sign-green-deep: #006a3e;
  --hazard-red: #e6442e;
  --amber: #f59e0b;
  --ink: #eef1ee;
  --ink-dim: #9aa4ae;
  --mono: 'Overpass Mono', ui-monospace, monospace;
  --sans: 'Overpass', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--asphalt);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, #232a33 0%, transparent 60%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
a { color: var(--lane-yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header — gantry bar with yellow edge line */
.gantry-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem .6rem;
  background: #0d0f12;
  border-top: 4px solid var(--lane-yellow);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.logo {
  font-weight: 900; font-style: italic; font-size: 1.15rem; letter-spacing: .02em;
  color: var(--ink); white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--lane-yellow); }
.logo em { font-style: italic; color: var(--ink-dim); font-weight: 700; }
.gantry-bar nav { display: flex; gap: .25rem; }
@media (max-width: 540px) {
  .gantry-bar { flex-wrap: wrap; justify-content: center; row-gap: .3rem; }
  .gantry-bar nav { width: 100%; justify-content: space-between; gap: .15rem; }
  .gantry-bar nav a { padding: .3rem .5rem; font-size: .8rem; }
}
.gantry-bar nav a {
  color: var(--ink); font-weight: 700; font-size: .85rem; white-space: nowrap;
  padding: .35rem .65rem; border-radius: 6px; border: 1px solid transparent;
}
.gantry-bar nav a:hover { border-color: var(--line); text-decoration: none; }
.gantry-bar nav a.on { background: var(--sign-green); color: #fff; }

main { max-width: 880px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 900; line-height: 1.1; margin: .5rem 0; }
.pagesub { color: var(--ink-dim); font-family: var(--mono); font-size: .8rem; margin-top: 0; }
.sectionhead { margin-top: 2.5rem; }

/* hero */
.hero { text-align: center; padding: 2.5rem 0 1rem; }
.hero .kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .25em; color: var(--lane-yellow);
}
.hero h1 { font-size: clamp(2.6rem, 10vw, 4.5rem); font-style: italic; margin: .2rem 0 .6rem; }
.hero .sub { color: var(--ink-dim); max-width: 34rem; margin: 0 auto 1.6rem; }

/* search */
.searchwrap { position: relative; max-width: 34rem; margin: 0 auto; }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
#dest {
  width: 100%; padding: 1rem 1.2rem; font: 600 1.05rem var(--sans); color: var(--ink);
  background: var(--asphalt-2); border: 2px solid var(--line); border-radius: 12px;
  outline: none; transition: border-color .15s;
  -webkit-appearance: none; appearance: none;
}
#dest:focus { border-color: var(--lane-yellow); }
#suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  margin: 0; padding: .3rem; list-style: none;
  background: var(--asphalt-3); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); text-align: left;
}
#suggest li { padding: .55rem .8rem; border-radius: 8px; cursor: pointer; }
#suggest li:hover, #suggest li.sel { background: var(--sign-green); }
#suggest .addr { display: block; font-size: .72rem; color: var(--ink-dim); font-family: var(--mono); }
#suggest li:hover .addr { color: #d7e8df; }

/* verdict gantry sign */
.verdict { margin-top: 2rem; animation: drop-in .45s cubic-bezier(.2,.9,.3,1.2); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-18px); } }
.gantry {
  background: linear-gradient(180deg, var(--sign-green) 0%, var(--sign-green-deep) 100%);
  border: 3px solid #e8ece9; border-radius: 14px;
  padding: 1.2rem 1.4rem 1.4rem; text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
  position: relative;
}
.gantry::before, .gantry::after { /* gantry posts */
  content: ''; position: absolute; top: -26px; width: 10px; height: 26px;
  background: #3a414b; border-radius: 3px 3px 0 0;
}
.gantry::before { left: 12%; } .gantry::after { right: 12%; }
.gantry.no { background: linear-gradient(180deg, #8a1d10 0%, #6e150b 100%); }
.gantry.maybe { background: linear-gradient(180deg, #51545a 0%, #3c3f44 100%); }
.gantry-head { font-family: var(--mono); font-size: .78rem; letter-spacing: .15em; color: #cde7da; text-transform: uppercase; }
.gantry-decision { font-size: clamp(2.2rem, 9vw, 3.6rem); font-weight: 900; font-style: italic; color: #fff; line-height: 1.05; margin: .25rem 0; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.gantry-reason { color: #e8f4ed; font-weight: 700; }

.verdict-grid { display: grid; gap: 1rem; margin-top: 1.2rem; }
@media (min-width: 760px) { .verdict-grid { grid-template-columns: 1fr 1fr 1fr; } }
.panel { background: var(--asphalt-2); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.panel h2 { font-size: .8rem; font-family: var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 .6rem; }
.cp-row { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.cp-row:last-child { border-bottom: 0; }
.cp-row .lots { font-family: var(--mono); font-weight: 600; }
.cp-row small { display: block; color: var(--ink-dim); font-size: .72rem; }
.ok { color: #41d98d; } .low { color: var(--amber); } .full { color: var(--hazard-red); }

/* verdict meta row: weather, duration, save/share */
.verdict-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem;
  margin-top: .9rem; font-size: .82rem;
}
.wx-chip {
  background: var(--asphalt-3); border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .8rem; font-weight: 700;
}
.wx-chip.wet { border-color: #3d6ea5; color: #9cc5ee; }
.dur-label { color: var(--ink-dim); font-family: var(--mono); font-size: .72rem; }
.dur-chips button, .mini-btn {
  font: 700 .78rem var(--sans); color: var(--ink); background: var(--asphalt-2);
  border: 1px solid var(--line); border-radius: 8px; padding: .3rem .6rem; cursor: pointer;
}
.dur-chips button.on { background: var(--sign-green); border-color: var(--sign-green); color: #fff; }
.mini-btn:hover { border-color: var(--lane-yellow); }
.saved-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .8rem; }
.place-chip {
  font: 700 .78rem var(--sans); color: var(--lane-yellow); background: var(--asphalt-2);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; cursor: pointer;
}
.place-chip:hover { border-color: var(--lane-yellow); }
.cp-row.best { background: rgba(0,133,77,.12); margin: 0 -.5rem; padding: .45rem .5rem; border-radius: 8px; border-bottom: 0; }
.best-tag {
  font: 700 .58rem var(--mono); letter-spacing: .1em; color: #fff; background: var(--sign-green);
  border-radius: 4px; padding: .1rem .35rem; vertical-align: middle;
}
.camstrip-panel { margin-top: 1rem; }
.camstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; }

/* banners + ticker */
.banner { border-radius: 10px; padding: .8rem 1rem; margin: 1rem auto; max-width: 34rem; font-weight: 700; }
.banner.disrupt { background: #46150d; border: 1px solid var(--hazard-red); color: #ffb4a8; }
.banner.allclear { background: #0e2c1d; border: 1px solid var(--sign-green); color: #9be8c0; }
.ticker { font-family: var(--mono); font-size: .8rem; color: var(--ink-dim); }

/* quick links */
.quicklinks { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 2.5rem 0; }
@media (min-width: 760px) { .quicklinks { grid-template-columns: repeat(4, 1fr); } }
.ql {
  background: var(--asphalt-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem; font-weight: 700; color: var(--ink); display: flex; flex-direction: column; gap: .5rem;
  transition: transform .12s, border-color .12s;
}
.ql:hover { transform: translateY(-2px); border-color: var(--lane-yellow); text-decoration: none; }
.ql span {
  width: 2rem; height: 2rem; display: grid; place-items: center;
  background: var(--sign-green); color: #fff; font-weight: 900; border-radius: 8px;
}

.explainer { color: var(--ink-dim); max-width: 40rem; }
.explainer h2 { color: var(--ink); }
.faq h3 { color: var(--ink); font-size: 1rem; margin: 1.3rem 0 .2rem; }
.faq p { margin-top: 0; }

/* data tables */
.filterbar { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
#cpfilter {
  flex: 1; min-width: 220px; padding: .65rem .9rem; font: 600 .95rem var(--sans);
  color: var(--ink); background: var(--asphalt-2); border: 2px solid var(--line); border-radius: 10px; outline: none;
  -webkit-appearance: none; appearance: none;
}
#cpfilter:focus { border-color: var(--lane-yellow); }
.agency-tabs { display: flex; gap: .3rem; }
.agency-tabs button {
  font: 700 .8rem var(--sans); color: var(--ink); background: var(--asphalt-2);
  border: 1px solid var(--line); border-radius: 8px; padding: .45rem .8rem; cursor: pointer;
}
.agency-tabs button.on { background: var(--sign-green); border-color: var(--sign-green); color: #fff; }
.datatable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.datatable th {
  text-align: left; font-family: var(--mono); font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-dim); padding: .5rem .6rem; border-bottom: 2px solid var(--line);
}
.datatable td { padding: .5rem .6rem; border-bottom: 1px solid #20252c; }
.datatable .num { text-align: right; font-family: var(--mono); font-weight: 600; }
.dim { color: var(--ink-dim); }

/* incidents */
.incident-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.incident {
  background: var(--asphalt-2); border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: 10px; padding: .7rem .9rem;
}
.incident.sev { border-left-color: var(--hazard-red); }
.itype { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); display: block; }

/* cameras */
.camgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.cam { margin: 0; background: var(--asphalt-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cam img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #000; }
.cam figcaption { font-family: var(--mono); font-size: .7rem; color: var(--ink-dim); padding: .4rem .6rem; }

/* MRT */
.line { margin: 1.8rem 0; }
.line h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .55rem; }
.line-chip { color: #fff; font: 700 .7rem var(--mono); padding: .2rem .5rem; border-radius: 6px; }
.stationgrid { display: flex; flex-wrap: wrap; gap: .35rem; }
.station {
  font: 600 .72rem var(--mono); padding: .28rem .5rem; border-radius: 6px;
  background: var(--asphalt-3); border: 1px solid var(--line);
}
.lvl-l { color: #41d98d; border-color: #1d5c3c; }
.lvl-m { color: var(--amber); border-color: #6b4a10; }
.lvl-h { color: #ff8a78; border-color: #7a2417; background: #3a140c; }
.lvl-na { color: var(--ink-dim); }
.alert-list { background: var(--asphalt-2); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem .8rem 2rem; font-size: .85rem; color: var(--ink-dim); }
.alert-list li { margin: .3rem 0; }
.legend { margin-top: 2rem; }

/* bus pages */
.busfind { max-width: 34rem; margin: 1rem 0; }
.busfind input { width: 100%; padding: .9rem 1.1rem; font: 600 1rem var(--sans); color: var(--ink);
  background: var(--asphalt-2); border: 2px solid var(--line); border-radius: 12px; outline: none;
  -webkit-appearance: none; appearance: none; }
.busfind input:focus { border-color: var(--lane-yellow); }
.busfind ul { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; margin: 0; padding: .3rem;
  list-style: none; background: var(--asphalt-3); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); max-height: 60vh; overflow-y: auto; }
.busfind li { display: flex; align-items: center; gap: .55rem; padding: .55rem .8rem; border-radius: 8px; cursor: pointer; }
.busfind li:hover { background: var(--sign-green); }
.busfind li .addr { display: block; font: 400 .72rem var(--mono); color: var(--ink-dim); margin-top: .1rem; }
.busfind li:hover .addr { color: #d7e8df; }
.busfind li.group { display: block; cursor: default; padding: .55rem .8rem .25rem;
  font: 700 .62rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--lane-yellow); }
.busfind li.group:hover { background: none; }
.busfind li.group + li { border-top: 0; }
.busfind li.svc-item { background: rgba(0,133,77,.10); }
.busfind li.svc-item:hover { background: var(--sign-green); }
.busfind li.svc-item + li.svc-item { margin-top: .15rem; }
.center { text-align: center; }
.stoplist { display: grid; gap: .5rem; margin: 1rem 0; }
.stoprow { display: flex; flex-direction: column; gap: .1rem; background: var(--asphalt-2);
  border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; color: var(--ink); }
.stoprow:hover { border-color: var(--lane-yellow); text-decoration: none; }
.stoprow span { font: 400 .75rem var(--mono); color: var(--ink-dim); }
.stopcode { font: 600 .9rem var(--mono); color: var(--lane-yellow); background: var(--asphalt-3);
  border: 1px solid var(--line); border-radius: 8px; padding: .2rem .5rem; vertical-align: middle; }
.crumb a { color: var(--ink-dim); }
.svc-badge { display: inline-block; min-width: 2.4rem; text-align: center; font: 900 .85rem var(--sans);
  background: var(--sign-green); color: #fff; border-radius: 6px; padding: .15rem .4rem; margin-right: .3rem; }
.arrivals { display: grid; gap: .45rem; margin: 1.2rem 0; }
.arr-row { display: flex; align-items: baseline; gap: .8rem; background: var(--asphalt-2);
  border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; }
.arr-svc { font: 900 1.25rem var(--sans); min-width: 3.2rem; }
.arr-eta { font: 600 1.05rem var(--mono); min-width: 4.5rem; }
.arr-meta { font-size: .78rem; color: var(--ink-dim); }
.bus-options { margin-top: .6rem; }

/* prose pages */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.6rem; }
.prose p { color: #c6cdd4; }

/* ads */
.ad-slot { margin: 1.5rem 0; min-height: 90px; }

/* footer */
footer { margin-top: 3rem; }
.lane-divider {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--lane-yellow) 0 40px, transparent 40px 80px);
  opacity: .55;
}
.foot-grid {
  max-width: 880px; margin: 0 auto; padding: 1.6rem 1rem 2.2rem;
  display: grid; gap: 1rem; font-size: .82rem; color: var(--ink-dim);
}
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.2fr .8fr 1.4fr; } }
.foot-grid strong { color: var(--ink); }
.foot-links { display: flex; gap: 1rem; }
.foot-links a, .foot-attrib a { color: var(--ink-dim); text-decoration: underline; }
