/*
== == == == == == == == == == == == == == == == == == == == == == == == ==
TITLE:			site.css -- styles for weimarmercury.com
AUTHOR:			Beal Publications LLC
CONTACT:		WeimarMercury@gmail.com
LICENSE:		Copyright (c) 2026 Beal Publications LLC. All rights reserved.
DATE CREATED:	Sat, 14 Nov 2026 19:37:00 GMT
DATE MODIFIED:	Sun, 15 Nov 2026 04:18:00 GMT
DESCRIPTION:	The whole look of the site, including the print version. Fonts: Roboto Condensed (headlines, menus, labels) and Newsreader (reading text), both under the SIL Open Font License (see the fonts folder).
== == == == == == == == == == == == == == == == == == == == == == == == ==
*/

/* --- fonts --- */

/* Trimmed to Latin characters and weights 400-700; font-display: swap shows text in a fallback font while these load, rather than leaving it invisible */
@font-face {
	font-family: "Roboto Condensed";
	src: url("../fonts/roboto-condensed.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Roboto Condensed";
	src: url("../fonts/roboto-condensed-italic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader-italic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

/* --- colors and type --- */

/* Every text and background pairing below meets WCAG AA contrast (4.5:1 for text, 3:1 for focus rings and field borders); checked 2026-11-14: cream on rust 6.8:1, gold on rust 4.8:1 (the old site's gold, #e9c46a, was 4.1:1, so it's a shade lighter), cream on rust-dark 9.2:1, rust on paper 6.9:1, rust on cream 6.8:1, muted on paper 7.6:1, text on cream 14.9:1, admin preview note (#533c00 on #fdf4d4) 9.5:1. The surround (the newsprint-grain paper beside the page on wide screens, img/paper.svg) carries no text */
:root {
	color-scheme: light;
	--rust: #993d17;
	--rust-dark: #7a2f10;
	--cream: #fffdf3;
	--gold: #f2d483;
	--paper: #fff;
	--surround: #e7e0d0;
	--frame: #b9ae96;
	--ink: #1b1b1b;
	--text: #262626;
	--muted: #545454;
	--rule: #d9d4c7;
	--box: #f8f6f0;
	--focus: #1a5fb4;
	--head-font: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--text-font: "Newsreader", Georgia, "Times New Roman", serif;
	--gutter: 16px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--surround) url("../img/paper.svg");
	color: var(--text);
	font: 1.125rem/1.55 var(--text-font);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--rust);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--rust-dark);
}

/* KYB: one clear focus ring for every control; on the dark bars it switches to gold so it stays visible */
:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.masthead :focus-visible,
.sections :focus-visible,
.site-footer :focus-visible,
.breaking :focus-visible {
	outline-color: var(--gold);
}

h1, h2, h3 {
	font-family: var(--head-font);
	color: var(--ink);
	line-height: 1.12;
	text-wrap: balance;
}

button,
.button {
	display: inline-block;
	padding: 0.45em 1.1em;
	border: 0;
	border-radius: 4px;
	background: var(--rust);
	color: var(--cream);
	font: 600 1rem/1.3 var(--head-font);
	letter-spacing: 0.04em;
	text-decoration: none;
	cursor: pointer;
}

button:hover,
.button:hover {
	background: var(--rust-dark);
	color: var(--cream);
}

input {
	font: 1rem/1.3 var(--head-font);
	padding: 0.4em 0.5em;
	border: 1px solid #8a8577;
	border-radius: 3px;
	background: var(--paper);
	color: var(--ink);
	width: 100%;
}

/* Hidden on screen but read by screen readers, for context such as which story a "Read more" link opens */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* KYB: the first Tab on every page reveals a link straight to the content, past the masthead and menu */
.skip {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	z-index: 10;
	padding: 0.5em 1em;
	background: var(--paper);
	color: var(--rust);
	font: 600 1rem var(--head-font);
}

.skip:focus {
	top: 8px;
}

/* --- masthead --- */

/* The masthead, tagline, folio line, and footer are the paper's nameplate rather than reading text, so they can't be selected (the old site's versions were pictures) */
.masthead {
	position: relative;
	background: var(--rust);
	color: var(--cream);
	text-align: center;
	user-select: none;
	-webkit-user-select: none;
}

