/* French @ Home live class calendar. Look matched to Amy's monthly calendar image. */
:root {
  --ink: #22304A;
  --pink-pill: #F8D5D5;
  --pink-soft: #FFF5F5;
  --pink-line: #F6E1E1;
  --cell: #FFFCFC;
  --teal: #A8E3DB;
  --teal-dark: #27B1A2;
  --rose: #CC3366;
  --muted: #6B6573;
  --font: Fredoka, "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #FFFDFD; color: var(--ink); }
body { font-family: var(--font); -webkit-text-size-adjust: 100%; }

.lc { padding: 16px 12px 28px; }
.lc-board { max-width: 1240px; margin: 0 auto; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }

/* ---------- header ---------- */
.lc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 22px; text-align: center; }
.lc-brand { display: flex; flex-direction: column; align-items: center; }
.lc-logo { width: min(260px, 68vw); height: auto; display: block; }
.lc-for { margin: 2px 0 0; font-size: 18px; font-weight: 400; letter-spacing: .02em; }
.lc-month {
  margin: 0; font-family: var(--font); font-weight: 700; font-size: clamp(54px, 15vw, 96px); line-height: .95; letter-spacing: .01em;
  color: #F7D4DF; -webkit-text-stroke: 8px #2A2230; paint-order: stroke fill;
  text-shadow: 3px 4px 0 rgba(204, 51, 102, .18);
}

