/*
Theme Name: Odón Betanzos Palacios
Theme URI: https://www.fundacionodonbetanzos.es
Author: Fundación Odón Betanzos Palacios
Description: Tema clásico de inspiración editorial para la Fundación Odón Betanzos Palacios (Rociana del Condado, Huelva). Tipografía serif, papel envejecido, tinta y lacre. Al activarlo crea automáticamente las páginas, noticias y el menú del sitio.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: odon-betanzos
Tags: classic, one-column, two-columns, custom-menu, featured-images, editor-style
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
	--paper: #f5efe2;
	--paper-deep: #ece3cf;
	--paper-light: #fbf8f1;
	--ink: #2a211a;
	--ink-soft: #5a4d40;
	--ink-faint: #8a7b69;
	--wine: #7b1e2b;
	--wine-dark: #5a1520;
	--gold: #a8834a;
	--gold-light: #cdb183;
	--rule: #cbbd9f;
	--night: #1f1a16;

	--serif-display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
	--serif-text: "EB Garamond", "Garamond", Georgia, serif;
	--caps: "Cormorant SC", "Cormorant Garamond", serif;

	--measure: 40rem;
	--wide: 72rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 112.5%; scroll-behavior: smooth; }

body {
	margin: 0;
	background-color: var(--paper);
	background-image:
		radial-gradient(ellipse at top, rgba(255,255,255,.55), transparent 60%),
		radial-gradient(ellipse at bottom, rgba(168,131,74,.08), transparent 70%);
	background-attachment: fixed;
	color: var(--ink);
	font-family: var(--serif-text);
	font-size: 1rem;
	line-height: 1.7;
	font-feature-settings: "liga", "onum", "kern";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
	color: var(--wine);
	text-decoration: underline;
	text-decoration-color: rgba(123,30,43,.35);
	text-underline-offset: .18em;
	transition: color .2s, text-decoration-color .2s;
}
a:hover, a:focus { color: var(--wine-dark); text-decoration-color: currentColor; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--serif-display);
	font-weight: 500;
	line-height: 1.15;
	color: var(--ink);
	margin: 2.2rem 0 .8rem;
	letter-spacing: .005em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.45rem; }
h4 { font-family: var(--caps); font-size: 1.15rem; letter-spacing: .08em; text-transform: lowercase; font-variant: small-caps; }

p { margin: 0 0 1.15rem; hyphens: auto; }

blockquote {
	margin: 2rem 0;
	padding: .5rem 0 .5rem 1.75rem;
	border-left: 2px solid var(--gold);
	font-family: var(--serif-display);
	font-style: italic;
	font-size: 1.3rem;
	color: var(--ink-soft);
}
blockquote cite { display: block; margin-top: .5rem; font-size: .95rem; font-style: normal; font-family: var(--caps); letter-spacing: .06em; color: var(--ink-faint); }

hr, .wp-block-separator {
	border: 0;
	height: 1.5rem;
	margin: 2.5rem auto;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cg fill='none' stroke='%23a8834a' stroke-width='1'%3E%3Cpath d='M0 12h46M74 12h46'/%3E%3Cpath d='M60 4l8 8-8 8-8-8z'/%3E%3C/g%3E%3Ccircle cx='60' cy='12' r='2' fill='%23a8834a'/%3E%3C/svg%3E") center / 120px 24px no-repeat;
	max-width: 120px;
}

ul, ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
li { margin-bottom: .35rem; }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
th, td { padding: .6rem .8rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { font-family: var(--caps); font-variant: small-caps; letter-spacing: .06em; font-weight: 500; color: var(--ink-soft); }

::selection { background: var(--wine); color: var(--paper-light); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: .5rem; left: .5rem; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--ink); color: var(--paper); padding: .6rem 1rem;
}

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

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.smallcaps, .eyebrow {
	font-family: var(--caps);
	font-variant: small-caps;
	text-transform: lowercase;
	letter-spacing: .14em;
	font-size: .95rem;
	color: var(--gold);
}
.eyebrow { display: block; margin-bottom: .4rem; }

.ornament {
	display: block; width: 120px; height: 24px; margin: 1.5rem auto;
	color: var(--gold);
}

/* ==========================================================================
   4. Header
   ========================================================================== */
.topbar {
	background: var(--night);
	color: var(--gold-light);
	font-family: var(--caps);
	font-variant: small-caps;
	letter-spacing: .1em;
	font-size: .8rem;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .45rem; padding-bottom: .45rem; }
.topbar a { color: var(--gold-light); text-decoration: none; }
.topbar a:hover { color: #fff; }

.site-header {
	text-align: center;
	padding: 2.2rem 0 0;
}
.site-branding { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); }
.site-branding:hover { color: var(--ink); }
.monogram { width: 92px; height: 92px; margin-bottom: .9rem; color: var(--ink); }
.custom-logo { max-height: 110px; width: auto; margin: 0 auto .9rem; }
.site-title {
	font-family: var(--serif-display);
	font-weight: 400;
	font-size: clamp(1.6rem, 4.2vw, 2.7rem);
	line-height: 1.1;
	margin: 0;
	letter-spacing: .02em;
}
.site-title .pre {
	display: block;
	font-family: var(--caps);
	font-variant: small-caps;
	text-transform: lowercase;
	font-size: .42em;
	letter-spacing: .32em;
	color: var(--gold);
	margin-bottom: .3rem;
}
.site-description {
	margin: .5rem 0 0;
	font-style: italic;
	color: var(--ink-soft);
	font-size: 1.02rem;
}

