/*
Theme Name: Longleaf
Theme URI: https://example.com/longleaf
Author: Stone River Media
Description: A clean, magazine-style history theme for a North Carolina and U.S. history site. Centered logo, topic menus with dropdown panels, a home page with picks, trending, This Day in History, era cards, a places carousel, topic spotlights and a newsletter sign-up. Colors, fonts, homepage sections, newsletter and social links are set in Appearance > Customize. Demo content and images can be added from Appearance > Longleaf Setup.
Version: 2.3.0
Requires at least: 6.2
Tested up to: 6.8
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: longleaf
Tags: blog, news, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   1. Design tokens
   Every color, font and size lives here. The Customizer
   overrides colors and fonts; edit the rest directly.
   ========================================================= */
:root {
	/* Color */
	--ll-bg: #ffffff;           /* page background */
	--ll-alt: #f4f4f2;          /* light gray bands */
	--ll-ink: #141414;          /* text and headlines */
	--ll-muted: #62656a;        /* deks, meta, captions */
	--ll-rule: #e3e3e1;         /* borders and dividers */
	--ll-accent: #a4161a;       /* section label underline, hovers */
	--ll-button: #141414;       /* pill buttons */
	--ll-button-ink: #ffffff;
	--ll-dark: #121212;         /* dark band and footer */
	--ll-dark-ink: #f2f2f0;
	--ll-band-from: #4a0d12;    /* spotlight band gradient */
	--ll-band-to: #121212;
	--ll-highlight: #3b82c4;    /* keyboard focus ring */
	--ll-marker: #1f2a33;       /* historical marker plate */
	--ll-marker-metal: #c9cdd2;

	/* Type */
	--ll-font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
	--ll-font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
	--ll-font-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ll-head-weight: 400;
	--ll-head-stretch: 100%;

	--ll-text-xs: 0.6875rem;   /* 11px labels and pills */
	--ll-text-sm: 0.8125rem;   /* 13px meta */
	--ll-text-md: 0.9375rem;   /* 15px deks */
	--ll-title-sm: 1.0625rem;  /* card titles */
	--ll-title-md: 1.375rem;
	--ll-title-lg: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
	--ll-title-xl: clamp(2rem, 1.4rem + 2.2vw, 2.9rem);

	/* Layout */
	--ll-max: 1180px;
	--ll-gutter: clamp(16px, 3.5vw, 32px);
	--ll-gap: clamp(16px, 2.2vw, 28px);
	--ll-radius: 6px;
	--ll-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.45);
	--ll-shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ll-bg);
	color: var(--ll-ink);
	font-family: var(--ll-font-ui);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ll-accent); }
:focus-visible { outline: 3px solid var(--ll-highlight); outline-offset: 2px; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--ll-font-head);
	font-weight: var(--ll-head-weight);
	font-stretch: var(--ll-head-stretch);
	line-height: 1.18;
	margin: 0 0 0.4em;
	letter-spacing: -0.005em;
}
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; left: 12px; top: 12px; z-index: 100;
	padding: 10px 16px; background: var(--ll-bg);
}

.ll-wrap { width: 100%; max-width: var(--ll-max); margin: 0 auto; padding: 0 var(--ll-gutter); }
.ll-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* =========================================================
   3. Small parts used everywhere
   ========================================================= */

/* Section label: small caps with an accent underline */
.ll-label {
	display: block;
	text-align: center;
	margin: 0 0 22px;
	font-family: var(--ll-font-ui);
	font-size: var(--ll-text-xs);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	line-height: 1;
}
.ll-label span, .ll-label a {
	display: inline-block;
	padding-bottom: 5px;
	border-bottom: 2px solid var(--ll-accent);
}
.ll-label a:hover { color: var(--ll-ink); }
.ll-label--left { text-align: left; }
.ll-label--light { color: var(--ll-dark-ink); }

