/* The member and public event pages (ARCHITECTURE 14.5; Member 1 Portal frame 29,
   Member 4 Guest and Public frames 45 and 46), the signup block and the embed.

   Loaded after the core's portal.css. Every rule starts with .gc-portal, except
   the embed document's own body. Colors and sizes are the export's tokens;
   a row's type color comes from --gc-etype, which events.js sets from the
   type (C17's colors by type). */

.gc-portal .gc-ecols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }

/* Lists: 45 and 29 */
.gc-portal .gc-ecal { display: grid; gap: 12px; padding: 16px; }
.gc-portal .gc-ecal__group { margin: 4px 0 0; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--slate-500); }
.gc-portal .gc-ecal__feed { font: 600 13px/1.4 var(--font-body); justify-self: start; }
.gc-portal .gc-echips { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-portal .gc-echips__chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--gc-radius-pill); border: 1px solid var(--line-strong); background: var(--white); color: var(--slate-700); font: 600 13px/1 var(--font-body); text-decoration: none; }
.gc-portal .gc-echips__chip.is-current { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.gc-portal .gc-erows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gc-portal .gc-erow { --gc-etype: var(--slate-400); }
.gc-portal .gc-erow__link { display: grid; gap: 4px; padding: 12px 14px 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--gc-etype); border-radius: var(--gc-radius); background: var(--white); color: var(--text-strong); text-decoration: none; min-height: 44px; }
.gc-portal .gc-erow__link:hover { border-color: var(--line-strong); border-left-color: var(--gc-etype); }
.gc-portal .gc-erow__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gc-portal .gc-erow__name { font: 700 15px/1.3 var(--font-body); color: var(--navy-900); }
.gc-portal .gc-erow__sub { font: 400 13.5px/1.4 var(--font-body); color: var(--slate-600); }

/* 45's chips with the switch to the other view at the end of the row ("Month view", frame 45), and 29's "List / Calendar" (decision p10_evpages 1, 3). */
.gc-portal .gc-ecal__bar { display: flex; align-items: flex-start; gap: 6px 12px; flex-wrap: wrap; }
.gc-portal .gc-ecal__bar .gc-echips { flex: 1 1 auto; }
.gc-portal .gc-ecal__switch { flex: none; }
.gc-portal .gc-ecal__views .gc-echips__chip { min-height: 28px; padding: 0 10px; font-size: 12.5px; }

