/*
Theme Name: SearchMaster
Theme URI: https://searchmaster.in/
Author: Aftab Alam
Author URI: https://searchmaster.in/
Description: A fast, accessible WordPress theme for SearchMaster's Google Ads consultancy and blog.
Version: 1.2.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: searchmaster
*/

:root {
  --sm-coral: #fb563d;
  --sm-coral-dark: #d93f2b;
  --sm-ink: #17202a;
  --sm-ink-soft: #46515c;
  --sm-cream: #fffaf4;
  --sm-paper: #ffffff;
  --sm-sand: #f2eade;
  --sm-mint: #dcefe7;
  --sm-border: #ded8ce;
  --sm-success: #1d6f50;
  --sm-shadow: 0 20px 55px rgba(23, 32, 42, 0.1);
  --sm-radius-sm: 12px;
  --sm-radius: 22px;
  --sm-radius-lg: 34px;
  --sm-content: 1180px;
  --sm-reading: 740px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sm-ink);
  background: var(--sm-cream);
  font-family: Roboto, "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--sm-coral-dark); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(251, 86, 61, 0.45); 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;
}
.screen-reader-text:focus {
  position: fixed !important; z-index: 100000; top: 10px; left: 10px;
  width: auto; height: auto; padding: 12px 16px; margin: 0;
  clip: auto; overflow: visible; background: #fff; color: #111;
}

.sm-container { width: min(calc(100% - 40px), var(--sm-content)); margin-inline: auto; }
.sm-reading { width: min(calc(100% - 40px), var(--sm-reading)); margin-inline: auto; }
.sm-section { padding: clamp(72px, 9vw, 118px) 0; }
.sm-section--compact { padding: clamp(50px, 6vw, 80px) 0; }
.sm-section--paper { background: var(--sm-paper); }
.sm-section--ink { color: #fff; background: var(--sm-ink); }
.sm-grid { display: grid; gap: 24px; }
.sm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sm-section-heading { max-width: 760px; margin-bottom: 42px; }
.sm-section-heading h2,
.sm-display,
.entry-title {
  margin: 0;
  font-family: Roboto, "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.sm-section-heading h2 { font-size: clamp(1.95rem, 3.6vw, 3.1rem); }
.sm-section-heading p { max-width: 650px; margin: 20px 0 0; color: var(--sm-ink-soft); font-size: 1.08rem; }
.sm-section--ink .sm-section-heading p { color: #c7cdd2; }

.sm-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 999px;
  color: #fff; background: var(--sm-coral); box-shadow: 0 10px 24px rgba(251,86,61,.2);
  font-size: .96rem; font-weight: 750; line-height: 1.2; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.sm-button:hover { color: #fff; background: var(--sm-coral-dark); box-shadow: 0 12px 30px rgba(251,86,61,.27); transform: translateY(-2px); }
.sm-button--ghost { color: var(--sm-ink); background: transparent; border-color: var(--sm-border); box-shadow: none; }
.sm-button--ghost:hover { color: var(--sm-ink); background: #fff; box-shadow: none; }
.sm-button svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky; z-index: 100; top: 0; background: rgba(255,250,244,.91);
  border-bottom: 1px solid rgba(222,216,206,.7); backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.sm-header-inner { min-height: 78px; display: grid; grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr); align-items: center; gap: 26px; }
.custom-logo-link { display: block; flex: 0 0 auto; }
.custom-logo { width: auto; max-height: 42px; }
.sm-wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--sm-ink); font-size: 1.08rem; font-weight: 850; text-decoration: none; letter-spacing: -.025em; }
.sm-wordmark-mark { position: relative; width: 28px; height: 28px; border: 2px solid var(--sm-coral); border-radius: 9px; transform: rotate(7deg); }
.sm-wordmark-mark::before,
.sm-wordmark-mark::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--sm-coral); border-radius: 50%; }
.sm-wordmark-mark::before { top: 4px; left: 4px; }
.sm-wordmark-mark::after { right: 4px; bottom: 4px; }
.sm-header-actions { display: flex; align-items: center; justify-self: end; gap: 14px; }
.primary-navigation { justify-self: center; }
.primary-navigation ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-navigation a { color: var(--sm-ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--sm-coral-dark); }
.sm-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--sm-border); border-radius: 50%; background: transparent; }
.sm-menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--sm-ink); }

