/* ParkOwl v3.7: the calendar page's own styles, scoped to the new look (generated from public/calendar/index.html, so the two always match).
   Night mode follows the new look's switch. If the calendar page's design changes, ask for this file to be regenerated. */
.gl-cal-host .sub{color:var(--muted);font-size:12.5px;margin:0 0 12px}
.gl-cal-host .avail-map{height:260px;border-radius:16px;overflow:hidden;background:#f3f1ec;border:1px solid #eef0f2}
.gl-cal-host .legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:10px 0 0;padding:0;list-style:none;font-size:11.5px;color:var(--muted);font-weight:700}
.gl-cal-host .legend li{display:inline-flex;align-items:center;gap:6px}
.gl-cal-host .dot{width:12px;height:12px;border-radius:50%;display:inline-block;border:2px solid #fff;box-shadow:0 0 0 1px #0002;flex-shrink:0}
.gl-cal-host .dot.green{background:#16a34a}
.gl-cal-host .dot.red{background:#dc2626}
.gl-cal-host .dot.amber{background:#f59e0b}
.gl-cal-host .dot.orange{background:#ea580c}
.gl-cal-host .dot.grey{background:#94a3b8}
.gl-cal-host .dot.dashed{background:#fff;border:2px dashed #94a3b8;box-shadow:none}
.gl-cal-host .pin{width:22px;height:22px;border-radius:50%;border:3px solid #fff;box-shadow:0 2px 8px #0005;cursor:pointer}
.gl-cal-host .pin.green{background:#16a34a}
.gl-cal-host .pin.red{background:#dc2626}
.gl-cal-host .pin.amber{background:#f59e0b}
.gl-cal-host .pin.orange{background:#ea580c}
.gl-cal-host .pin.grey{background:#94a3b8}
.gl-cal-host .pin.dashed{outline:2px dashed #475569;outline-offset:2px}
.gl-cal-host .park-rows{display:grid;gap:8px;margin-top:12px}
.gl-cal-host .park-row{display:flex;align-items:center;gap:10px;background:#f8fafc;border:1px solid #eef0f2;border-radius:12px;padding:9px 12px;font-size:13px}
.gl-cal-host .park-row a{color:inherit;text-decoration:none}
.gl-cal-host .park-row b{color:var(--ink)}
.gl-cal-host .park-row .grow{min-width:0}
.gl-cal-host .park-row small{color:var(--muted);display:block;font-size:11.5px}
.gl-cal-host .tally-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gl-cal-host .tally{background:linear-gradient(135deg,#ecfdf5,#d1fae5);border:1.5px solid #86efac;border-radius:16px;padding:14px 16px}
.gl-cal-host .tally .label{font-size:11px;font-weight:900;letter-spacing:.06em;color:#166534;text-transform:uppercase}
.gl-cal-host .tally .big{font-size:30px;font-weight:900;color:#166534;line-height:1.1;margin:2px 0}
.gl-cal-host .tally .bigs{display:flex;flex-wrap:wrap;gap:4px 22px;align-items:flex-end;margin:2px 0 6px}
.gl-cal-host .tally .big-l{font-size:11px;font-weight:800;color:#166534;margin-top:-2px}
.gl-cal-host .tally .part .big,.gl-cal-host .tally .part .big-l{color:#c2410c}
.gl-cal-host .tally .part{padding-left:18px;border-left:2px solid #fdba7480}
.gl-cal-host .dd-sum{margin:0;padding-left:18px;line-height:1.8}
.gl-cal-host .dd-sum li.sum-quiet{background:linear-gradient(90deg,#e0f2fe80,transparent 70%)}
.gl-cal-host .dd-sum li.sum-busy{background:linear-gradient(90deg,#fef3c780,transparent 70%)}
.gl-cal-host .dd-sum li.sum-crazy{background:linear-gradient(90deg,#fee2e280,transparent 70%)}
.gl-cal-host .dd-sum li{border-radius:8px;padding:0 6px}
html[data-gl="night"] .gl-cal-host .tally{background:linear-gradient(135deg,#052e1a,#0b3b25);border-color:#166534}
html[data-gl="night"] .gl-cal-host .tally .label,html[data-gl="night"] .gl-cal-host .tally .big,html[data-gl="night"] .gl-cal-host .tally .big-l,html[data-gl="night"] .gl-cal-host .tally .small{color:#86efac}
html[data-gl="night"] .gl-cal-host .tally .part .big,html[data-gl="night"] .gl-cal-host .tally .part .big-l{color:#fdba74}
html[data-gl="night"] .gl-cal-host .park-row,html[data-gl="night"] .gl-cal-host .day-detail{background:#162036;border-color:#24304a}
html[data-gl="night"] .gl-cal-host .cal-cell{background:#162036;border-color:#24304a;color:#e5e7eb}
html[data-gl="night"] .gl-cal-host .cal-cell.blank{background:transparent;border-color:transparent}
html[data-gl="night"] .gl-cal-host .cal-cell.used{background:#4c0519;border-color:#9f1239}
html[data-gl="night"] .gl-cal-host .cal-cell.not-used{background:#052e16;border-color:#16a34a}
html[data-gl="night"] .gl-cal-host .cal-cell.restricted,html[data-gl="night"] .gl-cal-host .cal-cell.maintenance{background:#422006;border-color:#a16207}
html[data-gl="night"] .gl-cal-host .cal-cell.partial{background:#431407;border-color:#ea580c}
html[data-gl="night"] .gl-cal-host .cal-cell.upcoming{background:#1e1b4b;border-color:#4338ca}
html[data-gl="night"] .gl-cal-host .cal-cell.in-progress{background:#3f3a0b;border-color:#ca8a04}
html[data-gl="night"] .gl-cal-host .cal-cell.unconfirmed{background:transparent;border-color:#475569}
html[data-gl="night"] .gl-cal-host .cal-cell.no-data{background:#0f172a;border-color:#1f2a44}
html[data-gl="night"] .gl-cal-host .cal-nav button,html[data-gl="night"] .gl-cal-host .cal-park select{background:#162036;border-color:#24304a;color:#e5e7eb}
html[data-gl="night"] .gl-cal-host .day-log td{border-color:#24304a}
html[data-gl="night"] .gl-cal-host .day-log tr.in-booking td{background:#431407aa}
html[data-gl="night"] .gl-cal-host .avail-map{border-color:#1f2a44}
html[data-gl="night"] .gl-cal-host .dd-sum li.sum-quiet{background:linear-gradient(90deg,#0c4a6e80,transparent 70%)}
html[data-gl="night"] .gl-cal-host .dd-sum li.sum-busy{background:linear-gradient(90deg,#713f1280,transparent 70%)}
html[data-gl="night"] .gl-cal-host .dd-sum li.sum-crazy{background:linear-gradient(90deg,#7f1d1d80,transparent 70%)}
.gl-cal-host .tally .small{font-size:12px;color:#166534;line-height:1.5}
.gl-cal-host .defn{font-size:11.5px;color:var(--muted);margin:12px 0 0;line-height:1.55}
.gl-cal-host .cal-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.gl-cal-host .cal-nav h2{margin:0}
.gl-cal-host .cal-nav button{border:1.5px solid #e2d6c4;background:#fff;border-radius:99px;padding:6px 14px;font-weight:800;font-size:13px;cursor:pointer;color:var(--owl-brown)}
.gl-cal-host .cal-nav button:disabled{opacity:.35;cursor:default}
.gl-cal-host .cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.gl-cal-host .cal-dow{font-size:10.5px;font-weight:900;color:var(--muted);text-align:center;letter-spacing:.04em}
.gl-cal-host .cal-cell{min-height:64px;border-radius:12px;padding:5px 6px;background:#fafafa;border:1.5px solid #eef0f2;text-align:left;font:inherit;display:flex;flex-direction:column;gap:2px;cursor:pointer;color:var(--ink)}
.gl-cal-host .cal-cell.blank{background:transparent;border-color:transparent;cursor:default}
.gl-cal-host .cal-cell .n{font-size:11px;font-weight:800;color:var(--muted)}
.gl-cal-host .cal-cell .ic{font-size:15px;line-height:1}
.gl-cal-host .cal-cell .tm{font-size:9.5px;font-weight:700;line-height:1.15}
.gl-cal-host .cal-cell.today{outline:2px solid var(--ice-dark);outline-offset:1px}
.gl-cal-host .cal-cell.selected{box-shadow:0 0 0 2px var(--owl-brown)}
.gl-cal-host .cal-cell.used{background:#fee2e2;border-color:#fca5a5}
.gl-cal-host .cal-cell.not-used{background:#dcfce7;border-color:#4ade80}
.gl-cal-host .cal-cell.restricted,.gl-cal-host .cal-cell.maintenance{background:#fef3c7;border-color:#fcd34d}
.gl-cal-host .cal-cell.partial{background:#ffedd5;border-color:#fb923c}
.gl-cal-host .cal-cell.upcoming{background:#ede9fe;border-color:#c4b5fd}
.gl-cal-host .cal-cell.in-progress{background:#fef9c3;border-color:#facc15}
.gl-cal-host .cal-cell.unconfirmed{background:#fff;border:1.5px dashed #94a3b8}
.gl-cal-host .cal-cell.no-data{background:#f1f5f9;border-color:#e2e8f0}
.gl-cal-host .cal-cell.early{background:linear-gradient(135deg,#f0fdf4,#fef2f2);border-color:#4ade80}
.gl-cal-host .cal-cell .cl{font-size:10px;font-weight:700;color:#15803d;line-height:1.1}
.gl-cal-host .cal-cell .cl.o{color:#c2410c}
.gl-cal-host .seg-bar{display:block;height:6px;border-radius:99px;overflow:hidden;background:#e2e8f0;margin-top:auto;position:relative;width:100%}
.gl-cal-host .seg-bar i{position:absolute;top:0;bottom:0}
.gl-cal-host .seg-bar i.available{background:#16a34a}
.gl-cal-host .seg-bar i.partial{background:#f97316}
.gl-cal-host .seg-bar i.sport{background:#ef4444}
.gl-cal-host .seg-bar i.maintenance{background:#f59e0b}
.gl-cal-host .seg-bar.big{height:10px;margin:6px 0 4px}
.gl-cal-host .seg-legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:11px;color:var(--muted);font-weight:600;margin:6px 0 0}
.gl-cal-host .seg-legend span::before{content:"";display:inline-block;width:10px;height:6px;border-radius:3px;margin-right:4px;vertical-align:1px;background:var(--c)}
.gl-cal-host .dd-sent{margin:4px 0 0;line-height:1.55}
.gl-cal-host .wx-row{margin:5px 0 0;font-size:11.5px;font-weight:600;color:#1e3a8a;background:linear-gradient(135deg,#e0f2fe,#dbeafe);border:1px solid #93c5fd;border-radius:10px;padding:5px 9px;line-height:1.4}
html[data-gl="night"] .gl-cal-host .wx-row{background:#0c1d3a;border-color:#1e40af;color:#bfdbfe}
.gl-cal-host .wx-mark{font-size:11px}
.gl-cal-host .day-log tr.wx td{background:#eff6ff}
html[data-gl="night"] .gl-cal-host .day-log tr.wx td{background:#0c1d3a}
.gl-cal-host .park-row .lw{display:flex;align-items:center;gap:5px;margin-top:5px;flex-wrap:wrap}
.gl-cal-host .park-row .lw-detail{flex-basis:100%;margin:2px 0 0 !important;font-size:11.5px;color:var(--muted);line-height:1.45}
.gl-cal-host .park-row .lw-info{background:#e9eef4}
html[data-gl="night"] .gl-cal-host .cal-cell.early{background:linear-gradient(135deg,#052e16,#4c0519);border-color:#16a34a}
html[data-gl="night"] .gl-cal-host .seg-bar{background:#334155}
.gl-cal-host .cal-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:12px 0 0;padding:0;list-style:none;font-size:11.5px;color:var(--muted);font-weight:700}
.gl-cal-host .day-detail{margin-top:14px;background:#f8fafc;border:1px solid #eef0f2;border-radius:14px;padding:12px 14px;font-size:13px}
.gl-cal-host .day-detail h3{margin:0 0 6px;font-size:14px}
.gl-cal-host .day-detail .outcome{font-weight:800;margin-bottom:8px}
.gl-cal-host .dd-h{margin:12px 0 4px;font-size:13px}
.gl-cal-host .dd-note{margin:0 0 6px;color:var(--muted);font-size:11.5px}
.gl-cal-host .day-log{width:100%;border-collapse:collapse;font-size:12.5px}
.gl-cal-host .day-log td{padding:5px 8px;border-bottom:1px solid #eef0f2;vertical-align:top}
.gl-cal-host .day-log .dl-t{white-space:nowrap;color:var(--muted);font-weight:700;width:1%}
.gl-cal-host .day-log tr.in-booking td{background:#fff7ed}
.gl-cal-host .empty{color:var(--muted);font-size:12.5px}
@media(max-width:760px){.gl-cal-host .tally-grid{grid-template-columns:1fr}
.gl-cal-host .tally .big{font-size:26px}
.gl-cal-host .cal-grid{gap:3px}
.gl-cal-host .cal-cell{min-height:54px;padding:4px;border-radius:9px}
.gl-cal-host .cal-cell .tm{font-size:8.5px}
.gl-cal-host .avail-map{height:210px}}
.gl-cal-host .lw-pill{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:4px 12px;font-size:12px;font-weight:600;line-height:1.3;
  background:linear-gradient(135deg,#ffffffd9,#ffffff99);border:1px solid #ffffffe6;box-shadow:inset 0 1px 0 #fff,0 3px 10px #0f172a14;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.gl-cal-host .lw-pill.used{color:#9f1239;border-color:#fecdd3}
.gl-cal-host .lw-pill.partial{color:#9a3412;border-color:#fed7aa}
.gl-cal-host .lw-pill.not-used{color:#166534;border-color:#bbf7d0}
.gl-cal-host .lw-pill.restricted{color:#92400e;border-color:#fde68a}
.gl-cal-host .lw-pill{background:#1e293b;border-color:#334155;box-shadow:none}
.gl-cal-host .lw-pill.used{color:#fda4af}
.gl-cal-host .lw-pill.partial{color:#fdba74}
.gl-cal-host .lw-pill.not-used{color:#86efac}
.gl-cal-host .lw-pill.restricted{color:#fcd34d}
.gl-cal-host .lw-pill{background:#fbfaf7;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.gl-cal-host .lw-pill{font-size:11px;padding:3px 10px}
.gl-cal-host .last-week-link{color:inherit;font-weight:900;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.gl-cal-host .cal-nav h2,.gl-cal-host h2{margin:0 0 4px;font-size:18px}
.gl-cal-host .cal-nav h2{margin:0}
.gl-cal-host #calParkRow,.gl-cal-host #availMap{display:none}
.gl-cal-host .gl-card{margin-top:16px}.gl-cal-host .gl-card:first-of-type{margin-top:0}

/* v3.8: days the Council changed (same look as the classic calendar), and the sync line above the month */
.gl-cal-host .cal-cell.cc-cancelled{position:relative;background-image:linear-gradient(to top right,transparent calc(50% - 1px),#dc2626 50%,transparent calc(50% + 1px))}
.gl-cal-host .cal-cell .cc-mark{display:block;margin-top:2px;font-size:9.5px;font-weight:700;line-height:1.2;color:#b91c1c}
.gl-cal-host .cal-cell.cc-changed .cc-mark,.gl-cal-host .cal-cell.cc-added .cc-mark{color:#9a3412}
.gl-cal-host .cc-note{margin:10px 0 0;padding:8px 11px;border-radius:12px;background:#fff7ed;border:1px solid #fdba74;color:#7c2d12;font-size:12.5px;line-height:1.5}
html[data-gl="night"] .gl-cal-host .cc-note{background:#2b2113;border-color:#6b4a2a;color:#fdba74}
.gl-cal-host #glCalSync{margin:0 0 10px}
