/*
 * RTJ 2026 — the whole stylesheet.
 *
 * Colours, type and spacing are lifted from the Elementor kit (post 14149) and
 * the header/footer templates (14181 / 14176) so the rebuild matches the site
 * people already know. Nothing here uses !important — the old child theme only
 * needed those to fight Elementor's own output.
 */

/* -------------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------------- */

:root {
	/*
	 * This is a light design. Declaring it stops Chrome's Auto Dark Mode from
	 * inventing a dark theme — which otherwise repaints white nav and masthead
	 * text into dark grey and makes the header look broken.
	 */
	color-scheme: light;

	/* Brand — straight from the Elementor kit */
	--rtj-blue:        #3c5c7b;  /* headings, links, buttons */
	--rtj-rose:        #ad5656;  /* link hover, footer band */
	--rtj-ink:         #003045;  /* body text */
	--rtj-teal:        #0076a8;  /* navigation bar */
	--rtj-teal-bright: #0091cf;  /* navigation hover */
	--rtj-teal-deep:   #006895;  /* masthead gradient */

	--rtj-paper:       #ffffff;
	--rtj-paper-soft:  #f6f8f9;
	--rtj-rule:        #dde5ea;
	--rtj-muted:       #5d7382;

	/* The kit's saved accent at 12% — title bands and card borders both use it */
	--rtj-wash:        rgba(0, 118, 168, 0.12);

	/* Type */
	--rtj-font-body:   Georgia, "Times New Roman", serif;
	--rtj-font-ui:     -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--rtj-font-script: "Allura", cursive;

	--rtj-size-body:   1.25rem;   /* 20px, as the kit specifies */
	--rtj-leading:     1.8;

	/* Layout */
	--rtj-measure:     1140px;
	--rtj-gutter:      clamp(1rem, 4vw, 2.5rem);
	--rtj-rhythm:      clamp(2rem, 5vw, 4rem);
}

/*
 * Allura, self-hosted. Google serves this as several disjoint subsets — take
 * the wrong file and the browser downloads a font with none of the glyphs it
 * needs and silently falls back to `cursive`. Each subset must be paired with
 * its own unicode-range, exactly as Google declares them.
 */
