/*
Theme Name: Portugal Dom Blog
Theme URI: https://relocation.portugaldom.pt/blog/
Author: Portugal Dom
Description: Фирменная тема блога Portugal Dom в атлантической палитре.
Version: 1.4.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: portugal-dom-blog
*/

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+1C80-1C8F;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+1C80-1C8F;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF;
}

:root {
  --paper: #f6f3ec;
  --paper-2: #fbfaf7;
  --navy: #172c49;
  --navy-2: #223a5f;
  --gold: #b18a3c;
  --ink: #172c49;
  --muted: #66717d;
  --line: rgba(23, 44, 73, 0.14);
  --white-line: rgba(255, 255, 255, 0.18);
  --site-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  z-index: 49;
  top: 0;
  right: 0;
  left: 0;
  height: 16px;
  background: var(--paper);
  pointer-events: none;
}
body.menu-is-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: white;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  width: min(var(--site-width), calc(100% - 32px));
  min-height: 70px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 11px 10px 17px;
  border: 1px solid rgba(25, 40, 67, 0.13);
  border-radius: 15px;
  background: rgba(251, 250, 247, 0.91);
  box-shadow: 0 14px 44px rgba(33, 42, 57, 0.11);
  backdrop-filter: blur(18px);
}
.admin-bar .site-header { top: 48px; }
.brand { display: flex; align-items: center; min-width: 0; }
.brand img { width: 184px; height: auto; }
.primary-navigation { display: flex; align-items: center; }
.site-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu a {
  display: block;
  padding: 8px 0;
  color: #4b5666;
  font-size: 12px;
  transition: color 0.2s ease;
}
.site-menu a:hover,
.site-menu .current-menu-item > a,
.site-menu a.is-current { color: var(--gold); }
.header-action,
.mobile-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  font-size: 12px;
  font-weight: 680;
}
.header-action { justify-self: end; padding: 14px 17px; }
.header-action span,
.mobile-contact span { color: var(--gold); }
.mobile-contact,
.menu-toggle { display: none; }

