/*
Theme Name: Movie News
Theme URI: https://example.com/
Author: Site Owner
Description: Responsive movie news, reviews and streaming-guide theme with working mobile navigation, native WordPress search, category archives, single articles, ad slots and a table of contents.
Version: 1.0.0
Requires at least: 6.3
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: movie-news
*/

/* =========================================================================
   1. Tokens & reset
   ====================================================================== */
:root {
	--c-bg: #f5f6f8;
	--c-surface: #fff;
	--c-text: #1b1c22;
	--c-muted: #5d6270;
	--c-accent: #c8102e;
	--c-accent-d: #9d0c24;
	--c-dark: #14151b;
	--c-border: #e3e5ea;
	--radius: 10px;
	--shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .05);
	--header-h: 64px;
	--container: 1280px;
	--sidebar: 300px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-bg);
	overflow-x: hidden;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-accent); text-underline-offset: 2px; }
a:hover { color: var(--c-accent-d); }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; overflow-wrap: anywhere; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	background: #fff; color: #000; padding: .8rem 1.2rem; z-index: 100000;
	top: 8px; left: 8px; border-radius: 6px; box-shadow: var(--shadow);
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }

/* =========================================================================
   2. Header, navigation & search
   ====================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 1000;
	background: var(--c-dark); color: #fff;
}
.header-inner {
	display: flex; flex-wrap: wrap; align-items: center;
	min-height: var(--header-h); gap: 8px;
}
.site-branding { flex: 1 1 auto; min-width: 0; }
.site-title { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.site-title a { color: #fff; text-decoration: none; display: inline-block; padding: 8px 0; }
.site-description { margin: 0; font-size: .75rem; color: #b9bcc7; }
.custom-logo-link img { max-height: 44px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 4px; position: relative; z-index: 2; }
.search-toggle, .menu-toggle {
	width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 0; color: #fff; cursor: pointer; border-radius: 8px; padding: 0;
}
.search-toggle:hover, .menu-toggle:hover { background: rgba(255, 255, 255, .12); }
.search-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.hamburger, .hamburger::before, .hamburger::after {
	display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
	transition: transform .25s ease, background .25s ease, top .25s ease;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Primary nav: no-JS = stacked list under the header bar */
