/* The members' hall: art supports the update; the poll and archive remain easy to read. */
.community-page { max-width: none; margin: 0; }
.community-page .pages-state { max-width: 1120px; }
.community-page > .pages-head { align-items: baseline; gap: 16px; margin-bottom: 20px; }
.community-page > .pages-head > .dim { color: var(--text-dim); font-size: var(--t-s); }
.community-hub { display: flex; flex-direction: column; gap: 20px; }
/* The hub fills the window and ends on its own mark: the cards' art takes the height the words leave, so no empty band
   is left under the feedback (client council round 17: about 170px of bare background at 1080p). A long archive simply
   scrolls, and the art keeps its least height. */
.community-page:has(> .community-hub) { display: flex; flex-direction: column; min-height: calc(100cqh * var(--cq-fix, 1)); }
.community-page > .community-hub { flex: 1 1 auto; }
.community-poll-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* The cards share one height, and each sizes its own words: its art takes whatever height its words leave (client council
   round 18: a shared words row sized to the vote left the update's lower third empty). The update's scene stands tall
   over a short caption; the vote's art steps back over its choices. */
.community-featured { --community-feature-band: clamp(108px, calc(16 * var(--vh, 1vh)), 176px); flex: 1 1 auto; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: 1fr; gap: 0 16px; }
.community-featured-single { grid-template-columns: minmax(0, 1fr); }
.community-feature { position: relative; display: grid; grid-template-rows: minmax(var(--community-feature-band), 1fr) auto; align-items: stretch; gap: 0; min-width: 0; min-height: 0; padding: 0; overflow: hidden; overflow-wrap: anywhere; isolation: isolate; background: var(--bg-1) padding-box; transition: border-color 150ms ease, box-shadow 150ms ease; }
/* The post's own art, shown as art rather than a dark strip (council round 14), fading into the words under it. */
.community-feature-art {
  display: block; min-height: var(--community-feature-band); pointer-events: none; image-rendering: pixelated;
  background: linear-gradient(to bottom, transparent 0, transparent calc(100% - 132px), var(--scrim-strong) calc(100% - 48px), var(--bg-1) 100%),
    var(--community-feature-art) center top / cover no-repeat;
}
.community-feature-body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; margin-top: -56px; padding: 0 26px 22px; }
.community-feature-update { --community-feature-art: url('/c/38c695652582c85ca5994bd328a9f5280e92b0505a5d861212e0b08aa8d16bc4.png'); }
/* The vote is the second subject: a cool lake scene in a steel rim, so the two cards no longer repeat one gold
   architectural treatment (council round 14). A vote shown alone keeps the gold feature rim. */
.community-feature-vote { --community-feature-art: url('/c/bcdbf2b638abf3559327f3832d0045d29e919492b314aac12ebf2b4a9494e872.png'); }
.community-feature-vote:not(.feature) { border-image-source: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png'); border-image-slice: 5; border-image-width: 10px; }
.community-feature .kit-label { color: var(--text-dim); letter-spacing: .08em; }
.community-feature :is(strong, .community-feature-title) { max-width: 28ch; margin: 0; color: var(--text); font: 700 clamp(21px, calc(1.6 * var(--vw, 1vw)), 27px)/1.2 var(--font-body); text-wrap: balance; }
/* Beside the vote, the update is the hub's lead: its title is set larger over its taller scene. */
.community-featured:not(.community-featured-single) > .community-feature-update :is(strong, .community-feature-title) { max-width: 30ch; font-size: clamp(24px, calc(1.9 * var(--vw, 1vw)), 32px); }
/* A vote card's title is its link to the post: plain heading words that light and underline like the client's links. */
.community-feature-open { padding: 0; color: inherit; background: none; border: 0; font: inherit; text-align: left; text-wrap: balance; overflow-wrap: anywhere; cursor: pointer; }
.community-feature-open:is(:hover, .virtual-hover) { color: var(--you-light); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.community-feature-open:focus-visible { outline: 3px solid var(--you-light); outline-offset: 4px; }
.community-feature-body > .dim { max-width: 34ch; color: var(--text-dim); }
.community-feature-excerpt { max-width: 55ch; color: var(--text); line-height: 1.4; }
.community-feature-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 0; padding-top: 8px; color: var(--you-light); font-weight: 700; }
.community-availability { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--t-s); }
.community-feature-poll { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; max-width: 44ch; padding: 10px 0 0; border-top: 1px solid var(--line-strong); }
.community-feature-poll.community-poll-removed { display: none; }
.community-feature-question { color: var(--text); font-weight: 700; }
.community-feature-poll > .dim { color: var(--text-dim); }
/* Reserve the label, three rows of choices and the Vote row under them while the member-only detail loads. Four to six
   choices take a second column, so every poll fits the same space and the cards keep their height when it arrives:
   28px label, 3 x 40px rows with 2 x 6px gaps, 10px and the 44px Vote row. */
