/*
 * Un feu sur la terre — modern layer (loaded after style.css, which stays untouched).
 * Page structure with CSS Grid, rows with Flexbox, fluid up to --wrap, responsive, subtle motion.
 */

:root {
	--wrap: min(1280px, calc(100vw - 32px));
	--gold: #b39a5b;
	--gold-light: #fbcc6a;
	--ink: #2a2828;
	--paper: #f0f1f3;
	--dark: #1b1919;
	--radius: 10px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body { font-size: 14px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }

/* ---------- widths: fixed 960px -> fluid ---------- */
#nav-wrap, #page-wrap { width: var(--wrap); }
#header, #menu, #feature, #blocks, #content-wrap { width: 100%; box-sizing: border-box; }

/* ---------- top bar ---------- */
#topnav { height: auto; min-height: 30px; }
#nav-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
#nav-wrap ul { float: none; }

/* ---------- header ---------- */
#header { float: none; display: flow-root; }
#logo img { height: auto; }

/* ---------- main menu: one flexible band (was 3 overlapping lines) ---------- */
#menu {
	height: auto;
	float: none;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	padding: 6px 12px;
	gap: 0 12px;
}
#menu > ul:not(.social) { width: auto; float: none; flex: 1 1 auto; min-width: 0; padding: 0; display: flex; flex-wrap: wrap; }
#menu > ul:not(.social) > li { float: none; }
#menu > ul:not(.social) > li > a { transition: color .2s var(--ease), background-color .2s var(--ease); }
#header #menu .social { float: none; position: static; top: auto; margin: 0 0 0 auto; height: auto; display: flex; flex: none; gap: 6px; }
#header #menu .social img { transition: transform .2s var(--ease); }
#header #menu .social a:hover img { transform: translateY(-2px); }
.menu-toggle { display: none; }
@keyframes menu-unfold { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-6px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@keyframes menu-item-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
/* "Menu" button icon: three bars that turn into a cross when the menu is open */
.menu-icon { position: relative; display: inline-block; width: 18px; height: 12px; }
.menu-icon i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .2s ease, top .3s cubic-bezier(.2, .7, .2, 1); }
.menu-icon i:nth-child(1) { top: 0; }
.menu-icon i:nth-child(2) { top: 5px; }
.menu-icon i:nth-child(3) { top: 10px; }
#menu.is-open .menu-icon i:nth-child(1) { top: 5px; transform: rotate(45deg); }
#menu.is-open .menu-icon i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
#menu.is-open .menu-icon i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ---------- page structure: Grid (sidebar comes before content in the HTML on the home page) ---------- */
#content-wrap {
	float: none;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	grid-template-areas:
		"feature feature"
		"blocks  blocks"
		"content sidebar"
		"footer  footer";
	column-gap: 32px;
	padding: 0 0 8px;
}
#feature { grid-area: feature; }
#blocks  { grid-area: blocks; }
#content { grid-area: content; }
#sidebar { grid-area: sidebar; }
#footer  { grid-area: footer; }
#feature, #blocks, #content, #sidebar, #footer { float: none; }
#content { width: auto; margin: 24px 0 24px 24px; }
#sidebar { width: auto; margin: 24px 24px 24px 0; }
#sidebar .widget, #sidebar .tabber, #sidebar .tabberlive, #sidebar .tab_container { float: none; width: auto; max-width: 100%; box-sizing: border-box; }   /* floats shrank each widget to its content */

/* ---------- featured slideshow: fluid ---------- */
#feature { height: auto; background: linear-gradient(180deg, #2b2727 0%, #1b1919 100%); }
#panes { height: calc((var(--wrap) - 40px) * .56 * 9 / 16 + 40px); }
#panes div { width: auto; left: 0; right: 0; box-sizing: border-box; padding: 20px; }
#panes span.cover, #panes img {
	width: 56%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 0 32px 0 0;
	border-radius: 6px;
	overflow: hidden;
	object-fit: cover;
}
#panes span.cover iframe, #panes span.cover .wpz-yt { width: 100% !important; height: 100% !important; }
#panes h2 { font-size: clamp(18px, 1.6vw, 26px); }
#panes p { font-size: 15px; }
#navi ul { position: absolute; z-index: 2; top: auto; bottom: 20px; left: auto; right: 20px; width: auto; display: flex; gap: 12px; margin: 0; }
#navi li { float: none; margin: 0; }
#navi a { transition: opacity .25s var(--ease), transform .25s var(--ease); }
#navi a:hover { transform: translateY(-2px); }
#navi img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; }