/* The month view (C17's month grid, read only): each date colored by its type through --gc-etype. */
.gc-portal .gc-emonth { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--gc-radius); background: var(--white); overflow: hidden; }
.gc-portal .gc-emonth__head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.gc-portal .gc-emonth__title { margin: 0; text-align: center; font: 700 22px/1 var(--font-display); text-transform: uppercase; color: var(--navy-900); }
.gc-portal .gc-emonth__arrow { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--gc-radius); color: var(--navy-900); font: 600 20px/1 var(--font-body); text-decoration: none; }
.gc-portal .gc-emonth__arrow:hover { border-color: var(--line-strong); }
.gc-portal .gc-emonth__arrow.is-off { border-color: transparent; }
.gc-portal .gc-emonth__weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--paper); font: 600 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--slate-600); }
.gc-portal .gc-emonth__weekdays span { padding: 8px; }
.gc-portal .gc-emonth__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.gc-portal .gc-emonth__day { display: grid; gap: 3px; align-content: start; min-width: 0; min-height: 88px; padding: 6px; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.gc-portal .gc-emonth__day:nth-child(7n + 1) { border-left: 0; }
.gc-portal .gc-emonth__day.is-out { background: var(--paper); }
.gc-portal .gc-emonth__n { font: 500 12px/1 var(--font-mono); color: var(--slate-700); }
.gc-portal .gc-emonth__day.is-today .gc-emonth__n { font-weight: 700; color: var(--red-600); }
.gc-portal .gc-emonth__entry { --gc-etype: var(--slate-400); display: block; padding: 3px 6px; border-left: 3px solid var(--gc-etype); border-radius: 5px; background: color-mix(in oklch, var(--gc-etype) 10%, var(--white)); color: var(--navy-900); font: 600 11.5px/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.gc-portal .gc-emonth__entry:hover { filter: brightness(.97); }
.gc-portal .gc-emonth__none { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line-soft); font: 400 13.5px/1.4 var(--font-body); color: var(--slate-600); }
.gc-portal .gc-emonth__list { display: none; }

/* An event's photo at its own shape: fitted to the column, its height following, never cropped (decision p10_evpages 6). */
.gc-portal .gc-ephoto { display: block; max-width: 100%; width: auto; height: auto; border-radius: var(--gc-radius); }

/* No sign-up, or sign-up on another site, in place of the form (decision p10_evpages 5). */
.gc-portal .gc-eentry { display: grid; gap: 12px; }
.gc-portal .gc-eentry__text { margin: 0; font: 600 14.5px/1.45 var(--font-body); color: var(--navy-900); }

/* 29's helper jobs and frame 34's Volunteer card (decision p10_evpages 7). */
.gc-portal .gc-ehelpers { display: grid; gap: 8px; }
.gc-portal .gc-ehelpers__title { margin: 0; font: 700 18px/1 var(--font-display); text-transform: uppercase; color: var(--navy-900); }
.gc-portal .gc-ehelpers__jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gc-portal .gc-ehelpers__job { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--gc-radius); background: var(--white); }
.gc-portal .gc-ehelpers__job.is-mine { border-color: var(--gc-green-ink); background: var(--gc-green-tint); }
.gc-portal .gc-ehelpers__what { display: grid; gap: 2px; }
.gc-portal .gc-ehelpers__count { font: 700 14.5px/1.3 var(--font-body); color: var(--navy-900); }
.gc-portal .gc-ehelpers__when, .gc-portal .gc-ehelpers__why { font: 400 13px/1.4 var(--font-body); color: var(--slate-600); }
.gc-portal .gc-ehelpers__act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.gc-portal .gc-ehelpers__mine { font: 600 13px/1.3 var(--font-body); color: var(--gc-green-ink); }
.gc-portal .gc-ehelpers__off { padding: 0; border: 0; font: 600 13px/1.3 var(--font-body); cursor: pointer; }
.gc-portal .gc-ehelpers__off, #gc-portal .gc-ehelpers__off { background: none; }
.gc-portal .gc-ehelpers__full { font: 600 13px/1.3 var(--font-body); color: var(--slate-600); }
.gc-portal .gc-ehelpers__job .gc-field__error { grid-column: 1 / -1; }
.gc-portal .gc-ehelpers__hours, .gc-portal .gc-evolunteer__hours { margin: 0; font: 400 13px/1.45 var(--font-body); color: var(--slate-600); }
.gc-portal .gc-evolunteer { display: grid; gap: 10px; margin-bottom: 16px; }

/* 45 and 46 inside the club's theme: the screen under the theme's own title (decision p10_evpages 1). */
.gc-portal.gc-pub-events { display: grid; gap: 16px; min-height: 0; background: transparent; }

/* Event pages: 45, 29, 46 */
.gc-portal .gc-epage { display: grid; gap: 12px; align-content: start; }
.gc-portal .gc-epage__back { font: 600 14px/1 var(--font-body); color: var(--slate-700); text-decoration: none; }
.gc-portal .gc-epage__name { margin: 0; font: 700 24px/1.05 var(--font-display); text-transform: uppercase; color: var(--navy-900); }
.gc-portal .gc-epage__when { margin: 0; font: 600 14.5px/1.45 var(--font-body); color: var(--slate-700); }
.gc-portal .gc-epage__about { margin: 0; font: 400 14.5px/1.55 var(--font-body); color: var(--slate-700); white-space: pre-line; }
.gc-portal .gc-epage__cal { font: 600 13px/1.4 var(--font-body); justify-self: start; }
.gc-portal .gc-ebring { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--gc-radius); background: var(--paper); font: 400 13.5px/1.45 var(--font-body); color: var(--slate-700); }
.gc-portal .gc-ebring b { font-weight: 700; color: var(--navy-900); }
.gc-portal .gc-edates, .gc-portal .gc-eslots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gc-portal .gc-edates__link, .gc-portal .gc-eslots__link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--gc-radius); background: var(--white); color: var(--text-strong); text-decoration: none; }
.gc-portal .gc-edates__date.is-chosen .gc-edates__link, .gc-portal .gc-eslots__slot.is-chosen .gc-eslots__link { border: 2px solid var(--navy-900); }
.gc-portal .gc-edates__when, .gc-portal .gc-eslots__when { font: 700 14.5px/1.3 var(--font-body); color: var(--navy-900); }
.gc-portal .gc-eslots__sub { flex-basis: 100%; font: 400 13px/1.4 var(--font-body); color: var(--slate-600); }

