/* Tender Finder (/tenders/). Loaded only on that page by mu-plugins/sa-biznews-tenders.php.
   Uses the site's own tokens (style.css), so light and dark follow the visitor's theme. */

.tf {
	--tf-r: 12px;
	--tf-soft: var(--bg-band);
	--tf-line: var(--rule);
	--tf-shadow: 0 1px 2px rgba(14, 17, 22, .05), 0 10px 28px rgba(14, 17, 22, .07);
	--tf-red: #B3261E;
	--tf-amber-bg: var(--gold-wash);
	--tf-ok: var(--up);
	width: 100%;
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .tf { --tf-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35); --tf-red: #F0776A; }
}
:root[data-theme="dark"] .tf { --tf-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35); --tf-red: #F0776A; }

.tf *, .tf *::before, .tf *::after { box-sizing: border-box; }
.tf a { color: inherit; }
.tf-i { flex: none; }

/* ---------------------------------------------------------------- hero */
.tf-hero {
	background:
		radial-gradient(900px 340px at 82% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
		linear-gradient(180deg, var(--tf-soft), var(--bg));
	border-bottom: 1px solid var(--tf-line);
}
.tf-hero__in {
	max-width: var(--container, 1280px);
	margin-inline: auto;
	padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(24px, 3.5vw, 40px);
}
.tf-eyebrow {
	margin: 0 0 10px;
	color: var(--accent-text);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.tf-hero h1 {
	margin: 0 0 12px;
	max-width: 17ch;
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 5.6vw, 3.9rem);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -.025em;
}
.tf-lede { margin: 0 0 24px; max-width: 62ch; color: var(--text-muted); font-size: 1.08rem; }

.tf-searchbar {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 820px;
	padding: 8px 8px 8px 18px;
	background: var(--bg);
	border: 1px solid var(--tf-line);
	border-radius: 16px;
	box-shadow: var(--tf-shadow);
	transition: border-color var(--transition), box-shadow var(--transition);
}
.tf-searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), var(--tf-shadow); }
.tf-searchbar .tf-i { color: var(--text-meta); width: 22px; height: 22px; }
.tf-searchbar input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.08rem;
	min-height: 48px;
}
.tf-searchbar input::placeholder { color: var(--text-meta); }
.tf-searchbar .tf-btn { min-height: 48px; padding-inline: 26px; border-radius: 11px; }

.tf-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; font-size: .86rem; color: var(--text-meta); }
.tf-quick a {
	padding: 5px 12px;
	border: 1px solid var(--tf-line);
	border-radius: 999px;
	background: var(--bg);
	color: var(--text-muted);
	text-decoration: none;
	transition: border-color var(--transition), color var(--transition);
}
.tf-quick a:hover { border-color: var(--accent); color: var(--text); }

.tf-stats { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 26px 0 0; padding: 0; }
.tf-stats > div { display: flex; flex-direction: column-reverse; }
.tf-stats dt { font-size: .78rem; color: var(--text-meta); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.tf-stats dd { margin: 0; font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tf-stats__sm { font-size: 1.25rem !important; padding-top: .55rem; }

/* ---------------------------------------------------------------- buttons */
.tf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 10px;
	font: inherit;
	font-weight: 650;
	font-size: .92rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.tf-btn--primary { background: var(--accent); color: #0E1116 !important; }
.tf-btn--primary:hover { filter: brightness(1.06); }
.tf-btn--ghost { background: var(--bg); border-color: var(--tf-line); color: var(--text) !important; }
.tf-btn--ghost:hover { border-color: var(--accent); }
.tf-btn:active { transform: translateY(1px); }
.tf-btn:focus-visible, .tf-save:focus-visible, .tf-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- app layout */
.tf-app {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	max-width: var(--container, 1280px);
	margin-inline: auto;
	padding: 28px var(--gutter) 8px;
}

/* filters */
.tf-filters {
	scrollbar-width: thin;
	scrollbar-color: var(--tf-line) transparent;
	position: sticky;
	top: 16px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: var(--bg);
	border: 1px solid var(--tf-line);
	border-radius: 14px;
	box-shadow: var(--tf-shadow);
}
.tf-filters__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--tf-line); }
.tf-filters__head strong { font-size: .95rem; }
.tf-clear { margin-left: auto; font-size: .82rem; color: var(--accent-text) !important; text-decoration: none; font-weight: 600; }
.tf-clear:hover { text-decoration: underline; }
.tf-x { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.tf-x:hover { background: var(--tf-soft); }

.tf-group { border-bottom: 1px solid var(--tf-line); }
.tf-group:last-of-type { border-bottom: 0; }
.tf-group > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
	color: var(--text-muted);
}
.tf-group > summary::-webkit-details-marker { display: none; }
.tf-group > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 3px; transition: transform var(--transition); }
.tf-group[open] > summary::after { transform: rotate(-135deg); }
.tf-group__body { padding: 0 16px 16px; display: grid; gap: 10px; }

