/* Growing Mindfully - enrollment availability concept styles
   Brand: paper/parchment surfaces, sage/gold/clay status tones,
   Newsreader display, Manrope data, Caveat for the single handwritten mark. */

:root {
  --paper: #FBF7EE;
  --parch: #F0E9D8;
  --card: #FFFDF8;
  --line: #E7DFCE;
  --ink: #1F2A2E;
  --ink2: #3F5359;
  --ink3: #5C6B70;
  --teal: #5FAEB6;
  --teal-deep: #3D8189;
  --open-seed: #9BB99E;
  --open-wash: #EFF3EC;
  --open-text: #435F49;
  --couple-seed: #C9A86A;
  --couple-wash: #F7EFDC;
  --couple-text: #6E551C;
  --few-seed: #C68B5C;
  --few-wash: #F7E9DB;
  --few-text: #7E4C1F;
  --none-ring: #CDAE9C;
  --none-wash: #F3EAE3;
  --none-text: #86503B;
}

/* NOTE: no global resets here - this sheet is injected into real site pages
   (homepage mockup) and must only style its own components. The standalone
   concept pages carry their own base reset in their local <style>. */

/* ---------- shared: buttons ---------- */
.gm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--ink); color: var(--paper);
  padding: 0.95rem 1.7rem; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), background 0.25s;
}
.gm-btn::after { content: "\2192"; transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1); }
.gm-btn:hover { background: #101B1F; }
.gm-btn:hover::after { transform: translateX(6px); }
.gm-btn:focus-visible, .cell:focus-visible, .crow:focus-visible {
  outline: 2px solid var(--teal-deep); outline-offset: 2px;
}

/* ---------- shared: glyphs ---------- */
.g-leaf { width: 16px; height: 16px; }
.g-leaf .blade { fill: var(--open-seed); }
.g-leaf .stem { stroke: var(--open-text); stroke-width: 1.1; stroke-linecap: round; }

/* option A: seed marks, no denominator */
.seeds { display: flex; gap: 4px; min-height: 8px; align-items: center; }
.seeds i {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--none-ring); background: transparent;
}
.seeds i.on { background: var(--couple-seed); border-color: var(--couple-seed); }
.s-few .seeds i.on, .li.few .seeds i.on { background: var(--few-seed); border-color: var(--few-seed); }

