:root {
  --sm-green-900: #0f3d2e;
  --sm-green-700: #164d3a;
  --sm-green-500: #3d705b;
  --sm-green-400: #6d8f6f;
  --sm-green-100: #e9f0e9;
  --sm-gold-600: #a77d24;
  --sm-gold-500: #c79a3b;
  --sm-gold-100: #f5ead0;
  --sm-charcoal: #222529;
  --sm-muted: #66706a;
  --sm-cream: #f6f4ef;
  --sm-white: #fff;
  --sm-border: #dddcd6;
  --sm-danger: #a23d35;
  --shadow-small: 0 2px 8px rgba(20, 40, 30, .05);
  --radius: 12px;
  --radius-large: 18px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sm-charcoal);
  background: var(--sm-white);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { color: var(--sm-green-700); text-underline-offset: 3px; }
a:hover { color: var(--sm-green-900); }
p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--sm-green-900); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.65rem, 6vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.22rem; }
button, input, select, textarea { font: inherit; }

.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-main { min-height: 60vh; overflow: hidden; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .75rem 1rem; background: var(--sm-gold-500); color: var(--sm-charcoal); font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(221,220,214,.8); backdrop-filter: blur(12px); }
.site-header .navbar { min-height: 78px; padding: .5rem 0; }
.site-header__inner { display: flex; gap: 1.5rem; }
.navbar-brand { display: flex; flex: 0 0 auto; width: 210px; padding: 0; margin: 0; }
.navbar-brand img { display: block; width: 210px; height: 70px; object-fit: contain; object-position: left center; }
.navbar-collapse { align-items: center; gap: 1.25rem; }
.site-nav { align-items: center; gap: .05rem; margin-left: auto; }
.site-nav .nav-link, .account-nav .nav-link { min-height: 44px; display: inline-flex; align-items: center; padding: .55rem .65rem; border-radius: 8px; color: var(--sm-green-900); font-size: .91rem; font-weight: 650; white-space: nowrap; }
.site-nav .nav-link:hover, .account-nav .nav-link:hover { background: var(--sm-cream); }
.site-nav .nav-link--accent { color: var(--sm-gold-600); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.header-search { display: flex; align-items: center; width: 184px; height: 42px; border: 1px solid var(--sm-border); border-radius: 9px; background: var(--sm-white); }
.header-search:focus-within { border-color: var(--sm-green-700); box-shadow: 0 0 0 3px rgba(22,77,58,.13); }
.header-search input { width: 100%; min-width: 0; padding: .5rem .1rem .5rem .75rem; border: 0; outline: 0; background: transparent; font-size: .86rem; }
.header-search button { width: 38px; height: 38px; border: 0; background: transparent; color: var(--sm-green-700); font-size: 1.25rem; }
.account-nav { flex-direction: row; align-items: center; margin: 0; }
.button-link { border: 0; background: transparent; }
.account-menu__trigger { min-height: 44px; display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .6rem .3rem .35rem; border: 0; border-radius: 999px; background: transparent; color: var(--sm-green-900); font-size: .88rem; font-weight: 750; white-space: nowrap; }
.account-menu__trigger:hover, .account-menu__trigger[aria-expanded="true"] { background: var(--sm-cream); }
.account-menu__trigger:focus-visible { outline: 3px solid rgba(22,77,58,.2); outline-offset: 2px; }
.account-menu__avatar { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--sm-green-700); color: var(--sm-white); font-family: Georgia, serif; font-size: .95rem; font-weight: 700; }
.account-menu__avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-menu__name { max-width: 125px; overflow: hidden; text-overflow: ellipsis; }
.account-menu__panel { min-width: 250px; padding: .55rem; border: 1px solid var(--sm-border); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(15,61,46,.14); }
.account-menu__panel .dropdown-item { padding: .62rem .7rem; border-radius: 7px; color: var(--sm-green-900); font-size: .88rem; font-weight: 650; }
.account-menu__panel .dropdown-item:hover, .account-menu__panel .dropdown-item:focus { background: var(--sm-green-100); }
.account-menu__identity { display: flex; flex-direction: column; padding: .5rem .7rem .35rem; }
.account-menu__identity strong { color: var(--sm-green-900); }
.account-menu__identity span { max-width: 220px; overflow: hidden; color: var(--sm-muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__panel .dropdown-divider { margin: .45rem 0; border-color: var(--sm-border); }
.account-menu__panel form { margin: 0; }
.account-menu__signout { color: var(--sm-danger) !important; }
.navbar-toggler { width: 46px; height: 44px; padding: 10px; border: 1px solid var(--sm-border); border-radius: 8px; }
.navbar-toggler span { display: block; height: 2px; margin: 5px 0; background: var(--sm-green-900); }

.hero { position: relative; background: linear-gradient(120deg, #fbfaf7 0%, var(--sm-cream) 75%); border-bottom: 1px solid var(--sm-border); }
.hero::before { content: ""; position: absolute; inset: auto 0 0; height: 34%; opacity: .35; background: repeating-linear-gradient(168deg, transparent 0 31px, rgba(109,143,111,.13) 32px 33px); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); align-items: center; min-height: 610px; padding-block: 4.5rem; }
.hero__content { max-width: 740px; }
.eyebrow { margin: 0 0 .7rem; color: var(--sm-gold-600); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow--light { color: #efd69c; }
.hero h1 { max-width: 760px; margin: 0 0 1.25rem; }
.hero h1 em { color: var(--sm-gold-600); font-style: normal; }
.hero__lede { max-width: 665px; margin-bottom: 1.8rem; color: #48524c; font-size: clamp(1.08rem, 2vw, 1.32rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .55rem; padding: .72rem 1.15rem; border: 1px solid transparent; border-radius: 9px; font-weight: 750; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--sm-green-700); color: var(--sm-white); }
.button--primary:hover { background: var(--sm-green-900); color: var(--sm-white); }
.button--secondary { border-color: var(--sm-green-700); background: var(--sm-white); color: var(--sm-green-700); }
.button--secondary:hover { background: var(--sm-green-100); }
.button--gold { background: var(--sm-gold-500); color: var(--sm-charcoal); }
.button--gold:hover { background: #d2a64c; color: var(--sm-charcoal); }
.trust-list { display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; margin: 1.6rem 0 0; padding: 0; list-style: none; color: var(--sm-muted); font-size: .91rem; }
.trust-list span { color: var(--sm-green-500); font-weight: 800; }
.hero__visual { display: grid; place-items: center; }
.hero-mark-wrap { position: relative; width: min(400px, 90%); aspect-ratio: 1; display: grid; place-items: center; }
.hero-mark-wrap::before { content: ""; position: absolute; inset: 6%; border: 1px solid rgba(22,77,58,.12); border-radius: 50%; box-shadow: 0 0 0 28px rgba(22,77,58,.025), 0 0 0 56px rgba(22,77,58,.018); }
.hero-mark-wrap img { position: relative; width: 78%; filter: drop-shadow(0 14px 24px rgba(15,61,46,.1)); }
.data-pill { position: absolute; display: flex; flex-direction: column; min-width: 142px; padding: .75rem 1rem; border: 1px solid var(--sm-border); border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-small); color: var(--sm-muted); font-size: .75rem; }
.data-pill b { color: var(--sm-green-900); font-size: 1rem; }
.data-pill--one { top: 12%; left: -2%; }
.data-pill--two { right: -3%; bottom: 16%; }

.section { padding: clamp(4rem, 8vw, 6.4rem) 0; }
.section--compact { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--cream { background: var(--sm-cream); }
.section-heading { margin-bottom: 2rem; }
.section-heading h2 { margin: 0; }
.section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-intro { max-width: 680px; color: var(--sm-muted); }
.text-link, .card-link { display: inline-flex; gap: .35rem; align-items: center; color: var(--sm-green-700); font-weight: 750; text-decoration: none; }
.text-link:hover span, .card-link:hover span { transform: translateX(3px); }
.text-link span, .card-link span { transition: transform .15s ease; }

.home-resources { background: linear-gradient(145deg, #f7f8f4 0%, #edf3ee 100%); border-bottom: 1px solid var(--sm-border); }
.home-resources__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.home-resources__intro h2 { max-width: 680px; margin: 0; }
.home-resources__intro > p { max-width: 560px; margin: 0; color: var(--sm-muted); font-size: 1.05rem; }
.resource-showcase { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); gap: 1rem; }
.resource-feature-card, .resource-mini-card { overflow: hidden; border: 1px solid var(--sm-border); border-radius: var(--radius-large); box-shadow: var(--shadow-small); }
.resource-feature-card { display: grid; grid-template-rows: auto 1fr; min-height: 580px; padding: clamp(1.35rem, 3vw, 2.2rem); background: var(--sm-green-900); }
.resource-feature-card__copy { max-width: 590px; }
.resource-feature-card__copy .card-kicker { color: #efd69c !important; }
.resource-feature-card__copy h3 { margin: .45rem 0 .75rem; color: var(--sm-white); font-size: clamp(1.8rem, 3vw, 2.65rem); }
.resource-feature-card__copy p:not(.card-kicker) { max-width: 560px; color: #d9e5df; }
.resource-feature-card__copy .card-link { color: var(--sm-white); }
.resource-preview { display: block; overflow: hidden; background: #f4f2eb; text-decoration: none; }
.resource-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .22s ease; }
.resource-preview:hover img { transform: scale(1.015); }
.resource-preview--featured { align-self: end; margin-top: 1.5rem; border: 8px solid rgba(255,255,255,.12); border-radius: 10px; aspect-ratio: 1.42; box-shadow: 0 18px 34px rgba(0,0,0,.18); }
.resource-preview--featured img, .resource-preview--landscape img { object-fit: contain; }
.resource-mini-grid { display: grid; grid-template-rows: repeat(3, 1fr); gap: 1rem; }
.resource-mini-card { display: grid; grid-template-columns: 42% 1fr; min-height: 182px; background: var(--sm-white); }
.resource-mini-card .resource-preview { min-height: 182px; border-right: 1px solid var(--sm-border); }
.resource-mini-card__copy { display: flex; flex-direction: column; padding: 1.15rem; }
.resource-mini-card__copy h3 { margin: 0 0 .45rem; font-size: 1.08rem; }
.resource-mini-card__copy p { margin-bottom: .7rem; color: var(--sm-muted); font-size: .88rem; line-height: 1.45; }
.resource-mini-card__copy .card-link { margin-top: auto; font-size: .88rem; }
.resource-showcase__footer { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; margin-top: 1.25rem; padding: 1rem 1.1rem; border: 1px solid rgba(22,77,58,.16); border-radius: 10px; background: rgba(255,255,255,.72); }
.resource-showcase__footer p { margin: 0; color: var(--sm-muted); font-size: .9rem; }
.resource-showcase__footer .text-link { flex: 0 0 auto; }

.data-snapshot { background: var(--sm-white); }
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--sm-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-small); }
.data-card { min-width: 0; min-height: 210px; padding: 1.45rem; border-right: 1px solid var(--sm-border); background: var(--sm-white); }
.data-card:last-child { border-right: 0; }
.data-card--index { background: var(--sm-green-900); }
.data-card--index :is(.data-card__label,.data-card__value,.data-card__unit) { color: var(--sm-white); }
.data-card--index .data-card__meta { color: #c8d8d0; }
.data-card__label { margin-bottom: 1rem; color: var(--sm-muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.data-card__value { margin: 0; color: var(--sm-green-900); font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.04em; }
.data-card--collecting .data-card__value { font-size: 1.55rem; }
.data-card--welcome { grid-column: span 3; display: flex; flex-direction: column; justify-content: center; }
.data-card--welcome h3 { max-width: 620px; margin: 0 0 .65rem; font-size: clamp(1.35rem, 2.5vw, 2rem); }
.data-card--welcome > p:not(.data-card__label) { max-width: 670px; color: var(--sm-muted); }
.data-card__unit { margin: .45rem 0 1.5rem; color: var(--sm-green-500); font-weight: 650; }
.data-card__meta { margin: auto 0 0; color: var(--sm-muted); font-size: .82rem; }
.provenance-note { display: flex; align-items: flex-start; gap: .7rem; margin: 1rem 0 0; color: var(--sm-muted); font-size: .87rem; }
.provenance-note > span { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--sm-green-400); border-radius: 50%; color: var(--sm-green-700); font-weight: 800; }

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool-card { display: flex; flex-direction: column; min-height: 250px; padding: 1.45rem; border: 1px solid var(--sm-border); border-radius: var(--radius); background: var(--sm-white); box-shadow: var(--shadow-small); transition: transform .16s ease, border-color .16s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: #c4c8bf; }
.tool-card__icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 1.35rem; border-radius: 10px; background: var(--sm-green-100); color: var(--sm-green-700); font-size: 1.28rem; font-weight: 800; }
.tool-card h3 { margin-bottom: .6rem; }
.tool-card p { color: var(--sm-muted); }
.tool-card .card-link { margin-top: auto; }

.contribute-banner { background: var(--sm-green-900); color: var(--sm-white); }
.contribute-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.contribute-banner h2 { margin: 0 0 .7rem; color: var(--sm-white); }
.contribute-banner p:not(.eyebrow) { max-width: 720px; margin: 0; color: #d9e5df; }
.contribute-banner .button { flex: 0 0 auto; }

.editorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.guide-card { padding: 1.5rem 0; border-top: 3px solid var(--sm-green-700); }
.guide-card h3 { margin: .35rem 0 .75rem; font-size: 1.45rem; }
.guide-card h3 a, .question-row h3 a { color: inherit; text-decoration: none; }
.guide-card p { color: var(--sm-muted); }
.card-kicker { margin: 0; color: var(--sm-gold-600) !important; font-size: .73rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.guide-card__meta { color: var(--sm-muted); font-size: .8rem; }
.questions-preview { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.questions-preview__intro > p:not(.eyebrow) { color: var(--sm-muted); }
.question-list { border-top: 1px solid var(--sm-border); }
.question-row { padding: 1.2rem 0; border-bottom: 1px solid var(--sm-border); }
.question-row h3 { margin: .25rem 0 .35rem; }
.question-row > p:last-child { margin: 0; color: var(--sm-muted); font-size: .82rem; }

.sponsor-label { display: inline-block; margin: 0 0 .65rem; padding: .2rem .5rem; border-radius: 4px; background: var(--sm-gold-100); color: var(--sm-gold-600); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.featured-section { padding-block: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--sm-border); background: #fffaf0; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.brand-card { padding: 1.4rem; border: 1px solid var(--sm-border); border-radius: var(--radius); background: var(--sm-white); }
.brand-card__promo { display: inline-flex; margin-bottom: .8rem; padding: .22rem .5rem; border-radius: 999px; background: var(--sm-gold-100); color: var(--sm-gold-600); font-size: .72rem; font-weight: 800; }
.brand-card img { width: 150px; height: 70px; object-fit: contain; object-position: left center; }
.brand-card p { color: var(--sm-muted); }
.brand-card a { font-weight: 750; text-decoration: none; }

.page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0 3.5rem; background: var(--sm-cream); border-bottom: 1px solid var(--sm-border); }
.page-hero--dark { background: var(--sm-green-900); color: var(--sm-white); }
.page-hero--dark h1, .page-hero--dark h2 { color: var(--sm-white); }
.page-hero__narrow { max-width: 820px; }
.page-hero h1 { margin: 0 0 1rem; font-size: clamp(2.5rem, 5vw, 4.3rem); }
.page-hero p:not(.eyebrow) { max-width: 760px; margin-bottom: 0; color: var(--sm-muted); font-size: 1.15rem; }
.page-hero--dark p:not(.eyebrow) { color: #d5e0da; }
.content-section { padding: 3.5rem 0 5rem; }
.content-narrow { max-width: 780px; }
.content-narrow h2 { margin: 2.4rem 0 .8rem; font-size: 1.8rem; }
.content-narrow h3 { margin: 1.8rem 0 .6rem; }
.content-narrow p, .content-narrow li { color: #48514c; }
.content-narrow li + li { margin-top: .45rem; }
.legal-section { padding-top: clamp(2.5rem, 6vw, 5rem); }
.legal-updated { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--sm-border); color: var(--sm-muted); font-size: .9rem; }
.legal-prose h2 { padding-top: .35rem; color: var(--sm-green-900); }
.legal-prose h3 { color: var(--sm-green-800); }
.legal-prose a { overflow-wrap: anywhere; }
.legal-prose address { font-style: normal; }
.lede { font-size: 1.2rem; color: #48514c; }
.callout { margin: 2rem 0; padding: 1.25rem 1.35rem; border-left: 4px solid var(--sm-gold-500); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sm-cream); }
.callout h2, .callout h3 { margin-top: 0; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-chip { min-height: 40px; display: inline-flex; align-items: center; padding: .45rem .8rem; border: 1px solid var(--sm-border); border-radius: 999px; background: var(--sm-white); color: var(--sm-green-700); font-weight: 700; text-decoration: none; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--sm-green-700); background: var(--sm-green-100); }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.listing-card { display: flex; flex-direction: column; min-height: 220px; padding: 1.4rem; border: 1px solid var(--sm-border); border-radius: var(--radius); background: var(--sm-white); }
.listing-card h2, .listing-card h3 { margin: .35rem 0 .75rem; font-size: 1.25rem; }
.listing-card h2 a, .listing-card h3 a { color: inherit; text-decoration: none; }
.listing-card > p { color: var(--sm-muted); }
.listing-card .card-link { margin-top: auto; }
.listing-grid--resources { grid-template-columns: repeat(4, 1fr); }

.resource-builder { background: #fbfaf7; }
.resource-builder__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
.resource-form h2 { margin: 0 0 1rem; font-size: 1.45rem; }
.resource-form > .form-grid + .resource-section-heading { margin-top: 2.25rem; }
.resource-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2.25rem 0 .8rem; }
.resource-section-heading h2 { margin: 0; }
.resource-section-heading p { margin: .3rem 0 0; color: var(--sm-muted); font-size: .9rem; }
.resource-section-heading .button { min-height: 40px; padding: .45rem .75rem; }
.repeatable-list { display: grid; gap: .75rem; }
.repeatable-row { position: relative; display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--sm-border); border-radius: 10px; background: var(--sm-cream); }
.repeatable-row--contact, .repeatable-row--medication { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.repeatable-row--feed { grid-template-columns: .65fr 1.2fr .75fr 1.2fr 1.4fr; }
.repeatable-row--single { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.repeatable-remove { min-height: 34px; justify-self: end; padding: .3rem .55rem; border: 0; background: transparent; color: var(--sm-danger); font-size: .8rem; font-weight: 750; }
.repeatable-row:not(.repeatable-row--single) .repeatable-remove { position: absolute; top: .25rem; right: .35rem; }
.resource-medical-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.resource-notes { margin-top: 2rem; }
.resource-name-input { min-height: 62px; font-size: 1.35rem; font-weight: 750; }
.resource-save-panel { margin-top: 2.5rem; padding: 1.2rem; border-radius: 10px; background: var(--sm-green-100); }
.resource-save-panel p { margin: 0; }
.resource-form__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.resource-privacy-note { margin-top: 1rem; padding: 1rem 1.1rem; border-left: 4px solid var(--sm-gold-500); border-radius: 0 8px 8px 0; background: var(--sm-cream); }
.resource-privacy-note strong { color: var(--sm-green-900); }
.resource-privacy-note p { margin: .3rem 0 0; color: var(--sm-muted); font-size: .88rem; line-height: 1.55; }
.staff-only-field { padding: 1rem; border: 1px solid var(--sm-gold-500); border-radius: 8px; background: var(--sm-gold-100); }
.staff-only-field .status-badge { margin-left: .35rem; vertical-align: middle; }
.admin-provenance { color: var(--sm-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.resource-sidebar { position: sticky; top: 104px; display: grid; gap: 1rem; }
.resource-sidebar__card { padding: 1.2rem; border: 1px solid var(--sm-border); border-radius: var(--radius); background: var(--sm-white); box-shadow: var(--shadow-small); }
.resource-sidebar__card h2 { margin: 0 0 .65rem; font-size: 1.25rem; }
.resource-sidebar__card > p:last-child { margin-bottom: 0; color: var(--sm-muted); font-size: .9rem; }
.saved-version-heading { display: flex; justify-content: space-between; gap: .75rem; }
.saved-version-heading a { font-size: .82rem; font-weight: 750; }
.saved-version-list { border-top: 1px solid var(--sm-border); }
.saved-version { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .8rem 0; border-bottom: 1px solid var(--sm-border); }
.saved-version > a { min-width: 0; color: var(--sm-charcoal); text-decoration: none; }
.saved-version > a strong, .saved-version > a span { display: block; overflow: hidden; text-overflow: ellipsis; }
.saved-version > a span { color: var(--sm-muted); font-size: .72rem; }
.saved-version form { margin: 0; }
.saved-version button { padding: .25rem; border: 0; background: transparent; color: var(--sm-danger); font-size: .72rem; }
.saved-version.is-current > a strong { color: var(--sm-green-700); }

.calculator-shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: 1.5rem; align-items: start; }
.calculator-form, .calculator-result { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--sm-border); border-radius: var(--radius-large); background: var(--sm-white); box-shadow: var(--shadow-small); }
.calculator-result { position: sticky; top: 104px; background: var(--sm-cream); }
.calculator-result__label { color: var(--sm-muted); font-weight: 700; }
.calculator-result__value { margin: .25rem 0; color: var(--sm-green-900); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.05em; }
.calculator-result__secondary { color: var(--sm-green-500); font-size: 1.1rem; font-weight: 700; }
.result-list { margin: 1.5rem 0; padding: 0; list-style: none; border-top: 1px solid var(--sm-border); }
.result-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--sm-border); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label, .form-label { color: var(--sm-charcoal); font-size: .9rem; font-weight: 750; }
.form-field small { color: var(--sm-muted); }
.form-control, .form-select, .input-control { min-height: 48px; width: 100%; padding: .7rem .8rem; border: 1px solid #d2d3cd; border-radius: 8px; background: var(--sm-white); color: var(--sm-charcoal); }
textarea.form-control { min-height: 110px; }
.form-control:focus, .form-select:focus, .input-control:focus { border-color: var(--sm-green-700); outline: 0; box-shadow: 0 0 0 3px rgba(22,77,58,.13); }
.field-validation-error, .validation-summary-errors { color: var(--sm-danger); font-size: .86rem; }
.form-check-input:checked { border-color: var(--sm-green-700); background-color: var(--sm-green-700); }
.form-actions { margin-top: 1.4rem; }
.fine-print { color: var(--sm-muted); font-size: .84rem; }
.status-message { padding: 1rem 1.2rem; border: 1px solid #b8d0bf; border-radius: 9px; background: #edf6ef; color: #214d32; }
.warning-message { border-color: #e3c989; background: #fff8e7; color: #604817; }

.cost-index-panel { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; margin-top: 2rem; }
.index-number { padding: 1.8rem; border-radius: var(--radius-large); background: var(--sm-green-900); color: var(--sm-white); }
.index-number p { color: #d4e1da; }
.index-number strong { display: block; color: var(--sm-white); font-size: 4rem; font-variant-numeric: tabular-nums; line-height: 1; }
.index-bars { padding: 1.5rem; border: 1px solid var(--sm-border); border-radius: var(--radius-large); }
.index-bar { display: grid; grid-template-columns: 120px 1fr 50px; gap: .75rem; align-items: center; margin: .75rem 0; }
.index-bar__track { height: 10px; overflow: hidden; border-radius: 99px; background: var(--sm-green-100); }
.index-bar__fill { height: 100%; border-radius: 99px; background: var(--sm-green-700); }
.index-bar:nth-child(3n) .index-bar__fill { background: var(--sm-gold-500); }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--sm-border); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--sm-border); text-align: left; }
.data-table th { color: var(--sm-green-700); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.data-table td:not(:first-child), .data-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr:last-child td { border-bottom: 0; }

.article-layout { position: relative; }
.article-body { width: min(780px, 100%); margin-inline: auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 1.3rem 0 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--sm-border); color: var(--sm-muted); font-size: .86rem; }
.article-body h2 { margin: 2.4rem 0 .8rem; font-size: 1.8rem; }
.article-body ul { padding-left: 1.2rem; }
.article-aside { position: absolute; top: 0; left: calc(50% + 420px); width: 240px; padding: 1.2rem; border: 1px solid var(--sm-border); border-radius: var(--radius); background: var(--sm-cream); }
.article-aside h2 { font-size: 1.1rem; }
.article-aside > a:not(.button) { display: block; margin-top: .75rem; font-weight: 700; text-decoration: none; }
.article-hero .back-link { display: inline-flex; margin-bottom: 1.5rem; }
.back-link { color: var(--sm-green-700); font-weight: 750; text-decoration: none; }
.prose { color: #39443e; font-size: 1.04rem; line-height: 1.78; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.7rem; }
.prose h3 { margin-top: 2rem; }
.prose blockquote { margin: 2rem 0; padding: 1.15rem 1.3rem; border-left: 4px solid var(--sm-gold-500); background: var(--sm-cream); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose-table-wrap { max-width: 100%; margin: 1.6rem 0 1.9rem; overflow-x: auto; border: 1px solid var(--sm-border); border-radius: var(--radius); background: var(--sm-white); box-shadow: var(--shadow-small); -webkit-overflow-scrolling: touch; }
.prose-table-wrap:focus { outline: 3px solid rgba(22,77,58,.2); outline-offset: 3px; }
.prose-table-wrap table { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; font-size: .94rem; line-height: 1.5; }
.prose-table-wrap th, .prose-table-wrap td { padding: .85rem 1rem; border-right: 1px solid var(--sm-border); border-bottom: 1px solid var(--sm-border); vertical-align: top; text-align: left; }
.prose-table-wrap th { background: var(--sm-green-900); color: var(--sm-white); font-size: .82rem; font-weight: 800; letter-spacing: .025em; }
.prose-table-wrap tbody tr:nth-child(even) { background: #f8faf8; }
.prose-table-wrap tbody tr:hover { background: var(--sm-green-100); }
.prose-table-wrap tr > :last-child { border-right: 0; }
.prose-table-wrap tbody tr:last-child td { border-bottom: 0; }
.prose-table-wrap :is(p, ul, ol) { margin-top: 0; margin-bottom: .55rem; }
.prose-table-wrap :is(p, ul, ol):last-child { margin-bottom: 0; }

.empty-state { padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid var(--sm-border); border-radius: var(--radius-large); background: var(--sm-cream); text-align: center; }
.empty-state h2 { margin-top: 0; }
.empty-state p { max-width: 650px; margin-inline: auto; color: var(--sm-muted); }
.empty-state .button-row { justify-content: center; }

.blog-hero__inner { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.blog-hero__inner > div:first-child { max-width: 790px; }
.blog-hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: flex-end; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.blog-card { display: flex; flex-direction: column; min-height: 300px; padding: 1.5rem; border: 1px solid var(--sm-border); border-radius: var(--radius); background: var(--sm-white); box-shadow: var(--shadow-small); }
.blog-card h2 { margin: .45rem 0 .75rem; font-size: 1.4rem; }
.blog-card h2 a { color: inherit; text-decoration: none; }
.blog-card > p:not(.card-kicker) { color: var(--sm-muted); }
.blog-card .blog-meta { display: flex; flex-wrap: wrap; gap: .35rem .85rem; margin-top: auto; padding-top: 1.2rem; color: var(--sm-muted); font-size: .82rem; }
.blog-card .blog-meta a { color: var(--sm-green-700); font-weight: 700; text-decoration: none; }
.blog-card .card-link { margin-top: .75rem; }
.pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.journal-intro { padding: 2rem; border-left: 4px solid var(--sm-green-700); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sm-cream); }
.journal-intro p { max-width: 760px; color: var(--sm-muted); }

.author-profile-grid { display: grid; grid-template-columns: 150px 1fr; gap: 2rem; align-items: center; }
.author-avatar { width: 150px; height: 150px; display: grid; place-items: center; overflow: hidden; border: 6px solid var(--sm-white); border-radius: 50%; background: var(--sm-green-700); box-shadow: var(--shadow-small); color: var(--sm-white); font-family: Georgia, serif; font-size: 4rem; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-qualifications { color: var(--sm-green-700) !important; font-weight: 750; }
.author-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.author-links a { font-weight: 750; text-decoration: none; }
.author-page { display: grid; gap: 4rem; }
.author-page > .prose { max-width: 780px; }
.author-mini p { color: var(--sm-muted); }
.author-mini__avatar { display: block; width: 88px; height: 88px; margin-bottom: 1rem; overflow: hidden; border-radius: 50%; }
.author-mini__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-image-editor { display: flex; align-items: center; gap: 1.25rem; padding: 1rem; border: 1px solid var(--sm-border); border-radius: 9px; background: var(--sm-cream); }
.profile-image-editor__preview { width: 104px; height: 104px; flex: 0 0 104px; overflow: hidden; border-radius: 50%; background: var(--sm-green-700); }
.profile-image-editor__preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-image-editor__controls { flex: 1; }
.profile-image-remove { padding-top: .75rem; }

.content-wide { max-width: 1040px; }
.editor-shell { max-width: 940px; }
.markdown-editor { min-height: 430px !important; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.55; }
.form-check-field { flex-direction: row; align-items: center; gap: .65rem; padding-top: 1.85rem; }
.input-prefix { display: flex; align-items: center; overflow: hidden; border: 1px solid #d2d3cd; border-radius: 8px; background: var(--sm-cream); }
.input-prefix span { padding-left: .75rem; color: var(--sm-muted); font-size: .86rem; }
.input-prefix .form-control { border: 0; border-radius: 0; box-shadow: none; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.admin-heading h1 { margin-bottom: .35rem; font-size: 2.6rem; }
.admin-heading p:last-child { margin: 0; color: var(--sm-muted); }
.management-list { border-top: 1px solid var(--sm-border); }
.management-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; border-bottom: 1px solid var(--sm-border); }
.management-row h2 { margin: .35rem 0 .25rem; font-size: 1.25rem; }
.management-row p { margin: 0; color: var(--sm-muted); font-size: .86rem; }
.management-row form { margin: 0; }
.status-badge { display: inline-flex; padding: .18rem .48rem; border-radius: 999px; background: #ecece8; color: #59615c; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.status-badge--live { background: #e1f1e5; color: #28603a; }
.button--quiet { border-color: var(--sm-border); background: transparent; color: var(--sm-green-700); }
.button--danger { border-color: #b74b4b; background: transparent; color: #9d3030; }
.button--danger:hover { background: #fff0f0; color: #822323; }
.brand-editor { margin: 2rem 0 4rem; }
.brand-logo-preview { flex-direction: row; align-items: center; gap: 1rem; padding: .8rem; border: 1px solid var(--sm-border); border-radius: 8px; background: var(--sm-cream); }
.brand-logo-preview > span { font-weight: 750; }
.brand-logo-preview img { width: 150px; height: 70px; object-fit: contain; background: var(--sm-white); }
.brand-management-copy { display: flex; align-items: center; gap: 1.2rem; }
.brand-management-copy > img { width: 110px; height: 70px; padding: .35rem; border: 1px solid var(--sm-border); border-radius: 7px; object-fit: contain; }

.identity-section { min-height: calc(100vh - 86px); padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(125deg, var(--sm-cream) 0 52%, #eef3ef 52% 100%); }
.identity-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.identity-intro { max-width: 640px; }
.identity-intro::before { content: ""; display: block; width: min(310px, 72%); aspect-ratio: 4 / 3; margin-bottom: 1.4rem; background: url('/images/brand/stablemetric_logo_stacked.svg') center / contain no-repeat; }
.identity-intro h1 { max-width: 620px; margin-bottom: 1rem; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.identity-intro > p:not(.eyebrow) { max-width: 570px; color: var(--sm-muted); font-size: 1.1rem; }
.identity-benefits { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--sm-green-700); font-size: .9rem; font-weight: 700; }
.identity-benefits li::before { content: "✓"; margin-right: .4rem; color: var(--sm-gold-600); }
.identity-card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--sm-border); border-radius: var(--radius-large); background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.identity-card h1, .identity-card h2 { margin-top: 0; }
.identity-card > p { color: var(--sm-muted); }
.identity-card .form-field + .form-field { margin-top: 1rem; }
.identity-card .form-check-field { padding-top: 1rem; }
.identity-submit { width: 100%; margin-top: 1.4rem; }
.identity-assistance { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .7rem; margin: 1.15rem 0 0; color: var(--sm-muted); font-size: .84rem; }
.identity-assistance a { font-weight: 700; }
.identity-switch { margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--sm-border); text-align: center; font-size: .9rem; }
.identity-switch a { font-weight: 750; }
.identity-single { max-width: 760px; }
.identity-status-card { text-align: center; }
.identity-status-card > p:not(.eyebrow) { max-width: 560px; margin-inline: auto; }
.identity-status-card .button-row { justify-content: center; margin-top: 1.5rem; }
.account-admin-content { width: min(900px, 100%); min-width: 0; }
.account-admin-nav { align-self: start; }
.account-nav-panel__label { padding: .8rem .75rem .3rem; color: #9fb8ab; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.account-admin-nav a { font-weight: 700; }
.account-admin-nav a.is-active { background: var(--sm-white); color: var(--sm-green-900); }
.account-admin-heading { align-items: flex-start; }
.account-settings-section { max-width: 720px; padding-top: .25rem; }
.account-settings-section .form-field + .form-field { margin-top: 1rem; }
.account-card-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--sm-border); }
.account-card-heading h2 { margin-bottom: 0; }
.account-role-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.account-role { display: inline-flex; padding: .28rem .62rem; border-radius: 999px; background: var(--sm-green-100); color: var(--sm-green-700); font-size: .75rem; font-weight: 800; }
.account-readonly { background: var(--sm-cream); color: var(--sm-muted); }
.account-help { max-width: 720px; margin-top: 2rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--sm-gold-500); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sm-cream); }
.account-help h2 { margin: 0 0 .45rem; font-size: 1.1rem; }
.account-help p { margin: 0; color: var(--sm-muted); font-size: .9rem; }

.about-hero h1 { max-width: 820px; }
.about-page { background: #fbfaf7; }
.about-page__inner { display: grid; gap: clamp(3.5rem, 7vw, 6.5rem); }
.about-opening { max-width: 880px; margin-inline: auto; text-align: center; }
.about-opening__questions { color: var(--sm-green-900); font-family: Georgia, serif; font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.5; }
.about-section { padding-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--sm-border); }
.about-section--split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-section .prose h2, .about-editorial-grid h2 { margin-top: .25rem; font-size: clamp(2rem, 3.5vw, 3rem); }
.about-principles { padding: 1.6rem; border-radius: var(--radius); background: var(--sm-green-900); color: var(--sm-white); box-shadow: var(--shadow-small); }
.about-principles h3 { margin: 0 0 1rem; color: var(--sm-white); }
.about-principles ul { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.about-principles li { position: relative; padding-left: 1.4rem; }
.about-principles li::before { content: "✓"; position: absolute; left: 0; color: var(--sm-gold-500); font-weight: 900; }
.about-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.about-feature-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--sm-border); border-radius: var(--radius-large); background: var(--sm-white); box-shadow: var(--shadow-small); }
.about-feature-card h3 { margin: .25rem 0 1rem; font-size: clamp(1.55rem, 2.5vw, 2.1rem); }
.about-feature-card p:not(.card-kicker) { color: var(--sm-muted); }
.about-feature-card .card-link { margin-top: auto; padding-top: 1rem; }
.about-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.about-detail-list span { padding: .9rem 1rem; border-left: 3px solid var(--sm-gold-500); background: var(--sm-white); color: var(--sm-green-900); font-weight: 700; }
.about-editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.about-professional-note { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 2rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-large); background: var(--sm-cream); }
.about-professional-note h2 { margin: .25rem 0 .75rem; }
.about-professional-note p:last-child { margin-bottom: 0; color: var(--sm-muted); }
.about-professional-note ul { columns: 2; margin: 0; padding-left: 1.2rem; }
.about-professional-note li { margin-bottom: .65rem; break-inside: avoid; }
.about-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-large); background: var(--sm-green-900); color: var(--sm-white); }
.about-cta > div { max-width: 760px; }
.about-cta h2 { margin: .25rem 0 .75rem; color: var(--sm-white); font-size: clamp(2rem, 3.5vw, 3rem); }
.about-cta p:not(.eyebrow) { margin-bottom: 0; color: #d5e2db; }
.about-cta .button { flex: 0 0 auto; background: var(--sm-white); color: var(--sm-green-900); }

.question-detail { max-width: 860px; }
.question-summary { padding: 1.5rem; border: 1px solid var(--sm-border); border-radius: var(--radius); background: var(--sm-white); }
.answer-card { margin-top: 1rem; padding: 1.5rem; border-left: 4px solid var(--sm-green-700); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sm-cream); }
.answer-card--empty { border-left-color: var(--sm-gold-500); }
.answer-author { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--sm-border); }
.answer-author p { margin: 0; }
.content-report { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--sm-border); }
.content-report summary { width: fit-content; cursor: pointer; color: var(--sm-muted); font-size: .82rem; font-weight: 700; }
.content-report[open] summary { color: var(--sm-green-700); }
.content-report__form { display: grid; gap: .8rem; max-width: 560px; margin-top: 1rem; padding: 1rem; border-radius: 9px; background: var(--sm-white); }
.question-summary .content-report__form { background: var(--sm-cream); }
.content-report__form .form-field { gap: .25rem; }
.content-report__form textarea { min-height: 90px; }
.content-report__form .button { width: fit-content; min-height: 42px; }
.member-avatar { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--sm-green-700); color: var(--sm-white); font-family: Georgia, serif; font-size: 1.25rem; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }

.search-form-large { display: flex; max-width: 720px; margin-top: 1.5rem; }
.search-form-large input { flex: 1; min-width: 0; min-height: 52px; padding: .75rem 1rem; border: 1px solid var(--sm-border); border-radius: 9px 0 0 9px; }
.search-form-large button { border-radius: 0 9px 9px 0; }
.search-group { margin-top: 2.5rem; }
.search-result { padding: 1rem 0; border-bottom: 1px solid var(--sm-border); }
.search-result h3 { margin: 0 0 .3rem; }
.search-result p { margin: 0; color: var(--sm-muted); }

.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 2.5rem 0 5rem; }
.admin-nav { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border-radius: var(--radius); background: var(--sm-green-900); }
.admin-nav a { padding: .65rem .75rem; border-radius: 6px; color: #e5eee9; text-decoration: none; }
.admin-nav a:hover { background: rgba(255,255,255,.1); }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.admin-card { padding: 1.1rem; border: 1px solid var(--sm-border); border-radius: 9px; }
.admin-card strong { display: block; color: var(--sm-green-900); font-size: 2rem; }
.admin-card span { color: var(--sm-muted); font-size: .84rem; }
.admin-card--link { color: inherit; text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.admin-card--link:hover { border-color: var(--sm-green-400); transform: translateY(-2px); }
.admin-cards--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-section-title { margin-top: 2.5rem; font-size: 1.7rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-search { display: flex; max-width: 650px; gap: .65rem; margin: 2rem 0 1rem; }
.admin-search .form-control { flex: 1; }
.status-badge-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.status-badge--danger { background: #fbe2df; color: #8b302b; }
.status-badge--warning { background: var(--sm-gold-100); color: #775817; }
.user-admin-profile { display: flex; align-items: center; gap: 1.4rem; margin: 1.5rem 0 2rem; }
.user-admin-profile h1 { margin: .1rem 0 .35rem; font-size: clamp(2.2rem, 4vw, 3.3rem); }
.user-admin-profile p { margin-bottom: .55rem; color: var(--sm-muted); }
.member-avatar--large { width: 92px; height: 92px; flex-basis: 92px; font-size: 2.2rem; }
.admin-settings-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--sm-border); }
.admin-settings-section > h2 { margin-bottom: .5rem; font-size: 1.8rem; }
.admin-settings-section > p { max-width: 720px; color: var(--sm-muted); }
.admin-settings-section--danger { padding: 1.5rem; border: 1px solid #e4b9b5; border-radius: var(--radius); background: #fff9f8; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.permission-card { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border: 1px solid var(--sm-border); border-radius: 9px; background: var(--sm-white); cursor: pointer; }
.permission-card:has(input:checked) { border-color: var(--sm-green-400); background: var(--sm-green-100); }
.permission-card input { margin-top: .25rem; }
.permission-card span, .permission-card small { display: block; }
.permission-card small { margin-top: .2rem; color: var(--sm-muted); font-weight: 400; line-height: 1.45; }
.qa-admin-list, .report-admin-list { display: grid; gap: 1rem; }
.qa-admin-item, .report-admin-card { padding: 1.35rem; border: 1px solid var(--sm-border); border-radius: var(--radius); background: var(--sm-white); box-shadow: var(--shadow-small); }
.qa-admin-item__heading, .report-admin-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; }
.qa-admin-item h2, .report-admin-card h2 { margin: .4rem 0 .25rem; font-size: 1.35rem; }
.qa-admin-item__heading p, .report-admin-card header p { margin: 0; color: var(--sm-muted); font-size: .84rem; }
.qa-admin-item__body { margin: 1rem 0; }
.admin-danger-zone, .qa-admin-answers { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--sm-border); }
.admin-danger-zone summary, .qa-admin-answers summary { width: fit-content; cursor: pointer; color: var(--sm-green-700); font-weight: 750; }
.admin-danger-zone form { display: flex; align-items: end; gap: .65rem; margin-top: .8rem; }
.admin-danger-zone form label { flex: 0 0 250px; }
.admin-danger-zone form .form-control { flex: 1; }
.qa-admin-answer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .5fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--sm-border); }
.qa-admin-answer:last-child { border-bottom: 0; }
.qa-admin-answer span { display: block; color: var(--sm-muted); font-size: .78rem; }
.qa-admin-answer p { margin: .45rem 0 0; }
.qa-admin-answer form { display: flex; align-items: end; gap: .5rem; }
.report-admin-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1.2rem 0 0; }
.report-admin-details div { padding: .8rem; border-radius: 8px; background: var(--sm-cream); }
.report-admin-details dt { margin-bottom: .25rem; color: var(--sm-muted); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.report-admin-details dd { margin: 0; }
.report-admin-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--sm-border); }
.report-admin-actions form { display: flex; flex-direction: column; gap: .5rem; padding: .8rem; border-radius: 8px; background: var(--sm-cream); }
.report-admin-actions label { font-size: .78rem; font-weight: 700; }
.report-admin-actions .button { align-self: flex-start; margin-top: auto; }
.admin-filter-row { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.filter-chip.is-active { border-color: var(--sm-green-700); background: var(--sm-green-700); color: var(--sm-white); }
.log-search { max-width: none; align-items: end; }
.log-search .form-field { min-width: 190px; }
.log-search__query { flex: 1; }
.application-log-list { display: grid; gap: .8rem; margin: 1.5rem 0; }
.application-log-entry { padding: 1rem 1.1rem; border: 1px solid var(--sm-border); border-left: 4px solid var(--sm-green-400); border-radius: 8px; background: var(--sm-white); }
.application-log-entry--warning { border-left-color: var(--sm-gold-500); background: #fffdf7; }
.application-log-entry--error, .application-log-entry--critical { border-left-color: #b83a32; background: #fff9f8; }
.application-log-entry header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; color: var(--sm-muted); font-size: .78rem; }
.application-log-entry header code { overflow-wrap: anywhere; }
.application-log-entry .log-level { padding: .2rem .45rem; border-radius: 999px; background: var(--sm-green-100); color: var(--sm-green-900); font-weight: 800; text-transform: uppercase; }
.application-log-entry--warning .log-level { background: var(--sm-gold-100); color: #775817; }
.application-log-entry--error .log-level, .application-log-entry--critical .log-level { background: #fbe2df; color: #8b302b; }
.application-log-entry > p { margin: .75rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.application-log-entry details { margin-top: .75rem; }
.application-log-entry summary { cursor: pointer; color: var(--sm-green-700); font-weight: 700; }
.application-log-entry pre { max-height: 420px; margin: .75rem 0 0; padding: 1rem; overflow: auto; border-radius: 6px; background: #17251f; color: #e9f1ed; font-size: .77rem; white-space: pre-wrap; overflow-wrap: anywhere; }

.site-footer { padding: 4rem 0 1.5rem; background: var(--sm-green-900); color: #dbe7e0; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem; }
.footer-brand img { width: 230px; height: 78px; padding: .25rem .5rem; border-radius: 8px; background: var(--sm-cream); object-fit: contain; }
.footer-brand > p { margin: 1rem 0 .25rem; color: var(--sm-white); font-weight: 700; }
.footer-brand .footer-small { max-width: 340px; margin: 0; color: #acc1b6; font-size: .86rem; font-weight: 400; }
.footer-brand .footer-operator { margin-top: 1rem; }
.contact-operator { max-width: 760px; margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--sm-border); border-radius: var(--radius-large); background: var(--sm-cream); }
.contact-operator h2 { margin: .25rem 0 .75rem; }
.contact-operator address { margin: 1rem 0 0; color: var(--sm-muted); font-style: normal; line-height: 1.65; }
.site-footer h2 { margin: 0 0 1rem; color: var(--sm-white); font-size: .83rem; letter-spacing: .09em; text-transform: uppercase; }
.site-footer a { display: block; width: fit-content; margin: .42rem 0; color: #cedbd4; text-decoration: none; }
.site-footer a:hover { color: var(--sm-white); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.13); color: #9cb3a7; font-size: .8rem; }

@media (max-width: 1319.98px) {
  .article-aside { position: static; width: min(780px, 100%); margin: 2.5rem auto 0; }
}

@media (max-width: 1199.98px) {
  .site-header .navbar-collapse { padding: 1rem 0 .5rem; }
  .site-nav { align-items: stretch; margin-left: 0; }
  .site-nav .nav-link { width: 100%; }
  .header-actions { align-items: stretch; flex-direction: column; }
  .header-search { width: 100%; }
  .account-nav, .account-menu { width: 100%; }
  .account-nav { justify-content: flex-start; }
  .account-menu__trigger { width: 100%; justify-content: flex-start; border-radius: 8px; }
  .account-menu__panel { position: static !important; width: 100%; transform: none !important; margin-top: .35rem !important; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: auto; padding-block: 4rem; }
  .hero__visual { display: none; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .data-card:nth-child(2) { border-right: 0; }
  .data-card:nth-child(-n+2) { border-bottom: 1px solid var(--sm-border); }
  .tool-grid, .listing-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero__inner { align-items: flex-start; flex-direction: column; }
  .blog-hero__actions { justify-content: flex-start; }
  .editorial-grid { grid-template-columns: 1fr; }
  .questions-preview, .calculator-shell, .cost-index-panel, .article-layout { grid-template-columns: 1fr; }
  .calculator-result, .article-aside { position: static; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .report-admin-actions { grid-template-columns: 1fr; }
  .data-card--welcome { grid-column: span 1; }
  .identity-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .identity-intro { text-align: center; margin-inline: auto; }
  .identity-intro::before { margin-inline: auto; }
  .identity-benefits { justify-content: center; }
  .account-admin-content { width: 100%; }
  .about-section--split, .about-feature-grid, .about-editorial-grid, .about-professional-note { grid-template-columns: 1fr; }
  .about-cta { align-items: flex-start; flex-direction: column; }
  .listing-grid--resources { grid-template-columns: repeat(2, 1fr); }
  .resource-builder__layout { grid-template-columns: 1fr; }
  .resource-sidebar { position: static; grid-row: 1; }
  .home-resources__intro, .resource-showcase { grid-template-columns: 1fr; }
  .resource-feature-card { min-height: 0; }
  .resource-mini-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .resource-mini-card { grid-template-columns: 1fr; min-height: 0; }
  .resource-mini-card .resource-preview { height: 210px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--sm-border); }
  .resource-showcase__footer { align-items: flex-start; flex-direction: column; }
  .repeatable-row--feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-nav-panel { position: static; flex-direction: row; flex-wrap: wrap; }
  .account-nav-panel__label { width: 100%; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 1.25rem, 1180px); }
  .site-header .navbar { min-height: 68px; }
  .navbar-brand, .navbar-brand img { width: 175px; height: 58px; }
  .hero__grid { padding-block: 3.3rem; }
  .hero h1 { font-size: 2.75rem; }
  .button-row .button { width: 100%; }
  .trust-list { flex-direction: column; gap: .35rem; }
  .section { padding: 3.5rem 0; }
  .section-heading--row { align-items: flex-start; flex-direction: column; }
  .data-grid { grid-template-columns: 1fr; }
  .data-card { min-height: 185px; border-right: 0; border-bottom: 1px solid var(--sm-border); }
  .data-card:last-child { border-bottom: 0; }
  .tool-grid, .listing-grid, .brand-grid, .blog-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 225px; }
  .contribute-banner__inner { align-items: stretch; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .index-bar { grid-template-columns: 92px 1fr 42px; font-size: .82rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .admin-cards { grid-template-columns: 1fr; }
  .permission-grid, .report-admin-details, .qa-admin-answer { grid-template-columns: 1fr; }
  .qa-admin-item__heading, .report-admin-card > header, .user-admin-profile, .admin-danger-zone form, .admin-search { align-items: stretch; flex-direction: column; }
  .qa-admin-answer form { align-items: stretch; flex-direction: column; }
  .log-search { align-items: stretch; flex-direction: column; }
  .log-search .form-field, .log-search .button { width: 100%; }
  .admin-danger-zone form label { flex-basis: auto; }
  .author-profile-grid { grid-template-columns: 1fr; }
  .author-avatar { width: 112px; height: 112px; font-size: 3rem; }
  .profile-image-editor { align-items: stretch; flex-direction: column; }
  .about-detail-list { grid-template-columns: 1fr; }
  .about-professional-note ul { columns: 1; }
  .management-row, .admin-heading { align-items: stretch; flex-direction: column; }
  .brand-management-copy { align-items: flex-start; flex-direction: column; }
  .management-row .admin-actions { width: 100%; }
  .account-card-heading { flex-direction: column; }
  .account-role-list { justify-content: flex-start; }
  .listing-grid--resources, .resource-medical-grid { grid-template-columns: 1fr; }
  .resource-section-heading { align-items: flex-start; flex-direction: column; }
  .repeatable-row--contact, .repeatable-row--medication, .repeatable-row--feed { grid-template-columns: 1fr; }
  .resource-form__actions .button { width: 100%; }
  .home-resources__intro { gap: 1rem; }
  .resource-feature-card { padding: 1.2rem; }
  .resource-preview--featured { margin-top: 1rem; border-width: 5px; }
  .resource-mini-grid { grid-template-columns: 1fr; }
  .resource-mini-card { grid-template-columns: 42% 1fr; }
  .resource-mini-card .resource-preview { height: auto; min-height: 175px; border-right: 1px solid var(--sm-border); border-bottom: 0; }
  .resource-showcase__footer .text-link { flex: 0 1 auto; }
}

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