/*
Theme Name: Media Wall Planner
Theme URI: https://mediawallplanner.co.uk
Author: Media Wall Planner
Description: A clean editorial magazine theme for Media Wall Planner: centred logo, sticky navigation, portrait card grids, long-form article layout with sidebar, built-in related posts, share buttons, ad slots and newsletter areas.
Version: 1.4.1
Requires at least: 6.4
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: mediawallplanner
*/

/* ---------- Tokens ---------- */
:root {
  --charcoal: #1F2427;
  --text: #3A3F42;
  --oak: #9A6532;
  --oak-light: #F1E4D3;
  --oak-bright: #C9965E;
  --ember: #BF4E26;
  --plaster: #F5F1EB;
  --plaster-dark: #EDE6DC;
  --stone: #6E6862;
  --line: #E8E1D8;
  --white: #fff;
  --font-head: "Jost", "Century Gothic", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --container: 1240px;
  --gutter: 24px;
  --radius: 4px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--charcoal); text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
a:hover { color: var(--oak); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--charcoal); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 2px; }
.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; }
.screen-reader-text:focus { background: var(--white); clip: auto; clip-path: none; color: var(--charcoal); display: block; font-size: 14px; height: auto; left: 8px; padding: 12px 16px; top: 8px; width: auto; z-index: 100000; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: relative; z-index: 50; }
.site-branding { text-align: center; padding: 30px 0 22px; }
.site-branding .custom-logo-link, .site-branding .site-title { display: inline-block; }
.site-branding img { width: 260px; height: auto; margin: 0 auto; }
.site-title { font-family: var(--font-head); font-size: 30px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.site-title a { color: var(--charcoal); }
.site-description { margin: 4px 0 0; font-family: var(--font-head); font-size: 13px; color: var(--stone); letter-spacing: .08em; text-transform: uppercase; }

.nav-bar { background: #FBF9F6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; transition: box-shadow .2s ease; }
.admin-bar .nav-bar { top: 32px; }
.nav-bar.is-stuck { box-shadow: 0 4px 18px rgba(31, 36, 39, .08); }
.nav-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.nav-social, .nav-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.nav-tools { justify-content: flex-end; }
.nav-social a, .nav-tools button { color: var(--charcoal); font-size: 15px; background: none; border: 0; padding: 6px; cursor: pointer; line-height: 1; }
.nav-social a:hover, .nav-tools button:hover { color: var(--oak); }
.nav-tools .icon { width: 20px; height: 20px; }
.menu-toggle { display: none; }

.main-navigation { flex: 1 1 auto; min-width: 0; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > div > ul, .main-navigation > ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; }
.main-navigation li { position: relative; }
/* The open item (and its dropdown) always sits above neighbouring items, even if the menu wraps. */
.main-navigation li:hover, .main-navigation li:focus-within { z-index: 110; }
.main-navigation > div > ul > li > a, .main-navigation > ul > li > a {
  display: block; padding: 16px 12px; white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--charcoal);
}
.main-navigation li.current-menu-item > a, .main-navigation li.current-menu-ancestor > a, .main-navigation a:hover { color: var(--oak); }
.main-navigation .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .7; }
.main-navigation .sub-menu {
  position: absolute; top: 100%; left: 50%; z-index: 100; min-width: 240px; padding: 10px 0; background: var(--charcoal); border-radius: var(--radius);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: all .2s ease; box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.main-navigation .sub-menu::before { content: ""; position: absolute; top: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--charcoal); }
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-navigation .sub-menu a { display: block; padding: 8px 22px; font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--plaster); }
.main-navigation .sub-menu a:hover { color: #E3B98C; }
.main-navigation li.special > a { background: var(--ember); color: var(--white); border-radius: var(--radius); padding: 9px 16px; margin: 7px 0 7px 8px; }
.main-navigation li.special > a:hover { background: var(--charcoal); color: var(--white); }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(31, 36, 39, .96); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay .search-form { width: 100%; max-width: 720px; }
.search-overlay .search-field { background: transparent; border: 0; border-bottom: 2px solid var(--oak-bright); color: var(--white); font-family: var(--font-head); font-size: 32px; padding: 12px 0; }
.search-overlay .search-field::placeholder { color: rgba(255, 255, 255, .5); }
.search-overlay .search-submit { display: none; }
.search-close { position: absolute; top: 24px; right: 24px; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.search-close .icon { width: 28px; height: 28px; }

/* Ad slots */
.ad-slot { text-align: center; margin: 24px auto; }
.ad-slot-header { padding: 16px 0; background: var(--plaster); margin: 0; }
.ad-label { display: block; font-family: var(--font-head); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }

/* ---------- Generic layout ---------- */
.site-main { padding: 40px 0 64px; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.section { margin-bottom: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-title { position: relative; font-size: 26px; margin: 0; padding-bottom: 14px; }
.section-title::after, .deko::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--oak); }
.section-more { font-family: var(--font-head); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--oak); white-space: nowrap; }
.section-more:hover { color: var(--charcoal); }
.archive-header { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.archive-header .eyebrow { font-family: var(--font-head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--oak); margin-bottom: 8px; }
.archive-header h1 { font-size: 46px; margin-bottom: 14px; }
.archive-header .archive-description { color: var(--stone); font-size: 18px; }
.archive-header .archive-description p:last-child { margin-bottom: 0; }
.archive-header .subcat-chips { justify-content: center; margin-top: 22px; }
.archive-header .search-form { max-width: 520px; margin: 18px auto 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 34px 28px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; }
.card-media-wrap { position: relative; }
.card-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--charcoal); aspect-ratio: 4 / 5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.card:hover .card-media img { transform: scale(1.04); opacity: .92; }
.card-landscape .card-media { aspect-ratio: 3 / 2; }
.placeholder-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--plaster); }
.placeholder-media svg { width: 34%; max-width: 120px; height: auto; opacity: .9; }
.card-cat { position: absolute; left: 0; bottom: 0; z-index: 2; }
.cat-ribbon { display: inline-block; background: var(--charcoal); color: var(--white); font-family: var(--font-head); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; }
.cat-ribbon:hover { background: var(--ember); color: var(--white); }
.card-body { padding-top: 14px; }
.meta { font-family: var(--font-head); font-size: 13px; color: var(--stone); line-height: 1.5; margin: 0 0 6px; }
.meta a { color: var(--stone); }
.meta a:hover { color: var(--oak); }
.meta .sep { margin: 0 6px; opacity: .7; }
.card-title { font-size: 19px; line-height: 1.3; margin: 0; }
.card-title a { color: var(--charcoal); background-image: linear-gradient(var(--oak), var(--oak)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s ease, color .2s ease; }
.card:hover .card-title a { background-size: 100% 2px; }
.card-excerpt { font-size: 16px; color: var(--stone); margin: 10px 0 0; line-height: 1.6; }

/* Horizontal list card */
.card-list { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card-list:last-child { border-bottom: 0; }
.card-list .card-media { aspect-ratio: 1; }
.card-list .card-title { font-size: 16px; }
.card-list .meta { margin: 4px 0 0; }

/* ---------- Homepage hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; margin-bottom: 64px; }
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); min-height: 520px; }
.hero-main .card-media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.hero-main .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 36, 39, 0) 30%, rgba(31, 36, 39, .88) 100%); }
.hero-main .placeholder-media { background: var(--charcoal); align-items: flex-start; justify-content: flex-end; padding: 40px; }
.hero-main .placeholder-media svg { width: 22%; opacity: .35; }
.hero-main .hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px; z-index: 3; color: var(--white); }
.hero-main .hero-body .cat-ribbon { background: var(--ember); margin-bottom: 14px; }
.hero-main .card-title { font-size: 40px; line-height: 1.12; color: var(--white); margin-bottom: 12px; }
.hero-main .card-title a { color: var(--white); background-image: linear-gradient(var(--oak-bright), var(--oak-bright)); }
.hero-main .meta, .hero-main .meta a { color: rgba(255, 255, 255, .78); }
.hero-main .hero-excerpt { color: rgba(255, 255, 255, .88); font-size: 17px; margin: 0; max-width: 640px; }
.hero-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 20px; }
.hero-side .card { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 18px; align-items: center; }
.hero-side .card-media { aspect-ratio: 1; }
.hero-side .card-cat { display: none; }
.hero-side .card-body { padding: 0; }
.hero-side .card-title { font-size: 18px; }

/* Start-here strip */
.start-strip { background: var(--plaster); border-radius: var(--radius); padding: 34px 36px; margin-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.start-strip h2 { font-size: 28px; margin-bottom: 8px; }
.start-strip p { margin: 0; color: var(--stone); }
.start-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; counter-reset: steps; }
.start-steps li { counter-increment: steps; }
.start-steps a { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 30px; padding: 7px 16px 7px 8px; font-family: var(--font-head); font-size: 14px; font-weight: 500; }
.start-steps a::before { content: counter(steps); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--charcoal); color: var(--white); font-size: 12px; }
.start-steps a:hover { border-color: var(--oak); }

/* Buttons */
.button, .wp-block-button__link, input[type=submit], button[type=submit], .wpcf7-submit, .mc4wp-form input[type=submit], .comment-form .submit {
  display: inline-block; background: var(--charcoal); color: var(--white); border: 0; border-radius: var(--radius); padding: 13px 26px;
  font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: .03em; cursor: pointer; transition: background-color .2s ease;
}
.button:hover, .wp-block-button__link:hover, input[type=submit]:hover, button[type=submit]:hover, .wpcf7-submit:hover, .mc4wp-form input[type=submit]:hover { background: var(--ember); color: var(--white); }
.button-ember { background: var(--ember); }
.button-ember:hover { background: var(--charcoal); }

/* Newsletter band */
.newsletter-band { background: var(--charcoal); color: var(--plaster); border-radius: var(--radius); padding: 48px; margin-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.newsletter-band h2 { color: var(--white); font-size: 30px; margin-bottom: 10px; }
.newsletter-band p { margin: 0; color: rgba(245, 241, 235, .82); }
.newsletter-band .eyebrow { font-family: var(--font-head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--oak-bright); margin-bottom: 10px; }
.newsletter-band input[type=email], .newsletter-band input[type=text] { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: var(--white); }
.newsletter-band input::placeholder { color: rgba(255, 255, 255, .55); }
.newsletter-band input[type=submit], .newsletter-band .button { background: var(--ember); }
.newsletter-band input[type=submit]:hover, .newsletter-band .button:hover { background: var(--oak); }
.newsletter-band .mc4wp-form-fields p { margin-bottom: 10px; }

/* ---------- Single post ---------- */
.breadcrumbs { font-family: var(--font-head); font-size: 13px; color: var(--stone); margin-bottom: 18px; }
.breadcrumbs a { color: var(--stone); }
.entry-header { margin-bottom: 26px; }
.entry-header .meta { font-size: 14px; margin-bottom: 14px; }
.entry-title { font-size: 46px; font-weight: 700; line-height: 1.12; margin-bottom: 18px; }
.entry-dek { font-size: 21px; font-style: italic; color: var(--stone); line-height: 1.55; position: relative; padding-bottom: 22px; margin: 0; }
.entry-dek::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--oak); }
.entry-featured { margin: 0 0 34px; border-radius: var(--radius); overflow: hidden; }
.entry-featured img { width: 100%; }
.entry-featured figcaption { font-family: var(--font-head); font-size: 13px; color: var(--stone); padding-top: 8px; }

