@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --tp-primary: #1d5b45;
  --tp-primary-hover: #144735;
  --tp-primary-light: #e6f0e9;
  --tp-primary-border: #b9d1c1;
  --tp-accent: #df9b3d;
  --tp-accent-green: #267a59;
  --tp-accent-amber: #d9902e;
  --tp-text-main: #17251e;
  --tp-text-muted: #59685f;
  --tp-text-light: #839087;
  --tp-bg: #f4f5ef;
  --tp-surface: #fffefa;
  --tp-surface-alt: #edf1eb;
  --tp-border: #dce3da;
  --tp-border-focus: #1d5b45;
  --tp-radius-sm: 10px;
  --tp-radius: 16px;
  --tp-radius-lg: 22px;
  --tp-shadow-sm: 0 2px 8px rgba(23, 37, 30, .045);
  --tp-shadow: 0 10px 28px rgba(23, 37, 30, .065);
  --tp-shadow-lg: 0 18px 40px rgba(23, 37, 30, .11);
  --tp-font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --tp-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --tp-max-width: 1200px;
  --gf-primary: #1d5b45;
  --gf-primary-hover: #144735;
  --gf-primary-light: #e6f0e9;
  --gf-primary-border: #b9d1c1;
  --gf-accent: #df9b3d;
  --gf-text-main: #17251e;
  --gf-text-muted: #59685f;
  --gf-bg: #f4f5ef;
  --gf-surface: #fffefa;
  --gf-surface-alt: #edf1eb;
  --gf-border: #dce3da;
  --gf-radius: 16px;
  --gf-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

