/* Black Type Bugler daily edition. Base: the BTB Racing Form theme stylesheet (below), then the edition page frame. */
/* ---------- Tokens: day edition, then night edition ---------- */
:root {
	--rf-paper: #ffffff;
	--rf-panel: #f1f1ef;
	--rf-ink: #0c0c0d;
	--rf-mute: #5c5c63;
	--rf-soft: #d5d5d8;
	--rf-rule: #0c0c0d;
	--rf-band: #0c0c0d;
	--rf-band-ink: #ffffff;
	--rf-accent: #c8102e;
	--rf-gold: #ffd23f;
	--rf-hl: #fff0a3;
	--rf-hl-ink: #0c0c0d;
	--rf-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	--rf-body: "Source Serif 4", Georgia, "Times New Roman", serif;
	--rf-data: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}
html.btb-night {
	--rf-paper: #101113;
	--rf-panel: #1b1c1f;
	--rf-ink: #ececee;
	--rf-mute: #a3a3aa;
	--rf-soft: #34353a;
	--rf-rule: #ececee;
	--rf-band: #000000;
	--rf-band-ink: #ffffff;
	--rf-accent: #ff5468;
	--rf-hl: #4d4310;
	--rf-hl-ink: #fff6cf;
	color-scheme: dark;
}

/* ---------- Page ---------- */
body.btb-rf,
body.btb-rf #page,
body.btb-rf .cm-content {
	background: var(--rf-paper);
	color: var(--rf-ink);
}
body.btb-rf { font-family: var(--rf-body); --cm-color-1: var(--rf-accent); --cm-color-5: var(--rf-band); }
body.btb-rf #cm-masthead a,
body.btb-rf .cm-post-categories a,
body.btb-rf .cm-below-entry-meta a,
body.btb-rf .cm-entry-title a,
body.btb-rf .cm-secondary li a { text-decoration: none; }
body.btb-rf a { color: var(--rf-ink); }
body.btb-rf a:hover { color: var(--rf-accent); }
body.btb-rf :focus-visible { outline: 2px solid var(--rf-accent); outline-offset: 2px; }

/* ---------- Header: black nameplate band with a red rule, white menu bar under it ---------- */
body.btb-rf #cm-masthead,
body.btb-rf #cm-masthead .cm-header-main-row,
body.btb-rf #cm-masthead .cm-main-header {
	background: var(--rf-band);
}
body.btb-rf #cm-masthead .cm-header-main-row { border-bottom: 5px solid var(--rf-accent); padding: 14px 0 10px; }
body.btb-rf .cm-site-title,
body.btb-rf .cm-site-title a {
	margin: 0;
	font: italic 800 clamp(40px, 6.4vw, 84px)/.92 var(--rf-head);
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: var(--rf-band-ink) !important;
	text-decoration: none;
}
body.btb-rf .cm-site-description {
	margin: 6px 0 0;
	font: 600 13px/1.3 var(--rf-head);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rf-band-ink);
	opacity: .78;
}
body.btb-rf #cm-masthead .cm-header-bottom-row .cm-bottom-row,
body.btb-rf #cm-masthead #cm-primary-nav { border-top: 0 !important; box-shadow: none !important; background-color: transparent !important; }
body.btb-rf #cm-masthead .cm-header-bottom-row,
body.btb-rf #cm-masthead .cm-primary-nav,
body.btb-rf #cm-masthead .cm-mobile-row .cm-header-bottom-row {
	background: var(--rf-paper) !important;
	border-bottom: 3px solid var(--rf-rule);
}
body.btb-rf .cm-primary-nav a,
body.btb-rf .cm-primary-nav li > a,
body.btb-rf .cm-primary-nav .menu-item a {
	color: var(--rf-ink) !important;
	font: 700 15px/1 var(--rf-head) !important;
	letter-spacing: .08em;
	text-transform: uppercase;
}
body.btb-rf .cm-primary-nav li:hover > a,
body.btb-rf .cm-primary-nav .current-menu-item > a { color: var(--rf-accent) !important; background: transparent !important; box-shadow: inset 0 -3px 0 var(--rf-accent); }
body.btb-rf .cm-primary-nav .sub-menu { background: var(--rf-paper); border: 1px solid var(--rf-rule); }
body.btb-rf .cm-mobile-row .cm-header-main-row .cm-site-title a { font-size: clamp(30px, 8vw, 44px); }
body.btb-rf .cm-menu-toggle svg, body.btb-rf .cm-mobile-nav-container svg { fill: var(--rf-ink); }

