/*
Theme Name: IBS
Description: Tema propio de Iberian Book Services (diseño B): ligero, sin constructor, con modo oscuro.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 8.1
Text Domain: ibs
*/

:root {
	--accent: #fb923c;
	--hero-ink: #4a2410;
	--bg: #ffffff;
	--surface: #f6f7f9;
	--warm: #fff4ec;
	--text: #1f2328;
	--muted: #59606a;
	--border: #ececec;
	--field: #ffffff;
	--field-border: #cfd3d8;
	--link: #b3470b;
	--btn: #b3470b;
	--btn-text: #ffffff;
	--ink: #1f2328;
	--ink-text: #ffffff;
	--footer: #1f2328;
	--footer-text: #d6d9dd;
	--shadow: rgba(0, 0, 0, 0.12);
	--wrap: 1240px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #2b2e33;
	--surface: #35393f;
	--warm: #3d3229;
	--text: #eef0f2;
	--muted: #b9bfc6;
	--border: #454a51;
	--field: #474c54;
	--field-border: #7a818a;
	--link: #ff9a52;
	--btn: #ff8a3d;
	--btn-text: #1f1104;
	--ink: #eef0f2;
	--ink-text: #2b2e33;
	--footer: #222428;
	--footer-text: #c9ced4;
	--shadow: rgba(0, 0, 0, 0.35);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #2b2e33;
		--surface: #35393f;
		--warm: #3d3229;
		--text: #eef0f2;
		--muted: #b9bfc6;
		--border: #454a51;
		--field: #474c54;
		--field-border: #7a818a;
		--link: #ff9a52;
		--btn: #ff8a3d;
		--btn-text: #1f1104;
		--ink: #eef0f2;
		--ink-text: #2b2e33;
		--footer: #222428;
		--footer-text: #c9ced4;
		--shadow: rgba(0, 0, 0, 0.35);
		color-scheme: dark;
	}
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--bg); color: var(--text); padding: 10px 16px; border-radius: 8px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
	padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
	text-decoration: none; cursor: pointer;
	background: var(--btn); color: var(--btn-text);
}
.btn:hover { filter: brightness(1.06); }
.btn--ink { background: var(--hero-ink); color: #ffffff; }
.btn--white { background: #ffffff; color: #1f2328; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--field-border); }

/* Forms */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], select, textarea {
	font: inherit; font-size: 15px; color: var(--text);
	background: var(--field); border: 1px solid var(--field-border); border-radius: 10px;
	padding: 12px 14px; width: 100%;
}
textarea { resize: vertical; min-height: 140px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
label { font-size: 14px; font-weight: 600; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand__mark { width: 52px; height: 52px; color: var(--accent); flex: 0 0 auto; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name b { font-size: 20px; font-weight: 800; letter-spacing: 0.04em; }
.brand__name span { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 8px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.main-nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; display: block; padding: 8px 0; }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current-page-ancestor > a { color: var(--link); font-weight: 700; }
.main-nav > ul > li:last-child > a { background: var(--btn); color: var(--btn-text); padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.main-nav li { position: relative; }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 240px; padding: 8px;
	background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
	box-shadow: 0 12px 32px var(--shadow); display: none;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.main-nav .sub-menu a:hover { background: var(--surface); }

.lang-switch { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 8px 4px; text-transform: uppercase; }
.lang-switch .is-current a { color: var(--text); font-weight: 700; }
.icon-btn {
	width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--field-border);
	background: var(--bg); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.menu-toggle { display: none; }

@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 20px; }
	.main-nav.is-open { display: block; }
	.main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav > ul > li > a { padding: 12px 0; border-bottom: 1px solid var(--border); }
	.main-nav > ul > li:last-child > a { margin-top: 12px; text-align: center; }
	.main-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
	.brand__mark { width: 40px; height: 40px; }
	.brand__name b { font-size: 16px; }
	.brand__name span { font-size: 10px; }
}

/* Hero */
.hero { background: var(--accent); color: var(--hero-ink); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; line-height: 1.1; margin: 0 0 20px; }
.hero__lead { font-size: 19px; max-width: 560px; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__covers { flex: 1 1 420px; min-width: 0; display: flex; gap: 16px; justify-content: center; align-items: flex-end; }
.hero__covers img { width: 150px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }
.hero__covers img:nth-child(1) { transform: rotate(-4deg); }
.hero__covers img:nth-child(2) { width: 180px; }
.hero__covers img:nth-child(3) { transform: rotate(4deg); }
@media (max-width: 640px) {
	.hero__inner { padding-top: 40px; padding-bottom: 36px; gap: 24px; }
	.hero__lead { font-size: 16px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__covers { display: none; }
}

/* Sections */
.section { padding-top: 64px; padding-bottom: 64px; }
.section--surface { background: var(--surface); }
.section__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section__head h2 { font-size: 32px; font-weight: 800; margin: 0; }
.page-hero { background: var(--warm); }
.page-hero .wrap { padding-top: 40px; padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; margin: 0 0 12px; }
.page-hero p { font-size: 18px; color: var(--muted); max-width: 760px; margin: 0; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }

.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card-link { display: flex; flex-direction: column; gap: 8px; padding: 32px; border-radius: 16px; text-decoration: none; color: var(--text); background: var(--surface); }
.card-link--warm { background: var(--warm); }
.card-link strong { font-size: 24px; }
.card-link span { color: var(--muted); }
.card-link em { font-style: normal; font-weight: 600; color: var(--link); margin-top: 8px; }
@media (max-width: 640px) { .cards-2 { grid-template-columns: 1fr; } .card-link { padding: 20px; } }

/* Book cards & carousel */
.book-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); }
.book-card img, .book-card .no-cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 18px var(--shadow); background: var(--surface); }
.book-card span { font-size: 14px; font-weight: 600; line-height: 1.4; }
.carousel { display: flex; align-items: center; gap: 16px; }
.carousel__viewport { flex: 1; min-width: 0; overflow: hidden; }
.carousel__track { display: flex; gap: 24px; transition: transform 0.45s ease; }
.carousel__track > * { flex: 0 0 calc((100% - 4 * 24px) / 5); }
.carousel--4 .carousel__track > * { flex-basis: calc((100% - 3 * 18px) / 4); }
.carousel--4 .carousel__track { gap: 18px; }
.carousel__btn { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--field-border); background: var(--bg); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--field-border); cursor: pointer; transition: width 0.2s; }
.carousel__dots button[aria-current="true"] { width: 28px; background: var(--btn); }
@media (prefers-reduced-motion: reduce) { .carousel__track { transition: none; } }
@media (max-width: 960px) {
	.carousel__btn, .carousel__dots { display: none; }
	.carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; margin: 0 -24px; padding: 4px 24px 12px; }
	.carousel__track > *, .carousel--4 .carousel__track > * { flex: 0 0 150px; scroll-snap-align: start; }
}