.entry-content { font-size: 19px; line-height: 1.78; }
.entry-content > * { margin-top: 0; }
.entry-content h2 { font-size: 30px; margin: 1.7em 0 .6em; }
.entry-content h3 { font-size: 23px; margin: 1.5em 0 .5em; }
.entry-content h4 { font-size: 19px; margin: 1.4em 0 .5em; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.25em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--oak); }
.entry-content a { color: var(--oak); border-bottom: 1px solid rgba(154, 101, 50, .4); }
.entry-content a:hover { background: var(--oak-light); color: var(--charcoal); border-bottom-color: var(--oak); }
.entry-content strong { color: var(--charcoal); }
.entry-content blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--oak); font-family: var(--font-head); font-size: 23px; line-height: 1.45; color: var(--charcoal); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 1.8em 0; }
.entry-content code { font-size: .85em; background: var(--plaster); padding: 2px 6px; border-radius: 3px; }
.entry-content .alignwide { margin-left: -40px; margin-right: -40px; max-width: none; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }

/* Tables */
.entry-content .wp-block-table { overflow-x: auto; margin: 1.8em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.entry-content th { background: var(--charcoal); color: var(--white); font-family: var(--font-head); font-weight: 500; text-align: left; }
.entry-content th, .entry-content td { padding: 11px 13px; border: 1px solid var(--line); vertical-align: top; }
.entry-content tbody tr:nth-child(even) { background: #FAF7F3; }
.entry-content td a { border-bottom: 0; }

/* Content boxes from the content build */
.mwp-box { background: var(--plaster); border-left: 4px solid var(--oak); padding: 22px 26px; margin: 30px 0; border-radius: var(--radius); font-size: 17px; }
.mwp-box > :last-child, .mwp-box ul:last-child, .mwp-box ol:last-child { margin-bottom: 0; }
.mwp-box-title { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--oak); margin-bottom: 8px !important; }
.mwp-summary { border-left-color: var(--charcoal); }
.mwp-summary .mwp-box-title { color: var(--charcoal); }
.mwp-warning { border-left-color: var(--ember); background: #FBEDE6; }
.mwp-warning .mwp-box-title { color: var(--ember); }
.mwp-affiliate { font-size: 15px; color: var(--stone); background: transparent; border-left-color: var(--line); padding: 8px 18px; margin-top: 0; }
.mwp-affiliate a { color: var(--stone); }

/* Post footer pieces */
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.entry-tags a { font-family: var(--font-head); font-size: 13px; background: var(--plaster); padding: 5px 12px; border-radius: 30px; color: var(--charcoal); }
.entry-tags a:hover { background: var(--oak-light); }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-label { font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--charcoal); color: var(--white); border: 0; cursor: pointer; font-size: 16px; }
.share a:hover, .share button:hover { background: var(--ember); color: var(--white); }
.share .icon { width: 17px; height: 17px; }
.share .copied { background: var(--oak); }

.author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; background: var(--plaster); border-radius: var(--radius); padding: 24px; margin: 34px 0; }
.author-box img { border-radius: 50%; }
.author-box h3 { font-size: 18px; margin-bottom: 4px; }
.author-box p { font-size: 16px; margin: 0; color: var(--stone); }

