/*
Theme Name: StoryPress
Theme URI: https://bikramkaji.com.np/storypress
Author: Bikram
Author URI: https://bikramkaji.com.np/
Description: StoryPress is an accessible, editorially-minded news and magazine theme built on the _s (Underscores) starter. It ships with eight Customizer-switchable homepage layouts (Grid, List, Magazine, Hero Grid, Traditional Wire, Top Stories, Latest News Horizontal, Latest News Vertical), optional category-based homepage sections, a custom logo/header/background, and custom block styles and patterns. Fully keyboard accessible, responsive, and translation ready.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storypress
Tags: news, blog, one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-logo, custom-header, custom-background, custom-menu, featured-images, threaded-comments, block-patterns, translation-ready

StoryPress is based on Underscores https://underscores.me/, (C) 2012-2023
Automattic, Inc., licensed under GPLv2 or later. StoryPress is distributed
under the terms of the GNU GPL v2 or later.
*/

/* =========================================================
   TABLE OF CONTENTS
   0.0 Design tokens
   1.0 Normalize / resets
   2.0 Typography
   3.0 Elements & global image reset
   4.0 Accessibility (skip link, screen-reader text, focus)
   5.0 Layout / containers
   6.0 Header
   7.0 Navigation (primary menu, disclosure submenus)
   8.0 Homepage layouts (Grid / List / Magazine / + 5 more)
   9.0 Posts and pages
   10.0 Comments
   11.0 Widgets / sidebar
   12.0 Footer
   13.0 Block editor styles (block styles, alignment)
   14.0 Core/recommended utility classes
   15.0 Media queries
   ========================================================= */

/* 0.0 Design tokens ---------------------------------------- */
:root {
	--storypress-accent: #b3261e;
	--storypress-ink: #101012;
	--storypress-body: #1d1d1f;
	--storypress-muted: #656565;
	--storypress-hairline: #e2e2e2;
	--storypress-surface: #faf8f5;
	--storypress-radius: 6px;
	--storypress-shadow: 0 1px 2px rgba(16,16,18,0.04), 0 6px 20px rgba(16,16,18,0.06);
	--storypress-shadow-hover: 0 4px 10px rgba(16,16,18,0.07), 0 14px 32px rgba(16,16,18,0.10);
	--storypress-transition: 180ms ease;
}

/* 1.0 Normalize / resets --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	color: var( --storypress-body );
	background: #ffffff;
}
ul, ol { padding-left: 1.25em; }
figure { margin: 0; }

/* 2.0 Typography ------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
	font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
	line-height: 1.2;
	margin: 0 0 0.5em;
	color: var( --storypress-ink );
	letter-spacing: -0.01em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
a { color: var( --storypress-accent ); text-decoration: none; transition: color var( --storypress-transition ); }
a:hover, a:focus { text-decoration: underline; }
p { margin: 0 0 1.25em; }

/* 3.0 Elements & global image reset ------------------------ */
img { max-width: 100%; height: auto; }
figure img { display: block; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }

/* 4.0 Accessibility ----------------------------------------- */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Skip link: self-contained pair, explicit colors, fixed positioning
   so it can never be trapped behind a sticky header's stacking context. */
.skip-link {
	position: fixed;
	top: -100px;
	left: 6px;
	z-index: 100000;
	background: #101012;
	color: #ffffff;
	padding: 10px 18px;
	border-radius: 0 0 4px 4px;
	font-weight: 600;
	transition: top 0.15s ease-in-out;
}
.skip-link:focus {
	top: 0;
	color: #ffffff;
	background: #101012;
	outline: 3px solid #ffd23f;
	outline-offset: 2px;
	text-decoration: none;
}

a:focus,
button:focus,
input:focus,
.menu-toggle:focus,
.sub-menu-toggle:focus {
	outline: 3px solid #ffd23f;
	outline-offset: 2px;
}

