/* AGOS Community (Pages/Community/*, _CommunityCard, _FollowButton): the site's teal, a feed of cards, the posting
   sheet. The landing tokens (--ag-*) come from landing.css; nothing here sets a colour the dark hero doesn't need. */

/* ---------------------------------------------------------------- the dark band at the top */
.cm-top { position: relative; padding: clamp(36px, 6vw, 64px) 0 0; background: radial-gradient(120% 140% at 0% 0%, #0E6B82 0%, var(--ag-deep) 45%, var(--ag-deepest) 100%); color: var(--ag-on-deep); }
.cm-top__wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.cm-top .ag-eyebrow { color: var(--ag-sky); }
.cm-top__title { margin: 6px 0 0; font-family: var(--ag-font-display); font-size: clamp(32px, 5vw, 54px); font-weight: 600; line-height: 1.05; color: #FFFFFF; text-wrap: balance; }
.cm-top__lead { max-width: 52ch; margin: 12px 0 0; font-size: clamp(15.5px, 1.3vw, 18px); }
.cm-top__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cm-top__acts .ag-icon { margin-right: 6px; }
.cm-top__note { color: var(--ag-on-deep); font-size: 14px; }
.cm-tabs { display: flex; gap: 4px; margin-top: 26px; overflow-x: auto; scrollbar-width: none; }
.cm-tabs::-webkit-scrollbar { display: none; }
.cm-tab { flex-shrink: 0; padding: 12px 16px 14px; border-bottom: 3px solid transparent; color: var(--ag-on-deep); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.cm-tab:hover { color: #FFFFFF; }
.cm-tab.is-on { border-bottom-color: var(--ag-sky); color: #FFFFFF; }

/* ---------------------------------------------------------------- the page */
.cm-page { background: var(--ag-tint, #EEF7F9); }
.cm-page--single { padding-top: 24px; }
.cm-layout { display: grid; grid-template-columns: minmax(0, 640px) minmax(260px, 340px); justify-content: center; gap: 28px; align-items: start; }
.cm-feed, .cm-single { display: grid; gap: 14px; min-width: 0; }
.cm-single { max-width: 680px; margin: 0 auto; }
.cm-side { position: sticky; top: calc(var(--ag-header-h, 88px) + 16px); display: grid; gap: 14px; }
@media (max-width: 980px) { .cm-layout { grid-template-columns: minmax(0, 1fr); } .cm-side { position: static; } }
.cm-card { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--ag-line); border-radius: 20px; background: #FFFFFF; box-shadow: 0 10px 30px rgba(11, 79, 94, 0.06); min-width: 0; }
.cm-card h2 { margin: 0; font-family: var(--ag-font-display); font-size: 19px; font-weight: 600; color: var(--ag-ink); }
.cm-card p { margin: 0; }
.cm-h1 { margin: 0; font-family: var(--ag-font-display); font-size: 26px; font-weight: 600; color: var(--ag-ink); }
.cm-small { margin: 0; color: var(--ag-muted); font-size: 13.5px; }
.cm-muted { margin: 0; color: var(--ag-text); }
.cm-ok { margin: 0; padding: 12px 14px; border-radius: 14px; background: #E3F6EC; color: #11694A; font-weight: 700; }
.cm-error { margin: 0; padding: 12px 14px; border-radius: 14px; background: #FDE8E8; color: #9B1C1C; font-weight: 700; }
.cm-note { margin: 0; padding: 12px 14px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--ag-line); color: var(--ag-text); }
.cm-link { padding: 0; border: 0; background: none; color: var(--ag-cyan-ink); font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.cm-link:hover { text-decoration: underline; }
.cm-center { justify-self: center; }
.cm-back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: var(--ag-cyan-ink); font-weight: 800; text-decoration: none; }
.cm-empty { display: grid; gap: 8px; justify-items: start; padding: 26px; border: 1px dashed var(--ag-arc); border-radius: 20px; background: #FFFFFF; }
.cm-empty h2 { margin: 0; font-family: var(--ag-font-display); font-size: 20px; font-weight: 600; color: var(--ag-ink); }
.cm-empty p { margin: 0; color: var(--ag-text); }
.cm-more { justify-self: center; }

/* ---------------------------------------------------------------- faces */
.cm-face { --tint: var(--ag-deep); display: inline-grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: var(--tint); color: #FFFFFF; font-weight: 800; font-size: 14px; text-decoration: none; }
.cm-face img { width: 100%; height: 100%; object-fit: cover; }
.cm-face--sm { width: 32px; height: 32px; font-size: 12px; }
.cm-face--lg { width: 72px; height: 72px; font-size: 24px; }
.cm-face--xl { width: clamp(84px, 12vw, 120px); height: clamp(84px, 12vw, 120px); font-size: clamp(28px, 4vw, 40px); border: 3px solid var(--ag-sky); }

/* ---------------------------------------------------------------- the composer line */
.cm-composer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ag-line); border-radius: 18px; background: #FFFFFF; color: var(--ag-muted); font: inherit; font-size: 15.5px; text-align: left; cursor: pointer; box-shadow: 0 10px 30px rgba(11, 79, 94, 0.06); }
.cm-composer > span:nth-child(2) { flex: 1; }
.cm-composer__go { padding: 8px 16px; border-radius: 999px; background: var(--ag-deep); color: #FFFFFF; font-weight: 800; }
.cm-composer:hover { border-color: var(--ag-arc); }

/* ---------------------------------------------------------------- a post */
.cm-post { display: grid; gap: 10px; padding: 14px 14px 10px; border: 1px solid var(--ag-line); border-radius: 20px; background: #FFFFFF; box-shadow: 0 10px 30px rgba(11, 79, 94, 0.06); min-width: 0; scroll-margin-top: calc(var(--ag-header-h, 88px) + 16px); }
.cm-post--pending { border-style: dashed; border-color: var(--ag-attn-line); }
.cm-post--hidden { opacity: 0.7; }
.cm-post__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cm-post__who { flex: 1; display: grid; min-width: 0; }
.cm-post__name { color: var(--ag-ink); font-weight: 800; text-decoration: none; }
.cm-post__name:hover { text-decoration: underline; }
.cm-post__who small { overflow: hidden; color: var(--ag-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cm-post__who small a { color: var(--ag-cyan-ink); font-weight: 700; text-decoration: none; }
.cm-flag { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.cm-flag--wait { background: var(--ag-attn-bg); color: var(--ag-attn); }
.cm-flag--hidden { background: #F1F5F9; color: #64748B; }
.cm-post__pic { position: relative; display: block; overflow: hidden; margin: 0 -14px; background: var(--ag-tint); }
.cm-post__pic { max-height: min(72vh, 560px); }
.cm-post__pic img { display: block; width: 100%; height: 100%; max-height: min(72vh, 560px); object-fit: cover; }
.cm-call { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: var(--tone, #0E6B82); color: #FFFFFF; font-size: 13px; font-weight: 800; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); }
.cm-callbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--tone, #0E6B82) 12%, #FFFFFF); color: var(--ag-ink); }
.cm-callbar b { color: color-mix(in srgb, var(--tone, #0E6B82) 80%, #0B2730); font-family: var(--ag-font-display); font-size: 20px; font-weight: 600; }
.cm-callbar span { color: var(--ag-text); font-size: 14px; }
.cm-call--good { --tone: #22A06B; } .cm-call--fair { --tone: #0E9DBE; } .cm-call--danger { --tone: #D93036; } .cm-call--choppy { --tone: #C98A00; } .cm-call--small { --tone: #6F8D95; }
.cm-post__text { margin: 0; color: var(--ag-ink); font-size: 15.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.cm-post__acts { display: flex; align-items: center; gap: 4px; margin: 0 -6px; padding-top: 4px; border-top: 1px solid var(--ag-line); }
.cm-post__acts form { margin: 0; }
.cm-act, .cm-shaka { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: var(--ag-muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.cm-act:hover, .cm-shaka:hover { background: var(--ag-tint); color: var(--ag-ink); }
.cm-shaka span { font-size: 19px; filter: grayscale(1) opacity(0.6); transition: filter 0.15s, transform 0.15s; }
.cm-shaka.is-on span { filter: none; transform: scale(1.12); }
.cm-shaka.is-on { color: var(--ag-cyan-ink); }
.cm-shaka:disabled { cursor: default; opacity: 0.6; }
.cm-shaka.is-pop span { animation: cm-pop 0.35s ease-out; }
@keyframes cm-pop { 50% { transform: scale(1.45) rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) { .cm-shaka.is-pop span { animation: none; } }
.cm-act:last-child { margin-left: auto; }

/* the "more" menu: open the post, report, delete */
.cm-menu { position: relative; flex-shrink: 0; }
.cm-menu summary { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ag-muted); cursor: pointer; list-style: none; }
.cm-menu summary::-webkit-details-marker { display: none; }
.cm-menu summary:hover, .cm-menu[open] summary { background: var(--ag-tint); color: var(--ag-ink); }
.cm-menu__list { position: absolute; right: 0; top: 40px; z-index: 5; display: grid; min-width: 230px; padding: 6px; border: 1px solid var(--ag-line); border-radius: 14px; background: #FFFFFF; box-shadow: 0 18px 40px rgba(11, 79, 94, 0.18); }
.cm-menu__list a, .cm-menu__list button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--ag-ink); font: inherit; font-size: 14.5px; text-align: left; text-decoration: none; cursor: pointer; }
.cm-menu__list a:hover, .cm-menu__list button:hover { background: var(--ag-tint); }
.cm-menu__list form { margin: 0; }
.cm-report p { margin: 4px 10px 2px; color: var(--ag-muted); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- a contest moment */
.cm-moment { border-radius: 20px; overflow: hidden; background: linear-gradient(150deg, var(--ag-deeper), var(--ag-deep)); box-shadow: 0 10px 30px rgba(11, 79, 94, 0.12); }
.cm-moment--yours { box-shadow: 0 0 0 3px var(--ag-sky), 0 10px 30px rgba(11, 79, 94, 0.18); }
.cm-moment__link { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px; color: var(--ag-on-deep); text-decoration: none; }
.cm-moment__pic { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.cm-moment__pic img { width: 100%; height: 100%; object-fit: cover; }
/* a heat's card is landscape (1200 x 630): a wide frame beside the words, or above them on a phone */
.cm-moment--wide .cm-moment__link { grid-template-columns: minmax(180px, 46%) minmax(0, 1fr); }
.cm-moment__pic--wide { aspect-ratio: 1200 / 630; }
@media (max-width: 560px) { .cm-moment--wide .cm-moment__link { grid-template-columns: minmax(0, 1fr); } }
/* a card picture that couldn't be drawn yet: a quiet wave instead of a broken image */
.cm-moment__pic.is-none { background: radial-gradient(circle at 30% 30%, rgba(127, 211, 227, 0.35), transparent 60%), linear-gradient(170deg, #0E7C96, #083E4A); }
.cm-moment__body { display: grid; gap: 4px; min-width: 0; }
.cm-moment__eyebrow { color: var(--ag-sky); font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.cm-moment__body b { color: #FFFFFF; font-family: var(--ag-font-display); font-size: clamp(17px, 2vw, 20px); font-weight: 600; line-height: 1.2; }
.cm-moment__body small { color: var(--ag-on-deep); font-size: 13.5px; }
.cm-moment__body time { color: rgba(207, 234, 240, 0.7); font-size: 12.5px; }

/* ---------------------------------------------------------------- follow */
.cm-followf { margin: 0; }
.cm-follow { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1.5px solid var(--ag-deep); border-radius: 999px; background: var(--ag-deep); color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.cm-follow:hover { background: var(--ag-deeper); }
.cm-follow.is-on { background: #FFFFFF; color: var(--ag-deep); }
.cm-follow.is-on:hover { border-color: #B42318; color: #B42318; }
.cm-follow__n:empty { display: none; }
.cm-follow__n { color: inherit; opacity: 0.75; font-weight: 700; }
.cm-follow--light { border-color: #FFFFFF; background: #FFFFFF; color: var(--ag-deep); min-height: 44px; padding: 8px 20px; font-size: 15px; }
.cm-follow--light:hover { background: var(--ag-tint); }
.cm-follow--light.is-on { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.5); }
.cm-follow-list { display: grid; gap: 2px; max-height: 420px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.cm-follow-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--ag-line); }
.cm-follow-list li:last-child { border-bottom: 0; }
.cm-follow-list a { display: grid; min-width: 0; color: var(--ag-ink); text-decoration: none; }
.cm-follow-list small { color: var(--ag-muted); font-size: 12.5px; }
.cm-side__join { background: linear-gradient(160deg, #FFFFFF, var(--ag-tint)); }
.cm-side__rules ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: var(--ag-text); font-size: 14.5px; }
.cm-side__rules a { color: var(--ag-cyan-ink); font-weight: 800; }

/* ---------------------------------------------------------------- the posting sheet */
.cm-sheet { position: fixed; inset: 0; z-index: 1000; display: grid; align-items: end; justify-items: center; }
.cm-sheet[hidden] { display: none; }
.cm-sheet__backdrop { position: absolute; inset: 0; background: rgba(6, 47, 56, 0.55); }
.cm-sheet__panel { position: relative; display: grid; gap: 14px; width: min(560px, 100%); max-height: min(92vh, 860px); overflow-y: auto; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; background: #FFFFFF; box-shadow: 0 -20px 60px rgba(6, 47, 56, 0.3); animation: cm-up 0.25s ease-out; }
@keyframes cm-up { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 760px) { .cm-sheet { align-items: center; } .cm-sheet__panel { border-radius: 24px; } }
@media (prefers-reduced-motion: reduce) { .cm-sheet__panel { animation: none; } }
.cm-sheet__head { display: flex; align-items: center; justify-content: space-between; }
.cm-sheet__head h2 { margin: 0; font-family: var(--ag-font-display); font-size: 22px; font-weight: 600; color: var(--ag-ink); outline: none; }
.cm-sheet__x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ag-tint); color: var(--ag-ink); cursor: pointer; }
.cm-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cm-field > label, .cm-field > legend { font-weight: 800; color: var(--ag-ink); font-size: 15px; }
.cm-field small, .cm-hint { color: var(--ag-muted); font-size: 13px; font-weight: 600; }
.cm-calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.cm-calls legend { margin-bottom: 6px; }
.cm-callpick { position: relative; margin: 0; cursor: pointer; }
.cm-callpick input { position: absolute; opacity: 0; pointer-events: none; }
.cm-callpick span { display: grid; gap: 1px; padding: 10px 12px; border: 1.5px solid var(--ag-line); border-radius: 14px; }
.cm-callpick b { color: color-mix(in srgb, var(--tone) 80%, #0B2730); }
.cm-callpick small { color: var(--ag-muted); font-size: 12.5px; }
.cm-callpick input:checked + span { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, #FFFFFF); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tone) 30%, transparent); }
.cm-callpick input:focus-visible + span { outline: 2px solid var(--ag-cyan); outline-offset: 2px; }
.cm-drop { display: grid; justify-items: center; gap: 2px; padding: 18px; border: 2px dashed var(--ag-line); border-radius: 16px; background: var(--ag-tint); color: var(--ag-cyan-ink); text-align: center; cursor: pointer; }
.cm-drop b { color: var(--ag-ink); }
.cm-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cm-field:focus-within .cm-drop { border-color: var(--ag-cyan); }
.cm-sheet select, .cm-sheet textarea, .cm-form input[type="text"], .cm-form input[type="search"], .cm-form select, .cm-form textarea, .cm-reply textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--ag-line); border-radius: 12px; background: #FFFFFF; color: var(--ag-ink); font: inherit; font-size: 16px; }
.cm-sheet select:focus-visible, .cm-sheet textarea:focus-visible, .cm-form input:focus-visible, .cm-form select:focus-visible, .cm-reply textarea:focus-visible { outline: 2px solid var(--ag-cyan); outline-offset: 1px; border-color: var(--ag-cyan); }

/* pills (radio or checkbox chips) */
.cm-pill { position: relative; margin: 0; cursor: pointer; }
.cm-pill input { position: absolute; opacity: 0; pointer-events: none; }
.cm-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--ag-line); border-radius: 999px; background: #FFFFFF; color: var(--ag-ink); font-size: 14.5px; font-weight: 700; }
.cm-pill input:checked + span { background: var(--ag-deep); border-color: var(--ag-deep); color: #FFFFFF; }
.cm-pill input:focus-visible + span { outline: 2px solid var(--ag-cyan); outline-offset: 2px; }

/* ---------------------------------------------------------------- forms: join, my page */
.cm-form { display: grid; gap: 12px; }
.cm-form > label { font-weight: 800; color: var(--ag-ink); font-size: 15px; margin-bottom: -6px; }
.cm-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cm-two label { display: block; margin-bottom: 6px; font-weight: 800; color: var(--ag-ink); font-size: 15px; }
@media (max-width: 560px) { .cm-two { grid-template-columns: minmax(0, 1fr); } }
.cm-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.cm-choice legend { width: 100%; margin-bottom: 8px; font-weight: 800; color: var(--ag-ink); font-size: 15px; }
.cm-check { display: flex; align-items: flex-start; gap: 10px; color: var(--ag-text); font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.cm-check input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ag-deep); }
.cm-check a { color: var(--ag-cyan-ink); font-weight: 700; }
.cm-guardian { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--ag-tint); }
.cm-js .cm-guardian:not(.is-on) { display: none; }
.cm-code { font-family: var(--ag-font-display) !important; font-size: 28px !important; letter-spacing: 0.4em; text-align: center; }
.cm-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.cm-row form { margin: 0; }
.cm-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cm-face-edit { display: flex; align-items: center; gap: 16px; }
.cm-face-edit > div { display: grid; gap: 4px; }
.cm-face-edit__preview { max-width: 120px; aspect-ratio: 1; border-radius: 50%; }
.cm-leave summary { cursor: pointer; color: #B42318; font-weight: 800; }
.cm-leave[open] summary { margin-bottom: 8px; }
.cm-danger { border-color: #B42318 !important; color: #B42318 !important; }

/* the join page: the pitch beside the card */
.cm-join { position: relative; overflow: hidden; min-height: calc(100svh - var(--ag-header-h, 88px)); padding: clamp(32px, 6vw, 72px) 0; background: radial-gradient(120% 140% at 0% 0%, #0E6B82 0%, var(--ag-deep) 45%, var(--ag-deepest) 100%); color: var(--ag-on-deep); }
.cm-join__wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: clamp(24px, 5vw, 64px); }
.cm-join .ag-eyebrow { color: var(--ag-sky); }
.cm-join h1 { margin: 6px 0 0; font-family: var(--ag-font-display); font-size: clamp(30px, 4.6vw, 52px); font-weight: 600; line-height: 1.08; color: #FFFFFF; text-wrap: balance; }
.cm-join__why { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.cm-join__why li { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--ag-sky); }
.cm-join__why b { color: #FFFFFF; font-size: 16.5px; }
.cm-join__why span { color: var(--ag-on-deep); font-size: 15px; }
.cm-join__card { gap: 14px; padding: clamp(20px, 3vw, 30px); color: var(--ag-text); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); }
.cm-join__card h2 { font-size: 24px; }
.cm-join__card .ag-social { display: grid; gap: 8px; }
.cm-join__card .ag-or { margin: 0; text-align: center; color: var(--ag-muted); font-size: 13px; }
@media (max-width: 860px) { .cm-join__wrap { grid-template-columns: minmax(0, 1fr); } .cm-join__why { display: none; } .cm-join { min-height: 0; } }
.cm-claims { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cm-claims li { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--ag-line); border-radius: 14px; }
.cm-claims b { color: var(--ag-ink); }
.cm-claims small { color: var(--ag-muted); margin-left: 6px; }
.cm-claims__pick { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- a member's page */
.cm-profile { padding: clamp(32px, 5vw, 56px) 0; background: radial-gradient(120% 140% at 0% 0%, #0E6B82 0%, var(--ag-deep) 45%, var(--ag-deepest) 100%); color: var(--ag-on-deep); }
.cm-profile__wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.cm-profile__text { display: grid; gap: 6px; min-width: 0; }
.cm-profile .ag-eyebrow { color: var(--ag-sky); }
.cm-profile h1 { margin: 0; font-family: var(--ag-font-display); font-size: clamp(28px, 4.4vw, 46px); font-weight: 600; color: #FFFFFF; line-height: 1.05; overflow-wrap: anywhere; }
.cm-profile__bits, .cm-profile__home, .cm-profile__bio { margin: 0; font-size: 15.5px; }
.cm-profile__home a { color: var(--ag-sky); font-weight: 800; }
.cm-profile__stats { display: flex; gap: 22px; margin: 8px 0 0; padding: 0; list-style: none; }
.cm-profile__stats li { display: grid; }
.cm-profile__stats b { color: #FFFFFF; font-family: var(--ag-font-display); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-profile__stats span { font-size: 13px; }
.cm-profile__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* ---------------------------------------------------------------- comments */
.cm-comments__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cm-comment { display: flex; align-items: flex-start; gap: 10px; }
.cm-comment.is-hidden { opacity: 0.6; }
.cm-comment__body { flex: 1; min-width: 0; }
.cm-comment__body p { margin: 0; color: var(--ag-ink); overflow-wrap: anywhere; }
.cm-comment__body p a { margin-right: 4px; color: var(--ag-ink); font-weight: 800; text-decoration: none; }
.cm-comment__body small { color: var(--ag-muted); font-size: 12.5px; }
.cm-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 480px) { .cm-reply { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- the rules */
.cm-rules { display: grid; gap: 14px; margin: 0; padding-left: 22px; color: var(--ag-text); font-size: 16px; line-height: 1.55; }
.cm-rules b { color: var(--ag-ink); }

/* the home page's band (Pages/Shared/_HomeSurf.cshtml) */
.cm-band { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; border-radius: 28px; background: var(--ag-deepest); color: var(--ag-on-deep); box-shadow: 0 30px 60px rgba(6, 47, 56, 0.25); }
/* the collage: one large photo and two stacked, each with its spot's name, the credits along the foot */
.cm-band__pics { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr auto; gap: 6px; min-height: 340px; padding: 6px; background: var(--ag-deepest); }
.cm-band__pics--1 { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
.cm-band__pics--2 { grid-template-rows: 1fr auto; }
.cm-band__pics figure { position: relative; margin: 0; overflow: hidden; border-radius: 20px; background: var(--ag-deep); }
.cm-band__pics--3 figure:first-child { grid-row: span 2; }
.cm-band__pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; }
.cm-band:hover .cm-band__pics img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .cm-band__pics img { transition: none; } .cm-band:hover .cm-band__pics img { transform: none; } }
.cm-band__pics figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(6, 47, 56, 0.72); color: #FFFFFF; font-size: 12px; font-weight: 800; }
.cm-band__credit { grid-column: 1 / -1; margin: 0; padding: 2px 6px 0; color: rgba(207, 234, 240, 0.6); font-size: 10.5px; line-height: 1.5; text-align: right; }
.cm-band__credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(207, 234, 240, 0.35); }

.cm-band__text { display: grid; align-content: center; gap: 14px; padding: clamp(24px, 4vw, 48px); }
.cm-band__text .ag-eyebrow { color: var(--ag-sky); margin: 0; }
.cm-band__text h2 { margin: 0; font-family: var(--ag-font-display); font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; line-height: 1.1; color: #FFFFFF; text-wrap: balance; }
.cm-band__text p { margin: 0; font-size: 16px; }
.cm-band__posts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cm-band__posts a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); color: var(--ag-on-deep); text-decoration: none; }
.cm-band__posts a:hover { background: rgba(255, 255, 255, 0.12); }
.cm-band__posts b { color: #FFFFFF; }
.cm-band__posts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cm-band .ag-actions { margin: 4px 0 0; }
@media (max-width: 860px) { .cm-band { grid-template-columns: minmax(0, 1fr); } .cm-band__pics { min-height: 260px; } }

/* a short word after an action (reported, link copied) */
.cm-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 1100; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 14px; background: var(--ag-ink); color: #FFFFFF; font-weight: 700; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.cm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* the empty lineup: the first post's invitation, and today's waves meanwhile */
.cm-empty .ag-btn { margin-top: 4px; }
.cm-empty__waves { display: grid; gap: 8px; width: 100%; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--ag-line); }
.cm-empty__label { margin: 0; color: var(--ag-muted); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.cm-empty__waves ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cm-empty__waves a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto; align-items: center; gap: 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--ag-tint); color: var(--ag-ink); text-decoration: none; }
.cm-empty__waves a:hover { background: color-mix(in srgb, var(--ag-tint) 70%, var(--ag-arc)); }
.cm-empty__waves b { grid-column: 1; }
.cm-empty__waves small { grid-column: 1; color: var(--ag-muted); font-size: 12.5px; }
.cm-empty__size { grid-column: 2; grid-row: 1 / span 2; font-family: var(--ag-font-display); font-size: 18px; font-weight: 600; }
.cm-empty__rate { grid-column: 3; grid-row: 1 / span 2; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tone, #0E6B82) 14%, #FFFFFF); color: color-mix(in srgb, var(--tone, #0E6B82) 80%, #0B2730); font-size: 12px; font-weight: 800; }