.btb-night-toggle {
	background: transparent;
	border: 1.5px solid var(--rf-ink);
	color: var(--rf-ink);
	padding: 7px 12px;
	min-height: 34px;
	font: 700 12.5px/1 var(--rf-head);
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	margin-left: auto;
}
body.btb-rf .cm-desktop-row .cm-header-bottom-row .cm-header-right-col { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.btb-archive { margin: 0; display: inline-flex; align-items: center; }
.btb-archive__select {
	-webkit-appearance: none; appearance: none;
	background: var(--rf-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235c5c63'/%3E%3C/svg%3E") no-repeat right 10px center;
	color: var(--rf-ink);
	border: 1.5px solid var(--rf-ink);
	border-radius: 0;
	min-height: 34px;
	padding: 6px 30px 6px 10px;
	font: 700 12.5px/1 var(--rf-head);
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	max-width: 220px;
}
.btb-archive__select:hover { border-color: var(--rf-accent); }
.btb-archive__hint { font: 500 12px/1.3 var(--rf-head); color: var(--rf-mute); margin-left: 8px; }
.btb-edition { align-items: center; }
.btb-edition .btb-archive__select { font-size: 12px; min-height: 30px; }
.btb-archive-dock { max-width: 1140px; margin: 0 auto; padding: 14px 16px; }
.btb-night-toggle:hover { background: var(--rf-ink); color: var(--rf-paper); }
.cm-mobile-row .cm-header-main-row .btb-night-toggle { border-color: var(--rf-band-ink); color: var(--rf-band-ink); }

/* ---------- Post lists (blog pages 2+, categories, search) ---------- */
body.btb-rf .cm-posts .post,
body.btb-rf .cm-posts article {
	background: var(--rf-paper);
	border: 0;
	border-top: 3px solid var(--rf-rule);
	border-radius: 0;
	box-shadow: none;
}
body.btb-rf .cm-post-categories a,
body.btb-rf .cm-entry-header-meta .cm-post-categories a {
	background: var(--rf-band) !important;
	color: var(--rf-band-ink) !important;
	border-radius: 0;
	font: 700 11.5px/1 var(--rf-head);
	letter-spacing: .1em;
	padding: 4px 7px 3px;
}
body.btb-rf .cm-entry-title,
body.btb-rf .cm-entry-title a {
	font-family: var(--rf-head);
	font-weight: 700;
	letter-spacing: -.005em;
	color: var(--rf-ink);
	text-wrap: balance;
}
body.btb-rf .cm-posts .cm-entry-title { font-size: 28px; line-height: 1.05; }
body.btb-rf .cm-below-entry-meta,
body.btb-rf .cm-below-entry-meta a,
body.btb-rf .cm-below-entry-meta span {
	font: 600 13px/1.3 var(--rf-head);
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--rf-mute);
}
body.btb-rf .cm-below-entry-meta svg { fill: var(--rf-mute); }
body.btb-rf .cm-entry-summary { color: var(--rf-ink); }
body.btb-rf .cm-entry-button,
body.btb-rf .more-link {
	background: var(--rf-band) !important;
	color: var(--rf-band-ink) !important;
	border-radius: 0;
	font: 700 13px/1 var(--rf-head);
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 10px 14px;
}
body.btb-rf .cm-entry-button span { background: transparent !important; color: inherit !important; padding: 0 !important; font: inherit; }
body.btb-rf .cm-entry-button:hover { background: var(--rf-accent) !important; }
body.btb-rf .cm-page-header { margin-bottom: 14px; }
body.btb-rf .cm-page-header .cm-page-title,
body.btb-rf .cm-page-header .cm-page-title span { background: transparent !important; color: var(--rf-ink) !important; padding: 0 !important; border: 0 !important; font: 800 34px/1.1 var(--rf-head); letter-spacing: 0; }
body.btb-rf .cm-page-header .cm-page-title { padding-bottom: 8px !important; }
body.btb-rf .page-numbers, body.btb-rf .nav-links a { font-family: var(--rf-head); }

/* ---------- Sidebar widgets ---------- */
body.btb-rf .cm-secondary .widget { background: transparent; }
body.btb-rf .cm-widget-title,
body.btb-rf .widget-title { border-bottom: 3px solid var(--rf-accent) !important; }
body.btb-rf .cm-widget-title span,
body.btb-rf .widget-title span {
	background: var(--rf-band) !important;
	color: var(--rf-band-ink) !important;
	font: 800 15px/1 var(--rf-head);
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 9px 12px 7px;
}
body.btb-rf .cm-secondary li a { font-family: var(--rf-head); font-size: 16px; font-weight: 600; color: var(--rf-ink); }
body.btb-rf .search-wrap input[type="search"], body.btb-rf .search-wrap .search-field { background: var(--rf-paper); color: var(--rf-ink); border: 1.5px solid var(--rf-rule); border-radius: 0; }
body.btb-rf .search-wrap button, body.btb-rf .search-wrap .search-icon { background: var(--rf-band) !important; border-radius: 0; }

/* ---------- Single post ---------- */
body.btb-rf.single .cm-posts { max-width: 920px; margin: 0 auto; }
body.btb-rf.single .cm-posts article { border-top: 0; }
body.btb-rf.single .cm-entry-title {
	font-size: clamp(36px, 5.4vw, 62px);
	line-height: .98;
	margin: 10px 0 12px;
}
body.btb-rf.single .cm-below-entry-meta { border-top: 1px solid var(--rf-rule); border-bottom: 1px solid var(--rf-soft); padding: 9px 0; margin-bottom: 20px; }
body.btb-rf.single .cm-entry-summary { font: 400 18px/1.62 var(--rf-body); }
body.btb-rf.single .cm-entry-summary p,
body.btb-rf.single .cm-entry-summary li { margin: 0 0 1em; font-size: 18px; line-height: 1.62; }
body.btb-rf.single .cm-entry-summary strong { font-weight: 700; }
body.btb-rf .btb-lede::first-letter { float: left; font: 800 4.2em/.8 var(--rf-head); margin: .06em .08em 0 0; color: var(--rf-accent); }

/* race facts box */
.btb-facts { margin: 0 0 24px; background: var(--rf-band); color: var(--rf-band-ink); border-top: 5px solid var(--rf-accent); }
.btb-facts__name { padding: 12px 16px 2px; font: 800 26px/1.05 var(--rf-head); letter-spacing: .01em; text-transform: uppercase; }
.btb-facts__grid { display: flex; flex-wrap: wrap; margin: 0; }
.btb-facts__grid > div { flex: 1 1 auto; padding: 9px 16px; border-right: 1px solid rgba(255,255,255,.18); min-width: 0; }
.btb-facts__grid > div:last-child { border-right: 0; }
.btb-facts dt { font: 700 11px/1 var(--rf-head); letter-spacing: .13em; text-transform: uppercase; opacity: .7; }
.btb-facts dd { margin: 4px 0 0; font: 800 19px/1.15 var(--rf-head); white-space: nowrap; }
.btb-facts__purse dd { color: var(--rf-gold); }
.btb-facts__cond { padding: 8px 16px 10px; border-top: 1px solid rgba(255,255,255,.18); font: 600 14px/1.3 var(--rf-head); letter-spacing: .04em; opacity: .85; }

/* runners: saddlecloth, name, morning line */
.btb-runner { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; margin: 1.8em 0 .5em; padding-top: 12px; border-top: 1px solid var(--rf-rule); }
.btb-runner__name { font: 800 24px/1.05 var(--rf-head); letter-spacing: .01em; text-transform: uppercase; }
.btb-runner__ml { text-align: right; font: 800 22px/1 var(--rf-head); font-variant-numeric: tabular-nums; }
.btb-runner__ml small { display: block; font: 700 10px/1 var(--rf-head); letter-spacing: .14em; color: var(--rf-mute); margin-bottom: 3px; }
body.btb-rf .cm-entry-summary p.btb-runner__meta { font: 500 15px/1.45 var(--rf-data); letter-spacing: .02em; color: var(--rf-mute); background: var(--rf-panel); border-left: 3px solid var(--rf-rule); padding: 9px 14px; }
body.btb-rf .cm-entry-summary p.btb-runner__meta strong { color: var(--rf-ink); }
.btb-cloth { display: inline-grid; place-items: center; width: 38px; height: 38px; font: 800 20px/1 var(--rf-head); color: #fff; background: #d0202e; border: 1px solid rgba(0,0,0,.35); flex: none; }
.btb-cloth--2 { background: #ffffff; color: #111; } .btb-cloth--3 { background: #1f4fb4; } .btb-cloth--4 { background: #f2d200; color: #111; }
.btb-cloth--5 { background: #178a3e; } .btb-cloth--6 { background: #111111; border-color: #555; } .btb-cloth--7 { background: #f07c12; }
.btb-cloth--8 { background: #f39ac0; color: #111; } .btb-cloth--9 { background: #2bb5b8; color: #111; } .btb-cloth--10 { background: #6b2fa0; }
.btb-cloth--11 { background: #8e8e8e; } .btb-cloth--12 { background: #9bd33a; color: #111; } .btb-cloth--13 { background: #6b4423; } .btb-cloth--14 { background: #7a1430; }

/* picks */
.btb-subhead { font: 800 26px/1.1 var(--rf-head) !important; margin: 1.6em 0 .5em !important; padding-top: .5em; border-top: 3px solid var(--rf-rule); text-transform: none; color: var(--rf-ink); }
.btb-subdek { font: 600 14px/1.2 var(--rf-head) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--rf-mute); margin: -.2em 0 .6em !important; }
.btb-picks { border: 2px solid var(--rf-rule); padding: 4px 16px 8px; margin: 1.2em 0 1.6em; }
.btb-pick { display: grid; grid-template-columns: 4.4em 38px minmax(0,1fr); gap: 4px 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--rf-soft); }
.btb-pick:last-child { border-bottom: 0; }
.btb-pick__place { font: 800 15px/1.2 var(--rf-head); letter-spacing: .06em; text-transform: uppercase; color: var(--rf-accent); padding-top: 3px; }
.btb-pick__name { font: 800 20px/1.1 var(--rf-head); }
.btb-pick__odds { font-weight: 600; color: var(--rf-mute); margin-left: 6px; }
body.btb-rf .cm-entry-summary .btb-pick__body p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.45; }

/* tables */
.btb-table-wrap { overflow-x: auto; margin: 1.2em 0 1.8em; -webkit-overflow-scrolling: touch; }
body.btb-rf table.btb-table { width: 100%; border-collapse: collapse; border: 0; font: 500 15px/1.25 var(--rf-data); background: transparent; }
body.btb-rf table.btb-table td,
body.btb-rf table.btb-table th { border: 0; border-bottom: 1px solid var(--rf-soft); padding: 7px 10px 7px 0; background: transparent; color: var(--rf-ink); vertical-align: middle; text-align: left; }
body.btb-rf table.btb-table tr.btb-thead td,
body.btb-rf table.btb-table tr.btb-thead th { font: 700 11.5px/1.2 var(--rf-head); letter-spacing: .1em; text-transform: uppercase; color: var(--rf-mute); border-bottom: 1.5px solid var(--rf-rule); }
body.btb-rf table.btb-table tr.btb-thead strong { font-weight: 700; }
body.btb-rf table.btb-table tbody tr:not(.btb-thead):nth-child(even) td { background: color-mix(in srgb, var(--rf-panel) 60%, transparent); }
body.btb-rf table.btb-table tbody tr:not(.btb-thead):hover td { background: var(--rf-hl); color: var(--rf-hl-ink); }
body.btb-rf table.btb-table td.btb-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
body.btb-rf table.btb-table td a { color: inherit; text-decoration: none; }
body.btb-rf table.btb-table td a:hover { color: var(--rf-accent); text-decoration: underline; }
body.btb-rf table.btb-speeds td.btb-horse { font-weight: 700; }
body.btb-rf table.btb-speeds td.btb-num { font-size: 16px; }
body.btb-rf table.btb-speeds td.btb-gap { width: 14px; padding: 0; border-bottom: 0; background: transparent !important; }
body.btb-rf table.btb-speeds td.btb-yr { background: var(--rf-panel) !important; color: var(--rf-mute); font-size: 13.5px; }
body.btb-rf table.btb-speeds td.btb-yr.btb-num { color: var(--rf-ink); }
.btb-chip { display: inline-block; font: 800 11.5px/1 var(--rf-head); letter-spacing: .05em; padding: 3px 5px 2px; margin-right: 6px; border: 1.5px solid var(--rf-ink); color: var(--rf-ink); vertical-align: 1px; min-width: 26px; text-align: center; }
.btb-chip--g1 { background: var(--rf-ink); color: var(--rf-paper); }
.btb-chip--g3 { border-style: dashed; }
.btb-chip--l { border-width: 1px; font-weight: 600; }

/* race calls */
.btb-video { margin: 0 0 12px; }
.btb-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #000; }
.btb-subscribe { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; border: 1.5px solid var(--rf-rule); padding: 10px 14px; margin: 0 0 1.6em; }
.btb-subscribe__text { font: 600 15px/1.3 var(--rf-head); letter-spacing: .03em; }
body.btb-rf .btb-btn { display: inline-block; background: var(--rf-accent); color: #fff !important; text-decoration: none; font: 700 14px/1 var(--rf-head); letter-spacing: .09em; text-transform: uppercase; padding: 11px 16px; }
body.btb-rf .btb-btn:hover { background: var(--rf-ink); color: var(--rf-paper) !important; }

/* ---------- Front page ---------- */
body.btb-front-page .cm-primary.btb-front__main { width: 100%; max-width: 100%; float: none; padding-left: 0; padding-right: 0; box-sizing: border-box; }
body.btb-rf .cm-content { padding-top: 32px; }
.btb-edition { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 8px 2px; margin-bottom: 20px; border-bottom: 1px solid var(--rf-rule); font: 600 13px/1.3 var(--rf-head); letter-spacing: .1em; text-transform: uppercase; }
.btb-edition span:last-child { color: var(--rf-mute); }
.btb-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 28px; }
.btb-lead { min-width: 0; padding-right: 28px; border-right: 1px solid var(--rf-soft); }
.btb-rail { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.btb-row { grid-column: 1 / -1; min-width: 0; }
.btb-kicker { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font: 700 13px/1.2 var(--rf-head); letter-spacing: .1em; text-transform: uppercase; color: var(--rf-accent); margin-bottom: 6px; }
.btb-kicker__sec { color: var(--rf-mute); }
.btb-kicker .btb-chip { margin-right: 0; }
.btb-hl { margin: 4px 0 6px; font: 700 26px/1.05 var(--rf-head); text-wrap: balance; color: var(--rf-ink); }
.btb-hl a { color: var(--rf-ink); text-decoration: none; }
.btb-hl a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--rf-ink); }
.btb-hl--lead { font-size: clamp(38px, 5vw, 60px); line-height: .98; }
.btb-deck { font: italic 400 21px/1.4 var(--rf-body); color: var(--rf-mute); margin: 0 0 10px; }
.btb-byline { font: 600 13px/1.3 var(--rf-head); letter-spacing: .07em; text-transform: uppercase; color: var(--rf-mute); margin: 0 0 14px; }
.btb-byline b { color: var(--rf-ink); }
.btb-field { margin: 4px 0 6px; }
.btb-field h4 { margin: 0 0 6px; font: 800 13px/1 var(--rf-head); letter-spacing: .14em; text-transform: uppercase; color: var(--rf-mute); }
.btb-field ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.btb-field li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--rf-soft); font: 700 15.5px/1.15 var(--rf-head); text-transform: uppercase; }
.btb-field .btb-cloth { width: 28px; height: 28px; font-size: 15px; }
.btb-field li span:last-child { font-variant-numeric: tabular-nums; color: var(--rf-mute); }
@media (max-width: 640px) { .btb-field ol { grid-template-columns: minmax(0, 1fr); } }
.btb-more { display: inline-block; font: 700 14px/1.3 var(--rf-head); letter-spacing: .08em; text-transform: uppercase; color: var(--rf-accent) !important; text-decoration: none; padding: 8px 0; }
.btb-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 12px; padding: 8px 10px 7px; background: var(--rf-band); color: var(--rf-band-ink); border-bottom: 3px solid var(--rf-accent); font: 800 15px/1 var(--rf-head); letter-spacing: .13em; text-transform: uppercase; }
.btb-label a { color: var(--rf-band-ink) !important; text-decoration: none; font-weight: 700; opacity: .85; white-space: nowrap; }
.btb-label a:hover { opacity: 1; text-decoration: underline; }
body.btb-rf thead, body.btb-rf tfoot { background: transparent; }
table.btb-mini { width: 100%; border-collapse: collapse; border: 0; font: 500 15px/1.25 var(--rf-data); margin: 0; }
table.btb-mini th { font: 700 11px/1 var(--rf-head); letter-spacing: .12em; text-transform: uppercase; color: var(--rf-mute); text-align: left; padding: 0 6px 6px 0; border: 0; border-bottom: 1px solid var(--rf-rule); background: transparent; }
table.btb-mini td { padding: 6px 6px 6px 0; border: 0; border-bottom: 1px solid var(--rf-soft); vertical-align: baseline; background: transparent; color: var(--rf-ink); }
table.btb-mini td small { display: block; font-size: 12px; color: var(--rf-mute); letter-spacing: .02em; }
table.btb-mini .btb-num { text-align: right; font-variant-numeric: tabular-nums; }
table.btb-mini .btb-rk { color: var(--rf-mute); width: 1.6em; }
table.btb-mini .btb-fig { font-weight: 800; font-size: 17px; }
table.btb-mini tr.btb-top td { background: var(--rf-hl); color: var(--rf-hl-ink); }
table.btb-mini tr.btb-top td small { color: inherit; opacity: .75; }
.btb-rail .btb-byline { margin-top: 8px; }
.btb-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btb-cols > article { padding: 0 20px 18px; border-left: 1px solid var(--rf-soft); min-width: 0; }
.btb-cols > article:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.btb-ex { margin: 6px 0 8px; font: 400 16px/1.5 var(--rf-body); }
.btb-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; }
.btb-list { list-style: none; margin: 0; padding: 0; }
.btb-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--rf-soft); }
.btb-list li a { font: 700 18px/1.15 var(--rf-head); color: var(--rf-ink); text-decoration: none; }
.btb-list li a:hover { text-decoration: underline; }
.btb-list time { font: 600 13px/1 var(--rf-head); letter-spacing: .05em; text-transform: uppercase; color: var(--rf-mute); white-space: nowrap; }
.btb-list small { grid-column: 1 / -1; font: 500 12.5px/1.2 var(--rf-head); letter-spacing: .05em; text-transform: uppercase; color: var(--rf-mute); }