.post-newsletter { background: var(--charcoal); color: var(--plaster); border-radius: var(--radius); padding: 30px 32px; margin: 40px 0; }
.post-newsletter h3 { color: var(--white); font-size: 22px; margin-bottom: 6px; }
.post-newsletter p { color: rgba(245, 241, 235, .82); font-size: 16px; }
.post-newsletter input[type=email] { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: var(--white); }
.post-newsletter input[type=submit] { background: var(--ember); }

.related { margin: 50px 0 10px; }
.related .grid { gap: 26px 22px; }
.related .card-title { font-size: 17px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-nav a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; }
.post-nav .next a { grid-template-columns: minmax(0, 1fr) 72px; text-align: right; }
.post-nav .next .post-nav-thumb { order: 2; }
.post-nav-thumb { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--plaster); }
.post-nav-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-nav-label { display: block; font-family: var(--font-head); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--oak); }
.post-nav-title { font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--charcoal); }

/* Pages */
.page-content { max-width: 800px; margin: 0 auto; }
.page-content .entry-title { text-align: center; margin-bottom: 34px; }
.page-content .entry-featured { margin-bottom: 40px; }

/* ---------- Sidebar & widgets ---------- */
.sidebar { position: sticky; top: 90px; }
.widget { background: var(--plaster); border-radius: var(--radius); padding: 26px; margin-bottom: 30px; font-size: 16px; }
.widget-title { position: relative; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; padding-bottom: 12px; margin-bottom: 16px; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--oak); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget_categories li, .widget-cats li { display: flex; justify-content: space-between; align-items: center; }
.widget_categories li a, .widget-cats li a { font-family: var(--font-head); font-weight: 500; }
.cat-count { display: inline-flex; min-width: 26px; height: 22px; padding: 0 7px; align-items: center; justify-content: center; border-radius: 11px; background: var(--oak); color: var(--white); font-family: var(--font-head); font-size: 12px; }
.widget .card-list { padding: 12px 0; }
.widget .card-list .card-media { width: 72px; }
.widget .card-list { grid-template-columns: 72px minmax(0, 1fr); }
.widget-cta { background: var(--charcoal); color: var(--plaster); }
.widget-cta .widget-title { color: var(--white); }
.widget-cta p { color: rgba(245, 241, 235, .82); }
.widget-cta .button { background: var(--ember); }
.widget-cta .button:hover { background: var(--oak); }

