/* Marcean chrome: the brand, the head and the foot, in one file.
   Authored once here: scripts/sync-chrome.mjs inlines it into the app, and
   scripts/render-chrome.mjs writes the head and foot into the pages.
   Only what both surfaces share belongs in this file. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1F3D2B;
  --ink-2: #4B5A51;
  --mint: #3ACE86;
  --line: #DEE6DF;
  --field: #F6F8F3;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --small: 0.9rem;
  --body: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --t1: clamp(2.15rem, 1.4rem + 2.9vw, 3.55rem);
  --t2: clamp(1.7rem, 1.35rem + 1.5vw, 2.5rem);
  --t3: clamp(1.15rem, 1.06rem + 0.35vw, 1.35rem);
  --mint-50: #EDFAF3;
  --mint-ink: #2E7D52;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --surface: #FFFFFF;
  --r-lg: 16px;
  --s1: 0.5rem;
  --s2: 0.85rem;
  --s3: 1.25rem;
  --s4: 2rem;
  --s5: 3.25rem;
  --wrap: 1120px;
  --r: 12px;
}

body { font-family: var(--sans); font-size: var(--body); line-height: 1.55; color: var(--ink); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ink);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  background: var(--mint);
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 4.75rem;
}

.foot { padding: var(--s4) 0 var(--s5); font-size: var(--small); color: var(--ink-2); }
.foot-top { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; }
.foot-links { display: flex; gap: var(--s3); font-weight: 600; }
.foot-links a { text-decoration: none; color: var(--ink-2); }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { margin-top: var(--s3); max-width: 72ch; }

/* ---------- the button, wherever it appears ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn:hover { background: var(--mint-ink); border-color: var(--mint-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #C9D4CB; }
.btn--ghost:hover { background: var(--mint-50); border-color: var(--mint); color: var(--ink); }
.btn--small { min-height: 34px; padding: 0 0.75rem; font-size: 0.85rem; border-radius: 8px; }

/* ---------- the card, the panel and the badge ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s4);
}
.card--tight { border-radius: var(--r); padding: 1.25rem; }

.panel-mint {
  background: var(--mint-50);
  border: 1px solid #CDEADB;
  border-radius: var(--r);
  padding: 0.9rem 1.1rem;
}

.pill { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.pill--ok { background: var(--mint-50); color: #14603A; }
.pill--review { background: #FDF4E3; color: #8A5A00; }
.pill--wait { background: #EEF1F6; color: #3A4A63; }

/* the nav: links on a wide screen, the Menu summary below that */
.head-links { display: flex; gap: 1.75rem; font-size: var(--small); font-weight: 600; align-items: center; }
.head-links a { text-decoration: none; color: var(--ink-2); }
.head-links a:hover { color: var(--ink); }

.head-menu { display: none; position: relative; }
.head-menu summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center;
  min-height: 42px; padding: 0 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font-size: var(--small); font-weight: 700;
}
.head-menu summary::-webkit-details-marker { display: none; }
.head-menu-links {
  position: absolute; right: 0; top: 3.1rem; z-index: 30;
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-width: 11rem;
  font-size: var(--small); font-weight: 600;
}
.head-menu-links a { text-decoration: none; padding: 0.55rem 0.7rem; border-radius: 8px; color: var(--ink); }
.head-menu-links a:hover { background: #EDFAF3; }
.who { color: var(--ink-2); font-size: var(--small); }
.link { background: none; border: 0; color: var(--ink-2); font: inherit; cursor: pointer; text-decoration: underline; }

@media (max-width: 700px) {
  .head-links { display: none; }
  .head-menu { display: block; }
}

@media (max-width: 640px) {
  .site-head { min-height: 4rem; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 23px; height: 23px; border-radius: 7px; }
}
