/* Yeoju Drone shared calendar language — 2026-11-12.
   White day cells; quiet category bands; the same 3.8-second whole-cell glow on today and actual transplant dates.
   Native iOS/Android date-picker popovers remain browser/OS controlled. */
:root{--yd-cal-border:#dfe8f1;--yd-cal-blue:#32769e;--yd-cal-ink:#193b55}
/* Applies across site date inputs without replacing their native behavior. */
input[type="date"],input[type="month"],input[type="week"]{accent-color:#32769e;color-scheme:light}
#calendarGrid .calendar-day{
 background:#fff;border:1px solid var(--yd-cal-border);border-radius:9px;
 padding:9px 8px;gap:5px;min-height:96px;
 color:var(--yd-cal-ink);overflow:hidden;
 transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
#calendarGrid .calendar-day:hover{background:#f9fcff;border-color:#9bc5de}
#calendarGrid .calendar-day:focus-visible{outline:3px solid #2285b3;outline-offset:2px}
#calendarGrid .calendar-day.selected{outline:2px solid #2a7ca9;outline-offset:-2px}
#calendarGrid .calendar-day strong.calendar-day-number{
 display:inline-flex;align-items:center;justify-content:center;
 font:650 17px/1.2 system-ui,-apple-system,'Apple SD Gothic Neo',sans-serif;
 letter-spacing:-.025em;color:#183b55;min-width:25px;min-height:25px;
 padding:2px 3px;margin:0;border-radius:8px;
}
#calendarGrid .calendar-day .calendar-band{
 display:block!important;width:100%;height:5px;min-height:5px;
 padding:0!important;margin:1px 0 0!important;border-radius:8px;
 background:#e1edf6;overflow:hidden;white-space:nowrap!important;
 flex:none!important;max-height:5px!important;line-height:0!important;
 -webkit-line-clamp:unset!important;
}
#calendarGrid .calendar-day .calendar-band-water{background:#d3e8f8}
#calendarGrid .calendar-day .calendar-band-weed,
#calendarGrid .calendar-day .calendar-band-pest{background:#f4dfc2}
#calendarGrid .calendar-day .calendar-band-fertilizer{background:#d9ebd8}
#calendarGrid .calendar-day .calendar-band-harvest{background:#e5daf4}
#calendarGrid .calendar-day .calendar-band-actual{background:#b4deca}
#calendarGrid .calendar-day .calendar-compact-label{
 background:transparent!important;padding:2px 0 0!important;border:0!important;
 margin:0;line-height:1.3;letter-spacing:-.02em;
 font-size:12px;font-weight:650;color:#3b708d;
 white-space:normal;overflow-wrap:anywhere;word-break:keep-all;
 display:block;max-height:none;overflow:visible;
 -webkit-line-clamp:unset;
}
#calendarGrid .calendar-day .calendar-compact-water{color:#326e9c}
#calendarGrid .calendar-day .calendar-compact-weed,
#calendarGrid .calendar-day .calendar-compact-pest{color:#866037}
#calendarGrid .calendar-day .calendar-compact-fertilizer{color:#547c4e}
#calendarGrid .calendar-day .calendar-compact-harvest{color:#735f97}
#calendarGrid .calendar-day .calendar-compact-actual{color:#2b7257}
#calendarGrid .calendar-day .calendar-extra-count{font-size:10px;color:#677d90}
/* The same gentle 3.8-second whole-cell glow marks significant dates.
   Today = red; recorded transplant day = teal (the existing actual-record legend hue).
   A day that is both uses the red today glow, while the transplant record remains visible.
   The date number and event labels never animate. */