.nameplate {
	max-width: 900px;
	margin: 0 auto;
	padding: 1.1rem var(--gutter) 0.8rem;
}

.wordmark {
	margin: 0;
	line-height: 0;
}

/* The link sets the width (an inline-block link would shrink to fit the image while the image sizes to the link, and both collapse) */
.wordmark a {
	display: block;
	width: min(100%, 760px);
	margin: 0 auto;
}

/* The bevel of the old masthead image: a light top edge, then a dark one, then a soft shadow */
.wordmark img {
	display: block;
	width: 100%;
	filter: drop-shadow(0 1px 0 #c9a991) drop-shadow(0 2px 0 var(--rust-dark)) drop-shadow(0 3px 3px rgb(0 0 0 / 0.45));
}

.tagline {
	margin: 0.6rem 0 0;
	font: italic 600 clamp(0.65rem, 1.8vw, 0.8rem)/1.3 var(--head-font);
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.tagline-edition {
	color: var(--gold);
}

/* Subscriber login, top right; on phones it moves into the flow above the nameplate */
.account {
	position: absolute;
	top: 0.6rem;
	right: var(--gutter);
	z-index: 5;
	text-align: left;
	font: 1rem/1.3 var(--head-font);
	user-select: text;
	-webkit-user-select: text;
}

.login summary,
.account-status {
	color: var(--cream);
	font-weight: 600;
	letter-spacing: 0.04em;
}

.login summary {
	cursor: pointer;
	padding: 0.25em 0.4em;
	border-radius: 3px;
	text-align: right;
}

.login summary:hover {
	text-decoration: underline;
}

.login[open] summary {
	margin-bottom: 0.4rem;
}

.masthead .login-form {
	width: 17rem;
	padding: 0.9rem 1rem;
	background: var(--paper);
	color: var(--ink);
	border-radius: 4px;
	box-shadow: 0 6px 20px rgb(0 0 0 / 0.3);
}

.logout-form {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.logout-form button {
	padding: 0.3em 0.8em;
	background: var(--cream);
	color: var(--rust);
	font-size: 0.9rem;
}

.logout-form button:hover {
	background: var(--gold);
	color: var(--ink);
}

/* --- login form (header panel and help page) --- */

.login-form .field {
	margin: 0 0 0.7rem;
}

.login-form label {
	display: block;
	margin-bottom: 0.2rem;
	font: 600 0.95rem var(--head-font);
	color: var(--ink);
}

/* The "Keep me logged in" checkbox, beside its label */
.login-form .field-check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.login-form .field-check input {
	width: 1.1rem;
	height: 1.1rem;
	flex: none;
	margin: 0.1rem 0 0;
	accent-color: var(--rust);
}

.login-form .field-check label {
	display: inline;
	margin: 0;
	font-weight: 400;
	line-height: 1.3;
}

.login-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	font-family: var(--head-font);
}

.column-main > .login-form {
	max-width: 20rem;
	margin: 1rem 0 1.5rem;
	padding: 1rem;
	background: var(--box);
	border: 1px solid var(--rule);
	border-radius: 4px;
}

/* --- section menu --- */

.sections {
	background: var(--rust-dark);
	font-family: var(--head-font);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.sections ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.sections li {
	flex: 1 1 auto;
	text-align: center;
}

.sections a {
	display: block;
	padding: 0.55rem 0.7rem;
	color: var(--cream);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}

.sections a:hover {
	background: var(--rust);
	color: var(--cream);
}

.sections a[aria-current="page"] {
	box-shadow: inset 0 -3px 0 var(--gold);
}

.sections-more {
	border-top: 1px solid rgb(255 253 243 / 0.25);
}

.sections-more a {
	font-size: 0.85rem;
	font-weight: 500;
}

/* Sits on the text's baseline, a little apart from it */
.external-icon {
	margin-left: 0.3em;
	vertical-align: -0.05em;
}

.sections-note {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	opacity: 0.85;
}

/* --- folio line (like the print edition's: phone, slogan, date) --- */

.folio {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.2rem 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.45rem var(--gutter);
	background: var(--cream);
	border-bottom: 3px double var(--ink);
	font: 0.85rem/1.3 var(--head-font);
	color: var(--ink);
	user-select: none;
	-webkit-user-select: none;
}

.folio a {
	color: inherit;
}

.folio-slogan {
	font: 1.15rem/1.2 var(--text-font);
}

.breaking {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.6rem var(--gutter);
	background: var(--rust);
	color: var(--cream);
	font: 600 1.05rem/1.35 var(--head-font);
	text-align: center;
}

.breaking strong {
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.breaking a {
	color: var(--cream);
}

/* The home page's breaking news box: framed in rust, with the label on a rust bar like the band above */
.breaking-lead {
	margin: 0 0 2rem;
	padding: 0 1.25rem 1.1rem;
	border: 3px solid var(--rust);
	border-radius: 4px;
}

.breaking-label {
	margin: 0 -1.25rem 0.6rem;
	padding: 0.35rem 1.25rem;
	background: var(--rust);
	color: var(--gold);
	font: 700 0.95rem/1.3 var(--head-font);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	user-select: none;
}

/* --- page layout: content beside a column of ads --- */

.page {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 250px;
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem var(--gutter) 2rem;
	background: var(--paper);
}

/* A word too long for its line (a pasted web address in a story, say) breaks where the line runs out instead of pushing the page wider than a phone's screen. Words that fit are never broken */
main {
	overflow-wrap: anywhere;
}

/* Story pages and section fronts: the main column beside a sidebar of boxes */
.with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2rem;
	align-items: start;
}

.column-main > :first-child,
.column-side > :first-child {
	margin-top: 0;
}

.page-title {
	margin: 0 0 1.2rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--ink);
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rust);
}

.intro {
	font-size: 1.2rem;
	margin-top: 0;
}

.alert {
	padding: 0.6rem 0.9rem;
	border-left: 4px solid var(--rust);
	background: var(--box);
}

.empty {
	color: var(--muted);
	font-style: italic;
}

/* --- story lists --- */

.section-label {
	margin: 0 0 0.4rem;
	padding-bottom: 0.3rem;
	border-bottom: 1px solid var(--rule);
	font: 700 0.85rem/1.3 var(--head-font);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rust);
}