@font-face {
	font-family: "Allura";
	src: url("../fonts/allura-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Allura";
	src: url("../fonts/allura-latin-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--rtj-paper);
	color: var(--rtj-ink);
	font-family: var(--rtj-font-body);
	font-size: var(--rtj-size-body);
	line-height: var(--rtj-leading);
	overflow-wrap: break-word;
}

img,
video,
iframe,
embed,
object { max-width: 100%; height: auto; }

figure { margin: var(--rtj-rhythm) 0; }

figcaption {
	font-family: var(--rtj-font-ui);
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--rtj-muted);
	padding-top: 0.6em;
}

a {
	color: var(--rtj-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover,
a:focus { color: var(--rtj-rose); }

:focus-visible {
	outline: 3px solid var(--rtj-teal-bright);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--rtj-blue);
	font-family: var(--rtj-font-body);
	line-height: 1.25;
	margin: 1.6em 0 0.5em;
	text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p, ul, ol, dl, table, pre, blockquote { margin: 0 0 1.2em; }

blockquote {
	border-left: 3px solid var(--rtj-rule);
	margin-left: 0;
	padding: 0.2em 0 0.2em 1.4em;
	color: var(--rtj-muted);
	font-style: italic;
}

hr {
	border: 0;
	border-top: 1px solid var(--rtj-rule);
	margin: var(--rtj-rhythm) 0;
}

table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.95em;
}

th, td {
	border: 1px solid var(--rtj-rule);
	padding: 0.5em 0.7em;
	text-align: left;
}

/* Wide content must scroll inside itself, never the page. */
.entry-content table { display: block; overflow-x: auto; }

code, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
}

pre {
	background: var(--rtj-paper-soft);
	padding: 1em;
	overflow-x: auto;
}

/* -------------------------------------------------------------------------
 * Utilities
 * ---------------------------------------------------------------------- */

/*
 * Matches Elementor's boxed container: a hard 1140px at desktop with no side
 * padding, and a 1rem gutter once the viewport drops below that. Subtracting
 * the full fluid gutter instead would shrink the shell to 1100px at 1180px wide
 * and shift the whole masthead inward.
 */
.wrap {
	width: min(100% - 2rem, var(--rtj-measure));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	width: auto;
	height: auto;
	clip-path: none;
	margin: 0;
	padding: 0.7em 1.2em;
	background: var(--rtj-paper);
	color: var(--rtj-blue);
	font-family: var(--rtj-font-ui);
}

.button,
button.button,
input[type="submit"] {
	display: inline-block;
	background: var(--rtj-blue);
	color: #fff;
	border: 0;
	border-radius: 10px;         /* the kit's button radius */
	padding: 0.6em 1.4em;
	font-family: var(--rtj-font-ui);
	font-size: 1rem;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.button:hover,
.button:focus,
input[type="submit"]:hover { background: var(--rtj-rose); color: #fff; }

.button[disabled] { opacity: 0.55; cursor: not-allowed; }

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
	font-family: var(--rtj-font-ui);
	font-size: 1rem;
	padding: 0.55em 0.8em;
	border: 1px solid var(--rtj-rule);
	border-radius: 6px;
	background: #fff;
	color: var(--rtj-ink);
	max-width: 100%;
}

/* -------------------------------------------------------------------------
 * Masthead — Elementor 14181
 * ---------------------------------------------------------------------- */

.masthead {
	background-image: linear-gradient(270deg, var(--rtj-teal-deep) 31%, rgba(0, 104, 149, 0.04) 79%);
	padding-top: 12px;
}

.masthead__inner {
	display: flex;
	align-items: center;
	min-height: 128px;    /* with the 12px top padding this gives the 140px band */
}

/* The original split the band 32.632% / 67.368%, with no gap between. */
.masthead__logo { flex: 0 0 32.632%; text-align: center; padding: 10px; }
/* display:block, not inline-block — an inline image sits on the baseline and
   leaves descender space below it, which pushed the band 11px taller. */
.masthead__logo img { display: block; margin-inline: auto; max-height: 108px; width: auto; }

/*
 * The chrome rules below are scoped to .site-header / .site-nav / .site-footer
 * for specificity, not tidiness. On Elementor-rendered pages the kit prints
 * `.elementor-kit-14149 a { color:#3C5C7B }` inline in the head — after this
 * stylesheet and at equal specificity — which repaints the white masthead and
 * navigation links dark. The extra ancestor wins the cascade. These can be
 * flattened once Elementor is gone.
 */

.site-header .masthead__fallback {
	font-family: var(--rtj-font-script);
	font-size: 2rem;
	color: #fff;
	text-decoration: none;
}

.masthead__wordmark {
	flex: 1 1 auto;
	min-width: 0;               /* a flex item must be allowed to shrink */
	max-width: 100%;
	margin: 0;
	font-family: var(--rtj-font-script);
	/* 60px at full width. The lower bound has to be small enough that this long
	   string still fits a 360px viewport — Allura is a wide face, and anything
	   larger pushes the whole page into a horizontal scroll. */
	font-size: clamp(1.5rem, 7vw, 3.75rem);
	line-height: 1;          /* matches the original heading exactly */
	color: #fff;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	overflow-wrap: break-word;
}

.site-header .masthead__wordmark,
.site-header .masthead__wordmark a { color: #fff; text-decoration: none; }

@media (max-width: 782px) {
	.masthead__inner {
		flex-direction: column;
		gap: 0.5rem;
		text-align: center;
		padding-block: 1rem;
		min-height: 0;
	}
	.masthead__logo { flex: none; }
	.masthead__wordmark { text-align: center; }
}

/* -------------------------------------------------------------------------
 * Navigation
 * ---------------------------------------------------------------------- */

.site-nav { background: var(--rtj-teal); }

.site-nav__inner { position: relative; }

.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;   /* the old bar spread items across the shell */
}

.nav-menu li { position: relative; }

.site-nav .nav-menu a {
	display: block;
	padding: 0.7em 0.9em;    /* the old bar sat around 40px tall */
	color: #fff;
	font-family: var(--rtj-font-ui);
	font-size: 0.9375rem;    /* 15px */
	font-weight: 300;
	line-height: 1.3;
	text-decoration: none;
	transition: background 0.15s ease;
}

.site-nav .nav-menu a:hover,
.site-nav .nav-menu a:focus {
	background: var(--rtj-teal-bright);
	color: #fff;
}

/* The current page was marked with a rule beneath it, not a filled block. */
.site-nav .nav-menu .current-menu-item > a,
.site-nav .nav-menu .current_page_item > a,
.site-nav .nav-menu .current-menu-ancestor > a,
.site-nav .nav-menu .current-post-ancestor > a {
	box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.85);
}

/* Dropdowns — Services, Yoga Actions, and the About group */
.nav-menu .menu-item-has-children > a::after {
	content: "▾";
	margin-left: 0.4em;
	font-size: 0.8em;
	opacity: 0.85;
}

.nav-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	min-width: 15rem;
	background: var(--rtj-teal-bright);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	display: none;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu,
.nav-menu li.is-open > .sub-menu { display: block; }

.site-nav .nav-menu .sub-menu a { padding: 0.7em 1em; }
.site-nav .nav-menu .sub-menu a:hover,
.site-nav .nav-menu .sub-menu a:focus { background: var(--rtj-teal-deep); }

/* Toggle — hidden until the menu collapses */
.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.6em;
	width: 100%;
	padding: 0.8em 0;
	background: none;
	border: 0;
	color: #fff;
	font-family: var(--rtj-font-ui);
	font-size: 1rem;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
	.nav-toggle { display: flex; }

	.nav-menu {
		display: none;
		flex-direction: column;
		padding-bottom: 0.6rem;
	}

	.nav-menu.is-open { display: flex; }

	.site-nav .nav-menu a { padding: 0.7em 0; }

	/* Submenus stack inline on small screens rather than floating. */
	.nav-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		box-shadow: none;
		background: rgba(255, 255, 255, 0.08);
	}

	.nav-menu li.is-open > .sub-menu { display: block; }
	.nav-menu li:hover > .sub-menu { display: none; }
	.nav-menu li.is-open:hover > .sub-menu { display: block; }
	.site-nav .nav-menu .sub-menu a { padding-left: 1.2em; }

	/* The parent link stays tappable; a separate button opens the submenu. */
	.submenu-toggle {
		position: absolute;
		top: 0;
		right: 0;
		width: 3rem;
		height: 3rem;
		background: none;
		border: 0;
		color: #fff;
		font-size: 1rem;
		cursor: pointer;
	}

	.nav-menu .menu-item-has-children > a::after { content: none; }
}

