/* MediFoodz Apps — implement SIGNATURE.md */
:root {
  --forest: #124734;
  --forest-ink: #0a2a1f;
  --avocado: #b8be14;
  --cream: #f6f3ec;
  --gold: #f5b700;
  --paper: #fffdf8;
  --ink: #15211b;
  --font: "Inter Tight", Inter, "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 70% 50% at 10% -10%, rgba(184, 190, 20, 0.10), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(245, 183, 0, 0.06), transparent 46%),
    linear-gradient(180deg, var(--forest-ink) 0%, #0e3527 70%, var(--forest) 100%);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wall {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.wall-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.mark { width: 72px; height: 72px; display: block; }
.top .mark { width: 36px; height: 36px; }
.ms-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #fff;
  color: #1b1b1b;
  font: 600 15px/1 var(--font);
  padding: 12px 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.ms-btn svg { width: 20px; height: 20px; }
.denied { min-height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; }
.denied p { margin: 0; color: rgba(255,253,248,0.62); font-size: 15px; letter-spacing: 0.01em; }

.shell { min-height: 100dvh; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(184, 190, 20, 0.16);
}
.who { font-size: 13px; color: rgba(255,253,248,0.7); }
.who a, .top a { color: inherit; }
.out {
  color: var(--avocado);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-left: 16px;
}
.gallery {
  padding: 48px 28px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.gallery h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.gallery .lede { color: rgba(255,253,248,0.72); margin: 0 0 36px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.tile {
  position: relative;
  display: block;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: var(--paper);
  border: 1px solid rgba(255,253,248,0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.tile.live { cursor: pointer; }
.tile.live:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 190, 20, 0.45);
  box-shadow: 0 20px 48px rgba(0,0,0,0.32);
}
.tile.reserved { pointer-events: none; }
.tile .tex { position: absolute; inset: 0; }
.tile .body { position: absolute; inset: auto 18px 18px; z-index: 2; }
.tile .name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; display: block; }
.tile .sig { width: 52px; height: 52px; margin-bottom: 12px; display: block; }

/* Grants — live, heavy gold mark on avocado-olive */
.grants { background: #3d4f0e; }
.grants .tex {
  background:
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(245,183,0,0.28) 13px 14px),
    linear-gradient(155deg, #7a8c1c 0%, #3d4f0e 46%, #1f2a08 100%);
}
.grants::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 7px;
  background: #f5b700;
  z-index: 2;
}

/* Reserved — unnamed, no click. Hue + mark weight must read without opacity wash. */
.r1 { background: #0a4540; }
.r1 .tex {
  background:
    radial-gradient(circle at 20% 18%, rgba(184,190,20,0.42), transparent 16%),
    radial-gradient(circle at 20% 18%, transparent 20%, rgba(184,190,20,0.28) 21%, transparent 23%),
    radial-gradient(circle at 20% 18%, transparent 32%, rgba(184,190,20,0.16) 33%, transparent 36%),
    radial-gradient(circle at 20% 18%, transparent 46%, rgba(184,190,20,0.10) 47%, transparent 50%),
    #0a4540;
}
.r1::after {
  content: "";
  position: absolute;
  top: 22px; left: 22px;
  width: 28px; height: 28px;
  border: 2.5px solid rgba(184,190,20,0.62);
  border-radius: 50%;
  z-index: 2;
}

.r2 { background: #0c1210; }
.r2 .tex {
  background:
    repeating-linear-gradient(135deg, rgba(246,243,236,0.16) 0 7px, transparent 7px 16px),
    #0c1210;
}
.r2::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(246,243,236,0.22);
  border-radius: 14px;
  z-index: 2;
}

.r3 { background: #2a1e06; }
.r3 .tex {
  background:
    radial-gradient(ellipse 80% 70% at 88% 88%, rgba(245,183,0,0.55), rgba(245,183,0,0.12) 42%, transparent 62%),
    #2a1e06;
}
.r3::after {
  content: "";
  position: absolute;
  right: 22px; bottom: 22px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #f5b700 0 38%, rgba(245,183,0,0.2) 62%, transparent 72%);
  z-index: 2;
}

.r4 { background: #124734; }
.r4 .tex {
  background:
    radial-gradient(circle, rgba(246,243,236,0.28) 1px, transparent 1.4px) 0 0 / 14px 14px,
    #124734;
}
.r4::after {
  content: "";
  position: absolute;
  top: 22px; right: 22px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f6f3ec;
  z-index: 2;
}

.r5 { background: #15211b; }
.r5 .tex {
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(245,183,0,0.22) 22px 26px),
    #15211b;
}
.r5::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 10px;
  background: #f5b700;
  z-index: 2;
}

.r6 { background: #0a2a1f; }
.r6 .tex {
  background:
    linear-gradient(90deg, #124734 0 50%, #0a2a1f 50%);
}
.r6::after {
  content: "";
  position: absolute;
  top: 16px; bottom: 16px; left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #f6f3ec;
  opacity: 0.55;
  z-index: 2;
}

.frame-wrap { height: 100dvh; display: grid; grid-template-rows: 48px 1fr; }
.frame-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: var(--forest-ink);
  border-bottom: 1px solid rgba(184,190,20,0.2);
  font-size: 13px;
}
.frame-bar a { color: var(--avocado); text-decoration: none; font-weight: 600; }
iframe { width: 100%; height: 100%; border: 0; background: var(--cream); }

.admin { max-width: 640px; margin: 0 auto; padding: 40px 28px; }
.admin table { width: 100%; border-collapse: collapse; }
.admin th, .admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255,253,248,0.1); font-size: 14px; }
.admin .note { color: rgba(255,253,248,0.6); font-size: 13px; }


/* Studio — live, cream field, forest mic. Not Grants gold-on-olive. */
.media { background: #f6f3ec; color: #15211b; }
.media .tex {
  background:
    repeating-linear-gradient(180deg, transparent 0 17px, rgba(10,42,31,0.08) 17px 18px),
    radial-gradient(ellipse 70% 45% at 86% 12%, rgba(184,190,20,0.28), transparent 52%),
    #f6f3ec;
}
.media .name { color: #15211b; }
.media::before {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 7px;
  background: #b8be14;
  z-index: 2;
}


/* Calendar — live, ink field, avocado plate. Not Grants gold, not Studio cream. */
.calendar { background: #15211b; }
.calendar .tex {
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(184,190,20,0.14) 18px 19px),
    linear-gradient(160deg, #24332c 0%, #15211b 58%, #0c1210 100%);
}
.calendar .name { color: #fffdf8; }


/* Legal — live, bronze field, gold seal. Not Grants olive, not Studio cream, not Calendar ink. */
.legal { background: #2a1e06; }
.legal .tex {
  background:
    repeating-linear-gradient(180deg, transparent 0 16px, rgba(245,183,0,0.16) 16px 17px),
    linear-gradient(165deg, #4a3510 0%, #2a1e06 52%, #140e04 100%);
}
.legal .name { color: #fffdf8; }
.legal::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 7px;
  background: #f5b700;
  z-index: 2;
}


/* SOP — live, forest field, stacked sheets. Not Grants, Studio, Calendar, or Legal bronze. */
.sop { background: #124734; }
.sop .tex {
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(246,243,236,0.12) 22px 23px),
    linear-gradient(155deg, #1a5c44 0%, #124734 50%, #0a2a1f 100%);
}
.sop .name { color: #fffdf8; }
.sop::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 7px;
  background: #f6f3ec;
  z-index: 2;
}


/* People — live, avocado field, forest figure. Not Grants olive, Studio cream, Calendar ink, Legal bronze, or SOP forest. */
.people { background: #b8be14; color: #15211b; }
.people .tex {
  background:
    radial-gradient(circle, rgba(10,42,31,0.14) 1.1px, transparent 1.5px) 0 0 / 16px 16px,
    linear-gradient(155deg, #c8ce2a 0%, #b8be14 48%, #9aa30f 100%);
}
.people .name { color: #15211b; }
.people::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 7px;
  background: #0a2a1f;
  z-index: 2;
}


/* Compete — live, cool navy field, signal bars. Only cool-hue tile; accents stay brand gold/avocado. */
.compete { background: #152238; }
.compete .tex {
  background:
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(184,190,20,0.14) 15px 16px),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(245,183,0,0.22), transparent 50%),
    linear-gradient(160deg, #243a5c 0%, #152238 55%, #0b1424 100%);
}
.compete .name { color: #fffdf8; }
.compete::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 7px;
  background: #b8be14;
  z-index: 2;
}


/* Plan — live, forest-ink field, checklist. Not Studio cream, not SOP forest, not Compete navy. */
.plan { background: #0a2a1f; }
.plan .tex {
  background:
    repeating-linear-gradient(180deg, transparent 0 20px, rgba(184,190,20,0.16) 20px 21px),
    radial-gradient(ellipse 45% 35% at 92% 88%, rgba(245,183,0,0.28), transparent 55%),
    #0a2a1f;
}
.plan .name { color: #fffdf8; }
.plan::before {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 56px; height: 56px;
  background:
    linear-gradient(135deg, transparent 50%, #f5b700 50%);
  z-index: 2;
}
