/* Interaction layer, header account menu, committee picker, account page and footer. */

/* ---------- Touch & click feel ---------- */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, input, select, textarea, [role="option"] { touch-action: manipulation; }
button, summary, label.tgl, [role="option"], .tabbar a, .btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.btn:active { transform: none; }
.mp-link:active { transform: none; }
.tap-layer { position: fixed; inset: 0; z-index: 950; pointer-events: none; overflow: hidden; }
.tap { position: fixed; overflow: hidden; pointer-events: none; }
.tap i { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(163, 19, 79, .17), rgba(245, 154, 11, .1) 60%, transparent); }
.tap.on-dark i { background: radial-gradient(closest-side, rgba(255, 255, 255, .26), rgba(255, 255, 255, .1) 60%, transparent); }
dialog[open] ~ .tap-layer { display: none; }
@media (hover: none) {
	/* No sticky "hover" lift after a tap. */
	.member:hover, .medal:hover, .medal:hover .medal-art, .metric:hover, .mp-link:hover, .pro-card:hover, .strip-card:hover, .ticket:hover { transform: none; }
	.member:hover .m-ring { transform: none; }
}

/* ---------- Header account button + menu (desktop) ---------- */
.me-wrap { position: relative; margin-inline-start: .35rem; }
button.me { gap: .6rem; min-height: 50px; margin: 0; padding: 5px 6px 5px 14px; padding-inline: 5px .8rem; border: 1px solid var(--line); background: var(--card); box-shadow: var(--sh-1); cursor: pointer; transition: border-color .2s, box-shadow .25s var(--ease); }
button.me:hover { border-color: #cdc2db; box-shadow: var(--sh-2); }
button.me[aria-expanded="true"] { border-color: var(--plum); box-shadow: 0 0 0 4px var(--plum-t); }
.me-ava { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--saff) calc(var(--p) * .5%), var(--plum) calc(var(--p) * 1%), var(--mist-2) 0); }
.me-ava .av { width: 34px; height: 34px; overflow: hidden; box-shadow: 0 0 0 2px #fff; }
.av img, .me-ava img, .vp-av img, .pf-ava img, .tab-av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.me-t { display: flex; flex-direction: column; text-align: start; line-height: 1.25; }
.me-t b { font-size: 14px; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-t small { font-size: 11.5px; color: var(--plum); font-weight: 700; }
.me > .ic { width: 15px; height: 15px; color: var(--mut); transform: rotate(-90deg); transition: transform .3s var(--ease); }
.me[aria-expanded="true"] > .ic { transform: rotate(90deg); }
.me-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 90; width: 290px; padding: .5rem; border-radius: 24px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(20px); border: 1px solid var(--line-2); box-shadow: var(--sh-3); animation: menu-in .28s var(--ease); transform-origin: top left; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
.me-card { padding: 1rem; margin-bottom: .35rem; border-radius: 18px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, rgba(194, 29, 100, .75), transparent 65%), radial-gradient(80% 100% at 0% 100%, rgba(10, 139, 208, .55), transparent 65%), #241437; }
.me-card b { display: block; font-family: var(--f-disp); font-size: 1.15rem; }
.me-card small { font-size: 12px; opacity: .8; }
.me-card .meter { width: 100%; margin-top: .6rem; background: rgba(255, 255, 255, .2); }
.me-card .meter i { background: linear-gradient(to left, #FF5B9E, #FFC44D); }
.me-menu a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 13px; font-size: 14.5px; font-weight: 500; }
.me-menu a:hover, .me-menu a:focus-visible { background: var(--mist); }
.me-menu a .ic { width: 19px; height: 19px; color: var(--plum); }
.me-menu a.out { margin-top: .3rem; border-top: 1px solid var(--line-2); border-radius: 0 0 13px 13px; color: var(--bad); }
.me-menu a.out .ic { color: var(--bad); }
.tab-av { width: 25px; height: 25px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.5px var(--line); }
.tabbar a[aria-current="page"] .tab-av { box-shadow: 0 0 0 2px var(--plum); }
@media (max-width: 1180px) { .me-t { display: none; } button.me { padding-inline: 5px .55rem; } }
@media (max-width: 760px) { .me-wrap { display: none; } }

/* ---------- Committee picker ---------- */
.sel-ic { top: 50%; transform: translateY(-50%); }
.sel-ic i[hidden] { display: none; }
.sel.is-custom { display: block; }
.sel.is-custom > .sel-ic, .sel.is-custom > .sel-chev { display: none; }
.sel.is-custom > .cs-native { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; padding: 0 !important; }
.cs-btn { width: 100%; display: flex; align-items: center; gap: .75rem; min-height: 60px; padding: .5rem .6rem; border-radius: 18px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 15px; text-align: start; transition: border-color .2s, box-shadow .2s; }
.cs-btn > span { flex: 1; min-width: 0; }
.cs-btn > i, .cs-opt > i { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--tone-t); color: var(--tone-d); }
.cs-btn em { width: 9px; height: 9px; margin-inline-end: .7rem; border: solid var(--mut); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.cs.is-open .cs-btn { border-color: var(--plum); box-shadow: 0 0 0 4px var(--plum-t); }
.cs.is-open .cs-btn em { transform: translateY(2px) rotate(225deg); }
.cs .sel { position: relative; }
.cs-list { position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 80; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; padding: .4rem; border-radius: 22px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--sh-3); animation: menu-in .26s var(--ease); }
.cs-list.up { top: auto; bottom: calc(100% + 8px); }
.cs-title { display: none; }
.cs-opt { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .45rem .55rem; border-radius: 15px; cursor: pointer; font-weight: 500; font-size: 15px; outline: none; }
.cs-opt span { flex: 1; }
.cs-opt:hover, .cs-opt:focus { background: var(--mist); }
.cs-opt[aria-selected="true"] { background: var(--plum-t); font-weight: 700; }
.cs-opt[aria-selected="true"]::after { content: ''; width: 6px; height: 12px; margin-inline-end: .5rem; border: solid var(--plum); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.cs-back { display: none; }
@media (max-width: 640px) {
	.cs-back:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 400; background: rgba(24, 14, 38, .55); backdrop-filter: blur(4px); }
	.cs-list, .cs-list.up { position: fixed; inset: auto 0 0 0; z-index: 410; max-height: 76dvh; border-radius: 28px 28px 0 0; padding: .6rem .7rem calc(1rem + env(safe-area-inset-bottom)); animation: sheet-up .36s var(--ease); }
	.cs-list::before { content: ''; display: block; width: 44px; height: 5px; margin: .2rem auto .6rem; border-radius: 9px; background: var(--line); }
	.cs-title { display: block; padding: 0 .5rem .5rem; font-family: var(--f-disp); font-size: 1.15rem; }
	html.cs-lock { overflow: hidden; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }

/* ---------- Account: photo ---------- */
.ava-edit { position: relative; flex: none; }
.vp-av { overflow: hidden; }
.ava-edit label { position: absolute; inset-inline-end: -8px; bottom: -8px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .5); cursor: pointer; }
.ava-edit label .ic { width: 17px; height: 17px; }
.ava-edit input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ava-edit label:focus-within { outline: 2.5px solid var(--sky); }
.ava-x { position: absolute; inset-inline-start: -7px; top: -7px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 10, 32, .75); color: #fff; font-size: 15px; line-height: 1; }
.agree-links { margin: -.3rem 0 1rem; font-size: 13px; color: var(--mut); }
.agree-links a { color: var(--plum); font-weight: 700; }
.pf-ava span { overflow: hidden; }
.crop { width: min(400px, calc(100vw - 28px)); border: 0; border-radius: 28px; padding: 1.2rem; background: var(--card); color: var(--ink); box-shadow: var(--sh-3); }
.crop::backdrop { background: rgba(24, 14, 38, .65); backdrop-filter: blur(6px); }
.crop h3 { font-family: var(--f-disp); font-size: 1.3rem; text-align: center; margin-bottom: .8rem; }
.crop-stage { position: relative; width: min(100%, 52vh); margin-inline: auto; overflow: hidden; border-radius: 20px; }
.crop-stage canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; }
.crop-stage::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(255, 255, 255, .6); outline: 2px solid #fff; pointer-events: none; }
.crop label { display: flex; align-items: center; gap: .7rem; margin: .8rem 0; font-size: 13.5px; font-weight: 700; }
.crop input[type=range] { flex: 1; accent-color: var(--plum); }
.crop-act { display: flex; gap: .6rem; }
.crop-act .btn { flex: 1; justify-content: center; }

/* ---------- Account: quick menu with a gliding marker ---------- */
.acc-nav { position: relative; isolation: isolate; }
.acc-ink { position: absolute; top: 0; left: 0; z-index: -1; border-radius: 13px; background: var(--ink); box-shadow: 0 10px 22px -12px rgba(42, 27, 61, .8); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.25, .4, 1), width .45s cubic-bezier(.3, 1.25, .4, 1), height .3s, opacity .2s; pointer-events: none; }
.acc-nav.has-ink a[aria-current] { background: transparent; }
.acc-nav a { transition: color .25s, background .2s; }
@media (max-width: 1024px) {
	.acc-in { display: flex; flex-direction: column; align-items: stretch; }
	.acc-side { display: contents; }
	.acc-nav { position: sticky; top: calc(var(--hdr) + 6px); z-index: 40; order: 0; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 999px; padding: .35rem; background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); box-shadow: var(--sh-2); }
	.acc-nav a { flex: 0 0 auto; border-radius: 999px; min-height: 42px; }
	.acc-ink { border-radius: 999px; }
}