/* 5.0 Layout / containers ------------------------------------ */
.site { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-content { display: block; padding: 32px 0; }
.site-content.has-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.site-content.has-sidebar.sidebar-left { grid-template-columns: 1fr 2fr; }
.site-content.has-sidebar.sidebar-left #primary { grid-column: 2; }
.site-content.has-sidebar.sidebar-left #secondary { grid-column: 1; grid-row: 1; }

/* 6.0 Header --------------------------------------------------- */
.site-header-image { line-height: 0; overflow: hidden; max-height: 320px; }
.site-header-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.site-header {
	border-bottom: 3px solid var( --storypress-ink );
	padding: 22px 0;
}
.site-branding { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-title {
	font-family: Georgia, serif;
	font-size: 2.1rem;
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.5px;
}
.site-title a { color: var( --storypress-ink ); transition: color var( --storypress-transition ); }
.site-title a:hover,
.site-title a:focus { color: var( --storypress-accent ); text-decoration: none; }
.site-logo { margin: 0; }
.site-logo img { max-height: 80px; width: auto; display: block; }
.site-description { margin: 4px 0 0; font-size: 0.9rem; color: var( --storypress-muted ); font-family: -apple-system, sans-serif; }

.site-header-actions { display: flex; align-items: center; gap: 16px; }

.social-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social-icons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var( --storypress-surface );
	color: var( --storypress-ink );
	transition: background var( --storypress-transition ), color var( --storypress-transition ), transform var( --storypress-transition );
}
.social-icons a:hover,
.social-icons a:focus {
	background: var( --storypress-accent );
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-2px);
}
.social-icons svg { width: 18px; height: 18px; fill: currentColor; }

/* 7.0 Navigation / disclosure submenus -------------------------- */
.main-navigation { border-top: 1px solid var( --storypress-hairline ); margin-top: 18px; }
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}
.main-navigation li { position: relative; display: flex; align-items: stretch; flex-wrap: wrap; }
.main-navigation li > a { flex: 1 1 auto; }
.main-navigation ul ul li { width: 100%; }
.main-navigation .menu-item-has-children > a { padding-right: 44px; }
.main-navigation a {
	position: relative;
	display: block;
	padding: 14px 16px;
	color: var( --storypress-ink );
	font-weight: 600;
	transition: color var( --storypress-transition );
}
.main-navigation a::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 8px;
	height: 2px;
	background: var( --storypress-accent );
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var( --storypress-transition );
}
.main-navigation a:hover,
.main-navigation a:focus {
	text-decoration: none;
	color: var( --storypress-accent );
}
.main-navigation a:hover::after,
.main-navigation a:focus::after { transform: scaleX(1); }
.main-navigation ul ul a::after { display: none; }
.main-navigation ul ul a:hover,
.main-navigation ul ul a:focus { background: var( --storypress-surface ); }

.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #ffffff;
	border: 1px solid var( --storypress-hairline );
	border-radius: 0 0 var( --storypress-radius ) var( --storypress-radius );
	box-shadow: var( --storypress-shadow-hover );
	flex-direction: column;
	z-index: 50;
}
.main-navigation ul ul ul { top: 0; left: 100%; border-radius: 0 var( --storypress-radius ) var( --storypress-radius ) var( --storypress-radius ); }

/* Shown when JS marks the item toggled (click) or focused (keyboard) */
.main-navigation li.toggled > ul,
.main-navigation li.focus > ul { display: flex; }

.sub-menu-toggle {
	position: static;
	flex: 0 0 auto;
	align-self: center;
	margin: 0 8px 0 0;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var( --storypress-radius );
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background var( --storypress-transition );
}
.sub-menu-toggle:hover { background: var( --storypress-surface ); }
.sub-menu-toggle .icon { width: 8px; height: 8px; border-right: 2px solid var( --storypress-ink ); border-bottom: 2px solid var( --storypress-ink ); transform: rotate(45deg); pointer-events: none; transition: transform var( --storypress-transition ); }
.sub-menu-toggle[aria-expanded="true"] .icon { transform: rotate(225deg); }

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 2px solid var( --storypress-ink );
	border-radius: var( --storypress-radius );
	cursor: pointer;
	flex-shrink: 0;
	transition: background var( --storypress-transition ), border-color var( --storypress-transition );
}
.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle[aria-expanded="true"] { background: var( --storypress-accent ); border-color: var( --storypress-accent ); }
.menu-toggle:hover .menu-toggle-icon span,
.menu-toggle:focus .menu-toggle-icon span,
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span { background: #fff; }

.menu-toggle-icon { position: relative; width: 20px; height: 14px; display: inline-block; }
.menu-toggle-icon span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var( --storypress-ink );
	border-radius: 2px;
	transition: transform 250ms ease, opacity 150ms ease, top 250ms ease, background var( --storypress-transition );
}
.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 6px; }
.menu-toggle-icon span:nth-child(3) { top: 12px; }