.tf-seg { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tf-seg label { display: block; }
.tf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.tf-seg span {
	display: block;
	padding: 8px 4px;
	text-align: center;
	font-size: .82rem;
	font-weight: 600;
	border: 1px solid var(--tf-line);
	border-radius: 9px;
	cursor: pointer;
	transition: all var(--transition);
}
.tf-seg input:checked + span { background: var(--accent); border-color: var(--accent); color: #0E1116; }
.tf-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.tf-gsearch {
	width: 100%;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--tf-line);
	border-radius: 9px;
	background: var(--bg);
	color: inherit;
	font: inherit;
	font-size: .88rem;
}
.tf-gsearch:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

.tf-opts { scrollbar-width: thin; scrollbar-color: var(--tf-line) transparent; display: grid; gap: 2px; max-height: 296px; overflow: auto; margin-inline: -4px; padding-inline: 4px; }
.tf-opt, .tf-check { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.tf-opt:hover, .tf-check:hover { background: var(--tf-soft); }
.tf-opt input, .tf-check input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; margin: 0; }
.tf-opt__n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-opt__c { font-size: .78rem; color: var(--text-meta); font-variant-numeric: tabular-nums; }
.tf-opt--zero:not(:has(input:checked)) { opacity: .4; }
.tf-opts:not(.is-all) .tf-opt--more { display: none; }
.tf-more { justify-self: start; padding: 4px 2px; border: 0; background: none; color: var(--accent-text); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; }
.tf-more:hover { text-decoration: underline; }
.tf-filters__foot { padding: 14px 16px; border-top: 1px solid var(--tf-line); }
.tf-apply { width: 100%; }
.tf-js .tf-apply { display: none; }

/* results column */
.tf-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--tf-line); }
.tf-count { margin: 0; margin-right: auto; font-size: .98rem; color: var(--text-muted); }
.tf-count strong { color: var(--text); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
.tf-filterbtn { display: none; }
.tf-filterbtn__n, .tf-savedbtn__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #0E1116; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tf-savedbtn[aria-pressed="true"] { border-color: var(--accent); background: var(--tf-amber-bg); }
.tf-savedbtn[aria-pressed="true"] .tf-i, .tf-save[aria-pressed="true"] .tf-i { fill: var(--accent); stroke: var(--accent); }
.tf-sort { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-meta); }
.tf-sort select { min-height: 40px; padding: 6px 30px 6px 12px; border: 1px solid var(--tf-line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-weight: 600; font-size: .88rem; }

.tf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tf-chips:empty { display: none; }
.tf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border: 1px solid var(--accent); border-radius: 999px; background: var(--tf-amber-bg); font-size: .82rem; font-weight: 600; color: var(--text); cursor: pointer; font-family: inherit; }
.tf-chip .tf-i { width: 15px; height: 15px; padding: 2px; border-radius: 50%; }
.tf-chip:hover .tf-i { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.tf-list { display: grid; gap: 12px; margin-top: 16px; transition: opacity var(--transition); }
.tf-list.is-loading { opacity: .45; pointer-events: none; }

/* result row */
.tf-row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	gap: 18px;
	align-items: start;
	padding: 18px;
	background: var(--bg);
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-r);
	transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.tf-row:hover { border-color: color-mix(in srgb, var(--accent) 70%, var(--tf-line)); box-shadow: var(--tf-shadow); }
.tf-cal { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 72px; border-radius: 12px; background: var(--tf-soft); border: 1px solid var(--tf-line); line-height: 1; }
.tf-cal__d { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tf-cal__m { margin-top: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-meta); }
.tf-cal--hot { background: color-mix(in srgb, var(--tf-red) 10%, var(--bg)); border-color: color-mix(in srgb, var(--tf-red) 45%, var(--tf-line)); }
.tf-cal--hot .tf-cal__d, .tf-cal--hot .tf-cal__m { color: var(--tf-red); }
.tf-cal--soon { background: var(--tf-amber-bg); border-color: color-mix(in srgb, var(--accent) 55%, var(--tf-line)); }
.tf-cal--soon .tf-cal__m { color: var(--accent-text); }

