/*
Theme Name: Cineberry
Theme URI: https://cineberry.co.uk
Description: Custom theme for Cineberry. Featured latest review, landscape thumbnails, a sidebar made of widgets, and a Letterboxd "recently watched" widget.
Version: 1.4.3
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: cineberry
*/

/* ==========================================================
   COLOURS AND FONTS: change these and the whole site follows.
   ========================================================== */
:root {
	--accent: #DE165D;        /* berry: links, titles in the header, buttons */
	--paper: #FFF8F4;         /* page background */
	--ink: #2A1620;           /* main text and outlines */
	--footer-bg: #2A1620;     /* footer background */
	--text-soft: #4A2F3B;     /* excerpts */
	--muted: #6B4A58;         /* dates and small labels */
	--blush: #F6D5DD;         /* image placeholders, hover */
	--blush-strong: #F2A7B8;  /* footer title */
	--card: #FCE8EC;          /* About card background */
	--line: #E9CFD6;          /* section lines */
	--line-soft: #F0DDE2;     /* lines between posts */
	--outline: #D9AEB9;       /* tag chips, search box */
	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--max: 1320px;
	--on-accent: #FFFFFF;     /* text on the berry strips and sticker */
	--strip: var(--accent);  /* sidebar title strip */
	--box-line: var(--ink);  /* sidebar box outline */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.screen-reader-text:focus, .skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--accent); z-index: 100; }
.cb-wrap { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 0; }
.cb-header { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-top: 30px; padding-bottom: 20px; }
.site-title { font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1; margin: 0; }
.site-title a { color: var(--accent); }
.site-description { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.custom-logo { max-height: 116px; max-width: min(480px, 82vw); width: auto; display: block; margin: 0 auto; }
.custom-logo-link { display: inline-block; }
.site-branding { text-align: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; font-weight: 500; font-size: 15px; }
.main-nav .current-menu-item > a { color: var(--accent); }

/* ---------- Layout ---------- */
.cb-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 36px; padding-bottom: 56px; }
.cb-main { flex: 1 1 780px; min-width: 0; }
.cb-sidebar { flex: 0 1 300px; max-width: 300px; display: flex; flex-direction: column; gap: 36px; }

/* ---------- Featured post ---------- */
.cb-feature__media { position: relative; }
.cb-feature__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--blush); }
.cb-meta { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 18px; }
.cb-meta a { color: var(--accent); font-weight: 600; }
.cb-feature__title { font-size: 40px; line-height: 1.12; margin: 8px 0 12px; }
.cb-feature__excerpt { font-size: 18px; color: var(--text-soft); margin: 0 0 14px; }
.cb-more { font-weight: 600; color: var(--accent); }