/* Hamburger morphs into an X when the panel is open */
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* 8.0 Homepage layouts -------------------------------------------- */
/* Shared card polish across every layout: image zoom + title color on
   hover/focus, so the grid feels responsive without any JS. */
.post-card .post-thumbnail { position: relative; display: block; overflow: hidden; border-radius: var( --storypress-radius ); }
.post-card .post-thumbnail img { transition: transform 360ms ease; }
.post-card:hover .post-thumbnail img,
.post-card:focus-within .post-thumbnail img { transform: scale(1.045); }
.post-card .entry-title a,
.wire-item .entry-title a,
.hero-banner .entry-title a { color: var( --storypress-ink ); transition: color var( --storypress-transition ); }
.post-card .entry-title a:hover,
.post-card .entry-title a:focus,
.wire-item .entry-title a:hover,
.wire-item .entry-title a:focus { color: var( --storypress-accent ); text-decoration: none; }

/* Grid layout */
.layout-grid .post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.layout-grid .post-card .post-thumbnail { margin-bottom: 12px; }
.layout-grid .post-card .post-thumbnail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.layout-grid .post-card .entry-title { font-size: 1.15rem; }

/* List layout */
.layout-list .post-list { list-style: none; margin: 0; padding: 0; }
.layout-list .post-card {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var( --storypress-hairline );
}
.layout-list .post-card .post-thumbnail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Magazine layout: one large featured story + a grid of the rest */
.layout-magazine .featured-story { margin-bottom: 36px; }
.layout-magazine .featured-story .post-thumbnail { display: block; overflow: hidden; border-radius: var( --storypress-radius ); box-shadow: var( --storypress-shadow ); }
.layout-magazine .featured-story .post-thumbnail img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; transition: transform 360ms ease; }
.layout-magazine .featured-story:hover .post-thumbnail img,
.layout-magazine .featured-story:focus-within .post-thumbnail img { transform: scale(1.03); }
.layout-magazine .featured-story .entry-title { font-size: 2.1rem; }
.layout-magazine .post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.layout-magazine .post-list .post-card .post-thumbnail { margin-bottom: 12px; }
.layout-magazine .post-list .post-card .post-thumbnail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.layout-magazine .post-list .post-card .entry-title { font-size: 1.15rem; }