/* Newsletter band */
.newsletter-band { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.newsletter-band__text { flex: 1 1 420px; }
.newsletter-band__text h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.newsletter-band__text p { color: var(--muted); margin: 0; }
.newsletter-band form { flex: 1 1 460px; display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter-band input { flex: 1 1 260px; border-radius: 999px; padding: 14px 18px; width: auto; }

/* Layout with sidebar */
.with-aside { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 40px; padding-bottom: 72px; }
.with-aside__main { flex: 999 1 640px; min-width: 0; }
.with-aside > aside { flex: 1 1 300px; min-width: 260px; display: flex; flex-direction: column; gap: 24px; }
.panel { background: var(--surface); border-radius: 16px; padding: 24px; }
.panel--accent { background: var(--accent); color: var(--hero-ink); display: flex; flex-direction: column; gap: 12px; }
.panel--accent h2 { font-size: 20px; font-weight: 800; margin: 0; }
.panel--accent p { margin: 0; }
.panel h2 { font-size: 18px; }

.tabs { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.tabs a { padding: 14px 22px; border-radius: 12px 12px 0 0; text-decoration: none; color: var(--text); font-weight: 600; }
.tabs a[aria-current="page"] { background: var(--bg); }
.page-hero--tabs .wrap { padding-bottom: 0; }

.featured { background: var(--surface); border-radius: 20px; padding: 24px 20px 20px; margin-bottom: 24px; }
.featured .carousel__btn { flex-basis: 44px; width: 44px; height: 44px; }

.book-row { display: flex; gap: 28px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; align-items: flex-start; margin-bottom: 24px; }
.book-row > a:first-child { flex: 0 0 128px; }
.book-row img, .book-row .no-cover { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 18px var(--shadow); background: var(--surface); }
.book-row h2 { font-size: 20px; margin: 0 0 8px; }
.book-row h2 a { color: var(--text); text-decoration: none; }
.book-row p { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.book-row .meta { font-size: 13px; }
@media (max-width: 640px) { .book-row { gap: 16px; padding: 16px; } .book-row > a:first-child { flex-basis: 88px; } }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--field-border); color: var(--text); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--ink-text); border-color: var(--ink); font-weight: 600; }
.pagination .dots { border: 0; }

/* Single book */
.book { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 32px; padding-bottom: 64px; }
.book__cover { flex: 0 1 380px; min-width: 260px; background: var(--warm); border-radius: 20px; padding: 40px; display: flex; justify-content: center; }
.book__cover img { width: 100%; max-width: 300px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 24px 48px var(--shadow); }
.book__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.book__kicker { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.book__body h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.12; margin: 0 0 8px; }
.book-crumbs { padding-top: 32px; }
.book__by { font-size: 17px; margin: 0; }
.book__by a { font-weight: 600; }
.book__facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; }
.book__facts dt { font-size: 13px; color: var(--muted); }
.book__facts dd { margin: 4px 0 0; font-weight: 600; }
.book__facts .price dd { font-size: 20px; font-weight: 800; }
.book__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.book__desc { max-width: 720px; line-height: 1.75; }
.book__desc h2 { font-size: 22px; font-weight: 800; }
@media (max-width: 640px) { .book__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .book { gap: 24px; } .book__cover { flex-basis: 100%; padding: 24px; } .book__cover img { max-width: 220px; } }