.section-label a {
	text-decoration: none;
}

.lead {
	margin-bottom: 2rem;
}

.headline {
	margin: 0.4rem 0 0.8rem;
	font-size: clamp(1.9rem, 4.5vw, 2.6rem);
	letter-spacing: -0.005em;
}

.headline a,
.story-item h3 a,
.box h3 a {
	color: var(--ink);
	text-decoration-color: var(--rule);
	text-decoration-thickness: 2px;
}

.headline a:hover,
.story-item h3 a:hover,
.box h3 a:hover {
	text-decoration-color: var(--rust);
}

.blurb {
	margin: 0;
	font-size: 1.15rem;
}

.more {
	font: 600 0.95rem var(--head-font);
	white-space: nowrap;
}

.story-list {
	margin-bottom: 2rem;
}

.story-item {
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--rule);
}

.story-item h3 {
	margin: 0 0 0.3rem;
	font-size: 1.45rem;
}

.story-item p {
	margin: 0;
	color: var(--muted);
	font-size: 1.05rem;
}

.list-more {
	font: 600 1rem var(--head-font);
}

/* Photos: new ones arrive 1600 pixels wide (resized in the admin) and fill the column; the older ones, sized to 380 pixels by hand, keep their own size rather than being stretched */
.story-photo {
	margin: 0 0 1rem;
}

.story-photo img {
	display: block;
	width: auto;
	border: 1px solid var(--rule);
}

.story-photo figcaption {
	margin-top: 0.35rem;
	font: italic 0.95rem/1.4 var(--head-font);
	color: var(--muted);
}

/* --- a single story --- */

.story-headline {
	margin: 0.4rem 0 0.5rem;
	font-size: clamp(2rem, 5vw, 2.9rem);
}

.byline {
	margin: 0 0 1.2rem;
	font: italic 1.05rem var(--head-font);
	color: var(--muted);
}

.story .story-photo {
	margin: 0.3rem 0 1.5rem;
	max-width: 40em;
}