.cb-section-head { display: flex; align-items: flex-end; gap: 14px; margin: 44px 0 8px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.cb-section-head h2 { font-size: 26px; margin: 0; flex: 1; }
.cb-clapper { display: block; height: 64px; width: auto; }

/* ---------- Post list cards ---------- */
.cb-card { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.cb-card__thumb { position: relative; flex: 0 0 220px; aspect-ratio: 3 / 2; }
.cb-card__media { display: block; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; background: var(--blush); }
.cb-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-card__body { flex: 1 1 240px; min-width: 0; }
.cb-card .cb-meta { margin-top: 0; font-size: 12px; }
.cb-card__title { font-size: 22px; line-height: 1.2; margin: 4px 0 6px; }
.cb-card__excerpt { margin: 0; font-size: 15px; color: var(--text-soft); }

.cb-archive-head { margin-bottom: 8px; }
.cb-archive-title { font-size: 36px; margin: 0 0 8px; }

/* ---------- Pagination ---------- */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.page-numbers { padding: 10px 18px; border: 2px solid var(--accent); border-radius: 999px; font-weight: 600; color: var(--accent); }
.page-numbers.current { background: var(--accent); color: #fff; }
.page-numbers.dots { border: 0; padding-left: 0; padding-right: 0; }
a.page-numbers:hover { background: var(--blush); text-decoration: none; }

/* ---------- Single posts and pages ---------- */
.cb-article { max-width: none; width: 100%; margin: 0; padding: 8px 0 56px; }
.cb-article .cb-meta { margin-top: 0; }
.cb-article__title { font-size: 44px; line-height: 1.1; margin: 8px 0 20px; }
.cb-article__hero { margin: 0 0 28px; position: relative; }
.cb-article__hero img { width: 100%; height: auto; border-radius: 6px; display: block; }
.entry-content { font-size: 17px; line-height: 1.75; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content h2, .entry-content h3 { line-height: 1.2; margin: 1.6em 0 0.6em; }
/* Big magazine-style quotes: works for both the Quote and Pullquote blocks */
.entry-content blockquote, .entry-content .wp-block-pullquote { margin: 2em 0; padding: 26px 0 20px; border: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--font-display); text-align: left; }
.entry-content blockquote::before { content: "\201C"; display: block; font-size: 96px; line-height: 0.6; height: 40px; color: var(--accent); }
.entry-content blockquote p { margin: 0 0 8px; font-size: 32px; line-height: 1.2; font-weight: 600; color: var(--ink); }
.entry-content blockquote cite { display: block; font-family: var(--font-body); font-size: 14px; font-style: normal; font-weight: 600; color: var(--muted); }
.entry-content blockquote cite::before { content: "\2014\00a0"; }
.entry-content .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
@media (min-width: 900px) { .entry-content blockquote, .entry-content .wp-block-pullquote { margin-left: -40px; margin-right: -40px; } .entry-content .wp-block-pullquote blockquote { margin: 0; } }
@media (max-width: 700px) { .entry-content blockquote p { font-size: 24px; } }
.entry-content figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.cb-tags { font-size: 14px; color: var(--muted); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; color: var(--accent); }
.cb-comments { margin-top: 48px; }
.cb-comments .comment-list { padding-left: 20px; }

/* ---------- Sidebar widgets ---------- */
.widget-title { font-size: 20px; margin: 0 0 10px; }
.widget ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.widget select { max-width: 100%; padding: 10px; border: 1px solid var(--outline); border-radius: 6px; background: #fff; font: inherit; }

.search-form, .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.search-field, .wp-block-search__input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--outline); border-radius: 6px; background: #fff; font: inherit; }
.search-submit, .wp-block-search__button { padding: 12px 18px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* Tag cloud turns into little pills */
.tagcloud, .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a, .wp-block-tag-cloud a { font-size: 14px !important; padding: 6px 14px; border: 1px solid var(--outline); border-radius: 999px; }
.tagcloud a:hover, .wp-block-tag-cloud a:hover { background: var(--blush); text-decoration: none; }

/* Sidebar boxes: black outline, coloured title strip. Titles come from the widget title,
   or from a Heading block placed first in a widget. */
.cb-sidebar > .widget { border: 2px solid var(--box-line); background: var(--paper); padding: 0; }
.cb-sidebar .widget > *:not(.widget-title) { margin: 14px; }
.cb-sidebar .widget > .widget { margin: 0; }
.cb-sidebar .widget-title, .cb-sidebar .widget_block > h2:first-child, .cb-sidebar .widget_block > h3:first-child { margin: 0; padding: 8px 14px; background: var(--strip); color: var(--on-accent); font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.3; }

/* About widget (Custom HTML block): see README for the snippet */
.cb-about { display: flex; gap: 14px; align-items: center; }
.cb-about img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.cb-about p { margin: 0 0 6px; font-size: 15px; color: var(--text-soft); }
.cb-about a { color: var(--accent); font-weight: 600; font-size: 14px; }

/* Circle sticker (set per post in the "Sticker" box in the editor) */
.cb-sticker { --st: 76px; position: absolute; right: -10px; top: -14px; z-index: 2; width: var(--st); height: var(--st); display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); border: 3px solid #fff; transform: rotate(-8deg); font-family: var(--font-display); font-weight: 700; line-height: 1.05; text-align: center; }
.cb-sticker.s-lg { font-size: calc(var(--st) * 0.32); }
.cb-sticker.s-md { font-size: calc(var(--st) * 0.22); }
.cb-sticker.s-sm { font-size: calc(var(--st) * 0.17); }
.cb-card__thumb .cb-sticker { --st: 56px; right: -8px; top: -8px; border-width: 2px; }
.cb-card__thumb .cb-sticker.s-sm { font-size: calc(var(--st) * 0.2); }

/* Letterboxd widget */
.cb-lb { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cb-lb a { display: block; }
.cb-lb img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; background: var(--blush); }
.cb-lb-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text, #FFF8F4); }
.site-footer a { color: inherit; }
.cb-footer { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.cb-footer__fun { flex: 0 0 280px; max-width: 100%; }
.cb-footer__fun .widget, .cb-footer__fun figure { margin: 0; }
.cb-footer__fun img { display: block; width: 100% !important; height: auto !important; border-radius: 6px; }
.cb-footer__fun figcaption { font-size: 13px; font-style: italic; color: inherit; margin-top: 8px; }
.cb-footer__links { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; }
.footer-brand { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--blush-strong); margin: 0; }
.cb-footer .custom-logo { max-height: 72px; max-width: 260px; margin: 0; }
.cb-social-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cb-social-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--blush-strong); border-radius: 50%; color: var(--blush-strong) !important; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; }
.cb-social-link:hover { background: var(--blush-strong); color: var(--footer-bg) !important; text-decoration: none; }
.cb-social-substack { font-family: Georgia, serif; font-size: 18px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: inherit; }
.cb-copy { font-size: 13px; color: inherit; margin: 0; }
.site-footer .widget-title { display: none; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
	.cb-sidebar { flex-basis: 100%; max-width: none; }
}
@media (max-width: 700px) {
	.cb-wrap { padding-left: 20px; padding-right: 20px; }
	.cb-sidebar { max-width: none; }
	.cb-feature__title { font-size: 30px; }
	.cb-article { padding-left: 0; padding-right: 0; }
	.cb-header { padding-top: 22px; gap: 14px; }
	.main-nav ul { gap: 8px 18px; }
	.cb-article__title { font-size: 32px; }
	.cb-card__thumb { flex-basis: 100%; }
	.cb-footer__fun { flex-basis: 100%; max-width: 420px; }
}
.cb-lb-error { font-size: 13px; color: var(--muted); background: var(--card); padding: 10px 12px; border-radius: 6px; margin: 0; }

/* ---------- Verdict box (insert the "Verdict box" pattern, or use the HTML snippet in the README) ---------- */
.entry-content .cb-verdict { position: relative; margin: 36px 0; padding: 0 0 14px 130px; border: 2px solid var(--box-line); background: var(--paper); font-size: 16px; line-height: 1.5; }
.entry-content .cb-verdict::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 130px; border-right: 2px solid var(--box-line); background: var(--cb-clapper) center / 96px auto no-repeat; }
.entry-content .cb-verdict h2 { margin: 0 0 12px; padding: 8px 14px; background: var(--strip); color: var(--on-accent); font-size: 18px; font-weight: 600; line-height: 1.3; }
.entry-content .cb-verdict p { margin: 0 14px 8px; }
.entry-content .cb-verdict .cb-verdict__score { margin-bottom: 4px; font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--accent); }
@media (max-width: 600px) {
	.entry-content .cb-verdict { padding-left: 0; padding-top: 110px; }
	.entry-content .cb-verdict::before { right: 0; bottom: auto; width: auto; height: 110px; border-right: 0; border-bottom: 2px solid var(--box-line); background-size: 80px auto; }
}