.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Publishers */
.pub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pub-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text); background: var(--bg); }
.pub-card__logo { background: #ffffff; height: 120px; padding: 18px 22px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.pub-card__logo img { max-width: 100%; max-height: 84px; object-fit: contain; }
.pub-card__initials { width: 64px; height: 64px; border-radius: 50%; background: #fff4ec; color: #b3470b; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.pub-card__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.pub-card__body strong { font-size: 15px; line-height: 1.3; }
.pub-card__body em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--link); }
.pub-section + .pub-section { margin-top: 48px; }
.pub-section h2 { font-size: 26px; font-weight: 800; margin-bottom: 20px; }
.pub-section h2 small { font-size: 16px; color: var(--muted); font-weight: 600; }

/* Newsletter areas */
.areas { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.areas legend { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--field-border); background: var(--bg); color: var(--text); }
.chip input:checked + span { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.chip input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 6px; }

/* Generic content */
.entry { max-width: 760px; font-size: 17px; line-height: 1.75; }
.entry img { border-radius: 10px; }
.entry table { border-collapse: collapse; }
.entry .wpcf7 { margin-top: 24px; }
.entry .wpcf7 p { display: flex; flex-direction: column; gap: 6px; }
.entry .wpcf7-submit { font: inherit; font-weight: 600; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-text); cursor: pointer; width: auto; }
.contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 56px; padding-bottom: 80px; }
.contact__info { flex: 1 1 400px; display: flex; flex-direction: column; gap: 20px; }
.contact__form { flex: 1 1 520px; min-width: 0; border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.info-box { border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); }
.info-box--warm { background: var(--warm); }
.info-box small { color: var(--muted); font-size: 14px; }
.info-box strong { font-size: 18px; }

/* Footer */
.site-footer { background: var(--footer); color: var(--footer-text); font-size: 14px; line-height: 1.8; }
.site-footer a { color: var(--footer-text); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; padding-top: 48px; padding-bottom: 32px; }
.site-footer__brand { flex: 1 1 300px; }
.site-footer__brand .brand__mark { width: 44px; height: 44px; color: #ffffff; }
.site-footer__brand b { color: #ffffff; letter-spacing: 0.04em; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 16px; padding-bottom: 24px; font-size: 13px; }

/* Odds and ends */
.lead { font-size: 18px; color: var(--muted); }
.note { color: var(--muted); font-size: 15px; margin-top: 28px; }
.section--flush-top { padding-top: 0; }
.section__title { font-size: 32px; font-weight: 800; margin-bottom: 28px; }
.link-button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.card-link h2 { font-size: 24px; margin: 0; }
.card-link p { margin: 0; color: var(--muted); }
.card-link .btn { margin-top: 8px; }
.hero__mark { flex: 0 1 260px; display: flex; justify-content: center; }
.hero__logo { width: 220px; height: 220px; color: var(--hero-ink); }
@media (max-width: 640px) { .hero__mark { display: none; } }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.step__num { display: inline-block; font-size: 14px; font-weight: 800; color: var(--link); margin-bottom: 12px; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }
.search-form label { display: block; margin-bottom: 10px; }
.search-form__row { display: flex; flex-wrap: wrap; gap: 8px; }
.search-form__row input { flex: 1 1 180px; min-width: 0; }
.search-form__row .btn { padding: 12px 18px; }
.search-hero { max-width: 560px; margin-top: 20px; }
.book__subtitle { font-size: 20px; color: var(--muted); margin: 0 0 12px; }
.areas legend small { font-size: 15px; font-weight: 600; color: var(--link); margin-left: 8px; }
.site-footer .brand { display: flex; margin: 0 0 12px; }
.site-footer nav li { margin: 0 0 4px; }
.contact__info h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; margin: 0; }
.contact__info .lead { margin: 0; }
.entry .wpcf7 input[type="submit"] { width: auto; }
.entry .wpcf7-not-valid-tip { font-size: 14px; }
.entry .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; border-radius: 10px; }