.community-feature-poll-detail { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; gap: 0; min-width: 0; min-height: 214px; margin: 0; }
.community-feature-poll-detail > p { margin: 0; }
.community-feature-poll-detail.community-poll-detail-removed { min-height: 0; }
.community-feature-choices-group { display: block; width: 100%; min-width: 0; }
.community-feature-choices-label { display: block; margin: 4px 0 8px; color: var(--text-dim); font: 400 var(--t-s)/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.community-feature-choices { display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px 10px; width: 100%; }
/* Each open choice is a real radio in one group: choosing selects it in place, and only Vote sends it (client council
   round 19, both judges: rings that looked like they chose an option opened the post). The native radio stays in the
   row, unseen but focusable, so the arrow keys move the choice; the row draws it as a pixel ring before its words. The
   chosen row fills its ring gold on a gold-edged row; the member's saved vote is marked "Your vote". The ring is a
   7-pixel circle drawn at twice its size, so its steps stay square. */
.community-feature-choices > label.community-feature-choice {
  --choice-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h3v1H2zM1 1h1v1H1zM5 1h1v1H5zM0 2h1v3H0zM6 2h1v3H6zM1 5h1v1H1zM5 5h1v1H5zM2 6h3v1H2z'/%3E%3C/svg%3E");
  --choice-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M2 2h3v3H2z'/%3E%3C/svg%3E");
  position: relative; display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%; min-width: 0; min-height: 40px; padding: 8px 12px;
  color: var(--text); background: rgb(6 8 18 / 55%); border: 1px solid var(--steel-line);
  font: 700 var(--t-s)/1.2 var(--font-body); text-align: left; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.community-feature-choice-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.community-feature-choice-mark { flex: none; width: 14px; height: 14px; background: var(--text-dim); mask: var(--choice-ring) 0 0 / 100% 100% no-repeat; }
.community-feature-choices > label.community-feature-choice:is(:hover, .virtual-hover) { background: var(--bg-2); border-color: var(--line-strong); }
.community-feature-choices > label.community-feature-choice:is(:hover, .virtual-hover) .community-feature-choice-mark { background: var(--text); }
.community-feature-choices > label.community-feature-choice:has(> input:focus-visible) { outline: 3px solid var(--you-light); outline-offset: 2px; }
.community-feature-choices > label.community-feature-choice:has(> input:checked) { border-color: var(--you-deep); background: var(--you-soft); }
.community-feature-choices > label.community-feature-choice:has(> input:checked) .community-feature-choice-mark { background: var(--you-light); mask: var(--choice-ring) 0 0 / 100% 100% no-repeat, var(--choice-dot) 0 0 / 100% 100% no-repeat; }
/* A closed poll's choices are its record: quiet text, no frame. */
.community-feature-choices > span.community-feature-choice { display: flex; align-items: baseline; gap: 4px 10px; min-width: 0; padding: 1px 0; color: var(--text-dim); font-size: var(--t-s); line-height: 1.15; }
.community-feature-choices > span.community-feature-choice.mine { color: var(--text); }
.community-feature-choice-text { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.community-feature-choice-mine { flex: none; color: var(--you-light); font-size: var(--t-xs); font-weight: 700; }
/* Vote under the choices in the kit's small gold, the one action on the card; until a choice is made it is the kit's
   disabled steel with its reason beside it, as Send feedback is. After a vote the line names the member's vote. The
   row keeps the button's height and the line at most two lines, so nothing moves when the line changes. */
.community-feature-ballot { display: flex; align-items: center; gap: 8px 14px; width: 100%; min-height: 44px; margin-top: 10px; }
.community-feature-ballot > .btn.community-feature-vote-button { flex: none; box-sizing: border-box; min-width: 112px; min-height: 40px; padding: 6px 18px; }
.community-feature-hint { flex: 1 1 0; min-width: 0; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  color: var(--text-dim); font-size: var(--t-s); line-height: 1.25; overflow-wrap: anywhere; }

button.community-feature:hover { box-shadow: 0 10px 24px var(--shadow); }
button.community-feature:focus-visible { outline: 3px solid var(--you-light); outline-offset: -3px; }
.community-archive { display: grid; gap: 12px; }
.community-archive-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.community-archive-head .kit-label { color: var(--text-dim); font-size: var(--t-xs); }
.community-feed-heading { margin: 5px 0 0; color: var(--text); font: 400 var(--t-l)/1.2 var(--font-head); }
.community-archive-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 12px; }
.community-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.community-filter { min-height: 40px; padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-dim); font: 700 var(--t-s)/1.2 var(--font-body); cursor: pointer; }
.community-filter:hover { color: var(--text); background: var(--face-steel-hover); }
.community-filter[aria-pressed='true'] { color: var(--you-light); border-bottom-color: var(--you-deep); }
.community-filter:focus-visible { outline: 2px solid var(--you-light); outline-offset: -2px; }
.community-include-featured { min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); background: var(--bg-1); color: var(--text-dim); font: 700 var(--t-s)/1.2 var(--font-body); cursor: pointer; }
.community-include-featured:hover { background: var(--face-steel-hover); color: var(--text); }
.community-include-featured[aria-pressed='true'] { border-color: var(--you-deep); color: var(--you-light); }
.community-include-featured:focus-visible { outline: 2px solid var(--you-light); outline-offset: -2px; }
.community-archive-empty { margin: 0; padding: 24px; background: var(--bg-1); border: 1px solid var(--steel-line); }
.community-list { gap: 6px; }
.community-item { min-height: 72px; gap: 8px 16px; padding: 14px 18px; background: var(--bg-2); transition: background 150ms ease; }
.community-item:hover { background: var(--bg-3); }
.community-item b { min-width: 0; color: var(--text); font-size: var(--t-m); overflow-wrap: anywhere; }
.community-item .kit-chip { font-size: var(--t-xs); }
.community-join { max-width: 1120px; min-height: 290px; justify-content: center; gap: 14px; background: linear-gradient(90deg, var(--scrim-strong), var(--panel) 58%, var(--scrim)), url('/c/3072840a27ef16da9a955edb99248c5ece72fc7d01b36bef9e86705405763727.png') center / cover; }
.community-join h3 { color: var(--you-light); font: 400 var(--t-xl)/1.15 var(--font-head); }
.community-join > p { max-width: 50ch; }
.community-post { max-width: 1120px; gap: 18px; padding: 32px 38px; background: var(--bg-2); }
.community-title { max-width: 34ch; color: var(--you-light); font: 400 var(--t-xl)/1.2 var(--font-head); text-wrap: balance; }
.community-post > p:not(.community-meta) { max-width: 72ch; line-height: 1.6; }
.community-media { width: 100%; object-fit: contain; }
.community-poll, .community-feedback { gap: 12px; padding: 22px; border: 1px solid var(--line-strong); background: var(--bg-1); }
.community-poll h4, .community-feedback h4 { color: var(--text); font-size: var(--t-l); }
.community-title, .community-poll h4, .community-option-label, .community-post > p, .community-outcome p { min-width: 0; overflow-wrap: anywhere; }
.community-option { min-height: 48px; border-color: var(--line-strong); background: var(--face-steel); }
.community-option:focus-visible { outline: 3px solid var(--you-light); outline-offset: -3px; }
.community-option.mine { border-color: var(--you); }
.community-outcome { border-color: var(--ally); background: var(--ally-soft); }
.community-feedback textarea { min-height: 6rem; }
.community-feedback textarea::placeholder { color: var(--text-faint); opacity: 1; }
/* The hub's feedback: one compact panel under the cards, headed with the post it goes to. It keeps its own height, so
   the update and vote stay the page's subjects and the page may end above the window's foot (council round 12). */
