/* TXK keepsake print view ("Classic"). Portrait = 2 columns, landscape = photo beside headline + 3 columns.
   Screen shows a paper preview with a toolbar; print output is the sheet only. */

@page { margin: 0.6in 0.7in 0.65in; }
@page {
	@bottom-left  { content: "TXKtoday.com"; font: 600 7.5pt 'TXKP Sans', Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #888; }
	@bottom-right { content: "Page " counter(page) " of " counter(pages); font: 500 7.5pt 'TXKP Sans', Arial, sans-serif; color: #888; }
}
@page :first { @bottom-left { content: none; } @bottom-right { content: none; } }

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-print-color-adjust: exact; print-color-adjust: exact; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: #1a1a1a; background: #fff; font: 10.4pt/1.5 'TXKP Serif', Georgia, 'Times New Roman', serif; }
img { max-width: 100%; height: auto; }

/* ── Masthead ── */
.txkp-mast { text-align: center; }
.txkp-logo { width: 1.8in; display: block; margin: 0 auto .06in; }
.txkp-dateline { display: flex; justify-content: space-between; gap: 1em; font: 600 7.5pt 'TXKP Sans', Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #444;
	border-top: 2.5pt solid #FF9000; border-bottom: .6pt solid #1a1a1a; padding: .05in 0; margin-bottom: .18in; }

/* ── Headline block ── */
.txkp-kicker { font: 700 8pt 'TXKP Sans', Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #C8102E; text-align: center; }
.txkp-head h1 { font: 700 20pt/1.18 'TXKP Display', Georgia, serif; text-align: center; margin: .05in 0 .08in; letter-spacing: -.01em; text-wrap: balance; }
.txkp-deck { font: italic 11.5pt/1.4 'TXKP Serif', Georgia, serif; color: #444; text-align: center; margin: 0 .4in .1in; text-wrap: balance; }
.txkp-byline { text-align: center; font: 600 7.8pt 'TXKP Sans', Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #333; margin-bottom: .14in; }
.txkp-byline span { color: #999; margin: 0 .5em; }
.txkp-lead { margin: 0 0 .22in; break-inside: avoid; }
.txkp-lead img { width: 100%; display: block; border: .5pt solid #ccc; max-height: 5.2in; object-fit: cover; }
.txkp-lead figcaption { font: italic 8.5pt/1.35 'TXKP Serif', Georgia, serif; color: #555; margin-top: .05in; text-align: right; }

/* ── Story body ── */
.txkp-body { column-count: 2; column-gap: .32in; column-rule: .5pt solid #ddd; orphans: 3; widows: 3; }
.txkp-body p { margin: 0 0 .09in; text-align: justify; hyphens: auto; }
.txkp-body > p:first-of-type::first-letter { float: left; font: 700 41pt/.82 'TXKP Display', Georgia, serif; color: #C8102E; margin: .04in .07in 0 0; }
.txkp-body h2, .txkp-body h3, .txkp-body h4 { font: 700 11.5pt/1.25 'TXKP Display', Georgia, serif; margin: .14in 0 .06in; break-after: avoid; text-align: left; }
.txkp-body h3, .txkp-body h4 { font-size: 10.5pt; }
.txkp-body figure { margin: .08in 0 .14in; break-inside: avoid; }
.txkp-body figure img, .txkp-body p > img { width: 100%; display: block; }
.txkp-body figcaption { font: italic 8pt/1.35 'TXKP Serif', Georgia, serif; color: #555; margin-top: .04in; text-align: left; }
.txkp-body ul, .txkp-body ol { margin: 0 0 .09in; padding-left: .18in; }
.txkp-body li { margin-bottom: .05in; }
.txkp-body blockquote { margin: .1in 0; padding-left: .12in; border-left: 2pt solid #FF9000; font-style: italic; }
.txkp-body table { width: 100%; border-collapse: collapse; font-size: 8.8pt; margin: .08in 0 .12in; break-inside: avoid; }
.txkp-body th, .txkp-body td { border-bottom: .5pt solid #ccc; padding: .03in .04in; text-align: left; vertical-align: top; }
.txkp-body a { color: inherit; text-decoration: none; }
.txkp-body .wp-block-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .06in; }
.txkp-body .wp-block-gallery figure { margin: 0; }
.txkp-body hr { border: 0; border-top: .5pt solid #ccc; margin: .12in 0; }
.txkp-online-note { font: italic 8.5pt/1.35 'TXKP Serif', Georgia, serif !important; color: #666; text-align: left !important; border-left: 2pt solid #FF9000; padding-left: .08in; }
.txkp-end { text-align: center; color: #FF9000; font-size: 9pt; letter-spacing: .4em; margin-top: .12in; column-span: all; }

/* ── Closing credit ── */
.txkp-ad + .txkp-colophon { margin-top: .2in; }
.txkp-colophon { margin-top: .3in; border-top: .6pt solid #1a1a1a; padding-top: .14in; display: flex; align-items: center; gap: .22in; break-inside: avoid; }
.txkp-qr { width: .85in; height: .85in; flex: none; }
.txkp-qr svg { width: 100%; height: 100%; display: block; }
.txkp-colophon-text { flex: 1; font: 8.6pt/1.45 'TXKP Serif', Georgia, serif; color: #444; }
.txkp-colophon-text b { display: block; margin-bottom: .03in; font: 700 8pt 'TXKP Sans', Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #1a1a1a; }
.txkp-link { font: 700 9pt 'TXKP Sans', Arial, sans-serif; color: #E07F00; }
.txkp-mark { width: 1.05in; flex: none; }

/* ── Banner ad (end of story, above the credit; last page only) ── */
.txkp-ad { margin-top: .24in; text-align: center; break-inside: avoid; break-after: avoid; }
.txkp-ad-label { font: 600 6.5pt 'TXKP Sans', Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #999; margin-bottom: .04in; }
.txkp-ad broadstreet-zone { display: block; }
.txkp-ad img, .txkp-ad iframe { display: block; margin: 0 auto; max-width: 6.5in !important; max-height: 1.1in !important; width: auto !important; height: auto !important; object-fit: contain; border: 0; }
.txkp-ad:not(:has(img, iframe, video, svg)) { display: none; }
.txkp-ad [class*="close"], .txkp-ad button { display: none !important; }

/* ── Landscape ── */
.txkp--landscape .txkp-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: .3in; align-items: center; margin-bottom: .2in; }
.txkp--landscape .txkp-lead { order: -1; margin: 0; }
.txkp--landscape .txkp-lead img { max-height: 3.6in; }
.txkp--landscape .txkp-head > * { text-align: left; margin-left: 0; margin-right: 0; }
.txkp--landscape .txkp-head h1 { font-size: 20pt; }
.txkp--landscape .txkp-deck { font-size: 11pt; }
.txkp--landscape .txkp-byline { margin-bottom: 0; }
.txkp--landscape .txkp-top:not(:has(.txkp-lead)) { display: block; }
.txkp--landscape .txkp-top:not(:has(.txkp-lead)) .txkp-head > * { text-align: center; }
.txkp--landscape .txkp-dateline { margin-bottom: .16in; }
.txkp--landscape .txkp-logo { width: 1.6in; }
.txkp--landscape .txkp-body { column-count: 3; column-gap: .28in; }
.txkp--landscape .txkp-body p { text-align: left; hyphens: manual; }
.txkp--landscape .txkp-body figure img { max-height: 1.75in; object-fit: cover; }

/* ── Screen: paper preview + toolbar ── */
@media screen {
	body { background: #e9e6e1; padding-bottom: 40px; }
	.txkp-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px;
		background: #1a1a1a; color: #fff; font: 500 14px/1.3 'TXKP Sans', Arial, sans-serif; }
	.txkp-back { color: #fff; text-decoration: none; margin-right: auto; }
	.txkp-back:hover { text-decoration: underline; }
	.txkp-layouts { display: inline-flex; border: 1px solid #555; border-radius: 6px; overflow: hidden; }
	.txkp-layouts a { color: #ddd; text-decoration: none; padding: 7px 14px; }
	.txkp-layouts a[aria-current] { background: #fff; color: #1a1a1a; font-weight: 700; }
	.txkp-print { font: 700 14px 'TXKP Sans', Arial, sans-serif; background: #FF9000; color: #1a1a1a; border: 0; border-radius: 6px; padding: 9px 22px; cursor: pointer; }
	.txkp-print:hover { background: #ffa733; }
	.txkp-tip { flex-basis: 100%; margin: 0; font-size: 12px; color: #bbb; text-align: right; }
	.txkp-sheet { width: 8.5in; max-width: calc(100% - 32px); margin: 24px auto 0; padding: .6in .7in .65in; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
	.txkp--landscape .txkp-sheet { width: 11in; padding: .5in .6in .55in; }
}
@media screen and (max-width: 760px) {
	body { font-size: 16px; }
	.txkp-sheet, .txkp--landscape .txkp-sheet { max-width: 100%; margin: 0; padding: 22px 18px 30px; box-shadow: none; }
	.txkp-tip { text-align: left; }
	.txkp-dateline { flex-direction: column; gap: 2px; align-items: center; }
	.txkp-head h1, .txkp--landscape .txkp-head h1 { font-size: 27px; margin-left: 0; margin-right: 0; }
	.txkp-deck { margin-left: 0; margin-right: 0; font-size: 17px; }
	.txkp--landscape .txkp-top { display: block; }
	.txkp--landscape .txkp-lead { margin-bottom: 18px; }
	.txkp-body, .txkp--landscape .txkp-body { column-count: 1; }
	.txkp-body p { text-align: left; hyphens: manual; }
	.txkp--landscape .txkp-body figure img { max-height: none; }
}

/* ── Print ── */
@media print {
	.txkp-bar { display: none !important; }
	.txkp-sheet { width: auto; margin: 0; padding: 0; box-shadow: none; }
}