/* Cookie banner of the ibs-consent mu-plugin, in the theme palette. */
body #ibs-consent { background: var(--bg); color: var(--text); border-color: var(--border); border-radius: 16px; box-shadow: 0 12px 40px var(--shadow); font-family: inherit; }
body #ibs-consent button { border-radius: 999px; border-color: var(--btn); background: var(--btn); color: var(--btn-text); font-weight: 600; }
body #ibs-consent button[data-ibs-consent="denied"] { background: transparent; color: var(--text); border-color: var(--field-border); }
body #ibs-consent button.ibs-consent-link { color: var(--link); background: none; border: 0; }
body #ibs-consent a { color: var(--link); }
body #ibs-consent th, body #ibs-consent td { border-color: var(--border); }
body #ibs-consent-open { display: none; }

/* Publisher page */
.publisher-hero { background: var(--warm); }
.publisher-hero .wrap { padding-top: 32px; padding-bottom: 56px; }
.publisher-hero .breadcrumbs { margin-bottom: 32px; }
.publisher-hero__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.publisher-hero__logo { flex: 0 1 400px; min-width: 260px; height: 260px; background: #ffffff; border: 1px solid var(--border); border-radius: 20px; padding: 40px; display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 40px var(--shadow); }
.publisher-hero__logo img { max-width: 100%; max-height: 160px; object-fit: contain; }
.publisher-hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.publisher-hero__text .book__kicker { margin: 0; }
.publisher-hero__text h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; font-weight: 800; margin: 0; }
.publisher-hero__desc { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 640px; margin: 0; }
.publisher-hero__note { font-size: 15px; color: var(--muted); max-width: 640px; }
.publisher-hero__note p { margin: 0 0 4px; }
.publisher-hero__note a { font-weight: 600; }
.publisher-hero .hero__actions { margin-top: 6px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); }
.btn--ghost { background: var(--bg); }
.btn--dark { background: var(--ink); color: var(--ink-text); padding: 12px 22px; }
.publisher-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-top: 56px; padding-bottom: 24px; }
.info-card { border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.info-card svg { color: var(--link); }
.info-card--surface { background: var(--surface); }
.info-card h2 { font-size: 18px; font-weight: 800; margin: 0; }
.info-card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.info-card p strong { color: var(--text); }
.info-card a { font-size: 15px; font-weight: 600; margin-top: auto; }
.publisher-books { padding-top: 48px; padding-bottom: 72px; }
.publisher-books .section__head h2 { font-size: 28px; }
.book-card small { font-size: 14px; color: var(--muted); }
.empty-note { border: 1px dashed var(--field-border); border-radius: 16px; padding: 40px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.empty-note p { margin: 0; font-size: 16px; color: var(--muted); max-width: 640px; }
.publisher-band { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.publisher-band h2 { font-size: 24px; font-weight: 800; margin: 0 0 14px; }
.publisher-band__news { flex: 1 1 340px; min-width: 0; }
.publisher-band__news p { color: var(--muted); }
.publisher-band__related { flex: 2 1 560px; min-width: 0; }
.related-pubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.related-pubs .pub-card__logo { height: 96px; padding: 14px 18px; }
.related-pubs .pub-card__logo img { max-height: 64px; }
.related-pubs .pub-card__body { padding: 12px 14px; }
.related-pubs .pub-card__body strong { font-size: 14px; }
@media (max-width: 960px) { .related-pubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.publisher-hero__logo { flex-basis: 100%; height: 180px; padding: 24px; }
	.publisher-hero__inner { gap: 28px; }
	.empty-note { padding: 24px; }
}

/* Google draws the reCAPTCHA box at a fixed 304px: shrink it to fit the sidebar panel. */
.g-recaptcha { transform: scale(0.72); transform-origin: 0 0; margin-bottom: -22px; }