/* Forms */
.gc-portal .gc-esignup { display: grid; gap: 12px; }
/* The club's refund policy beside a priced sign-up, in its own words (Phase 10 stage 2). */
.gc-portal .gc-esignup__policy { display: grid; gap: 4px; margin: 0; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; }
.gc-portal .gc-esignup__policytitle { font: 700 12.5px/1.3 var(--font-body); color: var(--navy-900); }
.gc-portal .gc-esignup__policytext { margin: 0; font: 400 12.5px/1.5 var(--font-body); color: var(--slate-700); }
.gc-portal .gc-esignup__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gc-portal .gc-esignup__closed { margin: 0; font: 600 14px/1.45 var(--font-body); color: var(--slate-700); }
.gc-portal .gc-esignup__done { padding: 12px 14px; border-radius: var(--gc-radius); background: var(--gc-green-tint); color: var(--gc-green-ink); font: 600 14.5px/1.45 var(--font-body); }
.gc-portal .gc-btn--block { width: 100%; height: 48px; justify-content: center; font-size: 15px; }
.gc-portal .gc-egroup { display: grid; gap: 8px; }
.gc-portal .gc-egroup__lead { margin: 0; font: 600 14px/1.45 var(--font-body); color: var(--slate-700); }
.gc-portal .gc-egroup__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--gc-radius); background: var(--white); cursor: pointer; }
.gc-portal .gc-egroup__row.is-off { background: var(--paper); cursor: default; }
.gc-portal .gc-egroup__tick { width: 20px; height: 20px; accent-color: var(--navy-900); }
.gc-portal .gc-egroup__who { font: 400 14px/1.35 var(--font-body); color: var(--slate-700); }
.gc-portal .gc-egroup__who b { color: var(--navy-900); }
.gc-portal .gc-egroup__price { font: 600 14px/1 var(--font-mono); color: var(--navy-900); }
.gc-portal .gc-egroup__why { grid-column: 2 / -1; font: 400 13px/1.4 var(--font-body); color: var(--slate-600); }
.gc-portal .gc-egroup__refund { margin: 0; font: 400 13px/1.4 var(--font-body); color: var(--slate-600); }
/* The sign-up's parts (decision p10_evsignup 1 to 4): each person's questions under their row, guests by name, the waiver, how to pay. */
.gc-portal .gc-epq { display: grid; gap: 10px; padding: 10px 12px 12px 42px; }
.gc-portal .gc-epq[hidden] { display: none; }
.gc-portal .gc-esignup .gc-epq { padding: 0; }
.gc-portal .gc-epq__q { margin: 0; border: 0; padding: 0; min-width: 0; }
.gc-portal .gc-epq__q .gc-check { min-height: 32px; }
.gc-portal .gc-eguests { display: grid; gap: 8px; }
.gc-portal .gc-eguest { display: grid; gap: 8px; padding: 0 0 8px; border-bottom: 1px solid var(--line-soft); }
.gc-portal .gc-eguest__head { cursor: default; grid-template-columns: minmax(0, 1fr) auto; }
.gc-portal .gc-eguest .gc-epq { padding-left: 12px; }
.gc-portal .gc-eguest__remove { justify-self: start; padding: 0; border: 0; background: none; font: 600 13px/1.4 var(--font-body); cursor: pointer; }
.gc-portal .gc-eguests__add { justify-self: start; }
.gc-portal .gc-eguests__add[hidden] { display: none; }
.gc-portal .gc-ewaiver { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--gc-radius); background: var(--white); }
.gc-portal .gc-ewaiver__title { font: 700 15px/1.3 var(--font-body); color: var(--navy-900); }
.gc-portal .gc-ewaiver__text { max-height: 180px; overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: var(--gc-radius); background: var(--paper); font: 400 13.5px/1.55 var(--font-body); color: var(--slate-700); }
.gc-portal .gc-ewaiver__text p { margin: 0 0 8px; }
.gc-portal .gc-ewaiver__note { font: 400 13px/1.4 var(--font-body); color: var(--slate-600); }
.gc-portal .gc-epay { margin: 0; border: 0; padding: 0; display: grid; gap: 4px; }
.gc-portal .gc-epay__note { margin: 0; font: 400 13px/1.4 var(--font-body); color: var(--slate-600); }
.gc-portal .gc-edone { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--gc-radius); background: var(--gc-green-tint); }
.gc-portal .gc-edone__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gc-portal .gc-edone__title { font: 700 15px/1.3 var(--font-body); color: var(--gc-green-ink); }
.gc-portal .gc-edone__who { font: 400 14px/1.35 var(--font-body); color: var(--slate-700); }
.gc-portal .gc-edone__links { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 600 13.5px/1.4 var(--font-body); }
.gc-portal .gc-edone__links button.gc-link { padding: 0; border: 0; font: inherit; cursor: pointer; }
.gc-portal .gc-edone__links button.gc-link, #gc-portal .gc-edone__links button.gc-link { background: none; }
.gc-portal .gc-emembers { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--gc-radius); background: var(--amber-tint); color: var(--gc-amber-ink); font: 400 14px/1.5 var(--font-body); }
.gc-portal .gc-emembers__title { font-weight: 700; }
.gc-portal .gc-emembers__actions .gc-btn { flex: 1 1 auto; justify-content: center; }

