/*
Theme Name: Pets My World Affiliate
Theme URI: https://example.com/pets-my-world-affiliate
Author: ATNR
Author URI: https://atnr.pk
Description: A production-ready WordPress affiliate publishing theme for pet guides, product reviews, comparison content, disclosures, newsletter capture, and search-driven content discovery.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pets-my-world-affiliate
Tags: blog, custom-logo, custom-menu, featured-images, accessibility-ready, editor-style, full-width-template, translation-ready
*/

:root {
  --pmw-bg: #ffffff;
  --pmw-surface: #f8fafc;
  --pmw-card: #ffffff;
  --pmw-card-strong: #f1f5f9;
  --pmw-text: #0f172a;
  --pmw-muted: #475569;
  --pmw-subtle: #64748b;
  --pmw-border: #e2e8f0;
  --pmw-primary: #2563eb;
  --pmw-primary-dark: #1d4ed8;
  --pmw-primary-soft: #eff6ff;
  --pmw-amber: #fbbf24;
  --pmw-amber-dark: #d97706;
  --pmw-green: #059669;
  --pmw-radius: 22px;
  --pmw-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
  --pmw-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

[data-theme="dark"] {
  --pmw-bg: #020617;
  --pmw-surface: #0f172a;
  --pmw-card: #111827;
  --pmw-card-strong: #1e293b;
  --pmw-text: #f8fafc;
  --pmw-muted: #cbd5e1;
  --pmw-subtle: #94a3b8;
  --pmw-border: #1f2937;
  --pmw-primary-soft: #172554;
  --pmw-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --pmw-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pmw-bg);
  color: var(--pmw-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

a { color: inherit; text-decoration: none; }

a:hover { color: var(--pmw-primary); }

img { max-width: 100%; height: auto; display: block; }

button, input, textarea, select { font: inherit; }

button { cursor: pointer; }

.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 !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--pmw-card);
  border-radius: 8px;
  box-shadow: var(--pmw-shadow-soft);
  clip: auto !important;
  clip-path: none;
  color: var(--pmw-text);
  display: block;
  font-weight: 700;
  height: auto;
  left: 12px;
  padding: 12px 16px;
  top: 12px;
  width: auto;
  z-index: 100000;
}

.site-wrapper { min-height: 100vh; background: var(--pmw-bg); }

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--pmw-border) 85%, transparent);
  background: color-mix(in srgb, var(--pmw-bg) 90%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--pmw-primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .26);
  font-weight: 900;
}

.site-title {
  margin: 0;
  color: var(--pmw-text);
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.site-description {
  margin: 2px 0 0;
  color: var(--pmw-subtle);
  font-size: 0.76rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a,
.menu-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--pmw-muted);
  font-size: .9rem;
  font-weight: 800;
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu a[aria-current="page"],
.primary-menu a:hover,
.menu-fallback a:hover {
  background: var(--pmw-primary-soft);
  color: var(--pmw-primary);
}

.icon-button,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--pmw-muted);
}

.icon-button:hover,
.menu-toggle:hover {
  background: var(--pmw-card-strong);
  color: var(--pmw-text);
}

.menu-toggle { display: none; }

.button,
button.button,
input[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--pmw-primary);
  color: #fff;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 24px rgba(37, 99, 235, .22);
}

.button:hover,
button.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: var(--pmw-primary-dark);
  color: #fff;
}

.button.button-secondary {
  background: var(--pmw-card);
  border: 1px solid var(--pmw-border);
  color: var(--pmw-text);
  box-shadow: none;
}

.button.button-secondary:hover { background: var(--pmw-card-strong); color: var(--pmw-text); }

.button.button-amber {
  background: var(--pmw-amber);
  color: #111827;
  box-shadow: none;
}

