/* 162b: phone fixes for the comparison pages and the sample cards (the 162 audit's notes). Loaded by inc/pages/tc-162b.php,
   after every other sheet, on the pages it lists only. Layout and text size only: no words, links or colours change. */

/* Comparison tables fit the screen on phones, so no compared column (TimeClick's, a price, the 3-year cost) waits off
   the right edge for a swipe. The theme gives these tables a minimum width (600 px, 520 px under 560 px) and the text in
   their cells already wraps; here the minimum goes, the cells get a little less padding, and the row names stop sticking
   to the left edge (there is nothing to scroll past). Same table, same words, same order. */
@media (max-width: 700px) {
	.tc162b .t-copy-page .t-copy .t-table {
		min-width: 0;
		width: 100%;
	}
	.tc162b .t-copy-page .t-copy .t-table th,
	.tc162b .t-copy-page .t-copy .t-table td {
		padding: 10px 8px;
	}
	.tc162b .t-copy-page .t-copy .t-table tr > :first-child {
		padding-left: 12px;
	}
	.tc162b .t-copy-page .t-copy .t-table tr > :last-child {
		padding-right: 12px;
	}
	.tc162b .t-copy-page .t-copy .t-table tbody th {
		position: static;
	}
}
/* The narrowest phones (320 px): a little less padding and 13 px cells, so the longest words still fit. */
@media (max-width: 340px) {
	.tc162b .t-copy-page .t-copy .t-table th,
	.tc162b .t-copy-page .t-copy .t-table td {
		padding: 8px 5px;
		font-size: 13px;
	}
	.tc162b .t-copy-page .t-copy .t-table tr > :first-child {
		padding-left: 10px;
	}
	.tc162b .t-copy-page .t-copy .t-table tr > :last-child {
		padding-right: 10px;
	}
}

/* The sample cards (the HTML pictures of TimeClick screens): names wrap at their spaces instead of ending in "...", and
   their small text is 12 px or more (initials, column labels, the map's zone label and name tags were 10 and 11 px). On
   phones the status pill and the gaps get a little tighter so the longest name word fits; if a row still can't hold
   it, the pill and the hours move under the name rather than squeezing it. */
.tc162b .ui-win .ui-name {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}
@media (max-width: 480px) {
	.tc162b .ui-win .ui-row {
		flex-wrap: wrap;
		gap: 8px;
	}
	.tc162b .ui-win .ui-name {
		flex: 1 1 0;
		min-width: min-content;
	}
	.tc162b .ui-win .ui-pill {
		gap: 5px;
		padding: 4px 8px;
	}
	.tc162b .ui-win .ui-hrs {
		min-width: 0;
	}
}
.tc162b .ui-win .ui-pick i,
.tc162b .ui-win .ui-tbl th,
.tc162b .ui-win .ui-zone b,
.tc162b .ui-win .ui-name em,
.tc162b .ui-win .ui-time em {
	font-size: 12px;
}
/* On the narrowest phones (320 px) the 12 px column labels of a 4-column card table need the room their letter spacing
   and side padding took. */
@media (max-width: 340px) {
	.tc162b .ui-win .ui-tbl th {
		letter-spacing: 0;
	}
	.tc162b .ui-win .ui-tbl th,
	.tc162b .ui-win .ui-tbl td {
		padding-left: 2px;
		padding-right: 2px;
	}
}