/* Category pill */
.ll-pill {
	display: inline-block;
	font-family: var(--ll-font-ui);
	font-size: var(--ll-text-xs);
	font-weight: 500;
	line-height: 1;
	padding: 5px 10px;
	border: 1px solid var(--ll-rule);
	border-radius: 999px;
	color: var(--ll-ink);
	background: var(--ll-bg);
	margin-bottom: 8px;
	white-space: nowrap;
}
a.ll-pill:hover { border-color: var(--ll-ink); color: var(--ll-ink); }
.ll-pill--dark { background: rgba(0, 0, 0, 0.55); color: #fff; border-color: transparent; }

/* Buttons */
.ll-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ll-font-ui);
	font-size: var(--ll-text-sm);
	font-weight: 600;
	line-height: 1;
	padding: 11px 18px;
	border-radius: 999px;
	background: var(--ll-button);
	color: var(--ll-button-ink);
	border: 1px solid var(--ll-button);
	cursor: pointer;
	white-space: nowrap;
}
.ll-btn:hover { color: var(--ll-button-ink); opacity: 0.88; }
.ll-btn--ghost { background: transparent; color: var(--ll-ink); border-color: var(--ll-rule); }
.ll-btn--ghost:hover { color: var(--ll-ink); border-color: var(--ll-ink); opacity: 1; }
.ll-btn--light { background: #fff; color: #141414; border-color: #fff; }
.ll-btn--light:hover { color: #141414; }
.ll-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.ll-btn--outline-light:hover { color: #fff; border-color: #fff; opacity: 1; }
.ll-btn--sm { padding: 8px 14px; font-size: var(--ll-text-xs); }

.ll-meta { font-family: var(--ll-font-ui); font-size: var(--ll-text-sm); color: var(--ll-muted); }
.ll-meta a:hover { color: var(--ll-ink); text-decoration: underline; }

/* Image frame with fallback art */
.ll-img {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: var(--ll-radius);
	background: #2a2622;
	aspect-ratio: 3 / 2;
}
.ll-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
a:hover > .ll-img img, a.ll-img:hover img { transform: scale(1.03); }
.ll-img--wide { aspect-ratio: 16 / 9; }
.ll-img--square { aspect-ratio: 1 / 1; }
.ll-img--tall { aspect-ratio: 2 / 3; }
.ll-img--shadow { box-shadow: var(--ll-shadow); }

.ll-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 12px;
	color: #efe6d6;
	background:
		radial-gradient(120% 90% at 30% 20%, rgba(255, 236, 200, 0.18), transparent 60%),
		linear-gradient(160deg, #4a3f33, #1f1b17);
	font-family: var(--ll-font-head);
}
.ll-fallback__big { font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1; letter-spacing: 0.02em; }
.ll-img--square .ll-fallback__big { font-size: 1.2rem; }

/* Cards */
.ll-card { display: flex; flex-direction: column; min-width: 0; }
.ll-card > a:first-child { display: block; margin-bottom: 12px; }
.ll-card__title { font-size: var(--ll-title-sm); font-weight: 500; line-height: 1.3; margin: 0 0 6px; }
.ll-card__dek {
	font-size: var(--ll-text-sm);
	color: var(--ll-muted);
	line-height: 1.45;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ll-card--boxed {
	background: var(--ll-bg);
	border-radius: var(--ll-radius);
	box-shadow: var(--ll-shadow-sm);
	overflow: hidden;
}
.ll-card--boxed > a:first-child { margin: 0; }
.ll-card--boxed .ll-img { border-radius: 0; }
.ll-card--boxed .ll-card__body { padding: 14px 16px 18px; }

/* Media row: small square thumb + text */
.ll-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; }
.ll-row .ll-card__title { font-size: 0.98rem; }
.ll-row--wide { grid-template-columns: 120px minmax(0, 1fr); }
.ll-row--wide .ll-card__title { font-size: 1.05rem; }

/* Grids */
.ll-grid { display: grid; gap: var(--ll-gap); }
.ll-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ll-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ll-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
	.ll-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ll-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.ll-grid--2, .ll-grid--3 { grid-template-columns: 1fr; }
	.ll-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* Sections */
.ll-section { padding: clamp(36px, 5vw, 64px) 0; }
.ll-section--alt { background: var(--ll-alt); }
.ll-section--dark { background: var(--ll-dark); color: var(--ll-dark-ink); }
.ll-section--rule { border-top: 1px solid var(--ll-rule); }
.ll-section__foot { display: flex; justify-content: flex-end; margin-top: 22px; }
.ll-section__bar {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	margin-bottom: 22px;
}
.ll-section__bar .ll-label { margin: 0; }
.ll-section__bar-end { position: absolute; right: 0; display: flex; gap: 10px; align-items: center; }
@media (max-width: 700px) {
	.ll-section__bar { flex-direction: column; gap: 14px; }
	.ll-section__bar-end { position: static; }
}

/* =========================================================
   4. Header
   ========================================================= */
.ll-header { background: var(--ll-bg); border-bottom: 1px solid var(--ll-rule); position: relative; z-index: 30; }
.ll-header__top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
	min-height: 64px;
	padding-top: 8px;
}
.ll-utility ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.ll-utility a { font-size: var(--ll-text-sm); font-weight: 500; }

.ll-logo { display: flex; justify-content: center; text-align: center; }
.ll-logo img { max-height: 54px; width: auto; }
.ll-logo__name {
	display: block;
	font-family: var(--ll-font-head);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	color: var(--ll-ink);
}
.ll-logo__name::after {
	content: "";
	display: block;
	width: 28px;
	height: 2px;
	margin: 8px auto 0;
	background: var(--ll-accent);
}
.ll-logo a:hover .ll-logo__name { color: var(--ll-ink); }

.ll-header__tools { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.ll-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: transparent; cursor: pointer;
}
.ll-icon-btn:hover { background: var(--ll-alt); }
.ll-menu-toggle { display: none; }

/* Topic nav with dropdown panels */
.ll-topnav { display: flex; justify-content: center; }
.ll-topnav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.ll-topnav > ul > li { position: static; }
.ll-topnav > ul > li > a,
.ll-topnav > ul > li > .ll-topnav__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 14px 14px 15px;
	font-size: var(--ll-text-sm);
	font-weight: 500;
	border-bottom: 2px solid transparent;
}
.ll-topnav > ul > li:hover > a,
.ll-topnav > ul > li:focus-within > a,
.ll-topnav .current-menu-item > a,
.ll-topnav .current-menu-ancestor > a { color: var(--ll-ink); border-bottom-color: var(--ll-accent); }
.ll-topnav .ll-caret { width: 10px; height: 10px; opacity: 0.6; }

.ll-mega {
	position: absolute;
	left: 0; right: 0; top: 100%;
	background: var(--ll-bg);
	border-top: 1px solid var(--ll-rule);
	box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.3);
	padding: 28px 0 32px;
	display: none;
}
.ll-topnav li:hover > .ll-mega,
.ll-topnav li:focus-within > .ll-mega,
.ll-topnav li.is-open > .ll-mega { display: block; }
.ll-mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 40px; }
.ll-mega__title { font-family: var(--ll-font-head); font-size: 1.5rem; display: block; margin-bottom: 8px; }
.ll-mega__desc { font-size: var(--ll-text-sm); color: var(--ll-muted); margin-bottom: 14px; }
.ll-mega__links { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 32px; }
.ll-mega__links li { break-inside: avoid; }
.ll-mega__links a { display: block; padding: 6px 0; font-size: var(--ll-text-md); }

