.hgc{--hgc-accent:#17649d;--hgc-bg:#fff;--hgc-text:#16233a;background:var(--hgc-bg);color:var(--hgc-text);border:1px solid #e6e9ee;border-radius:15px;padding:22px;font-family:inherit;box-shadow:0 5px 22px #11223a0a;max-width:100%;box-sizing:border-box}.hgc *{box-sizing:border-box}.hgc-header{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:19px}.hgc-title{margin:0!important;font-size:clamp(1.3rem,2.3vw,1.9rem);color:var(--hgc-text)}.hgc-actions{display:flex;align-items:center;gap:6px}.hgc-month-label{min-width:140px;text-align:center;font-weight:700}.hgc-actions button{background:#f3f6f9;border:1px solid #e1e6ea;border-radius:8px;color:var(--hgc-text);padding:7px 12px;cursor:pointer;font-size:1rem;line-height:1.3}.hgc-actions button:hover,.hgc-actions button:focus-visible{background:var(--hgc-accent);color:#fff}.hgc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #e7eaf0;border-left:1px solid #e7eaf0}.hgc-weekday{text-align:center;padding:12px 3px;font-size:.82rem;font-weight:700;background:#f5f7fa;border-right:1px solid #e7eaf0;border-bottom:1px solid #e7eaf0}.hgc-day{min-height:105px;min-width:0;padding:7px;border-right:1px solid #e7eaf0;border-bottom:1px solid #e7eaf0}.hgc-day-number{display:inline-flex;min-width:26px;height:26px;align-items:center;justify-content:center;font-size:.88rem;font-weight:600}.hgc-current .hgc-day-number{background:var(--hgc-accent);color:#fff;border-radius:50%}.hgc-outside{background:#f8f9fb;color:#98a1ad}.hgc-day-events{display:flex;flex-direction:column;gap:3px;margin-top:5px}.hgc-chip{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:color-mix(in srgb,var(--hgc-accent) 12%,white);color:var(--hgc-accent)!important;border-left:3px solid var(--hgc-accent);font-size:.73rem!important;text-decoration:none!important;padding:4px 5px;border-radius:3px}.hgc-chip:hover{filter:brightness(.93)}.hgc-chip-time{font-weight:700}.hgc-more{font-size:.7rem;opacity:.7}.hgc-list{display:grid;gap:10px}.hgc-event{display:flex;align-items:flex-start;gap:16px;padding:17px 12px;border:1px solid #e8edf2;border-radius:12px;background:#fff}.hgc-event-date{display:flex;flex-direction:column;align-items:center;min-width:62px;border-radius:9px;background:var(--hgc-accent);color:#fff;padding:10px 6px}.hgc-event-date strong{font-size:1.65rem;line-height:1.1}.hgc-event-date small{text-transform:uppercase;letter-spacing:.08em}.hgc-event-info{min-width:0}.hgc-event-meta{font-size:.8rem;color:#657185;font-weight:600}.hgc-event-info h3{font-size:1.12rem;line-height:1.35;margin:5px 0!important;color:var(--hgc-text)}.hgc-event-info h3 a{color:var(--hgc-text)!important;text-decoration:none}.hgc-event-info h3 a:hover{color:var(--hgc-accent)!important}.hgc-location,.hgc-description{font-size:.88rem;line-height:1.55;margin:5px 0!important;color:#586273}.hgc-description{white-space:pre-line}.hgc-loading,.hgc-empty,.hgc-error{padding:35px 10px;text-align:center}.hgc-error{color:#b42318}.hgc-upcoming .hgc-prev,.hgc-upcoming .hgc-next,.hgc-upcoming .hgc-today{display:none}@media(max-width:700px){.hgc{padding:12px}.hgc-header{align-items:flex-start}.hgc-grid{display:block;border:0}.hgc-weekday{display:none}.hgc-day{min-height:0;display:flex;gap:12px;align-items:flex-start;border:0;border-bottom:1px solid #e7eaf0;padding:9px 0}.hgc-outside{display:none}.hgc-day-number{flex:none}.hgc-day-events{flex:1;margin:0}.hgc-chip{white-space:normal;font-size:.83rem!important}.hgc-event{padding:13px 8px}.hgc-event-date{min-width:48px}.hgc-month-label{min-width:115px}.hgc-actions button{padding:6px 9px}}

/* v1.1 modern layout switch and styling */
.hgc{border:1px solid #e8ebf1;border-radius:22px;padding:clamp(15px,3vw,30px);box-shadow:0 12px 40px rgba(16,34,56,.055);overflow:hidden}
.hgc-header{margin-bottom:22px}.hgc-heading{display:flex;flex-direction:column;gap:4px}.hgc-eyebrow{font-weight:800;letter-spacing:.14em;font-size:.66rem;color:var(--hgc-accent);line-height:1.4}.hgc-title{font-weight:800!important;letter-spacing:-.035em}.hgc-view-switch{display:flex;gap:3px;padding:4px;background:#eef1f5;border-radius:12px}.hgc-view-btn{border:0!important;border-radius:9px!important;padding:10px 16px!important;background:transparent!important;color:#617082!important;cursor:pointer;font-size:.86rem!important;font-weight:700!important;line-height:1.1!important;transition:all .18s ease}.hgc-view-btn[aria-pressed=true]{background:#fff!important;color:var(--hgc-accent)!important;box-shadow:0 2px 8px #10223b12}.hgc-view-btn:focus-visible{outline:2px solid var(--hgc-accent);outline-offset:2px}.hgc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.hgc-actions{gap:12px}.hgc-month-label{min-width:175px;text-align:center;font-size:1rem;letter-spacing:-.015em}.hgc-actions button,.hgc-today{border:1px solid #e4e8ef;background:#fff;color:var(--hgc-text);border-radius:10px;padding:9px 14px;font-size:.9rem;font-weight:700;cursor:pointer;line-height:1.2}.hgc-actions button:hover,.hgc-today:hover{background:var(--hgc-accent);border-color:var(--hgc-accent);color:white}.hgc-weekday{background:#f8f9fb;color:#667487;letter-spacing:.025em}.hgc-grid{border-radius:12px;overflow:hidden}.hgc-day{min-height:116px}.hgc-chip{border-radius:6px;padding:6px 7px;font-weight:600}.hgc-event{gap:18px;border-radius:15px;padding:19px;background:var(--hgc-bg);transition:border-color .2s,transform .2s}.hgc-event:hover{border-color:color-mix(in srgb,var(--hgc-accent) 35%,white);transform:translateY(-1px)}.hgc-event-date{border-radius:12px;min-width:69px}.hgc-event-info{flex:1}.hgc-upcoming .hgc-toolbar{display:none}.hgc-upcoming .hgc-view-switch{display:none}
@media(max-width:700px){.hgc-header{gap:12px}.hgc-toolbar{flex-wrap:wrap}.hgc-actions{gap:4px}.hgc-month-label{min-width:130px}.hgc-view-btn{padding:9px 12px!important}.hgc-day{min-height:0}.hgc-grid{border-radius:0}.hgc{border-radius:14px}.hgc-event{padding:12px}.hgc-event-date{min-width:52px}}
@media(max-width:420px){.hgc-header{flex-direction:column;align-items:stretch}.hgc-view-switch{align-self:flex-start}.hgc-month-label{min-width:110px;font-size:.86rem}.hgc-actions button,.hgc-today{padding:8px 10px}}

/* v1.2: start list at today's events, rich hover and keyboard detail cards */
.hgc-list-mode .hgc-prev,.hgc-list-mode .hgc-next,.hgc-list-mode .hgc-today{display:none}
.hgc-list-mode .hgc-toolbar{margin-bottom:10px}
.hgc-event,.hgc-chip{position:relative}
.hgc-popover{display:none;position:absolute;z-index:30;left:50%;bottom:calc(100% + 9px);transform:translateX(-50%);width:min(320px,80vw);max-width:calc(100vw - 32px);padding:14px 16px;border-radius:13px;background:#17253a;color:#fff!important;box-shadow:0 10px 30px #0003;font-size:13px!important;font-weight:400;white-space:normal;line-height:1.4;text-align:left;pointer-events:none;overflow-wrap:anywhere}
.hgc-popover>strong,.hgc-popover>span{display:block;margin-bottom:6px;color:#fff!important}.hgc-popover>strong{font-size:15px}.hgc-popover-desc{white-space:pre-line;opacity:.88;max-height:160px;overflow:hidden}.hgc-event:hover>.hgc-popover,.hgc-event:focus-visible>.hgc-popover,.hgc-event:focus-within>.hgc-popover,.hgc-chip:hover>.hgc-popover,.hgc-chip:focus-visible>.hgc-popover{display:block}
.hgc-day:nth-child(7n+1) .hgc-popover{left:0;transform:none}.hgc-day:nth-child(7n) .hgc-popover{left:auto;right:0;transform:none}
@media (max-width:700px){.hgc-popover{left:0;transform:none;width:min(300px,75vw)}.hgc-day .hgc-popover{left:0!important;right:auto!important;transform:none!important}}

/* v1.3: shared floating details for month and list views, not clipped by grid */
.hgc .hgc-popover{display:none!important}
.hgc-floating-detail{position:absolute;z-index:2147483000;box-sizing:border-box;padding:16px 18px;border-radius:14px;background:#17253a;color:#fff;box-shadow:0 14px 44px rgba(0,0,0,.28);font:400 13px/1.5 system-ui,-apple-system,sans-serif;overflow-wrap:anywhere;white-space:normal;max-height:min(420px,80vh);overflow-y:auto;}
.hgc-floating-detail[hidden]{display:none!important}
.hgc-floating-detail>strong,.hgc-floating-detail>span{display:block;margin-bottom:7px;color:#fff}
.hgc-floating-detail>strong{font-size:15px;font-weight:750}
.hgc-floating-detail .hgc-popover-desc{white-space:pre-line;max-height:190px;overflow:auto;opacity:.92}
.hgc-floating-detail .hgc-detail-link{display:inline-block;margin-top:5px;color:#b7e0ff!important;font-weight:700;text-decoration:underline}
.hgc .hgc-event{cursor:pointer}
.hgc .hgc-chip:focus-visible,.hgc .hgc-event:focus-visible{outline:2px solid var(--hgc-accent);outline-offset:2px}


/* v1.4: independent week-at-a-glance card carousel. */
.hgc-week{--hgc-desired-cols:3;--hgc-card-cols:var(--hgc-desired-cols);--hgc-week-gap:16px;}
.hgc-week-header{margin-bottom:18px}
.hgc-week-range{margin:5px 0 0!important;color:#657185;font-size:.95rem;line-height:1.4;font-weight:600}
.hgc-week-controls{display:flex;gap:9px;align-items:center}
.hgc-week-controls button{display:inline-flex;align-items:center;justify-content:center;width:41px;height:41px;border:1px solid #e0e6ee;border-radius:50%;background:var(--hgc-bg);color:var(--hgc-accent);font-size:1.65rem;line-height:1;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
.hgc-week-controls button:not(:disabled):hover{color:#fff;background:var(--hgc-accent);border-color:var(--hgc-accent)}
.hgc-week-controls button:focus-visible,.hgc-week-track:focus-visible{outline:2px solid var(--hgc-accent);outline-offset:3px}
.hgc-week-controls button:disabled{opacity:.35;cursor:default}
.hgc-week-position{font-size:.75rem;color:#657185;font-weight:650;min-width:72px;text-align:center;font-variant-numeric:tabular-nums}
.hgc-week-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--hgc-card-cols) - 1)*var(--hgc-week-gap))/var(--hgc-card-cols));gap:var(--hgc-week-gap);overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-padding-inline:1px;padding:2px 1px 12px;scrollbar-width:none;-ms-overflow-style:none}
.hgc-week-track::-webkit-scrollbar{display:none}
.hgc-week-card{min-width:0;scroll-snap-align:start;display:flex;flex-direction:column;align-items:flex-start;padding:19px;border:1px solid #e6ebf1;border-top:4px solid var(--hgc-accent);border-radius:14px;background:var(--hgc-bg);color:var(--hgc-text);box-shadow:0 4px 16px rgba(17,34,58,.045);overflow-wrap:anywhere}
.hgc-week-card-top{display:flex;align-items:center;gap:14px;margin-bottom:14px;width:100%}
.hgc-week-card-date{display:flex;flex:0 0 64px;min-height:80px;align-items:center;justify-content:center;flex-direction:column;gap:1px;border-radius:11px;background:var(--hgc-accent);color:#fff;text-align:center;padding:6px}
.hgc-week-card-date span,.hgc-week-card-date small{font-size:.68rem;font-weight:800;letter-spacing:.065em;text-transform:uppercase;line-height:1.15}
.hgc-week-card-date strong{font-size:1.65rem;line-height:1.05;font-weight:850}
.hgc-week-card-info{min-width:0}
.hgc-week-card-time{margin:0!important;font-size:.83rem;line-height:1.45;font-weight:650;color:var(--hgc-text)}
.hgc-week-card-title{font-size:1.13rem!important;line-height:1.3!important;font-weight:750;margin:0 0 11px!important;color:var(--hgc-text)!important}
.hgc-week-card-title a{color:inherit!important;text-decoration:none!important}
.hgc-week-card-title a:hover{text-decoration:underline!important;text-underline-offset:3px}
.hgc-week-card-location{font-size:.84rem;line-height:1.5;margin:0 0 10px!important;color:#526176}
.hgc-week-card-description{font-size:.85rem;line-height:1.55;margin:0 0 16px!important;color:#586779;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.hgc-week-card-link{margin-top:auto;display:inline-block;padding-top:8px;color:var(--hgc-accent)!important;font-weight:750;text-decoration:none!important;font-size:.83rem}
.hgc-week-card-link:hover{text-decoration:underline!important}
.hgc-week:not(.hgc-week-has-scroll) .hgc-week-controls button{display:none}
@media(max-width:900px){.hgc-week{--hgc-card-cols:min(2,var(--hgc-desired-cols))}}
@media(max-width:600px){.hgc-week{--hgc-card-cols:1;--hgc-week-gap:12px}.hgc-week-header{flex-direction:row;align-items:center}.hgc-week-controls{gap:5px}.hgc-week-controls button{width:36px;height:36px}.hgc-week-position{min-width:53px;font-size:.69rem}.hgc-week-card{padding:15px}.hgc-week-range{font-size:.86rem}}
@media(max-width:420px){.hgc-week-header{align-items:flex-start}.hgc-week-controls{align-self:flex-end}}
@media(prefers-reduced-motion:reduce){.hgc-week-controls button{transition:none}}
