/*
Theme Name: Fix How-To
Theme URI: https://fixhowto.com
Author: Dodson Development
Description: Workshop-manual content theme for Fix How-To — step-by-step home repair guides. Numbered sections and guide rows, spec strip on every guide, built-in ad slots (header, in-content, sidebar, footer), table of contents, breadcrumbs, article schema, and a safety box.
Version: 2.0.0
Requires at least: 6.0
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: fix-howto
Tags: blog, two-columns, right-sidebar, custom-menu, custom-logo, featured-images
*/

/* Fonts: self-hosted, SIL Open Font License 1.1. Inter for text, Barlow Condensed for headings. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
	--ww-paper: #f4f1ea;
	--ww-card: #fffdf8;
	--ww-ink: #1b1d21;
	--ww-steel: #25282e;
	--ww-muted: #5b5e66;
	--ww-rule: #d8d2c4;
	--ww-orange: #f26b1d;
	--ww-orange-text: #b8450a;
	--ww-yellow: #ffc533;
	--ww-max: 1160px;
	--ww-content: 700px;
	--ww-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ww-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--ww-paper); color: var(--ww-ink); font-family: var(--ww-font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ww-orange-text); text-underline-offset: 3px; }
a:hover { color: var(--ww-ink); }
:focus-visible { outline: 3px solid var(--ww-orange); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--ww-display); font-weight: 700; color: var(--ww-ink); line-height: 1.08; margin: 1.6em 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.5rem); margin-top: 0; text-transform: uppercase; letter-spacing: .005em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2rem); text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1.35rem; }
p, ul, ol, table, blockquote, dl { margin: 0 0 1.2em; }
blockquote { border-left: 6px solid var(--ww-orange); padding: .5em 1.1em; background: var(--ww-card); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--ww-card); display: block; overflow-x: auto; }
th, td { border: 1px solid var(--ww-ink); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--ww-steel); color: #fff; font-family: var(--ww-display); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 8px 12px; clip: auto; width: auto; height: auto; }
.ww-icon { width: 1em; height: 1em; display: block; }
.ww-label { display: inline-block; font-family: var(--ww-display); font-weight: 600; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ww-orange-text); }
.ww-stripe { height: 10px; background: repeating-linear-gradient(-45deg, var(--ww-yellow) 0 14px, var(--ww-ink) 14px 28px); }

/* Layout */
.ww-container { max-width: var(--ww-max); margin: 0 auto; padding: 0 20px; }
.ww-main-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; padding: 32px 20px 72px; max-width: var(--ww-max); margin: 0 auto; align-items: start; }
.ww-main-wrap.no-sidebar { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--ww-content) + 104px); }
@media (max-width: 980px) { .ww-main-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Header */
.ww-topbar { background: var(--ww-yellow); color: var(--ww-ink); font-family: var(--ww-display); font-weight: 600; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.ww-topbar .ww-container { padding-top: 5px; padding-bottom: 5px; }
@media (max-width: 520px) { .ww-topbar { font-size: .84rem; letter-spacing: .03em; } }
.ww-header { background: var(--ww-steel); border-bottom: 4px solid var(--ww-orange); position: sticky; top: 0; z-index: 50; }
.ww-header-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; min-height: 68px; position: relative; }
.ww-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.ww-brand:hover { color: #fff; }
.ww-brand-mark { width: 38px; height: 38px; flex: none; }
.ww-brand-name { font-family: var(--ww-display); font-size: 1.75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.ww-brand-name span { color: var(--ww-orange); }
.custom-logo { max-height: 48px; width: auto; }
.ww-nav { display: flex; }
.ww-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.ww-nav li { position: relative; display: flex; }
.ww-nav a { display: flex; align-items: center; text-decoration: none; color: #e9e6df; font-family: var(--ww-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; padding: 0 16px; border-left: 1px solid rgba(255, 255, 255, .1); transition: background .12s, color .12s; }
.ww-nav li:last-child > a { border-right: 1px solid rgba(255, 255, 255, .1); }
.ww-nav a:hover, .ww-nav .current-menu-item > a, .ww-nav .current-post-ancestor > a { background: var(--ww-orange); color: var(--ww-ink); }
.ww-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--ww-steel); min-width: 220px; flex-direction: column; }
.ww-nav .sub-menu a { padding: 10px 16px; }
.ww-nav li:hover > .sub-menu, .ww-nav li:focus-within > .sub-menu { display: flex; }
.ww-menu-toggle { display: none; align-self: center; background: transparent; color: #fff; border: 2px solid #fff; border-radius: 0; padding: 6px 14px; font-family: var(--ww-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.ww-menu-toggle[aria-expanded="true"] { background: var(--ww-orange); border-color: var(--ww-orange); color: var(--ww-ink); }
@media (max-width: 900px) {
	.ww-menu-toggle { display: block; }
	.ww-nav { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--ww-steel); border-bottom: 4px solid var(--ww-orange); }
	.ww-nav.is-open { display: block; }
	.ww-nav ul, .ww-nav li { display: block; }
	.ww-nav a { padding: 14px 20px; border: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
	.ww-nav li:last-child > a { border-right: 0; }
	.ww-nav .sub-menu { display: block; position: static; padding-left: 16px; }
}

/* Hero */
.ww-hero { background-color: var(--ww-steel); background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 32px 32px; color: #fff; }
.ww-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: end; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(36px, 6vw, 64px); }
.ww-hero .ww-label { color: var(--ww-yellow); margin-bottom: 14px; }
.ww-hero h1 { color: #fff; font-size: clamp(2.7rem, 7vw, 5rem); line-height: .96; margin: 0 0 .3em; max-width: 12em; }
.ww-hero p { max-width: 36em; color: #cfcbc2; font-size: 1.1rem; margin-bottom: 26px; }
.ww-hero .ww-search { max-width: 540px; }
.ww-plate { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 2px solid #fff; }
.ww-plate > div { padding: 14px 16px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.ww-plate > div:nth-child(2n) { border-right: 0; }
.ww-plate > .ww-plate-wide { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.ww-plate dt { font-family: var(--ww-display); font-weight: 600; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ww-yellow); }
.ww-plate dd { margin: 0; font-family: var(--ww-display); font-weight: 700; font-size: 3rem; line-height: 1; text-transform: uppercase; }
@media (max-width: 860px) {
	.ww-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.ww-plate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ww-plate > div, .ww-plate > div:nth-child(2n), .ww-plate > .ww-plate-wide { grid-column: auto; border-bottom: 0; border-right: 2px solid #fff; padding: 10px 12px; }
	.ww-plate > div:last-child { border-right: 0; }
	.ww-plate dd { font-size: 2rem; }
}

/* Search form */
.ww-search { display: flex; }
.ww-search input[type=search] { flex: 1; min-width: 0; padding: 13px 16px; border: 2px solid var(--ww-ink); border-right: 0; border-radius: 0; background: #fff; color: var(--ww-ink); font: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none; }
.ww-hero .ww-search input[type=search] { border-color: #fff; }
.ww-search input[type=search]:focus { outline: 3px solid var(--ww-yellow); outline-offset: -3px; }
.ww-btn, .ww-search button { background: var(--ww-orange); color: var(--ww-ink); border: 2px solid var(--ww-ink); border-radius: 0; padding: 11px 22px; font-family: var(--ww-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; transition: background .12s; }
.ww-hero .ww-search button { border-color: var(--ww-orange); }
.ww-btn:hover, .ww-search button:hover { background: var(--ww-yellow); color: var(--ww-ink); }
.ww-hero .ww-search button:hover { border-color: var(--ww-yellow); }

/* Section tiles */
.ww-section { padding-top: clamp(36px, 6vw, 60px); }
.ww-section-title { margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.ww-section-title::after { content: ""; flex: 1; height: 2px; background: var(--ww-ink); }
.ww-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border: 2px solid var(--ww-ink); background: var(--ww-card); }
.ww-topic { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 20px 20px 22px; color: var(--ww-ink); text-decoration: none; box-shadow: 2px 0 0 var(--ww-ink), 0 2px 0 var(--ww-ink); transition: background .12s; }
.ww-topic:hover { background: var(--ww-orange); color: var(--ww-ink); }
.ww-topic-no { font-family: var(--ww-display); font-weight: 600; font-size: 1rem; letter-spacing: .12em; color: var(--ww-orange-text); }
.ww-topic:hover .ww-topic-no { color: var(--ww-ink); }
.ww-topic-icon { position: absolute; top: 18px; right: 18px; font-size: 34px; }
.ww-topic-name { font-family: var(--ww-display); font-weight: 700; font-size: 1.7rem; line-height: 1.05; text-transform: uppercase; margin-top: 26px; }
.ww-topic-count { font-size: .9rem; color: var(--ww-muted); }
.ww-topic:hover .ww-topic-count { color: var(--ww-ink); }
@media (max-width: 520px) {
	.ww-topics { grid-template-columns: 1fr 1fr; }
	.ww-topic { padding: 14px 14px 16px; }
	.ww-topic-name { font-size: 1.4rem; margin-top: 20px; }
	.ww-topic-icon { top: 12px; right: 12px; font-size: 28px; }
}

/* Chapters and guide rows */
.ww-manual { padding-bottom: 72px; }
.ww-chapter { margin-top: clamp(40px, 6vw, 64px); scroll-margin-top: 96px; }
.ww-chapter-head { display: flex; align-items: center; gap: 18px; background: var(--ww-steel); color: #fff; padding: 14px 20px 14px 0; }
.ww-chapter-no { align-self: stretch; display: grid; place-items: center; min-width: 72px; margin: -14px 0; background: var(--ww-orange); color: var(--ww-ink); font-family: var(--ww-display); font-weight: 700; font-size: 2.2rem; }
.ww-chapter-head h2 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3.4vw, 2rem); }
.ww-chapter-head p { margin: 2px 0 0; color: #c9c5bc; font-size: .93rem; }
.ww-chapter-head > div { flex: 1; min-width: 0; }
.ww-chapter-link { color: var(--ww-yellow); font-family: var(--ww-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.ww-chapter-link:hover { color: #fff; }
.ww-jobs { list-style: none; margin: 0; padding: 0; background: var(--ww-card); border: 2px solid var(--ww-ink); }
.ww-chapter .ww-jobs { border-top: 0; }
.ww-job { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 36px; gap: 0 18px; align-items: center; padding: 18px 20px 18px 0; border-top: 1px solid var(--ww-rule); transition: background .12s; }
.ww-job:first-child { border-top: 0; }
.ww-job:hover { background: #fff3df; }
.ww-job-no { text-align: center; font-family: var(--ww-display); font-weight: 600; font-size: 1.5rem; color: #a59f90; }
.ww-job:hover .ww-job-no { color: var(--ww-orange-text); }
.ww-job h3 { margin: 0; font-size: 1.45rem; line-height: 1.12; font-weight: 600; }
.ww-job h3 a { color: var(--ww-ink); text-decoration: none; }
.ww-job h3 a::after { content: ""; position: absolute; inset: 0; }
.ww-job p { margin: 5px 0 0; color: var(--ww-muted); font-size: .93rem; line-height: 1.5; max-width: 62em; }
.ww-job .ww-label { font-size: .85rem; margin-bottom: 2px; }
.ww-job-time { font-family: var(--ww-display); font-weight: 600; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; border: 1.5px solid var(--ww-ink); padding: 1px 9px; white-space: nowrap; }
.ww-job-arrow { font-size: 1.4rem; text-align: right; transition: transform .12s; }
.ww-job:hover .ww-job-arrow { transform: translateX(4px); color: var(--ww-orange-text); }
@media (max-width: 640px) {
	.ww-chapter-head { gap: 14px; padding-right: 14px; }
	.ww-chapter-no { min-width: 52px; font-size: 1.7rem; }
	.ww-chapter-head p, .ww-chapter-link span { display: none; }
	.ww-chapter-link { font-size: .95rem; }
	.ww-job { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 0 12px; padding: 14px 14px 14px 0; }
	.ww-job-arrow, .ww-job p { display: none; }
	.ww-job h3 { font-size: 1.28rem; }
}

/* Safety panel (homepage) */
.ww-safety { display: flex; gap: 20px; align-items: flex-start; background: var(--ww-yellow); border: 2px solid var(--ww-ink); padding: clamp(18px, 3vw, 28px); margin-top: clamp(44px, 6vw, 68px); }
.ww-safety-mark { flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: var(--ww-ink); color: var(--ww-yellow); font-family: var(--ww-display); font-weight: 700; font-size: 2.4rem; }
.ww-safety h2 { margin: 0 0 .25em; font-size: 1.6rem; }
.ww-safety p { margin: 0; max-width: 60em; }

/* Archive header */
.ww-archive-head { display: flex; gap: 20px; align-items: center; border-bottom: 4px solid var(--ww-ink); padding: 8px 0 22px; margin-bottom: 26px; }
.ww-archive-head h1 { margin: 0; }
.ww-archive-icon { flex: none; width: 76px; height: 76px; display: grid; place-items: center; background: var(--ww-orange); color: var(--ww-ink); font-size: 42px; }
.ww-archive-desc { color: var(--ww-muted); margin-top: 6px; }
.ww-archive-desc p { margin: 0; }

/* Article */
.ww-article { background: var(--ww-card); border: 2px solid var(--ww-ink); padding: clamp(20px, 4vw, 48px); min-width: 0; }
.ww-breadcrumbs { font-family: var(--ww-display); font-weight: 600; font-size: .98rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ww-muted); margin-bottom: 14px; }
.ww-breadcrumbs a { color: var(--ww-muted); text-decoration: none; }
.ww-breadcrumbs a:hover { color: var(--ww-orange-text); }
.ww-article > h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: .45em; }
.ww-spec { display: flex; flex-wrap: wrap; margin: 0 0 28px; border: 2px solid var(--ww-ink); }
.ww-spec > div { flex: 1 1 140px; padding: 9px 14px; box-shadow: 2px 0 0 var(--ww-ink), 0 2px 0 var(--ww-ink); }
.ww-spec dt { font-family: var(--ww-display); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ww-muted); }
.ww-spec dd { margin: 0; font-family: var(--ww-display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; text-transform: uppercase; }
.ww-spec dd a { color: var(--ww-ink); text-decoration: none; border-bottom: 2px solid var(--ww-orange); }
.ww-featured { margin: 0 0 28px; border: 2px solid var(--ww-ink); }
.ww-entry { max-width: var(--ww-content); font-size: 1.05rem; }
.ww-entry > *:first-child { margin-top: 0; }
.ww-entry h2 { scroll-margin-top: 96px; padding-top: .5em; border-top: 2px solid var(--ww-ink); margin-top: 1.8em; position: relative; }
.ww-entry h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 8px; background: var(--ww-orange); }
.ww-entry h3 { text-transform: uppercase; letter-spacing: .02em; }
.ww-entry li { margin-bottom: .45em; }
.ww-entry ul { list-style: square; padding-left: 1.25em; }
.ww-entry ul li::marker { color: var(--ww-orange); }
.ww-entry ol { list-style: none; counter-reset: step; padding-left: 0; }
.ww-entry ol > li { counter-increment: step; position: relative; padding-left: 50px; margin-bottom: .85em; min-height: 34px; }
.ww-entry ol > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; background: var(--ww-ink); color: #fff; font-family: var(--ww-display); font-weight: 700; font-size: 1.25rem; display: grid; place-items: center; }
.ww-keytakeaways, .ww-callout { background: #fff3df; border: 2px solid var(--ww-ink); border-left: 12px solid var(--ww-orange); padding: 18px 22px; margin: 0 0 1.6em; }
.ww-keytakeaways h2, .ww-callout h3 { margin-top: 0; font-size: 1.3rem; border: 0; padding: 0; }
.ww-keytakeaways h2::before { content: none; }
.ww-kt-title { font-family: var(--ww-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .4em; }
.ww-keytakeaways ul { margin-bottom: 0; }
.ww-toc { border: 2px dashed var(--ww-ink); padding: 14px 20px; margin: 0 0 1.8em; font-size: .97rem; }
.ww-toc summary { font-family: var(--ww-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.ww-toc ol { margin: .6em 0 .2em; padding-left: 1.4em; list-style: decimal-leading-zero; counter-reset: none; }
.ww-toc ol > li { padding-left: 4px; margin-bottom: .3em; min-height: 0; }
.ww-toc ol > li::before { content: none; }
.ww-toc ol > li::marker { font-family: var(--ww-display); font-weight: 600; color: var(--ww-muted); }
.ww-toc a { color: var(--ww-ink); text-decoration: none; border-bottom: 1px solid var(--ww-rule); }
.ww-toc a:hover { border-color: var(--ww-orange); }
.ww-disclaimer { font-size: .9rem; background: var(--ww-yellow); border: 2px solid var(--ww-ink); padding: 14px 18px; margin: 36px 0 0; max-width: var(--ww-content); }
.ww-disclaimer strong { font-family: var(--ww-display); font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; }
.ww-author-box { display: flex; gap: 14px; align-items: flex-start; border: 2px solid var(--ww-ink); padding: 16px; margin-top: 24px; font-size: .95rem; max-width: var(--ww-content); }
.ww-related { margin-top: 44px; }

/* Ads */
.ww-ad { margin: 28px auto; text-align: center; min-height: 100px; clear: both; }
.ww-ad-label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #8d897e; margin-bottom: 4px; }
.ww-ad-header { min-height: 90px; margin: 12px auto; }
.ww-ad-sidebar { min-height: 250px; }
.ww-ad-sticky { position: sticky; top: 96px; }
.ww-ad:empty { display: none; }

/* Sidebar */
.ww-sidebar { font-size: .94rem; }
.ww-sidebar .widget { background: var(--ww-card); border: 2px solid var(--ww-ink); margin-bottom: 20px; padding: 0 16px 14px; }
.ww-sidebar .widget-title, .ww-sidebar h2, .ww-sidebar h3, .ww-sidebar .wp-block-search__label { display: block; background: var(--ww-steel); color: #fff; font-family: var(--ww-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; margin: 0 -16px 14px; padding: 9px 16px; border: 0; }
.ww-sidebar .wp-block-search__inside-wrapper { display: flex; }
.ww-sidebar .wp-block-search__input { flex: 1; min-width: 0; padding: 8px 10px; border: 2px solid var(--ww-ink); border-right: 0; border-radius: 0; font: inherit; -webkit-appearance: none; appearance: none; }
.ww-sidebar .wp-block-search__button { background: var(--ww-orange); color: var(--ww-ink); border: 2px solid var(--ww-ink); border-radius: 0; margin: 0; padding: 6px 12px; font-family: var(--ww-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.ww-sidebar ul { list-style: none; padding: 0; margin: 0; }
.ww-sidebar li { padding: 9px 0; border-top: 1px solid var(--ww-rule); line-height: 1.4; }
.ww-sidebar li:first-child { border-top: 0; padding-top: 0; }
.ww-sidebar li:last-child { padding-bottom: 0; }
.ww-sidebar li a { color: var(--ww-ink); text-decoration: none; font-weight: 500; }
.ww-sidebar li a:hover { color: var(--ww-orange-text); }
.ww-sidebar .wp-block-group > :last-child { margin-bottom: 0; }

/* Pagination */
.ww-pagination { margin-top: 28px; display: flex; gap: 6px; flex-wrap: wrap; }
.ww-pagination .page-numbers { padding: 6px 14px; background: var(--ww-card); border: 2px solid var(--ww-ink); text-decoration: none; color: var(--ww-ink); font-family: var(--ww-display); font-weight: 600; font-size: 1.1rem; }
.ww-pagination .current { background: var(--ww-ink); color: #fff; }

/* Footer */
.ww-footer { background: var(--ww-steel); color: #c9c5bc; font-size: .94rem; }
.ww-footer > .ww-container { padding-top: 48px; padding-bottom: 26px; }
.ww-footer a { color: #fff; text-decoration: none; }
.ww-footer a:hover { color: var(--ww-yellow); }
.ww-footer-cols { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 48px; }
.ww-footer-about p { margin: 14px 0 0; max-width: 30em; }
.ww-footer h3 { color: var(--ww-yellow); font-size: 1.1rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 12px; }
.ww-footer ul { list-style: none; padding: 0; margin: 0; }
.ww-footer li { margin-bottom: 8px; }
.ww-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 36px; padding-top: 18px; font-size: .84rem; }
@media (max-width: 700px) { .ww-footer-cols { grid-template-columns: 1fr 1fr; } .ww-footer-about { grid-column: 1 / -1; } }

/* Comments */
.comment-list { list-style: none; padding: 0; }
.comment-body { border-bottom: 1px solid var(--ww-rule); padding: 14px 0; }
.comment-form input:not([type=submit]), .comment-form textarea { width: 100%; padding: 10px; border: 2px solid var(--ww-ink); border-radius: 0; font: inherit; }

/* WP core alignment */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--ww-muted); text-align: center; }

/* Long words and URLs never push the page wider than the screen. */
.ww-entry, .ww-article h1, .ww-breadcrumbs { overflow-wrap: anywhere; }