/* Navigation */
.main-navigation {
	margin-top: 1.8rem;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	box-shadow: 0 3px 0 -2px var(--rule), 0 -3px 0 -2px var(--rule);
	background: rgba(251,248,241,.6);
	position: relative;
	z-index: 50;
}
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > .wrap > ul,
.main-navigation .menu { display: flex; justify-content: center; flex-wrap: wrap; }
.main-navigation li { position: relative; margin: 0; }
.main-navigation a {
	display: block;
	padding: .85rem 1.05rem;
	font-family: var(--caps);
	font-variant: small-caps;
	text-transform: lowercase;
	letter-spacing: .12em;
	font-size: 1.02rem;
	color: var(--ink);
	text-decoration: none;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_item > a,
.main-navigation .current_page_ancestor > a { color: var(--wine); }

.main-navigation .sub-menu,
.main-navigation .children {
	position: absolute; left: 50%; top: 100%;
	transform: translate(-50%, 6px);
	min-width: 230px;
	background: var(--paper-light);
	border: 1px solid var(--rule);
	box-shadow: 0 12px 30px -12px rgba(42,33,26,.25);
	padding: .5rem 0;
	opacity: 0; visibility: hidden;
	transition: opacity .2s, transform .2s, visibility .2s;
	text-align: left;
	display: block;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li:hover > .children,
.main-navigation li:focus-within > .children { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-navigation .sub-menu a, .main-navigation .children a { padding: .45rem 1.3rem; font-size: .98rem; }

.menu-toggle {
	display: none;
	margin: 0 auto;
	background: none; border: 0;
	font-family: var(--caps); font-variant: small-caps; text-transform: lowercase;
	letter-spacing: .14em; font-size: 1.05rem; color: var(--ink);
	padding: .85rem 1rem; cursor: pointer;
}
.menu-toggle .bars { display: inline-block; width: 18px; height: 11px; margin-right: .5rem; vertical-align: middle;
	border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; position: relative; }
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1px solid currentColor; }

@media (max-width: 820px) {
	.menu-toggle { display: block; }
	.main-navigation .menu-wrap { display: none; }
	.main-navigation.toggled .menu-wrap { display: block; }
	.main-navigation .menu { flex-direction: column; padding-bottom: .8rem; }
	.main-navigation .sub-menu, .main-navigation .children {
		position: static; transform: none; opacity: 1; visibility: visible;
		border: 0; box-shadow: none; background: transparent; padding: 0; text-align: center; min-width: 0;
	}
	.main-navigation .sub-menu a, .main-navigation .children a { font-size: .92rem; color: var(--ink-soft); padding: .3rem 1rem; }
	.topbar .wrap { justify-content: center; }
	.topbar .topbar-right { display: none; }
}

/* ==========================================================================
   5. Front page
   ========================================================================== */
.hero {
	position: relative;
	text-align: center;
	padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute; inset: 1.25rem var(--gutter);
	border: 1px solid var(--rule);
	outline: 1px solid var(--rule);
	outline-offset: 5px;
	pointer-events: none;
}
.hero .dates {
	font-family: var(--caps); font-variant: small-caps; text-transform: lowercase;
	letter-spacing: .4em; color: var(--gold); font-size: 1.05rem;
}
.hero h1 {
	font-size: clamp(2.6rem, 7.5vw, 5.4rem);
	font-weight: 300;
	line-height: 1.02;
	margin: .9rem 0 1.1rem;
}
.hero h1 em { font-style: italic; color: var(--wine); font-weight: 400; }
.hero .lede {
	max-width: 36rem; margin: 0 auto;
	font-size: 1.2rem; font-style: italic; color: var(--ink-soft);
}
.hero .actions { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.button, .wp-block-button__link, input[type="submit"], button.button {
	display: inline-block;
	padding: .75rem 1.6rem;
	border: 1px solid var(--wine);
	background: var(--wine);
	color: var(--paper-light);
	font-family: var(--caps); font-variant: small-caps; text-transform: lowercase;
	letter-spacing: .14em; font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s;
	border-radius: 0;
}
.button:hover, .wp-block-button__link:hover, input[type="submit"]:hover { background: var(--wine-dark); color: #fff; }
.button.ghost { background: transparent; color: var(--wine); }
.button.ghost:hover { background: var(--wine); color: var(--paper-light); }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { text-align: center; max-width: 38rem; margin: 0 auto 2.8rem; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-soft); font-style: italic; }
.section.alt { background: var(--paper-deep); }
.section.dark { background: var(--night); color: #e9dfcb; }
.section.dark h2, .section.dark h3 { color: #f5efe2; }
.section.dark a { color: var(--gold-light); }

/* Poet intro */
.poet-intro {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.portrait-frame {
	position: relative;
	background: var(--paper-light);
	padding: 14px;
	border: 1px solid var(--rule);
	box-shadow: 0 25px 50px -25px rgba(42,33,26,.45);
}
.portrait-frame::after {
	content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold-light); pointer-events: none;
}
.portrait-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: sepia(.25) contrast(1.02); }
.portrait-placeholder {
	aspect-ratio: 4 / 5;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background:
		repeating-linear-gradient(45deg, rgba(168,131,74,.06) 0 2px, transparent 2px 12px),
		var(--paper-deep);
	color: var(--wine);
	text-align: center;
	padding: 1.5rem;
}
.portrait-placeholder svg { width: 45%; margin-bottom: 1rem; }
.portrait-placeholder span { font-family: var(--caps); font-variant: small-caps; letter-spacing: .14em; color: var(--ink-faint); font-size: .9rem; }
.portrait-caption { margin-top: .8rem; text-align: center; font-style: italic; font-size: .92rem; color: var(--ink-faint); }

.dropcap::first-letter,
.entry-content > p:first-of-type::first-letter {
	float: left;
	font-family: var(--serif-display);
	font-size: 4.6rem;
	line-height: .82;
	padding: .35rem .55rem 0 0;
	color: var(--wine);
	font-weight: 500;
}
.no-dropcap .entry-content > p:first-of-type::first-letter { all: unset; }

/* Pillars */
.pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}
.pillar { padding: 2.2rem 2rem; text-align: center; }
.pillar + .pillar { border-left: 1px solid var(--rule); }
.pillar .numeral { font-family: var(--serif-display); font-size: 2.6rem; font-style: italic; color: var(--gold); line-height: 1; }
.pillar h3 { margin: .6rem 0 .7rem; }
.pillar p { color: var(--ink-soft); font-size: .98rem; }
.pillar .more { font-family: var(--caps); font-variant: small-caps; letter-spacing: .12em; text-decoration: none; }

/* Books */
.books {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
	gap: 1.8rem 1.4rem;
	list-style: none; padding: 0; margin: 0;
}
.book {
	position: relative;
	aspect-ratio: 2 / 3;
	padding: 1.2rem 1rem;
	display: flex; flex-direction: column; justify-content: space-between; text-align: center;
	background: linear-gradient(90deg, rgba(0,0,0,.18) 0 6px, rgba(255,255,255,.08) 6px 8px, transparent 8px), var(--wine);
	color: #f2e6cf;
	box-shadow: 0 18px 28px -16px rgba(42,33,26,.6), inset 0 0 0 1px rgba(255,255,255,.06);
	margin: 0;
	transition: transform .25s;
}
.book:hover { transform: translateY(-4px) rotate(-.4deg); }
.book::before { content: ""; position: absolute; inset: 10px 10px 10px 16px; border: 1px solid rgba(205,177,131,.55); pointer-events: none; }
.book:nth-child(3n+2) { background-color: #23374a; background-image: linear-gradient(90deg, rgba(0,0,0,.2) 0 6px, rgba(255,255,255,.08) 6px 8px, transparent 8px); }
.book:nth-child(3n) { background-color: #2f4232; background-image: linear-gradient(90deg, rgba(0,0,0,.2) 0 6px, rgba(255,255,255,.08) 6px 8px, transparent 8px); }
.book .genre { font-family: var(--caps); font-variant: small-caps; text-transform: lowercase; letter-spacing: .16em; font-size: .72rem; color: var(--gold-light); }
.book .title { font-family: var(--serif-display); font-size: 1.22rem; line-height: 1.15; font-style: italic; }
.book .year { font-family: var(--serif-display); font-size: 1rem; color: var(--gold-light); }

/* Timeline */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 46rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6.2rem; top: .4rem; bottom: .4rem; width: 1px; background: var(--rule); }
.timeline li { display: grid; grid-template-columns: 5.4rem 1fr; gap: 1.8rem; margin: 0 0 1.5rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(6.2rem - 4px); top: .55rem; width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--gold); transform: rotate(45deg); }
.timeline .year { font-family: var(--serif-display); font-size: 1.45rem; color: var(--wine); text-align: right; line-height: 1.2; }
.timeline .event { margin: 0; padding-top: .15rem; }
.timeline .event strong { font-weight: 500; }
.section.alt .timeline li::before { background: var(--paper-deep); }

/* News cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.card { background: var(--paper-light); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.card .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-deep); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.15); }
.card .thumb svg { width: 64px; }
.card .body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.35rem; margin: .3rem 0 .6rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--wine); }
.card p { font-size: .96rem; color: var(--ink-soft); flex: 1; }
.card .date { font-family: var(--caps); font-variant: small-caps; letter-spacing: .12em; font-size: .85rem; color: var(--gold); }

/* Visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.visit address { font-style: normal; font-size: 1.1rem; line-height: 1.9; }
.visit .label { font-family: var(--caps); font-variant: small-caps; letter-spacing: .14em; color: var(--gold); display: block; }
.map-frame { border: 1px solid var(--rule); padding: 10px; background: var(--paper-light); }
.map-frame iframe { width: 100%; height: 320px; border: 0; filter: sepia(.35) saturate(.8); display: block; }

/* Quote band */
.quote-band { text-align: center; }
.quote-band p.big {
	font-family: var(--serif-display); font-style: italic; font-weight: 300;
	font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.3;
	max-width: 46rem; margin: 0 auto 1rem; color: inherit;
}
.quote-band .attr { font-family: var(--caps); font-variant: small-caps; letter-spacing: .2em; color: var(--gold-light); }

@media (max-width: 900px) {
	.poet-intro, .visit { grid-template-columns: 1fr; }
	.poet-intro .portrait-frame { max-width: 360px; margin: 0 auto; }
	.pillars { grid-template-columns: 1fr; }
	.pillar + .pillar { border-left: 0; border-top: 1px solid var(--rule); }
	.cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.timeline::before { left: 4.2rem; }
	.timeline li { grid-template-columns: 3.4rem 1fr; gap: 1.6rem; }
	.timeline li::before { left: calc(4.2rem - 4px); }
	.timeline .year { font-size: 1.15rem; }
	.books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   6. Inner pages & posts
   ========================================================================== */
.page-hero {
	text-align: center;
	padding: clamp(2.8rem, 6vw, 4.5rem) 0 1rem;
}
.page-hero h1 { margin: .3rem 0 .4rem; }
.page-hero .subtitle { font-style: italic; color: var(--ink-soft); font-size: 1.15rem; max-width: 34rem; margin: 0 auto; }

.breadcrumbs {
	font-family: var(--caps); font-variant: small-caps; text-transform: lowercase;
	letter-spacing: .12em; font-size: .85rem; color: var(--ink-faint);
}
.breadcrumbs a { color: var(--ink-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--wine); }
.breadcrumbs .sep { margin: 0 .5rem; color: var(--gold); }

.content-area { padding: 1.5rem 0 4.5rem; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .layout-sidebar { grid-template-columns: 1fr; } }

.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide, .entry-content > .wide { max-width: var(--wide); }
.entry-content > .alignfull { max-width: none; }
.layout-sidebar .entry-content > * { margin-left: 0; }
.entry-content h2 { text-align: left; }
.entry-content h2::after {
	content: ""; display: block; width: 3rem; height: 1px; background: var(--gold); margin-top: .7rem;
}
.entry-content figure { margin: 2rem auto; }
.entry-content figcaption, .wp-caption-text { font-style: italic; font-size: .9rem; color: var(--ink-faint); text-align: center; margin-top: .5rem; }
.entry-content img { border: 1px solid var(--rule); padding: 6px; background: var(--paper-light); }

/* Fotografías dentro del texto: flotan dentro de la columna de lectura */
.entry-content > .wp-block-image.alignright,
.entry-content > .alignright {
	float: right;
	width: min(44%, 290px);
	margin: .4rem max(0px, calc((100% - var(--measure)) / 2)) 1.2rem 1.8rem;
}
.entry-content > .wp-block-image.alignleft,
.entry-content > .alignleft {
	float: left;
	width: min(44%, 290px);
	margin: .4rem 1.8rem 1.2rem max(0px, calc((100% - var(--measure)) / 2));
}
.entry-content .wp-block-image.alignright img,
.entry-content .wp-block-image.alignleft img { width: 100%; height: auto; filter: sepia(.12); }
.entry-content h2, .entry-content > hr, .entry-content > .note { clear: both; }
.entry-content > .wp-block-image.alignright { clear: right; }
.entry-content > h2 + .wp-block-image.alignright { margin-top: .2rem; }
@media (max-width: 600px) {
	.entry-content > .wp-block-image.alignright,
	.entry-content > .wp-block-image.alignleft { float: none; width: auto; max-width: 320px; margin: 1.5rem auto; }
}

/* Galerías del álbum */
.entry-content > .wp-block-gallery { max-width: var(--wide); margin: 1.2rem auto 3rem; }
.entry-content h2 .smallcaps { display: block; font-size: .95rem; margin-top: .3rem; }
.entry-content .wp-block-gallery.odon-gallery { --wp--style--unstable-gallery-gap: 1.1rem; gap: 1.1rem; }
.entry-content .wp-block-gallery.has-nested-images.odon-gallery figure.wp-block-image:not(#individual-image) { width: calc(25% - .825rem); }
.wp-block-gallery.has-nested-images.odon-gallery figure.wp-block-image img,
.wp-block-gallery.has-nested-images.odon-gallery.is-cropped figure.wp-block-image:not(#individual-image) img {
	flex: none;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.wp-block-gallery.has-nested-images.odon-gallery figure.wp-block-image:not(#individual-image) { justify-content: flex-start; }
.wp-block-gallery.odon-gallery .wp-block-image {
	background: var(--paper-light);
	border: 1px solid var(--rule);
	padding: 7px;
	box-shadow: 0 10px 22px -16px rgba(42,33,26,.55);
	transition: transform .25s, box-shadow .25s;
}
.wp-block-gallery.odon-gallery .wp-block-image:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -16px rgba(42,33,26,.6); }
.entry-content .wp-block-gallery.odon-gallery img { border: 0; padding: 0; background: none; filter: sepia(.15); }
.wp-block-gallery.odon-gallery .wp-block-image figcaption,
.wp-block-gallery.has-nested-images.odon-gallery figure.wp-block-image figcaption {
	position: static;
	background: none;
	color: var(--ink-soft);
	font-family: var(--serif-text);
	font-style: italic;
	font-size: .82rem;
	line-height: 1.35;
	text-shadow: none;
	padding: .5rem .2rem .1rem;
	max-height: none;
	overflow: visible;
	text-align: center;
}
.wp-block-gallery.has-nested-images.odon-gallery figure.wp-block-image:has(figcaption)::before { display: none; }
.wp-block-gallery.has-nested-images.odon-gallery figure.wp-block-image { flex-direction: column; }
@media (max-width: 700px) {
	.entry-content .wp-block-gallery.has-nested-images.odon-gallery figure.wp-block-image:not(#individual-image) { width: calc(50% - .55rem); }
}

/* Contacto: dos columnas y formulario (Contact Form 7) */
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
	margin-bottom: 3.5rem !important;
}
.contact-intro h2 { margin-top: 0; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; }
.contact-intro h2::after { margin-top: 1rem; }
.contact-intro > p { color: var(--ink-soft); }
.contact-data { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.contact-data p { margin-bottom: 1.1rem; }
.contact-data .label {
	display: block;
	font-family: var(--caps); font-variant: small-caps; text-transform: lowercase;
	letter-spacing: .14em; font-size: .85rem; color: var(--gold);
}
.contact-form {
	background: var(--paper-light);
	border: 1px solid var(--rule);
	outline: 1px solid var(--rule);
	outline-offset: 5px;
	padding: clamp(1.4rem, 3.5vw, 2.4rem);
	box-shadow: 0 25px 50px -30px rgba(42,33,26,.45);
}
.contact-form > .note { margin: 0; }
.wpcf7 form > p { margin: 0; }
.wpcf7 .cf7-field { margin-bottom: 1.25rem; }
.wpcf7 .cf7-field label {
	display: block;
	margin-bottom: .35rem;
	font-family: var(--caps); font-variant: small-caps; text-transform: lowercase;
	letter-spacing: .12em; font-size: 1rem; color: var(--ink);
}
.wpcf7 .cf7-field br, .wpcf7 .cf7-consents > br { display: none; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea { background: #fff; }
.wpcf7 textarea { min-height: 11rem; resize: vertical; }
.wpcf7 .cf7-consents { margin: 1.6rem 0 1.2rem; font-size: .98rem; }
.wpcf7 .wpcf7-acceptance { display: block; margin-bottom: .55rem; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; display: block; }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: .65rem; align-items: baseline; cursor: pointer; }
.wpcf7 input[type="checkbox"] { accent-color: var(--wine); width: 1.05rem; height: 1.05rem; flex: none; transform: translateY(.15rem); }
.wpcf7 .cf7-captcha { margin: 1.2rem 0; }
.wpcf7 .cf7-captcha:empty { display: none; }
.wpcf7 .cf7-submit { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.wpcf7 input[type="submit"]:disabled { opacity: .45; cursor: not-allowed; }
.wpcf7 .wpcf7-not-valid { border-color: var(--wine); }
.wpcf7 .wpcf7-not-valid-tip { color: var(--wine); font-size: .88rem; font-style: italic; margin-top: .3rem; }
.wpcf7 form .wpcf7-response-output {
	margin: 1.4rem 0 0;
	padding: .8rem 1rem;
	border: 1px solid var(--rule);
	border-left: 3px solid var(--gold);
	background: var(--paper);
	font-size: .95rem;
}
.contact-form .wpcf7 form .wpcf7-response-output { border-color: var(--rule); border-left-color: var(--gold); }
.contact-form .wpcf7 form.sent .wpcf7-response-output { border-color: var(--rule); border-left-color: #4d6b3c; }
.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.failed .wpcf7-response-output,
.contact-form .wpcf7 form.aborted .wpcf7-response-output,
.contact-form .wpcf7 form.spam .wpcf7-response-output,
.contact-form .wpcf7 form.unaccepted .wpcf7-response-output { border-color: var(--rule); border-left-color: var(--wine); }
@media (max-width: 900px) {
	.contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cookies: banner, panel de configuración y contenidos bloqueados
   ========================================================================== */
.cookie-banner {
	position: fixed;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	z-index: 9998;
	width: min(64rem, calc(100% - 2rem));
	background: var(--paper-light);
	border: 1px solid var(--rule);
	outline: 1px solid var(--rule);
	outline-offset: 4px;
	box-shadow: 0 22px 60px -20px rgba(42,33,26,.55);
	color: var(--ink);
}
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-banner__inner { display: flex; gap: 2rem; align-items: center; padding: 1.4rem 1.8rem; }
.cookie-banner__text { flex: 1; }
.cookie-banner h2, .cookie-modal h2 {
	font-size: 1.45rem; margin: 0 0 .4rem;
}
.cookie-banner p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.cookie-banner__actions { display: flex; flex-direction: column; gap: .55rem; flex: none; width: 13.5rem; }
.cookie-btn {
	display: block;
	width: 100%;
	padding: .7rem 1rem;
	border: 1px solid var(--wine);
	background: var(--wine);
	color: var(--paper-light);
	font-family: var(--caps); font-variant: small-caps; text-transform: lowercase;
	letter-spacing: .12em; font-size: 1rem; line-height: 1.2;
	cursor: pointer;
	border-radius: 0;
	transition: background .2s, color .2s;
}
.cookie-btn:hover { background: var(--wine-dark); border-color: var(--wine-dark); color: #fff; }
.cookie-btn--ghost { background: transparent; color: var(--wine); }
.cookie-btn--ghost:hover { background: var(--wine); color: var(--paper-light); }
@media (max-width: 760px) {
	.cookie-banner { bottom: 0; width: 100%; outline: 0; border-width: 1px 0 0; }
	.cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.1rem 1rem 1.2rem; }
	.cookie-banner__actions { width: auto; display: grid; grid-template-columns: 1fr 1fr; }
	.cookie-banner__actions .cookie-btn--ghost { grid-column: 1 / -1; }
	.cookie-banner p { font-size: .9rem; }
}

.cookie-modal {
	position: fixed; inset: 0; z-index: 9999;
	background: rgba(31,26,22,.55);
	display: flex; align-items: center; justify-content: center;
	padding: 1rem;
}
body.cookie-modal-open { overflow: hidden; }
.cookie-modal__box {
	position: relative;
	width: min(44rem, 100%);
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	background: var(--paper-light);
	border: 1px solid var(--rule);
	padding: 2rem clamp(1.2rem, 4vw, 2.4rem) 1.6rem;
	box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
.cookie-modal__box > p { font-size: .95rem; color: var(--ink-soft); }
.cookie-modal__close {
	position: absolute; top: .6rem; right: .8rem;
	background: none; border: 0; font-size: 1.9rem; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: .2rem .5rem;
}
.cookie-modal__close:hover { color: var(--wine); }
.cookie-cat { border-top: 1px solid var(--rule); padding: 1.1rem 0 .6rem; }
.cookie-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cookie-cat h3 { margin: 0; font-size: 1.2rem; }
.cookie-cat p { font-size: .92rem; color: var(--ink-soft); margin: .4rem 0 .5rem; }
.cookie-cat__always { font-family: var(--caps); font-variant: small-caps; letter-spacing: .1em; font-size: .9rem; color: #4d6b3c; white-space: nowrap; }
.cookie-cat details { font-size: .88rem; }
.cookie-cat summary { cursor: pointer; color: var(--wine); font-style: italic; }
.cookie-cat__list { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.cookie-cat__list li { margin-bottom: .5rem; }
.cookie-modal__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
@media (max-width: 560px) { .cookie-modal__actions { grid-template-columns: 1fr; } }

.cookie-switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; flex: none; }
.cookie-switch input { position: absolute; z-index: 1; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch__track {
	width: 2.8rem; height: 1.5rem; border-radius: 1rem;
	background: #cfc6b4; position: relative; transition: background .2s;
}
.cookie-switch__track::after {
	content: ""; position: absolute; top: .2rem; left: .2rem;
	width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s;
}
.cookie-switch input:checked + .cookie-switch__track { background: var(--wine); }
.cookie-switch input:checked + .cookie-switch__track::after { transform: translateX(1.3rem); }
.cookie-switch input:focus-visible + .cookie-switch__track { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Contenidos de terceros bloqueados hasta el consentimiento */
.consent-embed:not(.is-loaded) {
	min-height: 320px;
	display: flex; align-items: center; justify-content: center;
	text-align: center;
	background:
		repeating-linear-gradient(45deg, rgba(168,131,74,.06) 0 2px, transparent 2px 12px),
		var(--paper-deep);
	padding: 1.5rem;
}
.consent-embed__msg { max-width: 26rem; }
.consent-embed__msg p { font-size: .95rem; color: var(--ink-soft); }
.consent-embed__actions { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: center; margin: 0; }
.consent-embed.is-loaded iframe { display: block; width: 100%; }
.entry-content .consent-embed { margin: 2rem auto; }

/* Pie: enlace permanente para configurar cookies */
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.cookie-settings-link {
	background: none; border: 0; padding: 0; cursor: pointer;
	font: inherit; color: var(--gold-light);
}
.cookie-settings-link:hover { color: #fff; text-decoration: underline; }
body.has-cookie-banner .site-footer { padding-bottom: 12rem; }
@media (max-width: 760px) { body.has-cookie-banner .site-footer { padding-bottom: 18rem; } }

/* Tabla de cookies (Política de cookies) */
.entry-content > .cookie-table-wrap { max-width: var(--wide); }
.cookie-table { font-size: .9rem; }
.cookie-table code { font-size: .85rem; word-break: break-word; }
.cookie-table td:first-child { min-width: 9rem; }
@media (max-width: 760px) {
	.cookie-table thead { display: none; }
	.cookie-table tr { display: block; border: 1px solid var(--rule); margin-bottom: 1rem; background: var(--paper-light); }
	.cookie-table td { display: block; border: 0; border-bottom: 1px dotted var(--rule); }
	.cookie-table td::before { content: attr(data-label); display: block; font-family: var(--caps); font-variant: small-caps; letter-spacing: .1em; color: var(--gold); font-size: .82rem; }
}

/* ==========================================================================
   Redes sociales
   ========================================================================== */
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.social-links li { margin: 0; }
.social-links a { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.social-icon { width: 1.1rem; height: 1.1rem; flex: none; }
.social-links .is-pending a { opacity: .45; }
.social-links--band .is-pending a,
.social-links--inline .is-pending a { border-style: dashed; }
.social-links--footer .is-pending .social-icon { border-style: dashed; }
.social-links .is-pending a:hover { opacity: .8; }

/* Barra superior */
.topbar-end { display: inline-flex; align-items: center; gap: 1.1rem; }
.social-links--topbar { gap: .2rem; }
.social-links--topbar a { color: var(--gold-light); padding: .15rem .3rem; }
.social-links--topbar a:hover { color: #fff; }
.social-links--topbar .social-icon { width: .95rem; height: .95rem; }
@media (max-width: 820px) {
	.topbar .wrap { justify-content: space-between; }
	.topbar .topbar-right { display: none; }
}

/* Banda de la portada */
.social-band { text-align: center; }
.social-band .section-head { margin-bottom: 2rem; }
.social-links--band { justify-content: center; gap: 1rem; }
.social-links--band a {
	flex-direction: column;
	gap: .6rem;
	min-width: 8.5rem;
	padding: 1.4rem 1.2rem 1.1rem;
	background: var(--paper-light);
	border: 1px solid var(--rule);
	color: var(--wine);
	font-family: var(--caps); font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em;
	box-shadow: 0 12px 24px -18px rgba(42,33,26,.5);
}
.social-links--band a:hover { background: var(--wine); color: var(--paper-light); border-color: var(--wine); transform: translateY(-3px); }
.social-links--band .social-icon { width: 2rem; height: 2rem; }
.social-links--band .social-name { color: inherit; font-size: 1rem; }
@media (max-width: 560px) { .social-links--band a { min-width: 6.5rem; padding: 1.1rem .8rem .9rem; } }

/* Pie */
.social-links--footer { flex-direction: column; align-items: flex-start; gap: .45rem; }
.social-links--footer a { color: var(--gold-light); }
.social-links--footer a:hover { color: #fff; }
.social-links--footer .social-icon {
	width: 2rem; height: 2rem; padding: .45rem;
	border: 1px solid rgba(205,177,131,.4); border-radius: 50%;
}
.social-links--footer a:hover .social-icon { border-color: #fff; }
@media (max-width: 820px) { .social-links--footer { align-items: center; } }

/* Página de contacto */
.contact-social { margin-top: .2rem; }
.social-links--inline { margin-top: .4rem; gap: .6rem; }
.social-links--inline a {
	width: 2.6rem; height: 2.6rem; justify-content: center;
	border: 1px solid var(--rule); border-radius: 50%; background: var(--paper-light); color: var(--wine);
}
.social-links--inline a:hover { background: var(--wine); color: var(--paper-light); border-color: var(--wine); }

/* ==========================================================================
   Certamen: banner de convocatoria y formularios de participación
   ========================================================================== */
.certamen-banner {
	background:
		radial-gradient(ellipse at right, rgba(205,177,131,.18), transparent 60%),
		var(--wine);
	color: var(--paper-light);
	padding: clamp(1.8rem, 4vw, 2.6rem) 0;
	border-top: 3px double var(--gold-light);
	border-bottom: 3px double var(--gold-light);
}
.certamen-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.certamen-banner__text { flex: 1 1 28rem; }
.certamen-banner .eyebrow { color: var(--gold-light); }
.certamen-banner h2 { color: #fff; margin: .2rem 0 .4rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.certamen-banner p { margin: 0; color: #f0e2cc; font-style: italic; }
.certamen-banner__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.certamen-banner .button { background: var(--paper-light); color: var(--wine); border-color: var(--paper-light); }
.certamen-banner .button:hover { background: #fff; color: var(--wine-dark); }
.certamen-banner .button.ghost { background: transparent; color: var(--paper-light); border-color: rgba(251,248,241,.7); }
.certamen-banner .button.ghost:hover { background: var(--paper-light); color: var(--wine); }
.entry-content > .certamen-banner--page { max-width: var(--wide); margin: 0 auto 2.5rem; padding: 1.6rem 1.8rem; }
.certamen-banner--page .wrap { padding: 0; }

.certamen-anon { margin-top: 1.5rem; }
.entry-content > .certamen-forms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	margin-top: 2.5rem;
	align-items: start;
}
.certamen-step {
	position: relative;
	background: var(--paper-light);
	border: 1px solid var(--rule);
	outline: 1px solid var(--rule);
	outline-offset: 5px;
	padding: 2.4rem clamp(1.2rem, 3vw, 2rem) 1.8rem;
	box-shadow: 0 25px 50px -30px rgba(42,33,26,.45);
	scroll-margin-top: 2rem;
}
.certamen-step__num {
	position: absolute; top: -1.4rem; left: 50%; transform: translateX(-50%);
	width: 2.8rem; height: 2.8rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--wine); color: var(--paper-light);
	font-family: var(--serif-display); font-size: 1.5rem; font-style: italic;
	box-shadow: 0 0 0 4px var(--paper);
}
.certamen-step h2 { margin-top: 0; text-align: center; }
.certamen-step h2::after { margin-left: auto; margin-right: auto; }
.certamen-step > p { font-size: .95rem; color: var(--ink-soft); text-align: center; }
.wpcf7 .cf7-help { display: block; margin-top: .3rem; font-size: .85rem; font-style: italic; color: var(--ink-faint); line-height: 1.4; }
.wpcf7 input[type="file"] { width: 100%; padding: .6rem; background: #fff; border: 1px dashed var(--gold); font-family: var(--serif-text); font-size: .95rem; }
.certamen-closed { max-width: var(--measure); margin: 0 auto; padding: 1.6rem 1.8rem; background: var(--paper-light); border: 1px solid var(--rule); border-left: 3px solid var(--ink-faint); }
@media (max-width: 900px) {
	.entry-content > .certamen-forms { grid-template-columns: 1fr; gap: 3rem; }
}

/* Datos legales pendientes de completar */
.por-completar { background: rgba(168,131,74,.15); padding: 0 .3em; color: var(--wine); font-style: italic; }

.wp-lightbox-overlay .scrim { background-color: var(--paper) !important; }
.wp-lightbox-overlay .close-button, .wp-lightbox-overlay button { color: var(--ink); }

.note {
	background: var(--paper-light);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--gold);
	padding: 1.1rem 1.4rem;
	font-size: .98rem;
	color: var(--ink-soft);
}
.note.editorial { border-left-color: var(--wine); }
.note strong { color: var(--ink); font-weight: 600; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--paper-light); margin: 2rem auto; }
.facts > div { padding: 1.1rem 1.3rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: -1px; margin-right: -1px; }
.facts dt, .facts .k { font-family: var(--caps); font-variant: small-caps; letter-spacing: .12em; font-size: .85rem; color: var(--gold); text-transform: lowercase; }
.facts dd, .facts .v { margin: .15rem 0 0; font-family: var(--serif-display); font-size: 1.2rem; }

.child-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.4rem; list-style: none; padding: 0; margin: 2.5rem auto 0; }
.child-pages li { margin: 0; }
.child-pages a { display: block; height: 100%; padding: 1.4rem 1.5rem; background: var(--paper-light); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.child-pages a:hover { border-color: var(--wine); transform: translateY(-2px); }
.child-pages .t { display: block; font-family: var(--serif-display); font-size: 1.35rem; color: var(--wine); }
.child-pages .x { display: block; font-size: .95rem; color: var(--ink-soft); margin-top: .3rem; }

.entry-meta { font-family: var(--caps); font-variant: small-caps; letter-spacing: .12em; color: var(--ink-faint); font-size: .9rem; }
.entry-meta a { color: var(--ink-faint); text-decoration: none; }
.post-thumbnail { max-width: 52rem; margin: 1.5rem auto 2rem; }
.post-thumbnail img { width: 100%; border: 1px solid var(--rule); padding: 8px; background: var(--paper-light); }

.post-list { max-width: 46rem; margin: 0 auto; }
.post-item { padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.post-item h2 { margin: .2rem 0 .6rem; font-size: 1.8rem; }
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-item h2 a:hover { color: var(--wine); }

.post-navigation, .pagination { max-width: 46rem; margin: 3rem auto 0; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--caps); font-variant: small-caps; letter-spacing: .1em; }
.pagination .nav-links { display: flex; gap: .4rem; justify-content: center; width: 100%; }
.pagination .page-numbers { padding: .3rem .7rem; border: 1px solid var(--rule); text-decoration: none; }
.pagination .current { background: var(--wine); color: var(--paper-light); border-color: var(--wine); }

/* Sidebar */
.sidebar .widget { margin-bottom: 2.4rem; }
.sidebar .widget-title, .sidebar h2 { font-family: var(--caps); font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; font-size: 1.05rem; color: var(--gold); margin: 0 0 .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.sidebar ul { list-style: none; padding: 0; }
.sidebar li { padding: .3rem 0; border-bottom: 1px dotted var(--rule); }
.sidebar a { text-decoration: none; }

/* Forms */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"], textarea, select {
	width: 100%;
	padding: .7rem .9rem;
	border: 1px solid var(--rule);
	background: var(--paper-light);
	font-family: var(--serif-text);
	font-size: 1rem;
	color: var(--ink);
	border-radius: 0;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168,131,74,.18); }
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; }

/* Comments */
.comments-area { max-width: var(--measure); margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--rule); }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1rem 0; border-bottom: 1px dotted var(--rule); }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
	background: var(--night);
	color: #cfc3ad;
	font-size: .95rem;
	margin-top: 0;
}
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top { text-align: center; padding: 3.5rem 0 2.2rem; border-bottom: 1px solid rgba(205,177,131,.2); }
.footer-top .monogram { color: var(--gold-light); margin: 0 auto .8rem; width: 60px; height: 60px; }
.footer-top .name { font-family: var(--serif-display); font-size: 1.6rem; color: #f5efe2; }
.footer-top .motto { font-style: italic; color: #a99c86; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding: 2.5rem 0; }
.footer-cols h4 { color: var(--gold-light); margin: 0 0 .8rem; font-size: 1.05rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: .3rem; }
.footer-cols address { font-style: normal; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(205,177,131,.2); padding: 1.2rem 0; font-size: .85rem; color: #8f8370; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.footer-bottom ul { display: flex; gap: 1.2rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
@media (max-width: 820px) {
	.footer-cols { grid-template-columns: 1fr; text-align: center; }
	.footer-bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   8. WordPress core classes
   ========================================================================== */
.alignleft { float: left; margin: .4rem 1.6rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.6rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky .entry-title::before { content: "✦ "; color: var(--gold); }
.bypostauthor { display: block; }
.gallery-caption { font-style: italic; }
.wp-block-image img { height: auto; }
.has-text-align-center { text-align: center; }

@media print {
	.topbar, .main-navigation, .site-footer, .sidebar { display: none; }
	body { background: #fff; }
}