/* ---------- month grid ---------- */
.lc-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.lc-days span {
  background: var(--pink-pill); border-radius: 10px; text-align: center; padding: 6px 0;
  font-weight: 600; font-size: 12px; letter-spacing: .06em;
}
.lc-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--pink-line); border-radius: 14px; overflow: hidden; background: var(--cell);
}
.lc-cell {
  position: relative; aspect-ratio: 1 / 1.05; min-width: 0; padding: 4px; border: 0; margin: 0;
  border-right: 1px solid var(--pink-line); border-bottom: 1px solid var(--pink-line);
  background: var(--cell); font: inherit; color: inherit; text-align: left;
}
.lc-cell:nth-child(7n) { border-right: 0; }
.lc-cell.is-empty { background: #FFFBFB; }
.lc-num { display: inline-grid; place-items: center; font-weight: 500; font-size: 14px; min-width: 1.6em; height: 1.6em; }
.lc-dot { border-radius: 50%; font-weight: 600; }
.lc-cell.has-event { cursor: pointer; }
.lc-cell.has-event:hover { background: #FFF3F5; }
.lc-cell:focus-visible, .lc-add summary:focus-visible, .lc-btn:focus-visible, .lc-add-menu a:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.lc-icon { position: absolute; right: 2px; bottom: 2px; width: 64%; height: 62%; object-fit: contain; pointer-events: none; }
.lc-cell.is-past .lc-num, .lc-cell.is-past .lc-icon { opacity: .4; }
.lc-cell.is-today { box-shadow: inset 0 0 0 3px var(--teal-dark); }

/* ---------- upcoming events ---------- */
.lc-events { background: var(--pink-soft); border: 2px solid #FBE9E9; border-radius: 26px; padding: 18px 14px 10px; }
.lc-ribbon { margin: 0 auto 14px; max-width: 420px; text-align: center; }
.lc-ribbon span {
  display: block; padding: 10px 26px; background: var(--teal); color: #173A44;
  font-weight: 600; font-size: 22px; letter-spacing: .12em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}
.lc-addall { text-align: center; margin: 0 0 8px; }
.lc-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: var(--teal-dark); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
}
.lc-btn:hover { background: #1F978A; }
.lc-help { margin: 6px 8px 0; font-size: 13px; color: var(--muted); }

.lc-list { list-style: none; margin: 0; padding: 0; }
.lc-item {
  display: grid; grid-template-columns: 50px 84px minmax(0, 1fr); gap: 4px 10px; align-items: start;
  padding: 16px 4px; border-top: 2px dashed #F4CFCF; border-radius: 12px;
}
.lc-item:first-child { border-top: 0; }
.lc-item.is-flash { animation: lc-flash 1.4s ease-out; }
@keyframes lc-flash { 0% { background: #FFE3EA; } 100% { background: transparent; } }
.lc-big { width: 50px; height: 50px; font-size: 24px; }
.lc-item-icon { width: 84px; height: 84px; object-fit: contain; margin-top: 8px; }
.lc-item-body h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: .01em; }
.lc-line { margin: 0 0 2px; font-size: 17px; line-height: 1.35; }
.lc-time { font-weight: 600; }
.lc-nowrap { white-space: nowrap; }
.lc-local { display: block; font-size: 13px; color: var(--muted); }
.lc-teacher { margin: 0 0 8px; font-size: 17px; }
.lc-done { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); background: #EEE; border-radius: 6px; padding: 1px 6px; vertical-align: 2px; }
.lc-item.is-past { opacity: .55; }

.lc-adds { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-add { position: relative; }
.lc-add summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 2px solid var(--teal-dark); color: #1F7F75; font-weight: 600; font-size: 15px;
}
.lc-add summary::-webkit-details-marker { display: none; }
.lc-add summary::before { content: "+"; margin-right: 6px; font-size: 18px; line-height: 1; }
.lc-add[open] summary { background: var(--teal); }
.lc-add-menu {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; min-width: 230px; display: grid; gap: 2px; padding: 6px;
  background: #fff; border-radius: 14px; box-shadow: 0 8px 26px rgba(34, 48, 74, .18);
}
.lc-add-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.lc-add-menu a:hover { background: var(--pink-soft); }

.lc-foot { text-align: right; font-size: 15px; color: var(--ink); }
.lc-foot p { margin: 2px 0; }
.lc-foot p + p { font-size: 13px; color: var(--muted); }

/* ---------- wider screens: grid left, events right (like the image) ---------- */
@media (min-width: 900px) {
  .lc { padding: 20px 24px 24px; }
  .lc-board { grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr); align-items: start; column-gap: 26px; }
  .lc-head { grid-column: 1; justify-content: space-between; text-align: left; flex-wrap: nowrap; }
  .lc-brand { align-items: flex-start; }
  .lc-for { font-size: 24px; }
  .lc-logo { width: 300px; }
  .lc-grid-wrap { grid-column: 1; }
  .lc-events { grid-column: 2; grid-row: 1 / span 3; }
  .lc-foot { grid-column: 1 / -1; }
  .lc-days span { font-size: 17px; padding: 8px 0; border-radius: 12px; }
  .lc-num { font-size: 19px; }
  .lc-cell .lc-dot { width: 1.9em; height: 1.9em; font-size: 20px; position: relative; z-index: 1; }
  .lc-item-body h3 { font-size: 19px; }
  .lc-line, .lc-teacher { font-size: 18px; }
  .lc-cell { padding: 8px; }
}
@media (max-width: 420px) {
  .lc-item { grid-template-columns: 44px 58px minmax(0, 1fr); gap: 4px 8px; }
  .lc-item-icon { width: 58px; height: 58px; margin-top: 6px; }
  .lc-big { width: 44px; height: 44px; font-size: 21px; }
  .lc-days span { font-size: 10px; letter-spacing: .02em; }
  .lc-cell .lc-num { font-size: 12px; }
  .lc-icon { width: 70%; height: 70%; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- month arrows, swipe ---------- */
.lc-monthnav { display: flex; align-items: center; justify-content: center; gap: 6px; }
.lc-arrow, .lc-arrow-space { flex: none; width: 48px; height: 48px; }
.lc-arrow {
  border: 0; border-radius: 50%; background: var(--pink-pill); color: var(--ink); cursor: pointer;
  font: 600 32px/1 var(--font); display: grid; place-items: center; padding-bottom: 4px;
}
.lc-arrow:hover { background: #F4C2C9; }
.lc-arrow:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.lc-pages { width: 100%; display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.lc-pages span { width: 8px; height: 8px; border-radius: 50%; background: #F1D2D2; }
.lc-pages span.on { background: var(--teal-dark); }
.lc-over { text-align: center; font-size: 15px; margin: 0 0 8px; }
.lc-in-right { animation: lc-in-r .3s ease-out; }
.lc-in-left { animation: lc-in-l .3s ease-out; }
@keyframes lc-in-r { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes lc-in-l { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .lc-pages { width: auto; position: absolute; } .lc-head { position: relative; } .lc-pages { left: 50%; bottom: -10px; transform: translateX(-50%); } }
.lc { overflow-x: hidden; }
@media (min-width: 900px) {
  .lc-month { font-size: clamp(56px, 5.6vw, 84px); }
  .lc-head { gap: 4px 12px; }
  .lc-arrow, .lc-arrow-space { width: 44px; height: 44px; }
}
/* Calendar Maker preview: buttons look real but do nothing */
.lc-btn-preview { cursor: default; opacity: .85; }
.lc-add-preview .lc-fake-summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 2px solid var(--teal-dark); color: #1F7F75; font-weight: 600; font-size: 15px; }
.lc-add-preview .lc-fake-summary::before { content: "+"; margin-right: 6px; font-size: 18px; line-height: 1; }
.lc-error { text-align: center; padding: 40px 16px; font-size: 18px; }
