:root {
  --km-primary: #27ae60;
  --km-secondary: #52be80;
  --km-accent: #ffd700;
  --km-bg: #f0fdf4;
  --km-ink: #14301f;
  --km-muted: #3d5c4a;
  --km-line: #c8e6d4;
  --km-card: #ffffff;
  --km-btn: #1b7a42;
  --km-btn-hover: #145c32;
  --km-on-btn: #ffffff;
  --km-header-h: 68px;
  --km-page-w: 1120px;
  --km-measure: 680px;
  --km-font-h: "Space Grotesk", "DM Sans", sans-serif;
  --km-font-b: "DM Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-padding-top: calc(var(--km-header-h) + 12px); }
html.kmu-lock, html.kmu-lock body { overflow: hidden; }
body {
  padding-top: var(--km-header-h);
  background: var(--km-bg);
  color: var(--km-ink);
  font: 400 1rem/1.65 var(--km-font-b);
}
img { max-width: 100%; height: auto; display: block; }
a:not(.kmc-btn) { color: var(--km-btn); }
a:not(.kmc-btn):hover { color: var(--km-btn-hover); }
h1, h2, h3, h4 {
  font-family: var(--km-font-h);
  line-height: 1.15;
  margin: 0 0 0.55em;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
[hidden] { display: none !important; }

.kmo-wrap {
  width: 100%;
  max-width: var(--km-page-w);
  margin: 0 auto;
  padding-inline: 20px;
}
.kmo-measure { max-width: var(--km-measure); margin-inline: auto; }
.kmo-wide { max-width: var(--km-page-w); margin-inline: auto; }
.kmc-section { padding-block: 56px; position: relative; }
.kmc-section--band { background: #dff5e8; }
.kmc-section--ink {
  background: #1b7a42;
  color: #f5fff8;
}
.kmc-section--ink a:not(.kmc-btn) { color: #ffd700; }
.kmc-section--block {
  background: linear-gradient(135deg, #e8f8ee 0%, #f0fdf4 45%, #d4f0df 100%);
}
.kmu-muted { color: var(--km-muted); }
.kmc-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--km-muted);
  margin: 0 0 0.6em;
}
.kmc-section--ink .kmc-kicker { color: #c8f0d8; }

.kmc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--km-header-h);
  background: #ffffff;
  box-shadow: 0 1px 0 var(--km-line);
}
.kmc-header__row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.kmc-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--km-ink);
  flex-shrink: 0;
}
.kmc-logo svg { width: 180px; height: auto; display: block; }
.kmc-nav--key {
  display: flex;
  gap: 18px;
  margin-left: auto;
  margin-right: 8px;
}
.kmc-nav--key a {
  color: var(--km-ink);
  text-decoration: none;
  font-weight: 600;
}
.kmc-nav--key a:hover,
.kmc-nav--key a.is-active { color: var(--km-btn); }
.kmc-header__cta { flex-shrink: 0; }
.kmc-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--km-line);
  border-radius: 0;
  background: #fff;
  color: var(--km-ink);
  cursor: pointer;
  flex-shrink: 0;
}
.kmc-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.kmc-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(20, 48, 31, 0.45);
}
.kmc-overlay:not([hidden]) { display: block; }
.kmc-sheet {
  position: fixed;
  top: var(--km-header-h);
  left: 0; right: 0;
  z-index: 130;
  background: #fff;
  border-bottom: 3px solid var(--km-btn);
  max-height: calc(100dvh - var(--km-header-h));
  overflow: auto;
  padding: 12px 20px 28px;
}
.kmc-sheet:not([hidden]) { display: block; }
.kmc-sheet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.kmc-sheet__label { font-weight: 700; font-family: var(--km-font-h); }
.kmc-sheet__close {
  width: 44px; height: 44px;
  border: 1px solid var(--km-line);
  background: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--km-ink);
}
.kmc-sheet__links {
  display: grid;
  gap: 10px;
}
.kmc-sheet__links a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--km-ink);
  font-weight: 600;
  border-bottom: 1px solid var(--km-line);
}
.kmc-sheet__links a.kmc-btn { border-bottom: 0; margin-top: 8px; text-align: center; }

.kmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  border: 2px solid transparent;
  font-weight: 700;
  font-family: var(--km-font-b);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.kmc-btn--split,