.ll-search-panel { border-top: 1px solid var(--ll-rule); padding: 20px 0; background: var(--ll-bg); }
.ll-search-panel[hidden] { display: none; }
.ll-searchform { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; }
.ll-searchform input[type="search"] {
	flex: 1; min-width: 0; font: inherit; font-size: var(--ll-text-md);
	padding: 11px 18px; border: 1px solid var(--ll-rule); border-radius: 999px;
	background: var(--ll-bg); color: var(--ll-ink);
}

@media (max-width: 960px) {
	.ll-header__top { grid-template-columns: auto 1fr auto; min-height: 60px; padding-top: 0; }
	.ll-utility { display: none; }
	.ll-menu-toggle { display: inline-flex; }
	.ll-logo { justify-content: center; }
	.ll-logo__name { font-size: 1.4rem; }
	.ll-logo__name::after { display: none; }
	.ll-header__tools .ll-btn { display: none; }
	.ll-topnav {
		display: none;
		border-top: 1px solid var(--ll-rule);
		padding: 8px 0 20px;
	}
	.ll-topnav.is-open { display: block; }
	.ll-topnav > ul { flex-direction: column; flex-wrap: nowrap; }
	.ll-topnav > ul > li > a, .ll-topnav > ul > li > .ll-topnav__link { padding: 12px 0; font-size: 1rem; border-bottom: 0; }
	.ll-topnav .ll-caret { display: none; }
	.ll-mega { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 14px; }
	.ll-mega .ll-wrap { padding: 0; }
	.ll-mega__inner { display: block; }
	.ll-mega__intro { display: none; }
	.ll-mega__links { columns: 1; }
	.ll-mega__links a { padding: 5px 0; font-size: var(--ll-text-sm); color: var(--ll-muted); }
	.ll-topnav > ul.ll-topnav__utility { display: block; border-top: 1px solid var(--ll-rule); margin-top: 10px; padding-top: 10px; }
}
.ll-topnav__utility { display: none; list-style: none; margin: 0; padding: 0; }
.ll-topnav__utility a { display: block; padding: 8px 0; font-size: var(--ll-text-sm); }

/* =========================================================
   5. Home: lead (picks / featured / trending)
   ========================================================= */
.ll-lead { padding: 32px 0 clamp(40px, 5vw, 64px); }
.ll-lead__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
}
.ll-lead__col { display: grid; gap: 22px; }
.ll-lead__feature { text-align: center; }
.ll-lead__feature h1, .ll-lead__feature h2 { font-size: var(--ll-title-xl); margin: 4px auto 12px; max-width: 18ch; }
.ll-lead__dek { font-size: var(--ll-text-md); color: var(--ll-muted); max-width: 54ch; margin: 0 auto 22px; }
.ll-lead__trending { display: grid; gap: 18px; }
.ll-lead__trending > * + * { padding-top: 18px; border-top: 1px solid var(--ll-rule); }
@media (max-width: 1024px) {
	.ll-lead__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ll-lead__feature { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 600px) {
	.ll-lead__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   6. Home: featured place + This Day in History
   ========================================================= */
.ll-duo { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .ll-duo { grid-template-columns: 1fr; } }

.ll-showcase {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
	border-radius: var(--ll-radius);
	overflow: hidden;
	box-shadow: var(--ll-shadow);
	background: var(--ll-bg);
	min-height: 360px;
}
.ll-showcase__text { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; justify-content: center; }
.ll-showcase__text h2 { font-size: var(--ll-title-md); margin-bottom: 6px; }
.ll-showcase__text .ll-meta { margin-bottom: 12px; }
.ll-showcase__text p { font-size: var(--ll-text-sm); color: var(--ll-muted); }
.ll-showcase__text .ll-btn { align-self: flex-start; margin-top: 8px; }
.ll-showcase .ll-img { border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 260px; }
@media (max-width: 700px) {
	.ll-showcase { grid-template-columns: minmax(0, 1fr); }
	.ll-showcase .ll-img { order: -1; aspect-ratio: 16 / 9; height: auto; }
}

.ll-today .ll-img { position: relative; }
.ll-date-badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: rgba(20, 20, 20, 0.88);
	color: #fff;
	text-align: center;
	border-radius: 4px;
	padding: 6px 10px 7px;
	font-family: var(--ll-font-ui);
	line-height: 1;
	z-index: 2;
}
.ll-date-badge small { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.ll-date-badge strong { font-size: 1.3rem; font-weight: 700; }
.ll-today__year { font-family: var(--ll-font-head); font-size: 1.6rem; margin: 12px 0 2px; }
.ll-today__title { font-size: 1.15rem; font-weight: 500; margin-bottom: 14px; }
.ll-today__list { list-style: none; margin: 0 0 14px; padding: 0; }
.ll-today__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--ll-rule); }
.ll-year-tag {
	display: inline-block;
	background: var(--ll-ink);
	color: var(--ll-bg);
	font-size: var(--ll-text-xs);
	font-weight: 700;
	padding: 4px 7px;
	border-radius: 3px;
	line-height: 1;
}
.ll-today__list a { font-family: var(--ll-font-head); font-size: 0.98rem; line-height: 1.3; }
.ll-today__note { font-size: var(--ll-text-xs); color: var(--ll-muted); margin: 6px 0 0; }

