:root {
  --ns-ink: #16231d;
  --ns-ink-soft: #283a31;
  --ns-primary: #176b4c;
  --ns-primary-dark: #0f4f38;
  --ns-accent: #d8a23b;
  --ns-soft: #f3f7f4;
  --ns-soft-2: #e8f1eb;
  --ns-border: #dbe5de;
  --ns-muted: #617168;
  --ns-white: #fff;
  --ns-danger: #9d2d2d;
  --ns-container: 1180px;
  --ns-content: 760px;
  --ns-radius: 22px;
  --ns-shadow: 0 18px 50px rgba(20, 48, 35, .09);
  --ns-shadow-soft: 0 10px 28px rgba(20, 48, 35, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-width: 280px; margin: 0; overflow-wrap: break-word; background: var(--ns-white); color: var(--ns-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.72; text-rendering: optimizeLegibility; }
body.nav-open { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
button, input, select, textarea { max-width: 100%; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--ns-primary); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--ns-primary-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(23, 107, 76, .28); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .55em; color: var(--ns-ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.13; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 6vw, 4.8rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.72rem, 3.6vw, 2.65rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
p, ul, ol { margin-top: 0; }
hr { border: 0; border-top: 1px solid var(--ns-border); }
::selection { background: #cbe7d6; color: var(--ns-ink); }

.container { width: min(calc(100% - 40px), var(--ns-container)); margin-inline: auto; }
.site-main { min-height: 60vh; }
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-soft { background: var(--ns-soft); }
.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 { z-index: 100000; top: 10px; left: 10px; width: auto; height: auto; padding: 12px 18px; clip: auto !important; background: #fff; color: var(--ns-ink); font-weight: 800; box-shadow: var(--ns-shadow); }
.skip-link { position: fixed !important; }
.eyebrow { margin: 0 0 10px; color: var(--ns-primary); font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-weight: 800; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 820; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--ns-primary); color: #fff; box-shadow: 0 8px 22px rgba(23, 107, 76, .18); }
.button-primary:hover { background: var(--ns-primary-dark); color: #fff; }
.button-secondary { border-color: var(--ns-border); background: #fff; color: var(--ns-ink); }
.button-secondary:hover { border-color: var(--ns-primary); color: var(--ns-primary); }

.header-observer { position: absolute; top: 0; width: 1px; height: 1px; }
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(219, 229, 222, .82); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(22, 35, 29, .07); }
.header-inner { position: relative; display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { min-width: 0; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; max-width: min(250px, 52vw); max-height: 58px; }
.brand-mark { display: inline-flex; min-width: 0; align-items: center; gap: 12px; color: var(--ns-ink); text-decoration: none; }
.brand-leaf { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50% 50% 50% 12%; background: var(--ns-primary); color: #fff; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 900; transform: rotate(-6deg); }
.brand-copy { display: grid; min-width: 0; line-height: 1.1; }
.brand-copy strong { overflow: hidden; font-family: Georgia, serif; font-size: 1.25rem; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy small { margin-top: 4px; color: var(--ns-muted); font-size: .67rem; letter-spacing: .035em; }
.primary-nav { display: flex; min-width: 0; align-items: center; gap: 12px; }
.menu { display: flex; margin: 0; padding: 0; align-items: center; gap: 2px; list-style: none; }
.menu li { position: relative; margin: 0; }
.menu a { display: flex; min-height: 44px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--ns-ink-soft); font-size: .85rem; font-weight: 720; text-decoration: none; }
.menu a:hover, .menu .current-menu-item > a, .menu .current_page_item > a, .menu .current-menu-ancestor > a { background: var(--ns-soft); color: var(--ns-primary); }
.menu .sub-menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; display: none; width: min(280px, calc(100vw - 40px)); padding: 8px; border: 1px solid var(--ns-border); border-radius: 14px; background: #fff; box-shadow: var(--ns-shadow-soft); list-style: none; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { display: block; }
.menu .sub-menu a { white-space: normal; }
.header-search { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; background: var(--ns-soft); color: var(--ns-ink); text-decoration: none; }
.header-search svg { width: 20px; height: 20px; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 12px; border: 0; border-radius: 12px; background: var(--ns-soft); color: var(--ns-ink); cursor: pointer; }
.nav-toggle-bar { display: block; width: 23px; height: 2px; margin: 5px auto; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

.hero-section { position: relative; overflow: hidden; padding: clamp(62px, 9vw, 118px) 0; background: linear-gradient(145deg, #f7faf7 0%, #eef6f0 58%, #fffaf0 100%); }
.hero-section::after { position: absolute; right: -120px; bottom: -180px; width: 430px; height: 430px; border-radius: 50%; background: rgba(216, 162, 59, .12); content: ""; filter: blur(2px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .94fr) minmax(380px, 1.06fr); align-items: center; gap: clamp(42px, 7vw, 86px); }
.hero-copy { min-width: 0; }
.hero-copy h1 { max-width: 760px; }
.hero-intro { max-width: 650px; margin-bottom: 28px; color: var(--ns-muted); font-size: clamp(1.06rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--ns-muted); font-size: .82rem; font-weight: 700; }
.trust-list li::before { margin-right: 7px; color: var(--ns-primary); content: "✓"; font-weight: 900; }
.hero-featured { min-width: 0; }
.featured-card { overflow: hidden; border: 1px solid rgba(219, 229, 222, .9); border-radius: 30px; background: #fff; box-shadow: var(--ns-shadow); }
.featured-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ns-soft-2); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.featured-card:hover .featured-media img { transform: scale(1.025); }
.media-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg, var(--ns-primary), #3b9270); color: #fff; font-family: Georgia, serif; font-size: 2rem; }
.featured-content { padding: clamp(22px, 4vw, 34px); }
.featured-content h2 { margin-top: 12px; font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
.featured-content h2 a { color: inherit; text-decoration: none; }
.featured-content p { color: var(--ns-muted); }
.category-badge { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 10px; border-radius: 999px; background: #e8f4ec; color: var(--ns-primary-dark); font-size: .7rem; font-weight: 850; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--ns-muted); font-size: .75rem; }

.section-heading { display: flex; margin-bottom: 34px; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin-bottom: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid var(--ns-border); border-radius: var(--ns-radius); background: #fff; box-shadow: 0 3px 0 rgba(22, 35, 29, .015); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--ns-shadow-soft); }
.post-card-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ns-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-media img { transform: scale(1.025); }
.post-card-content { padding: 22px; }
.post-card h3 { margin: 11px 0 10px; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card p { color: var(--ns-muted); font-size: .9rem; }
.topic-section { border-block: 1px solid var(--ns-border); background: var(--ns-soft); }
.topic-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.topic-card { min-width: 0; padding: 24px; border: 1px solid var(--ns-border); border-radius: 18px; background: #fff; color: var(--ns-ink); text-decoration: none; }
.topic-card:hover { border-color: #b8d4c2; box-shadow: var(--ns-shadow-soft); color: var(--ns-ink); }
.topic-icon { display: grid; width: 48px; height: 48px; margin-bottom: 18px; place-items: center; border-radius: 14px; background: var(--ns-soft-2); color: var(--ns-primary); font-size: 1.35rem; }
.topic-card h3 { margin-bottom: 9px; font-family: inherit; font-size: 1rem; font-weight: 850; }
.topic-card p { margin: 0; color: var(--ns-muted); font-size: .79rem; line-height: 1.55; }
.trust-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 7vw, 80px); padding: clamp(30px, 5vw, 58px); border-radius: 30px; background: #122d22; color: #dbe8e0; }
.trust-panel h2 { color: #fff; }
.trust-panel .eyebrow { color: #9ed3b4; }
.trust-panel p { color: #bad0c3; }
.trust-steps { display: grid; gap: 16px; }
.trust-step { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
.trust-step strong:first-child { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.trust-step h3 { margin-bottom: 4px; color: #fff; font-family: inherit; font-size: 1rem; }
.trust-step p { margin: 0; font-size: .84rem; }

.archive-hero { padding: clamp(48px, 7vw, 82px) 0 42px; background: var(--ns-soft); }
.archive-hero .breadcrumbs { margin-bottom: 26px; }
.archive-description { max-width: 760px; color: var(--ns-muted); font-size: 1.05rem; }
.archive-content { padding: 54px 0 90px; }
.pagination { margin-top: 44px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; min-width: 44px; min-height: 44px; padding: 8px; place-items: center; border: 1px solid var(--ns-border); border-radius: 10px; color: var(--ns-ink); text-decoration: none; }
.page-numbers.current, .page-numbers:hover { border-color: var(--ns-primary); background: var(--ns-primary); color: #fff; }
.search-form { display: flex; width: 100%; max-width: 680px; gap: 10px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 50px; padding: 10px 16px; border: 1px solid var(--ns-border); border-radius: 12px; background: #fff; color: var(--ns-ink); }
.search-submit { min-height: 50px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--ns-primary); color: #fff; font-weight: 800; cursor: pointer; }
.empty-state, .error-page { max-width: 760px; margin: 70px auto; padding: clamp(28px, 5vw, 46px); border-radius: var(--ns-radius); background: var(--ns-soft); text-align: center; }
.error-code { margin: 0; color: var(--ns-primary); font-family: Georgia, serif; font-size: clamp(4rem, 16vw, 7rem); font-weight: 900; line-height: 1; }
.error-page .search-form { margin: 24px auto; }

.breadcrumbs { margin: 0 0 30px; color: var(--ns-muted); font-size: .75rem; }
.breadcrumbs ol { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { min-width: 0; }
.breadcrumbs li:not(:last-child)::after { margin-left: 6px; content: "/"; color: #9aa69f; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs [aria-current="page"] { max-width: 52ch; overflow: hidden; color: var(--ns-ink); text-overflow: ellipsis; white-space: nowrap; }
.article-header-wrap { padding-top: clamp(34px, 6vw, 64px); }
.article-header { max-width: 960px; margin: 0 auto 38px; text-align: center; }
.article-header h1 { margin-top: 14px; font-size: clamp(2.2rem, 5.6vw, 4.85rem); }
.article-deck { max-width: 820px; margin: 0 auto 22px; color: var(--ns-muted); font-size: clamp(1.03rem, 2vw, 1.28rem); }
.article-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; color: var(--ns-muted); font-size: .82rem; }
.article-featured { overflow: hidden; max-width: 1080px; aspect-ratio: 16 / 9; margin: 0 auto 48px; border-radius: 28px; background: var(--ns-soft); }
.article-featured img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, var(--ns-content)); justify-content: center; gap: clamp(36px, 6vw, 62px); align-items: start; }
.article-aside { position: sticky; top: 108px; }
.aside-card { padding: 20px; border: 1px solid var(--ns-border); border-radius: 16px; background: var(--ns-soft); }
.article-toc ol { margin: 0; padding-left: 18px; }
.article-toc li { margin: 9px 0; color: var(--ns-muted); font-size: .8rem; line-height: 1.38; }
.article-toc a { color: inherit; text-decoration: none; }
.article-toc a:hover { color: var(--ns-primary); }
.mobile-toc { display: none; margin: 0 0 26px; padding: 16px 18px; border: 1px solid var(--ns-border); border-radius: 14px; background: var(--ns-soft); }
.mobile-toc summary { cursor: pointer; color: var(--ns-primary-dark); font-weight: 820; }
.mobile-toc .article-toc { margin-top: 12px; }
.article-main { min-width: 0; }
.entry-content { min-width: 0; color: #26372f; font-size: 1.055rem; }
.entry-content > * { max-width: var(--ns-content); }
.entry-content h2 { margin-top: 2.15em; scroll-margin-top: 110px; font-size: clamp(1.65rem, 3.2vw, 2.32rem); }
.entry-content h3 { margin-top: 1.65em; scroll-margin-top: 110px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .52em; }
.entry-content a { overflow-wrap: anywhere; }
.entry-content blockquote { margin: 2em 0; padding: 22px 26px; border-left: 4px solid var(--ns-primary); border-radius: 0 14px 14px 0; background: var(--ns-soft); color: var(--ns-ink); font-family: Georgia, serif; font-size: 1.14rem; }
.entry-content figure { max-width: 100%; margin: 2.15em 0; }
.entry-content figure img { width: auto; border-radius: 16px; }
.entry-content figcaption { margin-top: 8px; color: var(--ns-muted); font-size: .76rem; text-align: center; }
.entry-content .alignwide { width: min(100vw - 40px, 1040px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: .88rem; }
.entry-content .wp-block-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content th, .entry-content td { min-width: 120px; padding: 12px 13px; border: 1px solid var(--ns-border); text-align: left; vertical-align: top; }
.entry-content th { background: var(--ns-soft); }
.entry-content .ns-key-points, .entry-content .wp-block-group.is-style-ns-note { margin: 2em 0; padding: 24px; border: 1px solid #c8dece; border-radius: 16px; background: #f0f8f3; }
.entry-content .ns-practical-example { margin: 2em 0; padding: 24px; border-left: 4px solid var(--ns-accent); border-radius: 0 16px 16px 0; background: #fff9ed; }
.entry-content .ns-callout-warning { margin: 2em 0; padding: 24px; border: 1px solid #e8d9aa; border-radius: 16px; background: #fff9e9; }
.author-box { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; margin-top: 42px; padding: 26px; border: 1px solid var(--ns-border); border-radius: var(--ns-radius); background: var(--ns-soft); }
.author-avatar img { border-radius: 50%; }
.author-box h2 { margin-bottom: 8px; font-size: 1.4rem; }
.author-box p { margin-bottom: 8px; color: var(--ns-muted); font-size: .88rem; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.related-posts { padding: 76px 0 90px; }
.standard-page { max-width: 880px; margin: 0 auto; padding: 52px 0 90px; }
.page-header { margin-bottom: 36px; }
.page-content { min-width: 0; }
.page-content h2 { margin-top: 1.8em; }
.page-content h3 { margin-top: 1.4em; }
.page-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.page-content th, .page-content td { min-width: 150px; padding: 12px; border: 1px solid var(--ns-border); text-align: left; }

.ns-ad-slot { width: min(calc(100% - 40px), 970px); min-height: 1px; margin: 34px auto; overflow: hidden; text-align: center; }
.ns-ad-label { display: block; margin-bottom: 7px; color: #77847d; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.ns-sources, .ns-health-notice, .ns-editorial-note { margin-top: 34px; padding: 24px; border-radius: 16px; background: var(--ns-soft); }
.ns-sources h2, .ns-health-notice h2, .ns-editorial-note h2 { font-size: 1.38rem; }
.ns-sources ol { margin-bottom: 0; padding-left: 22px; }
.ns-sources li { margin: 8px 0; font-size: .84rem; }
.ns-sources a { overflow-wrap: anywhere; }
.ns-health-notice { border: 1px solid #ead9a4; background: #fff9e8; }
.ns-editorial-note { border: 1px solid #c7ddcf; background: #f2f8f4; }
.ns-contact-form { margin-top: 28px; }
.ns-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ns-contact-form label { display: grid; gap: 7px; font-weight: 760; }
.ns-contact-form input, .ns-contact-form select, .ns-contact-form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ns-border); border-radius: 10px; background: #fff; color: var(--ns-ink); }
.ns-contact-form textarea { min-height: 160px; resize: vertical; }
.ns-honeypot { position: absolute; left: -9999px; }
.ns-form-message { margin: 20px 0; padding: 14px 16px; border-radius: 10px; }
.ns-form-success { background: #e5f4e9; color: #155d32; }
.ns-form-error { background: #fae9e9; color: var(--ns-danger); }
.ns-form-privacy { color: var(--ns-muted); font-size: .8rem; }

.site-footer { padding-top: 62px; background: #10261d; color: #c8d6ce; }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 46px; padding-bottom: 46px; }
.brand-mark-footer { color: #fff; }
.footer-brand p { max-width: 460px; margin-top: 18px; color: #aebfb6; font-size: .9rem; }
.footer-address { margin-top: 14px; color: #9eb0a6; font-size: .78rem; }
.footer-title { color: #fff; font-family: inherit; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer .menu { display: grid; align-items: initial; gap: 4px; }
.site-footer .menu a { min-height: 38px; padding: 5px 0; color: #c7d5ce; text-decoration: none; }
.site-footer .menu a:hover { background: transparent; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); color: #9fb0a8; font-size: .74rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 1100px) {
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 210px minmax(0, 720px); gap: 36px; }
}

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .hero-featured { max-width: 800px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-panel { grid-template-columns: 1fr; gap: 34px; }
  .article-layout { grid-template-columns: minmax(0, var(--ns-content)); }
  .article-aside { display: none; }
  .mobile-toc { display: block; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; flex: 0 0 48px; }
  .primary-nav { position: fixed; z-index: 120; top: 70px; right: 14px; left: 14px; display: none; max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; padding: 14px; border: 1px solid var(--ns-border); border-radius: 16px; background: #fff; box-shadow: var(--ns-shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { display: grid; align-items: stretch; gap: 2px; }
  .primary-nav .menu a { min-height: 48px; padding: 12px; }
  .primary-nav .menu .sub-menu { position: static; display: grid; width: auto; margin: 0 0 5px 14px; padding: 0 0 0 10px; border: 0; border-left: 2px solid var(--ns-border); border-radius: 0; box-shadow: none; }
  .header-search { width: 100%; height: 48px; margin-top: 8px; border-radius: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--ns-container)); }
  .header-inner { min-height: 70px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 1.1rem; }
  .brand-leaf { width: 40px; height: 40px; flex-basis: 40px; }
  .hero-section { padding: 52px 0 62px; }
  .hero-grid { gap: 34px; }
  .hero-copy h1 { font-size: clamp(2.1rem, 10vw, 3.15rem); }
  .featured-card { border-radius: 20px; }
  .featured-content { padding: 21px; }
  .section { padding: 58px 0; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 26px; }
  .post-grid, .topic-grid { grid-template-columns: 1fr; }
  .post-card { display: grid; grid-template-columns: minmax(108px, 34%) minmax(0, 1fr); border-radius: 16px; }
  .post-card-media { height: 100%; min-height: 150px; aspect-ratio: auto; }
  .post-card-content { min-width: 0; padding: 16px; }
  .post-card h3 { font-size: 1.08rem; }
  .post-card p { display: none; }
  .post-card .category-badge { min-height: 30px; padding: 4px 8px; font-size: .62rem; }
  .post-card .post-meta { font-size: .66rem; }
  .trust-panel { padding: 26px; border-radius: 22px; }
  .archive-content { padding-top: 38px; }
  .article-header { text-align: left; }
  .article-header h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .article-deck { margin-left: 0; }
  .article-byline { justify-content: flex-start; }
  .article-featured { margin-bottom: 32px; border-radius: 18px; }
  .entry-content { font-size: 1rem; }
  .entry-content h2 { font-size: clamp(1.55rem, 8vw, 2rem); }
  .entry-content .ns-key-points, .entry-content .ns-practical-example, .entry-content .ns-callout-warning { padding: 19px; }
  .author-box { grid-template-columns: 1fr; padding: 22px; }
  .ns-form-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .search-form { flex-direction: column; }
  .search-submit { width: 100%; }
}

@media (max-width: 390px) {
  .container { width: min(calc(100% - 22px), var(--ns-container)); }
  .brand-copy strong { max-width: 150px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .post-card { grid-template-columns: 102px minmax(0, 1fr); }
  .post-card-content { padding: 13px; }
  .post-card h3 { font-size: 1rem; }
  .article-header h1 { font-size: clamp(1.9rem, 10.7vw, 2.55rem); }
  .breadcrumbs [aria-current="page"] { max-width: 34ch; }
  .footer-bottom { font-size: .7rem; }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 900px) {
  .primary-nav { top: 58px; max-height: calc(100dvh - 70px); }
  .header-inner { min-height: 58px; }
}

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

@media print {
  .site-header, .site-footer, .article-aside, .mobile-toc, .ns-ad-slot, .related-posts, .hero-actions { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .container, .article-layout { width: 100%; max-width: none; display: block; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* V3 — original tools, named responsibility and narrow-screen hardening. */
.tools-showcase { background: #fff; }
.tool-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool-preview-card { position: relative; min-width: 0; padding: 28px; overflow: hidden; border: 1px solid var(--ns-border); border-radius: 22px; background: linear-gradient(145deg, #fff 0%, #f6faf7 100%); box-shadow: 0 4px 0 rgba(22, 35, 29, .02); }
.tool-preview-card h3 { max-width: 16ch; margin: 28px 0 12px; font-family: inherit; font-size: 1.16rem; font-weight: 850; }
.tool-preview-card p { color: var(--ns-muted); font-size: .87rem; }
.tool-preview-number { position: absolute; top: 18px; right: 22px; color: #d6e5da; font-family: Georgia, serif; font-size: 2.6rem; font-weight: 900; line-height: 1; }
.tools-privacy-note { max-width: 780px; margin: 22px 0 0; color: var(--ns-muted); font-size: .78rem; }
.author-home-section { padding-top: 0; }
.author-home-panel { display: grid; grid-template-columns: 100px minmax(0, 1fr) minmax(250px, .62fr); align-items: center; gap: clamp(24px, 4vw, 46px); padding: clamp(28px, 5vw, 52px); border: 1px solid var(--ns-border); border-radius: 28px; background: #fff; box-shadow: var(--ns-shadow-soft); }
.author-home-initials { display: grid; width: 96px; height: 96px; place-items: center; border-radius: 28px 28px 28px 8px; background: var(--ns-primary); color: #fff; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 900; }
.author-home-copy h2 { margin-bottom: 4px; font-size: clamp(1.85rem, 4vw, 2.6rem); }
.author-home-copy > p { color: var(--ns-muted); }
.author-home-role { margin-bottom: 12px; color: var(--ns-primary-dark) !important; font-size: .82rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.author-home-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.author-home-boundary { min-width: 0; padding: 22px; border-radius: 18px; background: var(--ns-soft); }
.author-home-boundary strong { color: var(--ns-primary-dark); }
.author-home-boundary p { margin: 7px 0 0; color: var(--ns-muted); font-size: .82rem; }
.ns-table-scroll { width: 100%; max-width: 100%; margin: 2em 0; overflow-x: auto; overscroll-behavior-inline: contain; border-radius: 10px; -webkit-overflow-scrolling: touch; }
.ns-table-scroll:focus-visible { outline: 3px solid rgba(23, 107, 76, .28); outline-offset: 3px; }
.ns-table-scroll > table { min-width: 560px; margin: 0; }
.entry-content h1, .entry-content h2, .entry-content h3, .page-content h1, .page-content h2, .page-content h3, .author-box, .tool-preview-card, .author-home-panel { overflow-wrap: anywhere; }

@media (max-width: 1020px) {
  .tool-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-home-panel { grid-template-columns: 84px minmax(0, 1fr); }
  .author-home-initials { width: 82px; height: 82px; }
  .author-home-boundary { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .tool-preview-grid { grid-template-columns: 1fr; }
  .tool-preview-card { padding: 22px; border-radius: 18px; }
  .tool-preview-card h3 { margin-top: 22px; }
  .author-home-panel { grid-template-columns: 1fr; padding: 24px; border-radius: 22px; }
  .author-home-initials { width: 70px; height: 70px; border-radius: 20px 20px 20px 7px; font-size: 1.4rem; }
  .author-home-boundary { grid-column: auto; }
  .author-home-links { align-items: stretch; flex-direction: column; }
  .author-home-links .button, .author-home-links .text-link { width: 100%; }
  .entry-content > table, .page-content > table { min-width: 560px; }
}

@media (max-width: 340px) {
  .container { width: min(calc(100% - 18px), var(--ns-container)); }
  .brand-copy strong { max-width: 122px; font-size: 1rem; }
  .brand-leaf { width: 36px; height: 36px; flex-basis: 36px; font-size: 1.05rem; }
  .hero-copy h1 { font-size: clamp(1.82rem, 10.5vw, 2.4rem); }
  .post-card { grid-template-columns: 92px minmax(0, 1fr); }
  .post-card-content { padding: 11px; }
  .post-card h3 { font-size: .94rem; }
  .trust-panel, .author-home-panel, .ns-tool { padding: 20px; }
}


/* Integrated article media 3.0.4 */
.entry-content .ns-restored-media,
.entry-content figure.wp-block-image {
  margin: 2rem 0;
  max-width: 100%;
}
.entry-content .ns-restored-media img,
.entry-content figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.entry-content figcaption {
  margin-top: .65rem;
  color: var(--ns-muted);
  font-size: .9rem;
  line-height: 1.5;
}
@media (max-width: 680px) {
  .entry-content .ns-restored-media,
  .entry-content figure.wp-block-image {
    margin: 1.5rem 0;
  }
  .article-featured {
    aspect-ratio: 4 / 3;
  }
}


.entry-content figure.ns-article-media {
  width: 100%;
  max-width: var(--ns-content);
  overflow: hidden;
  border-radius: 18px;
  background: #f4f7f5;
}
.entry-content figure.ns-article-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.entry-content figure.ns-article-media figcaption {
  padding: 0 .75rem .85rem;
}
@media (max-width: 680px) {
  .entry-content figure.ns-article-media { border-radius: 14px; }
  .entry-content figure.ns-article-media img { aspect-ratio: 4 / 3; }
}