/* Quieter than either card (round 14): a flat steel line, no gold, and a three-line box that asks a question. */
.community-hub-feedback { padding: 16px 26px 16px; border: 1px solid var(--steel-line); background: var(--panel-flat); }
.community-hub-feedback .community-feedback { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 24px; min-width: 0; padding: 0; border: 0; background: none; }
.community-hub-feedback .community-feedback > h4 { min-width: 0; margin: 0; color: var(--text); font: 700 var(--t-m)/1.3 var(--font-body); overflow-wrap: anywhere; }
.community-hub-feedback .community-feedback > .dim { color: var(--text-dim); font-size: var(--t-s); }
.community-hub-feedback .community-feedback > textarea, .community-hub-feedback .community-feedback > .cosmetic-actions { grid-column: 1 / -1; }
.community-hub-feedback .community-feedback > textarea { height: 5.25rem; min-height: 5.25rem; max-height: 14rem; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--steel-line); background: var(--bg-2); color: var(--text); font: 400 var(--t-s)/1.45 var(--font-body); }
.community-hub-feedback .community-feedback > textarea::placeholder { color: var(--text-faint); opacity: 1; }
.community-hub-feedback .community-feedback > textarea:focus-visible { border-color: var(--you-deep); outline: 2px solid var(--you-deep); outline-offset: 0; }
.community-hub-feedback .cosmetic-actions { align-items: center; margin-top: 2px; }
.community-hub-feedback .cosmetic-actions .btn { min-height: 40px; padding: 6px 18px; font-size: var(--t-s); }
.community-hub-feedback .cosmetic-actions .btn.primary:disabled { font-size: var(--t-s); }
/* "this update" opens the post, so it reads as a link: underlined words in the body face, not gold emphasis (client
   council round 17: it looked like bold text). */