/* Homepage */
.sm-hero { position: relative; overflow: hidden; padding: clamp(76px, 10vw, 138px) 0 92px; }
.sm-hero::before { content: ""; position: absolute; top: 5%; right: -7%; width: 420px; height: 420px; border-radius: 46% 54% 62% 38%; background: var(--sm-mint); transform: rotate(15deg); opacity: .8; }
.sm-hero::after { content: ""; position: absolute; right: 13%; bottom: -100px; width: 220px; height: 220px; border: 2px solid rgba(251,86,61,.35); border-radius: 50%; }
.sm-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(40px, 6vw, 78px); align-items: center; }
.sm-hero h1 { max-width: 690px; font-size: clamp(2.6rem, 4.8vw, 4.2rem); }
.sm-hero h1 em { color: var(--sm-coral); font-style: normal; }
.sm-hero-copy { max-width: 680px; margin: 28px 0 0; color: var(--sm-ink-soft); font-size: clamp(1.08rem, 1.8vw, 1.25rem); }
.sm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.sm-proof-note { display: flex; align-items: center; gap: 12px; margin-top: 30px; color: var(--sm-ink-soft); font-size: .9rem; }
.sm-proof-note span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sm-mint); color: var(--sm-success); font-weight: 900; }
.sm-hero-art { position: relative; min-width: 0; }
.sm-hero-art > img { width: 100%; filter: drop-shadow(0 28px 35px rgba(23,32,42,.12)); }
.sm-art-note { position: absolute; right: 3%; bottom: 5%; display: flex; align-items: center; gap: 9px; padding: 11px 15px; border: 1px solid rgba(222,216,206,.8); border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(23,32,42,.12); font-size: .78rem; font-weight: 800; }
.sm-art-note span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: var(--sm-success); background: var(--sm-mint); }

.sm-card { padding: 30px; border: 1px solid var(--sm-border); border-radius: var(--sm-radius); background: var(--sm-paper); transition: transform .2s ease, box-shadow .2s ease; }
.sm-card:hover { box-shadow: var(--sm-shadow); transform: translateY(-4px); }
.sm-card-number { display: block; margin-bottom: 30px; color: var(--sm-coral); font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.sm-card h3 { margin: 0 0 12px; font-size: 1.18rem; line-height: 1.3; }
.sm-card p { margin: 0; color: var(--sm-ink-soft); font-size: .96rem; }

.sm-process-list { counter-reset: process; display: grid; gap: 0; }
.sm-process-item { counter-increment: process; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(220px, .7fr); gap: 28px; align-items: start; padding: 32px 0; border-top: 1px solid #39414a; }
.sm-process-item:last-child { border-bottom: 1px solid #39414a; }
.sm-process-item::before { content: "0" counter(process); color: var(--sm-coral); font-weight: 800; }
.sm-process-item h3 { margin: 0; font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.18; }
.sm-process-item p { margin: 0; color: #c7cdd2; }

.sm-about { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.2fr); gap: clamp(48px,9vw,112px); align-items: center; }
.sm-about-portrait { position: relative; min-height: 480px; border-radius: var(--sm-radius-lg); overflow: hidden; background: linear-gradient(145deg, #eef7f2, var(--sm-sand)); }
.sm-about-portrait img { width: 100%; height: 100%; min-height: 480px; object-fit: contain; object-position: center bottom; }
.sm-about-copy h2 { margin: 0; font-size: clamp(2rem,3.7vw,3.2rem); line-height: 1.1; letter-spacing: -.03em; }
.sm-about-copy p { color: var(--sm-ink-soft); }
.sm-about-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 20px; margin: 26px 0 0; padding: 0; list-style: none; }
.sm-about-list li { display: flex; gap: 10px; font-size: .93rem; font-weight: 700; }
.sm-about-list li::before { content: "✓"; color: var(--sm-coral); }

.sm-post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--sm-border); border-radius: var(--sm-radius); background: #fff; }
.sm-post-card-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--sm-sand); }
.sm-post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sm-post-card:hover .sm-post-card-media img { transform: scale(1.025); }
.sm-post-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--sm-mint), #fff0ed); }
.sm-post-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.sm-post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--sm-ink-soft); font-size: .76rem; font-weight: 700; }
.sm-post-meta a { color: var(--sm-coral-dark); text-decoration: none; }
.sm-post-card h3 { margin: 14px 0 9px; font-size: 1.3rem; line-height: 1.24; }
.sm-post-card h3 a { text-decoration: none; }
.sm-post-card p { margin: 0 0 20px; color: var(--sm-ink-soft); font-size: .91rem; }
.sm-text-link { margin-top: auto; color: var(--sm-coral-dark); font-size: .88rem; font-weight: 800; text-decoration: none; }
button.sm-text-link { padding: 0; border: 0; background: transparent; }

