/* Community directory
   Quiet and flat, in the Apple / Samsung manner: white page, light gray
   surfaces instead of shadows and borders, black and gray type, one accent
   used sparingly. Search, a row of category tiles, plain group titles, and
   flat cards (logo on a white square, name, what it is, links).
   The form window borrows event-submit/style.css.
   (c) HAUS XXIV, LLC · Licensed to Long Beach Pride */

.cd { --cd-surface: #F5F5F7; --cd-surface-2: #EDEDF0; --cd-ink-3: #6E6E73; }

/* Intro */
.cd .head .lead { margin-top: 18px; color: var(--cd-ink-3); }

/* Search ------------------------------------------------------------------ */
.cd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(32px, 3.4vw, 52px); }
.cd-search { position: relative; display: flex; flex: 1 1 360px; align-items: center; max-width: 560px; }
.cd-search svg { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--cd-ink-3); pointer-events: none; }
.cd-search input { width: 100%; height: 52px; padding: 0 20px 0 50px; border: 0; border-radius: 14px; background: var(--cd-surface); color: var(--ink); font: inherit; font-size: 17px; letter-spacing: -.01em; -webkit-appearance: none; appearance: none; transition: background .2s, box-shadow .2s; }
.cd-search input::placeholder { color: var(--cd-ink-3); }
.cd-search input:focus { outline: none; background: #fff; box-shadow: 0 0 0 1px rgba(12, 12, 14, .14), 0 0 0 4px rgba(0, 113, 227, .18); }
.cd-count { margin: 0; font-size: 14px; color: var(--cd-ink-3); font-variant-numeric: tabular-nums; }

/* Category dropdown (wide screens); phones use the pills and the bottom bar */
.cd-cat.lbp-sel { flex: none; min-width: 260px; }
.cd-cat.lbp-sel .lbp-dd-btn { height: 52px; border: 0; border-radius: 14px; background: var(--cd-surface); }
.cd-cat .lbp-dd-i { color: var(--ink-2); }
@media (min-width: 641px) { .cd .cd-cats { display: none; } }
@media (max-width: 640px) { .cd .cd-cat.lbp-sel { display: none; } }

/* Category tiles: icon over label, one row that scrolls ------------------- */
.cd-cats { display: flex; gap: 8px; margin: 24px 0 0; padding: 4px 0 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.cd-cats::-webkit-scrollbar { display: none; }
.cd-cat-b { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; width: 112px; min-height: 100px; padding: 18px 8px 14px; border: 0; border-radius: 16px; background: transparent; color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 500; line-height: 1.25; text-align: center; cursor: pointer; scroll-snap-align: start; transition: background .2s; }
.cd-cat-b svg { flex: none; width: 26px; height: 26px; color: var(--ink-2); stroke-width: 1.5; }
.cd-cat-b:hover { background: var(--cd-surface); }
.cd-cat-b[aria-pressed="true"] { background: var(--cd-surface); font-weight: 650; }
.cd-cat-b[aria-pressed="true"] svg { color: var(--ink); }
.cd-cat-b:focus-visible { outline: 2px solid #0071E3; outline-offset: 2px; }

/* Groups ------------------------------------------------------------------ */
.cd-group[hidden], .cd-item[hidden] { display: none; }
.cd-gh:not(#_) { margin: clamp(48px, 5vw, 80px) 0 20px; font-family: var(--sans); font-size: clamp(24px, 2vw, 30px) !important; font-weight: 650 !important; line-height: 1.15 !important; letter-spacing: -.02em; color: var(--ink); }
.cd-gh:not(#_) { display: flex; align-items: center; gap: 12px; }
.cd-gh-i { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cd-surface, #F5F5F7); color: var(--ink); }
.cd-gh-i svg { width: 22px; height: 22px; }
/* A divider between sections */
.cd-group + .cd-group, .cd-group:not([hidden]) ~ .cd-group:not([hidden]) { margin-top: clamp(40px, 4.4vw, 64px); padding-top: 4px; border-top: 1px solid rgba(12, 12, 14, .1); }
.cd-group:not([hidden]) ~ .cd-group:not([hidden]) .cd-gh:not(#_) { margin-top: clamp(32px, 3.4vw, 48px); }
.cd-gn { margin-left: 2px; font-weight: 500; color: var(--cd-ink-3); font-variant-numeric: tabular-nums; }
.cd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cd-item { min-width: 0; }
.cd-none { margin-top: 40px; color: var(--cd-ink-3); }

/* Card: flat, light gray --------------------------------------------------- */
.cd-card { display: flex; flex-direction: column; height: 100%; padding: 20px 20px 14px; border-radius: 20px; background: var(--cd-surface, #F5F5F7); transition: background .25s; }
.cd-card:hover { background: var(--cd-surface-2, #EDEDF0); }
.cd-top { display: flex; gap: 16px; align-items: center; min-width: 0; }
.cd-logo { display: grid; flex: none; place-items: center; grid-template: minmax(0, 1fr) / minmax(0, 1fr); width: 64px; height: 64px; padding: 8px; overflow: hidden; border-radius: 14px; background: #fff; }
/* Square logos and profile pictures fill the tile; wide logos need no tile */
.cd-card.is-square .cd-logo { padding: 0; }
html body .cd-card.is-square .cd-logo img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.cd-card.is-fit .cd-logo { padding: 4px; }
html body .cd-card.is-fit .cd-logo img { width: 100% !important; height: 100% !important; }
.cd-card.is-wide .cd-top { flex-direction: column; align-items: flex-start; gap: 16px; }
.cd-card.is-wide .cd-logo { width: auto; max-width: min(220px, 100%); height: 52px; padding: 0; border-radius: 0; background: none; justify-items: start; }
html body .cd-card.is-wide .cd-logo img { max-height: 52px !important; max-width: 100% !important; object-position: 0 50% !important; }
html body .cd-logo img { display: block; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; object-position: 50% 50% !important; }
.cd-ini { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--cd-ink-3, #6E6E73); }
.cd-id { min-width: 0; }
.cd-t:not(#_) { display: -webkit-box; margin: 0; overflow: hidden; font-size: 17px !important; font-weight: 600 !important; line-height: 1.25 !important; letter-spacing: -.015em; color: var(--ink); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cd-sub { display: -webkit-box; margin: 3px 0 0; overflow: hidden; font-size: 14px; line-height: 1.35; color: var(--cd-ink-3, #6E6E73); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cd-sub[hidden] { display: none; }
.cd-desc { display: -webkit-box; margin: 12px 0 0; overflow: hidden; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: break-word; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }

/* Contact lines (wide screens): address, phone, email as text */
.cd-contact { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.4; }
.cd-contact li { display: flex; gap: 9px; align-items: flex-start; min-width: 0; }
.cd-contact li[hidden] { display: none; }
.cd-contact svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--cd-ink-3, #6E6E73); }
.cd-contact a { min-width: 0; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.cd-contact a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 641px) { .cd-links li:is([data-k="address"], [data-k="phone"], [data-k="email"]) { display: none; } }

/* Category: small icon badges in the top-right corner (name on hover) */
.cd-card { position: relative; }
.cd-chips { position: absolute; top: 14px; right: 14px; display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cd-chip { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink-2); }
.cd-chip svg { width: 16px; height: 16px; }
.cd-top { padding-right: calc(var(--chips, 1) * 34px); }
.cd-card.is-wide .cd-top { padding-right: 0; }
.cd-card.is-wide .cd-logo { max-width: calc(100% - var(--chips, 1) * 34px); }

/* Links: quiet round icon buttons (website, map, phone, email, socials) */
.cd-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid rgba(12, 12, 14, .08); list-style: none; }
.cd-card > :has(+ .cd-links) { margin-bottom: 14px; }
.cd-links li[hidden] { display: none; }
.cd-links a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink-2); transition: color .2s, box-shadow .2s; }
.cd-links a:hover { color: var(--ink); box-shadow: 0 0 0 1px rgba(12, 12, 14, .12); }
.cd-links svg { width: 16px; height: 16px; }
.cd-card a:focus-visible { outline: 2px solid #0071E3; outline-offset: 2px; }

/* Show all (each group starts with a few listings) */
.cd-ghrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: clamp(48px, 5vw, 80px) 0 20px; }
.cd-ghrow .cd-gh:not(#_) { margin: 0; }
.cd-group:not([hidden]) ~ .cd-group:not([hidden]) .cd-ghrow { margin-top: clamp(32px, 3.4vw, 48px); }
.cd-group:not([hidden]) ~ .cd-group:not([hidden]) .cd-ghrow .cd-gh:not(#_) { margin-top: 0; }
.cd-more { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .2s; }
.cd-more:hover { background: #2A2A30; }
.cd-more[hidden] { display: none; }
.cd-more-n { color: rgba(255, 255, 255, .7); font-weight: 500; }
.cd-more-n:empty { display: none; }
.cd-more svg { width: 16px; height: 16px; transition: transform .25s; }
.cd-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.cd-more:focus-visible { outline: 2px solid #0071E3; outline-offset: 2px; }

/* Phones: floating search + category bar, and a category sheet */
.cd-dock { display: none; }
.cd-sheet { width: min(520px, 100%); max-width: 100%; max-height: min(80dvh, 720px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(12, 12, 14, .45); }
.cd-sheet::backdrop { background: rgba(12, 12, 14, .38); }
.cd-sheet-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; background: #fff; }
.cd-sheet-t:not(#_) { margin: 0; font-size: 20px !important; font-weight: 650 !important; letter-spacing: -.015em; }
.cd-sheet-x { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--cd-surface, #F5F5F7); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.cd-sheet-list { display: grid; gap: 2px; padding: 0 10px 14px; }
.cd-sheet-b { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 52px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.cd-sheet-b svg { width: 22px; height: 22px; color: var(--ink-2); }
.cd-sheet-b i { font-style: normal; font-size: 14px; color: var(--cd-ink-3, #6E6E73); font-variant-numeric: tabular-nums; }
.cd-sheet-b[aria-pressed="true"] { background: var(--cd-surface, #F5F5F7); font-weight: 650; }
.cd-sheet-b:focus-visible, .cd-sheet-x:focus-visible { outline: 2px solid #0071E3; outline-offset: 2px; }

/* List your organization: a quiet centered band --------------------------- */
.cd-list { display: flex; flex-direction: column; align-items: center; margin-top: clamp(64px, 7vw, 112px); padding: clamp(40px, 5vw, 72px) 24px; border-radius: 28px; background: var(--cd-surface, #F5F5F7); text-align: center; }
.cd-list-t:not(#_) { margin: 0; font-size: clamp(26px, 2.6vw, 40px) !important; font-weight: 650 !important; line-height: 1.1 !important; letter-spacing: -.025em; }
.cd-list p { max-width: 36em; margin: 14px 0 28px; font-size: 17px; line-height: 1.5; color: var(--cd-ink-3, #6E6E73); }

/* Form window preview card */
.cs-card-wrap { max-width: 360px; }
.cs-card-wrap .cd-card { pointer-events: none; background: #fff; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) { .cd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.cd { padding-bottom: 96px; }
	.cd-grid { grid-template-columns: 1fr; gap: 10px; }
	.cd-search { flex-basis: 100%; }
	.cd-search input { height: 48px; font-size: 16px; }
	.cd-bar { margin-top: 24px; }
	/* Category tiles become one row of compact pills */
	.cd-cats { gap: 8px; margin: 16px calc(var(--gut, 20px) * -1) 0; padding: 2px var(--gut, 20px) 6px; scroll-padding-inline: var(--gut, 20px); }
	.cd-cat-b { flex-direction: row; gap: 7px; width: auto; min-height: 40px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--cd-surface); font-size: 14px; white-space: nowrap; }
	.cd-cat-b svg { width: 18px; height: 18px; }
	.cd-cat-b[aria-pressed="true"] { background: var(--ink); color: #fff; }
	.cd-cat-b[aria-pressed="true"] svg { color: #fff; }
	.cd-gh:not(#_) { margin: 40px 0 14px; gap: 10px; font-size: 22px !important; }
	.cd-gh-i { width: 36px; height: 36px; border-radius: 10px; }
	.cd-gh-i svg { width: 19px; height: 19px; }
	.cd-group:not([hidden]) ~ .cd-group:not([hidden]) { margin-top: 32px; }
	.cd-group:not([hidden]) ~ .cd-group:not([hidden]) .cd-gh:not(#_) { margin-top: 28px; }
	/* Cards: compact; contact and socials as one row of icons */
	.cd-card { padding: 16px 16px 14px; border-radius: 18px; }
	.cd-top { gap: 14px; }
	.cd-logo { width: 56px; height: 56px; border-radius: 13px; }
	.cd-card.is-wide .cd-logo { height: 40px; }
	html body .cd-card.is-wide .cd-logo img { max-height: 40px !important; }
	.cd-card.is-wide .cd-top { gap: 12px; }
	.cd-t:not(#_) { font-size: 16px !important; }
	.cd-sub { font-size: 13px; }
	.cd-desc { margin-top: 10px; font-size: 14px; }
	.cd-contact { height: 0; margin-top: 0; overflow: hidden; visibility: hidden; } /* stays in place so the gap above the divider holds */
	.cd-chips { top: 12px; right: 12px; }
	.cd-chip { width: 28px; height: 28px; }
	.cd-top { padding-right: calc(var(--chips, 1) * 32px); }
	.cd-card > :has(+ .cd-links) { margin-bottom: 12px; }
	.cd-links { flex-wrap: wrap; gap: 6px 4px; padding-top: 12px; }
	.cd-card { padding: 14px 14px 12px; }
	.cd-links a { width: 36px; height: 36px; }
	.cd-links svg { width: 17px; height: 17px; }
	.cd-ghrow { margin: 40px 0 14px; gap: 10px; }
	.cd-group:not([hidden]) ~ .cd-group:not([hidden]) .cd-ghrow { margin-top: 28px; }
	.cd-more { height: 36px; padding: 0 10px 0 14px; font-size: 13.5px; }
	.cd-more .cd-more-n { display: none; }
	.cd-list { border-radius: 22px; }
	/* The floating bar */
	.cd-dock { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .97); box-shadow: 0 0 0 1px rgba(12, 12, 14, .08), 0 14px 34px -12px rgba(12, 12, 14, .4); transform: translateY(calc(100% + 24px)); transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
	.cd-dock.is-on { transform: none; }
	.cd-dock-q { position: relative; display: flex; flex: 1; align-items: center; min-width: 0; }
	.cd-dock-q svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--cd-ink-3); pointer-events: none; }
	.cd-dock-q input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 0; border-radius: 999px; background: var(--cd-surface); color: var(--ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
	.cd-dock-q input:focus { outline: 2px solid #0071E3; outline-offset: 0; background: #fff; }
	.cd-dock-cat { display: inline-flex; flex: none; align-items: center; gap: 6px; max-width: 48%; height: 44px; padding: 0 12px 0 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
	.cd-dock-cat svg { flex: none; width: 17px; height: 17px; }
	.cd-dock-i { display: grid; }
	.cd-dock-l { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.cd-dock-cat:focus-visible { outline: 2px solid #0071E3; outline-offset: 2px; }
	/* Category picker as a bottom sheet */
	.cd-sheet { width: 100%; max-height: 82dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
	.cd-sheet[open] { animation: cd-up .35s cubic-bezier(.22, 1, .36, 1); }
}
@keyframes cd-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cd-card, .cd-cat-b, .cd-search input, .cd-dock { transition: none; } .cd-sheet[open] { animation: none; } }

/* Get listed: the Share your event layout, finished quietly (flat, neutral) */
.cd-get { padding: clamp(64px, 7vw, 112px) 0 0; }
.cd-get .es-panel { background: var(--cd-surface, #F5F5F7); gap: clamp(28px, 4vw, 72px); }
.cd-get .es-intro .d-2:not(#_) { font-size: clamp(32px, 3.4vw, 52px) !important; font-weight: 650 !important; line-height: 1.08 !important; letter-spacing: -.03em; }
.cd-get .es-intro .lead { color: var(--cd-ink-3, #6E6E73); }
.cd-get .es-fine { color: var(--cd-ink-3, #6E6E73); }
.cd-get .es-fine svg { color: var(--ink-2); }
.cd-get .es-path { border-radius: 20px; background: #fff; box-shadow: none; }
.cd-get .es-path-ic, .cd-get .es-path.is-host .es-path-ic { width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px; background: var(--cd-surface, #F5F5F7); color: var(--ink); }
.cd-get .es-path-ic svg { width: 21px; height: 21px; }
.cd-get .es-path-t:not(#_) { font-size: clamp(20px, 1.6vw, 24px) !important; font-weight: 650 !important; }
.cd-get .es-path > p { margin-bottom: 28px; color: var(--cd-ink-3, #6E6E73); }
.cd-get .es-perks { gap: 0; margin: 20px 0 28px; font-size: 14.5px; font-weight: 500; }
.cd-get .es-perks li { gap: 10px; padding: 10px 0; border-top: 1px solid rgba(12, 12, 14, .08); }
.cd-get .es-perks li::before { width: 16px; height: 16px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* When the page hero carries the heading, the search sits right under it */
.cd:not(:has(.head)) { padding-top: clamp(32px, 3.4vw, 48px); }
.cd:not(:has(.head)) .cd-bar { margin-top: 0; }

/* Update a listing window: one column, searchable listing picker */
.cu-dlg .cu-body { grid-template-columns: minmax(0, 1fr); }
html body .es-dlg.cu-dlg { width: min(760px, calc(100vw - 48px)) !important; height: min(860px, calc(100dvh - 48px)); }
@media (max-width: 900px) { html body .es-dlg.cu-dlg { width: 100vw !important; height: 100dvh; } }
.cu-combo { position: relative; display: flex; align-items: center; }
.cu-combo svg { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--cd-ink-3, #6E6E73); pointer-events: none; }
.cu-dlg .cu-combo input:not(#_) { width: 100%; height: 56px; padding: 0 16px 0 44px; }
.cu-list { max-height: 280px; margin: 6px 0 0; padding: 6px; overflow-y: auto; list-style: none; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(12, 12, 14, .1), 0 16px 32px -18px rgba(12, 12, 14, .35); }
.cu-list[hidden] { display: none; }
.cu-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.cu-list li[hidden] { display: none; }
.cu-list li small { flex: none; font-size: 12.5px; color: var(--cd-ink-3, #6E6E73); }
.cu-list li:hover, .cu-list li.is-active { background: #F5F5F7; }
.cu-picked { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.cu-picked[hidden] { display: none; }
.cu-picked svg { width: 16px; height: 16px; color: #067647; }
.cu-picked a { margin-left: 4px; font-weight: 500; color: var(--cd-ink-3, #6E6E73); }
.cd-item:target .cd-card { box-shadow: 0 0 0 2px var(--ink); }

/* Add your listing (right of the search) */
.cd .cd-add { flex: none; margin-left: auto; gap: 8px; }
.cd .cd-add svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .cd .cd-add { width: 100%; justify-content: center; margin-left: 0; order: 3; } }
