/*!
Theme Name: WebinHost Blog
Theme URI: https://www.webinhost.com.br/
Author: WebinHost
Author URI: https://www.webinhost.com.br/
Description: Tema editorial leve do Blog WebinHost, alinhado ao site institucional.
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 5.6
Text Domain: webinhost-blog
*/

:root {
  --navy: #0b2638;
  --navy-2: #123b52;
  --blue: #0f6fa8;
  --blue-dark: #0a5887;
  --blue-soft: #eaf5fb;
  --green: #27884f;
  --green-dark: #1c6a3b;
  --green-soft: #eaf8ef;
  --ink: #142834;
  --muted: #5f717c;
  --line: #dce6eb;
  --surface: #fff;
  --soft: #f4f8fa;
  --shadow: 0 16px 45px rgba(11, 38, 56, .11);
  --radius: 18px;
  --container: 1180px;
  --article: 780px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.admin-bar .site-header { top: 32px; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 3px; border-radius: 5px; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .7rem;
  color: var(--navy);
  line-height: 1.16;
  letter-spacing: -.03em;
}
h1 { font-size: clamp(2.3rem, 5vw, 4.3rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
blockquote { margin-inline: 0; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 860px); }
.article-width { width: min(calc(100% - 40px), var(--article)); margin-inline: auto; }
.section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.section-soft { background: var(--soft); }
.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  z-index: 100000;
  top: 5px;
  left: 5px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow);
}
.skip-link {
  position: fixed;
  z-index: 100000;
  left: 1rem;
  top: -10rem;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--navy);
}
.skip-link:focus { top: 1rem; color: #fff; }
.eyebrow {
  margin: 0 0 .7rem;
  color: var(--blue);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow-light { color: #83d6f7; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.2rem;
  border: 1px solid var(--blue);
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button:hover { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 111, 168, .2); }
.button-small { min-height: 40px; padding: .5rem .9rem; font-size: .87rem; }
.button-light { color: var(--navy); border-color: #fff; background: #fff; }
.button-light:hover { color: var(--navy); border-color: #eaf7fb; background: #eaf7fb; }
.button-outline-light { color: #fff; border-color: rgba(255, 255, 255, .7); background: transparent; }
.button-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--blue-dark); font-weight: 750; text-decoration: none; }
.text-link span { transition: transform .15s ease; }
.text-link:hover span { transform: translateX(4px); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid rgba(220, 230, 235, .8);
  box-shadow: 0 3px 16px rgba(11, 38, 56, .03);
}
.topbar { color: #d8e8ef; background: #061c29; font-size: .78rem; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar p { margin: 0; }
.topbar nav { display: flex; align-items: center; gap: 1.35rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.nav-shell { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .7rem; color: var(--navy); text-decoration: none; }
.brand-logo, .brand-logo picture { display: block; }
.brand-logo img, .custom-logo { width: 186px; height: auto; }
.brand-context { padding: .22rem .5rem; border-left: 1px solid var(--line); color: var(--blue-dark); font-size: .83rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: .15rem; }
.primary-nav .menu { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.primary-nav .menu a,
.nav-site-link,
.nav-group-trigger {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: .65rem .68rem;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}
.primary-nav .current-menu-item > a,
.primary-nav .menu a:hover,
.nav-site-link:hover,
.nav-group-trigger:hover { color: var(--blue-dark); }
.nav-group { position: relative; }
.nav-group-trigger { gap: .35rem; }
.nav-chevron { width: .82rem; transition: transform .16s ease; }
.nav-group-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  left: -.6rem;
  top: calc(100% + 8px);
  min-width: 245px;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .18s ease;
}
.nav-dropdown::before { content: ""; position: absolute; inset: -10px 0 auto; height: 12px; }
.nav-dropdown a { display: block; padding: .65rem .8rem; border-radius: 9px; color: var(--ink); font-size: .9rem; text-decoration: none; }
.nav-dropdown a:hover { color: var(--blue-dark); background: var(--blue-soft); }
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group-trigger[aria-expanded="true"] + .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
}
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after { width: 20px; height: 2px; display: block; background: currentColor; transition: .16s ease; }
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before,
.nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.search-form { display: flex; width: 100%; max-width: 620px; align-items: stretch; gap: .55rem; }
.search-form label { flex: 1 1 auto; }
.search-field {
  width: 100%;
  height: 48px;
  padding: .7rem 1rem;
  border: 1px solid #b9d0dc;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}
.search-field::placeholder { color: #71848f; }
.search-submit {
  min-width: 94px;
  padding: .65rem 1rem;
  border: 1px solid var(--blue);
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-weight: 750;
  cursor: pointer;
}
.search-submit:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.blog-hero { position: relative; overflow: hidden; color: #dceaf0; background: var(--navy); }
.blog-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 28%, rgba(15, 111, 168, .38), transparent 27%), linear-gradient(135deg, #061c29, var(--navy-2)); }
.blog-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: center; gap: clamp(3rem, 7vw, 6rem); padding-block: clamp(5rem, 9vw, 8rem); }
.blog-hero h1 { max-width: 780px; color: #fff; font-size: clamp(2.6rem, 5vw, 4.65rem); text-wrap: balance; }
.blog-hero-grid > div:first-child > p:not(.eyebrow) { max-width: 700px; margin-bottom: 1.7rem; color: #c8dae2; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.blog-hero .search-field { border-color: rgba(255, 255, 255, .32); }
.hero-topics { padding: 1.5rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .07); backdrop-filter: blur(8px); }
.hero-topics > p { color: #fff; font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.topic-list { display: grid; gap: .45rem; }
.topic-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border-radius: 9px; color: #dceaf0; text-decoration: none; }
.topic-list a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.topic-list span { min-width: 2rem; padding: .08rem .42rem; border-radius: 99px; color: #fff; background: rgba(255, 255, 255, .13); font-size: .76rem; text-align: center; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 2.4rem; }
.section-heading > p { max-width: 430px; color: var(--muted); }
.section-heading.compact { margin-bottom: 1.8rem; }
.posts-section { background: linear-gradient(180deg, var(--soft) 0, #fff 320px); }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 28px rgba(11, 38, 56, .055); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.post-card:hover { transform: translateY(-3px); border-color: #c5d7df; box-shadow: var(--shadow); }
.post-card-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--blue-soft); }
.post-card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card-media > img { transform: scale(1.025); }
.post-card-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: radial-gradient(circle at center, #fff, var(--blue-soft)); }
.post-card-placeholder img { width: 76px; opacity: .65; }
.post-card-body { padding: 1.35rem 1.35rem 1.5rem; }
.post-card-kicker { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .8rem; color: var(--muted); font-size: .76rem; }
.category-pill { display: inline-flex; width: fit-content; padding: .28rem .58rem; border-radius: 999px; color: var(--blue-dark); background: var(--blue-soft); font-size: .74rem; font-weight: 800; line-height: 1.25; text-decoration: none; }
.category-pill:hover { color: #fff; background: var(--blue-dark); }
.post-card-title { font-size: 1.28rem; line-height: 1.25; letter-spacing: -.02em; }
.post-card-title a { color: var(--navy); text-decoration: none; }
.post-card-title a:hover { color: var(--blue-dark); }
.post-card-excerpt { color: var(--muted); font-size: .94rem; }
.post-card-excerpt p { margin-bottom: 1.05rem; }
.navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem; }
.page-numbers { display: inline-grid; min-width: 42px; min-height: 42px; padding: .45rem .7rem; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-weight: 700; text-decoration: none; }
.page-numbers.current,
.page-numbers:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.page-numbers.dots { border-color: transparent; background: transparent; color: var(--muted); }

.archive-hero { padding: clamp(3.6rem, 7vw, 6rem) 0; background: linear-gradient(180deg, var(--blue-soft), #fff); }
.archive-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.archive-description { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.archive-description p:last-child { margin-bottom: 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .42rem; margin-bottom: 2rem; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { color: var(--blue-dark); text-decoration: none; }
.breadcrumbs [aria-current="page"] { max-width: min(460px, 70vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding-block: 3rem; text-align: center; }
.empty-state > p { max-width: 600px; margin-inline: auto; color: var(--muted); }
.empty-state .search-form { margin: 1.5rem auto; }
.error-code { color: #dce6eb !important; font-size: clamp(5rem, 18vw, 11rem); font-weight: 900; line-height: .75; letter-spacing: -.08em; }

.single-header { padding: clamp(3.5rem, 7vw, 6.5rem) 0 2.6rem; background: linear-gradient(180deg, var(--blue-soft), #fff); }
.single-header .category-pill { margin-bottom: 1rem; }
.single-header h1 { font-size: clamp(2.45rem, 5.5vw, 4.7rem); text-wrap: balance; }
.single-lead { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; color: var(--muted); font-size: .82rem; }
.post-meta a { color: inherit; }
.single-featured { width: min(calc(100% - 40px), 1040px); margin-top: 0; margin-bottom: 0; }
.single-featured img { width: 100%; max-height: 610px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.single-featured figcaption { padding: .55rem .5rem 0; color: var(--muted); font-size: .78rem; text-align: center; }
.single-layout { display: grid; grid-template-columns: minmax(0, var(--article)) minmax(250px, 300px); justify-content: center; gap: clamp(3rem, 7vw, 6rem); padding-block: clamp(3.5rem, 7vw, 6rem); }
.entry-content { min-width: 0; font-size: 1.08rem; line-height: 1.78; }
.entry-content > * { max-width: 100%; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table,
.entry-content pre,
.entry-content blockquote { margin-top: 0; margin-bottom: 1.4rem; }
.entry-content h2 { margin-top: 2.8rem; margin-bottom: 1rem; font-size: clamp(1.75rem, 3vw, 2.35rem); }
.entry-content h3 { margin-top: 2.2rem; margin-bottom: .8rem; font-size: 1.5rem; }
.entry-content h4 { margin-top: 1.8rem; font-size: 1.18rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.35rem; }
.entry-content li { margin-bottom: .55rem; padding-left: .2rem; }
.entry-content blockquote { padding: 1.2rem 1.4rem; border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; color: var(--navy); background: var(--blue-soft); font-size: 1.12rem; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { border-radius: 10px; }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption,
.wp-caption-text { margin-top: .55rem; color: var(--muted); font-size: .78rem; text-align: center; }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .94rem; }
.entry-content th,
.entry-content td { padding: .7rem .8rem; border: 1px solid var(--line); text-align: left; }
.entry-content th { color: var(--navy); background: var(--soft); }
.entry-content pre { overflow-x: auto; padding: 1.1rem; border-radius: 10px; color: #eaf5fb; background: #061c29; font-size: .88rem; }
.entry-content code { padding: .12em .32em; border-radius: 4px; color: #8d2130; background: #f9eaed; font-size: .9em; }
.entry-content pre code { padding: 0; color: inherit; background: transparent; }
.entry-content .alignwide { width: min(1040px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-block-button__link { border-radius: 10px; color: #fff; background: var(--blue); }
.wp-block-image img,
.wp-caption { max-width: 100%; height: auto; }
.post-tags { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .88rem; }
.post-tags a { display: inline-flex; margin: .25rem .2rem; padding: .25rem .55rem; border-radius: 999px; color: var(--blue-dark); background: var(--blue-soft); text-decoration: none; }
.article-sidebar { min-width: 0; }
.sidebar-card { margin-bottom: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.sidebar-card:first-child { position: sticky; top: 135px; }
.sidebar-card h2 { font-size: 1.12rem; letter-spacing: -.015em; }
.sidebar-card .search-form { display: block; }
.sidebar-card .search-submit { width: 100%; margin-top: .55rem; }
.sidebar-service { color: #dceaf0; border-color: var(--navy); background: var(--navy); }
.sidebar-service h2 { color: #fff; }
.sidebar-service p:not(.eyebrow) { color: #b9ccd5; font-size: .9rem; }
.sidebar-categories { margin: 0; padding: 0; list-style: none; }
.sidebar-categories a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sidebar-categories li:last-child a { border-bottom: 0; }
.related-posts .post-card-title { font-size: 1.16rem; }

.comments-wrap { padding-bottom: clamp(4rem, 7vw, 6rem); }
.comments-area { padding-top: 2.5rem; border-top: 1px solid var(--line); }
.comments-area > h2,
.comment-reply-title { font-size: 1.65rem; }
.comment-list { margin: 1.5rem 0 2.5rem; padding: 0; list-style: none; }
.comment-list .children { margin: 1rem 0 0 2rem; padding: 0; list-style: none; }
.comment-body { margin-bottom: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 12px; }
.comment-author { display: flex; align-items: center; gap: .65rem; }
.comment-author img { border-radius: 50%; }
.comment-metadata { margin: .45rem 0; color: var(--muted); font-size: .76rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-weight: 700; }
.comment-form input:not([type="checkbox"]),
.comment-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #b9d0dc; border-radius: 9px; }
.comment-form .submit { padding: .7rem 1.1rem; border: 1px solid var(--blue); border-radius: 9px; color: #fff; background: var(--blue); font-weight: 750; cursor: pointer; }

.final-cta { padding: 4rem 0; color: #dce8ed; background: linear-gradient(110deg, var(--blue-dark), var(--navy)); }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.final-cta h2 { color: #fff; }
.final-cta p:not(.eyebrow) { max-width: 680px; margin: 0; }
.site-footer { padding: 4.5rem 0 1.8rem; color: #b9ccd5; background: #061c29; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 3rem; }
.site-footer a.footer-brand-logo { display: inline-flex; width: auto; margin-bottom: 1.2rem; padding: .55rem .75rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 13px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); transition: transform .16s ease, box-shadow .16s ease; }
.site-footer a.footer-brand-logo:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(0, 0, 0, .24); }
.footer-brand-logo picture,
.footer-brand-logo img { display: block; }
.footer-brand-logo img { width: 196px; height: auto; }
.footer-brand p { max-width: 320px; }
.site-footer address { font-style: normal; }
.site-footer h2 { color: #fff; font-size: .83rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { display: block; width: fit-content; padding: .28rem 0; color: #b9ccd5; font-size: .88rem; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .menu { margin: 0; padding: 0; list-style: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; }
.footer-bottom p { margin: 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 1rem; }

.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-right: auto; margin-left: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.gallery-item { margin: 0; }
.gallery-icon img { width: 100%; }
.sticky { position: relative; }
.bypostauthor { position: relative; }

@media (max-width: 1080px) {
  .topbar-inner > p { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    z-index: 60;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    max-height: calc(100vh - 130px);
    padding: 1rem;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { display: block; }
  .primary-nav .menu a,
  .nav-site-link,
  .nav-group-trigger { width: 100%; justify-content: space-between; padding: .8rem; }
  .primary-nav > .button { width: 100%; margin-top: .7rem; }
  .nav-dropdown { position: static; display: none; min-width: 0; margin-bottom: .6rem; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-group:hover .nav-dropdown,
  .nav-group:focus-within .nav-dropdown { display: none; }
  .nav-group-trigger[aria-expanded="true"] + .nav-dropdown { display: block; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-layout { grid-template-columns: minmax(0, var(--article)); }
  .article-sidebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .sidebar-card,
  .sidebar-card:first-child { position: static; margin: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body.admin-bar .site-header { top: 46px; }
  .blog-hero-grid { grid-template-columns: 1fr; }
  .hero-topics { max-width: 620px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1rem; }
  .article-sidebar { grid-template-columns: 1fr; }
  .final-cta-inner { display: block; }
}

@media (max-width: 620px) {
  .container,
  .narrow,
  .article-width,
  .single-featured { width: min(calc(100% - 28px), var(--container)); }
  .topbar { display: none; }
  .nav-shell { min-height: 70px; gap: .7rem; }
  .brand-logo img,
  .custom-logo { width: 150px; }
  .brand-context { font-size: .7rem; }
  .primary-nav { right: 14px; left: 14px; max-height: calc(100vh - 85px); }
  .blog-hero-grid { padding-block: 4rem; }
  .blog-hero h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .search-form { display: block; }
  .search-submit { width: 100%; margin-top: .55rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card-kicker { align-items: start; }
  .single-header { padding-top: 2.8rem; }
  .single-header h1 { font-size: clamp(2.25rem, 11vw, 3.4rem); }
  .entry-content { font-size: 1rem; }
  .entry-content .alignwide,
  .entry-content .alignfull { width: 100%; margin-left: 0; transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { display: block; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alignleft,
  .alignright { float: none; margin: 1rem auto; }
}

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

@media print {
  .site-header,
  .article-sidebar,
  .related-posts,
  .comments-wrap,
  .final-cta,
  .site-footer { display: none !important; }
  .single-layout { display: block; padding-top: 1rem; }
  .single-header { padding: 1rem 0; background: none; }
  .entry-content { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}
