/*
Theme Name: WWI
Theme URI: https://www.writersworkshopindia.com/
Description: An editorial WordPress theme for Writers Workshop India.
Version: 1.1.7
Requires at least: 6.0
Requires PHP: 7.4
Author: Writers Workshop India
Text Domain: wwi
*/

:root {
	--wwi-paper: #f7f4ee;
	--wwi-surface: #fffdf9;
	--wwi-ink: #282522;
	--wwi-muted: #716b63;
	--wwi-red: #762b36;
	--wwi-red-bright: #cc1111;
	--wwi-green: #344a3d;
	--wwi-border: #e3dcd0;
	--wwi-focus: #ad702f;
	--wwi-content-width: 1280px;
	--wwi-header-width: 1160px;
	--wwi-reading-width: 760px;
	--wwi-radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--wwi-header-height, 280px) + 24px); }
body {
	margin: 0;
	background: var(--wwi-paper);
	color: var(--wwi-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
::selection { background: #e8d4ca; color: var(--wwi-ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wwi-red); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--wwi-red-bright); }
a, button, input { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid var(--wwi-focus); outline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, input[type="submit"], input[type="button"] { cursor: pointer; }
button, input, select, textarea { max-width: 100%; }
:where(h1, h2, h3, h4, p, a) { overflow-wrap: break-word; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px;
	margin: 0; clip: auto; background: var(--wwi-surface); color: var(--wwi-ink);
	box-shadow: 0 2px 12px rgb(0 0 0 / 18%);
}
.header-inner, .header-tools-inner, .navigation-inner, .site-main, .footer-inner {
	width: min(var(--wwi-content-width), calc(100% - 80px)); margin-inline: auto;
}
.header-inner, .header-tools-inner, .navigation-inner {
	width: min(var(--wwi-header-width), calc(100% - 80px));
}

/* A quiet utility strip and a generous, book-like masthead. */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--wwi-red); color: #fff; border-top: 3px solid var(--wwi-red-bright); box-shadow: 0 4px 20px rgb(40 37 34 / 8%); }
.admin-bar .site-header { top: 32px; }
.header-tools { background: rgb(0 0 0 / 12%); border-bottom: 1px solid rgb(255 255 255 / 12%); }
.header-tools-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 28px; padding-block: 2px; }
.header-tools-right { display: flex; align-items: center; gap: 24px; margin-left: auto; min-width: 0; }
.header-inner { display: flex; align-items: center; min-height: 93px; padding-block: 14px; }
.header-masthead { position: relative; isolation: isolate; overflow: hidden; }
.header-masthead::before, .header-masthead::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.header-masthead::before { inset: 0; background: url("assets/paper-grain.svg") repeat; opacity: .24; }
.header-masthead::after {
	width: clamp(280px, 32vw, 460px); height: 460px; right: max(20px, calc((100vw - var(--wwi-header-width)) / 2 - 20px));
	top: 50%; transform: translateY(-50%) rotate(-12deg); background: url("assets/botanical-watermark.svg") center / contain no-repeat; opacity: .065;
}
.header-masthead .header-inner { position: relative; justify-content: space-between; gap: 28px; flex-wrap: nowrap; }
.header-masthead .header-search { flex: 0 0 250px; min-width: 0; }
.header-search-toggle { display: none; }
.search-close-icon { display: none; }
.header-masthead .search-form input[type="search"] {
	min-height: 42px; padding-block: 8px; border: 1px solid transparent; border-bottom-color: rgb(255 249 240 / 22%);
	border-radius: 0; background: transparent; color: #fff9f0; font-size: .78rem;
}
.header-masthead .search-field::placeholder { color: #e1c6c4; }
.header-masthead .search-submit { color: #e1c6c4; border-radius: 3px; }
.header-masthead .search-form:hover input[type="search"], .header-masthead .search-form:focus-within input[type="search"] {
	border-color: rgb(255 249 240 / 40%); border-radius: 3px; background: rgb(255 249 240 / 6%);
}
.header-masthead .search-submit:hover { background: rgb(255 249 240 / 12%); color: #fff9f0; }
.header-masthead .search-form :focus-visible { outline-color: #f0d6ad; }
.site-branding { display: flex; flex: 1 1 auto; align-items: center; gap: 24px; min-width: 0; }
.custom-logo-link { display: block; flex: 0 0 auto; }
.custom-logo { width: auto; max-width: 140px; max-height: 56px; object-fit: contain; }
.site-identity { min-width: 0; }
.site-title {
	margin: 0; font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 400; line-height: 1.14; letter-spacing: -.04em;
}
.site-title a { color: #fff9f0; text-decoration: none; }
.site-title a:hover { color: #ecd9c3; }
.site-description { margin: 6px 0 0; color: #ead8d5; font-size: .75rem; line-height: 1.4; letter-spacing: .025em; }
.utility-menu, .utility-menu ul, .social-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding: 0; margin: 0; list-style: none; }
.header-tools :is(.utility-menu, .social-menu) { font-size: .75rem; line-height: 1.5; }
.utility-menu a, .social-menu a { display: inline-block; padding-block: 2px; color: #f0e3df; font-size: .75rem; line-height: 1.5; text-decoration: none; }
.utility-menu a:hover, .social-menu a:hover { color: #fff; text-decoration: underline; }
.social-menu { gap: 14px; }
.header-tools .header-search { width: 256px; }
.search-form { position: relative; display: flex; align-items: stretch; width: 100%; gap: 0; }
.search-form label:not(.screen-reader-text) { flex: 1; min-width: 0; }
.search-field, .search-form input[type="search"] {
	width: 100%; min-width: 0; min-height: 48px; padding: 11px 48px 11px 14px;
	border: 1px solid var(--wwi-border); border-radius: 4px; background: var(--wwi-surface); color: var(--wwi-ink); font-size: .85rem;
}
.search-field::placeholder { color: var(--wwi-muted); opacity: 1; }
.search-submit {
	position: absolute; inset: 1px 1px 1px auto; display: grid; place-items: center; width: 44px;
	padding: 8px; border: 0; border-radius: 0 3px 3px 0; background: transparent; color: var(--wwi-red);
}
.search-submit:hover { background: #eee6db; color: var(--wwi-ink); }
.header-tools .search-form input[type="search"] { min-height: 36px; padding-block: 6px; border-color: rgb(255 255 255 / 24%); background: rgb(255 255 255 / 5%); color: #fff; font-size: .75rem; }
.header-tools .search-field::placeholder { color: #e4cecc; }
.header-tools .search-submit { color: #fff; }
.header-tools .search-submit:hover { background: rgb(255 255 255 / 12%); }
.site-header-image { width: min(var(--wwi-content-width), calc(100% - 80px)); margin: 24px auto; }
.site-header-image img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 4px; }

/* Navigation remains legible with long menus and nested page menus. */
.site-navigation { position: relative; z-index: 5; background: var(--wwi-surface); color: var(--wwi-ink); border-bottom: 1px solid var(--wwi-border); }
.navigation-inner { display: flex; align-items: center; min-height: 44px; }
.primary-menu, .primary-menu ul, .footer-menu { padding: 0; margin: 0; list-style: none; }
.primary-menu { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 8px; }
.primary-menu li { position: relative; }
.primary-menu a { display: block; padding: 10px 14px; color: var(--wwi-ink); font-size: .83rem; font-weight: 600; text-decoration: none; }
.primary-menu > li:first-child > a { padding-left: 0; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a, .primary-menu .current-menu-ancestor > a { color: var(--wwi-red); }
.primary-menu > :is(.current-menu-item, .current_page_item, .current-menu-ancestor) > a::after {
	content: ""; position: absolute; right: 14px; bottom: 0; left: 14px; height: 3px; background: var(--wwi-red);
}
.primary-menu > li:first-child > a::after { left: 0; }
.primary-menu :is(.sub-menu, .children) {
	position: absolute; top: 100%; left: 0; display: none; min-width: 230px; padding: 8px;
	border: 1px solid var(--wwi-border); border-top: 2px solid var(--wwi-red); border-radius: 0 0 4px 4px;
	background: var(--wwi-surface); box-shadow: 0 14px 30px rgb(40 37 34 / 10%);
}
.primary-menu :is(.sub-menu, .children) :is(.sub-menu, .children) { top: 0; left: 100%; }
.primary-menu li:hover > :is(.sub-menu, .children), .primary-menu li:focus-within > :is(.sub-menu, .children) { display: block; }
.primary-menu :is(.sub-menu, .children) a { padding: 10px 12px; font-weight: 500; }
.primary-menu :is(.sub-menu, .children) a:hover { background: var(--wwi-paper); }
.menu-toggle, .submenu-toggle { display: none; }
.menu-toggle[hidden], .submenu-toggle[hidden] { display: none; }

/* Open editorial canvas, with a separate rail for supporting material. */
.site-main { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 48px; padding-block: 52px 88px; min-height: 55vh; }
.content-area { min-width: 0; }
.no-sidebar .site-main { grid-template-columns: minmax(0, 1fr); }
.no-sidebar:not(.home):not(.archive):not(.search):not(.blog) .content-area { width: min(100%, 900px); margin-inline: auto; }
.page-header, .entry-header { margin-bottom: 32px; }
.entry-header--untitled { margin-bottom: 0; } /* Title hidden: no empty header gap above the content. */
.page-title, .archive-title, .entry-title, .widget-title, .comments-title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.18; letter-spacing: -.035em; }
.page-title, .archive-title { margin: 0 0 24px; font-size: clamp(2.2rem, 4.5vw, 3.5rem); text-wrap: balance; }
.entry-header > .page-title::after, .page-header::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 26px; background: var(--wwi-red); }
.entry-title { margin: 0 0 14px; font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.entry-title a { color: var(--wwi-ink); text-decoration: none; }
.entry-title a:hover { color: var(--wwi-red); }
.entry-meta { margin: 0 0 12px; color: var(--wwi-muted); font-size: .72rem; letter-spacing: .055em; text-transform: uppercase; }
.entry-featured-image { margin-block: 32px; }
.entry-featured-image img { max-height: 600px; width: auto; border-radius: 4px; }
/* Single articles use a calm reading measure and supporting, uncropped imagery. */
/* Single posts use the full content column (no extra side gutters); only the reading text keeps a sensible cap on very wide layouts. */
.single-post .single-article .entry-content { max-width: none; }
.single-article .entry-header { margin-bottom: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--wwi-border); }
.single-article .page-title { margin: 12px 0 20px; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.16; }
.single-article .entry-header > .page-title::after { display: none; }
.single-article .entry-meta { margin: 0; font-size: .75rem; letter-spacing: .025em; text-transform: none; }
.article-categories { font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.article-categories a { text-decoration: none; }
.article-categories a:hover { text-decoration: underline; }
.article-categories span { padding-inline: 8px; color: var(--wwi-muted); }
.single-article .entry-featured-image { width: min(100%, 560px); margin: 0 auto 36px; }
.single-article .entry-featured-image img { width: auto; max-width: 100%; max-height: 300px; margin-inline: auto; object-fit: contain; border-radius: 3px; }
.single-article .entry-featured-image figcaption { margin-top: 10px; color: var(--wwi-muted); font-size: .78rem; line-height: 1.6; text-align: center; }
.single-article .entry-content { font-size: 1.0625rem; line-height: 1.85; }
.single-post .post-navigation { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--wwi-border); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.post-navigation a { display: block; color: var(--wwi-ink); text-decoration: none; }
.post-navigation a:hover { color: var(--wwi-red); }
.post-navigation-label { display: block; margin-bottom: 8px; color: var(--wwi-muted); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
.post-navigation-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.4; }
.entry-content { max-width: var(--wwi-reading-width); display: flow-root; }
.home .entry-content { max-width: none; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content p, .entry-summary p { margin: 0 0 1.4em; }
.entry-content :is(h2, h3, h4) { margin: 1.8em 0 .7em; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.25; letter-spacing: -.025em; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.entry-content h3 { font-size: 1.45rem; }
.entry-content :is(ul, ol) { padding-left: 1.5em; margin: 0 0 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { padding: 8px 0 8px 26px; margin: 2em 0; border-left: 2px solid var(--wwi-red); color: #5e554e; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.6; }
.entry-content :is(figure, .wp-block-image) { max-width: 100%; margin: 1.8em 0; }
.entry-content :is(figcaption, .wp-caption-text) { margin-top: 10px; color: var(--wwi-muted); font-size: .8rem; }
.entry-content table { display: block; width: 100%; overflow-x: auto; margin: 1.5em 0; border-collapse: collapse; }
.entry-content :is(th, td) { padding: 12px 16px; border: 1px solid var(--wwi-border); text-align: left; }
.entry-content th { background: #eee8dd; }
.entry-content :is(iframe, video, embed, object) { max-width: 100%; }
.entry-content pre { overflow-x: auto; padding: 20px; background: #eee8dd; }
.entry-content hr { border: 0; border-top: 1px solid var(--wwi-border); margin-block: 36px; }
.entry-content .wp-block-gallery { gap: 24px; }
.entry-content .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.entry-content .gallery-columns-1 { grid-template-columns: minmax(0, 1fr); }
.entry-content .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.entry-content .gallery-item { width: auto !important; min-width: 0; margin: 0; }
.entry-content .gallery-icon img { margin-inline: auto; border: 0 !important; }
.entry-content .gallery br { display: none; }
.wp-block-button__link, .comment-form input[type="submit"] { padding: 12px 22px; border: 1px solid var(--wwi-red); border-radius: 4px; background: var(--wwi-red); color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; }
.wp-block-button__link:hover, .comment-form input[type="submit"]:hover { background: var(--wwi-green); border-color: var(--wwi-green); color: #fff; }

/* Image-first stories with restrained framing. */
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
.post-card { min-width: 0; overflow: hidden; border-bottom: 1px solid var(--wwi-border); }
.post-card .post-thumbnail { display: block; overflow: hidden; background: #eee8dd; border-radius: 4px; }
.post-card .post-thumbnail img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 18px; transition: transform 220ms ease; }
.post-card .post-thumbnail:hover img { transform: scale(1.035); }
.post-card-content { padding: 22px 0 28px; }
.post-card .entry-title { margin: 0 0 14px; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.post-card .entry-summary { color: #605950; font-size: .9rem; line-height: 1.75; }
.read-more { display: inline-flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 600; text-decoration: none; }
.read-more::after { content: "\2192"; font-size: 1.15rem; transition: transform 160ms ease; }
.read-more:hover::after { transform: translateX(4px); }
/* Category archives: one row per item, cover on the left. */
.post-list.post-list--rows, .no-sidebar .post-list.post-list--rows { grid-template-columns: minmax(0, 1fr); gap: 0; }
.post-list--rows .post-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 32px; align-items: start; padding-block: 28px; border-bottom: 1px solid var(--wwi-border); }
.post-list--rows .post-card:first-child { padding-top: 0; }
.post-list--rows .post-card:not(.has-post-thumbnail) { grid-template-columns: minmax(0, 1fr); }
.post-list--rows .post-thumbnail img { aspect-ratio: 3 / 4; object-fit: cover; padding: 0; border-radius: 4px; }
.post-list--rows .post-card-content { padding: 0; }
.post-list--rows .entry-title { margin-bottom: 8px; }
.post-list--rows .entry-categories { margin: 0 0 14px; color: var(--wwi-muted); font-size: .78rem; letter-spacing: .04em; }
.post-list--rows .entry-categories a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.post-list--rows .entry-categories a:hover { color: var(--wwi-red); }
.post-list--rows .entry-summary { max-width: 62ch; font-size: .95rem; }
.post-list--rows .entry-summary p { margin-bottom: 1.1em; }
@media (max-width: 600px) {
	.post-list--rows .post-card { grid-template-columns: 112px minmax(0, 1fr); gap: 0 18px; padding-block: 22px; }
	.post-list--rows .entry-title { font-size: 1.2rem; }
	.post-list--rows .entry-summary { font-size: .88rem; }
	.post-list--rows .entry-summary p { margin-bottom: .8em; }
}
.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers, .page-links a, .page-links > .post-page-numbers { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; padding: 6px 12px; border: 1px solid var(--wwi-border); border-radius: 3px; text-decoration: none; }
.page-numbers:hover { background: #eee8dd; }
.page-numbers.current { border-color: var(--wwi-red); background: var(--wwi-red); color: #fff; }
.page-links { margin-top: 28px; }

.sidebar { display: grid; min-width: 0; gap: 30px; padding-left: 28px; border-left: 1px solid var(--wwi-border); }
.widget { min-width: 0; padding-bottom: 28px; border-bottom: 1px solid var(--wwi-border); font-size: .86rem; }
.widget:last-child { border-bottom: 0; padding-bottom: 0; }
.widget-title, .widget .wp-block-heading { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 400; line-height: 1.3; }
.widget ul { padding: 0; margin: 0; list-style: none; }
.widget li + li { margin-top: 12px; }
.widget li ul { padding-left: 16px; margin-top: 12px; }
.widget a { color: #51483f; text-decoration: none; }
.widget a:hover { color: var(--wwi-red); text-decoration: underline; }
.widget select { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid var(--wwi-border); border-radius: 4px; background: var(--wwi-surface); color: var(--wwi-ink); font-size: .85rem; }
.widget img { max-width: 100%; }
.widget :is(table, .wp-calendar-table) { width: 100%; font-size: .8rem; text-align: center; }
.widget .wp-block-search__input { min-width: 0; border: 1px solid var(--wwi-border); border-radius: 4px; padding: 8px; }
.widget .wp-block-search__button { border: 0; border-radius: 4px; background: var(--wwi-red); color: #fff; }

.site-footer { padding-block: 40px; border-top: 4px solid #657466; background: #283b31; color: #d9ded7; font-size: .8rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 36px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #f6f2e9; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.comments-area { min-width: 0; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--wwi-border); }
.comments-title, .comment-reply-title { margin: 0 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 400; }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { padding-left: 24px; list-style: none; }
.comment-body { padding-block: 20px; border-bottom: 1px solid var(--wwi-border); }
.comment-author .avatar { float: left; margin: 4px 12px 8px 0; border-radius: 50%; }
.comment-metadata { font-size: .75rem; }
.comment-form label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 600; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--wwi-border); border-radius: 4px; background: var(--wwi-surface); color: var(--wwi-ink);
}
.comment-form textarea { min-height: 160px; resize: vertical; }
.comment-form-cookies-consent { display: flex; align-items: baseline; gap: 10px; }
.comment-form-cookies-consent label { font-weight: 400; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }

@media (min-width: 1100px) {
	.no-sidebar .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
	.header-inner { min-height: 93px; padding-block: 14px; }
	.header-masthead .header-search { flex: 0 0 160px; }
	body.has-header-search .header-masthead .header-search { flex-basis: 44px; }
	.has-header-search .header-search-toggle:not([hidden]) { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid rgb(255 249 240 / 18%); border-radius: 50%; background: transparent; color: #e1c6c4; }
	.has-header-search .header-search-toggle:hover { background: rgb(255 249 240 / 8%); color: #fff9f0; }
	.has-header-search .header-search:not(.is-open) #header-search-panel { display: none; }
	.has-header-search .header-search.is-open #header-search-panel { position: absolute; top: 50%; right: 58px; width: min(360px, calc(100% - 58px)); transform: translateY(-50%); }
	.header-masthead .search-form input[type="search"] { font-size: 16px; }
	.has-header-search .header-inner.is-search-open .site-branding { visibility: hidden; }
	.header-search.is-open .search-open-icon { display: none; }
	.header-search.is-open .search-close-icon { display: block; }
	.header-search-toggle:focus-visible { outline-color: #f0d6ad; }
	.header-inner, .header-tools-inner, .navigation-inner, .site-main, .footer-inner { width: calc(100% - 48px); }
	.site-main { grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; }
	.sidebar { padding-left: 22px; }
	.primary-menu { gap: 0; }
	.primary-menu a { padding-inline: 11px; font-size: .78rem; }
	.site-branding { gap: 20px; }
}
@media (max-width: 780px) {
	.header-masthead .header-inner { gap: 14px; }
	.header-masthead::after { right: -55px; opacity: .05; }
	.header-inner, .header-tools-inner, .navigation-inner, .site-main, .footer-inner { width: calc(100% - 40px); }
	.header-inner { min-height: 93px; padding-block: 14px; }
	.header-tools-inner { gap: 8px 16px; padding-block: 2px; font-size: .7rem; }
	.utility-navigation { min-width: 0; }
	.utility-menu { flex-wrap: nowrap; max-width: 60vw; overflow-x: auto; }
	.utility-menu a, .social-menu a { white-space: nowrap; }
	.header-tools-right { gap: 12px; }
	.utility-menu { gap: 2px 14px; }
	.site-branding { gap: 16px; }
	.custom-logo { max-width: 80px; max-height: 48px; }
	.site-description { margin-top: 6px; font-size: .75rem; }
	.site-header-image { width: calc(100% - 40px); margin-block: 20px; }
	.navigation-inner { display: block; min-height: 48px; padding-block: 4px; }
	.menu-toggle:not([hidden]) { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 6px 12px; margin-left: auto; border: 1px solid var(--wwi-border); border-radius: 4px; background: transparent; color: var(--wwi-ink); font-size: .8rem; font-weight: 600; }
	/* Block flow prevents a tall expanded submenu from wrapping the flex list into columns. */
	.primary-menu { display: block; width: 100%; padding-top: 8px; max-height: calc(100vh - 220px); max-height: max(100px, calc(100dvh - 220px)); overflow-y: auto; overscroll-behavior: contain; }
	.primary-menu > li { width: 100%; }
	body.has-navigation-toggle .primary-menu:not(.is-open) { display: none; }
	.primary-menu a, .primary-menu > li:first-child > a { padding: 12px; font-size: .9rem; }
	.primary-menu > :is(.current-menu-item, .current_page_item, .current-menu-ancestor) > a { background: #eee8dd; border-radius: 3px; }
	.primary-menu > li > a::after { display: none; }
	.primary-menu :is(.sub-menu, .children), .primary-menu :is(.sub-menu, .children) :is(.sub-menu, .children) { position: static; display: block; min-width: 0; padding: 0 0 0 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
	.primary-menu .has-submenu-toggle:not(.is-submenu-open) > :is(.sub-menu, .children) { display: none; }
	.primary-menu li.has-submenu-toggle { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; }
	.primary-menu li.has-submenu-toggle > a { grid-column: 1; grid-row: 1; }
	.primary-menu .submenu-toggle:not([hidden]) { display: grid; grid-column: 2; grid-row: 1; place-items: center; width: 40px; height: 40px; border: 1px solid var(--wwi-border); border-radius: 3px; background: transparent; color: var(--wwi-red); }
	.primary-menu .submenu-toggle span { transition: transform 160ms ease; }
	.primary-menu .submenu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
	.primary-menu li.has-submenu-toggle > :is(.sub-menu, .children) { grid-column: 1 / -1; grid-row: 2; width: 100%; }
	.site-main { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 32px 56px; }
	.sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--wwi-border); }
	.widget { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 480px) {
	.site-branding { gap: 10px; }
	.site-title { font-size: clamp(1.05rem, 4.6vw, 1.4rem); }
	.custom-logo { max-width: 44px; max-height: 52px; }
	.site-description { font-size: .7rem; line-height: 1.4; }
	.header-tools .header-search { width: min(100%, 230px); margin-left: auto; }
	.page-title, .archive-title { font-size: 2.15rem; }
	.post-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.sidebar { grid-template-columns: minmax(0, 1fr); }
	.entry-content .gallery { gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.entry-content .gallery-columns-1 { grid-template-columns: minmax(0, 1fr); }
	.alignleft, .alignright { float: none; margin: 1.5em 0; }
	.footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 601px) and (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}
@media (max-height: 600px) {
	.header-inner { min-height: 76px; padding-block: 10px; }
	.header-tools { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