/* Underlined words (the <u> tag in a story) keep the text color, so they don't pass for links, which are rust */
.story-text u {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

/* An admin's preview of a story (story.php?preview=1) */
.preview-note {
	margin: 0 0 1rem;
	padding: 0.6rem 0.9rem;
	border-left: 6px solid var(--gold);
	background: #fdf4d4;
	color: #533c00;
	font: 1rem/1.4 var(--head-font);
}

.preview-note a {
	color: inherit;
}

.story-text p {
	margin: 0 0 1em;
	max-width: 40em;
	font-size: 1.2rem;
	line-height: 1.6;
}

.end-mark {
	clear: both;
	margin: 1.5rem 0 0;
	text-align: center;
	font: 600 1rem var(--head-font);
	letter-spacing: 0.3em;
	color: var(--muted);
}

.story-tools {
	text-align: center;
}

/* The teaser's login box, shown to non-subscribers in place of the story text */
.gate {
	margin: 1.5rem 0;
	padding: 1.2rem 1.4rem;
	background: var(--box);
	border: 1px solid var(--rule);
	border-top: 4px solid var(--rust);
	border-radius: 4px;
}

.gate h2 {
	margin: 0 0 0.4rem;
	font-size: 1.5rem;
}

.gate p {
	font-size: 1.05rem;
}

.gate .login-form {
	max-width: 20rem;
	margin: 1rem 0;
}

.gate-subscribe {
	margin-bottom: 0;
}

/* --- sidebar boxes --- */

.box {
	margin-bottom: 1.4rem;
	padding: 0.9rem 1rem 1rem;
	background: var(--box);
	border: 1px solid var(--rule);
	border-top: 3px solid var(--rust);
}

.box-head {
	margin: 0 0 0.6rem;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	color: var(--rust);
}

.box-head a {
	color: inherit;
	text-decoration: none;
}

/* The arrow of the old box headings, drawn in CSS so screen readers don't announce it */
.box-head a::after {
	content: " \203A";
}

.box-head a:hover {
	text-decoration: underline;
}

.box-lead {
	margin: 0 0 0.3rem;
	font-size: 1.15rem;
	line-height: 1.2;
}

.box-blurb {
	margin: 0 0 0.6rem;
	font-size: 0.98rem;
	line-height: 1.45;
	color: var(--muted);
}

.box-links {
	margin: 0 0 0.6rem;
	padding-left: 1.2rem;
	font: 600 1rem/1.3 var(--head-font);
}

.box-links li {
	margin-bottom: 0.45rem;
}

.box-links a {
	color: var(--ink);
}

.box-more,
.box-actions {
	margin: 0;
	font: 600 0.95rem var(--head-font);
}

.box-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
}

.box p {
	font-size: 1rem;
	margin-top: 0;
}

/* --- the "Advertise online" panel (formerly locale.jpg) --- */

/* Newsprint colors and the folio line's double rules, so the panel reads as part of the paper: "Advertise" in the italic reading font, "online" in spaced capitals, the phone number large in the headline font */
.sales-card {
	max-width: 370px;
	margin: 2rem auto 0;
	border: 1px solid var(--rule);
	border-top: 4px solid var(--rust);
	background: var(--cream);
	text-align: center;
}

.sales-card-top {
	padding: 1.4rem 1.6rem 0.6rem;
}

.sales-card-top img {
	display: block;
	width: 100%;
}

.sales-card-bottom {
	padding: 0 1.4rem 1.5rem;
}

.sales-card h2 {
	margin: 0 0 0.9rem;
	padding: 0.5rem 0;
	border-block: 3px double var(--ink);
	line-height: 1;
}

.sales-card-verb {
	font: italic 600 2.2rem/1 var(--text-font);
	color: var(--rust);
}

.sales-card-where {
	margin-left: 0.3rem;
	font: 700 1rem/1 var(--head-font);
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: var(--ink);
}

.sales-card address {
	font-style: normal;
}

.sales-card-street {
	display: block;
	font: 1.05rem/1.45 var(--text-font);
	letter-spacing: 0.02em;
	color: var(--text);
}

.sales-card-phone {
	display: block;
	margin: 0.6rem 0 0.3rem;
	font: 700 2.5rem/1.1 var(--head-font);
	color: var(--ink);
	text-decoration: none;
}