#calendarGrid .calendar-day.today,
#calendarGrid .calendar-day.transplant-day:not(.today){
 background-color:rgba(var(--yd-day-glow-rgb),.07);
 border-color:rgba(var(--yd-day-glow-rgb),.56);
 animation:yd-calendar-date-cell-glow 3.8s ease-in-out infinite;
}
#calendarGrid .calendar-day.today{--yd-day-glow-rgb:207,58,70}
#calendarGrid .calendar-day.transplant-day:not(.today){--yd-day-glow-rgb:48,152,108}
#calendarGrid .calendar-day.today .calendar-day-number{
 color:#fff!important;background:#216f9d;
 box-shadow:0 0 0 1px rgba(33,111,157,.14);
 animation:none!important;filter:none!important;
}
@keyframes yd-calendar-date-cell-glow{
 0%,100%{
  background-color:rgba(var(--yd-day-glow-rgb),.035);
  border-color:rgba(var(--yd-day-glow-rgb),.33);
  box-shadow:0 0 0 1px rgba(var(--yd-day-glow-rgb),.08),0 0 5px 0 rgba(var(--yd-day-glow-rgb),.05),inset 0 0 12px rgba(var(--yd-day-glow-rgb),.02);
 }
 50%{
  background-color:rgba(var(--yd-day-glow-rgb),.17);
  border-color:rgba(var(--yd-day-glow-rgb),.90);
  box-shadow:0 0 0 2px rgba(var(--yd-day-glow-rgb),.43),0 0 17px 3px rgba(var(--yd-day-glow-rgb),.28),inset 0 0 18px rgba(var(--yd-day-glow-rgb),.11);
 }
}
/* One-row shortcuts. Today is solid blue; transplant is an outlined companion. */
.calendar-jump-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:3px 0 11px}
.calendar-jump-actions .calendar-jump{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin:0;padding:9px 14px;border-radius:10px;font-size:13px;font-weight:800;letter-spacing:-.02em;line-height:1.2;cursor:pointer;transition:background-color .18s ease,box-shadow .18s ease}
.calendar-jump-actions .calendar-jump-today{background:#176baf;color:#fff;border:1px solid #176baf;box-shadow:0 3px 9px rgba(19,99,167,.17)}
.calendar-jump-actions .calendar-jump-today:hover{background:#10568f;box-shadow:0 4px 12px rgba(19,99,167,.25)}
.calendar-jump-actions .calendar-jump-transplant{background:#f7fbff;color:#135b92;border:1.5px solid #76add5}
.calendar-jump-actions .calendar-jump-transplant:hover{background:#e7f4fe;border-color:#367eb6}
.calendar-jump-actions .calendar-jump:focus-visible{outline:3px solid #0d7fae;outline-offset:3px}
.calendar-jump-actions .calendar-jump[hidden]{display:none!important}
#calendarGrid .calendar-day{height:auto;align-self:stretch}
#calendarGrid .calendar-day .calendar-compact-label{
 display:block;-webkit-line-clamp:unset!important;max-height:none!important;
 overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere;
}
@media(max-width:750px){
 #calendarGrid.calendar-grid{gap:3px}
 #calendarGrid .calendar-day{min-height:78px;padding:5px 3px;gap:4px;border-radius:8px}
 #calendarGrid .calendar-day strong.calendar-day-number{font-size:15px;min-width:24px;min-height:24px;padding:2px}
 #calendarGrid .calendar-day .calendar-band{height:4px;min-height:4px;max-height:4px!important}
 #calendarGrid .calendar-day .calendar-compact-label{font-size:10.5px;line-height:1.25;max-height:none}
 #calendarGrid .calendar-day .calendar-extra-count{font-size:9px}
}
@media(max-width:370px){
 #calendarGrid .calendar-day{padding:4px 2px;min-height:76px}
 #calendarGrid .calendar-day .calendar-compact-label{font-size:9.5px}
}
@media(prefers-reduced-motion:reduce){
 #calendarGrid .calendar-day{transition:none!important}
 #calendarGrid .calendar-day.today,
 #calendarGrid .calendar-day.transplant-day:not(.today){
  animation:none!important;
  background-color:rgba(var(--yd-day-glow-rgb),.12);
  border-color:rgba(var(--yd-day-glow-rgb),.70);
  box-shadow:0 0 0 2px rgba(var(--yd-day-glow-rgb),.28);
 }
 #calendarGrid .calendar-day.today .calendar-day-number{animation:none!important;transition:none!important}
}

@media(max-width:750px){.calendar-jump-actions{gap:7px}.calendar-jump-actions .calendar-jump{min-height:40px;padding:8px 10px;font-size:12px}#calendarGrid .calendar-day .calendar-compact-label{line-height:1.23}}
@media(max-width:370px){#calendarGrid .calendar-day .calendar-compact-label{font-size:9.5px}.calendar-jump-actions .calendar-jump{font-size:11.5px;padding-inline:9px}}

/* Legend labels are paired with the EXACT existing calendar band palette.
   Pest and weed share the same amber band in the approved calendar. */
.calendar-legend{display:flex;align-items:center;flex-wrap:wrap;gap:7px 9px;margin:8px 0 10px;max-width:100%;min-width:0}
.calendar-legend-title{font-size:.84rem;color:#2f506a;font-weight:800;margin-right:2px;line-height:1.5}
.calendar-legend-item{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;padding:5px 8px;background:#f9fcfe;border:1px solid #e2eaf1;border-radius:8px;color:#294c65;font-size:.81rem;font-weight:700;line-height:1.4;word-break:keep-all;white-space:normal}
.calendar-legend-band{display:inline-block;width:25px;min-width:20px;height:6px;flex-shrink:0;border-radius:8px}
.calendar-legend-fertilizer{background:#d9ebd8}
.calendar-legend-water{background:#d3e8f8}
.calendar-legend-pest{background:#f4dfc2}
.calendar-legend-harvest{background:#e5daf4}
.calendar-legend-actual{background:#b4deca}
@media(max-width:750px){
 .calendar-legend{gap:6px 7px;margin:8px 0 10px}
 .calendar-legend-title{flex-basis:100%;font-size:.83rem}
 .calendar-legend-item{font-size:.8rem;padding:5px 7px}
 .calendar-legend-band{width:22px;min-width:18px}
}