/* ---------- Cineberry editorial sidebar and 2000s-inspired details ---------- */
.cb-sidebar { gap: 25px; }
.cb-sidebar > .widget {
	position: relative;
	padding: 16px 17px 18px;
	border: 1px solid var(--line);
	border-radius: 7px;
	background-color: #fffaf8;
	background-image: var(--cb-sidebar-pattern, none);
	background-repeat: repeat;
	box-shadow: 3px 4px 0 rgba(142, 27, 74, .07);
}
.cb-sidebar .widget > *:not(.widget-title) { margin: 12px 0 0; }
.cb-sidebar .widget > .widget { margin: 0; }
.cb-sidebar .widget-title,
.cb-sidebar .widget_block > h2:first-child,
.cb-sidebar .widget_block > h3:first-child {
	position: relative;
	margin: 0;
	padding: 0 0 10px;
	background: transparent;
	color: var(--accent);
	border-bottom: 1px solid var(--line);
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
}
.cb-sidebar .widget-title::after,
.cb-sidebar .widget_block > h2:first-child::after,
.cb-sidebar .widget_block > h3:first-child::after {
	content: "";
	display: block;
	width: 74px;
	height: 9px;
	position: absolute;
	left: 0;
	bottom: -5px;
	background-image: var(--cb-sidebar-divider, none);
	background-position: left center;
	background-repeat: no-repeat;
	background-size: contain;
}
.cb-sidebar .widget ul { list-style: none; padding: 0; gap: 9px; }
.cb-sidebar .widget li { padding: 0 0 8px; border-bottom: 1px dotted var(--line); }
.cb-sidebar .widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.cb-sidebar .widget a { color: var(--accent); }
.cb-sidebar .widget a:hover { color: var(--ink); }
.cb-sidebar .cb-about { padding: 2px 0; }
.cb-sidebar .cb-about img { border: 2px solid #fff; box-shadow: 0 0 0 1px var(--outline); }
.cb-sidebar .cb-about p { line-height: 1.5; }
.cb-sidebar .tagcloud a, .cb-sidebar .wp-block-tag-cloud a { background: rgba(246, 213, 221, .35); border-color: var(--outline); }
.cb-sidebar .search-field, .cb-sidebar .wp-block-search__input { background: #fff; }

/* Homepage sections: review identity first, broader editorial work second. */
.cb-section-head { align-items: center; border-bottom: 1px solid var(--accent); padding-bottom: 11px; gap: 13px; }
.cb-section-head h2 { color: var(--accent); font-size: 29px; line-height: 1.1; }
.cb-section-art { display: block; width: auto; max-width: 74px; max-height: 66px; object-fit: contain; }
.cb-section-head .cb-more { white-space: nowrap; font-size: 14px; }
.cb-home-section--features { margin-top: 42px; }
.cb-home-section--features .cb-section-head { border-bottom-style: double; border-bottom-width: 3px; }
.cb-section-intro { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.cb-feature-category-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 17px; padding-top: 12px; border-top: 1px dotted var(--line); font-size: 13px; font-weight: 600; }
.cb-feature-category-links a { color: var(--accent); }
.cb-empty-note { color: var(--muted); font-size: 14px; font-style: italic; }
@media (max-width: 700px) {
	.cb-sidebar > .widget { padding: 14px; }
	.cb-section-head { flex-wrap: wrap; }
	.cb-section-head h2 { font-size: 24px; }
	.cb-section-art { max-height: 52px; }
}

/* Cineberry editorial refresh: artwork is optional, widgets remain movable. */
:root { --sage:#8DA58A; --sidebar-paper:#FFFAF8; }
.cb-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,310px); gap:44px; }
.cb-sidebar { max-width:none; min-width:0; gap:28px; }
.cb-sidebar > .widget { background-color:var(--sidebar-paper); border:1px solid var(--line); border-radius:3px; padding:17px; box-shadow:4px 4px 0 var(--blush); overflow-wrap:anywhere; }
.cb-sidebar > .widget:nth-of-type(3n+2) { box-shadow:4px 4px 0 var(--sage); }
.cb-sidebar .widget-title, .cb-sidebar .widget_block > h2:first-child, .cb-sidebar .widget_block > h3:first-child { border-bottom:1px dotted var(--accent); font-size:23px; }
.cb-sidebar .widget-title::after, .cb-sidebar .widget_block > h2:first-child::after, .cb-sidebar .widget_block > h3:first-child::after { width:100%; height:13px; bottom:-7px; background-position:center; }
.cb-sidebar .cb-editorial-heading { display:flex; align-items:center; gap:8px; margin:0!important; }
.cb-editorial-heading .widget-title { flex:1; min-width:0; }
.cb-heading-art { width:64px; max-height:65px; object-fit:contain; flex-shrink:0; }
.cb-sidebar-decoration { text-align:center; }
.cb-sidebar-decoration .cb-heading-art { width:auto; max-width:100%; max-height:110px; }
.cb-widget-kicker { font-size:10px; text-transform:uppercase; letter-spacing:.11em; color:var(--muted); }
.cb-popular-list { list-style:none; padding:0; margin:12px 0 0; }
.cb-popular-list li { margin:0 0 10px; padding-bottom:10px!important; }
.cb-popular-item { display:grid; grid-template-columns:78px minmax(0,1fr); gap:11px; align-items:center; }
.cb-popular-thumb { position:relative; display:block; aspect-ratio:4/3; background:var(--blush); }
.cb-popular-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.cb-popular-number { position:absolute; left:-4px; bottom:-3px; background:var(--accent); color:var(--on-accent); font-size:11px; font-weight:600; padding:2px 5px; }
.cb-popular-title { font-family:var(--font-display); font-size:15px; line-height:1.25; color:var(--ink); }
.cb-mood-list { display:grid; gap:8px; }
.cb-mood-item { display:grid; grid-template-columns:45px minmax(0,1fr) 14px; align-items:center; gap:9px; padding:7px; border:1px solid var(--line); background:var(--paper); font-size:13px; font-weight:600; }
.cb-mood-item:nth-child(even) { border-left:3px solid var(--sage); }
.cb-mood-item:nth-child(odd) { border-left:3px solid var(--accent); }
.cb-mood-item img { width:45px; height:45px; object-fit:contain; }
.cb-mood-symbol { display:grid; place-items:center; height:45px; background:var(--blush); font-size:22px; }
.cb-editorial-section .cb-section-head { border-bottom:3px double var(--sage); }
.cb-sidebar .tagcloud a,.cb-sidebar .wp-block-tag-cloud a { font-size:12px!important; border-radius:3px; padding:5px 8px; background:var(--paper); }
.cb-sidebar .search-submit,.cb-sidebar .wp-block-search__button { padding:9px 12px; font-size:13px; }
@media(max-width:900px){.cb-layout{grid-template-columns:minmax(0,1fr);}.cb-sidebar{width:100%;}}
@media(max-width:700px){.cb-section-head .cb-more{white-space:normal;}.cb-heading-art{width:52px;}}

/* Editor's note: three interchangeable magazine treatments. */
.cb-sidebar > .widget_cb_editor_note_widget { padding:19px 16px; background-color:var(--sidebar-paper); box-shadow:4px 4px 0 var(--sage); }
.cb-sidebar .widget > .cb-editor-note { margin:0; }
.cb-editor-note .cb-note-eyebrow { text-align:center; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:0 0 7px; }
.cb-editor-note .cb-note-eyebrow span { color:var(--accent); }
.cb-editor-note .cb-note-title { font-size:25px; line-height:1.12; color:var(--accent); text-align:center; margin:0 0 15px; padding:0 0 12px; border-bottom:3px double var(--sage); }
.cb-note-content { display:flow-root; }
.cb-note-photo { display:block; width:88px; aspect-ratio:3/4; object-fit:cover; float:left; margin:0 12px 7px 0; border:3px solid white; outline:1px solid var(--outline); }
.cb-note-copy { font-size:14px; line-height:1.55; color:var(--text-soft); }
.cb-note-copy p { margin:0 0 8px; }
.cb-note-copy .cb-note-greeting { font-family:var(--font-display); font-weight:700; font-size:16px; color:var(--ink); }
.cb-note-signature { font-family:Georgia,serif; font-style:italic; font-size:17px; text-align:right; color:var(--accent); margin:10px 0 0; overflow-wrap:anywhere; }
.cb-note-link { display:block; border-top:1px dotted var(--outline); margin-top:13px; padding-top:10px; text-align:center; font-size:13px; font-weight:600; }
.cb-note-portrait .cb-note-photo { float:none; width:100%; max-width:190px; aspect-ratio:4/3; margin:0 auto 15px; }
.cb-note-portrait .cb-note-copy { text-align:center; }
.cb-note-postcard { border:1px dashed var(--outline); padding:12px; background:var(--paper); }
.cb-note-postcard .cb-note-photo { float:none; width:110px; margin:0 auto 16px; border:6px solid white; border-bottom-width:18px; transform:rotate(-4deg); box-shadow:2px 3px 0 var(--blush); }

.cb-social-link {width:var(--cb-social-size,34px);height:var(--cb-social-size,34px);}
.cb-social-link.cb-social-custom {border:0;background:transparent;}
.cb-social-custom img {width:100%;height:100%;object-fit:contain;display:block;}
.cb-footer__fun {flex:0 1 var(--cb-footer-picture-width,180px);max-width:min(100%,var(--cb-footer-picture-width,180px));}

/* Keep uploaded social images inside their icon bounds. */
.site-footer .cb-social-link { flex:0 0 var(--cb-social-size,34px); max-width:80px; max-height:80px; overflow:hidden; }
.site-footer .cb-social-link img { width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; }

/* Balanced editorial footer */
.cb-footer.cb-footer-editorial {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;align-items:center;text-align:center;}
.cb-footer.cb-footer-no-picture {grid-template-columns:repeat(2,minmax(0,1fr));}
.cb-footer__brand,.cb-footer-editorial .cb-footer__links {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-width:0;}
.cb-footer-art {display:block;width:auto;max-width:min(100%,var(--cb-footer-art-width,140px));height:auto;max-height:200px;object-fit:contain;}
.cb-footer-editorial .cb-footer__fun {width:100%;justify-self:center;max-width:min(100%,var(--cb-footer-picture-width,180px));}
.cb-footer-editorial .cb-social-links {justify-content:center;}
.cb-footer-editorial .footer-nav ul {flex-direction:column;align-items:center;gap:6px;}
.cb-footer-editorial .custom-logo {max-width:100%;height:auto;object-fit:contain;}
.cb-footer-bottom {background:var(--accent);color:var(--on-accent);text-align:center;padding:14px 20px;}
.cb-footer-bottom .cb-copy {color:inherit;letter-spacing:.05em;}
@media(max-width:700px){.cb-footer.cb-footer-editorial,.cb-footer.cb-footer-no-picture {grid-template-columns:minmax(0,1fr);gap:28px;}}

.cb-connect-heading {font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin:0;}
.site-footer .cb-social-link svg {width:65%;height:65%;display:block;}
.site-footer .cb-social-outline {border:0;background:transparent;color:var(--accent)!important;}
.site-footer .cb-social-filled {border:0;background:var(--accent);color:var(--on-accent)!important;}
.site-footer .cb-social-outline:hover,.site-footer .cb-social-filled:hover {opacity:.75;}
.site-footer .footer-nav {display:block;visibility:visible;width:100%;}
.site-footer .footer-nav ul {display:flex;list-style:none;}

/* Curated sidebar browsing */
.cb-browse-heading {display:flex;align-items:center;justify-content:center;gap:9px;text-align:center;}
.cb-sidebar .cb-browse-heading .widget-title {margin:0;color:var(--accent);font-size:23px;line-height:1.15;}
.cb-browse-heading img {width:auto;max-width:58px;max-height:58px;object-fit:contain;}
.cb-browse-intro {text-align:center;font-size:13px;font-style:italic;margin:9px 0 13px;padding-bottom:12px;border-bottom:2px solid var(--sage);}
.cb-genre-links {display:flex;flex-wrap:wrap;justify-content:center;gap:7px;}
.cb-genre-links a {background:var(--blush);color:var(--ink);padding:5px 9px;border-radius:4px;font-size:13px;text-decoration:none;}
.cb-genre-links a:nth-child(even) {background:#dfe8da;}
.cb-genre-links a:hover,.cb-archive-months a:hover {background:var(--accent);color:var(--on-accent);}
.cb-pride-list {display:grid;gap:10px;}
.cb-pride-item {display:flex;align-items:center;gap:10px;font-weight:600;font-size:14px;line-height:1.35;}
.cb-pride-item img {width:85px;aspect-ratio:4/3;object-fit:cover;border-radius:4px;flex-shrink:0;}
.cb-pride-more {display:block;text-align:center;border-top:1px dotted var(--outline);padding-top:10px;margin-top:12px;font-size:13px;}
.cb-archive-fold summary {cursor:pointer;font-size:13px;font-weight:600;padding:7px 9px;background:var(--blush);color:var(--ink);border-radius:4px;}
.cb-archive-years {max-height:250px;overflow:auto;margin-top:7px;display:grid;gap:5px;}
.cb-archive-years summary {background:transparent;border:1px solid var(--outline);}
.cb-archive-all {display:block;font-size:12px;margin:7px 0;}
.cb-archive-months {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-bottom:7px;}
.cb-archive-months a {text-align:center;border:1px solid var(--outline);border-radius:3px;padding:4px;font-size:12px;}

/* Visitor-controlled night mode */
.cb-header {position:relative;}
.cb-mode-toggle {position:absolute;top:12px;right:32px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--outline);border-radius:30px;background:var(--paper);color:var(--accent);padding:7px 11px;min-height:36px;font:inherit;font-size:12px;cursor:pointer;}
.cb-mode-toggle[hidden] {display:none;}
.cb-mode-toggle svg {width:18px;height:18px;}
.cb-mode-toggle .cb-sun,html[data-cb-mode=dark] .cb-mode-toggle .cb-moon {display:none;}
html[data-cb-mode=dark] .cb-mode-toggle .cb-sun {display:block;}
@media(max-width:700px){.cb-header:has(.cb-mode-toggle:not([hidden])){padding-top:56px;}.cb-mode-toggle{right:20px;top:10px;}}
html[data-cb-mode=dark] {color-scheme:dark;--paper:#20191f;--ink:#f5e9ef;--accent:#ff83ad;--text-soft:#cdbdc6;--muted:#c5aebd;--blush:#49323f;--blush-strong:#ffb1ca;--card:#30252e;--line:#59414f;--line-soft:#493641;--outline:#826477;--sage:#a7c2a1;--sidebar-paper:#30252e;--footer-bg:#181217;--footer-text:#f5e9ef;--on-accent:#20191f;--box-line:#826477;--strip:#ff83ad;}
html[data-cb-mode=dark] .cb-sidebar > .widget {background-color:var(--sidebar-paper);background-image:none;}
html[data-cb-mode=dark] :is(input:not([type=submit]):not([type=checkbox]):not([type=radio]),textarea,select,.cb-sidebar .search-field,.cb-sidebar .wp-block-search__input) {background:var(--paper);color:var(--ink);border-color:var(--outline);}
html[data-cb-mode=dark] .cb-genre-links a:nth-child(even) {background:#36483a;}
html[data-cb-mode=dark] :is(.search-submit,.wp-block-search__button,.page-numbers.current) {color:var(--on-accent);}
html[data-cb-mode=dark] .cb-sidebar .tagcloud a,html[data-cb-mode=dark] .cb-sidebar .wp-block-tag-cloud a {background:var(--paper);}
html[data-cb-mode=dark] .cb-mode-toggle:hover {background:var(--blush);}