/* Hero Grid layout: full-bleed hero banner + a compact grid below */
.layout-hero-grid .hero-banner {
	position: relative;
	display: block;
	margin-bottom: 32px;
	border-radius: 6px;
	overflow: hidden;
	min-height: 420px;
	background: #101012;
}
.layout-hero-grid .hero-banner-media { position: absolute; inset: 0; display: block; }
.layout-hero-grid .hero-banner-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.layout-hero-grid .hero-banner-overlay {
	position: relative;
	z-index: 1;
	padding: 32px;
	padding-top: 220px;
	color: #ffffff;
	background: linear-gradient(180deg, rgba(16,16,18,0) 0%, rgba(16,16,18,0.85) 60%, rgba(16,16,18,0.95) 100%);
}
.layout-hero-grid .hero-banner-overlay .entry-title { color: #ffffff; font-size: 2.2rem; }
.layout-hero-grid .hero-banner-overlay .entry-title a { color: #ffffff; }
.layout-hero-grid .hero-banner-overlay .entry-meta { color: #f0f0f0; }
.layout-hero-grid .hero-banner-overlay .entry-summary { color: #e6e6e6; }
.layout-hero-grid .post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.layout-hero-grid .post-card .post-thumbnail { margin-bottom: 10px; }
.layout-hero-grid .post-card .post-thumbnail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var( --storypress-radius ); }
.layout-hero-grid .post-card .entry-title { font-size: 1rem; }

/* Traditional Wire layout: dense, text-forward headline feed, no thumbnails */
.layout-wire .post-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.layout-wire .wire-item { padding: 14px 0; border-bottom: 1px solid #e2e2e2; }
.layout-wire .wire-kicker { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var( --storypress-muted ); margin-bottom: 4px; display: flex; gap: 8px; }
.layout-wire .wire-category { font-weight: 700; color: var( --storypress-accent, #b3261e ); }
.layout-wire .entry-title { font-size: 1.1rem; margin-bottom: 4px; }
.layout-wire .entry-summary { font-size: 0.92rem; color: var( --storypress-muted ); }

/* Top Stories layout: asymmetric mixed-size grid — one large lead, two
   medium, remaining small — driven purely by nth-child spans. */
.layout-top-stories .post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(140px, auto);
	gap: 24px;
}
.layout-top-stories .post-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.layout-top-stories .post-card:nth-child(1) .entry-title { font-size: 1.6rem; }
.layout-top-stories .post-card:nth-child(2),
.layout-top-stories .post-card:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.layout-top-stories .post-card:nth-child(n+4) { grid-column: span 1; }
.layout-top-stories .post-card:nth-child(n+4) .entry-title { font-size: 0.95rem; }
.layout-top-stories .post-card .post-thumbnail { margin-bottom: 10px; }
.layout-top-stories .post-card .post-thumbnail img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var( --storypress-radius ); }

/* Latest News (Horizontal) layout: a horizontally scrolling headline strip */
.layout-latest-horizontal .horizontal-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
}
.layout-latest-horizontal .post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
}
.layout-latest-horizontal .post-card {
	flex: 0 0 240px;
	scroll-snap-align: start;
}
.layout-latest-horizontal .post-card .post-thumbnail { margin-bottom: 8px; }
.layout-latest-horizontal .post-card .post-thumbnail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var( --storypress-radius ); }
.layout-latest-horizontal .post-card .entry-title { font-size: 1rem; }

/* Latest News (Vertical) layout: dense timestamped feed, no thumbnails */
.layout-latest-vertical .post-list { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.layout-latest-vertical .latest-vertical-item {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 16px;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}
.layout-latest-vertical .latest-vertical-time { font-size: 0.8rem; color: var( --storypress-muted ); font-variant-numeric: tabular-nums; }
.layout-latest-vertical .entry-title { font-size: 0.98rem; margin: 0; }

/* When a sidebar is present, #primary is narrower than the full site width,
   so the multi-column layouts need fewer columns to stay readable. */
.site-content.has-sidebar .layout-grid .post-list,
.site-content.has-sidebar .layout-magazine .post-list {
	grid-template-columns: repeat(2, 1fr);
}
.site-content.has-sidebar .layout-hero-grid .post-list {
	grid-template-columns: repeat(2, 1fr);
}
.site-content.has-sidebar .layout-top-stories .post-list {
	grid-template-columns: repeat(2, 1fr);
}
.site-content.has-sidebar .layout-top-stories .post-card:nth-child(1) { grid-column: span 2; }
.site-content.has-sidebar .layout-top-stories .post-card:nth-child(2),
.site-content.has-sidebar .layout-top-stories .post-card:nth-child(3) { grid-column: span 1; }

/* Category sections: optional extra story rows below the main homepage
   layout, each pulling from a chosen category. */
.category-section { margin-top: 48px; padding-top: 32px; border-top: 3px solid #101012; }
.category-section-title { margin-bottom: 20px; font-size: 1.3rem; }
.category-section-title a { color: #101012; }
.category-section-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.category-section-list .post-card .entry-title { font-size: 1rem; }
.category-section-list .post-card .post-thumbnail { margin-bottom: 8px; }
.category-section-list .post-card .post-thumbnail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var( --storypress-radius ); }

.post-card .entry-meta { font-size: 0.85rem; color: var( --storypress-muted ); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-card .entry-summary { color: #333; }

/* 9.0 Posts and pages ----------------------------------------------- */
.entry-header { margin-bottom: 20px; }
.entry-title { margin-bottom: 8px; }
.entry-content img { border-radius: var( --storypress-radius ); }
.entry-content .wp-caption-text,
.entry-content figcaption { font-size: 0.85rem; color: var( --storypress-muted ); margin-top: 6px; }
.entry-footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid var( --storypress-hairline ); font-size: 0.9rem; color: var( --storypress-muted ); }
.single .post-thumbnail img,
.page .post-thumbnail img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var( --storypress-radius ); margin-bottom: 20px; box-shadow: var( --storypress-shadow ); }

/* Ensure the plain/default fallback layout (no grid/list/magazine class,
   e.g. search results, category archives) still has real styling. */
.post-list:not([class*="layout-"] .post-list) .post-card { padding: 16px 0; border-bottom: 1px solid var( --storypress-hairline ); }

.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var( --storypress-hairline );
	border-radius: 999px;
	color: var( --storypress-ink );
	font-weight: 600;
	transition: background var( --storypress-transition ), color var( --storypress-transition ), border-color var( --storypress-transition );
}
.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
	background: var( --storypress-ink );
	border-color: var( --storypress-ink );
	color: #fff;
	text-decoration: none;
}
.pagination .page-numbers.current { background: var( --storypress-accent ); border-color: var( --storypress-accent ); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; }

/* Previous/next post navigation cards */
.post-navigation-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 40px;
}
.post-nav-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border: 1px solid var( --storypress-hairline );
	border-radius: var( --storypress-radius );
	transition: box-shadow var( --storypress-transition ), border-color var( --storypress-transition ), transform var( --storypress-transition );
}
.post-nav-card:hover,
.post-nav-card:focus {
	box-shadow: var( --storypress-shadow-hover );
	border-color: var( --storypress-ink );
	transform: translateY(-2px);
	text-decoration: none;
}
.post-nav-empty { border: 0; }
.post-nav-thumbnail { flex: 0 0 auto; display: block; overflow: hidden; border-radius: var( --storypress-radius ); }
.post-nav-thumbnail img { width: 84px; height: 84px; object-fit: cover; display: block; }
.post-nav-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-nav-direction {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	color: var( --storypress-accent );
}
.post-nav-title {
	font-family: Georgia, serif;
	font-size: 1.02rem;
	color: var( --storypress-ink );
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.post-nav-next { text-align: right; }
.post-nav-next .post-nav-body { align-items: flex-end; }
.post-nav-next .post-nav-title { text-align: right; }

/* Blockquotes */
.entry-content blockquote {
	margin: 28px 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var( --storypress-accent );
	font-family: Georgia, serif;
	font-size: 1.2rem;
	font-style: italic;
	color: var( --storypress-ink );
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite {
	display: block;
	margin-top: 10px;
	font-family: -apple-system, sans-serif;
	font-size: 0.85rem;
	font-style: normal;
	font-weight: 600;
	color: var( --storypress-muted );
}

/* Archive/page headers */
.page-header { margin-bottom: 32px; }
.page-title { font-size: 2rem; }
.archive-description { color: var( --storypress-muted ); font-size: 1rem; margin-top: 8px; }

/* Content typography extras */
.entry-content ul,
.entry-content ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content hr { border: 0; border-top: 1px solid var( --storypress-hairline ); margin: 32px 0; }
.entry-content code {
	background: var( --storypress-surface );
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}
.entry-content pre {
	background: var( --storypress-ink );
	color: #f4f2ee;
	padding: 18px 20px;
	border-radius: var( --storypress-radius );
	overflow-x: auto;
	margin: 0 0 1.25em;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.25em;
	font-size: 0.95rem;
}
.entry-content th,
.entry-content td { padding: 10px 14px; border: 1px solid var( --storypress-hairline ); text-align: left; }
.entry-content th { background: var( --storypress-surface ); font-weight: 700; }

/* 10.0 Comments -------------------------------------------------------- */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var( --storypress-hairline ); }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.comment-author .avatar { border-radius: 999px; border: 2px solid var( --storypress-hairline ); display: block; }
.comment-author .fn { font-weight: 600; font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 0.8rem; color: var( --storypress-muted ); margin-left: 56px; }
.comment-content { margin-left: 56px; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-top: 8px; margin-left: 56px; }
.reply .comment-reply-link { font-size: 0.85rem; padding: 6px 16px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: var( --storypress-radius );
	margin-bottom: 12px;
	transition: border-color var( --storypress-transition ), box-shadow var( --storypress-transition );
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	border-color: var( --storypress-accent );
	box-shadow: 0 0 0 3px rgba(179,38,30,0.15);
	outline: none;
}
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-reply-link,
#submit {
	display: inline-block;
	background: var( --storypress-ink );
	color: #fff;
	border: 0;
	padding: 10px 20px;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
	transition: background var( --storypress-transition );
}
.comment-reply-link:hover,
.comment-reply-link:focus,
#submit:hover,
#submit:focus { background: var( --storypress-accent ); color: #fff; text-decoration: none; }