.button.button-amber:hover { background: #f59e0b; color: #111827; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--pmw-primary-soft);
  color: var(--pmw-primary);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.badge.badge-amber { background: #fef3c7; color: #92400e; }
[data-theme="dark"] .badge.badge-amber { background: #451a03; color: #fcd34d; }

.badge.badge-green { background: #ecfdf5; color: #047857; }
[data-theme="dark"] .badge.badge-green { background: #052e26; color: #6ee7b7; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(37,99,235,.18), transparent 34%),
    radial-gradient(circle at 15% 84%, rgba(245,158,11,.18), transparent 32%),
    linear-gradient(135deg, var(--pmw-primary-soft), var(--pmw-bg) 48%, #fffbeb);
}

[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 86% 12%, rgba(37,99,235,.22), transparent 34%),
    radial-gradient(circle at 15% 84%, rgba(245,158,11,.12), transparent 32%),
    linear-gradient(135deg, #020617, #0f172a 50%, #020617);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  align-items: center;
  gap: 56px;
  min-height: 650px;
  padding-block: 70px;
}

.hero h1,
.page-title {
  margin: 18px 0 0;
  color: var(--pmw-text);
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: .96;
  letter-spacing: -0.075em;
  font-weight: 950;
}

.hero p,
.page-intro {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--pmw-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 560px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--pmw-border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--pmw-card) 80%, transparent);
  box-shadow: var(--pmw-shadow-soft);
}

.stat-row > div {
  padding: 17px 12px;
  text-align: center;
}
.stat-row > div + div { border-left: 1px solid var(--pmw-border); }
.stat-number { display: block; color: var(--pmw-primary); font-size: 1.6rem; font-weight: 950; line-height: 1.1; }
.stat-label { display: block; margin-top: 3px; color: var(--pmw-subtle); font-size: .67rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }

.hero-card { position: relative; }
.hero-card img { width: 100%; height: min(540px, 58vw); min-height: 380px; object-fit: cover; border-radius: 34px; box-shadow: var(--pmw-shadow); }
.promise-card {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -28px;
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--pmw-border) 65%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--pmw-card) 92%, transparent);
  box-shadow: var(--pmw-shadow-soft);
  backdrop-filter: blur(10px);
}

.promise-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 16px; background: #fef3c7; color: #b45309; font-size: 1.2rem; }
.promise-card p { margin: 4px 0 0; color: var(--pmw-muted); font-size: .88rem; line-height: 1.55; }