.community-hub-feedback-post { padding: 0; color: var(--text); background: none; border: 0; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: var(--trim); text-decoration-thickness: 2px; text-underline-offset: 5px; overflow-wrap: anywhere; cursor: pointer; }
.community-hub-feedback-post:is(:hover, .virtual-hover) { color: var(--you-light); text-decoration-color: var(--you-light); }
.community-hub-feedback-post:focus-visible { outline: 3px solid var(--you-light); outline-offset: 4px; }
/* The heading says "this update"; the post's full title stays in the link's name for screen readers (council round 14). */
.community-hub-feedback-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* The page ends on a closing mark under the last panel, a gold stud on a fading trim line, so the space below reads as
   the end of the page rather than missing content (council round 14: the bottom fifth looked empty). */
.community-hub:has(> .community-featured)::after {
  content: ''; flex: none; align-self: center; width: min(480px, 60%); height: 12px; margin-top: 6px; image-rendering: pixelated;
  background: linear-gradient(var(--you-deep), var(--you-deep)) center / 6px 6px no-repeat,
    linear-gradient(var(--bg-1), var(--bg-1)) center / 12px 12px no-repeat,
    linear-gradient(90deg, transparent, var(--trim-dark) 30%, var(--trim) 50%, var(--trim-dark) 70%, transparent) center / 100% 2px no-repeat;
}