/* ---------- the 4 category boxes: Grid ---------- */
#blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
#blocks .colart { width: auto; height: auto; float: none; display: flex; flex-direction: column; }
#blocks .colart .thumb { overflow: hidden; }
#blocks .colart .thumb img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; transition: transform .6s var(--ease); }
#blocks .colart:hover .thumb img { transform: scale(1.05); }
#blocks .colart .entry { font-size: 14px; line-height: 1.6; }

/* ---------- article lists ---------- */
#content .post { width: auto; float: none; display: flow-root; padding: 24px 0; }
#content .post .thumb { float: left; margin: 4px 20px 8px 0; overflow: hidden; border: 4px solid #000; border-radius: 6px; line-height: 0; }
#content .post .thumb img { float: none; margin: 0; border: 0; display: block; transition: transform .5s var(--ease); }
#content .post:hover .thumb img { transform: scale(1.05); }
.post h2 a, .post h1 a { transition: color .2s var(--ease); }
.post .entry, .post .entry p { font-size: 15px; line-height: 1.7; }
#content .pagenav { width: auto; float: none; box-sizing: border-box; display: flex; justify-content: center; border-radius: 6px; }

/* single post: comment form and previous/next links had fixed widths (592 / 610 px) */
#respond textarea, #respond input[type="text"], #respond input[type="email"], #respond input[type="url"] { max-width: 100%; box-sizing: border-box; }
.prevnext { width: auto; float: none; display: flow-root; }