/* Forms */
input[type=text], input[type=email], input[type=url], input[type=search], input[type=tel], textarea, select {
  width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 16px; color: var(--charcoal);
}
input:focus, textarea:focus, select:focus { border-color: var(--oak); outline: none; }
label { font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--charcoal); }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-submit { padding: 12px 18px; }
.wpcf7-form p { margin-bottom: 18px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 textarea { margin-top: 6px; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 50px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-head); font-weight: 600; }
.pagination .page-numbers.current { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--oak); color: var(--oak); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 50px; }
.comments-title { font-size: 26px; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-body { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-family: var(--font-head); font-size: 14px; }
.comment-meta img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; font-style: normal; color: var(--charcoal); }
.comment-metadata a { color: var(--stone); }
.reply a { font-family: var(--font-head); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--oak); }
.comment-respond { background: var(--plaster); border-radius: var(--radius); padding: 30px; }
.comment-reply-title { font-size: 22px; }
.comment-form p { margin-bottom: 16px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent input { margin-top: 6px; }
.comment-form-cookies-consent label { font-family: var(--font-body); font-weight: 400; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plaster-dark); color: #4A4F52; font-size: 16px; margin-top: 20px; }
.footer-widgets { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px; padding: 64px var(--gutter) 50px; }
.footer-widgets .widget { background: none; padding: 0; margin-bottom: 26px; }
.footer-widgets .widget li { border-bottom-color: #DDD4C8; padding: 6px 0; }
.footer-widgets .widget-title::after { background: var(--oak); }
.footer-logo img { width: 220px; height: auto; margin-bottom: 18px; }
.footer-connect { margin-top: 28px; }
.footer-connect .widget-title { margin-bottom: 16px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.footer-connect .footer-social { margin-top: 0; }
.footer-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--charcoal); color: var(--white); font-size: 16px; transition: background-color .2s ease; }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--ember); color: var(--white); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-bottom { background: var(--plaster); border-top: 1px solid #DDD4C8; padding: 22px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.footer-menu a { font-family: var(--font-head); font-size: 14px; font-weight: 500; }
.copyright { font-family: var(--font-head); font-size: 13px; color: var(--stone); margin: 0; }

.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--charcoal); color: var(--white); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .25s ease; z-index: 40; }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--ember); }