.section { padding: 72px 0; }
.section-soft { background: var(--pmw-surface); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head h2,
.entry-content h2 {
  margin: 12px 0 0;
  color: var(--pmw-text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 950;
}
.section-head p { max-width: 680px; margin: 10px 0 0; color: var(--pmw-muted); }

.category-strip {
  border-top: 1px solid var(--pmw-border);
  border-bottom: 1px solid var(--pmw-border);
  background: var(--pmw-card);
}
.category-strip .container {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-block: 18px;
}
.category-chip {
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--pmw-card-strong);
  color: var(--pmw-muted);
  padding: 10px 15px;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.category-chip:hover,
.category-chip.is-active {
  background: var(--pmw-primary);
  color: #fff;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 42px; align-items: start; }

.card,
.article-card,
.product-card,
.sidebar-card,
.comment-respond,
.comments-area,
.no-results,
.pmw-form-shell {
  overflow: hidden;
  border: 1px solid var(--pmw-border);
  border-radius: var(--pmw-radius);
  background: var(--pmw-card);
  box-shadow: var(--pmw-shadow-soft);
}

.article-card {
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--pmw-shadow); }
.article-card.is-featured { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.card-media { position: relative; min-height: 240px; background: var(--pmw-card-strong); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .card-media img { transform: scale(1.035); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--pmw-subtle); font-size: .78rem; font-weight: 750; }
.card-title { margin: 12px 0 0; color: var(--pmw-text); font-size: 1.35rem; line-height: 1.15; letter-spacing: -.035em; font-weight: 950; }
.article-card.is-featured .card-title { font-size: clamp(1.65rem, 3vw, 2.2rem); }
.card-excerpt { margin: 13px 0 0; color: var(--pmw-muted); font-size: .94rem; line-height: 1.75; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--pmw-border); }
.read-more { color: var(--pmw-primary); font-size: .88rem; font-weight: 950; }
.score-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--pmw-card) 94%, transparent);
  padding: 8px 12px;
  text-align: center;
  box-shadow: var(--pmw-shadow-soft);
}
.score-badge strong { display: block; color: var(--pmw-primary); font-size: 1.1rem; line-height: 1; }
.score-badge span { color: var(--pmw-subtle); font-size: .58rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

.product-card { position: relative; }
.product-card .card-media { height: 225px; }
.product-card .badge-float {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: var(--pmw-amber);
  color: #111827;
  padding: 7px 11px;
  font-size: .62rem;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.rating { display: inline-flex; align-items: center; gap: 4px; color: #f59e0b; font-size: .88rem; font-weight: 900; }
.feature-list { margin: 17px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--pmw-muted); font-size: .9rem; }
.feature-list li::before { content: "✓"; color: var(--pmw-green); font-weight: 950; margin-right: 8px; }
.affiliate-note { margin: 10px 0 0; color: var(--pmw-subtle); font-size: .72rem; text-align: center; }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--pmw-border); }
.price-label { display: block; color: var(--pmw-subtle); font-size: .64rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.price { color: var(--pmw-text); font-size: 1.5rem; font-weight: 950; }

.comparison-wrap { overflow-x: auto; border: 1px solid var(--pmw-border); border-radius: var(--pmw-radius); background: var(--pmw-card); box-shadow: var(--pmw-shadow-soft); }
.comparison-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.comparison-table th,
.comparison-table td { padding: 16px 18px; border-bottom: 1px solid var(--pmw-border); text-align: left; }
.comparison-table th { background: var(--pmw-surface); color: var(--pmw-text); font-size: .72rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.comparison-table td { color: var(--pmw-muted); font-size: .92rem; }
.comparison-table td:first-child { color: var(--pmw-text); font-weight: 950; }
.comparison-table tr:last-child td { border-bottom: 0; }

.newsletter-section { padding: 70px 0; }
.newsletter-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: 36px;
  align-items: center;
  border-radius: 34px;
  background: linear-gradient(135deg, #2563eb, #4338ca 48%, #020617);
  color: #fff;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--pmw-shadow);
}
.newsletter-box h2 { margin: 14px 0 0; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.05em; font-weight: 950; }
.newsletter-box p { color: #dbeafe; }
.form-panel { padding: 18px; border-radius: 24px; background: rgba(255,255,255,.11); backdrop-filter: blur(10px); }
.form-row { display: flex; gap: 10px; }
input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--pmw-border);
  border-radius: 14px;
  background: var(--pmw-surface);
  color: var(--pmw-text);
  padding: 12px 14px;
  outline: none;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--pmw-primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.newsletter-box input[type="email"] { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.10); color: #fff; }
.newsletter-box input[type="email"]::placeholder { color: #dbeafe; }
.newsletter-box input[type="email"]:focus { background: #fff; color: #0f172a; }
.form-help { margin: 10px 0 0; color: var(--pmw-subtle); font-size: .75rem; }
.newsletter-box .form-help { color: #bfdbfe; }
.form-message { margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; font-size: .88rem; font-weight: 800; }
.form-message.success { background: #dcfce7; color: #166534; }
.form-message.error { background: #fee2e2; color: #991b1b; }

.page-header { padding: 74px 0 44px; background: var(--pmw-surface); border-bottom: 1px solid var(--pmw-border); }
.breadcrumbs { margin: 0 0 16px; color: var(--pmw-subtle); font-size: .82rem; font-weight: 800; }
.breadcrumbs a { color: var(--pmw-primary); }
.archive-layout { padding: 56px 0; }

.entry-shell { padding: 54px 0; }
.entry-header { max-width: 860px; margin-bottom: 30px; }
.entry-title { margin: 12px 0 0; color: var(--pmw-text); font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.065em; font-weight: 950; }
.featured-image { margin: 30px 0; overflow: hidden; border-radius: 30px; box-shadow: var(--pmw-shadow); }
.featured-image img { width: 100%; max-height: 560px; object-fit: cover; }
.entry-content { color: var(--pmw-muted); font-size: 1.06rem; line-height: 1.85; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: var(--pmw-primary); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--pmw-text); letter-spacing: -.035em; line-height: 1.15; }
.entry-content h3 { font-size: 1.65rem; }
.entry-content blockquote { margin: 30px 0; padding: 22px 26px; border-left: 5px solid var(--pmw-primary); border-radius: 18px; background: var(--pmw-surface); color: var(--pmw-text); font-size: 1.12rem; font-weight: 750; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.entry-content th, .entry-content td { border: 1px solid var(--pmw-border); padding: 12px; }
.entry-content th { background: var(--pmw-surface); color: var(--pmw-text); }
.disclosure-box,
.health-box {
  margin: 28px 0;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #78350f;
  font-size: .94rem;
}
[data-theme="dark"] .disclosure-box,
[data-theme="dark"] .health-box { background: #451a03; border-color: #78350f; color: #fde68a; }
.health-box { border-color: #fecaca; background: #fef2f2; color: #7f1d1d; }
[data-theme="dark"] .health-box { background: #450a0a; border-color: #7f1d1d; color: #fecaca; }

.sidebar { position: sticky; top: 100px; display: grid; gap: 18px; }
.sidebar-card { padding: 22px; }
.sidebar-card h3 { margin: 0 0 14px; font-size: 1rem; letter-spacing: -.02em; }
.sidebar-card ul { margin: 0; padding-left: 18px; color: var(--pmw-muted); }
.sidebar-card li { margin: 8px 0; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { min-width: 0; }
.search-form .button { flex: 0 0 auto; }

.pagination,
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--pmw-border);
  border-radius: 12px;
  background: var(--pmw-card);
  color: var(--pmw-muted);
  font-weight: 900;
  padding: 0 12px;
}
.page-numbers.current,
.nav-links span.current { background: var(--pmw-primary); border-color: var(--pmw-primary); color: #fff; }

.comments-area { margin-top: 44px; padding: 28px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { margin: 18px 0; padding: 18px; border-radius: 18px; background: var(--pmw-surface); }
.comment-meta { color: var(--pmw-subtle); font-size: .84rem; }
.comment-content { color: var(--pmw-muted); }
.comment-respond { margin-top: 28px; padding: 28px; }
.comment-form input:not([type="submit"]), .comment-form textarea { display: block; margin-top: 6px; }

.site-footer {
  margin-top: 72px;
  background: #0f172a;
  color: #fff;
  padding: 62px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr 1fr; gap: 36px; padding-bottom: 42px; border-bottom: 1px solid rgba(148,163,184,.18); }
.footer-grid h4 { margin: 0 0 16px; color: #60a5fa; font-size: .72rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid p, .footer-grid li { color: #cbd5e1; font-size: .84rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--pmw-amber); }
.footer-disclosure { border: 1px solid rgba(148,163,184,.18); border-radius: 18px; background: rgba(15,23,42,.65); padding: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; color: #94a3b8; font-size: .78rem; }

.alignwide { max-width: 1180px; margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { margin-top: 8px; color: var(--pmw-subtle); font-size: .82rem; }
.gallery-caption { color: var(--pmw-subtle); }
.bypostauthor { outline: 2px solid transparent; }
.sticky .card-title::after { content: " Featured"; color: var(--pmw-primary); font-size: .7rem; }

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

@media (max-width: 980px) {
  .main-navigation {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    border: 1px solid var(--pmw-border);
    border-radius: 20px;
    background: var(--pmw-card);
    box-shadow: var(--pmw-shadow);
    padding: 10px;
  }
  .main-navigation.is-open { display: block; }
  .primary-menu { display: grid; }
  .primary-menu a { width: 100%; justify-content: flex-start; }
  .menu-toggle { display: inline-grid; }
  .hero-grid,
  .newsletter-box,
  .content-sidebar { grid-template-columns: 1fr; }
  .grid-3,
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 68px; }
  .site-description { display: none; }
  .button.disclosure-button { display: none; }
  .hero-grid { min-height: auto; padding-block: 48px 70px; gap: 38px; }
  .hero-card img { height: 390px; min-height: 0; }
  .promise-card { left: 12px; right: 12px; bottom: -20px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-row > div + div { border-left: 0; border-top: 1px solid var(--pmw-border); }
  .section-head { display: block; }
  .grid-3,
  .grid-2,
  .article-card.is-featured { grid-template-columns: 1fr; }
  .article-card.is-featured { grid-column: auto; display: flex; }
  .form-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