/* videos in posts fill the column at 16:9 (the oEmbed iframe comes with a fixed 610 x 343) */
.post .entry .wp-block-embed.is-type-video iframe,
.post .entry iframe[src*="youtube"],
.post .entry iframe[src*="vimeo"] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* "Voir plus d'articles" (modern.js): the classic page links stay for search engines and visitors without JavaScript */
html.js #content .pagenav.has-more { display: none; }
.load-more-wrap { display: flex; justify-content: center; padding: 28px 0 8px; }
.load-more {
	font: 600 15px/1 "Myriad Pro", "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: var(--dark);
	border: 1px solid var(--gold);
	border-radius: 999px;
	padding: 14px 28px;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.load-more:hover, .load-more:focus-visible { background: var(--gold); color: var(--dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.load-more[aria-busy="true"] { cursor: progress; }
.load-more-wrap.is-loading .load-more::before {   /* spinner while the next articles load */
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin: -3px 10px 0 0;
	vertical-align: middle;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: load-spin .7s linear infinite;
}
@keyframes load-spin { to { transform: rotate(360deg); } }
.load-more-status { text-align: center; color: #777; font-size: 13px; margin-top: 10px; }

/* ---------- appear on scroll (modern.js adds .is-visible) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- decoration in CSS, replacing the 2010 image tricks of style.css (left untouched) ---------- */
/* page background: the 7 px diagonal stripes of images/bg.png */
body { background: #424141 repeating-linear-gradient(135deg, #454444 0 2.12px, #403f3f 2.12px 4.95px); }
/* top bar: was an image on the old /feu/ site, now a redirect (a useless request on every page) */
#topnav { background: linear-gradient(180deg, #262222 0%, #1b1919 100%); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .04); }

/* section titles: text, then a gold bar filling the rest of the line (was images/h3bg.png tiled behind the whole
   column, and a grey background on each title to hide the bar behind the text) */
#content, #content.single, #sidebar .widget h3, #comments h3 { background-image: none; }
h3.title, h3.topcat, #sidebar .widget h3, #comments h3 {
	display: block;
	float: none;
	overflow: hidden;      /* clips the bar at the end of the line */
	background: none;
	padding-right: 0;
}
h3.title::after, h3.topcat::after, #sidebar .widget h3::after, #comments h3::after {
	content: "";
	display: inline-block;
	width: 100%;
	height: 19px;
	margin: 0 -100% 0 18px;
	vertical-align: middle;
	position: relative;
	top: -2px;
	background: linear-gradient(180deg, #bea463 0%, #b59c5b 100%);
	border-radius: 1px;
}
#sidebar .widget h3 span, #comments h3 span { background: none; padding-right: 0; margin: 0; }
h3.topcat ul.post-categories { display: inline; margin: 0; padding: 0; }
h3.topcat ul.post-categories li { display: inline; float: none; padding: 0 10px 0 0; }
#comments h3 { line-height: 1.2; margin: 24px 0 15px; }

/* separators: a dotted border (was images/line.png, a 3 x 2 px dot pattern) */
#content .post, #single ul.post-meta { background-image: none; border-bottom: 1px dotted #b9b9c2; }
#comments .comments li { background-image: none; border-top: 1px dotted #b9b9c2; }
#comments ul.children { background: none; border-left: 2px solid #d0d0d0; padding-left: 20px; margin-left: 4px; }

/* sidebar tab box: a dark panel (was images/bgtabs.png, a 3 px checker pattern) */
#tabs, #sidebar .tabberlive { background: #262323; border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
ul.tabbernav li { border-radius: 4px 4px 0 0; }

/* buttons: CSS gradients (were images/overlay-button.png and images/reply.png) */
#comments #submit, #commentform #submit {
	background: linear-gradient(180deg, #2f2b2c 0%, #000 100%);
	border: 1px solid #000;
	border-radius: 5px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
	cursor: pointer;
	transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
#comments #submit:hover, #commentform #submit:hover { background: #3a3536; }
#comments .afterpost .navigation .alignleft a, #comments .reply a, .afterpost .navigation .alignright a {
	display: inline-block;
	background: linear-gradient(180deg, #2a2a2a 0%, #070707 100%);
	border-radius: 4px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* "read more" and page arrows: text arrows (were images/moreb.png, morebh.png, prev.png, next.png) */
a.more, #blocks .more, #content .post a.more, #panes a.more:hover,
#blocks a.more:hover, #blocks .colart:hover .more, a.more:hover, #content .post a.more:hover { background-image: none; padding-right: 0; }
a.more::after, #blocks .more::after { content: "\2192"; display: inline-block; margin-left: 8px; transition: transform .2s var(--ease); }
a.more:hover::after, #blocks .colart:hover .more::after { transform: translateX(4px); }
.pagenav .floatleft, .pagenav .floatright { background-image: none; padding: 0; }
.pagenav .floatleft::before { content: "\2190\00a0"; }
.pagenav .floatright::after { content: "\00a0\2192"; }

/* ---------- forms: contact form (Contact Form 7), comment form, search ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 textarea,
#commentform input[type="text"], #commentform textarea, #searchform #s {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 14px;
	font: 15px/1.4 Arial, Helvetica, sans-serif;
	color: #2a2828;
	background: #fbfbfc;
	border: 1px solid #c9cdd6;
	border-radius: 8px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.wpcf7 input:not([type="submit"]):focus, .wpcf7 textarea:focus, #commentform input[type="text"]:focus, #commentform textarea:focus, #searchform #s:focus {
	outline: none;
	background: #fff;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(179, 154, 91, .25);
}
.wpcf7 textarea, #commentform textarea { min-height: 180px; height: auto; resize: vertical; }
::placeholder { color: #9a9494; opacity: 1; }

/* buttons: the "Voir plus" pill */
.wpcf7 .wpcf7-submit, #comments #submit, #commentform #submit {
	font: 600 14px/1 "Myriad Pro", "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff !important;
	background: var(--dark);
	border: 1px solid var(--gold);
	border-radius: 999px;
	padding: 14px 30px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wpcf7 .wpcf7-submit:hover, .wpcf7 .wpcf7-submit:focus-visible, #comments #submit:hover, #commentform #submit:hover {
	background: var(--gold);
	color: var(--dark) !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.wpcf7 .wpcf7-submit:disabled { opacity: .6; cursor: progress; }

/* contact form: a card; the label lines (plain paragraphs in the form template) as small captions */
.wpcf7 {
	max-width: 640px;
	margin: 28px 0 8px;
	padding: 28px 32px 26px;
	background: #fff;
	border: 1px solid #e1e3e9;
	border-top: 3px solid var(--gold);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(27, 25, 25, .08);
}
.wpcf7 form > p { margin: 0 0 8px; font: 600 12px/1.4 "Trebuchet MS", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #5d5555; }
.wpcf7 form > p:has(.wpcf7-form-control-wrap), .wpcf7 form > p:has(.wpcf7-submit) { margin: 0 0 20px; font: 15px/1.4 Arial, Helvetica, sans-serif; letter-spacing: 0; text-transform: none; }
.wpcf7 form > p:has(.wpcf7-submit) { margin: 6px 0 0; display: flex; align-items: center; gap: 12px; }
.wpcf7 .wpcf7-form-control.wpcf7-not-valid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #a93226; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border: 0; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.wpcf7 form.sent .wpcf7-response-output { background: #e7f3ea; color: #22603a; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { background: #fbeceb; color: #8e2c22; }

/* comment form: label above its field (the label comes after the input in the template) */
#commentform #formLabels p { display: flex; flex-direction: column-reverse; gap: 6px; max-width: 460px; margin: 0 0 16px; }
#commentform label, #commentslabel { font: 600 12px/1.4 "Trebuchet MS", Arial, sans-serif; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #5d5555; }
#comments textarea, #commentform textarea, #comments ul.children textarea, #commentform ul.children textarea { width: 100%; margin-bottom: 14px; }

/* search (sidebar): field and button on one row */
#sidebar #searchform, #searchform { display: flex; gap: 8px; float: none; width: 100%; margin: 0; }
#searchform #s { flex: 1 1 auto; min-width: 0; padding: 10px 12px; font-size: 14px; }
#searchsubmit {
	flex: none;
	padding: 0 16px;
	font: 600 12px/1 "Trebuchet MS", Arial, sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--dark);
	border: 1px solid var(--dark);
	border-radius: 8px;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
#searchsubmit:hover, #searchsubmit:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ---------- sidebar "Faites un don": card (functions/wpzoom-modern.php replaces the 2011 banner image) ---------- */
#sidebar .donate-card {
	position: relative;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 6px 12px;
	padding: 20px;
	color: #e9e2e2;
	text-decoration: none;
	background: radial-gradient(120% 140% at 0% 0%, #3a3232 0%, #1b1919 60%);
	border: 1px solid rgba(179, 154, 91, .45);
	border-radius: 12px;
	box-shadow: 0 10px 26px rgba(27, 25, 25, .18);
	overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
#sidebar .donate-card::after {   /* soft light sweeping across on hover */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(251, 204, 106, .12) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform .8s var(--ease);
	pointer-events: none;
}
#sidebar .donate-card:hover, #sidebar .donate-card:focus-visible { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 16px 34px rgba(27, 25, 25, .28); text-decoration: none; }
#sidebar .donate-card:hover::after { transform: translateX(100%); }
#sidebar .donate-icon { grid-row: 1 / 3; width: 30px; height: 30px; margin-top: 2px; fill: var(--gold); animation: donate-beat 2.4s ease-in-out infinite; }
@keyframes donate-beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
#sidebar .donate-lead { font: 600 16px/1.3 Georgia, "Times New Roman", serif; color: #fff; }
#sidebar .donate-lead em { color: var(--gold-light); }
#sidebar .donate-sub { font-size: 12px; line-height: 1.4; color: #a99f9f; }
#sidebar .donate-button {
	grid-column: 1 / -1;
	margin-top: 10px;
	padding: 12px 16px;
	text-align: center;
	white-space: nowrap;
	font: 600 12px/1 "Myriad Pro", "Trebuchet MS", Arial, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--dark);
	background: linear-gradient(180deg, #fbd27a 0%, var(--gold) 100%);
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(179, 154, 91, .35);
}
#sidebar .donate-button span { display: inline-block; transition: transform .25s var(--ease); }
#sidebar .donate-card:hover .donate-button span { transform: translateX(4px); }

/* search button: magnifier icon (searchform.php) */
#searchsubmit { display: inline-flex; align-items: center; justify-content: center; width: 46px; padding: 0; }
#searchsubmit svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- sidebar categories: rows instead of a bulleted list ---------- */
#sidebar .widget_categories ul { margin: 0; padding: 0; list-style: none; }
#sidebar .widget_categories li.cat-item { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #dadde3; }
#sidebar .widget_categories li.cat-item:last-child { border-bottom: 0; }
#sidebar .widget_categories li.cat-item > a {
	display: block;
	padding: 9px 40px 9px 10px;
	font: 600 13px/1.3 "Myriad Pro", "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #2a2828;
	border-radius: 6px;
	transition: background-color .2s var(--ease), color .2s var(--ease), padding-left .2s var(--ease), box-shadow .2s var(--ease);
}
#sidebar .widget_categories li.cat-item > a:hover,
#sidebar .widget_categories li.cat-item > a:focus-visible { background: #fff; color: #1d386a; padding-left: 16px; box-shadow: inset 3px 0 0 var(--gold); text-decoration: none; }
#sidebar .widget_categories li.current-cat > a { color: #1d386a; box-shadow: inset 3px 0 0 var(--gold); background: rgba(255, 255, 255, .6); }
#sidebar .widget_categories ul.children { margin: 0 0 8px 10px; padding: 4px 0; border-left: 1px solid #d3c49b; }
#sidebar .widget_categories ul.children li.cat-item { border: 0; }
#sidebar .widget_categories ul.children li.cat-item > a { padding: 6px 12px 6px 14px; font: 400 13px/1.35 Arial, Helvetica, sans-serif; letter-spacing: 0; text-transform: none; color: #3b3535; }
#sidebar .widget_categories ul.children li.cat-item > a:hover { padding-left: 18px; }

/* ---------- sidebar "Articles récents" (Category Posts widget in the tab box): compact cards, staggered entrance ---------- */
#sidebar .tabberlive { width: auto; float: none; padding: 16px; border-radius: 12px; }
#sidebar .tabberlive ul.tabbernav { float: none; height: auto; margin: 0 0 12px; display: flex; gap: 6px; }
#sidebar .tabberlive ul.tabbernav li, #sidebar .tabberlive ul.tabbernav li.tabberactive { height: auto; line-height: 1.2; background: none; overflow: visible; }
#sidebar .tabberlive ul.tabbernav li a {
	padding: 4px 0;
	font: 600 13px/1.2 "Myriad Pro", "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: .14em;
	color: var(--gold-light);
}
#sidebar .tabberlive ul.tabbernav li a:hover { text-decoration: none; color: #fff; }
#sidebar .tabberlive ul.tabbernav:has(li:only-child) li a { cursor: default; }
#sidebar .tabberlive .tabbertab { width: auto; float: none; padding: 0; background: none; }
#sidebar .tabberlive .tab_container { width: auto; float: none; padding: 0; background: none; border: 0; }
#sidebar .tabberlive .tab_container h2.widgettitle { display: none; }
#sidebar .cat-post-widget ul.category-posts-internal { display: grid; gap: 8px; margin: 0; padding: 0; }
#sidebar .cat-post-widget .cat-post-item {
	position: relative;
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 8px 12px 8px 8px;
	list-style: none;
	background: rgba(255, 255, 255, .04);
	border-radius: 10px;
	overflow: hidden;
	transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
#sidebar .cat-post-widget .cat-post-item::before {   /* gold edge that grows on hover */
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 3px;
	height: 0;
	background: var(--gold);
	border-radius: 0 3px 3px 0;
	transform: translateY(-50%);
	transition: height .3s var(--ease);
}
#sidebar .cat-post-widget .cat-post-item:hover { background: rgba(255, 255, 255, .09); transform: translateX(3px); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
#sidebar .cat-post-widget .cat-post-item:hover::before { height: 70%; }
#sidebar .cat-post-widget .cat-post-item::after { content: none; display: none; }   /* the plugin's clearfix would become a grid row */
#sidebar .cat-post-widget .cat-post-item > div { margin: 0; padding: 0; min-width: 0; }
#sidebar .cat-post-widget .cat-post-item > div:first-child { grid-column: 2; grid-row: 1; }
#sidebar .cat-post-widget .cat-post-item > div:last-child { grid-column: 1; grid-row: 1; }
#sidebar .cat-post-widget a.cat-post-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font: 600 13px/1.4 Arial, Helvetica, sans-serif;
	text-transform: none;
	color: #eee6e6;
	transition: color .2s var(--ease);
}
#sidebar .cat-post-widget .cat-post-item:hover a.cat-post-title { color: var(--gold-light); text-decoration: none; }
#sidebar .cat-post-widget a.cat-post-thumbnail { display: block; width: 84px; height: 84px; margin: 0; overflow: hidden; border-radius: 7px; }
#sidebar .cat-post-widget .cat-post-crop, #sidebar .cat-post-widget a.cat-post-thumbnail img { display: block; width: 84px !important; height: 84px !important; margin: 0; object-fit: cover; }
#sidebar .cat-post-widget a.cat-post-thumbnail img { transition: transform .5s var(--ease), filter .5s var(--ease); filter: saturate(.85); }
#sidebar .cat-post-widget .cat-post-item:hover a.cat-post-thumbnail img { transform: scale(1.08); filter: none; }
/* entrance: the cards slide in one after the other when the box scrolls into view (modern.js adds .is-visible) */
@keyframes recent-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
html.js #sidebar .tabberlive.reveal .cat-post-item { opacity: 0; }
html.js #sidebar .tabberlive.reveal.is-visible .cat-post-item { animation: recent-in .55s var(--ease) both; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(1) { animation-delay: 0ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(2) { animation-delay: 70ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(3) { animation-delay: 140ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(4) { animation-delay: 210ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(5) { animation-delay: 280ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(6) { animation-delay: 350ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(7) { animation-delay: 420ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(8) { animation-delay: 490ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(9) { animation-delay: 560ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(10) { animation-delay: 630ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(11) { animation-delay: 700ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(12) { animation-delay: 770ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(13) { animation-delay: 840ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(14) { animation-delay: 910ms; }
#sidebar .tabberlive.is-visible .cat-post-item:nth-child(15) { animation-delay: 980ms; }

/* ---------- tags: uniform chips (the 8–22 pt word cloud was a 2008 pattern) ---------- */
#sidebar .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
#sidebar .tagcloud a.tag-cloud-link {
	font: 600 12px/1 Arial, Helvetica, sans-serif !important;   /* WordPress writes a font size on each tag */
	padding: 7px 11px;
	color: #3b3535;
	background: #fff;
	border: 1px solid #d9dbe1;
	border-radius: 999px;
	text-decoration: none;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
#sidebar .tagcloud a.tag-cloud-link:hover, #sidebar .tagcloud a.tag-cloud-link:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--dark); transform: translateY(-1px); }

/* ---------- pages (page.php, template-fullwidth.php) ---------- */
/* full-width template: no sidebar, so the column takes the whole width; the text is a centred reading column */
#content-wrap:not(:has(> #sidebar)) #content { grid-column: 1 / -1; margin-right: 24px; }
#content #fullwidth.post { width: auto; max-width: 760px; margin: 0 auto; float: none; }
#content.page .post h1 { margin: 6px 0 22px; line-height: 1.15; }
#content.page .post h1 a { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; color: #1d386a; }
#content.page .post h1::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 16px; background: var(--gold); border-radius: 2px; }
#content.page ul.post-meta:empty { display: none; }
#content.page .entry, #content.page .entry p { font-size: 16px; line-height: 1.75; }
#content.page .entry p { margin: 0 0 1.1em; }
#content.page .entry strong { color: #2a2626; }
#content #fullwidth .entry > p:first-child { font-size: 18px; color: #2a2828; }
/* sizes and black text pasted from word processors in old pages */
#content.page .entry [style*="font-size"] { font-size: inherit !important; }
#content.page .entry [style*="color: #000000"] { color: inherit !important; }
#content.page .entry img { max-width: 100%; height: auto; border-radius: 6px; }
#content.page .nocomments { display: none; }

/* ---------- footer (footer.php): dark band like the header, three columns, copyright bar ---------- */
#footer.site-footer {
	float: none;
	width: auto;
	box-sizing: border-box;
	margin: 0;
	padding: 44px 40px 0;
	background: linear-gradient(180deg, #252121 0%, #1b1919 100%);
	border-top: 3px solid var(--gold);
	border-radius: 0 0 7px 7px;
	color: #b9b0b0;
	font-size: 14px;
	line-height: 1.6;
}
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; }
.site-footer h3 {
	margin: 4px 0 16px;
	font: 600 13px/1.2 "Myriad Pro", "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold-light);
}
.footer-name { margin: 0 0 10px; font: italic 32px/1.05 Georgia, "Times New Roman", serif; color: #f1e2c2; }
.footer-name span { display: block; padding-left: 1.6em; font-size: .8em; color: #d9c08a; }
.footer-tagline { margin: 0 0 18px; color: #a39a9a; }
.footer-tagline strong { color: #ddd5d5; font-weight: 600; }
.footer-verse { margin: 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--gold); font: italic 15px/1.6 Georgia, "Times New Roman", serif; color: #d6cdcd; }
.footer-verse cite { display: block; margin-top: 6px; font: normal 12px/1 Arial, sans-serif; letter-spacing: .06em; color: #8c8383; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 10px; padding: 0; background: none; float: none; width: auto; }
.site-footer a { color: #ece6e6; text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold-light); text-decoration: none; }
.footer-contact a { display: inline-flex; align-items: center; gap: 12px; }
.footer-contact svg { flex: none; width: 17px; height: 17px; fill: var(--gold); transition: transform .2s var(--ease); }
.footer-contact a:hover svg { transform: scale(1.12); }
.footer-menu a { position: relative; }
.footer-menu a::before { content: "\203A"; margin-right: 8px; color: var(--gold); }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 24px;
	margin-top: 40px;
	padding: 16px 0 20px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: 12px;
	letter-spacing: .03em;
	color: #8c8383;
}
.footer-bottom a { color: #c9c0c0; }
.to-top { white-space: nowrap; }

/* ---------- tablets ---------- */
@media (max-width: 1000px) {
	#content-wrap {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "feature" "blocks" "content" "sidebar" "footer";
	}
	#content { margin: 20px; }
	#sidebar { margin: 0 20px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 32px; align-items: start; }
	#sidebar > * { min-width: 0; }
	#blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-about { grid-column: 1 / -1; }
	/* slideshow: panes stacked instead of cross-faded side by side */
	#panes { height: auto; }
	#panes div { position: static; }
	#panes span.cover, #panes img { display: block; float: none; width: 100%; margin: 0 0 16px; }
	#navi ul { position: static; justify-content: center; padding: 0 0 16px; flex-wrap: wrap; }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
	:root { --wrap: calc(100vw - 16px); }
	body { font-size: 15px; }
	#topnav #nav-wrap > *:first-child { display: none; }
	#logo img { max-width: 78vw; }
	#blocks { grid-template-columns: minmax(0, 1fr); }
	#footer.site-footer { padding: 32px 20px 0; }
	.footer-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	#content { margin: 16px 12px; }
	#sidebar { margin: 0 12px 16px; }
	#content .post .thumb { float: none; margin: 0 0 12px; }
	#navi img { width: 56px; height: 42px; }
	#navi ul { gap: 8px; }
	#content .post .thumb img { width: 100% !important; height: auto !important; aspect-ratio: 17 / 12; }
	/* menu behind a button */
	#menu { flex-wrap: wrap; }
	.menu-toggle {
		display: inline-flex; align-items: center; gap: 8px;
		background: transparent; color: #eee; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px;
		padding: 8px 14px; font: 600 14px/1 "Trebuchet MS", Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em; cursor: pointer;
	}
	html.js #menu > ul:not(.social) { display: none; flex-basis: 100%; flex-direction: column; }
	/* opening: the panel slides down, its items cascade in */
	html.js #menu.is-open > ul:not(.social) { animation: menu-unfold .35s cubic-bezier(.2, .7, .2, 1) both; }
	html.js #menu.is-open > ul:not(.social) > li { animation: menu-item-in .35s cubic-bezier(.2, .7, .2, 1) both; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(2) { animation-delay: 35ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(3) { animation-delay: 70ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(4) { animation-delay: 105ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(5) { animation-delay: 140ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(6) { animation-delay: 175ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(7) { animation-delay: 210ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(8) { animation-delay: 245ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(9) { animation-delay: 280ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(10) { animation-delay: 315ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(11) { animation-delay: 350ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(12) { animation-delay: 385ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(13) { animation-delay: 420ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(14) { animation-delay: 455ms; }
	html.js #menu.is-open > ul:not(.social) > li:nth-child(15) { animation-delay: 490ms; }

	html.js #menu.is-open > ul:not(.social) { display: flex; }
	#menu > ul:not(.social) li ul { position: static; width: auto; }
}

/* ---------- people who asked their system to reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	html.js .reveal { opacity: 1; transform: none; }
}