/* option A2: glyphs only - lotus logo, gold seeds, red X */
:root { --x-red: #B04A38; }
.g-mark { width: 22px; height: 22px; border-radius: 50%; display: block; }
.g-x { width: 13px; height: 13px; display: block; }
.g-x path { stroke: var(--x-red); stroke-width: 2.4; stroke-linecap: round; fill: none; }
body[data-gm-variant="marks"] .cell { gap: 0; min-height: 64px; }
body[data-gm-variant="marks"] .cell.s-open { background: #EAF1E6; }
body[data-gm-variant="marks"] .cell.s-few { background: #F5E7C6; }
body[data-gm-variant="marks"] .cell.s-none { background: #F7E4DE; }
body[data-gm-variant="marks"] .cell.s-open:hover { background: #E0EBDA; }
body[data-gm-variant="marks"] .cell.s-few:hover { background: #F0DFB4; }
body[data-gm-variant="marks"] .cell.s-none:hover { background: #F2D8CF; box-shadow: inset 0 0 0 2px rgba(176, 74, 56, 0.25); }
body[data-gm-variant="marks"] .seeds i.on { background: var(--couple-seed); border-color: var(--couple-seed); }
body[data-gm-variant="marks"] .cal-insight .dot.s-none,
body[data-gm-variant="marks"] .chip.s-none { border-color: var(--x-red); }
body[data-gm-variant="marks"] .mini i.x { border: none; width: 10px; height: 10px; position: relative; background: none; border-radius: 0; }
body[data-gm-variant="marks"] .mini i.x::before,
body[data-gm-variant="marks"] .mini i.x::after {
  content: ""; position: absolute; left: 4.4px; top: 0.5px; width: 1.8px; height: 9px;
  background: var(--x-red); border-radius: 1px;
}
body[data-gm-variant="marks"] .mini i.x::before { transform: rotate(45deg); }
body[data-gm-variant="marks"] .mini i.x::after { transform: rotate(-45deg); }
body[data-gm-variant="marks"] .mini.s-open i { background: var(--teal); }

/* option B: a ring that closes as the room fills */
.g-ring { width: 19px; height: 19px; }
.g-ring .track { fill: none; stroke: #E6DCC8; stroke-width: 2.6; }
.g-ring .arc { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.s-open .g-ring .arc, .li.open .g-ring .arc { stroke: var(--open-seed); }
.s-couple .g-ring .arc, .li.couple .g-ring .arc { stroke: var(--couple-seed); }
.s-few .g-ring .arc, .li.few .g-ring .arc { stroke: var(--few-seed); }
.g-ring .disc { fill: var(--none-ring); }

/* ---------- the 12-month grid ---------- */
.cal-wrap { position: relative; margin-top: 3.6rem; }
.cal {
  display: grid;
  grid-template-columns: 168px repeat(12, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 42, 46, 0.05);
}
.cal-corner {
  background: var(--parch); padding: 0.7rem 1rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink3);
  display: flex; align-items: center;
}
.cal-mh {
  background: var(--parch); border-left: 1px solid var(--line);
  padding: 0.7rem 0.15rem; text-align: center;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink3);
  display: flex; align-items: center; justify-content: center;
}
.cal-mh.yr, .cell.yr { border-left: 2px solid #D8CFBA; }
.cal-room {
  border-top: 1px solid var(--line); padding: 0.85rem 1rem;
  display: flex; flex-direction: column; justify-content: center; gap: 0.1rem;
  background: var(--card);
}
.cal-room .rn {
  font-family: 'Newsreader', serif; font-style: italic;
  font-weight: 600; font-size: 1.12rem; color: var(--ink); line-height: 1.2;
}
.cal-room .ra { font-size: 0.7rem; font-weight: 500; color: var(--ink3); }

.cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; min-height: 74px; text-decoration: none;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.cell .cl {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; white-space: nowrap;
}
.cell.s-open { background: var(--open-wash); }
.cell.s-couple { background: var(--couple-wash); }
.cell.s-few { background: var(--few-wash); }
.cell.s-none { background: var(--none-wash); }
.cell.s-open .cl { color: var(--open-text); }
.cell.s-couple .cl { color: var(--couple-text); }
.cell.s-few .cl { color: var(--few-text); }
.cell.s-none .cl { color: var(--none-text); }
.cell.s-open:hover { background: #E5EDE2; box-shadow: inset 0 0 0 2px rgba(67, 95, 73, 0.25); }
.cell.s-couple:hover { background: #F2E6C8; box-shadow: inset 0 0 0 2px rgba(110, 85, 28, 0.25); }
.cell.s-few:hover { background: #F1DFC9; box-shadow: inset 0 0 0 2px rgba(126, 76, 31, 0.25); }
.cell.s-none:hover { background: #EDDFD4; box-shadow: inset 0 0 0 2px rgba(134, 80, 59, 0.25); }

/* option C: words only - the type IS the display (option D adds the leaf back on open) */
body[data-gm-variant="words"] .cell { gap: 0; }
body[data-gm-variant="hybrid"] .cell { gap: 0.3rem; }
body[data-gm-variant="words"] .cell .cl,
body[data-gm-variant="hybrid"] .cell .cl {
  font-family: 'Newsreader', serif; font-style: italic; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0; text-transform: none;
}
body[data-gm-variant="words"] .cell.s-none .cl,
body[data-gm-variant="hybrid"] .cell.s-none .cl {
  font-family: 'Manrope', sans-serif; font-style: normal;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  /* 'backwards' fill: the resting state is opacity 1, so cells can never
     be left invisible; the delay period shows the 'from' frame instead */
  .cell { animation: gm-sow 0.5s ease backwards; }
  @keyframes gm-sow {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
  }
}

/* the single handwritten mark */
.cal-note-hand {
  position: absolute; top: -3.1rem;
  left: calc(168px + (100% - 168px) * 0.015);
  font-family: 'Caveat', cursive; font-size: 1.45rem; line-height: 1.1;
  color: var(--few-text); transform: rotate(-2.5deg);
  display: flex; align-items: flex-end; gap: 0.4rem;
  pointer-events: none;
}
.cal-note-hand svg { width: 26px; height: 30px; margin-bottom: -14px; }
.cal-note-hand svg path {
  fill: none; stroke: var(--few-text); stroke-width: 1.6; stroke-linecap: round;
}

/* insight bar: one shared line instead of 36 tooltips */
.cal-insight {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 2.8rem; margin-top: 0.9rem; padding: 0 0.2rem;
  font-family: 'Newsreader', serif; font-style: italic;
  font-size: 1.06rem; color: var(--ink2);
}
.cal-insight .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cal-insight .dot.s-open { background: var(--open-seed); }
.cal-insight .dot.s-couple { background: var(--couple-seed); }
.cal-insight .dot.s-few { background: var(--few-seed); }
.cal-insight .dot.s-none { background: none; border: 1.5px solid var(--none-ring); }

/* legend, sentence-style */
.cal-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.6rem;
  margin-top: 0.4rem; font-size: 0.82rem; font-weight: 500; color: var(--ink2);
}
.cal-legend .li { display: inline-flex; align-items: center; gap: 0.5rem; }
.cal-legend b { font-weight: 700; }
.cal-legend .li.open b { color: var(--open-text); }
.cal-legend .li.couple b { color: var(--couple-text); }
.cal-legend .li.few b { color: var(--few-text); }
.cal-legend .li.none b { color: var(--none-text); }

/* ---------- stacked room cards (mobile) ---------- */
.cal-cards { display: none; flex-direction: column; gap: 1rem; }
.room-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: 0 2px 10px rgba(31, 42, 46, 0.05);
}
.rc-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.rc-head .rn {
  font-family: 'Newsreader', serif; font-style: italic;
  font-weight: 600; font-size: 1.3rem; color: var(--ink); line-height: 1;
}
.rc-head .ra { font-size: 0.7rem; font-weight: 500; color: var(--ink3); flex: 1; padding-top: 0.2rem; }
.chip {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.34rem 0.65rem; border-radius: 999px; white-space: nowrap;
}
.chip.s-open { background: var(--open-wash); color: var(--open-text); }
.chip.s-couple { background: var(--couple-wash); color: var(--couple-text); }
.chip.s-few { background: var(--few-wash); color: var(--few-text); }
.chip.s-none { background: var(--none-wash); color: var(--none-text); }

.strip { display: flex; justify-content: space-between; padding-top: 1rem; margin-bottom: 0.9rem; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; flex: 1; min-width: 0; }
.mini b { font-size: 0.48rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink3); text-transform: uppercase; }
.mini i { display: block; width: 9px; height: 9px; }
.mini.s-open i { background: var(--open-seed); border-radius: 50%; }
/* a couple of spaces = TWO small gold dots; very few = ONE terracotta dot
   (echoes the grid's 2-seed / 1-seed language; count + color differ) */
.mini.s-couple i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--couple-seed);
  box-shadow: 8px 0 0 var(--couple-seed); transform: translateX(-4px); margin: 2px 0;
}
.mini.s-few i { width: 5px; height: 5px; border-radius: 50%; background: var(--few-seed); margin: 2px 0; }
.mini.s-none i { border: 1.5px solid var(--none-ring); border-radius: 50%; width: 9px; height: 9px; background: none; }
.mini[data-yr]::before {
  content: attr(data-yr); position: absolute; top: -0.95rem;
  font-size: 0.55rem; font-weight: 700; color: var(--ink3);
}
.rc-note {
  font-family: 'Newsreader', serif; font-style: italic;
  font-size: 0.92rem; color: var(--ink2); margin-bottom: 0.2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-cta .gm-btn { width: 100%; }

/* ---------- compact at-a-glance card ---------- */
.gm-compact {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; max-width: 560px;
  box-shadow: 0 2px 10px rgba(31, 42, 46, 0.05);
}
.gmc-head { background: var(--parch); padding: 1.05rem 1.25rem 0.9rem; border-bottom: 1px solid var(--line); }
.gmc-head h3 {
  font-family: 'Newsreader', serif; font-weight: 600; font-size: 1.3rem; color: var(--ink);
}
.gmc-head p { font-size: 0.74rem; color: var(--ink3); font-weight: 500; }
.crow {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 0.5rem 0.8rem; padding: 1rem 1.25rem; text-decoration: none;
  border-top: 1px solid var(--line); transition: background 0.25s ease;
}
.gm-compact .crow:first-child { border-top: none; }
.crow:hover { background: #FDFAF2; }
.crow .crn {
  font-family: 'Newsreader', serif; font-style: italic;
  font-weight: 600; font-size: 1.1rem; color: var(--ink); line-height: 1.15;
}
.crow .crn small { display: block; font-family: 'Manrope', sans-serif; font-style: normal; font-size: 0.68rem; font-weight: 500; color: var(--ink3); }
.crow .cstrip { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; padding-top: 0.85rem; }
.gmc-foot { padding: 1rem 1.25rem 1.2rem; border-top: 1px solid var(--line); }
.gmc-foot .gm-btn { width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cal { grid-template-columns: 130px repeat(12, 1fr); }
  .cell .cl { font-size: 0.55rem; letter-spacing: 0.02em; }
  .cal-room .rn { font-size: 1rem; }
}
@media (max-width: 720px) {
  .cal, .cal-note-hand, .cal-insight, .cal-legend { display: none; }
  .cal-wrap { margin-top: 1.6rem; }
  .cal-cards { display: flex; }
}