/* 11.0 Widgets / sidebar ------------------------------------------------ */
.widget { margin-bottom: 32px; padding: 20px; background: var( --storypress-surface ); border-radius: var( --storypress-radius ); }
.widget-title { font-size: 1.05rem; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var( --storypress-accent ); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var( --storypress-hairline ); }
.widget ul li:last-child { border-bottom: 0; }
.widget a { color: var( --storypress-ink ); }
.widget a:hover,
.widget a:focus { color: var( --storypress-accent ); }

/* 12.0 Footer ------------------------------------------------------------ */
.site-footer { border-top: 3px solid var( --storypress-ink ); margin-top: 48px; padding: 28px 0; font-size: 0.9rem; color: var( --storypress-muted ); text-align: center; }
.footer-navigation ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; }
.footer-navigation a { color: var( --storypress-ink ); font-weight: 600; }
.footer-navigation a:hover,
.footer-navigation a:focus { color: var( --storypress-accent ); }

/* 13.0 Block editor styles (custom block styles + alignment) ------------- */
.is-style-storypress-pull-quote {
	border: 0;
	border-left: 6px solid var( --storypress-accent );
	padding-left: 24px;
	font-family: Georgia, serif;
	font-size: 1.5rem;
	font-style: italic;
}
.is-style-storypress-dotted.wp-block-separator {
	border: none;
	border-top: 3px dotted var( --storypress-ink );
	background: none;
	height: 0;
}
.is-style-storypress-outline.wp-block-button .wp-block-button__link {
	background: transparent;
	color: var( --storypress-accent );
	border: 2px solid var( --storypress-accent );
}
.is-style-storypress-outline.wp-block-button .wp-block-button__link:hover,
.is-style-storypress-outline.wp-block-button .wp-block-button__link:focus {
	background: var( --storypress-accent );
	color: #fff;
}
.is-style-storypress-caption-card.wp-block-image {
	background: var( --storypress-surface );
	padding: 12px;
	border-radius: var( --storypress-radius );
}
.is-style-storypress-caption-card.wp-block-image figcaption { font-style: italic; }
.storypress-byline {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var( --storypress-muted );
}