/* ---------- Footer ---------- */
body.btb-rf #cm-footer,
body.btb-rf .cm-footer,
body.btb-rf .cm-footer-bottom-row { background: var(--rf-band) !important; color: var(--rf-band-ink); border-top: 5px solid var(--rf-accent); }
body.btb-rf .cm-footer a, body.btb-rf .cm-footer .copyright, body.btb-rf .cm-footer .copyright a { color: var(--rf-band-ink) !important; font-family: var(--rf-head); letter-spacing: .04em; }

/* ---------- Night edition: ColorMag parts that keep their own colors ---------- */
html.btb-night body.btb-rf .cm-posts .post,
html.btb-night body.btb-rf .cm-secondary,
html.btb-night body.btb-rf .comments-area,
html.btb-night body.btb-rf .comment-respond { background: var(--rf-paper); color: var(--rf-ink); }
html.btb-night body.btb-rf input, html.btb-night body.btb-rf textarea { background: var(--rf-panel); color: var(--rf-ink); border-color: var(--rf-soft); }
html.btb-night body.btb-rf .cm-entry-summary,
html.btb-night body.btb-rf .cm-entry-summary p,
html.btb-night body.btb-rf h1, html.btb-night body.btb-rf h2, html.btb-night body.btb-rf h3, html.btb-night body.btb-rf h4 { color: var(--rf-ink); }
html.btb-night .btb-cloth--6 { border-color: #777; }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
	.btb-grid { grid-template-columns: minmax(0, 1fr); }
	.btb-lead { padding-right: 0; border-right: 0; }
	.btb-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
	.btb-split { grid-template-columns: minmax(0, 1fr); }
	.btb-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.btb-cols > article:nth-child(3n+1) { padding-left: 20px; border-left: 1px solid var(--rf-soft); }
	.btb-cols > article:nth-child(2n+1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
	.btb-cols { grid-template-columns: minmax(0, 1fr); }
	.btb-cols > article, .btb-cols > article:nth-child(n) { padding: 14px 0; border-left: 0; border-top: 1px solid var(--rf-soft); }
	body.btb-rf.single .cm-entry-summary { font-size: 17px; }
	.btb-runner__name { font-size: 20px; }
	.btb-pick { grid-template-columns: 38px minmax(0, 1fr); }
	.btb-pick__place { grid-column: 1 / -1; }
	.btb-facts__name { font-size: 22px; }
	.btb-deck { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ================= Edition page frame ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.btb-rf { margin: 0; background: var(--rf-paper); color: var(--rf-ink); font: 400 17px/1.55 var(--rf-body); }
.ed-wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ed-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Breeders Bowl bar (dated; see BTB_ED_PROMO_UNTIL) */
.ed-promo { background: #000; color: #fff; }
.ed-promo .ed-wrap { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding-block: 9px; text-align: center; }
.ed-promo__k { font: 800 15px/1.1 var(--rf-head); letter-spacing: .2em; text-transform: uppercase; }
.ed-promo__t { font: italic 700 16px/1.1 var(--rf-nameplate); color: #ff5468; }
.ed-promo__t::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 14px 0 0; vertical-align: middle; background: #ff5468; transform: rotate(45deg); }

/* Nameplate: red ribbon with folded tails, ears either side, folio rules under it */
:root { --rf-nameplate: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif; --rf-ribbon: #c8102e; --rf-ribbon-fold: #7d0a1c; }
.ed-mast { background: var(--rf-paper); color: var(--rf-ink); }
.ed-mast .ed-wrap { padding-block: 12px 0; }
.ed-motto { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font: 700 12.5px/1.2 var(--rf-head); letter-spacing: .22em; text-transform: uppercase; color: var(--rf-ink); }
.ed-motto::before, .ed-motto::after { content: ""; flex: 1 1 0; height: 1px; background: var(--rf-ink); }
.ed-motto span { text-align: center; }
.ed-plate { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; padding-bottom: 12px; }
.ed-ear { font: 700 13px/1.35 var(--rf-head); letter-spacing: .14em; text-transform: uppercase; color: var(--rf-ink); }
.ed-ear--l { justify-self: start; }
.ed-ear--r { justify-self: end; text-align: right; border: 1.5px solid var(--rf-ink); padding: 6px 10px; }
.ed-ribbon { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 34px 24px 26px; margin: 0 34px; background: var(--rf-ribbon); color: #fff !important; text-decoration: none; box-shadow: inset 0 0 0 4px var(--rf-ribbon), inset 0 0 0 5.5px rgba(255, 255, 255, .92); }
.ed-ribbon::before, .ed-ribbon::after { content: ""; position: absolute; top: 14px; bottom: -14px; width: 34px; background: var(--rf-ribbon-fold); }
.ed-ribbon::before { left: -34px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 38% 50%); }
.ed-ribbon::after { right: -34px; clip-path: polygon(0 0, 100% 0, 62% 50%, 100% 100%, 0 100%); }
.ed-ribbon:hover { color: #fff !important; filter: brightness(1.06); }
.ed-ribbon:focus-visible { outline: 3px solid var(--rf-ink); outline-offset: 4px; }
.ed-bugle { flex: 0 0 auto; align-self: center; margin-top: 10px; width: clamp(40px, 6vw, 70px); height: auto; color: #fff; }
.ed-ribbon__name { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.ed-ribbon__small { font: italic 700 clamp(15px, 2.1vw, 26px)/1 var(--rf-nameplate); letter-spacing: .06em; margin: 0 0 2px 3px; }
.ed-ribbon__big { font: 900 clamp(46px, 8.2vw, 104px)/.86 var(--rf-nameplate); letter-spacing: -.01em; }
.ed-dateline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; padding: 7px 0 6px; border-top: 4px solid var(--rf-ink); border-bottom: 1px solid var(--rf-ink); font: 700 13px/1.2 var(--rf-head); letter-spacing: .16em; text-transform: uppercase; }
.ed-dateline__folio { display: none; }

/* Inside box at the top of the right rail */
.ed-inside { background: var(--rf-ribbon); color: #fff; padding: 14px 16px 10px; text-align: center; box-shadow: inset 0 0 0 4px var(--rf-ribbon), inset 0 0 0 5px rgba(255, 255, 255, .85); }
.ed-inside__day { font: 900 34px/1 var(--rf-nameplate); text-transform: uppercase; letter-spacing: .02em; }
.ed-inside__date { font: 700 17px/1.2 var(--rf-head); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.ed-inside__label { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font: 800 13px/1 var(--rf-head); letter-spacing: .24em; text-transform: uppercase; }
.ed-inside__label::before, .ed-inside__label::after { content: ""; flex: 1 1 0; height: 1px; background: rgba(255, 255, 255, .7); }
.ed-inside ul { list-style: none; margin: 0; padding: 0; text-align: left; }
.ed-inside li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .3); font: 700 16px/1.2 var(--rf-head); letter-spacing: .05em; text-transform: uppercase; }
.ed-inside li:last-child { border-bottom: 0; }
.ed-inside a { color: #fff !important; text-decoration: none; }
.ed-inside a:hover { text-decoration: underline; }
.ed-inside li span { font-variant-numeric: tabular-nums; opacity: .85; }
@media (max-width: 960px) { .ed-inside { grid-column: 1 / -1; } }

.ed-bar { border-bottom: 3px solid var(--rf-rule); background: var(--rf-paper); }
.ed-bar .ed-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-block: 8px; }
.ed-bar__link { font: 700 14px/1 var(--rf-head); letter-spacing: .12em; text-transform: uppercase; color: var(--rf-ink); text-decoration: none; padding: 8px 0; box-shadow: inset 0 -3px 0 transparent; }
.ed-bar__link:hover, .ed-bar__link.is-on { color: var(--rf-accent); box-shadow: inset 0 -3px 0 var(--rf-accent); }
.ed-bar__right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ed-issues { display: flex; gap: 6px; align-items: center; margin: 0; }
.ed-issues select, .ed-go, .ed-night { font: 700 13px/1 var(--rf-head); letter-spacing: .1em; text-transform: uppercase; color: var(--rf-ink); background: var(--rf-paper); border: 1.5px solid var(--rf-ink); border-radius: 0; padding: 9px 12px; min-height: 38px; }
.ed-issues select { padding-right: 28px; cursor: pointer; }
.ed-go, .ed-night { cursor: pointer; }
.ed-go:hover, .ed-night:hover { background: var(--rf-ink); color: var(--rf-paper); }
html.js .ed-go { display: none; }

.ed-main { padding-block: 26px 48px; }

/* one story */
body.btb-rf.single .cm-posts { max-width: 860px; margin: 0 auto; }
.ed-story__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ed-story__cats span { background: var(--rf-band); color: var(--rf-band-ink); font: 700 12px/1 var(--rf-head); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; }
body.btb-rf .cm-entry-title { margin: 0 0 12px; font: 800 clamp(34px, 5.4vw, 56px)/1 var(--rf-head); text-wrap: balance; color: var(--rf-ink); }
body.btb-rf .cm-below-entry-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; border-top: 2px solid var(--rf-rule); border-bottom: 1px solid var(--rf-soft); padding: 9px 0; margin-bottom: 22px; font: 600 13px/1.3 var(--rf-head); letter-spacing: .1em; text-transform: uppercase; color: var(--rf-mute); }
body.btb-rf .cm-entry-summary { font: 400 18px/1.62 var(--rf-body); }
body.btb-rf .cm-entry-summary p, body.btb-rf .cm-entry-summary li { margin: 0 0 1em; }
body.btb-rf .cm-entry-summary h2, body.btb-rf .cm-entry-summary h3, body.btb-rf .cm-entry-summary h4 { font-family: var(--rf-head); line-height: 1.1; }
body.btb-rf .cm-entry-summary a { color: var(--rf-accent); }
body.btb-rf .cm-entry-summary img { max-width: 100%; height: auto; }
body.btb-rf .cm-entry-summary figure { margin: 1.2em 0; max-width: 100%; }
body.btb-rf .cm-entry-summary iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
body.btb-rf .cm-entry-summary .wp-block-embed__wrapper { position: static; padding: 0; }
body.btb-rf .cm-entry-summary blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--rf-accent); font-style: italic; }
body.btb-rf .cm-entry-summary table:not(.btb-table) { border-collapse: collapse; max-width: 100%; }
.ed-orig { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; padding-top: 18px; border-top: 3px solid var(--rf-rule); }
.ed-back { font: 700 14px/1.3 var(--rf-head); letter-spacing: .08em; text-transform: uppercase; color: var(--rf-ink) !important; text-decoration: none; }
.ed-back:hover { color: var(--rf-accent) !important; }
body.btb-rf .btb-btn { display: inline-block; background: var(--rf-accent); color: #fff !important; text-decoration: none; font: 700 14px/1 var(--rf-head); letter-spacing: .09em; text-transform: uppercase; padding: 12px 16px; }
body.btb-rf .btb-btn:hover { background: var(--rf-ink); color: var(--rf-paper) !important; }

/* all stories */
.ed-list { max-width: 860px; }
.ed-list__title { margin: 0 0 4px; font: 800 clamp(34px, 5vw, 48px)/1 var(--rf-head); }
.ed-list__sub { margin: 0 0 24px; font: 600 14px/1.3 var(--rf-head); letter-spacing: .1em; text-transform: uppercase; color: var(--rf-mute); }
.ed-list section { margin-bottom: 26px; }

.ed-foot { background: var(--rf-band); color: var(--rf-band-ink); border-top: 6px solid var(--rf-accent); }
.ed-foot .ed-wrap { padding-block: 22px 30px; max-width: 1200px; }
.ed-foot p { margin: 0 0 8px; max-width: 760px; font: 400 15px/1.5 var(--rf-body); }
.ed-foot a { color: var(--rf-band-ink); }
.ed-foot__small { font: 600 13px/1.4 var(--rf-head) !important; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

@media (max-width: 720px) {
	.ed-ear { display: none; }
	.ed-plate { grid-template-columns: minmax(0, 1fr); justify-items: center; }
	.ed-ribbon { margin: 0 22px; padding: 8px 18px 16px 14px; gap: 10px; }
	.ed-ribbon::before, .ed-ribbon::after { width: 22px; top: 10px; bottom: -10px; }
	.ed-ribbon::before { left: -22px; }
	.ed-ribbon::after { right: -22px; }
	.ed-motto { font-size: 10.5px; letter-spacing: .14em; }
	.ed-dateline { font-size: 12px; letter-spacing: .1em; }
	.ed-dateline__folio { display: inline; }
	.ed-dateline span:nth-child(2) { display: none; }
	.ed-bar__right { margin-left: 0; width: 100%; }
	.ed-issues { flex: 1 1 auto; }
	.ed-issues select { flex: 1 1 auto; min-width: 0; }
	.btb-edition span:nth-child(2) { display: none; }
	body.btb-rf .cm-entry-summary { font-size: 17px; }
}

/* Lead photo: fills the space left under the lead story beside the right rail */
body.btb-front-page .btb-lead { display: flex; flex-direction: column; }
.ed-photo { position: relative; flex: 1 1 auto; min-height: 0; margin: 16px 0 0; }
.ed-photo img { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - 24px); object-fit: cover; object-position: center 55%; background: var(--rf-panel); border-top: 4px solid var(--rf-ink); }
.ed-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; display: flex; align-items: flex-end; font: 600 12px/1.2 var(--rf-head); letter-spacing: .08em; text-transform: uppercase; color: var(--rf-mute); }
.ed-photo figcaption a { color: inherit; }
.ed-photo.is-off { display: none; }
@media (max-width: 960px) {
	.ed-photo { flex: none; aspect-ratio: 3 / 2; max-width: 100%; }
}

/* Stories shown as the writer built them (BTB_ED_AS_WRITTEN): only a plain base, no edition styling inside */
.ed-raw { font: 400 16px/1.6 "Segoe UI", "Open Sans", Tahoma, Arial, sans-serif; color: var(--rf-ink); overflow-wrap: break-word; }
.ed-raw > * { max-width: 100%; }
.ed-raw p { margin: 0 0 1em; }
.ed-raw img { max-width: 100%; height: auto; }
.ed-raw figure { margin: 0 0 1em; }
.ed-raw figcaption { font-size: 14px; text-align: center; margin-top: 6px; }
.ed-raw table { max-width: 100%; }
.ed-raw a { color: inherit; text-decoration: underline; }
.ed-raw .has-small-font-size { font-size: 13px; }
.ed-raw .has-medium-font-size { font-size: 20px; }
.ed-raw .has-large-font-size { font-size: 26px; }
.ed-raw .has-x-large-font-size { font-size: 32px; }
.ed-raw .has-segoe-ui-font-family { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
.ed-raw .has-text-align-center, .ed-raw .aligncenter { text-align: center; }
.ed-raw .has-text-align-right { text-align: right; }
.ed-raw .wp-block-table { overflow-x: auto; margin: 0 0 1em; }
@media (max-width: 720px) { .ed-raw { overflow-x: auto; } }

/* Writers: linked names, the writers strip on All stories, the writer page */
a.ed-writer { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rf-soft); }
a.ed-writer:hover, a.ed-writer:focus-visible { color: var(--rf-accent); border-bottom-color: var(--rf-accent); }
.btb-list small a.ed-writer { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--rf-soft); text-underline-offset: 2px; }
.ed-writers { margin: 0 0 28px; }
.ed-writers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ed-writers li { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--rf-ink); padding: 6px 10px; font: 700 14px/1 var(--rf-head); letter-spacing: .06em; text-transform: uppercase; }
.ed-writers li a.ed-writer { border-bottom: 0; }
.ed-writers li span { color: var(--rf-mute); font-variant-numeric: tabular-nums; }
.ed-list__kicker { margin: 0 0 4px; font: 700 13px/1.2 var(--rf-head); letter-spacing: .16em; text-transform: uppercase; color: var(--rf-accent); }
.ed-writer-more { margin-top: 26px; }
.btb-list li small a.ed-writer { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--rf-mute); }
.btb-list li small a.ed-writer:hover { color: var(--rf-accent); }
.ed-writers li a.ed-writer { font: inherit; color: var(--rf-ink); }
body.btb-rf .ed-foot a { color: var(--rf-band-ink); }

/* Nameplate v3: red sign-board banner with scroll ends, script wordmark, tagline under it */
.ed-sign { display: block; width: clamp(300px, 64vw, 780px); max-width: 100%; line-height: 0; color: inherit; text-decoration: none; }
.ed-sign__art { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .18)); }
.ed-sign:hover .ed-sign__art { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .18)) brightness(1.05); }
.ed-sign:focus-visible { outline: 3px solid var(--rf-ink); outline-offset: 4px; }
.ed-mast .ed-plate { padding: 14px 0 4px; }
.ed-tagline { margin: 2px 0 10px; text-align: center; font: 800 clamp(14px, 2.2vw, 24px)/1.1 var(--rf-head); letter-spacing: .07em; text-transform: uppercase; color: var(--rf-accent); }
@media (max-width: 720px) {
	.ed-sign { width: 100%; }
	.ed-tagline { font-size: 13px; letter-spacing: .05em; }
}
