/* TRJ Growth Toolkit — inherits the theme's fonts and colours where it can. */
.trj-race-card, .trj-offer, .trj-email-plan, .trj-review, .trj-book, .trj-soldout-box, .trj-alternatives, .trj-fuel, .trj-tested, .trj-week {
	--trj-ink: currentColor;
	--trj-line: rgba(0, 0, 0, .14);
	--trj-soft: rgba(0, 0, 0, .04);
	--trj-ok: #1a7f37;
	--trj-warn: #9a5b00;
	--trj-bad: #b32d2e;
	box-sizing: border-box;
	margin: 1.5em 0;
}
.trj-race-card *, .trj-offer *, .trj-email-plan *, .trj-review *, .trj-book * { box-sizing: border-box; }

.trj-btn {
	display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; padding: .7em 1.1em; min-height: 44px;
	background: #1d1d1b; color: #fff !important; font: inherit; font-weight: 600; line-height: 1.3;
	text-decoration: none !important; cursor: pointer;
}
.trj-btn:hover, .trj-btn:focus-visible { background: #000; outline: 2px solid transparent; box-shadow: 0 0 0 3px rgba(0, 0, 0, .25); }
.trj-btn[disabled] { opacity: .6; cursor: wait; }
.trj-link { font-weight: 600; }

/* Race card */
.trj-race-card { border: 1px solid var(--trj-line); border-radius: 6px; padding: 1.1em 1.2em; }
.trj-race-card__name { margin: 0 0 .6em; }
.trj-facts { display: grid; gap: .45em; margin: 0 0 .8em; }
.trj-facts > div { display: grid; grid-template-columns: 6.5em 1fr; gap: .8em; }
.trj-facts dt { font-weight: 600; margin: 0; }
.trj-facts dd { margin: 0; }
.trj-badge { display: inline-block; font-size: .82em; font-weight: 600; padding: .15em .55em; border-radius: 999px; background: var(--trj-soft); border: 1px solid var(--trj-line); }
.trj-status-open .trj-badge, .trj-status-charity .trj-badge, .trj-status-ballot_open .trj-badge, .trj-badge.trj-status-open, .trj-badge.trj-status-charity, .trj-badge.trj-status-ballot_open { color: var(--trj-ok); border-color: currentColor; }
.trj-status-sold_out .trj-badge, .trj-status-closed .trj-badge, .trj-status-ballot_closed .trj-badge { color: var(--trj-bad); border-color: currentColor; }
.trj-verified { font-size: .85em; opacity: .8; }

/* Day picker */
.trj-day-picker { margin: 1em 0; }
.trj-day-picker fieldset { border: 0; padding: 0; margin: 0 0 .7em; }
.trj-day-picker legend { font-weight: 600; margin-bottom: .4em; }
.trj-day-option { display: flex; align-items: center; gap: .5em; padding: .55em .7em; border: 1px solid var(--trj-line); border-radius: 4px; margin-bottom: .4em; cursor: pointer; min-height: 44px; }
.trj-day-option:has(input:checked) { border-color: currentColor; background: var(--trj-soft); }

/* Offer forms */
.trj-offer, .trj-email-plan { padding: 1em 1.1em; border-radius: 6px; background: var(--trj-soft); border: 1px solid var(--trj-line); }
.trj-race-card .trj-offer { margin-bottom: 0; }
.trj-offer__heading { margin: 0 0 .25em; }
.trj-offer__intro { margin: 0 0 .7em; }
.trj-offer__intents { border: 0; padding: 0; margin: 0 0 .7em; display: grid; gap: .35em; }
.trj-offer__intents label { display: flex; gap: .5em; align-items: flex-start; }
.trj-offer__intents input { margin-top: .3em; }
.trj-offer__row { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: .5em; }
.trj-offer__row input[type=email] { flex: 1 1 14em; min-height: 44px; padding: .55em .7em; border: 1px solid rgba(0, 0, 0, .35); border-radius: 4px; font: inherit; background: #fff; color: #1d1d1b; }
.trj-check { display: flex; gap: .5em; align-items: flex-start; font-size: .92em; margin: .3em 0; }
.trj-check input { margin-top: .25em; }
.trj-offer__small { font-size: .8em; opacity: .75; margin: .5em 0 0; }
.trj-offer__msg { margin: .4em 0 0; font-weight: 600; }
.trj-offer__msg:empty { display: none; }
.trj-offer__msg.is-ok { color: var(--trj-ok); }
.trj-offer__msg.is-error { color: var(--trj-bad); }
[hidden] { display: none !important; }
.trj-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text:not(:focus) { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* Alternatives table: cards on mobile */
.trj-alt-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.trj-alt-table caption { text-align: left; font-weight: 600; padding-bottom: .5em; }
.trj-alt-table th, .trj-alt-table td { text-align: left; vertical-align: top; padding: .6em .5em; border-bottom: 1px solid var(--trj-line); }
.trj-alt-table thead th { font-size: .85em; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 720px) {
	.trj-alt-table thead { position: absolute; clip: rect(1px, 1px, 1px, 1px); }
	.trj-alt-table tr { display: block; border: 1px solid var(--trj-line); border-radius: 6px; padding: .6em .8em; margin-bottom: .8em; }
	.trj-alt-table th, .trj-alt-table td { display: block; border: 0; padding: .3em 0; }
	.trj-alt-table td { position: relative; padding-left: 8.1em; }
	.trj-alt-table tbody th { font-size: 1.05em; padding-bottom: .4em; }
	.trj-alt-table td::before { content: attr(data-label); font-weight: 600; position: absolute; left: 0; top: .3em; width: 7.5em; }
}
.trj-soldout-box { border-left: 4px solid currentColor; padding: .2em 0 .2em 1em; }
.trj-soldout-box h2 { margin-top: 0; }

/* Plan review */
.trj-review { border: 2px solid #1d1d1b; border-radius: 8px; padding: 1.2em 1.3em; }
.trj-eyebrow { font-size: .78em; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .3em; font-weight: 600; }
.trj-review__title { margin: 0 0 .3em; }
.trj-review__price { margin: 0 0 .7em; }
.trj-review__price strong { font-size: 1.5em; }
.trj-review__list { margin: 0 0 1em 1.2em; }
.trj-review__compare { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; margin-bottom: 1em; font-size: .9em; }
.trj-review__compare > div { background: var(--trj-soft); border-radius: 6px; padding: .7em .8em; }
.trj-review__compare ul { margin: 0; padding-left: 1.1em; }
.trj-review__label { font-weight: 700; margin: 0 0 .3em; }
@media (max-width: 560px) { .trj-review__compare { grid-template-columns: 1fr; } }

/* Photo book */
.trj-book { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.2em; align-items: center; border: 1px solid var(--trj-line); border-radius: 8px; padding: 1.1em; }
.trj-book:not(:has(figure)) { grid-template-columns: 1fr; }
.trj-book__example { margin: 0; }
.trj-book__example img { width: 100%; height: auto; border-radius: 4px; display: block; }
.trj-book__example figcaption { font-size: .8em; opacity: .75; margin-top: .4em; }
.trj-book h3 { margin: 0 0 .3em; }
.trj-book__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8em; }
.trj-book__price { font-weight: 600; }
@media (max-width: 560px) { .trj-book { grid-template-columns: 1fr; } }

.trj-admin-note { border: 1px dashed #b26200; padding: .5em .7em; font-size: .85em; color: #8a4b00; }
.trj-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 99999; background: #1d1d1b; color: #fff; padding: .8em 1.1em; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.trj-toast.is-error { background: #b32d2e; }

/* 1.1.0: editorial blocks */
.trj-quick-answer, .trj-week, .trj-occasions, .trj-tested, .trj-fuel { margin: 1.5em 0; box-sizing: border-box; }
.trj-quick-answer { border-left: 4px solid #1d1d1b; background: rgba(0, 0, 0, .04); padding: .9em 1.1em; border-radius: 0 6px 6px 0; }
.trj-quick-answer > p:last-child { margin-bottom: 0; }
.trj-week { border: 1px solid rgba(0, 0, 0, .14); border-radius: 8px; padding: 1em 1.1em; }
.trj-week figcaption { display: flex; flex-wrap: wrap; gap: .3em .8em; align-items: baseline; margin-bottom: .6em; }
.trj-week figcaption small { flex-basis: 100%; opacity: .75; }
.trj-week__count { font-size: .85em; font-weight: 600; opacity: .8; }
.trj-week table { width: 100%; border-collapse: collapse; }
.trj-week th, .trj-week td { text-align: left; padding: .45em .4em; border-bottom: 1px solid rgba(0, 0, 0, .1); vertical-align: top; }
.trj-week th { width: 3.5em; }
.trj-week td:nth-child(2) { width: 5.5em; }
.trj-week .trj-badge { font-size: .78em; font-weight: 600; padding: .1em .5em; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .2); }
.trj-week .is-run .trj-badge { color: #1a7f37; border-color: currentColor; }
.trj-week .is-gym .trj-badge { color: #3b4aa8; border-color: currentColor; }
.trj-week__review { font-size: .92em; margin: .8em 0 0; }
.trj-occasions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; }
.trj-occasion { border: 1px solid rgba(0, 0, 0, .14); border-radius: 8px; padding: .9em 1em; }
.trj-occasion h3 { margin: 0 0 .2em; }
.trj-occasion > p:first-of-type { margin-top: 0; opacity: .8; font-size: .92em; }
.trj-occasion ul { margin: 0 0 .6em 1.1em; padding: 0; }
@media (max-width: 720px) { .trj-occasions { grid-template-columns: 1fr; } }
.trj-tested { border: 1px solid rgba(0, 0, 0, .14); border-radius: 8px; padding: 1.1em 1.2em; }
.trj-tested h3 { margin: 0 0 .6em; }
.trj-tested__q { font-style: italic; margin: 0 0 .2em; }
.trj-tested__buy { display: flex; flex-wrap: wrap; align-items: center; gap: .6em .9em; margin: .9em 0 0; }
.trj-tested__price { font-weight: 600; }
.trj-tested__aff, .trj-disclosure { font-size: .8em; opacity: .75; }
.trj-disclosure { border-top: 1px solid rgba(0, 0, 0, .14); border-bottom: 1px solid rgba(0, 0, 0, .14); padding: .5em 0; }
.trj-fuel__table tfoot th, .trj-fuel__table tfoot td { border-bottom: 0; padding-top: .8em; }
@media (max-width: 720px) { .trj-fuel__table tfoot tr { display: block; } .trj-fuel__table tfoot th, .trj-fuel__table tfoot td { display: inline; padding: 0 .3em 0 0; } }
.trj-race-week-links { font-size: .92em; margin: .8em 0; }
.trj-map-edition { opacity: .8; }
