/* TSN Kunye - restaurants page only.
   MUST be linked AFTER css/tsnk-scan.css. Everything here is an override of a
   rule in that file, at equal specificity, so cascade order is what makes it win.
   Placing it at a narrower breakpoint is NOT enough. Learned twice.

   Why this file exists: tsnk-scan.css ends with
     .tsnk-scan table td:first-child { white-space: nowrap }
   which is harmless on the dealership page, where the first column reads
   "Vehicles 1 to 15". On this page the first column carries full sentences, so
   without the override the rate-card tables blow out well past the column width
   on a phone. Measured on the hotels page at 390px: 604 to 1080px inside a
   374px column. */

@media (max-width: 1000px) {
  .tsnk-scan table { table-layout: fixed; width: 100%; font-size: 13px; }

  /* the actual fix */
  .tsnk-scan table th:first-child,
  .tsnk-scan table td:first-child { white-space: normal; overflow-wrap: anywhere; }

  /* tsnk-scan.css also nowraps the last two columns, which is right for a price
     but wrong for a wide note like "R6.09/km, free within 30km of Kya Sands" */
  .tsnk-scan table th:last-child,
  .tsnk-scan table td:last-child,
  .tsnk-scan table th:nth-last-child(2),
  .tsnk-scan table td:nth-last-child(2) { white-space: normal; }

  /* fixed layout needs explicit widths or the price columns eat the description */
  .tsnk-scan table th:not(:first-child),
  .tsnk-scan table td:not(:first-child) { width: 22%; }

  .tsnk-scan th, .tsnk-scan td { padding: 8px 9px; }
}

@media (max-width: 560px) {
  .tsnk-scan table { font-size: 12px; }
  .tsnk-scan th, .tsnk-scan td { padding: 7px 7px; }
  .tsnk-scan table th:not(:first-child),
  .tsnk-scan table td:not(:first-child) { width: 24%; }
}

/* A dining room is a wide landscape space, closer to a showroom than to a hotel
   bedroom, so the frame stays taller than the hotels page allows. */
@media (max-width: 760px) {
  .tsnk-scan .mpframe { min-height: 420px; }
  .tsnk-scan .mpframe iframe { min-height: 420px; }
}

/* .callout p has no bottom margin in tsnk-scan.css, so a multi-paragraph callout
   runs together into one block. Fix it here rather than with inline styles on
   every second paragraph. */
.tsnk-scan .callout p + p,
.tsnk-scan .honest p + p { margin-top: 14px; }
