/*
Theme Name: MinPaw Foundation
Description: Temporary bilingual setup theme for MinPaw. Final content and design follow the supplied design brief.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: minpaw-foundation
License: GNU General Public License v2 or later
*/

:root { color-scheme: light; --ink: #24312e; --muted: #5a6662; --line: #e1e7e4; --mint: #edf6f1; --focus: #1e6752; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.7; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--focus); }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1120px; margin: auto; padding: 22px 28px; display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: center; }
.site-brand { font-size: 1.12rem; font-weight: 650; text-decoration: none; line-height: 1.4; }
.language-switcher { justify-self: end; display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; white-space: nowrap; }
.language-switcher a { min-height: 40px; padding: 6px 10px; border-radius: 4px; display: inline-flex; align-items: center; text-decoration: none; font-size: .9rem; }
.language-switcher a[aria-current="true"] { background: var(--mint); font-weight: 650; }
.primary-navigation { grid-column: 1 / -1; }
.primary-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.primary-navigation a { padding: 5px 0; display: inline-block; text-decoration: none; }
.primary-navigation a[aria-current="page"] { text-decoration: underline; font-weight: 650; }
.site-main { width: min(100% - 56px, 900px); margin: 64px auto 80px; min-height: 43vh; }
.setup-panel { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 12px; background: var(--mint); }
.setup-label { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
h1 { margin: 0 0 20px; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.3; letter-spacing: -.02em; font-weight: 600; }
h2 { font-size: 1.3rem; line-height: 1.4; }
p { margin: 0 0 16px; }
.setup-panel p:last-child { margin-bottom: 0; }
.lead { font-size: 1.08rem; }
.muted { color: var(--muted); }
.page-content { overflow-wrap: anywhere; }
.page-content img { max-width: 100%; height: auto; }
.page-content iframe, .page-content video { max-width: 100%; }
.entry { padding: 24px 0; border-bottom: 1px solid var(--line); }
.entry h2 { margin-top: 0; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1120px; margin: auto; padding: 26px 28px; color: var(--muted); font-size: .9rem; }
.footer-inner p { margin: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 16px; top: 12px; z-index: 9999; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 16px; background: #fff; border: 2px solid var(--focus); }
.search-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.search-form label { display: grid; gap: 6px; flex: 1; }
.search-field { width: 100%; min-height: 46px; border: 1px solid #aab6b0; border-radius: 5px; padding: 10px 12px; font: inherit; color: inherit; background: #fff; }
.search-submit, .button-link { min-height: 46px; border: 1px solid var(--focus); border-radius: 5px; padding: 10px 18px; font: inherit; color: #fff; background: var(--focus); cursor: pointer; }
.button-link { display: inline-block; text-decoration: none; margin-top: 10px; }
.button-link:hover { color: #fff; background: #164c3d; }
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .header-inner { padding: 16px; gap: 14px 10px; }
  .site-brand { max-width: 175px; font-size: .95rem; }
  .language-switcher a { padding: 6px 8px; font-size: .85rem; }
  .primary-navigation ul { gap: 22px; }
  .site-main { width: calc(100% - 32px); margin: 36px auto 48px; }
  .footer-inner { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