html { background: var(--tp-bg); color: var(--tp-text-main); font-family: var(--tp-font); }
body { background: var(--tp-bg); color: var(--tp-text-main); }
::selection { background: #cde2d3; color: #17251e; }
:focus-visible { outline: 3px solid #d9902e; outline-offset: 3px; }
.container { max-width: var(--tp-max-width); padding-inline: 30px; }

.site-header {
  background: rgba(244, 245, 239, .94);
  border-bottom: 1px solid rgba(23, 37, 30, .1);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.header-inner { height: 82px; }
.brand { gap: 12px; font-family: 'Manrope', sans-serif; font-size: 1.3rem; letter-spacing: -.045em; }
.brand img { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 5px 12px rgba(23, 37, 30, .13); }
.brand-text { color: var(--tp-text-main); background: none; -webkit-text-fill-color: currentColor; }
.nav-links { gap: 4px; }
.nav-item a, .dropdown-trigger { min-height: 44px; padding: 10px 14px; border-radius: 11px; color: var(--tp-text-muted); transition: color .18s ease, background .18s ease, transform .18s ease; }
.nav-item a:hover, .nav-item a.active, .dropdown-trigger:hover, .nav-dropdown:hover .dropdown-trigger, .nav-dropdown.is-open .dropdown-trigger { color: var(--tp-primary); background: #e7eee7; }
.nav-item a:hover, .dropdown-trigger:hover { transform: translateY(-1px); }
.nav-badge { background: #e6f0e9; color: #1d5b45; }
.dropdown-menu { border-color: var(--tp-border); border-radius: 14px; box-shadow: 0 18px 36px rgba(23, 37, 30, .12); }
.dropdown-item:hover { background: var(--tp-surface-alt); }

/* A calm, high contrast hero: the tool remains the subject. */
.hero {
  min-height: min(690px, calc(100svh - 82px));
  padding: 70px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  background: #17372c;
  color: #f8f7ee;
}
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.hero::before { width: 520px; height: 520px; border: 1px solid rgba(226, 237, 224, .12); border-radius: 50%; right: -185px; top: -250px; box-shadow: 0 0 0 42px rgba(226, 237, 224, .025), 0 0 0 88px rgba(226, 237, 224, .02); }
.hero::after { width: 270px; height: 270px; border: 1px solid rgba(223, 155, 61, .26); border-radius: 50%; left: -115px; bottom: -150px; box-shadow: 0 0 0 34px rgba(223, 155, 61, .035); }
.hero-pill { color: #f2c77f; background: rgba(244, 245, 239, .07); border-color: rgba(242, 199, 127, .35); box-shadow: none; padding: 8px 16px; letter-spacing: .075em; }
.hero h1 { max-width: 980px; font: 800 clamp(2.6rem, 5vw, 4.55rem)/1.07 'Manrope', sans-serif; letter-spacing: -.065em; margin-bottom: 22px; color: #fffdf4; }
.hero-highlight { color: #f2bd65; background: none; -webkit-text-fill-color: currentColor; }
.hero-desc { max-width: 670px; margin-bottom: 34px; color: #d1ddd4; font-size: 1.12rem; line-height: 1.75; }
.trust-bar { gap: 0; padding: 0; background: rgba(255, 254, 250, .06); border: 1px solid rgba(255, 254, 250, .18); border-radius: 14px; box-shadow: none; overflow: hidden; }
.trust-item { min-height: 52px; padding: 0 20px; color: #eff4ed; font-size: .86rem; }
.trust-item + .trust-item { border-left: 1px solid rgba(255, 254, 250, .16); }
.trust-item svg { color: #f2bd65; }

.hub-section { padding: 76px 0 86px; }
.hub-grid { gap: 22px; margin-bottom: 54px; }
.hub-card { padding: 34px; border-radius: 18px; box-shadow: var(--tp-shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.hub-card:hover { transform: translateY(-3px); border-color: #bfd1c2; box-shadow: var(--tp-shadow); }
.hub-card::before { height: 3px; }
.hub-card.image-card::before { background: #1d5b45; }
.hub-card.calc-card::before { background: #df9b3d; }
.hub-header { align-items: center; gap: 15px; margin-bottom: 25px; }
.hub-icon { border-radius: 15px; }
.hub-icon.image-icon { background: #e6f0e9; color: #1d5b45; }
.hub-icon.calc-icon { background: #fff1d9; color: #a96516; }
.hub-title { font-family: 'Manrope', sans-serif; letter-spacing: -.035em; }
.tool-item { background: #f3f5ef; border: 1px solid #edf0e9; border-radius: 13px; padding: 17px 18px; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.tool-item:hover { background: #fffefa; border-color: #b9d1c1; box-shadow: 0 5px 14px rgba(23, 37, 30, .055); transform: translateY(-2px); }
.tool-arrow { color: #1d5b45; }
.specs-card { border-radius: 18px; padding: 34px; box-shadow: var(--tp-shadow-sm); }

main:not(:has(.hero)) { min-height: 58vh; }
.tool-page-header { padding: 54px 0 34px; text-align: left; }
.tool-page-header .container { max-width: 1000px; }
.breadcrumbs { justify-content: flex-start; margin-bottom: 21px; color: #76847a; font-size: .82rem; }
.breadcrumbs a { color: var(--tp-primary); }
.tool-title { max-width: 860px; font: 800 clamp(2.2rem, 4vw, 3.5rem)/1.12 'Manrope', sans-serif; letter-spacing: -.055em; margin-bottom: 16px; }
.tool-subtitle { max-width: 720px; margin: 0; color: var(--tp-text-muted); font-size: 1.08rem; }
.presets-bar { padding: 18px 20px; gap: 14px; border-radius: 16px; background: #fffefa; border-color: #dce3da; box-shadow: var(--tp-shadow-sm); }
.presets-label { color: #5c6b61; letter-spacing: .075em; }
.pill-btn { min-height: 42px; padding: 9px 15px; border-radius: 10px; background: #f5f6f1; border-color: #dce3da; color: #33483b; box-shadow: none; }
.pill-btn:hover { background: #edf3ec; border-color: #b9d1c1; color: #17372c; transform: translateY(-2px); box-shadow: none; }
.pill-btn.active, .pill-btn.pill-active { background: #1d5b45; border-color: #1d5b45; color: #fffefa; box-shadow: 0 4px 10px rgba(29, 91, 69, .16); }
.workspace-card { padding: 32px; margin-bottom: 48px; border: 1px solid #dce3da; border-radius: 18px; background: #fffefa; box-shadow: 0 12px 30px rgba(23, 37, 30, .065); }
.workspace-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 34px; }
.controls-panel { gap: 22px; }
.preview-panel { top: 102px; }
.preview-container { min-height: 360px; padding: 30px; background: #f5f7f1; border: 1px dashed #aabcae; border-radius: 15px; color: #59685f; }
.preview-container:hover { border-color: #1d5b45; background: #eef3ed; }
.preview-container img { max-width: 100%; height: auto; border-radius: 10px; }
.control-label { margin-bottom: 9px; color: #25372c; }
.control-input, .control-select { height: 50px; border: 1px solid #ccd7ce; border-radius: 10px; background: #fffefa; color: #17251e; }
.control-input:focus, .control-select:focus { border-color: #1d5b45; box-shadow: 0 0 0 3px rgba(29, 91, 69, .14); }
input[type="file"].control-input { min-height: 54px; background: #f5f7f1; }
input[type="file"].control-input::file-selector-button { background: #1d5b45; border-radius: 8px; }
input[type="file"].control-input::file-selector-button:hover { background: #144735; }
.info-spec-card { background: #f1f5ef; border-color: #dce3da; border-left-color: #df9b3d; border-radius: 12px; color: #44564a; }
.btn { min-height: 48px; border-radius: 10px; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #1d5b45; box-shadow: 0 6px 14px rgba(29, 91, 69, .18); }
.btn-primary:hover:not(:disabled) { background: #144735; transform: translateY(-2px); box-shadow: 0 9px 18px rgba(29, 91, 69, .23); }
.result-bar { background: #e8f3eb; border-color: #c5decf; }
.result-badge { background: #267a59; }
.result-text { color: #205a41; }

.guide-section { max-width: 980px; margin: 70px auto 52px; padding-top: 0; }
.guide-section h2, .faq-title { font-family: 'Manrope', sans-serif; letter-spacing: -.045em; }
.guide-section h2 { margin-top: 48px; font-size: 1.8rem; }
.guide-grid { gap: 18px; }
.guide-card { border-radius: 15px; padding: 24px; box-shadow: none; }
.guide-card:hover { border-color: #bfd1c2; box-shadow: var(--tp-shadow-sm); }
.guide-badge { background: #e6f0e9; color: #1d5b45; border-radius: 7px; }
.guide-card-title { font-family: 'Manrope', sans-serif; letter-spacing: -.02em; }
.specs-table th { background: #eef2ec; color: #44564a; }
.specs-table td strong { color: #1d5b45; }
.guide-checklist li { border-radius: 12px; box-shadow: none; }
.faq-section { margin-top: 68px; border-top-color: #dce3da; }
.faq-list { gap: 10px; }
.faq-item { border-radius: 12px; }
.faq-item:hover { border-color: #b9d1c1; }
.faq-question { min-height: 62px; }
.faq-icon { color: #1d5b45; }

/* Existing legal and support pages keep their copy and gain a quieter reading surface. */
main > .container[style*="max-width"] { margin-top: 44px; margin-bottom: 48px; padding: 44px 46px !important; max-width: 900px !important; border: 1px solid #dce3da; border-radius: 18px; background: #fffefa; box-shadow: var(--tp-shadow-sm); }
main > .container[style*="max-width"] > h1 { font: 800 clamp(2rem, 3.6vw, 3rem)/1.12 'Manrope', sans-serif !important; letter-spacing: -.05em; color: #17251e !important; }
main > .container[style*="max-width"] h2 { color: #1d5b45 !important; font-family: 'Manrope', sans-serif; letter-spacing: -.025em; }
main > .container[style*="max-width"] p, main > .container[style*="max-width"] li { color: #4f6055; }
main > .container[style*="max-width"] strong { color: #25372c; }
main > .container[style*="max-width"] .workspace-card { margin: 24px 0 0; }
main > .container[style*="max-width"] a:not(.btn) { color: #1d5b45; }
.main-content .container { padding-block: 76px !important; }
.badge { border-radius: 999px; }

.site-footer { margin-top: 64px; padding: 54px 0 28px; background: #14271f; color: #c2cec4; border-top: 0; }
.site-footer .container { max-width: var(--tp-max-width); }
.footer-grid { gap: 42px; }
.footer-brand { color: #fffefa; }
.footer-brand img { width: 36px; height: 36px; border-radius: 11px; }
.footer-tagline { color: #b0beb4; }
.footer-heading { color: #f0c276; letter-spacing: .09em; }
.footer-links a { color: #c2cec4; }
.footer-links a:hover { color: #f2bd65; }
.footer-bottom { border-top-color: rgba(255, 254, 250, .16); color: #b0beb4; }

@media (max-width: 960px) {
  .container { padding-inline: 24px; }
  .hero { min-height: 620px; }
  .hub-grid { gap: 18px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 26px; }
  .preview-panel { position: static; }
}
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .header-inner { min-height: 72px; height: auto; padding: 13px 0; flex-direction: row; gap: 10px; }
  .brand { font-size: 1.16rem; }
  .brand img { width: 38px; height: 38px; }
  .nav-links { gap: 3px; }
  .nav-item a, .dropdown-trigger { min-height: 40px; padding: 8px 10px; font-size: .82rem; }
  .hero { min-height: 610px; padding: 60px 18px; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3.25rem); line-height: 1.08; }
  .hero-desc { font-size: 1rem; margin-bottom: 26px; }
  .trust-bar { width: min(100%, 360px); border-radius: 13px; flex-direction: column; align-items: stretch; }
  .trust-item { justify-content: center; min-height: 44px; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid rgba(255, 254, 250, .16); }
  .hub-section { padding: 50px 0 62px; }
  .hub-grid { grid-template-columns: 1fr; gap: 16px; }
  .hub-card { padding: 24px 20px; }
  .hub-title { font-size: 1.25rem; }
  .tool-page-header { padding: 34px 0 24px; }
  .tool-title { font-size: 2.2rem; }
  .presets-bar { padding: 15px; }
  .presets-list { gap: 8px; }
  .pill-btn { min-height: 42px; padding-inline: 12px; }
  .workspace-card { padding: 20px 16px; margin-bottom: 38px; }
  .preview-container { min-height: 260px; padding: 22px 16px; }
  .guide-section { margin: 54px auto 40px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-section h2 { font-size: 1.5rem; }
  .specs-card { padding: 22px 16px; overflow-x: auto; }
  .specs-table { min-width: 650px; }
  main > .container[style*="max-width"] { margin: 22px 14px 36px; padding: 28px 21px !important; width: auto; }
  main > .container[style*="max-width"] > h1 { font-size: 2rem !important; }
  .main-content .container { padding-block: 54px !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { margin-top: 44px; padding: 42px 0 24px; }
}
@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 (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: center; }
  .site-header nav { width: 100%; }
  .nav-links { width: 100%; justify-content: center; }
}

/* Compact homepage and shared navigation */
.site-header {
  background: #fffefa;
  border-bottom-color: #dce3da;
  box-shadow: 0 3px 14px rgba(23, 37, 30, .035);
}
.header-inner { min-height: 68px; height: auto; gap: 20px; }
.site-header .brand { flex: 0 0 auto; }
.site-header .brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; }
.site-header .nav-links { gap: 5px; }
.site-header .nav-item > a,
.site-header .dropdown-trigger {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #36473d;
  font-size: .875rem;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.site-header .nav-item > a:hover,
.site-header .dropdown-trigger:hover { transform: none; background: #f0f3ed; color: #17372c; }
.site-header .nav-item > a[aria-current="page"],
.site-header .nav-item > a.active,
.site-header .dropdown-trigger[aria-expanded="true"] {
  background: #e8efe8;
  border-color: #d8e4da;
  color: #1a513d;
}
.site-header .dropdown-trigger svg { flex: none; color: #607368; transform: none; }
.site-header .dropdown-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-header .dropdown-menu {
  inset: calc(100% + 8px) auto auto 0;
  width: min(342px, calc(100vw - 32px));
  min-width: 0;
  padding: 6px;
  gap: 0;
  background: #fffefa;
  border: 1px solid #dce3da;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(20, 39, 31, .15), 0 2px 7px rgba(20, 39, 31, .06);
}
.site-header .nav-dropdown:not(.is-open) .dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  pointer-events: none;
}
.site-header .dropdown-menu .dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  padding: 11px 13px;
  border-radius: 7px;
}
.site-header .dropdown-menu .dropdown-item + .dropdown-item { margin-top: 2px; }
.site-header .dropdown-item strong { font-size: .91rem; }
.site-header .dropdown-item span { font-size: .8rem; }

.hero {
  display: block;
  min-height: 0;
  padding: clamp(32px, 4.6vw, 68px) 0 clamp(28px, 3.7vw, 54px);
  text-align: left;
  background: #fffefa;
  border-bottom: 1px solid var(--tp-border);
}
.hero::before, .hero::after { content: none; }
.hero > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(195px, 24%);
  column-gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-pill {
  grid-column: 1;
  justify-self: start;
  max-width: 100%;
  margin: 0 0 13px;
  padding: 4px 0 4px 11px;
  color: #245440;
  background: none;
  border: 0;
  border-left: 2px solid #789984;
  border-radius: 0;
  font-size: .71rem;
}
.hero h1 {
  grid-column: 1;
  max-width: 24ch;
  margin: 0 0 13px;
  font-size: clamp(2.15rem, 4.05vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.055em;
  color: #17251e;
  text-wrap: balance;
}
.hero-highlight { color: #2b674e; }
.hero-desc {
  grid-column: 1;
  max-width: 64ch;
  margin: 0;
  color: #53645a;
  font-size: 1rem;
  line-height: 1.65;
}
.hero .trust-bar {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0 16px;
  background: #f0f4ee;
  border: 1px solid #e0e9e0;
  border-radius: 12px;
}
.hero .trust-item {
  justify-content: flex-start;
  min-height: 47px;
  padding: 6px 0;
  color: #2b4738;
}
.hero .trust-item + .trust-item { border: 0; border-top: 1px solid #dce6dc; }
.hero .trust-item svg { flex: none; color: #2b674e; }

.hero + .hub-section { padding: 24px 0 48px; }
.hub-grid { gap: 18px; margin-bottom: 30px; align-items: stretch; }
.hub-card { padding: clamp(20px, 2.6vw, 32px); border-radius: 14px; }
.hub-card:hover { transform: none; box-shadow: var(--tp-shadow-sm); }
.hub-card::before { content: none; }
.hub-header { gap: 12px; margin-bottom: 18px; }
.hub-icon { width: 38px; height: 38px; font-size: 1.18rem; border-radius: 9px; }
.hub-title { line-height: 1.22; font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 5px; }
.hub-card.image-card { background: #193d30; border-color: #193d30; }
.image-card .hub-title { color: #fffefa; }
.image-card .hub-desc { color: #d9e8df; }
.image-card .tool-item {
  gap: 12px;
  padding: 14px;
  color: #fffefa;
  background: #2b4c40;
  border-color: #527164;
  border-radius: 9px;
}
.image-card .tool-item:hover { background: #36594b; border-color: #87a696; }
.image-card .tool-item strong { color: #fffefa; }
.image-card .tool-item span { color: #d9e8df; }
.image-card .tool-arrow { color: #e3f2e8; }
.calc-card .hub-icon { background: #eaf0e8; }
.calc-card .tool-list { gap: 0; }
.calc-card .tool-item { gap: 10px; padding: 9px 0; border: 0; border-top: 1px solid #e2e8df; border-radius: 0; background: none; }
.calc-card .tool-item:hover { transform: none; box-shadow: none; }
.hero + .hub-section .specs-card { border-radius: 14px; margin-bottom: 0; }
.hero + .hub-section .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 780px) {
  .header-inner { gap: 5px; flex-direction: column; padding-block: 8px 6px; }
  .site-header nav { position: relative; width: 100%; }
  .site-header .nav-links { flex-wrap: wrap; justify-content: center; gap: 0 2px; }
  .site-header .nav-item > a, .site-header .dropdown-trigger { padding-inline: 8px; font-size: .79rem; }
  .site-header .nav-dropdown { position: static; }
  .site-header .dropdown-menu { left: 50%; translate: -50% 0; }
  .hero > .container { grid-template-columns: 1fr; }
  .hero .trust-bar { grid-column: 1; grid-row: auto; margin-top: 18px; width: fit-content; flex-direction: row; flex-wrap: wrap; padding: 3px 8px; }
  .hero .trust-item { min-height: 34px; font-size: .76rem; padding: 4px 7px; }
  .hero .trust-item + .trust-item { border: 0; }
  .hero .trust-item svg { width: 15px; height: 15px; }
  .hero + .hub-section .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .site-header .nav-item > a, .site-header .dropdown-trigger { padding-inline: 6px; }
  .hero h1 { font-size: clamp(1.95rem, 8vw, 2.2rem); }
  .hero + .hub-section .specs-card { padding: 18px; overflow: visible; }
}

/* Keep the shared header on one row; give the menu its own space on phones. */
.site-header .header-inner { min-height: 68px; flex-direction: row; padding-block: 0; }
.site-header nav { position: static; width: auto; }
.site-header .nav-links { width: auto; flex-wrap: nowrap; gap: 4px; }
.site-header .nav-item > a, .site-header .dropdown-trigger {
  padding-inline: 12px;
  white-space: nowrap;
}
.site-header .nav-dropdown { position: relative; }
.site-header .dropdown-menu {
  inset: calc(100% + 8px) auto auto 0;
  translate: none;
  width: max-content;
  min-width: 215px;
  list-style: none;
}
.site-header .dropdown-menu .dropdown-item {
  min-height: 44px;
  flex-direction: row;
  align-items: center;
}
.site-header .dropdown-item:hover { transform: none; }
.site-header .dropdown-item[aria-current="page"],
.site-header .nav-dropdown:has(.dropdown-item[aria-current="page"]) > .dropdown-trigger {
  color: #1a513d;
  background: #e8efe8;
}
.site-header .nav-item a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid #1a513d;
  outline-offset: 2px;
}
.site-header .site-menu-toggle { display: none; }

@media (max-width: 900px) {
  .site-header .header-inner { padding-inline: 18px; }
}

@media (max-width: 760px) {
  .site-header .header-inner { min-height: 60px; }
  .site-header .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d8e4da;
    border-radius: 8px;
    background: #fffefa;
    color: #1a513d;
    font: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
  }
  .site-header .site-menu-toggle[aria-expanded="true"] { background: #e8efe8; }
  .site-header nav {
    display: none;
    position: absolute;
    inset: 100% 18px auto auto;
    width: min(360px, calc(100% - 36px));
    max-height: calc(100dvh - 76px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px;
    background: #fffefa;
    border: 1px solid #dce3da;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(20, 39, 31, .15);
  }
  .site-header.is-menu-open nav { display: block; }
  .site-header .nav-links { flex-direction: column; align-items: stretch; }
  .site-header .nav-item > a, .site-header .dropdown-trigger {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }
  .site-header .dropdown-menu {
    position: static;
    width: auto;
    min-width: 0;
    margin: 3px 0 3px 13px;
    padding: 0 0 0 6px;
    border: 0;
    border-left: 1px solid #dce3da;
    border-radius: 0;
    box-shadow: none;
    transition: none;
  }
  .site-header .dropdown-menu::before { display: none; }
  .site-header .nav-dropdown:not(.is-open) .dropdown-menu { display: none; }
  .site-header .dropdown-menu .dropdown-item { padding-block: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .dropdown-menu, .site-header .dropdown-trigger svg { transition: none; }
}

/* Keep the expanded 14-tool navigation reachable on short desktop viewports. */
@media (min-width: 761px) and (max-height: 680px) {
  .site-header .dropdown-menu {
    inset: 100% auto auto 0;
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