@media (min-width: 1025px) {
	.submenu-toggle { display: none; }
}

/* -------------------------------------------------------------------------
 * Content
 * ---------------------------------------------------------------------- */

.site-main { padding-bottom: var(--rtj-rhythm); min-height: 50vh; }

/* The banded title that opens every post, page and archive. The band sits
   inside the content shell rather than bleeding to the viewport edge. */
.page-banner { margin-bottom: 2rem; }

.page-banner > .wrap {
	background: var(--rtj-wash);
	padding: 30px;
	text-align: center;
}

.page-banner__title {
	margin: 0;
	font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.page-banner__subtitle {
	margin: 0.6em 0 0;
	color: var(--rtj-muted);
	font-size: 1rem;
}

.page-header { margin-bottom: var(--rtj-rhythm); }
.page-title { margin-top: 0; }

.archive-description { color: var(--rtj-muted); }

/* A bordered card, reused by the author box and any boxed aside. */
.box {
	border: 1px solid var(--rtj-wash);
	border-radius: 10px;
	padding: 20px 30px;
}

/* Content column plus a narrower aside; collapses to one column early, because
   the aside is supporting material rather than navigation. */
.layout-with-aside {
	display: grid;
	gap: var(--rtj-rhythm);
	align-items: start;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
	.layout-with-aside:has(.aside) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
	}
}

.aside { font-size: 0.95rem; }

.author-box { text-align: left; }

.author-box__photo {
	display: block;
	width: 100%;
	height: auto;
	max-width: 220px;
	margin: 0 auto 1rem;
	border-radius: 4px;
}

.author-box__name {
	margin: 0 0 0.5em;
	font-size: 1.2rem;
}

