/* GreenSpark eco system. Namespaced so it does not fight the explorer. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #edf6f1f2;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #c5ddd0;
  font-family: Literata, Georgia, serif;
}
.site-brand {
  flex: 0 0 auto;
  color: #143f33 !important;
  text-decoration: none !important;
  font-family: Fraunces, Georgia, serif;
  font-weight: 640;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-brand:before {
  content: "";
  width: 12px;
  height: 16px;
  border: 1.5px solid #3d7a5c;
  border-radius: 10px 0 10px 0;
  transform: rotate(22deg);
}
.site-nav nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.site-nav nav::-webkit-scrollbar { display: none; }
.site-nav nav a {
  flex: 0 0 auto;
  color: #245443 !important;
  text-decoration: none !important;
  font-family: Literata, Georgia, serif;
  font-size: 0.92rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.site-nav nav a[aria-current="page"] {
  background: #143f33;
  color: #f3ffe4 !important;
  border-color: #143f33;
}
.site-nav nav a:hover { background: #ffffffb8; }
.site-nav nav a[aria-current="page"]:hover { background: #1c5344; }

body.sheet, body.directory {
  --ink: #14382e;
  --muted: #4e6b5e;
  --line: #c5ddd0;
  --paper: #e7f3ec;
  --card: #fffcf7;
  --leaf: #c8f279;
  --forest: #143f33;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 420px at 100% -10%, #c9ead8 0%, transparent 70%),
    radial-gradient(ellipse 50% 480px at -10% 40%, #e4efc8 0%, transparent 75%),
    var(--paper);
  font-family: Literata, Georgia, serif;
  font-size: 17.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.sheet ::selection, body.directory ::selection { background: var(--leaf); color: var(--forest); }
body.sheet main, body.directory main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 3.5rem;
}
body.sheet h1, body.directory h1, body.sheet h2, body.sheet h3, body.directory h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
body.sheet .banner {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3e6b56;
  margin: 0.4rem 0 0.7rem;
}
body.sheet h1, body.directory h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 0.7rem;
}
body.sheet .lead, body.directory .lead { color: #3d5c4e; font-size: 1.05rem; max-width: 68ch; }
body.sheet h2 {
  font-size: 1.35rem;
  margin: 1.8rem 0 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
body.sheet p { margin: 0.55rem 0; overflow-wrap: anywhere; }
body.sheet code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.86em;
  background: #f3f8ef;
  padding: 0.05em 0.3em;
  border-radius: 4px;
}
body.sheet .method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0.8rem 0 1rem;
}
body.sheet .method-box, body.sheet .guardrail-box {
  background: #ffffffd4;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: inset 0 1px 0 #fff;
}
body.sheet .method-box h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
body.sheet .method-box p { margin: 0; font-size: 0.98rem; }
body.sheet .guardrail-box {
  background: linear-gradient(180deg, #f7fbe8, #eef6ea);
  border-left: 4px solid #8eaf55;
}
body.sheet .controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
body.sheet button {
  font-family: Literata, Georgia, serif;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #c5ddd0;
  background: #ffffffc7;
  color: var(--forest);
  cursor: pointer;
}
body.sheet button[aria-pressed="true"] {
  background: var(--forest);
  color: #f3ffe6;
  border-color: var(--forest);
}
body.sheet button:focus-visible { outline: 2px solid #2f7a55; outline-offset: 3px; }
body.sheet .sortbar {
  position: sticky;
  top: 64px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 1.2rem 0 0.8rem;
  padding: 10px 0;
  background: #e7f3ecee;
  backdrop-filter: blur(12px);
}
body.sheet #status { color: var(--muted); font-size: 0.92rem; margin: 0; }
body.sheet #cards { display: grid; gap: 16px; }
body.sheet article {
  background: #ffffffeb;
  border: 1px solid #c5ddd0;
  border-radius: 20px;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.7fr);
  gap: 8px 22px;
  box-shadow: 0 8px 24px #1d4a340c;
}
body.sheet article[hidden] { display: none; }
body.sheet .card-header, body.sheet article > h3 {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  margin: 0;
  padding: 1rem 1rem 0.9rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #e7f3ea, #f7f8ee);
  border: 1px solid #d5e6d8;
}
body.sheet article > h3 { display: block; }
body.sheet article h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
  margin: 0 0 0.45rem;
}
body.sheet .badge {
  display: inline-block;
  white-space: normal;
  font-family: Literata, Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}
body.sheet .badge-proof { background: #e5f3ea; color: #175436; }
body.sheet .badge-early { background: #e7eef6; color: #1b4978; }
body.sheet .badge-dealing { background: #f4eee4; color: #5a4628; }
body.sheet .badge-campaign { background: #f6eaf4; color: #5d2b66; }
body.sheet .meta {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0.2rem 0 0;
}
body.sheet article > p:not(.why):not(.meta) { margin: 0.2rem 0; padding-top: 0.35rem; }
body.sheet .why {
  margin: 0.4rem 0 0;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(100deg, #eaf5df, #f4f8ee);
  border-left: 3px solid #8eaf55;
  border-radius: 4px 12px 12px 4px;
  color: #2d4a32;
  font-size: 0.95rem;
}
body.sheet article[data-rank="1"] { border-color: #8fb59a; }
body.sheet article[data-rank="1"] .card-header,
body.sheet article[data-rank="1"] > h3 {
  background: #143f33;
  color: #f4faee;
  border-color: #143f33;
}
body.sheet article[data-rank="1"] h3,
body.sheet article[data-rank="1"] .meta { color: #e7f6df; }
body.sheet footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
body.directory a.row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: center;
  min-height: 72px;
  text-decoration: none;
  color: inherit;
  background: #ffffffeb;
  border: 1px solid #c5ddd0;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  margin: 0.65rem 0;
  box-shadow: 0 8px 22px #1d4a340c;
}
body.directory a.row strong {
  grid-column: 2;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: #143f33;
}
body.directory a.row span { grid-column: 2; color: #4e6b5e; font-size: 0.95rem; }
body.directory a.row:before {
  content: "";
  grid-row: 1 / span 2;
  width: 14px;
  height: 18px;
  border: 1.5px solid #3d7a5c;
  border-radius: 12px 0 12px 0;
  transform: rotate(22deg);
  justify-self: center;
}
body.directory a.now { background: #143f33; border-color: #143f33; }
body.directory a.now strong, body.directory a.now span { color: #f3ffe6; }
body.directory a.now:before { border-color: #c8f279; }
body.directory a.row:focus-visible { outline: 2px solid #2f7a55; outline-offset: 3px; }

@media (max-width: 900px) {
  body.sheet article, body.sheet .method-grid { grid-template-columns: 1fr; }
  body.sheet .card-header, body.sheet article > h3 { grid-row: auto; }
  body.sheet .sortbar { top: 58px; }
}
@media (max-width: 700px) {
  body.sheet, body.directory { font-size: 16.5px; }
  body.sheet main, body.directory main { padding: 1rem 0.85rem 2.6rem; }
  body.sheet h1, body.directory h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  body.sheet .controls { flex-direction: column; }
  body.sheet button { width: 100%; text-align: left; }
  body.sheet .sortbar { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav, body.sheet button { transition: none; }
}