.tf-row__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.tf-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--tf-soft); color: var(--text-muted); }
.tf-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tf-badge--hot { background: color-mix(in srgb, var(--tf-red) 12%, var(--bg)); color: var(--tf-red); }
.tf-badge--soon { background: var(--tf-amber-bg); color: var(--accent-text); }
.tf-row__time { font-size: .8rem; color: var(--text-meta); }
.tf-row__title { margin: 0 0 6px; font-family: var(--font-body); font-size: 1.04rem; font-weight: 650; line-height: 1.35; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tf-row__title a { text-decoration: none; }
.tf-row__title a:hover { color: var(--accent-text); }
.tf-row__meta { margin: 0 0 10px; font-size: .88rem; color: var(--text-muted); }
.tf-row__meta strong { color: var(--text); font-weight: 600; }
.tf-row__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--tf-line); border-radius: 999px; font-size: .76rem; color: var(--text-muted); }
.tf-tag .tf-i { width: 13px; height: 13px; }
.tf-tag--warn { border-color: color-mix(in srgb, var(--tf-red) 55%, var(--tf-line)); color: var(--tf-red); }
.tf-tag--ok { border-color: color-mix(in srgb, var(--tf-ok) 55%, var(--tf-line)); color: var(--tf-ok); }
.tf-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tf-save { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--tf-line); border-radius: 50%; background: var(--bg); color: var(--text-muted); cursor: pointer; transition: all var(--transition); }
.tf-save:hover { border-color: var(--accent); color: var(--accent-text); }
.tf-save[aria-pressed="true"] { border-color: var(--accent); background: var(--tf-amber-bg); }
.tf-dactions .tf-save { width: auto; height: auto; border-radius: 10px; }

.tf-empty { display: grid; gap: 6px; padding: 40px 24px; text-align: center; border: 1px dashed var(--tf-line); border-radius: var(--tf-r); color: var(--text-muted); }
.tf-empty strong { color: var(--text); font-size: 1.05rem; }

.tf-pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 22px 0 6px; font-weight: 600; }
.tf-pg { padding: 8px 14px; border: 1px solid var(--tf-line); border-radius: 10px; text-decoration: none; }
.tf-pg:hover { border-color: var(--accent); }
.tf-js #tf-pager { display: none; }
.tf-loadmore { display: flex; margin: 18px auto 4px; min-width: 240px; }

/* ---------------------------------------------------------------- drawer */
.tf-drawer[hidden] { display: none; }
.tf-drawer { position: fixed; inset: 0; z-index: 1000; }
.tf-drawer__bg { position: absolute; inset: 0; background: rgba(8, 10, 14, .55); opacity: 0; transition: opacity 200ms ease; }
.tf-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(600px, 100vw);
	overflow-y: auto;
	overflow-x: hidden;
	background: var(--bg);
	border-left: 1px solid var(--tf-line);
	box-shadow: -16px 0 48px rgba(0, 0, 0, .25);
	transform: translateX(24px);
	opacity: 0;
	transition: transform 220ms ease, opacity 220ms ease;
	outline: 0;
}
.tf-drawer.is-open .tf-drawer__bg { opacity: 1; }
.tf-drawer.is-open .tf-drawer__panel { transform: none; opacity: 1; }
.tf-drawer__x { display: inline-flex; position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--bg); border: 1px solid var(--tf-line); }
.tf-drawer__body { padding: 30px 28px 40px; }
.tf-dhead { margin-bottom: 16px; padding-right: 40px; }
.tf-dtitle { margin: 12px 0 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.tf-dactions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.tf-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0 0 8px; padding: 18px; background: var(--tf-soft); border-radius: var(--tf-r); }
.tf-fact dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-meta); }
.tf-fact dd { margin: 3px 0 0; font-size: .93rem; overflow-wrap: anywhere; }
.tf-fact:nth-child(1), .tf-fact:nth-child(7), .tf-fact:nth-child(10) { grid-column: 1 / -1; }
.tf-sec { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--tf-line); }
.tf-sec h3 { margin: 0 0 8px; font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.tf-sec p { margin: 0 0 8px; }
.tf-note { font-size: .84rem; color: var(--text-meta); }
.tf-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tf-docs a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--tf-line); border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.tf-docs a:hover { border-color: var(--accent); }
.tf-fine { margin: 22px 0 0; font-size: .82rem; color: var(--text-meta); line-height: 1.55; }
html.tf-lock { overflow: hidden; }