.author-box__bio {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--rtj-muted);
}

.entry { margin-bottom: var(--rtj-rhythm); }

.entry--single .entry-title,
.entry--page .entry-title { margin-top: 0; }

.entry-meta {
	font-family: var(--rtj-font-body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--rtj-blue);
	text-align: center;
	margin-bottom: 2rem;
}

.entry-meta a { color: var(--rtj-blue); text-decoration: none; }
.entry-meta a:hover { color: var(--rtj-rose); text-decoration: underline; }
.entry-meta__sep { opacity: 0.5; margin-inline: 0.5em; }

.entry-thumbnail { margin-top: 0; }

/* Keep long-form text at a comfortable measure inside the 1140px shell. */
.entry-content > *,
.entry-content > .wp-block-image {
	max-width: 46rem;
	margin-inline: auto;
}

.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > figure,
.entry-content > .wp-block-gallery { max-width: none; }

.entry-content :is(h2, h3, h4) { clear: both; }

.entry-content img { height: auto; }

.alignleft  { float: left;  margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }

.entry-tags {
	font-family: var(--rtj-font-ui);
	font-size: 0.85rem;
	color: var(--rtj-muted);
	border-top: 1px solid var(--rtj-rule);
	padding-top: 1.2em;
	max-width: 46rem;
	margin-inline: auto;
}

/* -------------------------------------------------------------------------
 * Listings
 * ---------------------------------------------------------------------- */

/* Three across on desktop, as the old archive had. */
.post-list {
	display: grid;
	gap: var(--rtj-gutter);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--rtj-wash);
	border-radius: 4px;
	overflow: hidden;
	background: var(--rtj-paper);
}

.card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.card__body {
	flex: 1 1 auto;
	padding: 1.2rem 1.4rem;
}

.card__title {
	margin: 0 0 0.4em;
	font-size: 1.3rem;
	line-height: 1.3;
}

.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }

.card__excerpt {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--rtj-ink);
}

.card__excerpt p:last-child { margin-bottom: 0; }

.card__foot {
	border-top: 1px solid var(--rtj-wash);
	padding: 0.8rem 1.4rem;
	font-family: var(--rtj-font-ui);
	font-size: 0.85rem;
	color: var(--rtj-muted);
}

.card__foot .entry-meta__sep { margin-inline: 0.4em; }

/* -------------------------------------------------------------------------
 * Pagination and post navigation
 * ---------------------------------------------------------------------- */

.pagination,
.post-navigation {
	margin-top: var(--rtj-rhythm);
	padding-top: 1.5rem;
	border-top: 1px solid var(--rtj-rule);
	font-family: var(--rtj-font-ui);
	font-size: 0.95rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 0.4em 0.8em;
	border: 1px solid var(--rtj-rule);
	border-radius: 6px;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--rtj-blue);
	border-color: var(--rtj-blue);
	color: #fff;
}

.post-navigation .nav-links {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.post-navigation .nav-next { text-align: right; }
.post-navigation a { text-decoration: none; }
.post-navigation a:hover { text-decoration: underline; }

.nav-label {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rtj-muted);
}

/* -------------------------------------------------------------------------
 * Home
 * ---------------------------------------------------------------------- */

/*
 * Named home-layout, not home: body_class() puts `home` on <body> for the front
 * page, so a bare `.home` rule lands on the body element and padded the whole
 * document down — pushing the masthead 59px below the top of the window on the
 * front page only.
 */
.home-layout { padding-top: 1.5rem; }

/* Sidebar and main column, in the proportions the original used: a 1140px
   shell with a 738px main column leaves roughly 320px for the sidebar. */