a.kmc-btn--split,
a.kmc-btn--split:visited,
button.kmc-btn--split {
  color: var(--km-on-btn);
  background: linear-gradient(90deg, var(--km-btn) 62%, #148a4a 62%);
  border-color: var(--km-btn);
}
.kmc-btn--split:hover,
a.kmc-btn--split:hover,
a.kmc-btn--split:focus-visible,
a.kmc-btn--split:active,
button.kmc-btn--split:hover,
button.kmc-btn--split:focus-visible {
  color: var(--km-on-btn);
  background: linear-gradient(90deg, var(--km-btn-hover) 62%, #0f4f2a 62%);
  border-color: var(--km-btn-hover);
}
.kmc-btn--ghost,
a.kmc-btn--ghost,
a.kmc-btn--ghost:visited,
button.kmc-btn--ghost {
  color: var(--km-ink);
  background: transparent;
  border-color: var(--km-ink);
}
.kmc-btn--ghost:hover,
a.kmc-btn--ghost:hover,
a.kmc-btn--ghost:focus-visible,
button.kmc-btn--ghost:hover {
  color: #fff;
  background: var(--km-ink);
  border-color: var(--km-ink);
}
.kmc-btn--sm { min-height: 36px; padding: 0 12px; font-size: 0.9rem; }
.kmc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) {
  .kmc-actions { flex-direction: column; align-items: stretch; }
  .kmc-actions .kmc-btn { white-space: normal; }
}

.kmc-hero {
  padding-block: 64px 48px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 215, 0, 0.35) 0 90px, transparent 91px),
    radial-gradient(ellipse at 88% 70%, rgba(27, 122, 66, 0.18) 0 140px, transparent 141px),
    linear-gradient(180deg, #dff7e8, #f0fdf4 70%);
}
.kmc-quote {
  font-family: var(--km-font-h);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  margin: 0 0 1rem;
  border-left: 8px solid var(--km-accent);
  padding-left: 1rem;
  max-width: 40rem;
}
.kmc-hero__meta { color: var(--km-muted); margin-bottom: 1.4rem; }