/* Notifications use quiet category labels, an explicit unread marker and clear actions. */
.inbox-panel { background: #101c2a; box-shadow: 0 12px 28px #030812c9; }
.inbox-panel .inbox-header h2 { color: #f4ebd1; }
.inbox-panel .inbox-toolbar { padding: 12px 2px; }
.inbox-panel .inbox-list { display: grid; gap: 8px; padding: 0; }
.inbox-panel .inbox-item { margin: 0; gap: 10px; padding: 14px 12px; border-color: #3a5064; background: #182839; }
.inbox-panel .inbox-unread { border-left: 3px solid #e6b84e; background: #203347; }
/* The heading holds only the kind and New, which never break (client council round 12: "FRIEND / REQUEST" wrapped and
   the New square floated above its word); Mark read ends the action row instead (round 14). */
.inbox-item-meta { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; }
.inbox-kind { flex: none; white-space: nowrap; color: #b7cada; font: 700 var(--t-s)/1.2 var(--font-body); }
.inbox-new { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #ffe89a; font: 700 var(--t-s)/1.2 var(--font-body); }
.inbox-new::before { content: ''; flex: none; width: 8px; height: 8px; background: #e6b84e; }
.inbox-panel .inbox-item > span { color: #f2eee2; }
.inbox-panel .friends-actions { gap: 8px; }
.social-column .social-head { border-bottom: 1px solid #445c70; }
.social-column .social-head .kit-label { color: #d7e5ed; }
.social-column .social-chat-log { padding: 10px; background: #0d1927; border: 1px solid #3a5064; }
.social-column .social-chat-history { gap: 7px; }
.social-column .social-chat-composer { padding-top: 4px; }
@media (max-width: 1099.98px) {
  .community-hub-feedback .community-feedback { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .community-featured { grid-template-columns: 1fr; }
  .community-post { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .community-feature, .community-item { transition: none; }
  button.community-feature:hover { transform: none; }
}
/* The exact poll deadline, read out with the browsing line rather than only hovered (code review, round 12). */
.community-deadline-exact { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* The vote's question, named for screen readers when the card's title is an update's (code review, round 20). */
.community-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Phones (Tyler, 2026-11-17: "a lot of the menus are kind of squished and they're not optimized for mobile"): the vote's
   title and the feedback's "this update" are links a thumb presses, so each is at least 32px tall; upright, the panels
   give their padding back to the words. On its side the frame is zoomed (--client-scale, 0.8 at least), so 40px stays
   32px or more. */
/* The frame's art is drawn 6px wider than its border (kit.css `.ms`, `.ms.feature`), over the card's padding edge: the
   scene covered that inner rule across the top while the words' part showed it, which read as a stray second rule
   down the card's sides (mobile council round 0). On a phone the scene sits inside the whole frame, so the rule runs
   unbroken round the card (the vote's steel frame is drawn 2px wider). */
html.touch .community-feature-art { margin: 6px 6px 0; }
html.touch .community-feature-vote:not(.feature) .community-feature-art { margin: 2px 2px 0; }
@media (max-width: 600px) and (orientation: portrait) {
  html.touch .community-page > .pages-head { flex-wrap: wrap; gap: 4px 16px; }
  html.touch .community-feature-body { padding: 0 16px 16px; }
  /* The scenes step back so the vote's choices come sooner (mobile council round 2, Sol: only the first choice reached
     the screen), and the update's first action, Read update, comes sooner (round 3, Opus: the heading and the update's
     scene took a third of the screen before it): a slimmer scene and the heading closer. */
  html.touch .community-featured { --community-feature-band: 76px; }
  html.touch .community-feature-body { gap: 8px; margin-top: -34px; }
  html.touch .community-feature-open { min-height: 44px; }
  html.touch .community-hub-feedback { padding: 14px 16px; }
  html.touch .community-hub-feedback-post { display: inline-block; padding-block: 5px; }
  html.touch .community-feature-ballot { flex-wrap: wrap; }
  html.touch .community-archive-controls { justify-content: flex-start; }
  html.touch .community-item { padding: 12px 14px; }
  html.touch .community-item b { flex-basis: 100%; }
  html.touch .community-join { min-height: 0; padding: 22px 18px; }
  html.touch .community-post { gap: 14px; padding: 18px 16px; }
  html.touch .community-title { font-size: var(--t-l); }
  html.touch .community-poll, html.touch .community-feedback { padding: 16px 14px; }
}
@media (orientation: landscape) and (max-width: 1099.98px) {
  html.touch :is(.community-feature-open, .community-feature-ballot > .btn.community-feature-vote-button) { min-height: calc(44px / var(--client-scale, 1)); }
  html.touch .community-hub-feedback-post { display: inline-block; padding-block: 8px; }
}
/* Both ways round the page names itself: on a phone Community is reached from the More sheet, with no tab to say where
   you are (mobile council round 2, Opus: a lone "Lifetime member" led the page). The heading at a phone's size, with the
   membership line beside it as a small gold chip. */
@media (max-width: 600px), (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .community-page > .pages-head { flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
  html.touch .community-page > .pages-head > .pages-title { font-size: var(--t-l); letter-spacing: 2px; }
  html.touch .community-page > .pages-head > p { padding: 4px 10px; border: 1px solid var(--trim-dark); background: var(--you-soft); color: var(--you-light);
    font: 700 var(--t-xs)/1.2 var(--font-body); }
}
/* Vote before a choice is made is the gold action not yet lit, in its own colour (mobile council round 3, Opus: the
   kit's disabled steel read as a pale, different button). */
html.touch .community-feature-ballot > .btn.community-feature-vote-button:disabled { color: var(--trim); border-image-source: url('/c/a45acd7c1a0c134020cb7a0483ee926794a89be47cbfa370c0d22614286a7c77.png');
  background: linear-gradient(rgb(52 40 14), rgb(26 20 8)) padding-box; filter: saturate(.6) brightness(.78); }