/* The signup block's dialog */
.gc-portal.gc-eblock { display: inline-block; background: transparent; min-height: 0; }
.gc-portal .gc-edialog { width: min(440px, calc(100vw - 32px)); padding: 18px; border: 0; border-radius: var(--gc-radius); box-shadow: var(--gc-shadow-menu); }
.gc-portal .gc-edialog::backdrop { background: var(--on-dark-hover); }
.gc-portal .gc-edialog[open] { display: grid; gap: 12px; }
.gc-portal .gc-edialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gc-portal .gc-edialog__close { width: 44px; height: 44px; border: 0; font: 400 26px/1 var(--font-body); cursor: pointer; }
.gc-portal .gc-edialog__close, #gc-portal .gc-edialog__close { background: none; color: var(--slate-600); }

/* The embed snippet */
.gc-portal .gc-esnippet { display: grid; gap: 8px; justify-items: start; }

/* The /events/embed document */
body.gc-embed-doc { margin: 0; background: transparent; }
.gc-portal.gc-embed { min-height: 0; background: transparent; padding: 4px; display: grid; gap: 10px; }
.gc-portal .gc-embed__more { font: 600 13px/1.4 var(--font-body); }
/* The upcoming public events block on a theme page (Member 5's look not reviewed yet: plain). */
.gc-portal.gc-upcoming { min-height: 0; background: transparent; display: grid; gap: 10px; }
.gc-portal .gc-upcoming__more { font: 600 13px/1.4 var(--font-body); }

