/* 🚙 d9suvprice.css — the DENZA D9 and the 7-seat SUV in the price tables (Sky 23 Nov 2026 "เอารถ type ใหม่ของเราไปลงด้วยนะ").
   Jev (~/typesafe/kingtocar-allcars/ask_layout.json): four price columns — "Commuter / SUV" sharing one (the same price on every route) ·
   Caravelle · DENZA D9 · Alphard; a D9 price shows a small chat label and opens the chat with a ready message, "—" where it is not sold
   (Phuket), one short line under each table; route pages keep three cards and get one line under them. In build.py's CSS list (the bundle +
   every route page) and linked by d9suvprice.legacy() on /van-rental-price/. Every rule hangs on the new markup's classes (nc-*, has-nc,
   data-nc-*), so a page that was not rebuilt looks exactly as before. */

/* the fare board (homepage #quote and /routes/): five columns at the same row height */
.departure-table table.cv-cols.nc-cols th:first-child{width:34%}
.departure-table table.cv-cols.nc-cols th:nth-child(n+2){width:16.5%}
.board-nc-note a{color:inherit;text-decoration:underline;text-underline-offset:3px}
@media(max-width:768px){
  .departure-table table.cv-cols.nc-cols th:first-child{width:31%}
  .departure-table table.cv-cols.nc-cols th:nth-child(n+2){width:17.25%}
  :is(.directory-view,.home-route-board) .departure-table table.cv-cols.nc-cols .fare-key strong{font-size:15px!important;letter-spacing:-.05em}
  :is(.directory-view,.home-route-board) .departure-table table.cv-cols.nc-cols td{padding-inline:2px}
  :is(.directory-view,.home-route-board) .departure-table table.cv-cols.nc-cols td:first-child{padding-left:8px}
  :is(.directory-view,.home-route-board) .departure-table table.cv-cols.nc-cols th:first-child{padding-left:8px}
}
/* the head: "COMMUTER" over "/ SUV"; #route-list beats /routes/'s own `.v22-route-directory :is(th, …, #departure-title span)` (12px) */
@media(max-width:768px){
  #route-list .departure-table table.nc-cols th>.nc-suv-tag{display:block}
}
@media(max-width:400px){
  #route-list .departure-table table.cv-cols.nc-cols th:nth-child(n+2){padding-inline:1px;font-size:9px;letter-spacing:-.02em}
  #route-list .departure-table table.cv-cols.nc-cols th:nth-child(n+2) small{font-size:9px;letter-spacing:-.02em}
  :is(.directory-view,.home-route-board) .departure-table table.cv-cols.nc-cols .fare-key strong{font-size:14px!important}
  :is(.directory-view,.home-route-board) .departure-table table.cv-cols.nc-cols .fare-key>span{font-size:8.5px}
}
@media(max-width:359px){
  :is(.directory-view,.home-route-board) .departure-table table.cv-cols.nc-cols .fare-key strong{font-size:12.5px!important}
  #route-list .departure-table table.cv-cols.nc-cols th:nth-child(n+2),#route-list .departure-table table.cv-cols.nc-cols th:nth-child(n+2) small{font-size:8px}
}

