/* Teach Them Jesus theme
   A Sunday-school classroom on paper: felt-board cutouts, Bible thumb-index tabs,
   taped snapshots. Each age group owns one crayon color from the logo. */

:root {
	--paper: var(--wp--preset--color--paper);
	--surface: var(--wp--preset--color--surface);
	--ink: var(--wp--preset--color--ink);
	--muted: var(--wp--preset--color--muted);
	--line: var(--wp--preset--color--line);
	--band: var(--wp--preset--color--band);
	--sun: var(--wp--preset--color--sun);
	--tomato: var(--wp--preset--color--tomato);
	--grass: var(--wp--preset--color--grass);
	--sky: var(--wp--preset--color--sky);
	--highlight: var(--wp--preset--color--highlight);
	--f-display: var(--wp--preset--font-family--display);
	--f-body: var(--wp--preset--font-family--body);
	--f-hand: var(--wp--preset--font-family--hand);
	--shadow: 0 1px 2px rgba(24, 34, 58, .08), 0 8px 24px rgba(24, 34, 58, .08);
	--header-top: var(--wp-admin--admin-bar--height, 0px);
}

/* Age colors: one class sets --c (and readable text color) anywhere an age appears */
.ttj-c-pre { --c: var(--sun); --tc: var(--ink); }
.ttj-c-k2  { --c: var(--tomato); --tc: #fff; }
.ttj-c-g34 { --c: var(--grass); --tc: #fff; }
.ttj-c-g56 { --c: var(--sky); --tc: #fff; }
.ttj-c-tg  { --c: var(--ink); --tc: #fff; }

h1, h2, h3 { text-wrap: balance; }
:where(.wp-site-blocks) :focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.ttj-eyebrow { font: 700 .78rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ttj-lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.ttj-hand { font-family: var(--f-hand); font-size: 1.5rem; line-height: 1; }

/* Buttons */
.wp-element-button, .wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; cursor: pointer; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.ttj-free-form button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sun); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--surface); }
.wp-block-button.is-small .wp-block-button__link { padding: .7em 1.1em; font-size: .9rem; }

/* Header */
.ttj-site-header {
	position: sticky; top: var(--header-top); z-index: 50;
	background: color-mix(in srgb, var(--paper) 90%, transparent);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.ttj-header { padding-block: 12px; }
.ttj-header-inner { gap: 24px; align-items: center; }
.ttj-logo img { display: block; height: 46px; width: auto; }
.ttj-nav { margin-left: auto; font-weight: 700; font-size: .95rem; gap: 22px; }
.ttj-nav .wp-block-navigation-item__content { color: var(--muted); text-decoration: none; }
.ttj-nav .wp-block-navigation-item__content:hover { color: var(--ink); }
.ttj-nav .wp-block-loginout a { color: var(--muted); text-decoration: none; }
.ttj-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--paper); padding: 24px; }
.ttj-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { font-size: 1.3rem; gap: 18px; }
@media (max-width: 600px) { .ttj-header .wp-block-buttons.ttj-header-cta { display: none; } }

/* Sections */
.ttj-sec { padding-block: clamp(56px, 8vw, 88px); }
.ttj-sec > * + * { margin-block-start: 0; }
.ttj-band { background: var(--band); }
.ttj-section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.ttj-section-head.is-centered { justify-items: center; text-align: center; margin-inline: auto; }
.ttj-section-head > * { margin: 0; }

/* Grid containers: let grid gap do the spacing, not flow margins */
.ttj-hero-grid > *, .ttj-facts > *, .ttj-board > *, .ttj-story-line > *, .ttj-stop > *,
.ttj-inside-grid > *, .ttj-features > *, .ttj-feature > *, .ttj-conviction-grid > *, .ttj-conviction > *,
.ttj-aud-grid > *, .ttj-aud > *, .ttj-freebie > *, .ttj-freebie-copy > *, .ttj-price-card > *,
.ttj-hero-copy > * { margin-block: 0; }

/* Hero */
.ttj-hero { padding-block: clamp(36px, 6vw, 64px) 0; }
.ttj-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-bottom: 64px; }
.ttj-hero-copy { display: grid; gap: 22px; min-width: 0; }
.ttj-hero h1 strong {
	font-weight: inherit;
	background: linear-gradient(transparent 62%, var(--highlight) 62%, var(--highlight) 92%, transparent 92%);
	padding-inline: .06em;
}
.ttj-hero-note { color: var(--muted); font-size: .95rem; }
.ttj-hero-note em { font-family: var(--f-hand); font-style: normal; font-size: 1.5rem; color: var(--tomato); margin-right: .2em; }
@media (max-width: 900px) { .ttj-hero-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; } }