/* 404 / empty */
.not-found { text-align: center; max-width: 640px; margin: 20px auto 60px; }
.not-found .big { font-family: var(--font-head); font-size: 120px; font-weight: 700; line-height: 1; color: var(--oak-light); margin-bottom: 10px; }
.not-found .search-form { max-width: 480px; margin: 26px auto 0; }
.not-found-cta { margin: 30px auto 0; padding: 22px 24px; max-width: 480px; background: var(--plaster); border-radius: var(--radius); }
.not-found-cta p { margin: 0 0 14px; font-family: var(--font-head); font-size: 17px; color: var(--charcoal); }

/* WordPress core classes */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption-text, .wp-element-caption { font-family: var(--font-head); font-size: 13px; color: var(--stone); text-align: center; margin-top: 8px; }
.sticky, .bypostauthor, .gallery-caption { }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .layout-sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-main .card-title { font-size: 34px; }
  /* Switch to the mobile menu before the desktop menu runs out of room. */
  .nav-social { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; order: -1; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
  .menu-toggle::after { content: "Menu"; }
  .nav-tools { flex: 1 1 auto; justify-content: space-between; }
  .nav-bar .container { min-height: 56px; }
  .main-navigation { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(31, 36, 39, .1); display: none; max-height: calc(100vh - 120px); overflow-y: auto; }
  .main-navigation.is-open { display: block; }
  .main-navigation > div > ul, .main-navigation > ul { display: block; padding: 8px var(--gutter) 16px; }
  .main-navigation > div > ul > li > a, .main-navigation > ul > li > a { padding: 12px 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .main-navigation .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; }
  .main-navigation .sub-menu::before { display: none; }
  .main-navigation .sub-menu a { color: var(--text); padding: 8px 0; }
  .main-navigation .menu-item-has-children > a::after { display: none; }
  .main-navigation li.special > a { display: inline-block; margin: 14px 0 0; border-bottom: 0; }
}
@media (max-width: 960px) {
  .layout-sidebar { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-main { min-height: 440px; }
  .hero-side { grid-template-rows: none; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .newsletter-band { grid-template-columns: minmax(0, 1fr); padding: 36px; gap: 24px; }
  .start-strip { grid-template-columns: minmax(0, 1fr); }
  .admin-bar .nav-bar { top: 46px; }
}
@media (max-width: 782px) { .admin-bar .nav-bar { top: 0; } }
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .site-branding { padding: 22px 0 16px; }
  .site-branding img { width: 210px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .card-title { font-size: 16px; }
  .hero-main { min-height: 400px; }
  .hero-main .hero-body { padding: 22px; }
  .hero-main .card-title { font-size: 26px; }
  .hero-main .hero-excerpt { display: none; }
  .entry-title { font-size: 32px; }
  .entry-dek { font-size: 18px; }
  .entry-content { font-size: 18px; }
  .entry-content h2 { font-size: 25px; }
  .entry-content h3 { font-size: 21px; }
  .entry-content .alignwide { margin-left: 0; margin-right: 0; }
  .archive-header h1 { font-size: 34px; }
  .section-title { font-size: 22px; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-widgets { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 44px var(--gutter) 30px; }
  .footer-connect { margin-bottom: 26px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
  .newsletter-band { padding: 28px 22px; }
  .start-strip { padding: 26px 22px; }
  .mwp-box { padding: 18px 20px; }
  .comment-list .children { padding-left: 16px; }
}
@media (max-width: 420px) {
  .grid-3.related-grid, .card-landscape .card-excerpt { display: none; }
  .meta .sep + * { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