/* Shared */
.section-label {
  color: var(--gold);
  font: 600 11px/1.4 "Geist Mono", monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.section-label span { margin-right: 8px; }
.search-form {
  display: grid;
  grid-template-columns: 1fr 48px;
  width: 100%;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.68);
}
.search-form label { min-width: 0; }
.search-field {
  width: 100%;
  height: 100%;
  padding: 0 17px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
}
.search-field::placeholder { color: #89929d; }
.search-submit {
  border: 0;
  background: var(--navy);
  color: var(--gold);
  cursor: pointer;
}

/* Blog home */
.blog-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
  padding: 165px max(6vw, 34px) 68px;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 86% 10%, rgba(177, 138, 60, 0.13), transparent 27%),
    radial-gradient(circle at 8% 82%, rgba(23, 44, 73, 0.07), transparent 28%),
    linear-gradient(rgba(23, 44, 73, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 44, 73, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 68px 68px, 68px 68px, auto;
  color: var(--navy);
}
.blog-hero h1,
.listing-hero h1,
.article-header h1,
.page-header h1,
.error-page h1 {
  margin: 27px 0 0;
  font-size: clamp(54px, 6.2vw, 94px);
  font-weight: 520;
  letter-spacing: -0.068em;
  line-height: 0.95;
}
.blog-hero-copy > p {
  max-width: 760px;
  margin: 32px 0 0;
  color: #566171;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.62;
}
.blog-hero-tools { display: grid; }
.blog-hero-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(251, 250, 247, 0.82);
  box-shadow: 0 28px 70px rgba(23, 44, 73, 0.10);
  backdrop-filter: blur(12px);
}
.blog-hero-card > span {
  color: var(--gold);
  font: 600 10px "Geist Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.blog-hero-card > strong {
  margin-top: 32px;
  color: var(--navy);
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.blog-hero-card > p {
  margin: 17px 0 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.blog-hero-card .search-form { margin-top: auto; }
.blog-hero .search-form {
  border-color: var(--line);
  background: white;
}
.blog-hero .search-field { color: var(--navy); }
.blog-hero .search-field::placeholder { color: #89929d; }
.blog-hero .search-submit { background: var(--navy); color: var(--gold); }

.posts-section,
.related-posts {
  padding: 82px max(6vw, 34px) 100px;
  background: var(--paper-2);
}
.posts-heading {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.posts-heading h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 530;
  letter-spacing: -0.065em;
  line-height: 0.97;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 390px;
  align-items: stretch;
  gap: 14px;
}
.post-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 17px;
  background: white;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(23, 44, 73, 0.09);
}
.post-card-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 26px;
}
.post-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #818b98;
  font: 500 9px "Geist Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.post-card-meta span { color: var(--gold); }
.post-card h2 {
  min-height: 3.24em;
  margin: 42px 0 15px;
  overflow: hidden;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.post-card-excerpt {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.post-card-excerpt p { margin: 0; }
.post-card-link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 30px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 650;
}
.post-card-link span { color: var(--gold); }
.navigation.pagination { margin-top: 52px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--navy);
  font: 11px "Geist Mono", monospace;
}
.page-numbers.current { border-color: var(--navy); background: var(--navy); color: white; }

.empty-state {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 6vw, 80px);
  border-radius: 20px;
  background: var(--navy);
  color: white;
}
.empty-state > span { color: var(--gold); font: 10px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: 0.1em; }
.empty-state h2 { max-width: 760px; margin: 24px 0 10px; font-size: clamp(35px, 4.5vw, 64px); font-weight: 530; line-height: 0.98; letter-spacing: -0.06em; }
.empty-state p { color: #c4cedb; }
.empty-state > a { margin-top: 22px; padding: 14px 16px; border-radius: 9px; background: var(--gold); color: white; font-size: 12px; font-weight: 650; }
.empty-state .search-form { max-width: 520px; margin-top: 25px; }

.blog-cta,
.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
  padding: 90px max(6vw, 34px);
  background: #eeece7;
}
.blog-cta > div > span,
.article-cta > div > span { color: var(--gold); font: 10px "Geist Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.blog-cta h2,
.article-cta h2 { margin: 22px 0 0; font-size: clamp(42px, 5.2vw, 76px); font-weight: 530; letter-spacing: -0.065em; line-height: 0.97; }
.blog-cta > a {
  width: 190px;
  height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 31px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 15px;
  font-weight: 650;
  transition: transform 0.2s ease, background 0.2s ease;
}
.blog-cta > a:hover { transform: rotate(3deg); background: var(--navy-2); }
.blog-cta > a b { align-self: flex-end; color: var(--gold); font-size: 22px; }

/* Listings */
.listing-hero,
.page-header {
  min-height: 510px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 180px max(6vw, 34px) 68px;
  background:
    linear-gradient(rgba(23, 44, 73, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 44, 73, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 68px 68px, 68px 68px, auto;
}
.listing-hero h1,
.page-header h1 { max-width: 1150px; }
.listing-description { max-width: 700px; margin-top: 25px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.listing-description p { margin: 0; }
.listing-section { padding-top: 62px; }
.listing-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 30px;
  align-items: center;
  margin-bottom: 44px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.listing-toolbar > a { color: var(--gold); font: 600 11px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: 0.07em; }

/* Single article */
.article-header {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 185px max(8vw, 34px) 68px;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(177, 138, 60, 0.12), transparent 29%),
    linear-gradient(rgba(23, 44, 73, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 44, 73, 0.035) 1px, transparent 1px),
    var(--paper-2);
  background-size: auto, 68px 68px, 68px 68px, auto;
  color: var(--navy);
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; color: #778391; font: 500 10px "Geist Mono", monospace; letter-spacing: 0.07em; text-transform: uppercase; }
.breadcrumbs a:hover { color: var(--gold); }
.article-header h1 {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  font-size: clamp(48px, 5.3vw, 80px);
  line-height: 0.98;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 42px; color: #6d7886; font: 500 10px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: 0.07em; }
.article-meta span + span,
.article-meta time + span { position: relative; }
.article-meta span + span::before,
.article-meta time + span::before { content: ""; position: absolute; top: 50%; left: -14px; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.article-layout {
  width: min(1080px, calc(100% - 68px));
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: clamp(50px, 9vw, 120px);
  align-items: start;
  margin: 64px auto 78px;
}
.article-aside {
  position: sticky;
  top: 115px;
  padding-top: 18px;
  border-top: 2px solid var(--gold);
}
.article-aside > span { color: var(--gold); font: 600 10px "Geist Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.article-aside p { margin: 18px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.article-aside a { color: var(--navy); font-size: 12px; font-weight: 650; }
.article-content {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #39485b;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.78;
}
.article-content > * { max-width: 100%; }
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.55em; }
.article-content h2,
.article-content h3,
.article-content h4 {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--navy);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.article-content h2 { margin: 2.1em 0 0.7em; font-size: clamp(32px, 3.5vw, 48px); }
.article-content h3 { margin: 1.8em 0 0.65em; font-size: clamp(25px, 2.6vw, 34px); }
.article-content h4 { margin: 1.6em 0 0.6em; font-size: 22px; }
.article-content a { color: #7c602b; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content ul,
.article-content ol { margin: 0 0 1.6em; padding-left: 1.25em; }
.article-content li { margin-bottom: 0.55em; padding-left: 0.3em; }
.article-content li::marker { color: var(--gold); }
.article-content blockquote {
  margin: 2em 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--gold);
  color: var(--navy);
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.35;
}
.article-content blockquote p { margin: 0; }
.article-content figure { margin: 2.2em 0; }
.article-content figcaption { margin-top: 9px; color: #7b8591; font: 10px/1.5 "Geist Mono", monospace; }
.article-content img { border-radius: 14px; }
.article-content pre,
.article-content code { max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; }
.article-content table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 15px; }
.article-content th,
.article-content td { padding: 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: #e9e6df; color: var(--navy); }
.article-content .wp-block-button__link { border-radius: 9px; background: var(--navy); color: white; text-decoration: none; }
.article-footer {
  width: min(1080px, calc(100% - 68px));
  margin: 0 auto 95px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.article-tags span { margin-right: 5px; color: #818b98; font: 10px "Geist Mono", monospace; text-transform: uppercase; }
.article-tags a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-size: 11px; }
.post-navigation-wrap { margin-top: 42px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { min-height: 120px; display: flex; flex-direction: column; justify-content: center; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper-2); }
.post-navigation small { color: var(--gold); font: 9px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: 0.07em; }
.post-navigation strong { margin-top: 10px; overflow-wrap: anywhere; word-break: break-word; font-size: 16px; line-height: 1.35; }
.article-cta { margin-bottom: 0; background: var(--navy); color: white; }
.article-cta h2 { max-width: 900px; }
.article-cta > a { padding: 16px 18px; border-radius: 10px; background: var(--gold); color: white; font-size: 13px; font-weight: 650; }
.article-cta > a b { margin-left: 28px; }
.related-posts { background: var(--paper-2); }

/* Standard pages and 404 */
.standard-page .article-content { width: min(760px, calc(100% - 68px)); margin: 80px auto 110px; }
.error-page {
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 170px max(8vw, 34px) 90px;
}
.error-page h1 { max-width: 950px; }
.error-page > p { margin: 26px 0 0; color: var(--muted); font-size: 17px; }
.error-actions { display: grid; grid-template-columns: auto minmax(300px, 430px); gap: 20px; align-items: center; margin-top: 38px; }
.error-actions > a { width: fit-content; padding: 16px 18px; border-radius: 9px; background: var(--gold); color: white; font-size: 13px; font-weight: 650; }

/* Footer */
.site-footer { padding: 72px max(6vw, 34px) 40px; background: var(--navy); color: white; }
.footer-inner { width: min(var(--site-width), 100%); display: grid; grid-template-columns: 1.2fr 0.75fr 1.1fr 0.95fr; gap: 55px; margin: 0 auto; }
.footer-brand img { width: 190px; }
.footer-brand p { margin: 21px 0 0; color: #99a8ba; font-size: 12px; line-height: 1.55; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: #d4dce6; font-size: 12px; line-height: 1.55; }
.footer-column > span { margin-bottom: 8px; color: var(--gold); font: 9px "Geist Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-column a:hover { color: var(--gold); }
.footer-column address { color: #d4dce6; }
.footer-column small { margin-top: auto; color: #8393a7; font-size: 10px; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-menu { gap: 13px; }
  .site-menu a { font-size: 11px; }
  .header-action { display: none; }
  .primary-navigation { justify-self: end; }
  .blog-hero { grid-template-columns: 1fr 340px; gap: 45px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1.2fr 0.8fr 1.15fr; }
  .footer-office { grid-column: 3; }
}

@media (max-width: 940px) {
  .admin-bar .site-header { top: 62px; }
  .site-header {
    min-height: 70px;
    grid-template-columns: 1fr auto;
    padding: 10px 10px 10px 16px;
  }
  .brand img { width: 174px; }
  .menu-toggle {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: var(--navy);
    color: white;
    cursor: pointer;
  }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .menu-toggle-icon { width: 20px; display: grid; gap: 5px; }
  .menu-toggle-icon i { display: block; width: 100%; height: 1px; background: white; transition: transform 0.2s ease; }
  .menu-open .menu-toggle-icon i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-open .menu-toggle-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .primary-navigation {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    width: 100%;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--paper-2);
    box-shadow: 0 20px 50px rgba(23, 44, 73, 0.15);
  }
  .menu-open .primary-navigation { display: block; }
  .site-menu { display: grid; gap: 0; }
  .site-menu li + li { border-top: 1px solid var(--line); }
  .site-menu a { padding: 15px 4px; color: var(--navy); font-size: 15px; font-weight: 570; }
  .mobile-contact { display: flex; margin-top: 12px; padding: 15px 16px; font-size: 14px; }
  .blog-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 150px;
  }
  .blog-hero-tools { max-width: 620px; }
  .article-layout { grid-template-columns: 1fr; gap: 45px; }
  .article-aside { position: static; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
  .article-aside p { margin: 0; }
  .blog-cta > a { width: 165px; height: 165px; padding: 26px; }
}

@media (max-width: 720px) {
  body::before { height: 10px; }
  .admin-bar .site-header { top: 58px; }
  .site-header { top: 10px; width: calc(100% - 20px); }
  .brand img { width: 164px; }
  .section-label { font-size: 13px; line-height: 1.45; letter-spacing: 0.085em; }
  .blog-hero {
    gap: 34px;
    padding: 130px 20px 44px;
    border-radius: 0 0 20px 20px;
    background-size: auto, auto, 44px 44px, 44px 44px, auto;
  }
  .blog-hero h1,
  .listing-hero h1,
  .article-header h1,
  .page-header h1,
  .error-page h1 {
    margin-top: 24px;
    font-size: clamp(43px, 13.2vw, 66px);
    line-height: 0.96;
    letter-spacing: -0.065em;
  }
  .blog-hero-copy > p { margin-top: 26px; font-size: 17px; line-height: 1.58; }
  .posts-section,
  .related-posts { padding: 58px 20px 72px; }
  .posts-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; padding-bottom: 24px; }
  .posts-heading h2 { font-size: clamp(39px, 11vw, 56px); }
  .post-grid,
  .compact-grid { grid-template-columns: 1fr; }
  .post-grid { grid-auto-rows: 370px; }
  .post-card-body { padding: 24px; }
  .post-card-meta { font-size: 10px; }
  .post-card h2 { margin-top: 34px; font-size: clamp(26px, 8vw, 36px); }
  .post-card-excerpt { font-size: 15px; }
  .post-card-link { font-size: 14px; }
  .navigation.pagination { overflow-x: auto; }
  .blog-cta,
  .article-cta { grid-template-columns: 1fr; padding: 70px 20px; }
  .blog-cta h2,
  .article-cta h2 { font-size: clamp(40px, 11vw, 56px); }
  .blog-cta > a {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 18px;
    border-radius: 11px;
  }
  .listing-hero,
  .page-header { min-height: 450px; padding: 150px 20px 50px; background-size: 44px 44px, 44px 44px, auto; }
  .listing-description { font-size: 16px; }
  .listing-section { padding-top: 45px; }
  .listing-toolbar { grid-template-columns: 1fr; }
  .article-header {
    min-height: 0;
    justify-content: flex-start;
    padding: 130px 20px 44px;
    border-radius: 0 0 20px 20px;
    background-size: auto, 44px 44px, 44px 44px, auto;
  }
  .article-header h1 {
    font-size: clamp(38px, 10.8vw, 52px);
    line-height: 0.98;
    letter-spacing: -0.055em;
  }
  .breadcrumbs { font-size: 11px; line-height: 1.5; }
  .article-meta { gap: 20px; margin-top: 32px; font-size: 10px; line-height: 1.5; }
  .article-layout { width: calc(100% - 40px); gap: 38px; margin: 46px auto 58px; }
  .article-aside { display: block; padding-top: 16px; }
  .article-aside p { margin: 14px 0; font-size: 14px; }
  .article-aside a { font-size: 14px; }
  .article-content { font-size: 18px; line-height: 1.72; }
  .article-content h2 { font-size: clamp(32px, 9vw, 43px); }
  .article-content h3 { font-size: clamp(26px, 7vw, 34px); }
  .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .article-footer { width: calc(100% - 40px); margin-bottom: 65px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .article-cta > a { display: flex; justify-content: space-between; font-size: 14px; }
  .standard-page .article-content { width: calc(100% - 40px); margin: 58px auto 80px; }
  .error-page { min-height: 680px; padding: 145px 20px 70px; }
  .error-page > p { font-size: 16px; }
  .error-actions { grid-template-columns: 1fr; }
  .error-actions > a { width: 100%; text-align: center; }
  .site-footer { padding: 58px 20px 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 45px 25px; }
  .footer-brand,
  .footer-office { grid-column: 1 / -1; }
  .footer-column { font-size: 14px; }
  .footer-column > span { font-size: 11px; }
  .footer-column small { margin-top: 20px; }
}

@media (max-width: 420px) {
  .brand img { width: 148px; }
  .menu-toggle { width: 48px; height: 48px; }
  .blog-hero h1,
  .listing-hero h1,
  .page-header h1,
  .error-page h1 { font-size: clamp(40px, 12.8vw, 54px); }
  .article-header { padding-top: 118px; }
  .article-header h1 { font-size: clamp(36px, 10.5vw, 46px); }
  .article-meta { display: grid; gap: 7px; }
  .article-meta span::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-office { grid-column: auto; }
}

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