/* Lesson demo: card with Bible thumb-index tabs */
.ttj-demo { --age: var(--tomato); position: relative; padding-right: 78px; min-width: 0; }
.ttj-cutout { position: absolute; pointer-events: none; filter: drop-shadow(0 3px 0 rgba(24, 34, 58, .12)); }
.ttj-cutout--sun { width: 92px; top: -38px; left: -30px; fill: var(--sun); stroke: var(--sun); stroke-width: 8; stroke-linecap: round; animation: ttj-bob 6s ease-in-out infinite; }
.ttj-cutout--star { width: 46px; bottom: 34px; left: -26px; fill: var(--sky); animation: ttj-bob 5s ease-in-out infinite reverse; }
.ttj-cutout--sheep { width: 96px; bottom: -40px; right: 90px; animation: ttj-bob 7s ease-in-out infinite; }
.ttj-cutout--sheep .wool { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.ttj-cutout--sheep .face { fill: var(--ink); }
.ttj-cutout--sheep .legs { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
@keyframes ttj-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }

.ttj-card {
	position: relative; z-index: 1; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow);
	border: 1px solid var(--line); padding: 28px; display: grid; gap: 18px; overflow: hidden;
}
.ttj-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--age); transition: background .3s; }
.ttj-card p { margin: 0; }
.ttj-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.ttj-card-title { font: 800 1.6rem/1.1 var(--f-display); color: var(--ink); text-decoration: none; display: block; }
.ttj-card-title:hover { text-decoration: underline; }
/* Lesson picture across the top of the homepage demo card (bleeds to the card edges). */
.ttj-demo-art { display: block; margin: -28px -28px 0; aspect-ratio: 16 / 7; overflow: hidden; }
.ttj-demo-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ttj-demo-art:hover img { transform: scale(1.04); }
.ttj-card-cta { justify-self: start; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--age); padding-bottom: 2px; transition: border-color .3s; }
.ttj-card-cta:hover { border-bottom-color: var(--ink); }
@media (max-width: 520px) { .ttj-demo-art { margin: -22px -22px 0; } }
.ttj-demo-fallback { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.ttj-demo-fallback img { display: block; width: 100%; height: auto; }
.ttj-ref { font-weight: 700; color: var(--muted); font-size: .95rem; }
.ttj-age-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.ttj-age-label::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--age); transition: background .3s; }
.ttj-big-idea { font: 700 1.45rem/1.25 var(--f-display); }
.ttj-story-snip { font-size: 1rem; color: var(--muted); border-left: 3px solid var(--age); padding-left: 14px; transition: border-color .3s; }
.ttj-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ttj-chip-box { background: var(--band); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.ttj-chip-box .ttj-eyebrow { font-size: .7rem; }
.ttj-chip-box p { font-size: .98rem; }
.ttj-swap { transition: opacity .18s ease, transform .18s ease; }
.ttj-swap.is-out { opacity: 0; transform: translateY(6px); }
@media (max-width: 520px) { .ttj-card-grid { grid-template-columns: 1fr; } .ttj-card { padding: 22px; } }

.ttj-tabs { position: absolute; right: 0; top: 34px; display: grid; gap: 8px; z-index: 0; }
.ttj-tab {
	width: 92px; padding: 12px 8px 12px 22px; border: 0; border-radius: 0 12px 12px 0; cursor: pointer;
	font: 700 .82rem/1.15 var(--f-body); text-align: left; color: var(--tc); background: var(--c);
	transform: translateX(-8px); transition: transform .2s ease, box-shadow .2s ease; box-shadow: var(--shadow);
}
.ttj-tab:hover { transform: translateX(-2px); }
.ttj-tab[aria-selected="true"] { transform: translateX(0); box-shadow: 0 0 0 3px var(--surface), var(--shadow); }
.ttj-tab small { display: block; font-weight: 400; opacity: .9; font-size: .72rem; }
@media (max-width: 640px) {
	.ttj-demo { padding-right: 0; }
	.ttj-tabs { position: static; display: flex; overflow-x: auto; gap: 6px; margin-bottom: -6px; padding-bottom: 2px; }
	.ttj-tab { width: auto; flex: 0 0 auto; border-radius: 12px 12px 0 0; padding: 10px 14px 14px; transform: translateY(6px); }
	.ttj-tab:hover, .ttj-tab[aria-selected="true"] { transform: translateY(0); }
	.ttj-cutout--sheep { display: none; }
	.ttj-cutout--sun { width: 64px; top: -28px; left: auto; right: -6px; }
}

/* Facts strip */
.ttj-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.ttj-fact { padding: 22px 18px; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.ttj-fact strong { display: block; font: 800 2rem/1.1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ttj-fact + .ttj-fact { border-left: 1px solid var(--line); }
@media (max-width: 760px) {
	.ttj-facts { grid-template-columns: 1fr 1fr; }
	.ttj-fact:nth-child(3) { border-left: 0; }
	.ttj-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Photos: taped snapshots */
.ttj-photos { padding-top: 56px; }
.ttj-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 860px) { .ttj-board { grid-template-columns: 1fr 1fr; } }
.wp-block-image.ttj-photo {
	position: relative; margin: 0; background: var(--surface); padding: 10px 10px 12px; border-radius: 6px;
	box-shadow: var(--shadow); transform: rotate(var(--tilt, 0deg)); transition: transform .3s ease;
}
.wp-block-image.ttj-photo:hover { transform: rotate(0deg) scale(1.03); }
.wp-block-image.ttj-photo::before {
	content: ""; position: absolute; z-index: 1; top: -12px; left: 50%; width: 84px; height: 24px;
	transform: translateX(-50%) rotate(-3deg); background: color-mix(in srgb, var(--highlight) 75%, transparent); border-radius: 2px;
}
.wp-block-image.ttj-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.wp-block-image.ttj-photo figcaption { font-family: var(--f-hand); font-size: 1.35rem; line-height: 1.1; margin: 8px 0 0; text-align: center; color: var(--ink); }
.ttj-board .ttj-photo:nth-child(1) { --tilt: -3deg; }
.ttj-board .ttj-photo:nth-child(2) { --tilt: 2deg; }
.ttj-board .ttj-photo:nth-child(3) { --tilt: -1.5deg; }
.ttj-board .ttj-photo:nth-child(4) { --tilt: 3deg; }

/* Big Story */
.ttj-story-line { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ttj-story-line::before {
	content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 4px; border-radius: 4px;
	background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 24px); opacity: .25;
}
.ttj-stop { position: relative; display: grid; gap: 10px; justify-items: start; align-content: start; }
.ttj-stop:nth-child(1) { --c: var(--grass); }
.ttj-stop:nth-child(2) { --c: var(--tomato); }
.ttj-stop:nth-child(3) { --c: var(--sky); }
.ttj-stop:nth-child(4) { --c: #C9A400; }
.ttj-stop-dot {
	width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
	border: 4px solid var(--c); box-shadow: var(--shadow); font: 800 1.4rem/1 var(--f-display); color: var(--c);
	transition: transform .25s ease;
}
.ttj-stop:hover .ttj-stop-dot { transform: scale(1.08) rotate(-4deg); }
.ttj-stop h3 { font-size: 1.4rem; }
.ttj-stop p:not(.ttj-stop-dot):not(.ttj-hand) { color: var(--muted); font-size: 1rem; }
.ttj-stop .ttj-hand { color: var(--c); }
@media (max-width: 820px) {
	.ttj-story-line { grid-template-columns: 1fr 1fr; row-gap: 36px; }
	.ttj-story-line::before { display: none; }
}

/* Inside a lesson */
.ttj-inside-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ttj-inside-copy > .ttj-eyebrow + h2 { margin-top: 14px; }
.ttj-inside-copy > h2 { margin-bottom: 32px; }
.ttj-stack { position: relative; height: 380px; }
.ttj-sheet {
	position: absolute; width: 230px; height: 300px; left: 50%; top: 30px; background: var(--surface);
	border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 18px;
	display: grid; align-content: start; gap: 8px; transform-origin: 50% 120%;
	transform: translateX(-50%) rotate(var(--r0)); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.ttj-sheet::before { content: ""; height: 10px; border-radius: 4px; background: var(--c); }
.ttj-sheet b { font: 800 1rem/1.2 var(--f-display); }
.ttj-sheet i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.ttj-sheet i:nth-of-type(2n) { width: 80%; }
.ttj-sheet i:nth-of-type(3n) { width: 60%; }
.ttj-sheet .pic { display: block; height: 70px; border-radius: 8px; background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.ttj-sheet:nth-child(1) { --r0: -8deg; --r1: -22deg; --x: -120px; }
.ttj-sheet:nth-child(2) { --r0: -4deg; --r1: -11deg; --x: -60px; }
.ttj-sheet:nth-child(3) { --r0: 0deg;  --r1: 0deg;   --x: 0px; }
.ttj-sheet:nth-child(4) { --r0: 4deg;  --r1: 11deg;  --x: 60px; }
.ttj-sheet:nth-child(5) { --r0: 8deg;  --r1: 22deg;  --x: 120px; }
.ttj-stack:hover .ttj-sheet, .ttj-stack:focus-within .ttj-sheet, .ttj-stack:focus .ttj-sheet { transform: translateX(calc(-50% + var(--x))) rotate(var(--r1)); }
.ttj-features { display: grid; gap: 22px; }
.ttj-feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; }
.ttj-feature::before { content: ""; grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 55%, transparent); }
.ttj-feature:nth-child(1) { --c: var(--sky); }
.ttj-feature:nth-child(2) { --c: var(--tomato); }
.ttj-feature:nth-child(3) { --c: var(--grass); }
.ttj-feature:nth-child(4) { --c: var(--sun); }
.ttj-feature p { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) {
	.ttj-inside-grid { grid-template-columns: 1fr; }
	.ttj-stack { height: 330px; }
	.ttj-sheet { width: 180px; height: 240px; }
	.ttj-sheet:nth-child(1) { --x: -90px; } .ttj-sheet:nth-child(2) { --x: -45px; }
	.ttj-sheet:nth-child(4) { --x: 45px; }  .ttj-sheet:nth-child(5) { --x: 90px; }
}

/* Convictions */
.ttj-convictions { padding-top: 0; }
.ttj-conviction-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ttj-conviction {
	background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
	display: grid; gap: 10px; align-content: start; transition: transform .2s ease, box-shadow .2s ease;
}
.ttj-conviction:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ttj-conviction::before { content: ""; width: 40px; height: 40px; background: var(--c); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ttj-conviction p { color: var(--muted); font-size: 1rem; }
.ttj-conviction:nth-child(1) { --c: var(--tomato); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 34S6 25 6 15a7 7 0 0114-3 7 7 0 0114 3c0 10-14 19-14 19z'/%3E%3C/svg%3E"); }
.ttj-conviction:nth-child(2) { --c: #C9A400; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M8 28l4-14 8 7 8-7 4 14z'/%3E%3Crect x='8' y='29' width='24' height='4' rx='2'/%3E%3C/svg%3E"); }
.ttj-conviction:nth-child(3) { --c: var(--sky); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill-rule='evenodd' d='M10 8h20a4 4 0 014 4v16a4 4 0 01-4 4H10a4 4 0 01-4-4V12a4 4 0 014-4zm8.5 4v6.5H12v3h6.5V28h3v-6.5H28v-3h-6.5V12z'/%3E%3C/svg%3E"); }
.ttj-conviction:nth-child(4) { --c: var(--grass); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill-rule='evenodd' d='M20 6a14 14 0 110 28 14 14 0 010-28zm6.4 8.2l-9.1 10.3-4-4-2.2 2.2 6.3 6.2 11.3-12.7z'/%3E%3C/svg%3E"); }
@media (max-width: 980px) { .ttj-conviction-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ttj-conviction-grid { grid-template-columns: 1fr; } }

/* Year explorer */
.ttj-explorer { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.ttj-series-list { display: grid; gap: 8px; }
.ttj-series-btn {
	text-align: left; border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 14px;
	padding: 14px 16px; cursor: pointer; font: 700 1rem/1.2 var(--f-body); display: grid; gap: 4px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ttj-series-btn small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.ttj-series-btn:hover { transform: translateX(4px); }
.ttj-series-btn[aria-selected="true"] { border-color: var(--ink); box-shadow: 4px 4px 0 var(--sun); }
.ttj-lessons { display: grid; gap: 10px; min-width: 0; }
.ttj-lessons[hidden] { display: none; }
.ttj-lesson-row {
	display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; background: var(--surface);
	border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; animation: ttj-row-in .35s ease both; animation-delay: var(--d, 0ms);
}
a.ttj-lesson-row { text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
a.ttj-lesson-row:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.ttj-lesson-row.is-empty { grid-template-columns: 44px 1fr; border-style: dashed; background: transparent; }
.ttj-books-all { margin-left: auto; background: none !important; color: var(--sky); }
.ttj-lesson-row .num { font: 800 1.3rem/1 var(--f-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.ttj-lesson-row h3 { font-size: 1.08rem; margin: 0; }
.ttj-lesson-row p { color: var(--muted); font-size: .95rem; margin: 0; }
.ttj-badge { font: 700 .72rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; border: 1.5px solid currentColor; color: var(--muted); white-space: nowrap; }
.ttj-badge.is-free { color: var(--grass); }
@keyframes ttj-row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ttj-books { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.ttj-books a { font-size: .9rem; font-weight: 700; text-decoration: none; padding: 6px 12px; border-radius: 8px 8px 8px 2px; background: var(--surface); }
.ttj-books a:hover { background: var(--highlight); }
@media (max-width: 820px) { .ttj-explorer { grid-template-columns: 1fr; } .ttj-series-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
	.ttj-series-list { grid-template-columns: 1fr; }
	.ttj-lesson-row { grid-template-columns: 1fr; gap: 6px; }
	.ttj-lesson-row .num { display: none; }
	.ttj-lesson-row .ttj-badge { justify-self: start; }
}

/* Audiences */
.ttj-aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ttj-aud { border-radius: 22px; padding: 34px; display: grid; gap: 14px; align-content: start; border: 2px solid var(--ink); background: var(--surface); }
.ttj-aud .ttj-photo { margin: -6px 0 6px; }
.ttj-aud:first-child .ttj-photo { --tilt: -1.5deg; }
.ttj-aud.is-church .ttj-photo { --tilt: 1.5deg; }
.ttj-aud ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.ttj-aud p, .ttj-aud li { color: var(--muted); }
.ttj-aud.is-church { background: var(--ink); color: var(--paper); }
.ttj-aud.is-church h3 { color: var(--paper); }
.ttj-aud.is-church p:not(.ttj-tag), .ttj-aud.is-church li { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.ttj-tag { justify-self: start; font-weight: 700; font-size: .8rem; padding: 6px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); }
@media (max-width: 760px) { .ttj-aud-grid { grid-template-columns: 1fr; } .ttj-aud { padding: 24px; } }

/* Free printables */
.ttj-free { padding-top: 0; }
.ttj-freebie {
	display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--surface);
	border: 1px solid var(--line); border-radius: 26px; padding: 40px;
}
.ttj-freebie-copy { display: grid; gap: 16px; }
.ttj-freebie-copy .ttj-photo { max-width: 300px; --tilt: -2deg; margin-top: 10px; }
.ttj-freebie-items { list-style: none; padding: 0; display: grid; gap: 10px; }
.ttj-freebie-items li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.ttj-freebie-items li::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px; transform: rotate(-6deg); background: var(--c); }
.ttj-freebie-items li:nth-child(1) { --c: var(--sun); }
.ttj-freebie-items li:nth-child(2) { --c: var(--tomato); }
.ttj-freebie-items li:nth-child(3) { --c: var(--grass); }
.ttj-free-form { display: grid; gap: 12px; }
.ttj-free-form label { font-weight: 700; font-size: .9rem; }
.ttj-free-form input { font: inherit; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; }
.ttj-free-form input:focus { border-color: var(--sky); outline: none; }
.ttj-free-form button { justify-self: start; margin-top: 6px; }
.ttj-form-msg { font-size: .95rem; color: var(--grass); font-weight: 700; margin: 0; }
.ttj-form-msg.is-error { color: var(--tomato); }
@media (max-width: 820px) { .ttj-freebie { grid-template-columns: 1fr; padding: 28px; } }

/* Pricing */
.ttj-pricing { padding-top: 0; }
.ttj-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 28px; align-items: start; }
.ttj-plan {
	position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: 26px; padding: 36px 32px 32px;
	display: grid; gap: 16px; text-align: center;
}
.ttj-plan > * { margin: 0; }
.ttj-plan.is-featured { border-color: var(--ink); box-shadow: 8px 8px 0 var(--sun); }
.ttj-plan h3 { font-size: 1.3rem; }
.ttj-plan .wp-element-button { justify-self: center; text-decoration: none; }
.ttj-plan-badge {
	position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap;
	font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: var(--sun); color: var(--ink);
}
.wp-element-button.is-outline { background: transparent; color: var(--ink); box-shadow: none; }
.wp-element-button.is-outline:hover { background: var(--band); }
.ttj-plans-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 24px; }
.ttj-price { font: 800 3.4rem/1 var(--f-display); }
.ttj-price small { font: 400 1rem var(--f-body); color: var(--muted); }
@media (max-width: 760px) { .ttj-plans { grid-template-columns: minmax(0, 1fr); } }
.ttj-checks { list-style: none; padding: 0; display: grid; gap: 8px; text-align: left; }
.ttj-checks li { display: flex; gap: 10px; }
.ttj-checks li::before {
	content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; background: var(--grass);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 0a10 10 0 110 20 10 10 0 010-20zm4.6 5.8l-6.1 6.9-2.9-2.9-1.4 1.4 4.4 4.4 7.5-8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 0a10 10 0 110 20 10 10 0 010-20zm4.6 5.8l-6.1 6.9-2.9-2.9-1.4 1.4 4.4 4.4 7.5-8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Footer */
.ttj-footer { border-top: 1px solid var(--line); padding-block: 48px 32px; color: var(--muted); font-size: .95rem; background: var(--surface); }
.ttj-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px 24px; }
.ttj-footer-brand { display: grid; gap: 12px; align-content: start; max-width: 300px; }
.ttj-footer-brand p { margin: 0; }
.ttj-footer-col h2 { font: 700 .78rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 6px 0 12px; }
.ttj-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ttj-footer-col a { text-decoration: none; color: var(--muted); }
.ttj-footer-col a:hover { color: var(--ink); text-decoration: underline; }
.ttj-copyright { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 900px) { .ttj-footer-grid { grid-template-columns: 1fr 1fr; } .ttj-footer-brand { grid-column: 1 / -1; } }

/* Content pages */
.ttj-page-head { padding-bottom: 8px; }
.ttj-page-head > * { margin: 0; }
.ttj-page-title { margin-bottom: 10px !important; }
.ttj-page-lede, .ttj-lede { font-size: 1.2rem; color: var(--muted); }
.ttj-page-lede p { margin: 0; }
.ttj-page-content h2 { margin-top: 2.2rem; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.ttj-page-content h3 { margin-top: 1.4rem; }
.ttj-page-content a { color: var(--sky); }
.ttj-page-content .wp-element-button { color: var(--paper); }
.ttj-page-content .is-style-outline .wp-element-button { color: var(--ink); }

.ttj-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .ttj-cards { grid-template-columns: 1fr; } }
.ttj-cards > * { margin: 0 !important; }
.ttj-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--c, var(--sky)); border-radius: 16px; padding: 18px 20px; }
.ttj-card:nth-child(4n+1) { --c: var(--tomato); }
.ttj-card:nth-child(4n+2) { --c: #C9A400; }
.ttj-card:nth-child(4n+3) { --c: var(--grass); }
.ttj-card > * { margin: 0 0 6px !important; }
.ttj-card h3 { margin-top: 0 !important; font-size: 1.15rem; }
.ttj-card p { color: var(--muted); font-size: 1rem; }

.ttj-steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 14px; }
.ttj-steps li { counter-increment: step; position: relative; padding: 14px 18px 14px 68px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ttj-steps li::before { content: counter(step); position: absolute; left: 16px; top: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 800 1.1rem/1 var(--f-display); box-shadow: 0 3px 0 var(--sun); }

.ttj-beliefs { list-style: none; padding: 0; display: grid; gap: 10px; }
.ttj-beliefs li { padding: 12px 16px 12px 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.ttj-beliefs li::before { content: "✝"; position: absolute; left: 16px; top: 11px; color: var(--sky); font-weight: 700; }

.ttj-yes, .ttj-no { list-style: none; padding: 0; display: grid; gap: 8px; }
.ttj-yes li, .ttj-no li { padding-left: 32px; position: relative; }
.ttj-yes li::before, .ttj-no li::before { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; }
.ttj-yes li::before { content: "✓"; background: var(--grass); }
.ttj-no li::before { content: "✕"; background: var(--tomato); }

.wp-block-details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-block: 10px !important; }
.wp-block-details summary { cursor: pointer; font: 700 1.05rem/1.35 var(--f-display); list-style: none; position: relative; padding-right: 28px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: -2px; font: 800 1.4rem/1 var(--f-display); color: var(--sky); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details[open] summary { margin-bottom: 8px; }
.wp-block-details p { margin: 0; color: var(--muted); }

.ttj-plan-table table { border-collapse: collapse; width: 100%; max-width: 480px; }
.ttj-plan-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ttj-plan-table td:last-child { text-align: right; color: var(--muted); }

.ttj-scope { display: grid; gap: 18px; }
.ttj-scope-series { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; }
.ttj-scope-series header > * { margin: 0 0 4px; }
.ttj-scope-series h3 a { text-decoration: none; color: var(--ink); }
.ttj-scope-list { margin: 10px 0 0; padding-left: 1.4em; display: grid; gap: 6px; }
.ttj-scope-list a { font-weight: 700; text-decoration: none; }

.ttj-contact textarea, .ttj-contact select {
	font: inherit; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); width: 100%;
}
.ttj-contact textarea:focus, .ttj-contact select:focus { border-color: var(--sky); outline: none; }
.ttj-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Notices */
.ttj-notice { background: var(--band); border-left: 4px solid var(--sky); border-radius: 10px; padding: 14px 18px; margin-bottom: 24px; }
.ttj-notice.is-success { border-color: var(--grass); }
.ttj-notice.is-error { border-color: var(--tomato); }
.ttj-notice ul { margin: 0; padding-left: 1.1em; }
.ttj-notice p { margin: 0; }
.ttj-notice p + p { margin-top: 12px; }
.ttj-notice .wp-element-button, .ttj-actions .wp-element-button { display: inline-block; text-decoration: none; }
.ttj-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ttj-help { color: var(--muted); font-size: .9rem; }

/* Join */
.ttj-join { display: grid; gap: 24px; max-width: 640px; }
.ttj-join fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.ttj-join legend { font: 700 1.2rem/1.2 var(--f-display); margin-bottom: 12px; padding: 0; }
.ttj-join label { font-weight: 700; font-size: .9rem; }
.ttj-join input:not([type="radio"]), .ttj-account-login input[type="text"], .ttj-account-login input[type="password"] {
	font: inherit; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); width: 100%;
}
.ttj-join input:focus, .ttj-account-login input:focus { border-color: var(--sky); outline: none; }
.ttj-join button { justify-self: start; }
.ttj-join .ttj-help { margin: 0; }
.ttj-plan-choice { grid-template-columns: 1fr 1fr; }
.ttj-plan-choice legend { grid-column: 1 / -1; }
.ttj-join label.ttj-plan-option {
	position: relative; display: grid; gap: 4px; padding: 18px 18px 18px 52px; border: 2px solid var(--line); border-radius: 16px;
	background: var(--surface); cursor: pointer; font-weight: 400; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.ttj-plan-option input { position: absolute; left: 18px; top: 22px; width: 20px; height: 20px; accent-color: var(--ink); }
.ttj-plan-option:has(input:checked) { border-color: var(--ink); box-shadow: 4px 4px 0 var(--sun); }
.ttj-plan-name { font-weight: 700; }
.ttj-plan-name em { font-style: normal; font-size: .75rem; background: var(--sun); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.ttj-plan-price { font: 800 1.6rem/1.1 var(--f-display); }
.ttj-plan-price small { font: 400 .9rem var(--f-body); color: var(--muted); }
.ttj-plan-detail { color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .ttj-plan-choice { grid-template-columns: 1fr; } }

/* Account */
.ttj-account { display: grid; gap: 20px; }
.ttj-account-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; display: grid; gap: 10px; }
.ttj-account-card > * { margin: 0; }
.ttj-account-card h2 { font-size: 1.3rem; }
.ttj-account-card .wp-element-button { display: inline-block; text-decoration: none; }
.ttj-status { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ttj-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.ttj-status.is-active::before { background: var(--grass); }
.ttj-meter { height: 12px; background: var(--band); border-radius: 999px; overflow: hidden; }
.ttj-meter span { display: block; height: 100%; background: var(--sky); border-radius: 999px; }
.ttj-history-list { list-style: none; padding: 0; margin: 0; display: grid; }
.ttj-history-item { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.ttj-history-item:first-child { border-top: 0; padding-top: 4px; }
.ttj-history-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.ttj-history-title { font: 700 1.1rem/1.3 var(--f-display); text-decoration: none; }
.ttj-history-files { display: flex; flex-wrap: wrap; gap: 8px; }
.ttj-file {
	display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; text-decoration: none;
	padding: 7px 12px; border-radius: 999px; border: 2px solid var(--c); color: var(--ink); background: var(--surface);
}
.ttj-file::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M5 1h2v5h2.5L6 9.5 2.5 6H5zM1 10h10v1.5H1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M5 1h2v5h2.5L6 9.5 2.5 6H5zM1 10h10v1.5H1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ttj-file.is-downloaded { background: color-mix(in srgb, var(--c) 16%, var(--surface)); }
.ttj-file:hover { background: var(--c); color: var(--tc); }
.ttj-account-login { max-width: 420px; }
.ttj-account-login form p { display: grid; gap: 6px; }
.ttj-account-login .login-remember label { display: flex; gap: 8px; align-items: center; }
.ttj-account-login input[type="submit"] {
	font: 700 1rem/1 var(--f-body); padding: .95em 1.4em; border-radius: 999px; border: 2px solid var(--ink);
	background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 var(--sun); cursor: pointer;
}

/* Big Story stage colors */
.ttj-stage--creation    { --stage: var(--grass); }
.ttj-stage--fall        { --stage: var(--tomato); }
.ttj-stage--redemption  { --stage: var(--sky); }
.ttj-stage--restoration { --stage: #C9A400; }

/* Lesson page */
.ttj-lesson-page .ttj-lesson { max-width: var(--wp--style--global--wide-size); margin-inline: auto; display: grid; gap: 28px; }
.ttj-lesson-hero { display: grid; gap: 14px; }
.ttj-lesson-hero > * { margin: 0; }
.ttj-lesson-hero .ttj-eyebrow a { color: inherit; }
.ttj-review-flag { justify-self: start; background: var(--highlight); border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: .9rem; }
.ttj-lesson-ref { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-weight: 700; color: var(--muted); }
.ttj-stage { font: 700 .72rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; color: #fff; background: var(--stage); }
.ttj-lesson-idea { font: 700 clamp(1.3rem, 2.4vw, 1.7rem)/1.3 var(--f-display); max-width: 36em; }
.ttj-lesson-art { margin: 6px 0 4px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); max-width: 100%; }
.ttj-lesson-art img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 35%; }
@media (max-width: 700px) { .ttj-lesson-art img { aspect-ratio: 3 / 2; } }
.ttj-lesson-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.ttj-badge.is-link { text-decoration: none; transition: background .15s, color .15s; }
.ttj-badge.is-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* Testament and principle pills share one height, border and centering. */
.ttj-lesson-ref .ttj-badge,
.ttj-lesson-ref .ttj-principle-tag { box-sizing: border-box; height: 34px; display: inline-flex; align-items: center; border-width: 2px; }
.ttj-lesson-ref .ttj-badge { padding: 0 14px; font-size: .78rem; }
.ttj-lesson-ref .ttj-principle-tag { padding: 0 14px 0 3px; font-size: .95rem; }
.ttj-lesson-ref .ttj-principle-tag span { padding: 0 10px; height: 24px; display: inline-flex; align-items: center; }
.ttj-lesson-hero .ttj-principle-text { margin-top: -6px; }
.ttj-info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.ttj-info-card > *, .ttj-info-card blockquote p { margin: 0; }
.ttj-info-card blockquote { margin: 0; display: grid; gap: 6px; font-size: 1.05rem; }
.ttj-info-card cite { font-style: normal; color: var(--muted); font-size: .9rem; }
.ttj-info-card.is-jesus { border-left: 5px solid var(--sky); }
.ttj-info-card.is-story { border-left: 5px solid var(--stage); }

.ttj-dl-bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
	background: var(--band); border-radius: 18px; padding: 18px 22px;
}
.ttj-dl-bar > div:first-child { display: grid; gap: 2px; max-width: 34em; }
.ttj-dl-bar p { margin: 0; }
.ttj-dl-bar .wp-element-button { text-decoration: none; }
.ttj-dl-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.ttj-lesson-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 3px solid var(--line); padding-top: 6px; scrollbar-width: thin; }
.ttj-ltab {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px 10px; border-radius: 12px 12px 0 0;
	font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--c) 14%, var(--surface));
	border-top: 4px solid var(--c); transform: translateY(3px); transition: transform .15s ease, background .15s ease;
}
.ttj-ltab:hover { transform: translateY(0); }
.ttj-ltab[aria-selected="true"] { background: var(--c); color: var(--tc); transform: translateY(0); }
.ttj-lock { width: 12px; height: 12px; background: currentColor; opacity: .6; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 5V3.5a3 3 0 016 0V5h1v7H2V5zm1.5 0h3V3.5a1.5 1.5 0 00-3 0z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 5V3.5a3 3 0 016 0V5h1v7H2V5zm1.5 0h3V3.5a1.5 1.5 0 00-3 0z'/%3E%3C/svg%3E") center / contain no-repeat; }

.ttj-lpanel { border-top: 6px solid var(--c); margin-top: -28px; background: var(--surface); border-radius: 0 0 22px 22px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.ttj-lpanel[hidden] { display: none; }
.ttj-version, .ttj-locked { display: grid; gap: 22px; }
.ttj-locked { max-width: 760px; }
/* Readable line length for running text; callouts use the space to the right. */
.ttj-version > .ttj-version-idea, .ttj-version > .ttj-hook, .ttj-version > .ttj-verse, .ttj-version > .ttj-illustration { max-width: 760px; }
.ttj-story > p, .ttj-story > ul, .ttj-story > .ttj-talk, .ttj-story > .ttj-say { max-width: 680px; }
.ttj-questions, .ttj-checklist { max-width: 760px; }
.ttj-version > *, .ttj-locked > * { margin: 0; }
.ttj-version-idea { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.ttj-verse { background: var(--band); border-radius: 14px; padding: 16px 20px; display: grid; gap: 4px; }
.ttj-verse p { margin: 0; }
.ttj-verse p:nth-child(2) { font: 700 1.15rem/1.4 var(--f-display); }
.ttj-block { display: grid; gap: 10px; }
.ttj-block > * { margin: 0; }
.ttj-block h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1.2rem; }
.ttj-mins { font: 700 .75rem/1 var(--f-body); color: var(--muted); background: var(--band); padding: 4px 8px; border-radius: 999px; }
.ttj-story p { margin: 0 0 1em; font-size: 1.08rem; }
.ttj-story.is-faded { position: relative; max-height: 22em; overflow: hidden; }
.ttj-story.is-faded::after { content: ""; position: absolute; inset: auto 0 0; height: 5em; background: linear-gradient(transparent, var(--surface)); }
.ttj-keep-reading { font-weight: 700; color: var(--muted); }
.ttj-questions { display: grid; gap: 10px; padding-left: 1.4em; }
.ttj-questions details { margin-top: 4px; color: var(--muted); font-size: .95rem; }
.ttj-questions summary { cursor: pointer; font-weight: 700; font-size: .85rem; }
.ttj-qkind { display: inline-block; font: 700 .7rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--sky); margin-right: 6px; }
.ttj-activity { border: 2px dashed color-mix(in srgb, var(--c, var(--ink)) 45%, var(--line)); border-radius: 16px; padding: 16px 20px; display: grid; gap: 8px; }
.ttj-activity > * { margin: 0; }
.ttj-activity h4 { font: 700 1.05rem/1.3 var(--f-display); display: flex; gap: 10px; align-items: baseline; }
.ttj-activity ol { padding-left: 1.3em; display: grid; gap: 4px; }
.ttj-supplies { font-size: .95rem; color: var(--muted); }
.ttj-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ttj-block.is-live, .ttj-block.is-pray, .ttj-block.is-parent, .ttj-block.is-jesus { background: var(--band); border-radius: 16px; padding: 16px 20px; }
.ttj-block.is-live { background: color-mix(in srgb, var(--grass) 12%, var(--surface)); }
.ttj-block.is-jesus { border-left: 5px solid var(--sky); }
.ttj-block p { margin: 0 0 .6em; }
.ttj-checklist { list-style: none; padding: 0; display: grid; gap: 6px; }
.ttj-checklist li { padding-left: 28px; position: relative; }
.ttj-checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border: 2px solid var(--muted); border-radius: 4px; }
.ttj-schedule { width: 100%; max-width: 480px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ttj-schedule td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ttj-schedule td:last-child { text-align: right; color: var(--muted); white-space: nowrap; }
.ttj-schedule tfoot td { font-weight: 700; border-bottom: 0; color: var(--ink); }
.ttj-pron, .ttj-tips { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.ttj-pron dt, .ttj-tips dt { font-weight: 700; }
.ttj-pron dd, .ttj-tips dd { margin: 0; color: var(--muted); }
.ttj-tips dt { display: flex; align-items: center; gap: 8px; }
.ttj-tips dt::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ttj-join-card { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; border: 2px solid var(--ink); border-radius: 18px; padding: 18px 22px; box-shadow: 6px 6px 0 var(--sun); }
.ttj-join-card p { margin: 0; }
.ttj-join-card .wp-element-button { text-decoration: none; }
.ttj-lesson-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-top: 12px; }
.ttj-lesson-nav a { text-decoration: none; font-weight: 700; }
.ttj-lesson-nav a span { display: block; font: 700 .72rem/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ttj-lesson-nav .is-next { text-align: right; }
.ttj-lesson-nav .is-series { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) {
	.ttj-two { grid-template-columns: 1fr; }
	.ttj-lesson-nav { grid-template-columns: 1fr 1fr; }
	.ttj-lesson-nav .is-series { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}

/* Lesson enrichment */
.ttj-story-marker { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 640px; }
.ttj-story-marker li { --stage: var(--line); display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; border-top: 4px solid var(--stage); background: var(--surface); opacity: .55; font-size: .8rem; position: relative; }
.ttj-story-marker li b { font: 700 .85rem/1.2 var(--f-display); }
.ttj-story-marker li span { color: var(--muted); }
.ttj-story-marker li.is-here { opacity: 1; box-shadow: var(--shadow); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ttj-big-story { display: grid; gap: 6px; }
.ttj-big-story > * { margin: 0; }

/* Placed callouts: facts and Bible Times sit beside the story text */
.ttj-story::after { content: ""; display: block; clear: both; }
.ttj-aside { float: right; clear: right; width: 300px; margin: 4px 0 16px 28px; padding: 14px 16px; border-radius: 14px; font-size: .95rem; }
/* Wide screens: callouts sit in their own column beside the 680px story text. */
@media (min-width: 1100px) {
	.ttj-story { position: relative; }
	.ttj-aside { width: calc(100% - 680px - 40px); max-width: 340px; margin-left: 40px; }
}
.ttj-aside > * { margin: 0 0 4px; }
.ttj-aside p:last-child, .ttj-story .ttj-aside p:last-child { margin-bottom: 0; }
.ttj-story .ttj-aside p { font-size: .95rem; margin: 0 0 4px; }
.ttj-aside--fact { background: #FFFBE6; border-left: 5px solid var(--sun); }
.ttj-aside--times { background: #FBF5E6; border-left: 5px solid #C9A46A; }
.ttj-aside--times h4 { font: 700 1rem/1.25 var(--f-display); color: #6B4E16; }
.ttj-aside--words { background: var(--band); }
.ttj-aside--words .ttj-words { grid-template-columns: 1fr; gap: 6px; }
.ttj-aside--words .ttj-words div { padding: 0; background: none; }

/* Student handout: preview picture beside the description and download. */
.ttj-handout { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 24px; align-items: start; }
.ttj-handout-preview { margin: 0; }
.ttj-handout-preview img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; transition: transform .2s; }
.ttj-handout-preview a:hover img { transform: translateY(-3px) rotate(-1deg); }
.ttj-locked .ttj-handout-preview { max-width: 280px; margin: 16px 0; }
@media (max-width: 600px) { .ttj-handout { grid-template-columns: 1fr; } .ttj-handout-preview { max-width: 280px; } }

/* Side boxes that end a story: a full-width row instead of a stack of floats. */
.ttj-aside-row { clear: both; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 20px 0 8px; align-items: start; }
.ttj-aside-row .ttj-aside { float: none; width: auto; margin: 0; }

/* Hidden in Plain Sight (the ah-ha): full width, so it reads as a turn in the story. */
.ttj-aha { clear: both; position: relative; margin: 22px 0; padding: 18px 22px 18px 24px; border-radius: 18px; background: linear-gradient(135deg, #F4F0FF, #FBF9FF); border: 2px solid #CBBEF5; box-shadow: 0 6px 20px rgba(91, 61, 184, .10); }
.ttj-aha > * { margin: 0 0 6px; }
.ttj-aha > :last-child { margin-bottom: 0; }
.ttj-aha-head { display: flex; align-items: center; gap: 8px; font: 800 .82rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: #5B3DB8; }
.ttj-aha-icon { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #FFEC8A; color: #5B3DB8; flex: none; }
.ttj-aha h4 { font: 700 1.15rem/1.3 var(--f-display); color: #2E1F66; }
.ttj-aha p { font-size: 1.05rem; }
@media (prefers-reduced-motion: no-preference) {
	.ttj-aha-icon { animation: ttj-aha-glow 2.6s ease-in-out infinite; }
	@keyframes ttj-aha-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 220, 60, 0); } 50% { box-shadow: 0 0 0 7px rgba(255, 220, 60, .35); } }
}
.ttj-inline-graphic { display: flow-root; max-width: 680px; margin: 8px 0 20px; } /* flow-root: never slides under a callout */
.ttj-version .ttj-block > p, .ttj-version .ttj-block > ul:not(.ttj-songs), .ttj-version .ttj-block > ol { max-width: 760px; }
@media (max-width: 760px) { .ttj-aside { float: none; width: auto; margin: 8px 0 16px; } }

.ttj-explore { border-top: 1px solid var(--line); padding-top: 14px; }
.ttj-explore summary { cursor: pointer; font: 700 1.1rem/1.3 var(--f-display); }
.ttj-explore > div { display: grid; gap: 10px; padding-top: 12px; }
.ttj-explore h4 { font: 700 1rem/1.25 var(--f-display); margin: 8px 0 0; }
.ttj-explore p { margin: 0; }
.ttj-fact-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
@media (max-width: 520px) { .ttj-story-marker { grid-template-columns: 1fr 1fr; } }

.ttj-hook { background: color-mix(in srgb, var(--sun) 22%, var(--surface)); border-radius: 16px; padding: 16px 20px 16px 64px; position: relative; }
.ttj-hook::before { content: ""; position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; background: var(--sun); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='7'/%3E%3Cpath d='M15 1h2v6h-2zM15 25h2v6h-2zM1 15h6v2H1zM25 15h6v2h-6zM5 6.4 6.4 5l4.2 4.2-1.4 1.4zM21.4 22.8l1.4-1.4 4.2 4.2-1.4 1.4zM5 25.6l4.2-4.2 1.4 1.4L6.4 27zM21.4 9.2l4.2-4.2 1.4 1.4-4.2 4.2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='7'/%3E%3Cpath d='M15 1h2v6h-2zM15 25h2v6h-2zM1 15h6v2H1zM25 15h6v2h-6zM5 6.4 6.4 5l4.2 4.2-1.4 1.4zM21.4 22.8l1.4-1.4 4.2 4.2-1.4 1.4zM5 25.6l4.2-4.2 1.4 1.4L6.4 27zM21.4 9.2l4.2-4.2 1.4 1.4-4.2 4.2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ttj-hook p { margin: 0 0 .4em; }
.ttj-hook p:last-child { margin: 0; }

.ttj-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ttj-fact-card { position: relative; background: var(--surface); border: 2px solid var(--sun); border-radius: 16px; padding: 16px 18px 14px; display: grid; gap: 4px; align-content: start; transform: rotate(-.6deg); }
.ttj-fact-card:nth-child(2n) { transform: rotate(.6deg); }
.ttj-fact-card p { margin: 0; }
.ttj-fact-card::after { content: "?"; position: absolute; top: -14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 800 1.1rem/28px var(--f-display); text-align: center; }

.ttj-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ttj-times-card { background: #FBF5E6; border: 1px solid #E8DCC0; border-radius: 14px; padding: 16px 18px; box-shadow: inset 0 0 0 4px #FFFBF1; }
.ttj-times-card h4 { margin: 0 0 6px; font: 700 1.05rem/1.25 var(--f-display); color: #6B4E16; }
.ttj-times-card p { margin: 0 0 .5em; font-size: .98rem; }

.ttj-words { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0; }
.ttj-words div { background: var(--band); border-radius: 12px; padding: 12px 14px; }
.ttj-words dt { font: 800 1.05rem/1.2 var(--f-display); }
.ttj-words dd { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

.ttj-real-life { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ttj-life-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.ttj-life-card svg { width: 32px; height: 32px; fill: var(--sky); }
.ttj-life-card p { margin: 0; }
.ttj-life--school svg { fill: var(--tomato); } .ttj-life--siblings svg, .ttj-life--friends svg { fill: var(--grass); }
.ttj-life--vacation svg { fill: var(--sky); } .ttj-life--home svg { fill: #C9A400; }

.ttj-songs { list-style: none; padding: 0; display: grid; gap: 8px; }
.ttj-songs li { display: grid; gap: 2px; padding: 10px 14px 10px 46px; border-radius: 12px; background: var(--band); position: relative; }
.ttj-songs li::before { content: "♪"; position: absolute; left: 14px; top: 8px; font: 800 1.4rem/1 var(--f-display); color: var(--sky); }
.ttj-songs span { color: var(--muted); font-size: .9rem; }
.ttj-chant { border: 3px dashed var(--grass); border-radius: 16px; padding: 14px 18px; margin-top: 10px; }
.ttj-chant p { margin: 0 0 .5em; font: 700 1.1rem/1.5 var(--f-display); }
.ttj-chant .ttj-eyebrow { font: 700 .78rem/1.2 var(--f-body); }

.ttj-say { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--highlight); border-radius: 999px; padding: 8px 16px; font: 700 1.05rem/1.3 var(--f-display); margin: .2em 0 1em !important; }
.ttj-say span { font: 700 .7rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--paper); padding: 4px 8px; border-radius: 999px; }
.ttj-talk { display: grid; gap: 10px; margin: .4em 0 1.2em; }
.ttj-bubble { position: relative; max-width: 80%; margin: 0 !important; padding: 10px 14px; border-radius: 18px; background: var(--band); font-size: 1.02rem; }
.ttj-bubble b { display: block; font: 700 .75rem/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ttj-bubble.is-left { justify-self: start; border-bottom-left-radius: 4px; }
.ttj-bubble.is-right { justify-self: end; border-bottom-right-radius: 4px; background: color-mix(in srgb, var(--c, var(--sky)) 16%, var(--surface)); }
.ttj-bubble.is-narrator { justify-self: center; background: none; font-style: italic; color: var(--muted); }

.ttj-skit { border: 2px solid var(--ink); border-radius: 16px; padding: 16px 20px; display: grid; gap: 8px; }
.ttj-skit > * { margin: 0; }
.ttj-skit h4 { font: 700 1.05rem/1.3 var(--f-display); display: flex; gap: 10px; align-items: baseline; }
.ttj-point { background: var(--band); border-radius: 10px; padding: 8px 12px; }
.ttj-block.is-snack { background: color-mix(in srgb, var(--tomato) 10%, var(--surface)); border-radius: 16px; padding: 16px 20px; }
.ttj-block.is-object .ttj-activity { border-color: var(--sky); }

.ttj-graphics { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.ttj-graphic { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.ttj-graphic svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.ttj-graphic figcaption { font-weight: 700; text-align: center; font-size: .95rem; }
.ttj-graphic figcaption dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; text-align: left; font-weight: 400; margin: 0; }
.ttj-graphic figcaption dt { font-weight: 700; }
.ttj-graphic figcaption dd { margin: 0; color: var(--muted); }
.ttj-map .land { fill: #F1E8D2; }
.ttj-map .water { fill: #BFDDF2; }
.ttj-map .river { fill: none; stroke: #8EC3E6; stroke-width: 4; stroke-linecap: round; }
.ttj-map .water-label { fill: #3C78A8; font: italic 600 15px var(--f-body); }
.ttj-map .pin circle { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.ttj-map .pin.is-main circle { fill: var(--tomato); stroke: var(--surface); }
.ttj-map .pin text { font: 700 17px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: #F1E8D2; stroke-width: 4px; }
.ttj-compare .grid { stroke: var(--line); stroke-dasharray: 4 6; }
.ttj-compare .ground { stroke: var(--ink); stroke-width: 2; }
.ttj-compare .value { font: 800 18px var(--f-display); fill: var(--ink); }
.ttj-compare .label { font: 700 16px var(--f-body); fill: var(--ink); }
.ttj-compare .note { font: 14px var(--f-body); fill: var(--muted); }

.ttj-illustration { margin: 0; border-radius: 16px; overflow: hidden; }
.ttj-illustration img { display: block; width: 100%; height: auto; }
.ttj-illustration.is-placeholder { border: 2px dashed var(--muted); padding: 16px 20px; background: repeating-linear-gradient(45deg, var(--band) 0 12px, var(--surface) 12px 24px); }
.ttj-illustration.is-placeholder p { margin: 0 0 4px; }

/* Characters: Ellie, Theo and Dasch */
.ttj-host { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--surface); box-shadow: 0 2px 6px rgba(24, 34, 58, .18); background: var(--band); }
.has-host { display: flex !important; align-items: center; gap: 12px; }
.ttj-host-line { display: flex; align-items: center; gap: 8px; margin: 0 0 6px !important; }
.ttj-host-line .ttj-host { width: 36px; height: 36px; border-width: 2px; }
.ttj-explore .has-host .ttj-host { width: 32px; height: 32px; }
.ttj-block.is-think { background: color-mix(in srgb, var(--sun) 12%, var(--surface)); border-radius: 16px; padding: 16px 20px; }
.ttj-block.is-think .ttj-questions { margin-bottom: 0; }
.ttj-say { padding-left: 8px; }
.ttj-say::before { content: ""; width: 30px; height: 30px; border-radius: 50%; flex: none; background: url("../img/characters/dasch.jpg") center / cover; border: 2px solid var(--surface); }

.ttj-crew { padding-top: 24px; }
.ttj-crew-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ttj-crew-grid > * { margin: 0 !important; }
.ttj-crew-art { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.ttj-crew-art img { display: block; width: 100%; height: auto; }
.ttj-crew-copy { display: grid; gap: 14px; }
.ttj-crew-copy > * { margin: 0 !important; }
.ttj-crew-copy > p:not(.ttj-eyebrow) { color: var(--muted); }
.ttj-crew-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ttj-crew-list li { display: flex; gap: 14px; align-items: center; }
.ttj-crew-list img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: var(--shadow); flex: none; }
.ttj-crew-list strong { display: block; font: 800 1.1rem/1.2 var(--f-display); }
.ttj-crew-list span { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .ttj-crew-grid { grid-template-columns: 1fr; gap: 28px; } }

.ttj-404-inner { display: grid; justify-items: center; gap: 14px; padding-block: 24px; }
.ttj-404-inner > * { margin: 0 !important; }
.ttj-404-dasch { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 6px solid var(--surface); box-shadow: var(--shadow); animation: ttj-bob 5s ease-in-out infinite; }

/* Principle */
.ttj-principle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.ttj-principle-tag {
	display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink);
	background: var(--surface); border: 2px solid var(--grass); border-radius: 999px; padding: 4px 14px 4px 4px;
	font: 800 1.05rem/1.2 var(--f-display);
}
.ttj-principle-tag span { background: var(--grass); color: #fff; border-radius: 999px; padding: 4px 10px; font: 700 .7rem/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .08em; }
.ttj-principle-tag:hover { background: color-mix(in srgb, var(--grass) 12%, var(--surface)); }
.ttj-principle-text { color: var(--muted); font-size: 1.02rem; max-width: 40em; }
.ttj-badge.is-principle { color: var(--grass); }
.ttj-related { display: grid; gap: 12px; padding-top: 12px; }
.ttj-related > * { margin: 0; }
.ttj-related h2 { font-size: 1.5rem; }

/* Library */
.ttj-library { max-width: var(--wp--style--global--wide-size); margin-inline: auto; display: grid; gap: 24px; }
.ttj-library-head { display: grid; gap: 12px; }
.ttj-library-head > * { margin: 0; }
.ttj-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; align-items: end; }
.ttj-field { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); min-width: 0; }
.ttj-field.is-wide { grid-column: span 2; }
.ttj-field input, .ttj-field select { font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); width: 100%; }
.ttj-field input:focus, .ttj-field select:focus { border-color: var(--sky); outline: none; }
.ttj-filter-actions { display: flex; gap: 14px; align-items: center; }
.ttj-filter-actions .wp-element-button { padding: .75em 1.2em; }
@media (max-width: 900px) { .ttj-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ttj-filters { grid-template-columns: 1fr; } .ttj-field.is-wide { grid-column: auto; } }
.ttj-result-count { margin: 0; color: var(--muted); font-weight: 700; }
.ttj-lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ttj-lesson-card {
	--stage: var(--line); position: relative; display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink);
	background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--stage); border-radius: 16px; padding: 18px 20px;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ttj-lesson-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ttj-lesson-card.has-art { padding-top: 0; overflow: hidden; }
.ttj-card-art { display: block; width: calc(100% + 40px); max-width: none; margin: 0 -20px 6px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ttj-card-h { font: 800 1.25rem/1.2 var(--f-display); }
.ttj-card-ref { font-weight: 700; color: var(--muted); font-size: .9rem; }
.ttj-card-idea { color: var(--muted); font-size: .98rem; }
.ttj-card-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ttj-badge.is-review { color: #9A7A00; }
.ttj-empty { background: var(--surface); border: 2px dashed var(--line); border-radius: 18px; padding: 28px; text-align: center; }
.ttj-pager { display: flex; gap: 6px; justify-content: center; }
.ttj-pager a, .ttj-pager span { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.ttj-pager span { background: var(--ink); color: var(--paper); }

/* Inner pages */
.ttj-page { padding-block: clamp(40px, 6vw, 72px); }
.ttj-404 { text-align: center; }
.ttj-404 .wp-block-buttons { justify-content: center; }

/* Gentle scroll reveal; content is visible without it */
@supports (animation-timeline: view()) {
	.ttj-sec .ttj-section-head, .ttj-stop, .ttj-conviction, .ttj-aud, .ttj-freebie, .ttj-price-card, .ttj-board .ttj-photo, .ttj-facts {
		animation: ttj-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%;
	}
	@keyframes ttj-rise { from { translate: 0 28px; opacity: .35; } to { translate: 0 0; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
