/*
 * /location/ help page. The site chrome (cream page, green header bar, Arial,
 * bold blue links) comes from rbn_2.css; this file only sets a reading
 * measure and draws the grid-square figure. The figure borrows the live
 * map's own vocabulary on purpose: the header green for the square, and the
 * map's pure blue for the dot, the colour of a spotted station's marker.
 */

/* rbn_2.css holds every page at a 535px minimum for the desktop tools. This
   page is prose, and index.php gives it a phone viewport, so it reflows. */
body {
	min-width: 0;
}

/* The 400px header logo was then the one thing wider than a small phone,
   and it held the whole layout at 400px. header.php's own media queries
   already hide the other header cells at this width. */
#container img {
	max-width: 100%;
	height: auto;
}

.loc-page {
	--loc-ink: #003300;
	--loc-dot: #0000ff;
	--loc-paper: #fff;
	--loc-line: #c8cfc0;
	--loc-square: #f1f6ec;

	display: block;
	max-width: 60em;
	padding: 1.5em 0.5em 3em;
	color: var(--rbn-text);
	font-size: 1.07em;
	line-height: 1.55;
}

.loc-page h1,
.loc-page h2 {
	color: var(--loc-ink);
	font-weight: bold;
}

.loc-page h1 {
	margin: 0 0 0.5em;
	font-size: 2em;
	line-height: 1.15;
}

.loc-page h2 {
	margin: 2em 0 0.6em;
	font-size: 1.3em;
	line-height: 1.3;
}

.loc-page p,
.loc-steps {
	max-width: 40em;
	margin: 0 0 0.8em;
}

/* Text beside the figure on a wide screen, above it on a narrow one. */
.loc-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 24em);
	gap: 1.5em 2.5em;
	align-items: start;
}

.loc-page .loc-lede {
	max-width: 30em;
	font-size: 1.2em;
	line-height: 1.5;
}

.loc-figure {
	margin: 0;
}

/* The 1 px frame echoes the border around the live map. */
.loc-figure svg {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #888;
	background: var(--loc-paper);
}

.loc-figure figcaption {
	margin-top: 0.5em;
	color: var(--rbn-text-light);
	font-size: 0.88em;
	line-height: 1.45;
}

.loc-fig-neighbors line {
	stroke: var(--loc-line);
	stroke-width: 1;
}

.loc-fig-square {
	fill: var(--loc-square);
	stroke: var(--loc-ink);
	stroke-width: 2;
}

.loc-fig-grid,
.loc-fig-label,
.loc-fig-measure {
	font-family: Arial, sans-serif;
	font-size: 12px;
}

.loc-fig-grid {
	fill: var(--loc-ink);
	font-size: 13px;
	font-weight: bold;
}

.loc-fig-station path,
.loc-fig-station rect {
	fill: var(--loc-ink);
}

.loc-fig-station line {
	stroke: var(--loc-ink);
	stroke-width: 1.5;
	stroke-linecap: round;
}

.loc-fig-label {
	fill: var(--rbn-text);
}

.loc-fig-label-dot {
	fill: var(--loc-dot);
	font-weight: bold;
}

.loc-fig-dot {
	fill: var(--loc-dot);
	stroke: var(--loc-paper);
	stroke-width: 2;
}

/* The offset between the dot and the station: the error people write in about. */
.loc-fig-gap {
	stroke: var(--loc-dot);
	stroke-width: 1;
	stroke-dasharray: 3 3;
}

.loc-fig-dim line {
	stroke: #666;
	stroke-width: 1;
}

.loc-fig-measure {
	fill: #555;
}

/* Symptom on the left, cause and fix on the right. */
.loc-cases {
	display: grid;
	grid-template-columns: minmax(0, 15em) minmax(0, 36em);
	gap: 1.1em 2em;
	margin: 0;
}

.loc-cases dt {
	font-weight: bold;
}

.loc-cases dd {
	margin: 0;
}

/* A real sequence, so it keeps its numbers. */
.loc-steps {
	padding-left: 1.6em;
}

.loc-steps li {
	margin-bottom: 0.45em;
	padding-left: 0.2em;
}

.loc-steps li::marker {
	color: var(--loc-ink);
	font-weight: bold;
}

/* One column from tablet width down to a phone. */
@media (max-width: 860px) {
	.loc-hero,
	.loc-cases {
		grid-template-columns: minmax(0, 1fr);
	}

	.loc-figure {
		max-width: 26em;
	}

	.loc-cases {
		row-gap: 0.2em;
	}

	.loc-cases dd {
		margin-bottom: 0.9em;
	}
}