.home__top {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

@media (min-width: 860px) {
	.home__top { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
}

/*
 * Each block is labelled with a filled bar sitting on a rule that runs to the
 * end of the column. Measured from the live page: #3C5C7B, white Georgia at
 * 19.2px, 7px/13px padding, square corners.
 */
.section-heading {
	display: flex;
	align-items: flex-end;
	margin: 0 0 1.4rem;
	padding: 0;
	border-bottom: 1px solid var(--rtj-wash);
	font-size: 1rem;
	font-weight: 400;
	color: var(--rtj-ink);
}

.section-heading > span {
	background: var(--rtj-blue);
	color: #fff;
	font-family: var(--rtj-font-body);
	font-size: 1.2rem;
	line-height: 1.3;
	padding: 7px 13px;
}

.home__intro > * { max-width: none; margin-inline: 0; }

.home__intro h1,
.home__intro h2:first-child {
	margin-top: 0;
	font-size: clamp(2rem, 4.5vw, 3rem);
	text-align: center;
}

.home__intro p {
	font-style: italic;
	font-size: 1.15rem;
	max-width: 38rem;      /* the original wrapped at roughly six lines */
}

.home__posts { margin-top: var(--rtj-rhythm); }

/* The recent posts sit on a tinted panel. */
.post-panel {
	background: var(--rtj-wash);
	padding: clamp(1rem, 2.5vw, 1.75rem);
}

.post-list--home {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: 1.25rem;
}

.card--home {
	background: #fff;
	border: 0;
	border-radius: 0;
}

.card--home .card__body { padding: 1rem 1.1rem 0.9rem; }

.card--home .card__title {
	font-size: 1.25rem;
	font-weight: normal;   /* the original set these in regular, not bold */
	line-height: 1.35;
	margin: 0;
}

.card--home .card__foot {
	border-top: 1px solid var(--rtj-wash);
	padding: 0.7rem 1.1rem;
	font-family: var(--rtj-font-body);
	font-size: 0.75rem;
	color: #adadad;
}

/* The two book rows sit side by side, the Yoga Actions set taking the wider
   share, exactly as the original laid them out. */
.home__books {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: minmax(0, 1fr);
	margin-top: var(--rtj-rhythm);
}

@media (min-width: 860px) {
	.home__books { grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); }
}

.home__books-row .book-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
	margin-top: 0;
}

.home__books-row--narrow .book-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
}

.book-grid--centred .book-card__title { text-align: center; }

.book-grid--stack { grid-template-columns: minmax(0, 1fr); }

/* The sidebar lists titles only — subtitles are for the book's own page. */
.home__aside .book-card__subtitle { display: none; }
.home__aside .book-card__cover { box-shadow: none; }

/* -------------------------------------------------------------------------
 * Books
 * ---------------------------------------------------------------------- */

.book__subtitle {
	margin-top: 0;
	font-size: clamp(1.3rem, 2.6vw, 1.7rem);
	font-weight: normal;
}