/* the one short line under a table (each car's name a link to its page) */
.nc-note a{color:inherit;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.pricing-nc-note,.pr-nc-note,.nc-catalog-note,.route-nc-note{line-height:1.6}

/* the homepage price list (#pricing): five columns */
.pricing-table table.nc-cols .price-d9 .cv-chat{align-items:flex-end}
@media(max-width:640px){
  .pricing-table table.cv-cols.nc-cols th,.pricing-table table.cv-cols.nc-cols td{padding-inline:4px}
  .pricing-table table.cv-cols.nc-cols th:first-child{width:34%}
  .pricing-table table.cv-cols.nc-cols td{font-size:12.5px}
}

/* route pages: the line under the cards — "Or a 7-seat SUV at the Commuter price ฿X · Book online" (every route, the booking chooser) ·
   "DENZA D9 ฿Y · book by chat" (Bangkok routes); one line on a computer, one car per line on a phone */
.route-also-cars{max-width:1180px;margin:14px auto 0;padding:0 2px;font-size:14px;line-height:1.9;color:#cfd8d4;text-align:center}
.route-also-cars .nc-also-name{color:#f3ead7;text-decoration:underline;text-decoration-color:#f0d49a66;text-underline-offset:3px}
.route-also-cars .nc-also-price{display:inline-block;padding:2px;color:#f6d79c;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.route-also-cars .nc-also-price b{font-weight:600}
.route-also-cars .nc-also-name:hover,.route-also-cars .nc-also-price:hover{color:#ffe0a1}
.route-also-cars .nc-also-sep{color:#aebfba}
.selected-route-cars+.route-also-cars{text-align:left;margin-top:12px}
@media(max-width:600px){
  .route-also-cars .nc-also-seg{display:block}
  .route-also-cars .nc-also-sep{display:none}
}

/* route pages: the day-charter table with five price-ish columns (time · Commuter / SUV · Caravelle · D9 · Alphard) */
.route-package-table.has-nc{overflow-x:auto}
.route-package-table.has-nc td.nc-cell{white-space:nowrap}
.route-package-table .route-nc-note{margin:8px 0 0;font-size:12.5px;color:#b9b196}
@media(max-width:560px){
  .route-package-table.has-nc table{font-size:13px}
  .route-package-table.has-nc th,.route-package-table.has-nc td{padding:9px 4px}
  .route-package-table.has-nc thead th{font-size:11px}
  .route-package-table.has-nc .cv-chat small{font-size:10px}
}

/* /pricing/: the finder's D9 column (four prices side by side on a phone) and the hourly cards */
.pr-table.has-nc td.pr-d9{text-align:right}
.pr-table .pr-d9 .cv-chat{align-items:flex-end}
.pr-pp .pr-pp-d9 .cv-chat{align-items:flex-end}
@media(max-width:600px){
  .pr-table.has-cv.has-nc tr{grid-template-columns:repeat(4,minmax(0,1fr))}
  .pr-table.has-nc td{padding-inline:3px;font-size:14px}
  .pr-table.has-nc td.pr-d9{text-align:left}
  .pr-table .pr-d9 .cv-chat{align-items:flex-start}
  .pr-table.has-nc td::before{font-size:10.5px;line-height:1.3;min-height:2.6em;white-space:normal}
  .pr-table.has-nc .cv-chat small{white-space:normal;font-size:10px;line-height:1.25}
}

/* /van-rental-price/ (the older page): seven columns on a phone in the one-way table */
.nc-legacy-note{margin-top:-10px}
@media(max-width:640px){
  .tbl table[data-nc-table] th,.tbl table[data-nc-table] td{padding-left:2px!important;padding-right:2px!important;font-size:.7rem!important}
  .tbl table[data-nc-table] .cv-legacy small{font-size:9.5px}
}

/* 24 Nov 2026 (Sky's screenshots of /routes/ on a narrow window: "ตัวหนังสือทับกัน"): at 401–560 px the five-column head kept /routes/'s 12px
   capitals — "CARAVELLE" (71 px) ran into "DENZA D9" in a 58–69 px cell and "9–13 / 6 ที่นั่ง" broke inside a word. The ≤400 px sizes now hold up
   to 560 px, on the homepage board too, and the SUV's "/ 6" leaves the seats line there (the line under the table names the SUV's seats). */
@media(max-width:560px){
  :is(#route-list,.home-route-board) .departure-table table.cv-cols.nc-cols th:nth-child(n+2){padding-inline:1px;font-size:9.5px;letter-spacing:-.02em;overflow-wrap:normal;word-break:keep-all}
  :is(#route-list,.home-route-board) .departure-table table.cv-cols.nc-cols th:nth-child(n+2) small{font-size:9px;letter-spacing:-.02em;white-space:nowrap}
  :is(#route-list,.home-route-board) .departure-table table.cv-cols.nc-cols th small .nc-suv-tag{display:none}
}