@media (max-width: 720px) {
	.gc-portal .gc-ecols { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	/* The month on a phone: a dot for each date in the grid, and the month's dates listed under it (decision p10_evpages 3). */
	.gc-portal .gc-emonth__day { min-height: 46px; padding: 4px; gap: 2px; grid-template-columns: repeat(auto-fill, 8px); align-content: start; }
	.gc-portal .gc-emonth__n { grid-column: 1 / -1; }
	.gc-portal .gc-emonth__entry { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--gc-etype); }
	.gc-portal .gc-emonth__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.gc-portal .gc-emonth__list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
	.gc-portal .gc-emonth__list li { --gc-etype: var(--slate-400); }
	.gc-portal .gc-emonth__item { display: grid; gap: 2px; min-height: 44px; padding: 8px 12px; border-left: 4px solid var(--gc-etype); border-top: 1px solid var(--line-soft); color: var(--text-strong); text-decoration: none; }
	.gc-portal .gc-emonth__list li:first-child .gc-emonth__item { border-top: 0; }
	.gc-portal .gc-emonth__itemday { font: 400 12.5px/1.3 var(--font-body); color: var(--slate-600); }
	.gc-portal .gc-emonth__itemname { font: 600 14px/1.3 var(--font-body); color: var(--navy-900); }
	.gc-portal .gc-emonth__weekdays span { padding: 6px 4px; text-align: center; }
	/* 45 on a phone: the type chips on one row that scrolls sideways, the switch to the other view at its end (frame 45). */
	.gc-portal .gc-ecal { grid-template-columns: minmax(0, 1fr); }
	.gc-portal .gc-ecal__bar { flex-wrap: nowrap; align-items: center; min-width: 0; }
	.gc-portal .gc-ecal__bar .gc-echips { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.gc-portal .gc-ecal__bar .gc-echips::-webkit-scrollbar { display: none; }
	.gc-portal .gc-ecal__bar .gc-echips__chip { flex: none; white-space: nowrap; }
}

/* The public pages' own document (events:public/document), the stand-in
   for M10's backing pages: the navy top bar with the club's initials and
   name and the public links. Every rule starts with .gc-portal, except the
   document's own body. On a phone the bar holds the page's name
   (decision m6_merge 2); the page's main column and title are the core's
   portal.css rules. */
body.gc-portal-doc { margin: 0; }
.gc-portal.gc-portal--doc { min-height: 100vh; }
.gc-portal .gc-ptop { background: var(--club-primary); color: var(--white); padding: 14px 28px; display: flex; align-items: center; gap: 14px; }
.gc-portal .gc-ptop__club { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; min-width: 0; }
.gc-portal .gc-ptop__mark { width: 36px; height: 36px; border-radius: 9px; background: var(--white); color: var(--club-primary); display: grid; place-items: center; font: 700 15px/1 var(--font-display); flex: none; }
.gc-portal .gc-ptop__name { font: 700 20px/1 var(--font-display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-portal .gc-ptop__nav { margin-left: auto; display: flex; gap: 22px; }
.gc-portal .gc-ptop__link { font: 600 13.5px/1 var(--font-body); color: var(--on-dark-2); text-decoration: none; }
.gc-portal .gc-ptop__link:hover, .gc-portal .gc-ptop__link.is-current { color: var(--white); }
.gc-portal .gc-ptop__page { display: none; }

@media (max-width: 720px) {
	.gc-portal .gc-ptop { background: var(--white); color: var(--text-strong); border-bottom: 1px solid var(--line); padding: 12px 14px; }
	.gc-portal .gc-ptop__club, .gc-portal .gc-ptop__nav { display: none; }
	.gc-portal .gc-ptop__page { display: block; font: 600 14px/1 var(--font-body); }
}

/* 29 in the portal (Member 1 Portal 29, phone and desktop): the rows carry no type color, as both frames draw them. */
:is(.gc-portal.gc-portal--s-events, .gc-portal .gc-portal--s-events) .gc-erow__link, :is(.gc-portal.gc-portal--s-events, .gc-portal .gc-portal--s-events) .gc-erow__link:hover { border-left: 1px solid var(--line); }

@media (max-width: 720px) {
	/* 29 on a phone: "This week" and "Later" stand on the page with each event a card of its own (no card around the list). */
	:is(.gc-portal.gc-portal--s-events, .gc-portal .gc-portal--s-events) .gc-ecal { gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; }
	:is(.gc-portal.gc-portal--s-events, .gc-portal .gc-portal--s-events) .gc-ecal__group { margin: 4px 0 0; font: 700 11.5px/1 var(--font-body); letter-spacing: .06em; color: var(--slate-600); }
	:is(.gc-portal.gc-portal--s-events, .gc-portal .gc-portal--s-events) .gc-erow__link { gap: 3px; padding: 12px; }
	:is(.gc-portal.gc-portal--s-events, .gc-portal .gc-portal--s-events) .gc-erow__name { font-weight: 600; }
	:is(.gc-portal.gc-portal--s-events, .gc-portal .gc-portal--s-events) .gc-erow__sub { font-size: 12.5px; }
}

/* The confirmation email's cancel link (decision p10_ftrequests 7): the page's two buttons side by side, as 45's. */
.gc-portal .gc-ecancel__form { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }

/* An event in the member page's pop-up (the core's portal/sheet; decision p15_wone 5): room for the event beside its
   sign-up, and the event's name once, as the pop-up's title. */
.gc-portal .gc-sheet:has(.gc-ecols) { width: min(980px, calc(100vw - 48px)); }
.gc-portal .gc-sheet #gc-portal-event .gc-epage__name { display: none; }
@media (max-width: 720px) {
	.gc-portal .gc-sheet:has(.gc-ecols) { width: 100vw; }
}