/* =========================================================
   7. Home: era cards (image over dark caption)
   ========================================================= */
.ll-tile {
	display: flex;
	flex-direction: column;
	border-radius: var(--ll-radius);
	overflow: hidden;
	background: #1b1b1b;
	color: #fff;
	box-shadow: var(--ll-shadow-sm);
	height: 100%;
}
.ll-tile .ll-img { border-radius: 0; aspect-ratio: 4 / 3; }
.ll-tile__body { padding: 12px 14px 16px; flex: 1; }
.ll-tile__title { font-family: var(--ll-font-ui); font-size: 1.02rem; font-weight: 600; margin: 0 0 4px; line-height: 1.25; }
.ll-tile__text { font-size: var(--ll-text-xs); color: rgba(255, 255, 255, 0.75); margin: 0; line-height: 1.4; }
.ll-tile:hover { color: #fff; }
.ll-tile:hover .ll-tile__title { text-decoration: underline; }

/* =========================================================
   8. Home: dark carousel (places)
   ========================================================= */
.ll-carousel { position: relative; }
.ll-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 5 * 14px) / 6);
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.ll-carousel__track::-webkit-scrollbar { display: none; }
@media (max-width: 1024px) { .ll-carousel__track { grid-auto-columns: calc((100% - 3 * 14px) / 4); } }
@media (max-width: 640px) { .ll-carousel__track { grid-auto-columns: 62%; } }
.ll-poster { scroll-snap-align: start; position: relative; display: block; color: #fff; }
.ll-poster .ll-img { aspect-ratio: 2 / 3; }
.ll-poster .ll-img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.88) 100%);
}
.ll-poster__badge {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	background: var(--ll-accent); color: #fff;
	font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	padding: 4px 7px; border-radius: 3px;
}
.ll-poster__text { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; }
.ll-poster__title { font-family: var(--ll-font-head); font-size: 1.15rem; line-height: 1.15; margin: 0 0 4px; }
.ll-poster__where { font-size: var(--ll-text-xs); opacity: 0.8; }
.ll-poster:hover { color: #fff; }
.ll-carousel__btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 50%;
	border: 0; background: #fff; color: #141414; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: var(--ll-shadow-sm); z-index: 3;
}
.ll-carousel__btn--prev { left: -18px; }
.ll-carousel__btn--next { right: -18px; }
.ll-carousel__btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 700px) { .ll-carousel__btn { display: none; } }

/* =========================================================
   9. Home: topic spotlight
   ========================================================= */