.sm-cta { position: relative; overflow: hidden; padding: clamp(48px,7vw,76px); border-radius: var(--sm-radius-lg); color: #fff; background: var(--sm-ink); }
.sm-cta::after { content: ""; position: absolute; right: -85px; bottom: -125px; width: 340px; height: 340px; border-radius: 50%; background: var(--sm-coral); opacity: .95; }
.sm-cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: end; }
.sm-cta h2 { max-width: 700px; margin: 0; font-size: clamp(1.95rem,3.6vw,3.1rem); line-height: 1.1; letter-spacing: -.03em; }
.sm-cta p { max-width: 600px; margin: 18px 0 0; color: #c7cdd2; }
.sm-cta .sm-button { color: var(--sm-ink); background: #fff; }

/* Blog and content */
.sm-page-hero { padding: 76px 0 54px; }
.sm-page-hero h1 { max-width: 900px; font-size: clamp(2.35rem,4.6vw,3.8rem); }
.sm-page-hero p { max-width: 660px; color: var(--sm-ink-soft); font-size: 1.08rem; }
.sm-filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sm-filter-row a { padding: 8px 14px; border: 1px solid var(--sm-border); border-radius: 999px; background: #fff; font-size: .83rem; font-weight: 700; text-decoration: none; }
.sm-filter-row a:hover { color: #fff; border-color: var(--sm-coral); background: var(--sm-coral); }
.sm-posts-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.navigation.pagination { margin-top: 52px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; min-width: 42px; min-height: 42px; place-items: center; padding: 5px 10px; border: 1px solid var(--sm-border); border-radius: 12px; background: #fff; text-decoration: none; }
.page-numbers.current { color: #fff; border-color: var(--sm-coral); background: var(--sm-coral); }

.sm-article-header { padding: 72px 0 42px; text-align: center; }
.sm-article-header h1 { max-width: 900px; margin-inline: auto; font-size: clamp(2.2rem,4.5vw,3.7rem); }
.sm-article-deck { max-width: 720px; margin: 24px auto 0; color: var(--sm-ink-soft); font-size: 1.15rem; }
.sm-featured-image { width: min(calc(100% - 40px), 1060px); max-height: 620px; margin: 26px auto 62px; border-radius: var(--sm-radius-lg); object-fit: cover; }
.entry-content { color: #27313b; font-size: 1.075rem; }
.entry-content > * { max-width: var(--sm-reading); margin-inline: auto; }
.entry-content > .alignwide { max-width: 1040px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2em; color: var(--sm-ink); line-height: 1.2; letter-spacing: -.02em; }
.entry-content h2 { font-size: clamp(1.8rem,3.5vw,2.55rem); }
.entry-content h3 { font-size: clamp(1.4rem,2.7vw,1.85rem); }
.entry-content a { color: var(--sm-coral-dark); font-weight: 650; }
.entry-content blockquote { padding: 24px 28px; border-left: 5px solid var(--sm-coral); border-radius: 0 16px 16px 0; background: #fff0ed; font-size: 1.2rem; }
.entry-content pre { max-width: 900px; padding: 20px; overflow: auto; border-radius: 14px; color: #f7f7f7; background: var(--sm-ink); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--sm-border); text-align: left; }
.entry-content img { border-radius: var(--sm-radius-sm); }
.sm-article-footer { margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--sm-border); }
.sm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-tags a { padding: 7px 11px; border-radius: 999px; background: var(--sm-sand); font-size: .78rem; text-decoration: none; }
.sm-author-box { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 20px; margin-top: 40px; padding: 26px; border-radius: var(--sm-radius); background: #fff; }
.sm-author-box img { border-radius: 50%; }
.sm-author-box h2 { margin: 0 0 6px; font-size: 1.1rem; }
.sm-author-box p { margin: 0; color: var(--sm-ink-soft); font-size: .9rem; }
.post-navigation { margin-top: 50px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation a { display: block; padding: 20px; border: 1px solid var(--sm-border); border-radius: var(--sm-radius-sm); background: #fff; text-decoration: none; }
.post-navigation .nav-subtitle { display: block; color: var(--sm-ink-soft); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.post-navigation .nav-title { display: block; margin-top: 6px; font-weight: 750; line-height: 1.3; }

/* Forms */
.sm-dialog { width: min(94vw, 720px); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 26px; background: var(--sm-paper); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.sm-dialog::backdrop { background: rgba(23,32,42,.72); backdrop-filter: blur(5px); }
.sm-dialog-inner { position: relative; padding: clamp(28px,5vw,48px); }
.sm-dialog-close { position: absolute; top: 18px; right: 18px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--sm-border); border-radius: 50%; color: var(--sm-ink); background: #fff; font-size: 1.3rem; }
.sm-dialog h2 { max-width: 520px; margin: 0; padding-right: 40px; font-size: clamp(1.8rem,4vw,2.65rem); line-height: 1.1; }
.sm-dialog-intro { margin: 12px 0 28px; color: var(--sm-ink-soft); }
.sm-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.sm-field--full { grid-column: 1/-1; }
.sm-field label { display: block; margin-bottom: 7px; font-size: .84rem; font-weight: 750; }
.sm-field input, .sm-field textarea, .sm-field select, .search-form input[type="search"] { width: 100%; border: 1px solid #cfc8bd; border-radius: 12px; background: #fff; color: var(--sm-ink); }
.sm-field input, .sm-field select, .search-form input[type="search"] { min-height: 49px; padding: 10px 13px; }
.sm-field textarea { min-height: 112px; padding: 12px 13px; resize: vertical; }
.sm-field input:focus, .sm-field textarea:focus, .sm-field select:focus { border-color: var(--sm-coral); outline: 3px solid rgba(251,86,61,.12); }
.sm-field-help { margin: 6px 0 0; color: var(--sm-ink-soft); font-size: .75rem; }
.sm-consent { display: flex; gap: 10px; align-items: flex-start; color: var(--sm-ink-soft); font-size: .8rem; }
.sm-consent input { width: auto; min-height: auto; margin-top: 4px; }
.sm-form-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.sm-form-actions small { color: var(--sm-ink-soft); }
.sm-honeypot { position: absolute !important; left: -9999px !important; }
.sm-notice { margin: 20px auto; padding: 15px 18px; border-radius: 12px; font-weight: 700; }
.sm-notice--success { color: var(--sm-success); background: var(--sm-mint); }
.sm-notice--error { color: #922b21; background: #ffe9e5; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-submit { min-height: 49px; padding: 9px 18px; border: 0; border-radius: 12px; color: #fff; background: var(--sm-coral); font-weight: 750; }

/* Footer */
.site-footer { margin-top: 88px; padding: 46px 0 24px; color: #fff; background: var(--sm-ink); }
.sm-footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 34px; }
.sm-footer-brand p { max-width: 520px; margin: 14px 0 0; color: #bfc6cc; font-size: .9rem; }
.site-footer .sm-wordmark { color: #fff; }
.site-footer .custom-logo-link { display: inline-flex; padding: 9px 12px; border-radius: 10px; background: var(--sm-cream); }
.sm-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; padding-top: 5px; }
.sm-footer-links a { color: #d8dde1; font-size: .88rem; font-weight: 700; text-decoration: none; }
.sm-footer-links a:hover { color: #fff; }
.sm-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 20px; border-top: 1px solid #39414a; color: #929da5; font-size: .76rem; }
.sm-footer-note { margin: 0; text-align: right; }

.sm-empty { padding: 50px; border: 1px dashed var(--sm-border); border-radius: var(--sm-radius); text-align: center; }
.comment-list { padding-left: 22px; }
.comment-body { margin-bottom: 24px; padding: 20px; border: 1px solid var(--sm-border); border-radius: var(--sm-radius-sm); background: #fff; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--sm-border); border-radius: 12px; }
.comment-form .submit { padding: 12px 20px; border: 0; border-radius: 999px; color: #fff; background: var(--sm-coral); font-weight: 750; }
.sm-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.sm-404 strong { display: block; color: var(--sm-coral); font-size: clamp(5rem,16vw,10rem); font-weight: 800; line-height: .8; }

@media (max-width: 960px) {
  .sm-grid--3, .sm-posts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sm-hero-grid { grid-template-columns: 1fr; }
  .sm-hero-art { max-width: 680px; }
  .sm-about { grid-template-columns: 1fr; }
  .sm-about-portrait { min-height: 390px; }
  .sm-process-item { grid-template-columns: 55px 1fr; }
  .sm-process-item p { grid-column: 2; }
  .site-header, .admin-bar .site-header { position: relative; top: auto; backdrop-filter: none; }
  .sm-header-inner { display: flex; min-height: 68px; }
  .custom-logo { max-width: 210px; max-height: 38px; }
  .primary-navigation { position: absolute; z-index: 20; top: calc(100% + 8px); left: 20px; right: 20px; display: none; max-height: min(60vh, 380px); padding: 8px; overflow-y: auto; border: 1px solid var(--sm-border); border-radius: 16px; background: #fff; box-shadow: 0 20px 45px rgba(23,32,42,.16); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 4px; }
  .primary-navigation a { display: block; padding: 10px 12px; border-radius: 9px; }
  .primary-navigation a:hover { background: #fff4ef; }
  .sm-menu-toggle { display: block; }
  .sm-header-actions > .sm-button { display: none; }
}

@media (max-width: 700px) {
  .sm-container, .sm-reading { width: min(calc(100% - 28px), var(--sm-content)); }
  .sm-grid--3, .sm-grid--2, .sm-posts-grid, .sm-form-grid { grid-template-columns: 1fr; }
  .sm-hero { padding-top: 60px; }
  .sm-hero h1 { font-size: clamp(2.35rem,10vw,3.3rem); }
  .sm-hero::before { width: 260px; height: 260px; right: -25%; }
  .sm-hero-actions .sm-button { width: 100%; }
  .sm-art-note { position: static; width: fit-content; margin: -8px auto 0; }
  .sm-about-list { grid-template-columns: 1fr; }
  .sm-process-item { grid-template-columns: 42px 1fr; gap: 16px; }
  .sm-cta-inner { grid-template-columns: 1fr; }
  .sm-cta::after { opacity: .2; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .sm-form-actions { align-items: stretch; flex-direction: column; }
  .sm-header-inner { min-height: 64px; gap: 12px; }
  .custom-logo { max-width: 175px; max-height: 34px; }
  .sm-wordmark { font-size: .96rem; }
  .sm-wordmark-mark { width: 25px; height: 25px; }
  .primary-navigation { top: calc(100% + 6px); left: 14px; right: 14px; }
  .sm-footer-main, .sm-footer-bottom { align-items: flex-start; flex-direction: column; }
  .sm-footer-links { justify-content: flex-start; }
  .sm-footer-note { text-align: left; }
}

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

@media print {
  .site-header, .site-footer, .sm-dialog, .post-navigation { display: none !important; }
  body { color: #000; background: #fff; }
  .entry-content a { color: #000; }
}