/* Wide/full alignment (add_theme_support( 'align-wide' )).
   Rather than constraining .entry-content itself and trying to break wide/
   full blocks back out with negative margins (which only computes
   correctly when every ancestor is symmetrically centered — not true once
   a sidebar makes #primary asymmetric), each direct child gets its own
   reading-width cap individually. This is simpler, never overflows on any
   viewport or sidebar state, and needs no viewport-unit math. */
.entry-content > *:not( .alignleft ):not( .alignright ):not( .alignwide ):not( .alignfull ) {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.entry-content > .alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { max-width: none; width: 100%; }

/* 14.0 Core/recommended utility classes ----------------------------------- */
.alignleft { float: left; max-width: 50%; margin: 6px 24px 20px 0; }
.alignright { float: right; max-width: 50%; margin: 6px 0 20px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* Sticky posts (class auto-applied by post_class() via is_sticky()) */
.sticky { border-left: 4px solid var( --storypress-accent ); padding-left: 14px; }
.layout-list .sticky,
.layout-wire .sticky,
.layout-latest-vertical .sticky { padding-left: 14px; }

/* Comment author highlight (class auto-applied by comment_class()) */
.bypostauthor { background: var( --storypress-surface ); border-left: 3px solid var( --storypress-accent ); padding: 12px 12px 12px 14px; border-radius: 0 var( --storypress-radius ) var( --storypress-radius ) 0; }

/* Core gallery caption class */
.gallery-caption { font-size: 0.85rem; color: var( --storypress-muted ); text-align: center; margin-top: 6px; }

/* 15.0 Media queries ------------------------------------------------------ */
@media (max-width: 782px) {
	.menu-toggle { display: inline-flex; }

	.main-navigation ul#primary-menu {
		flex-direction: column;
		max-height: 0;
		opacity: 0;
		visibility: hidden;
		overflow: hidden;
		background: #ffffff;
		border: 1px solid var( --storypress-hairline );
		border-radius: 0 0 var( --storypress-radius ) var( --storypress-radius );
		box-shadow: var( --storypress-shadow-hover );
		margin-top: 4px;
		transition: max-height 320ms ease, opacity 220ms ease, visibility 0s linear 320ms;
	}
	.main-navigation.toggled ul#primary-menu {
		max-height: 80vh;
		opacity: 1;
		visibility: visible;
		overflow-y: auto;
		transition: max-height 320ms ease, opacity 220ms ease, visibility 0s linear 0s;
	}
	.main-navigation ul#primary-menu > .menu-item { border-bottom: 1px solid var( --storypress-hairline ); }
	.main-navigation ul#primary-menu > .menu-item:last-child { border-bottom: 0; }
	.main-navigation ul#primary-menu > .menu-item > a { padding: 16px 20px; font-size: 1.02rem; }
	.main-navigation ul#primary-menu .sub-menu-toggle { margin-right: 12px; }

	.main-navigation ul ul {
		min-width: 0;
		width: 100%;
	}
	.main-navigation ul ul ul { top: 100%; left: 0; }
	.main-navigation ul ul a { padding-left: 36px; }
	.main-navigation ul ul ul a { padding-left: 52px; }

	.site-content.has-sidebar,
	.site-content.has-sidebar.sidebar-left { grid-template-columns: 1fr; }
	.site-content.has-sidebar #primary,
	.site-content.has-sidebar.sidebar-left #primary { grid-column: 1; }
	.site-content.has-sidebar #secondary,
	.site-content.has-sidebar.sidebar-left #secondary { grid-column: 1; grid-row: auto; }

	.post-navigation-cards { grid-template-columns: 1fr; }
	.post-nav-next { text-align: left; }
	.post-nav-next .post-nav-body { align-items: flex-start; }
	.post-nav-next .post-nav-title { text-align: left; }
	.post-nav-empty { display: none; }

	.layout-grid .post-list,
	.layout-magazine .post-list,
	.layout-hero-grid .post-list { grid-template-columns: repeat(2, 1fr); }
	.layout-list .post-card { grid-template-columns: 1fr; }

	.layout-top-stories .post-list { grid-template-columns: repeat(2, 1fr); }
	.layout-top-stories .post-card:nth-child(1) { grid-column: span 2; }
	.layout-top-stories .post-card:nth-child(2),
	.layout-top-stories .post-card:nth-child(3) { grid-column: span 1; }

	.layout-hero-grid .hero-banner { min-height: 300px; }
	.layout-hero-grid .hero-banner-overlay { padding-top: 140px; }
	.layout-hero-grid .hero-banner-overlay .entry-title { font-size: 1.6rem; }

	.category-section-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	.layout-grid .post-list,
	.layout-magazine .post-list,
	.layout-hero-grid .post-list,
	.layout-top-stories .post-list,
	.category-section-list { grid-template-columns: 1fr; }
	.layout-top-stories .post-card:nth-child(1),
	.layout-top-stories .post-card:nth-child(2),
	.layout-top-stories .post-card:nth-child(3) { grid-column: span 1; grid-row: span 1; }
	.layout-latest-vertical .latest-vertical-item { grid-template-columns: 1fr; gap: 2px; }
	.site-title { font-size: 1.5rem; }
	.site-header-image { max-height: 180px; }
	.alignleft,
	.alignright { float: none; max-width: 100%; margin-left: 0; margin-right: 0; }
	.social-icons { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