.ll-spotlight { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ll-spotlight__main { text-align: center; }
.ll-spotlight__main h2 { font-size: var(--ll-title-lg); margin: 4px auto 10px; max-width: 20ch; }
.ll-spotlight__main p { font-size: var(--ll-text-md); color: var(--ll-muted); max-width: 52ch; margin: 0 auto 22px; }
.ll-spotlight__list { display: grid; gap: 20px; }
.ll-spotlight__list > * + * { padding-top: 20px; border-top: 1px solid var(--ll-rule); }
@media (max-width: 900px) { .ll-spotlight { grid-template-columns: 1fr; } }

/* =========================================================
   10. Home: gradient band
   ========================================================= */
.ll-band {
	background: linear-gradient(110deg, var(--ll-band-to) 0%, var(--ll-band-from) 55%, var(--ll-band-to) 100%);
	color: #fff;
	padding: clamp(36px, 5vw, 56px) 0;
}
.ll-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.ll-band__title {
	font-family: var(--ll-font-head);
	font-style: italic;
	font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
	line-height: 0.95;
	margin: 0 0 14px;
	color: #f3e3c3;
}
.ll-band__intro p { font-size: var(--ll-text-sm); opacity: 0.85; }
.ll-band .ll-card--boxed { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.ll-band .ll-card__title { color: #fff; }
.ll-band .ll-card__dek { color: rgba(255, 255, 255, 0.7); }
.ll-band .ll-pill { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.ll-band a:hover .ll-card__title { color: #f3e3c3; }
@media (max-width: 900px) { .ll-band__grid { grid-template-columns: 1fr; } }

/* =========================================================
   11. Newsletter
   ========================================================= */
.ll-signup {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	border: 1px solid var(--ll-rule);
	border-radius: var(--ll-radius);
	overflow: hidden;
	background: var(--ll-alt);
}
.ll-signup__text { padding: clamp(28px, 5vw, 56px); text-align: center; align-self: center; }
.ll-signup__text h2 { font-size: var(--ll-title-lg); margin-bottom: 10px; }
.ll-signup__text p { color: var(--ll-muted); font-size: var(--ll-text-md); max-width: 46ch; margin: 0 auto 20px; }
.ll-signup form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.ll-signup input[type="email"] {
	flex: 1; min-width: 0; font: inherit; font-size: var(--ll-text-sm);
	padding: 11px 18px; border: 1px solid var(--ll-rule); border-radius: 999px; background: #fff;
}
.ll-signup__fine { font-size: var(--ll-text-xs) !important; margin-top: 14px !important; margin-bottom: 0 !important; }
.ll-signup .ll-img { border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 280px; }
@media (max-width: 800px) {
	.ll-signup { grid-template-columns: 1fr; }
	.ll-signup .ll-img { min-height: 200px; order: -1; }
	.ll-signup form { flex-direction: column; }
}

/* =========================================================
   12. Topic / archive pages
   ========================================================= */
.ll-page-head { text-align: center; padding: clamp(36px, 5vw, 60px) 0 clamp(24px, 3vw, 36px); }
.ll-page-head h1 { font-size: var(--ll-title-xl); margin: 6px auto 12px; max-width: 22ch; }
.ll-page-head__desc { color: var(--ll-muted); font-size: 1.02rem; max-width: 60ch; margin: 0 auto; }
.ll-page-head__desc p:last-child { margin-bottom: 0; }
.ll-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.ll-chips a {
	font-size: var(--ll-text-sm); font-weight: 500; padding: 7px 14px;
	border: 1px solid var(--ll-rule); border-radius: 999px;
}
.ll-chips a:hover, .ll-chips a[aria-current="page"] { background: var(--ll-ink); color: var(--ll-bg); border-color: var(--ll-ink); }

.ll-feature-row {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 44px);
	align-items: center;
	padding-bottom: clamp(32px, 4vw, 48px);
	margin-bottom: clamp(32px, 4vw, 48px);
	border-bottom: 1px solid var(--ll-rule);
}
.ll-feature-row h2 { font-size: var(--ll-title-lg); margin-bottom: 10px; }
.ll-feature-row p { color: var(--ll-muted); }
@media (max-width: 800px) { .ll-feature-row { grid-template-columns: 1fr; } }

.ll-pagination { margin: 48px 0 0; display: flex; justify-content: center; }
.ll-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.ll-pagination .page-numbers {
	min-width: 40px; text-align: center; padding: 9px 14px; border-radius: 999px;
	border: 1px solid var(--ll-rule); font-size: var(--ll-text-sm);
}
.ll-pagination .current { background: var(--ll-ink); color: var(--ll-bg); border-color: var(--ll-ink); }
.ll-empty { text-align: center; color: var(--ll-muted); padding: 24px 0 48px; }
.ll-spacer { height: clamp(48px, 6vw, 80px); }

/* =========================================================
   13. Article
   ========================================================= */
.ll-article__head { text-align: center; padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.ll-article__head h1 { font-size: var(--ll-title-xl); max-width: 22ch; margin: 6px auto 14px; }
.ll-article__dek { font-family: var(--ll-font-body); font-size: 1.15rem; color: var(--ll-muted); max-width: 58ch; margin: 0 auto 18px; line-height: 1.5; }
.ll-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.ll-article__media { max-width: 1000px; margin: 0 auto clamp(28px, 4vw, 44px); }
.ll-article__media .ll-img { aspect-ratio: 16 / 9; }
.ll-article__media figcaption { margin-top: 8px; font-size: var(--ll-text-xs); color: var(--ll-muted); }
.ll-article__media figcaption a { text-decoration: underline; }

.ll-prose {
	font-family: var(--ll-font-body);
	font-size: 1.16rem;
	line-height: 1.75;
	max-width: 700px;
	margin: 0 auto;
}
.ll-prose a { color: var(--ll-accent); text-decoration: underline; text-underline-offset: 3px; }
.ll-prose h2 { font-size: 1.75rem; margin: 1.6em 0 0.5em; }
.ll-prose h3 { font-size: 1.35rem; margin: 1.4em 0 0.4em; }
.ll-prose blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 3px solid var(--ll-accent); font-size: 1.3rem; font-style: italic; }
.ll-prose ul, .ll-prose ol { padding-left: 1.3em; }
.ll-prose img { border-radius: var(--ll-radius); }
.ll-prose figcaption, .wp-element-caption { font-family: var(--ll-font-ui); font-size: var(--ll-text-xs); color: var(--ll-muted); }

.ll-facts {
	max-width: 700px;
	margin: 0 auto 32px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	border-top: 1px solid var(--ll-ink);
	border-bottom: 1px solid var(--ll-rule);
	font-family: var(--ll-font-ui);
}
.ll-facts div { padding: 12px 0; }
.ll-facts dt { font-size: var(--ll-text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ll-muted); margin-bottom: 3px; }
.ll-facts dd { margin: 0; font-size: var(--ll-text-md); font-weight: 500; }
.ll-facts a { text-decoration: underline; }

.ll-endmatter { max-width: 700px; margin: 40px auto 0; display: grid; gap: 28px; }
.ll-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ll-cite {
	border: 1px solid var(--ll-rule);
	border-radius: var(--ll-radius);
	padding: 20px 22px;
	font-size: var(--ll-text-sm);
}
.ll-cite h2 { font-family: var(--ll-font-ui); font-size: var(--ll-text-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 12px; }
.ll-cite dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; }
.ll-cite dt { color: var(--ll-muted); }
.ll-cite dd { margin: 0; overflow-wrap: anywhere; }
.ll-cite p { color: var(--ll-muted); margin: 14px 0 0; font-size: var(--ll-text-xs); }

/* Historical marker (optional) */
.ll-marker {
	background: var(--ll-marker); color: var(--ll-marker-metal);
	border-radius: 6px; padding: 6px; text-align: center; font-family: var(--ll-font-ui);
	max-width: 380px; margin: 0 auto;
}
.ll-marker__inner { border: 2px solid var(--ll-marker-metal); border-radius: 3px; padding: 16px 18px; }
.ll-marker__year { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.ll-marker__title { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin: 8px 0 6px; }
.ll-marker__text { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.35; margin: 0; }
.ll-marker__place { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(201, 205, 210, 0.4); font-size: 0.75rem; opacity: 0.85; }

.ll-postnav { max-width: 700px; margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 22px; border-top: 1px solid var(--ll-rule); }
.ll-postnav span { display: block; }
.ll-postnav__title { font-family: var(--ll-font-head); font-size: 1.08rem; margin-top: 4px; line-height: 1.3; }
.ll-postnav__next { text-align: right; }

/* Pages */
.ll-page .ll-prose { padding-bottom: 72px; }

/* Places */
.ll-visit {
	max-width: 700px; margin: 0 auto 32px; display: grid; gap: 16px;
	grid-template-columns: minmax(0, 1fr) auto; align-items: center;
	border: 1px solid var(--ll-rule); border-radius: var(--ll-radius); padding: 18px 22px;
}
.ll-visit dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 24px; }
.ll-visit dt { font-size: var(--ll-text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ll-muted); }
.ll-visit dd { margin: 0; font-weight: 500; font-size: var(--ll-text-md); }
.ll-visit dd a { text-decoration: underline; }
@media (max-width: 600px) { .ll-visit { grid-template-columns: 1fr; } }
.ll-region { margin-bottom: clamp(40px, 5vw, 64px); }
.ll-region__head { text-align: center; margin-bottom: 26px; }
.ll-region__head h2 { font-size: var(--ll-title-lg); margin-bottom: 6px; }
.ll-region__head p { color: var(--ll-muted); max-width: 56ch; margin: 0 auto; }

/* Timeline and This Day */
.ll-timeline { list-style: none; margin: 0 auto 72px; padding: 0; max-width: 900px; }
.ll-timeline__era { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--ll-rule); }
.ll-timeline__era:first-child { border-top: 0; }
.ll-timeline__years { font-family: var(--ll-font-head); font-size: 1.4rem; color: var(--ll-accent); line-height: 1.2; }
.ll-timeline__era h2 { font-size: var(--ll-title-md); margin-bottom: 6px; }
.ll-timeline__desc { color: var(--ll-muted); }
@media (max-width: 700px) { .ll-timeline__era { grid-template-columns: 1fr; gap: 8px; } }

.ll-yearlist { list-style: none; margin: 14px 0 0; padding: 0; }
.ll-yearlist li { border-top: 1px solid var(--ll-rule); }
.ll-yearlist a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; }
.ll-yearlist__title { font-family: var(--ll-font-head); font-size: 1.05rem; line-height: 1.3; }
.ll-yearlist small { display: block; font-size: var(--ll-text-xs); color: var(--ll-muted); }

.ll-month { max-width: 900px; margin: 0 auto 40px; }
.ll-month h2 { font-size: var(--ll-title-md); padding-bottom: 8px; border-bottom: 2px solid var(--ll-ink); }
.ll-month .ll-yearlist a { grid-template-columns: 90px 64px minmax(0, 1fr); }
.ll-month__day { font-family: var(--ll-font-ui); font-size: var(--ll-text-sm); font-weight: 600; }
.ll-month .is-today { background: var(--ll-alt); }

/* =========================================================
   14. Footer
   ========================================================= */
.ll-footer { background: var(--ll-dark); color: rgba(242, 242, 240, 0.78); padding: 56px 0 28px; font-size: var(--ll-text-sm); }
.ll-footer a:hover { color: #fff; text-decoration: underline; }
.ll-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: var(--ll-gap); }
.ll-footer__name { font-family: var(--ll-font-head); font-size: 1.6rem; font-weight: 600; color: #fff; display: inline-block; margin-bottom: 10px; }
.ll-footer__name img { max-height: 48px; width: auto; }
.ll-footer__about { max-width: 38ch; }
.ll-footer h2 { font-family: var(--ll-font-ui); font-size: var(--ll-text-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.ll-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ll-social { display: flex; gap: 14px; margin-top: 18px; }
.ll-social a { color: #fff; opacity: 0.85; }
.ll-social svg { width: 18px; height: 18px; }
.ll-footer__bottom {
	margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--ll-text-xs);
}
@media (max-width: 700px) {
	.ll-footer__grid { grid-template-columns: 1fr 1fr; }
	.ll-footer__grid > :first-child { grid-column: 1 / -1; }
}

/* =========================================================
   15. Comments and WordPress core classes
   ========================================================= */
.ll-comments { max-width: 700px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--ll-rule); font-size: var(--ll-text-md); }
.ll-comments h2, .ll-comments .comment-reply-title { font-size: var(--ll-title-md); }
.ll-comments ol { list-style: none; padding: 0; }
.ll-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--ll-rule); }
.ll-comments .children { padding-left: 24px; }
.ll-comments textarea, .ll-comments input[type="text"], .ll-comments input[type="email"], .ll-comments input[type="url"] {
	width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--ll-rule); border-radius: var(--ll-radius); background: var(--ll-bg);
}
.ll-comments .submit { background: var(--ll-button); color: var(--ll-button-ink); border: 0; padding: 11px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.alignleft { float: left; margin: 0.4em 1.4em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.ll-showcase__media { display: block; }
.ll-section--after { margin-top: clamp(40px, 6vw, 64px); }
.ll-showcase__media { height: 100%; }
.ll-topnav > ul.ll-topnav__utility { display: none; }
@media (max-width: 960px) { .ll-topnav > ul.ll-topnav__utility { display: block; } }
.ll-tile__title, .ll-tile__text { display: block; }
.ll-poster__title, .ll-poster__where { display: block; }
.ll-duo > div:first-child { display: flex; flex-direction: column; }
.ll-duo .ll-showcase { flex: 1; }
.ll-lead__feature h1 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.6rem); }
.ll-row .ll-card__title { font-size: 0.97rem; }
.ll-duo { align-items: stretch; }
.ll-duo > * , .ll-showcase { min-width: 0; }
@media (max-width: 960px) { .ll-duo { grid-template-columns: minmax(0, 1fr); } }
.ll-showcase__media { min-width: 0; }
.ll-showcase .ll-img { width: 100%; }
@media (max-width: 700px) { .ll-showcase__media { order: -1; } }

/* Home: "More to explore" topic blocks */
.ll-topic-block {
	background: var(--ll-bg);
	border-radius: var(--ll-radius);
	box-shadow: var(--ll-shadow-sm);
	padding: 18px 18px 16px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.ll-topic-block__name {
	font-family: var(--ll-font-ui);
	font-size: var(--ll-text-xs);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	margin: 0 0 14px;
}
.ll-topic-block__name a { padding-bottom: 4px; border-bottom: 2px solid var(--ll-accent); }
.ll-topic-block__lead { display: block; margin-bottom: 6px; }
.ll-topic-block__lead .ll-img { margin-bottom: 10px; }
.ll-topic-block__lead .ll-card__title { display: block; font-family: var(--ll-font-head); font-size: 1.1rem; }
.ll-topic-block__link {
	display: block;
	font-family: var(--ll-font-head);
	font-size: 0.98rem;
	line-height: 1.35;
	padding: 10px 0;
	border-top: 1px solid var(--ll-rule);
}
.ll-topic-block__more { margin-top: auto; padding-top: 10px; font-size: var(--ll-text-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ll-section--rule + .ll-section--rule { border-top: 1px solid var(--ll-rule); }

/* =========================================================
   16. Team, author box, author page
   ========================================================= */
.ll-team {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin: 1.4em 0 0.6em;
	font-family: var(--ll-font-ui);
}
.ll-author {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 22px;
	background: var(--ll-alt);
	border-radius: var(--ll-radius);
}
.ll-prose .ll-author a { color: inherit; text-decoration: none; }
.ll-author__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; }
.ll-author__name { font-family: var(--ll-font-head); font-size: 1.3rem !important; margin: 0 0 2px !important; }
.ll-author__name a:hover { color: var(--ll-accent); }
.ll-author__title { font-size: var(--ll-text-sm); color: var(--ll-accent); font-weight: 600; margin: 0 0 10px; }
.ll-author__bio { font-size: var(--ll-text-md); line-height: 1.55; margin: 0 0 10px; }
.ll-author__exp { font-size: var(--ll-text-sm); color: var(--ll-muted); margin: 0 0 8px; }
.ll-author__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: var(--ll-text-sm); font-family: var(--ll-font-ui); }
.ll-author__links a { text-decoration: underline !important; text-underline-offset: 3px; color: var(--ll-ink); }

.ll-authorbox {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	padding: 22px;
	border: 1px solid var(--ll-rule);
	border-radius: var(--ll-radius);
	font-family: var(--ll-font-ui);
}
.ll-authorbox__label { font-size: var(--ll-text-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ll-muted); margin: 0 0 4px; }
.ll-authorbox__name { font-family: var(--ll-font-head); font-size: 1.25rem; margin: 0 0 8px; }
.ll-authorbox__name span { display: block; font-family: var(--ll-font-ui); font-size: var(--ll-text-sm); color: var(--ll-accent); font-weight: 600; margin-top: 2px; }
.ll-authorbox__bio { font-size: var(--ll-text-md); margin: 0 0 8px; }
@media (max-width: 520px) { .ll-authorbox { grid-template-columns: 1fr; } }

.ll-author-head { display: flex; justify-content: center; margin-bottom: 14px; }
.ll-author-head .ll-author__photo { width: 120px; height: 120px; }
.ll-page-head .ll-author__title { margin-top: -4px; }
.ll-page-head .ll-author__links { justify-content: center; margin-top: 14px; }

/* =========================================================
   17. Contact form
   ========================================================= */
.ll-contact { margin: 1.6em 0; font-family: var(--ll-font-ui); }
.ll-form { display: grid; gap: 16px; padding: clamp(18px, 3vw, 28px); background: var(--ll-alt); border-radius: var(--ll-radius); }
.ll-form p { margin: 0; }
.ll-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .ll-form__row { grid-template-columns: 1fr; } }
.ll-field label { display: block; font-size: var(--ll-text-sm); font-weight: 600; margin-bottom: 6px; }
.ll-field input, .ll-field select, .ll-field textarea {
	width: 100%;
	font: inherit;
	font-size: var(--ll-text-md);
	color: var(--ll-ink);
	background: var(--ll-bg);
	border: 1px solid var(--ll-rule);
	border-radius: var(--ll-radius);
	padding: 11px 14px;
}
.ll-field textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.ll-field input:focus, .ll-field select:focus, .ll-field textarea:focus { border-color: var(--ll-ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ll-highlight) 30%, transparent); }
.ll-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ll-form__foot .ll-meta a { color: var(--ll-ink); }
.ll-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ll-notice { padding: 14px 18px; border-radius: var(--ll-radius); font-size: var(--ll-text-md); margin: 0 0 16px; }
.ll-notice--ok { background: #edf7ef; color: #1e5b2b; border: 1px solid #b9dfc1; }
.ll-notice--error { background: #fcf0f0; color: #8a1f1f; border: 1px solid #f0c3c3; }
.ll-contact-email { font-family: var(--ll-font-ui); font-size: var(--ll-text-md); }
.ll-admin-hint { font-family: var(--ll-font-ui); font-size: var(--ll-text-sm); padding: 12px 16px; border: 1px dashed var(--ll-accent); border-radius: var(--ll-radius); color: var(--ll-muted); }
.ll-prose ul { margin: 0 0 1.1em; }
.ll-author .ll-author__photo, .ll-authorbox .ll-author__photo, .ll-author-head .ll-author__photo { border-radius: 50%; width: 96px; height: 96px; object-fit: cover; }
.ll-author-head .ll-author__photo { width: 120px !important; height: 120px !important; }
.ll-authorbox .ll-author__photo { width: 80px !important; height: 80px !important; }
.ll-author__initials {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: var(--ll-ink);
	color: var(--ll-bg);
	font-family: var(--ll-font-head);
	font-size: 1.6rem;
	letter-spacing: 0.02em;
}
.ll-author-head .ll-author__initials { font-size: 2.2rem; }
.ll-authorbox .ll-author__initials { font-size: 1.3rem; }
.ll-team .ll-author__img { display: block; }

/* =========================================================
   18. Logo sizes, header social icons, top-links dropdown
   ========================================================= */
.ll-logo .custom-logo-link { display: block; line-height: 0; }
.ll-logo img, .ll-logo .custom-logo { height: var(--ll-logo-h, 54px); width: auto; max-height: none; max-width: min(420px, 60vw); object-fit: contain; }
.ll-logo__name { font-size: var(--ll-title-size, 28px); }
@media (max-width: 960px) {
	.ll-logo img, .ll-logo .custom-logo { height: var(--ll-logo-h-m, 40px); max-width: 52vw; }
	.ll-logo__name { font-size: calc(var(--ll-title-size, 28px) * 0.8); }
}

.ll-footer__logo { height: var(--ll-footer-logo-h, 48px); width: auto; max-width: 100%; display: block; object-fit: contain; }
.ll-footer__name:hover { text-decoration: none !important; }

.ll-social--header { display: flex; align-items: center; gap: 4px; margin: 0 6px 0 0; }
.ll-social--header a { color: var(--ll-ink); opacity: 0.75; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; }
.ll-social--header a:hover { opacity: 1; color: var(--ll-accent); background: var(--ll-alt); }
.ll-social--header svg { width: 16px; height: 16px; }
.ll-social--menu { display: none; }
@media (max-width: 960px) {
	.ll-social--header { display: none; }
	.ll-topnav.is-open .ll-social--menu { display: flex; gap: 16px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--ll-rule); }
	.ll-social--menu a { color: var(--ll-ink); }
	.ll-social--menu svg { width: 20px; height: 20px; }
}

/* Top links: an item with sub-items opens a small dropdown */
.ll-utility > ul > li { position: relative; }
.ll-utility .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 6px; }
.ll-utility .menu-item-has-children > a::after {
	content: "";
	width: 6px; height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: 0.6;
}
.ll-utility .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: -14px;
	z-index: 40;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--ll-bg);
	border: 1px solid var(--ll-rule);
	border-radius: var(--ll-radius);
	box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.3);
}
.ll-utility > ul > li:hover > .sub-menu,
.ll-utility > ul > li:focus-within > .sub-menu,
.ll-utility > ul > li.is-open > .sub-menu { display: block; }
.ll-utility > ul > li > a { padding: 10px 0; }
.ll-utility .sub-menu a { display: block; padding: 8px 12px; border-radius: 4px; white-space: nowrap; font-size: var(--ll-text-sm); }
.ll-utility .sub-menu a:hover { background: var(--ll-alt); color: var(--ll-ink); }
.ll-utility .sub-menu .current-menu-item > a { color: var(--ll-accent); }
@media (max-width: 960px) {
	.ll-topnav__utility .sub-menu { list-style: none; margin: 0 0 6px; padding: 0 0 0 14px; }
	.ll-topnav__utility .sub-menu a { color: var(--ll-muted); padding: 5px 0; }
}
.ll-utility > ul { align-items: center; }
.ll-utility > ul > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; }
@media (max-width: 960px) {
	.ll-topnav { padding-left: var(--ll-gutter); padding-right: var(--ll-gutter); }
}