.primary-nav { flex: 1 1 100%; order: 3; padding-bottom: 8px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a {
	display: flex; align-items: center; min-height: 44px; padding: 10px 16px;
	color: #fff; text-decoration: none; font-weight: 600;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-cat > a { color: #ff6b81; }
.primary-nav li { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.primary-nav li > a { flex: 1 1 auto; }
.primary-nav .sub-menu { flex: 1 1 100%; background: rgba(255, 255, 255, .06); }
.primary-nav .sub-menu a { padding-left: 32px; font-weight: 500; }
.submenu-toggle {
	width: 44px; height: 44px; flex: 0 0 44px; background: transparent; border: 0; color: #fff; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.submenu-toggle::before {
	content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.submenu-toggle[aria-expanded="true"]::before { transform: rotate(-135deg) translate(-2px, -2px); }

/* JS enhanced: off-canvas mobile menu */
.js .primary-nav {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 1;
	background: var(--c-dark); padding: calc(var(--header-h) + 8px) 0 32px; overflow-y: auto;
	overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	transform: translateX(100%); visibility: hidden;
	transition: transform .3s ease, visibility 0s linear .3s;
	box-shadow: -8px 0 24px rgba(0, 0, 0, .35);
}
.js .nav-open .primary-nav { transform: none; visibility: visible; transition: transform .3s ease; }
.js .primary-nav .sub-menu { display: none; }
.js .primary-nav li.is-open > .sub-menu { display: block; }

.nav-overlay {
	position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 999;
	opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.nav-overlay.is-active { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.nav-open, .nav-open body { overflow: hidden; }

/* Search panel */
.search-panel { background: #1f212b; border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 12px; }
.js .search-panel {
	max-height: 0; padding-block: 0; overflow: hidden; visibility: hidden; border-top-color: transparent;
	transition: max-height .25s ease, padding .25s ease, visibility 0s linear .25s;
}
.js .search-panel.is-open {
	max-height: 120px; padding-block: 12px; visibility: visible; border-top-color: rgba(255, 255, 255, .08);
	transition: max-height .25s ease, padding .25s ease;
}

.search-form { display: flex; width: 100%; max-width: 640px; margin-inline: auto; }
.search-form input[type="search"] {
	flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 1rem;
	border: 2px solid var(--c-border); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
	background: #fff; color: var(--c-text);
}
.search-form .search-submit {
	flex: 0 0 auto; min-width: 48px; min-height: 44px; padding: 0 14px; cursor: pointer;
	background: var(--c-accent); color: #fff; border: 2px solid var(--c-accent);
	border-radius: 0 var(--radius) var(--radius) 0; display: inline-flex; align-items: center; justify-content: center;
}
.search-form .search-submit:hover { background: var(--c-accent-d); border-color: var(--c-accent-d); }
.search-form .search-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Desktop navigation */
@media (min-width: 1024px) {
	.menu-toggle, .nav-overlay { display: none; }
	.nav-open, .nav-open body { overflow: visible; }
	.header-inner { flex-wrap: nowrap; gap: 16px; }
	.site-branding { flex: 0 0 auto; }

	.primary-nav, .js .primary-nav {
		position: static; order: 0; flex: 1 1 auto; width: auto; padding: 0; overflow: visible;
		background: transparent; transform: none; visibility: visible; box-shadow: none; transition: none;
	}
	.primary-nav > ul, .primary-nav > .menu { display: flex; flex-wrap: wrap; justify-content: center; }
	.primary-nav li { flex-wrap: nowrap; }
	.primary-nav li > a { flex: 0 1 auto; padding: 10px 12px; font-size: .95rem; }
	.submenu-toggle { width: 28px; flex-basis: 28px; margin-left: -10px; }

	.primary-nav .sub-menu, .js .primary-nav .sub-menu {
		display: none; position: absolute; top: 100%; left: 0; min-width: 230px; z-index: 5;
		background: #1f212b; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 6px 0;
	}
	.primary-nav .sub-menu a { padding-left: 16px; }
	.primary-nav li.menu-item-has-children:hover > .sub-menu,
	.primary-nav li.menu-item-has-children:focus-within > .sub-menu,
	.js .primary-nav li.is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu li { display: block; }
	.primary-nav .sub-menu .sub-menu { left: 100%; top: 0; }

	.js .search-panel { position: absolute; left: 0; right: 0; }
	.site-header { position: sticky; }
}

/* =========================================================================
   3. Layout
   ====================================================================== */
.layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding-block: 20px 40px; }
.content-area { min-width: 0; }
.sidebar { display: none; min-width: 0; }

@media (min-width: 1100px) {
	.layout.has-sidebar { grid-template-columns: minmax(0, 1fr) var(--sidebar); }
	.sidebar { display: block; }
	.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 16px); }
}

.breadcrumbs { font-size: .85rem; color: var(--c-muted); margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: #9aa0ad; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs li { overflow-wrap: anywhere; min-width: 0; }

.archive-header, .search-header { margin-bottom: 24px; }
.archive-title, .page-title { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: .3em; }
.archive-description { color: var(--c-muted); max-width: 70ch; }
.archive-description p:last-child { margin-bottom: 0; }
.search-header .search-form { margin-inline: 0; margin-top: 12px; }
.result-count { color: var(--c-muted); margin: .5em 0 0; }

.section-title { font-size: 1.25rem; margin: 28px 0 14px; padding-left: 12px; border-left: 4px solid var(--c-accent); }

/* =========================================================================
   4. Cards
   ====================================================================== */
.card-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
	display: flex; flex-direction: column; min-width: 0; background: var(--c-surface);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.card-media { display: block; aspect-ratio: 16 / 9; background: #dfe2e8; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #2a2c38, #14151b); }
.card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px 16px 16px; gap: 6px; }
.cat-label {
	align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
	color: #fff; background: var(--c-accent); padding: 3px 9px; border-radius: 99px; text-decoration: none;
}
.cat-label:hover { background: var(--c-accent-d); color: #fff; }
.card-title { font-size: 1.1rem; margin: 2px 0 0; }
.card-title a { color: var(--c-text); text-decoration: none; }
.card-title a:hover { color: var(--c-accent); }
.card-excerpt { color: var(--c-muted); font-size: .94rem; margin: 0; }
.card-meta {
	margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center;
	justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--c-muted);
}
.read-more { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.read-more:hover { text-decoration: underline; }

.card--featured { margin-bottom: 24px; }
.card--featured .card-media { aspect-ratio: 16 / 9; }
.card--featured .card-title { font-size: clamp(1.4rem, 4vw, 2rem); }
.card--featured .card-excerpt { font-size: 1.02rem; }
@media (min-width: 768px) {
	.card--featured { flex-direction: row; }
	.card--featured .card-media { flex: 0 0 55%; aspect-ratio: auto; min-height: 280px; }
	.card--featured .card-body { padding: 24px; justify-content: center; }
}

.empty-state { background: var(--c-surface); padding: 32px 20px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.empty-state .search-form { margin-top: 16px; }

/* Pagination */
.pagination { margin: 32px 0 0; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
	padding: 0 12px; background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border);
	border-radius: 8px; text-decoration: none; font-weight: 600;
}
.pagination a.page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination .page-numbers.current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.pagination .dots { border: 0; background: transparent; }

/* =========================================================================
   5. Sidebar & ads
   ====================================================================== */
.widget { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 20px; overflow: hidden; }
.widget-title { font-size: 1.05rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--c-accent); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--c-border); overflow-wrap: anywhere; }
.widget li:last-child { border-bottom: 0; }

.recent-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.recent-thumb { display: block; width: 72px; aspect-ratio: 4 / 3; background: #dfe2e8; border-radius: 6px; overflow: hidden; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-title { font-weight: 600; font-size: .92rem; line-height: 1.35; color: var(--c-text); text-decoration: none; display: block; }
.recent-title:hover { color: var(--c-accent); }
.recent-date { font-size: .78rem; color: var(--c-muted); }

.ad-slot { max-width: 100%; overflow: hidden; margin: 24px auto; text-align: center; min-height: 50px; }
.ad-slot > * { max-width: 100%; }
.ad-slot ins, .ad-slot iframe, .ad-slot img { max-width: 100% !important; }
.ad-label { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #8a90a0; margin-bottom: 4px; }
.ad-slot .widget { background: transparent; box-shadow: none; padding: 0; margin: 0; }
.ad-slot--empty { border: 2px dashed #c3c7d1; border-radius: var(--radius); padding: 18px 10px; }
.sidebar .ad-slot { margin: 0 0 20px; }

/* =========================================================================
   6. Single article
   ====================================================================== */
.single-article { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px; min-width: 0; }
.entry-header { margin-bottom: 16px; }
.entry-title { font-size: clamp(1.7rem, 6vw, 2.6rem); margin: 10px 0 12px; letter-spacing: -.01em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: var(--c-muted); }
.entry-meta a { color: inherit; }
.post-thumbnail { margin: 0 0 20px; }
.post-thumbnail img { width: 100%; border-radius: var(--radius); }
.post-thumbnail figcaption { font-size: .85rem; color: var(--c-muted); margin-top: 6px; }

.entry-content { font-size: 1.0625rem; line-height: 1.75; overflow-wrap: break-word; word-wrap: break-word; max-width: 100%; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: clamp(1.4rem, 4.5vw, 1.8rem); margin: 1.8em 0 .6em; }
.entry-content h3 { font-size: clamp(1.2rem, 4vw, 1.4rem); margin: 1.5em 0 .5em; }
.entry-content h4 { font-size: 1.1rem; margin: 1.3em 0 .4em; }
.entry-content a { overflow-wrap: anywhere; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: 6px; max-width: 100%; height: auto; }
.entry-content figure, .entry-content .wp-caption { max-width: 100%; margin: 1.5em 0; }
.entry-content figcaption, .entry-content .wp-caption-text, .entry-content .wp-element-caption {
	font-size: .85rem; color: var(--c-muted); text-align: center; margin-top: 6px;
}
.entry-content blockquote {
	margin: 1.5em 0; padding: 12px 18px; border-left: 4px solid var(--c-accent); background: #fafafb;
	font-style: italic; color: #34363f; border-radius: 0 8px 8px 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre { overflow-x: auto; background: #14151b; color: #eee; padding: 14px; border-radius: 8px; max-width: 100%; }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.entry-content .wp-block-embed__wrapper, .entry-content .wp-has-aspect-ratio { max-width: 100%; }
.entry-content .alignleft, .entry-content .alignright { float: none; display: block; margin: 1.2em auto; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; margin-inline: 0; width: auto; }
@media (min-width: 640px) {
	.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
	.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
}
.entry-content::after { content: ""; display: table; clear: both; }

.table-wrap, .wp-block-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; }
.table-wrap .wp-block-table { margin: 0; }
.entry-content table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--c-border); padding: 8px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: #f0f1f4; }
.entry-content tbody tr:nth-child(even) { background: #fafafb; }

.toc { background: #f6f7f9; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1.6em; font-size: .96rem; line-height: 1.5; }
.toc-title { font-weight: 800; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin: 0; }
.toc .toc-l3 { margin-left: 1.1em; list-style: circle; font-size: .92rem; }
.toc a { display: inline-block; padding: 4px 0; text-decoration: none; overflow-wrap: anywhere; }
.toc a:hover { text-decoration: underline; }

.entry-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.tag-list a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; background: #eef0f4; color: var(--c-text); border-radius: 99px; text-decoration: none; font-size: .85rem; }
.tag-list a:hover { background: #e1e4ea; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.share-label { font-weight: 700; }
.share ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share a {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 16px;
	background: var(--c-dark); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .9rem;
}
.share a:hover { background: var(--c-accent); color: #fff; }

.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 18px; background: #f6f7f9; border-radius: var(--radius); }
.author-box img { border-radius: 50%; flex: 0 0 auto; }
.author-name { margin: 0 0 4px; font-size: 1.05rem; }
.author-bio { margin: 0; color: var(--c-muted); font-size: .95rem; }

.post-navigation { margin-top: 28px; }
.post-navigation .nav-links { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-navigation a {
	display: block; min-height: 44px; padding: 12px 16px; background: #f6f7f9; border: 1px solid var(--c-border);
	border-radius: var(--radius); text-decoration: none; color: var(--c-text); overflow-wrap: anywhere;
}
.post-navigation a:hover { border-color: var(--c-accent); }
.post-navigation .nav-subtitle { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.post-navigation .nav-title { font-weight: 700; }
.post-navigation .nav-next { text-align: right; }

/* Comments */
.comments-area { margin-top: 32px; }
.comments-title, .comment-reply-title { font-size: 1.3rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .children { list-style: none; padding-left: 16px; }
@media (min-width: 640px) { .comment-list .children { padding-left: 32px; } }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--c-border); overflow-wrap: anywhere; }
.comment-author .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata { font-size: .8rem; }
.comment-metadata a { color: var(--c-muted); }
.comment-content { clear: both; padding-top: 6px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; max-width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #c3c7d1; border-radius: 8px;
}
.comment-form p { margin-bottom: 14px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; display: inline; }
.button, .comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
	background: var(--c-accent); color: #fff; border: 0; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.button:hover, .comment-form .submit:hover { background: var(--c-accent-d); color: #fff; }

@media (min-width: 768px) { .single-article { padding: 32px 36px; } }

/* Pages / 404 */
.page-article { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px; }
@media (min-width: 768px) { .page-article { padding: 32px 36px; } }

/* =========================================================================
   7. Footer
   ====================================================================== */
.site-footer { background: var(--c-dark); color: #b9bcc7; padding: 32px 0 24px; margin-top: 24px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-widgets { margin-bottom: 20px; }
.footer-widgets .widget { background: transparent; box-shadow: none; padding: 0; color: inherit; }
.footer-widgets .widget-title { color: #fff; }
.footer-menu ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
.copyright { margin: 0; }

/* WordPress core alignment helpers */
.aligncenter { display: block; margin-inline: auto; }
.wp-block-image img { max-width: 100%; height: auto; }
.sticky .cat-label { background: var(--c-dark); }
.bypostauthor { }
.gallery-caption { }

/* Small phones */
@media (max-width: 360px) {
	.container { padding-inline: 12px; }
	.entry-title { font-size: 1.55rem; }
	.share a { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .sidebar, .ad-slot, .share, .post-navigation, .comments-area, .site-footer, .related-posts { display: none !important; }
}
