/*
Theme Name: Media DUN Jelai
Theme URI: https://github.com/JelaiPost/Media-Dun-Jelai
Author: JelaiPost
Description: Portal media rasmi yang pantas, responsif dan mudah diurus untuk berita, aktiviti dan maklumat komuniti DUN Jelai.
Version: 1.6.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: media-dun-jelai
Tags: news, blog, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --mdj-red: #000099;
  --mdj-red-dark: #000066;
  --mdj-ink: #171717;
  --mdj-charcoal: #252525;
  --mdj-paper: #f6f4ef;
  --mdj-white: #fff;
  --mdj-muted: #6a6966;
  --mdj-line: #dedbd3;
  --mdj-gold: #d5a744;
  --mdj-radius: 18px;
  --mdj-shadow: 0 18px 50px rgba(24, 19, 14, .10);
  --mdj-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mdj-ink);
  background: var(--mdj-paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--mdj-gold); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  clip: auto !important; width: auto; height: auto; margin: 0;
  top: 12px; left: 12px; z-index: 9999; padding: 10px 14px;
  color: #fff; background: #000;
}
.container { width: min(calc(100% - 40px), var(--mdj-width)); margin-inline: auto; }
.site-main { min-height: 55vh; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid #e7e7e7; }
.header-inner { min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.custom-logo { max-height: 40px; width: auto; display: block; }
.brand-mark { width: 38px; height: 38px; display: block; flex: 0 0 38px; text-decoration: none; }
.brand-mark img { width: 38px; height: 38px; display: block; border-radius: 8px 8px 2px 8px; }
.brand-copy { line-height: 1.1; }
.site-title { display: block; font-family: "Segoe UI", Arial, sans-serif; font-size: 19px; font-weight: 900; text-decoration: none; letter-spacing: -.02em; }
.main-navigation { justify-self: center; }
.main-navigation ul { display: flex; align-items: center; gap: 21px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { position: relative; display: block; padding: 20px 0; font-size: 13px; font-weight: 700; text-decoration: none; }
.main-navigation a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 14px; height: 2px; background: var(--mdj-red); transition: right .2s ease; }
.main-navigation a:hover::after, .main-navigation .current-menu-item > a::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-social, .footer-social { display: flex; align-items: center; gap: 6px; }
.header-social { margin-right: 2px; padding-right: 10px; border-right: 1px solid var(--mdj-line); }
.social-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--mdj-ink); border-radius: 50%; text-decoration: none; transition: color .2s, background .2s, transform .2s; }
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }
.social-icon.social-instagram svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-icon.social-instagram .fill-dot { fill: currentColor; stroke: none; }
.social-icon:hover { color: #fff; background: var(--mdj-red); transform: translateY(-1px); }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; color: var(--mdj-ink); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.icon-button:hover { color: #fff; background: var(--mdj-red); border-color: var(--mdj-red); }
.menu-toggle { display: none; }
.search-panel { display: none; position: fixed; inset: 64px 0 auto; z-index: 990; padding: 20px 0; background: #fff; border-bottom: 1px solid var(--mdj-line); box-shadow: var(--mdj-shadow); }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-field { width: 100%; min-height: 52px; padding: 0 18px; border: 1px solid var(--mdj-line); border-radius: 10px; }
.search-submit, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; color: #fff; background: var(--mdj-red); border: 0; border-radius: 10px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.search-submit:hover, .button:hover { background: var(--mdj-red-dark); transform: translateY(-2px); }

/* Featured carousel */
.hero-carousel { position: relative; height: calc(100svh - 64px); min-height: 580px; overflow: hidden; color: #fff; background: #111; }
.carousel-track, .carousel-slide { position: absolute; inset: 0; }
.carousel-slide { visibility: hidden; opacity: 0; pointer-events: none; }
.carousel-slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.carousel-image { width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); transition: transform 7s ease; }
.carousel-slide.is-active .carousel-image { transform: scale(1.07); }
.carousel-link { position: absolute; inset: 0; z-index: 1; }
.carousel-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; padding: 80px 0 100px; background: linear-gradient(90deg, rgba(0,0,0,.90) 0%, rgba(0,0,0,.58) 48%, rgba(0,0,0,.10) 82%), linear-gradient(to top, rgba(0,0,0,.82), transparent 65%); pointer-events: none; }
.carousel-copy { pointer-events: none; }
.carousel-title { max-width: 780px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4.7vw, 66px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.carousel-title a { position: relative; z-index: 2; color: #fff; text-decoration: none; pointer-events: auto; }
.carousel-excerpt { max-width: 680px; margin: 20px 0 0; color: rgba(255,255,255,.88); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.carousel-controls { position: absolute; left: 50%; bottom: 28px; z-index: 4; display: flex; align-items: center; justify-content: flex-end; gap: 13px; transform: translateX(-50%); pointer-events: none; }
.carousel-arrow, .carousel-dot { pointer-events: auto; cursor: pointer; }
.carousel-arrow { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; color: #fff; background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 20px; backdrop-filter: blur(8px); }
.carousel-arrow:hover { background: var(--mdj-red); border-color: var(--mdj-red); }
.carousel-dots { display: flex; align-items: center; gap: 8px; padding: 10px; }
.carousel-dot { width: 9px; height: 9px; padding: 0; background: rgba(255,255,255,.52); border: 0; border-radius: 99px; transition: width .2s, background .2s; }
.carousel-dot.is-active { width: 34px; background: #fff; }
.kicker { display: inline-flex; align-self: flex-start; margin-bottom: 13px; padding: 6px 10px; color: #fff; background: var(--mdj-red); border-radius: 5px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 15px; font-size: 13px; opacity: .86; }

/* Content sections */
.section { padding: 58px 0; }
.section-white { background: #fff; }
.section-dark { color: #fff; background: var(--mdj-charcoal); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-eyebrow { display: block; margin-bottom: 6px; color: var(--mdj-red); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.section-dark .section-eyebrow { color: #9999ff; }
.section-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 4vw, 46px); line-height: 1.05; letter-spacing: -.03em; }
.section-link { color: var(--mdj-red); font-size: 14px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--mdj-line); border-radius: 14px; transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--mdj-shadow); }
.card-image-link { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .card-image { transform: scale(1.04); }
.card-content { padding: 22px; }
.card-taxonomy { display: block; margin-bottom: 8px; color: var(--mdj-red); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.card-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.15; letter-spacing: -.02em; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card-title a:hover { color: var(--mdj-red); }
.card-excerpt { margin: 13px 0 0; color: var(--mdj-muted); font-size: 15px; }
.card-meta { display: flex; gap: 12px; margin-top: 18px; padding-top: 14px; color: var(--mdj-muted); border-top: 1px solid var(--mdj-line); font-size: 12px; }
.section-dark .post-card { background: #303030; border-color: #454545; }
.section-dark .card-excerpt, .section-dark .card-meta { color: #c7c7c7; }
.section-dark .card-meta { border-color: #454545; }
.feature-strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.feature-strip img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: var(--mdj-radius); box-shadow: var(--mdj-shadow); }
.feature-copy h2 { margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -.035em; }
.feature-copy p { color: var(--mdj-muted); font-size: 18px; }

/* Advertising */
.ad-banner { min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 30px; padding: 16px 24px; color: #555; background: #f1efe9; border: 1px dashed #c9c4b9; border-radius: 10px; text-align: center; }
.ad-label { flex: 0 0 auto; padding: 3px 7px; color: #777; background: rgba(255,255,255,.72); border: 1px solid #d8d3c9; border-radius: 4px; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ad-banner a, .ad-message { font-size: 14px; font-weight: 750; text-decoration: none; }
.ad-banner a:hover { color: var(--mdj-red); }
.section-dark .ad-banner { color: #ddd; background: #2d2d2d; border-color: #565656; }
.section-dark .ad-label { color: #ccc; background: #222; border-color: #555; }
.article-shell > .ad-banner { margin: 0 auto 34px; }
.article-content > .ad-banner { max-width: 760px; margin-top: 36px; margin-bottom: 36px; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.4; }
.ad-popup { position: fixed; right: 20px; bottom: 20px; z-index: 1200; width: min(340px, calc(100% - 32px)); padding: 20px; background: #fff; border: 1px solid var(--mdj-line); border-top: 4px solid var(--mdj-red); border-radius: 12px; box-shadow: 0 18px 55px rgba(0,0,0,.22); }
.ad-popup[hidden] { display: none; }
.ad-popup-close { position: absolute; top: 7px; right: 8px; width: 30px; height: 30px; padding: 0; color: #555; background: transparent; border: 0; border-radius: 50%; font-size: 23px; line-height: 1; cursor: pointer; }
.ad-popup-close:hover { background: #eee; }
.ad-popup h2 { margin: 10px 32px 5px 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1.1; }
.ad-popup p { margin: 0; color: var(--mdj-muted); font-size: 14px; line-height: 1.5; }
.ad-popup-link { display: inline-block; margin-top: 12px; color: var(--mdj-red); font-size: 13px; font-weight: 900; text-decoration: none; }

/* Archives and articles */
.page-header { padding: 64px 0 38px; background: #fff; border-bottom: 1px solid var(--mdj-line); }
.page-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 6vw, 70px); line-height: 1; letter-spacing: -.04em; }
.archive-description { max-width: 700px; margin-top: 16px; color: var(--mdj-muted); }
.archive-grid { padding: 42px 0 70px; }
.pagination { margin-top: 38px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 0 12px; background: #fff; border: 1px solid var(--mdj-line); border-radius: 8px; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--mdj-red); border-color: var(--mdj-red); }
.article-shell { width: min(calc(100% - 40px), 900px); margin: 48px auto 75px; }
.article-header { margin-bottom: 28px; }
.article-header h1 { margin: 10px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 6vw, 70px); line-height: 1.02; letter-spacing: -.04em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--mdj-muted); font-size: 14px; }
.article-featured { width: 100%; max-height: 620px; object-fit: cover; margin-bottom: 36px; border-radius: var(--mdj-radius); box-shadow: var(--mdj-shadow); }
.article-content { color: #343330; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.82; }
.article-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.article-content > .alignwide { max-width: 1050px; }
.article-content > .alignfull { max-width: none; }
.article-content h2, .article-content h3 { color: var(--mdj-ink); line-height: 1.2; }
.article-content a { color: var(--mdj-red-dark); }
.article-content blockquote { padding: 20px 26px; border-left: 5px solid var(--mdj-red); background: #fff; font-size: 24px; }
.article-footer { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--mdj-line); }
.article-share { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; padding: 0; background: transparent; border: 0; }
.article-share > strong { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share-button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: #fff; border: 0; border-radius: 50%; text-decoration: none; cursor: pointer; }
.share-button svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.share-instagram svg, .share-copy svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.share-instagram svg .fill-dot { fill: currentColor; stroke: none; }
.share-facebook { background: #1877f2; }
.share-threads { background: #111; }
.share-instagram { background: linear-gradient(110deg, #833ab4, #fd1d1d, #fcb045); }
.share-copy { color: var(--mdj-ink); background: #ece9e2; }
.share-button:hover { filter: brightness(.92); transform: translateY(-1px); }
.share-status { min-height: 0; margin: 0; color: var(--mdj-muted); font-size: 12px; }
.post-navigation { margin-top: 42px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; }
.post-navigation a { display: block; padding: 18px; background: #fff; border: 1px solid var(--mdj-line); border-radius: 12px; text-decoration: none; }
.post-navigation .nav-next { text-align: right; }
.post-navigation-visual .nav-links { gap: 16px; }
.post-navigation-visual .post-nav-card { position: relative; min-height: 150px; display: grid; grid-template-columns: 132px 1fr; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.post-navigation-visual .nav-next { grid-template-columns: 1fr 132px; }
.post-navigation-visual .nav-next .post-nav-image { grid-column: 2; grid-row: 1; }
.post-navigation-visual .nav-next .post-nav-copy { grid-column: 1; grid-row: 1; }
.post-nav-image { width: 132px; height: 100%; min-height: 150px; object-fit: cover; }
.post-nav-copy { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 18px; }
.post-nav-copy small { color: var(--mdj-red); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.post-nav-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.2; }
.post-nav-card:hover strong { color: var(--mdj-red); }
.comments-area { margin-top: 44px; padding: 28px; background: #fff; border-radius: 14px; }
.comment-list { padding-left: 22px; }
.comment-form textarea { width: 100%; min-height: 150px; padding: 12px; border: 1px solid var(--mdj-line); border-radius: 8px; }
.no-results { padding: 50px; text-align: center; background: #fff; border-radius: 14px; }

/* Footer */
.site-footer { padding: 22px 0 12px; color: #bbb; background: #161616; }
.footer-compact { min-height: 44px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.footer-brand { color: #fff; font-family: "Segoe UI", Arial, sans-serif; font-size: 18px; font-weight: 900; text-decoration: none; }
.footer-navigation ul, .footer-navigation .menu { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.footer-navigation a { color: #d2d2d2; font-size: 12px; font-weight: 700; text-decoration: none; }
.footer-navigation a:hover { color: #fff; }
.footer-social .social-icon { color: #fff; border: 1px solid #454545; }
.footer-social .social-icon:hover { background: var(--mdj-red); border-color: var(--mdj-red); }
.site-info { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #303030; font-size: 11px; }
.site-info a { color: inherit; text-decoration: none; }

/* Contact page */
.contact-page { padding: 70px 0 84px; background: linear-gradient(135deg, #f8f6f0 0%, #fff 100%); }
.contact-page-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 60px; align-items: start; }
.contact-page-intro { position: sticky; top: 106px; }
.contact-page-intro h1 { max-width: 660px; margin: 10px 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 68px); line-height: 1; letter-spacing: -.04em; }
.contact-page-intro > p { max-width: 580px; color: var(--mdj-muted); font-size: 18px; }
.contact-options { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 30px; }
.contact-option { display: flex; flex-direction: column; text-decoration: none; }
.contact-option span { color: var(--mdj-muted); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contact-option strong { font-size: 18px; }
.contact-form-card { padding: 32px; background: #fff; border: 1px solid var(--mdj-line); border-radius: 18px; box-shadow: var(--mdj-shadow); }
.contact-form-card h2 { margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; }
.contact-form { display: grid; gap: 17px; scroll-margin-top: 95px; }
.contact-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label > span { font-size: 12px; font-weight: 850; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 13px; color: var(--mdj-ink); background: #fbfaf7; border: 1px solid #d4d0c6; border-radius: 8px; }
.contact-form input { min-height: 48px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--mdj-red); outline: 2px solid rgba(0,0,153,.14); }
.contact-honeypot { position: absolute !important; left: -10000px !important; }
.contact-submit { justify-self: start; }
.contact-notice { margin: 0; padding: 11px 13px; border-radius: 7px; font-size: 13px; font-weight: 700; }
.contact-notice.is-success { color: #155c35; background: #e7f6ed; }
.contact-notice.is-error { color: #8e161b; background: #fff0f0; }
.contact-privacy { margin: -3px 0 0; color: var(--mdj-muted); font-size: 11px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-navigation { position: fixed; inset: 64px 0 0; display: none; padding: 24px 20px; background: #fff; overflow-y: auto; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
  .main-navigation a { padding: 16px 0; border-bottom: 1px solid var(--mdj-line); font-size: 18px; }
  .main-navigation a::after { display: none; }
  .menu-toggle { display: grid; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-page-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-page-intro { position: static; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--mdj-width)); }
  .utility-links { display: none; }
  .utility-inner { justify-content: center; }
  .site-header { top: 0; }
  .header-inner { min-height: 58px; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; }
  .site-title { font-size: 17px; }
  .main-navigation { inset: 58px 0 0; }
  .search-panel { inset: 58px 0 auto; }
  .hero-carousel { height: calc(100svh - 58px); min-height: 540px; }
  .carousel-overlay { padding: 70px 0 90px; background: linear-gradient(to top, rgba(0,0,0,.93) 0%, rgba(0,0,0,.40) 70%, rgba(0,0,0,.08) 100%); }
  .carousel-title { max-width: 92%; font-size: clamp(30px, 9vw, 42px); line-height: 1.05; }
  .carousel-excerpt { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .carousel-controls { bottom: 20px; justify-content: space-between; }
  .post-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .ad-banner { align-items: flex-start; flex-direction: column; min-height: 0; padding: 14px 16px; text-align: left; }
  .feature-strip { grid-template-columns: 1fr; }
  .footer-compact { grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .footer-navigation ul, .footer-navigation .menu { justify-content: flex-start; gap: 12px 16px; }
  .site-info { align-items: flex-start; flex-direction: column; gap: 5px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation-visual .post-nav-card, .post-navigation-visual .nav-next { grid-template-columns: 108px 1fr; text-align: left; }
  .post-navigation-visual .nav-next .post-nav-image { grid-column: 1; }
  .post-navigation-visual .nav-next .post-nav-copy { grid-column: 2; }
  .post-nav-image { width: 108px; min-height: 132px; }
  .article-shell { width: min(calc(100% - 28px), 900px); margin-top: 30px; }
  .article-content { font-size: 18px; }
  .contact-page { padding: 46px 0 60px; }
  .contact-page-intro h1 { font-size: 42px; }
  .contact-form-card { padding: 22px; }
  .contact-field-row { grid-template-columns: 1fr; }
  .ad-popup { right: 16px; bottom: 16px; }
}

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