.kmc-card {
  background: var(--km-card);
  border: 1px solid var(--km-line);
  border-radius: 0;
  padding: 20px;
  min-width: 0;
}
.kmc-pairs { display: grid; gap: 16px; }
.kmc-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.kmc-pair__side {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  min-width: 0;
  border: 1px solid var(--km-line);
  background: #fff;
}
.kmc-pair__side img {
  width: 48px; height: 48px;
  border-radius: 22%;
  flex-shrink: 0;
  object-fit: cover;
}
.kmc-pair__side.is-win {
  outline: 3px solid var(--km-btn);
  background: #e8f8ee;
}
.kmc-pair__vs {
  font-weight: 800;
  font-family: var(--km-font-h);
  color: var(--km-muted);
}
.kmc-ranklist { display: grid; gap: 18px; margin-top: 28px; }
.kmc-rank {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, 220px);
  gap: 18px;
  align-items: center;
}
.kmc-rank__num {
  font-family: var(--km-font-h);
  font-size: 3rem;
  line-height: 1;
  color: var(--km-btn);
  width: 2.2rem;
}
.kmc-rank__head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.kmc-rank__head > div { min-width: 0; }
.kmc-rank__icon {
  width: 64px; height: 64px;
  border-radius: 22%;
  object-fit: cover;
  flex-shrink: 0;
}
.kmc-rank__still {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 0;
}
.kmc-bars { display: grid; gap: 14px; }
.kmc-bar {
  display: grid;
  grid-template-columns: minmax(0, 12rem) 1fr auto;
  gap: 10px;
  align-items: center;
}
.kmc-bar__track {
  height: 14px;
  background: #d8eee1;
  border-radius: 0;
  overflow: hidden;
}
.kmc-bar__fill {
  height: 100%;
  background: var(--km-btn);
}
.kmc-criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.kmc-pick {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.kmc-pick img { width: 100%; object-fit: cover; max-height: 320px; }
.kmc-cta { text-align: center; }
.kmc-cta .kmc-actions { justify-content: center; }
.kmc-section--ink .kmc-btn--ghost,
.kmc-section--ink a.kmc-btn--ghost,
.kmc-section--ink a.kmc-btn--ghost:visited {
  color: #f5fff8;
  background: transparent;
  border-color: #f5fff8;
}
.kmc-section--ink .kmc-btn--ghost:hover,
.kmc-section--ink a.kmc-btn--ghost:hover,
.kmc-section--ink a.kmc-btn--ghost:focus-visible {
  color: #102418;
  background: #f5fff8;
  border-color: #f5fff8;
}

.kmc-footer {
  padding-block: 48px;
  background: #102418;
  color: #e8f5ec;
}
.kmc-footer a:not(.kmc-btn),
.kmc-footer a:not(.kmc-btn):visited { color: #e8f5ec; }
.kmc-deskcard {
  border: 2px solid #2f6b47;
  padding: 24px;
  background: #163222;
  max-width: 820px;
}
.kmc-footer__links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 1rem 0;
}
.kmc-footer__link {
  background: none;
  border: 0;
  padding: 0;
  color: #e8f5ec;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.kmu-copy { margin: 0; font-size: 0.92rem; }

.kmc-cookie {
  position: fixed;
  z-index: 140;
  bottom: 16px;
  right: 16px;
  width: min(360px, calc(100% - 24px));
  background: #102418;
  color: #f5fff8;
  padding: 16px;
  border: 2px solid #2f6b47;
  border-radius: 0;
}
.kmc-cookie:not([hidden]) { display: block; }
.kmc-cookie a, .kmc-cookie a:visited { color: #ffd700; }
.kmc-cookie__actions { margin-top: 12px; }

.kmc-crumbs { margin: 0 0 1rem; font-size: 0.92rem; }
.kmc-back { display: inline-block; margin-bottom: 1rem; font-weight: 600; }
.kmc-prose .kmo-measure > * { max-width: 100%; }
.kmc-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 1.2rem 0;
}
.kmc-facts div {
  background: #fff;
  border: 1px solid var(--km-line);
  padding: 12px;
}
.kmc-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--km-muted); }
.kmc-facts dd { margin: 4px 0 0; font-weight: 700; font-family: var(--km-font-h); }
.kmc-collections { display: grid; gap: 28px; }
.kmc-collection__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.kmc-collection__list a { font-weight: 600; text-decoration: none; color: var(--km-ink); }
.kmc-collection__list a:hover { color: var(--km-btn); }
.kmc-form { display: grid; gap: 14px; max-width: 640px; }
.kmc-form label { display: grid; gap: 6px; font-weight: 600; }
.kmc-form input,
.kmc-form textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--km-line);
  border-radius: 0;
  font: inherit;
  background: #fff;
  color: var(--km-ink);
}
.kmc-form textarea { min-height: 140px; resize: vertical; }
.kmc-qa { display: grid; gap: 18px; }
.kmc-qa details {
  background: #fff;
  border: 1px solid var(--km-line);
  padding: 14px 16px;
}
.kmc-qa summary { cursor: pointer; font-weight: 700; font-family: var(--km-font-h); }
.kmc-related { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--km-line); }
.kmc-inkdrip {
  position: absolute;
  width: 120px; height: 80px;
  background: radial-gradient(ellipse at 40% 30%, rgba(27,122,66,0.22), transparent 70%);
  filter: blur(2px);
  pointer-events: none;
  right: 4%;
  top: 10%;
}

.kmu-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.55s ease;
}
.kmu-reveal--on {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .kmu-reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .kmc-rank { grid-template-columns: auto minmax(0, 1fr); }
  .kmc-rank__still { grid-column: 1 / -1; max-height: 200px; }
  .kmc-pick { grid-template-columns: 1fr; }
  .kmc-bar { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --km-header-h: 60px; }
  .kmc-section { padding-block: 40px; }
  .kmo-wrap { padding-inline: 16px; }
  .kmc-logo svg { width: 120px; }
  .kmc-pair { grid-template-columns: 1fr; text-align: center; }
  .kmc-pair__side { justify-content: center; }
  .kmc-pair__vs { justify-self: center; }
  .kmc-cookie { left: 12px; right: 12px; width: auto; bottom: 12px; }
}
@media (max-width: 520px) {
  .kmc-nav--key { display: none; }
}