.sales-card-phone:hover {
	color: var(--rust);
}

.sales-card-email {
	font: italic 1.05rem var(--text-font);
}

/* --- classified ads: the old graphic's heading as real text, over the same spot --- */

.want-ads {
	position: relative;
	max-width: 370px;
}

.want-ads img {
	display: block;
	width: 100%;
}

.want-ads h2 {
	position: absolute;
	top: 1.2%;
	left: 0.8%;
	right: 1.4%;
	margin: 0;
	padding: 0.05em 0 0.1em;
	background: var(--paper);
	border: 2px solid #111;
	border-radius: 5px;
	font: 800 clamp(1.2rem, 7.3cqi, 1.7rem)/1.1 Arial, "Helvetica Neue", sans-serif;
	text-align: center;
	color: #000;
}

.want-ads {
	container-type: inline-size;
}

/* --- archives --- */

.archive-year {
	margin-bottom: 0.6rem;
	border: 1px solid var(--rule);
	border-radius: 4px;
	background: var(--box);
}

.archive-year summary {
	padding: 0.6rem 0.9rem;
	font: 700 1.25rem var(--head-font);
	cursor: pointer;
}

.archive-count {
	font-weight: 400;
	font-size: 1rem;
	color: var(--muted);
}

.archive-list {
	columns: 14rem auto;
	column-gap: 1.5rem;
	margin: 0;
	padding: 0.2rem 0.9rem 0.9rem 2rem;
	font: 1.02rem/1.3 var(--head-font);
}

.archive-list li {
	padding: 0.2rem 0;
	break-inside: avoid;
}

/* --- subscriptions --- */

.plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1.2rem;
	margin: 1.5rem 0;
	padding: 0;
	list-style: none;
}

.plan {
	display: flex;
	flex-direction: column;
	padding: 1.2rem;
	background: var(--box);
	border: 1px solid var(--rule);
	border-top: 4px solid var(--rust);
	border-radius: 4px;
}

.plan-name {
	margin: 0 0 0.3rem;
	font-size: 1.5rem;
}

.plan-price {
	margin: 0 0 0.6rem;
	font: 700 2rem/1 var(--head-font);
	color: var(--rust);
}

.plan-term {
	font-size: 1rem;
	font-weight: 400;
	color: var(--muted);
}

.plan-about {
	flex: 1;
	margin: 0 0 1rem;
	font-size: 1.02rem;
}

.note {
	font-size: 1rem;
	color: var(--muted);
}

/* --- help page --- */

.label-diagram {
	margin: 0 0 1rem;
	max-width: 450px;
}

.label-diagram figcaption {
	font: italic 0.95rem var(--head-font);
	color: var(--muted);
}

/* --- ads column --- */

.ads {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	font-family: var(--head-font);
}

.ads-head {
	align-self: stretch;
	margin: 0;
	padding-bottom: 0.3rem;
	border-bottom: 1px solid var(--rule);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	text-align: center;
	color: var(--muted);
}

.ad {
	display: block;
	max-width: 240px;
}

.ad img {
	display: block;
}


/* --- footer --- */

.site-footer {
	max-width: 1200px;
	margin: 0 auto 2rem;
	padding: 1rem var(--gutter);
	background: var(--rust);
	color: var(--cream);
	text-align: center;
	font: 1rem/1.5 var(--text-font);
	letter-spacing: 0.01em;
	user-select: none;
	-webkit-user-select: none;
}

.site-footer p {
	margin: 0.2rem 0;
}

/* Each sentence is a unit: when the line runs out of room, it breaks between sentences (before "All rights reserved."), not in the middle of one */
.site-footer p {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	column-gap: 0.3em;
}

/* A sentence too long for a phone's width splits into even halves rather than leaving one word alone on a line ("balance", not "pretty": tried 2026-11-16, its full first line and short second line looked lopsided when centered) */
.site-footer p span {
	text-wrap: balance;
}

/* A hyphenated word ("third-party") that must not break at its hyphen */
.site-footer .nobreak {
	white-space: nowrap;
}