.book__layout {
	display: grid;
	gap: var(--rtj-rhythm);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

@media (min-width: 800px) {
	.book__layout { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
}

.book__cover { margin: 0 0 1.5rem; }
.book__cover img { display: block; width: 100%; height: auto; }

/* The book's own prose sits in a column already, so it does not need the
   narrower measure the blog uses. */
.book__main.entry-content > * { max-width: none; margin-inline: 0; }

.book__series {
	font-family: var(--rtj-font-ui);
	font-size: 0.9rem;
	color: var(--rtj-muted);
}

.buy-links { margin-bottom: 1.5rem; }

.buy-links__label {
	font-family: var(--rtj-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rtj-muted);
	margin-bottom: 0.5em;
}

.buy-links__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.buy-links__link {
	display: inline-block;
	border: 1px solid var(--rtj-rule);
	border-radius: 6px;
	padding: 0.4rem 0.6rem;
	background: #fff;
	transition: border-color 0.15s ease;
}

.buy-links__link:hover { border-color: var(--rtj-teal); }
.buy-links__link img { display: block; max-height: 46px; width: auto; }

.book__editions,
.book__reviews,
.book__more { margin-top: var(--rtj-rhythm); }

.book__editions table { font-size: 0.95rem; }
.book__editions th { font-family: var(--rtj-font-ui); font-size: 0.85rem; }

.review {
	border-left: 3px solid var(--rtj-wash);
	font-style: normal;
	color: var(--rtj-ink);
}

.review__by {
	font-family: var(--rtj-font-ui);
	font-size: 0.9rem;
	color: var(--rtj-muted);
}

.review__site::before { content: " · "; }

/* Book listings */

.book-grid {
	display: grid;
	gap: var(--rtj-gutter);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
	margin-block: 2rem;
}

.book-card__link {
	display: block;
	text-decoration: none;
	color: var(--rtj-blue);
}

/* Covers sit flat, as they did originally — no drop shadow. */
.book-card__cover {
	display: block;
	margin-bottom: 0.7rem;
}

.book-card__cover img { display: block; width: 100%; height: auto; }

.book-card__title {
	display: block;
	font-size: 1.05rem;
	line-height: 1.3;
}

.book-card__link:hover .book-card__title { text-decoration: underline; }

.book-card__subtitle {
	display: block;
	font-family: var(--rtj-font-ui);
	font-size: 0.8rem;
	color: var(--rtj-muted);
	margin-top: 0.2em;
}

/* -------------------------------------------------------------------------
 * Contact form
 * ---------------------------------------------------------------------- */

.contact-form { max-width: 40rem; margin-block: 2rem; }

.contact-form__row {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.contact-form__field { margin-bottom: 1.2rem; }

.contact-form__field label {
	display: block;
	font-family: var(--rtj-font-ui);
	font-size: 0.9rem;
	margin-bottom: 0.35em;
	color: var(--rtj-muted);
}

.contact-form__field .req { color: var(--rtj-rose); }

.contact-form__field input,
.contact-form__field textarea {
	width: 100%;
	font-family: var(--rtj-font-body);
	font-size: 1.05rem;
}

.contact-form__field textarea { line-height: 1.6; resize: vertical; }

/* The honeypot must be unreachable, not merely invisible — `display:none` is
   the one thing bots reliably check for. */
.contact-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice {
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-block: 1.5rem;
	font-size: 1.05rem;
	max-width: 40rem;
}

.form-notice p:last-child,
.form-notice ul:last-child { margin-bottom: 0; }

.form-notice--ok {
	background: var(--rtj-wash);
	border: 1px solid var(--rtj-wash);
	color: var(--rtj-blue);
}

.form-notice--error {
	background: rgba(173, 86, 86, 0.08);
	border: 1px solid rgba(173, 86, 86, 0.35);
	color: var(--rtj-rose);
}

.form-notice ul { margin: 0; padding-left: 1.2em; }

/* -------------------------------------------------------------------------
 * Search form
 * ---------------------------------------------------------------------- */

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-block: 1rem;
}

.search-form__field { flex: 1 1 14rem; }

/* -------------------------------------------------------------------------
 * Footer — Elementor 14176
 * ---------------------------------------------------------------------- */

.site-footer {
	background: var(--rtj-rose);
	color: #fff;
	padding-block: 60px;
	margin-top: var(--rtj-rhythm);
}

.site-footer .site-footer__inner a { color: #fff; }

.signup__title {
	color: #fff;
	margin: 0 0 1rem;
	text-align: center;
	font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

/* Name, email and Send across one row, as on the original. */
.signup__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	align-items: stretch;
	margin: 0;
}

.signup__field { margin: 0; flex: 1 1 14rem; }
.signup__field input { width: 100%; padding-block: 0.75em; border-radius: 3px; }
.signup__submit { margin: 0; flex: 0 1 12rem; display: flex; }

.signup__submit .button {
	width: 100%;
	border-radius: 3px;
	background: var(--rtj-blue);
}

.signup__note {
	text-align: center;
	font-family: var(--rtj-font-ui);
	font-size: 0.8rem;
	opacity: 0.85;
	margin: 0.8rem 0 0;
}

.site-footer__legal {
	text-align: center;
	font-family: var(--rtj-font-ui);
	font-size: 0.85rem;
	margin: 2.5rem 0 0;
	opacity: 0.9;
}

/* Measured from the live footer: a dark navy strip under the signup band. */
.site-legal {
	background: #233648;
	color: #fff;
	padding: 10px 0;
}

.site-legal__text {
	margin: 0;
	font-size: 0.95rem;
	color: #fff;
}

.site-legal a { color: #fff; }

/* -------------------------------------------------------------------------
 * WordPress core classes that content depends on
 * ---------------------------------------------------------------------- */

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--rtj-muted); }
.sticky .card__title::before { content: "★ "; color: var(--rtj-rose); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: auto; }
.gallery-caption { font-size: 0.8rem; color: var(--rtj-muted); }