/* ---------------------------------------------------------------- how to bid */
.tf-how { max-width: var(--container, 1280px); margin: 36px auto 0; padding: 34px var(--gutter) 64px; border-top: 1px solid var(--tf-line); }
.tf-how h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.015em; }
.tf-steps { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tf-steps li { counter-increment: s; display: grid; gap: 6px; padding: 18px; border: 1px solid var(--tf-line); border-radius: var(--tf-r); background: var(--bg); }
.tf-steps li::before { content: counter(s); font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--accent); font-weight: 600; }
.tf-steps span { color: var(--text-muted); font-size: .9rem; }
.tf-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.tf-links a { font-weight: 650; text-decoration: none; color: var(--accent-text); }
.tf-links a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
	.tf-app { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 18px; }
	.tf-filterbtn { display: inline-flex; }
	.tf-filters {
		position: fixed;
		inset: auto 0 0 0;
		top: auto;
		z-index: 1001;
		max-height: 88vh;
		border-radius: 18px 18px 0 0;
		transform: translateY(105%);
		visibility: hidden;
		transition: transform 240ms ease, visibility 0s linear 240ms;
	}
	html.tf-filters-open .tf-filters { transform: none; visibility: visible; transition: transform 240ms ease; }
	html.tf-filters-open body::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: rgba(8, 10, 14, .55); }
	.tf-x { display: inline-flex; }
	.tf-js .tf-apply, .tf-apply { display: inline-flex; }
	.tf-filters__foot { position: sticky; bottom: 0; background: var(--bg); }
	.tf-drawer__panel { top: auto; width: 100%; max-height: 94vh; border-left: 0; border-radius: 18px 18px 0 0; transform: translateY(40px); }
}
@media (max-width: 640px) {
	.tf-hero h1 { max-width: none; font-size: 2rem; }
	.tf-lede { font-size: .98rem; margin-bottom: 18px; }
	.tf-quick { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
	.tf-quick::-webkit-scrollbar { display: none; }
	.tf-quick a, .tf-quick span { flex: none; }
	.tf-stats { margin-top: 18px; }
	.tf-searchbar { padding: 6px; border-radius: 14px; }
	.tf-searchbar > .tf-i { display: none; }
	.tf-searchbar input { padding-left: 10px; font-size: 1rem; }
	.tf-searchbar .tf-btn { padding-inline: 16px; }
	.tf-stats { gap: 8px 24px; }
	.tf-stats dd { font-size: 1.6rem; }
	.tf-row { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px; }
	.tf-cal { width: 52px; height: 62px; }
	.tf-cal__d { font-size: 1.5rem; }
	.tf-row__side { grid-column: 1 / -1; flex-direction: row-reverse; justify-content: space-between; align-items: center; }
	.tf-sort span { display: none; }
	.tf-toolbar { gap: 8px; }
	.tf-count { width: 100%; order: -1; }
	.tf-facts { grid-template-columns: 1fr; }
	.tf-drawer__body { padding: 26px 18px 34px; }
	.tf-dtitle { font-size: 1.35rem; }
	html.app-shell .tf { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
	.tf *, .tf *::before, .tf *::after { transition: none !important; }
}

/* ---------------------------------------------------------------- alerts, SEO blocks (added 28 Oct night) */
.tf-heroalert { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 20px 0 0; }
.tf-heroalert span { color: var(--text-muted); font-size: .9rem; }
.tf-btn--lg { min-height: 52px; padding: 12px 26px; font-size: 1rem; border-radius: 12px; }
.tf-notice { background: var(--tf-amber-bg); border-bottom: 1px solid var(--tf-line); }
.tf-notice__in { max-width: var(--container, 1280px); margin-inline: auto; padding: 22px var(--gutter); }
.tf-notice h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.tf-notice p { margin: 0 0 12px; color: var(--text-muted); max-width: 70ch; }
.tf-ok { color: var(--tf-ok) !important; font-weight: 650; }
.tf-aform { display: grid; gap: 14px; max-width: 640px; }

.tf-band { max-width: var(--container, 1280px); margin: 40px auto 0; padding: 0 var(--gutter); }
.tf-band__in {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: 30px 34px; border-radius: 18px; color: #fff;
	background: radial-gradient(600px 220px at 90% 0%, rgba(217, 180, 92, .22), transparent 70%), linear-gradient(135deg, #0E1116, #1C2128);
}
.tf-band h2 { margin: 4px 0 8px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.015em; color: #fff; }
.tf-band p { margin: 0; max-width: 58ch; color: rgba(255, 255, 255, .78); }
.tf-band .tf-eyebrow { color: #D9B45C; }

.tf-modal {
	position: absolute; top: 5vh; left: 50%; transform: translate(-50%, 16px); opacity: 0;
	width: min(580px, 94vw); max-height: 90vh; overflow-y: auto; overflow-x: hidden;
	background: var(--bg); border: 1px solid var(--tf-line); border-radius: 18px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .35); outline: 0; transition: transform 220ms ease, opacity 220ms ease;
}
.tf-alertdlg.is-open .tf-drawer__bg { opacity: 1; }
.tf-alertdlg.is-open .tf-modal { transform: translate(-50%, 0); opacity: 1; }
.tf-modal__body { padding: 30px 28px 28px; }
.tf-modal h2 { margin: 4px 0 6px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -.015em; }
.tf-modal__lede { margin: 0 0 20px; color: var(--text-muted); }
.tf-af { display: grid; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.tf-af > span, .tf-af > legend, .tf-af__l { font-weight: 650; font-size: .9rem; padding: 0; }
.tf-af small { color: var(--text-meta); font-size: .8rem; }
.tf-af input[type="text"], .tf-af input[type="email"] {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--tf-line); border-radius: 10px;
	background: var(--bg); color: inherit; font: inherit;
}
.tf-af input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.tf-aprov { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 4px 0 8px; font-size: .9rem; }
.tf-aprov label, .tf-acheck { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.tf-acheck { align-items: flex-start; font-size: .88rem; }
.tf-aprov input, .tf-acheck input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; margin: 2px 0 0; }
.tf-consent { margin: 4px 0 14px; color: var(--text-muted); }
.tf-consent a { color: var(--accent-text); }
.tf-hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.tf-aerr { margin: 0 0 12px; color: var(--tf-red); font-weight: 650; font-size: .9rem; }
.tf-aform__go { width: 100%; }
.tf-adone { text-align: center; padding: 26px 8px 10px; }
.tf-adone p { color: var(--text-muted); margin: 0 0 18px; }
.tf-seg--inline { display: flex; gap: 8px; grid-template-columns: none; padding: 0; }
.tf-seg--inline label { display: block; }
.tf-seg--inline span { padding: 9px 22px; }
.tf-alertbtn { color: var(--accent-text) !important; }

@media (max-width: 640px) {
	.tf-modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; transform: translateY(24px); }
	.tf-alertdlg.is-open .tf-modal { transform: none; }
	.tf-modal__body { padding: 26px 18px 24px; }
	.tf-aprov { grid-template-columns: 1fr 1fr; }
	.tf-band__in { padding: 24px 20px; }
	.tf-band .tf-btn { width: 100%; }
	.tf-heroalert .tf-btn { width: 100%; }
}

/* ---------------------------------------------------------------- numbered pages (5 a page, 28 Oct night) */
.tf-js #tf-pager { display: block; }
.tf-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 6px; flex-wrap: wrap; }
.tf-pages { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tf-pg { gap: 5px; min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tf-line); border-radius: 10px; text-decoration: none; font-weight: 650; font-variant-numeric: tabular-nums; background: var(--bg); color: var(--text); }
a.tf-pg:hover { border-color: var(--accent); }
.tf-pg.is-now { background: var(--accent); border-color: var(--accent); color: #0E1116; }
.tf-pg--gap { border: 0; min-width: 18px; padding: 0; background: transparent; color: var(--text-meta); }
.tf-pg.is-off { opacity: .35; }
@media (max-width: 640px) {
	.tf-pg__t { display: none; }
	.tf-pg { min-width: 38px; height: 38px; padding: 0 10px; }
	.tf-pager { justify-content: center; }
}

.tf-modal, .tf-drawer__panel { scrollbar-width: thin; scrollbar-color: var(--tf-line) transparent; }