/* Wide screens: the page column (folio line to footer) gets a thin frame against the soft blue surround, as the old site's page had */
@media (min-width: 1232px) {
	.folio,
	.breaking,
	.page,
	.site-footer {
		border-inline: 1px solid var(--frame);
	}

	.site-footer {
		border-bottom: 1px solid var(--frame);
	}

	.page {
		box-shadow: 0 6px 24px rgb(60 45 20 / 0.14);
	}
}

/* --- "please stand by" page (database down) --- */

.standby {
	max-width: 40rem;
	margin: 0 auto;
	padding: 2rem var(--gutter);
	background: var(--paper);
	text-align: center;
}

/* --- smaller screens --- */

/* Below this width the top-right login would crowd the centered wordmark (up to 760px wide), so it moves to its own row above the nameplate; its panel still opens over the page rather than pushing the masthead down */
@media (max-width: 1320px) {
	.account {
		position: relative;
		display: flex;
		justify-content: flex-end;
		top: auto;
		right: auto;
		padding: 0.6rem var(--gutter) 0;
	}

	.login {
		position: relative;
	}

	.masthead .login-form {
		position: absolute;
		top: 100%;
		right: 0;
	}

	.nameplate {
		padding-top: 1.1rem;
	}
}

/* Tablets: the ads move below the content, in a row */
@media (max-width: 1000px) {
	.page {
		grid-template-columns: minmax(0, 1fr);
	}

	.ads {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		padding-top: 1rem;
		border-top: 2px solid var(--ink);
	}

	.ads-head {
		flex-basis: 100%;
	}
}

/* Phones and narrow tablets: one column; the sidebar follows the stories */
@media (max-width: 760px) {
	.with-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.story .story-photo {
		margin: 0 0 1rem;
	}

	.masthead .login-form {
		width: min(17rem, calc(100vw - 2 * var(--gutter)));
	}

	.folio {
		justify-content: center;
		text-align: center;
	}

	.folio-slogan {
		order: -1;
		flex-basis: 100%;
	}

	/* Even rows instead of ragged wrapping: up to four sections per row (sections without stories this week drop out, so the count varies), and the other four links as two rows of two */
	.sections ul {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr));
	}

	/* Needs the extra class to outrank ".sections ul" above */
	.sections .sections-more {
		grid-template-columns: repeat(2, 1fr);
	}

	.sections a {
		padding: 0.55rem 0.3rem;
		font-size: 0.85rem;
	}
}

/* --- high contrast (Windows' contrast themes, and other forced colors) ---
   The browser swaps in the reader's own colors and drops backgrounds and shadows, so whatever relied on them gets a form that survives: buttons get a border, and the menu's current page (a gold box-shadow) becomes a thick underline */

@media (forced-colors: active) {
	button,
	.button {
		border: 2px solid ButtonText;
	}

	.sections a[aria-current="page"] {
		text-decoration: underline;
		text-decoration-thickness: 3px;
		text-underline-offset: 0.3em;
	}
}

/* --- print --- */

/* Replaces the old separate "printer friendly version" page: printing any page keeps just the nameplate and the content, in black on white */
@media print {
	body {
		background: #fff;
		color: #000;
		font-size: 12pt;
	}

	.skip,
	.account,
	.sections,
	.folio-phone,
	.folio-slogan,
	.breaking,
	.ads,
	.column-side,
	.story-tools,
	.sales-card {
		display: none;
	}

	.masthead {
		background: none;
		color: #000;
		border-bottom: 2px solid #000;
	}

	.wordmark img {
		filter: brightness(0);
		width: 60%;
	}

	.tagline-edition {
		color: #000;
	}

	/* Of the folio line, only the edition date prints, so a printed story says which week's paper it's from */
	.folio {
		display: block;
		padding: 0.3rem 0 0.6rem;
		background: none;
		border-bottom: 1px solid #000;
		color: #000;
		font-size: 11pt;
		text-align: center;
	}

	.page,
	.with-sidebar {
		display: block;
		padding: 0;
	}

	a {
		color: #000;
		text-decoration: none;
	}

	.story-text p {
		font-size: 12pt;
		max-width: none;
	}

	.site-footer {
		background: none;
		color: #000;
		border-top: 1px solid #000;
	}
}