/* ---------- Footer: a board of cards on a soft tinted floor ---------- */
.sf { margin-top: 4rem; padding: clamp(1rem, 3vw, 2rem) 0 1.2rem; background: linear-gradient(to bottom, transparent, var(--mist) 38%); }
.sf-wrap { width: min(1200px, 100% - 28px); margin-inline: auto; }
.sf-board { display: grid; gap: .8rem; grid-template-columns: 1.15fr 1.35fr; grid-template-areas: "join explore" "join uni" "join help"; }
.sf-card { border-radius: 30px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(42, 27, 61, .04), 0 20px 40px -34px rgba(42, 27, 61, .35); }
.sf-join { grid-area: join; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .8rem; min-height: 380px; padding: clamp(1.3rem, 3vw, 2.2rem); border: 0; color: #fff; background: radial-gradient(90% 80% at 100% 0%, #C9216A, transparent 62%), radial-gradient(70% 70% at 0% 100%, #0B7FC2, transparent 65%), #2A1B3D; }
.sf-ring { position: absolute; z-index: -1; width: 300px; height: 300px; top: -150px; left: -120px; opacity: .45; animation: sf-turn 40s linear infinite; }
.sf-ring .arc { stroke: #fff; } .sf-ring .a1 { stroke: #FFC44D; }
@keyframes sf-turn { to { transform: rotate(360deg); } }
.sf-join h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.35; }
.sf-join p { max-width: 40ch; color: rgba(255, 255, 255, .8); font-size: 14.5px; }
.sf-next { width: 100%; display: flex; align-items: center; gap: .8rem; padding: .6rem; border-radius: 22px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px); transition: background .2s; }
.sf-next:hover { background: rgba(255, 255, 255, .2); }
.sf-date { width: 54px; height: 58px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; background: #fff; color: var(--ink); line-height: 1.2; }
.sf-date b { font-size: 1.35rem; font-weight: 800; } .sf-date small { font-size: 11px; color: var(--plum); font-weight: 700; }
.sf-next-t { flex: 1; min-width: 0; }
.sf-next-t small { display: block; font-size: 11.5px; color: #FFC44D; font-weight: 700; }
.sf-next-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.55; }
.sf-next > .ic { flex: none; width: 18px; height: 18px; margin-inline-end: .3rem; }
.sf-cta { width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px; border-radius: 20px; background: #fff; color: var(--ink); font-weight: 800; }
.sf-cta .ic { width: 19px; height: 19px; transition: translate .3s var(--ease); }
.sf-cta:hover .ic { translate: -5px 0; }
.sf-explore { grid-area: explore; padding: 1.1rem 1rem; }
.sf-explore h3 { font-size: 1.05rem; margin: 0 .3rem .6rem; }
.sf-explore ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .3rem; }
.sf-explore a { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .7rem .2rem; border-radius: 20px; font-size: 13px; font-weight: 700; transition: background .2s; }
.sf-explore a span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 19px; background: var(--tone-t); color: var(--tone-d); transition: translate .35s var(--ease), rotate .35s var(--ease); }
.sf-explore .ic { width: 25px; height: 25px; }
.sf-explore a:hover { background: var(--paper); }
@media (hover: hover) { .sf-explore a:hover span { translate: 0 -4px; rotate: -6deg; } }
.sf-uni { grid-area: uni; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; padding: .8rem 1rem; background: linear-gradient(110deg, #EAF2FF, var(--card) 60%); }
.sf-uni-head { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.sf-uni-head img { width: 44px; height: auto; }
.sf-uni-head b { display: block; font-family: var(--f-disp); font-size: 1.1rem; line-height: 1.4; }
.sf-uni-head small { display: block; color: var(--mut); font-size: 12px; }
.sf-uni-head i { width: 38px; height: 38px; display: grid; place-items: center; margin-inline-start: .4rem; border-radius: 50%; background: #17306E; color: #fff; }
.sf-uni-head i .ic { width: 18px; height: 18px; }
.sf-chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.sf-chips a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 .95rem; border-radius: 14px; background: #fff; border: 1px solid #D9E4F7; font-size: 13px; font-weight: 700; color: #17306E; }
.sf-chips a:hover { background: #17306E; color: #fff; border-color: #17306E; }
.sf-help { grid-area: help; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; padding: .5rem; }
.sf-help a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 54px; padding: 0 .4rem; border-radius: 22px; font-size: 13.5px; font-weight: 700; text-align: center; transition: background .2s, color .2s; }
.sf-help .ic { width: 19px; height: 19px; flex: none; color: var(--plum); }
.sf-help a:hover { background: var(--ink); color: #fff; } .sf-help a:hover .ic { color: #FFC44D; }
.sf-base { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "id tools" "legal legal" "copy copy"; align-items: center; gap: .9rem 1rem; padding: 1.5rem .4rem 0; }
.sf-id { grid-area: id; display: flex; align-items: center; gap: .7rem; min-width: 0; }
.sf-id img { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #fff; }
.sf-id b { display: block; font-family: var(--f-disp); font-size: 1.05rem; line-height: 1.45; }
.sf-id small { display: block; color: var(--mut); font-size: 12px; }
.sf-tools { grid-area: tools; display: flex; gap: .4rem; }
.sf-tools > * { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.sf-tools > *:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.sf-legal { grid-area: legal; display: flex; flex-wrap: wrap; gap: .1rem 1.2rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.sf-legal a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); font-size: 13px; }
.sf-legal a:hover { color: var(--plum); }
.sf-copy { grid-area: copy; color: var(--mut); font-size: 12.5px; }
.sf-copy .dev-credit { color: var(--plum); font-weight: 800; }
@media (max-width: 1000px) {
	.sf-board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "join" "explore" "uni" "help"; }
	.sf-join { min-height: 0; }
}
@media (max-width: 640px) {
	.sf { margin-top: 2.5rem; }
	.sf-wrap { width: calc(100% - 20px); }
	.sf-board { gap: .55rem; }
	.sf-card { border-radius: 24px; }
	.sf-join { gap: .65rem; padding: 1.2rem 1rem 1rem; }
	.sf-join p { font-size: 13.5px; }
	.sf-ring { width: 220px; height: 220px; top: -80px; left: -70px; }
	.sf-explore { padding: .8rem .5rem; }
	.sf-explore ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .1rem; }
	.sf-explore a { padding: .55rem .1rem; font-size: 12.5px; }
	.sf-explore a span { width: 48px; height: 48px; border-radius: 17px; }
	.sf-uni { flex-direction: column; align-items: stretch; }
	.sf-uni-head i { margin-inline-start: auto; }
	.sf-chips { margin-inline: -1rem; padding-inline: 1rem; }
	.sf-help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sf-help a { justify-content: flex-start; padding: 0 .8rem; background: var(--paper); border-radius: 18px; font-size: 13px; text-align: start; }
	.sf-base { padding-inline: .5rem; }
	.sf-tools > * { width: 42px; height: 42px; }
}
body.is-map .sf { display: none; }
@media (prefers-reduced-motion: reduce) { .sf-ring, .me-menu, .cs-list { animation: none !important; } .acc-ink { transition: none; } }

/* ---------- Phone refinements ---------- */
@media (max-width: 760px) {
	.hr-num small { font-size: 11.5px; }
	.history li { grid-template-columns: auto minmax(0, 1fr) auto; }
	.history .h-stub { grid-row: 1 / span 2; align-self: start; }
	.history li > a { grid-column: 2; grid-row: 1; }
	.history .state { grid-column: 2; grid-row: 2; }
	.history .h-hrs { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
	.url-fld { flex-wrap: nowrap; }
	.url-fld em { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; padding-inline-start: .6rem; }
	.url-fld input { flex: 1 1 8ch; width: 8ch; }
}
