/* Community: profiles, personal progress, shared scores and a small forum. */
.community-hero{padding-top:clamp(2.6rem,6vw,4.5rem);padding-bottom:2.4rem}.community-hero h1{max-width:850px}.community-hero .lead{max-width:790px}.community-jump{display:flex;flex-wrap:wrap;gap:9px;margin-top:25px}.community-jump a{display:inline-flex;align-items:center;min-height:44px;padding:9px 17px;border:1px solid var(--line-strong);border-radius:24px;background:var(--surface-solid);font-size:.85rem;font-weight:750;text-decoration:none}.community-jump a:hover{border-color:var(--red);color:var(--red)}.community-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:28px;align-items:start;padding-bottom:80px}.community-profile{position:sticky;top:100px}.community-card{min-width:0;padding:30px;border:1px solid var(--line);border-radius:14px;background:var(--surface-solid);scroll-margin-top:100px}.community-card h2{font-size:clamp(1.55rem,3vw,2.15rem);margin-top:0}.community-card p{line-height:1.7}.community-main{display:grid;gap:28px;min-width:0}.community-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.community-section-head>.community-quiet{flex:none}.community-totals{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0 13px}.community-totals>div{padding:20px;background:var(--surface-2);border:1px solid var(--line);border-radius:10px}.community-totals strong{display:block;font-size:2.7rem;color:var(--red);line-height:1.2;font-variant-numeric:tabular-nums}.community-totals span{font-size:.84rem}.community-caption{font-size:.81rem;color:var(--muted)}.community-status-row{display:flex;justify-content:space-between;align-items:center;gap:16px}.community-status-row p{font-size:.8rem;color:var(--muted);margin:0}.community-quiet{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;background:var(--surface-2);color:var(--text);border:1px solid var(--line);border-radius:7px;font:700 .8rem var(--sans,system-ui);cursor:pointer;text-decoration:none}.community-quiet:hover{border-color:var(--red);color:var(--red)}.community-quiet:disabled{cursor:default;opacity:.55}.community-quiet[aria-pressed=true]{background:var(--red-fill);border-color:var(--red-fill);color:#fff}.community-links{display:flex;gap:20px;flex-wrap:wrap;margin-top:23px}.community-links a,.text-link{font-weight:700}.community-profile h3{margin:12px 0 5px;font-size:1.2rem}.community-profile hr{margin:24px 0;border:0;border-top:1px solid var(--line)}.community-profile p{font-size:.88rem}.community-profile .button{width:100%;margin-top:8px}.community-profile #community-profile-shortcuts{margin-top:22px;display:grid;gap:15px}.community-profile .text-link{font-size:.83rem;line-height:1.5}.community-profile #community-user>.member-avatar{margin-top:12px}
/* Public identities contain only usernames, approved bios and icons. */
.member-avatar{--avatar-size:56px;position:relative;display:inline-grid;place-items:center;width:var(--avatar-size);height:var(--avatar-size);flex:0 0 var(--avatar-size);overflow:hidden;background:color-mix(in srgb,var(--red) 10%,var(--surface-solid));border:1px solid var(--line);border-radius:23%;font-size:1.3rem;font-weight:800;color:var(--red)}.member-avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.member-avatar>img[hidden]{display:none}.member-profile-identity{display:flex;align-items:center;gap:22px;margin:12px 0 25px}.member-profile-identity h3{margin:0;font-size:1.5rem}.member-profile-identity p{margin:6px 0;overflow-wrap:anywhere}.member-progress{padding:20px;background:var(--surface-2);border:1px solid var(--line);border-radius:11px;margin:16px 0}.member-progress.is-compact{padding:14px;margin:0}.member-progress-label{display:flex;justify-content:space-between;align-items:center;gap:10px}.member-progress-label strong{font-size:1.45rem}.member-progress-label span{font-size:.9rem;font-weight:700;font-variant-numeric:tabular-nums}.member-progress small{display:block;color:var(--muted);font-size:.79rem;margin-top:6px}.member-progress progress,.achievement-card progress{display:block;width:100%;height:10px;margin-top:13px;border:0;border-radius:8px;overflow:hidden;background:var(--line);accent-color:var(--red)}.member-progress progress::-webkit-progress-bar,.achievement-card progress::-webkit-progress-bar{background:var(--line);border-radius:8px}.member-progress progress::-webkit-progress-value,.achievement-card progress::-webkit-progress-value{background:var(--red);border-radius:8px}.member-progress progress::-moz-progress-bar,.achievement-card progress::-moz-progress-bar{background:var(--red);border-radius:8px}.member-profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 22px}.member-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;margin:22px 0}.member-metrics>div{display:grid;gap:3px;padding:16px;border:1px solid var(--line);border-radius:8px}.member-metrics strong{font-size:1.45rem;font-variant-numeric:tabular-nums}.member-metrics span{font-size:.76rem;color:var(--muted)}.progression-guide{padding:15px 0;border-bottom:1px solid var(--line)}.progression-guide summary{font-weight:750;cursor:pointer}.progression-guide p{font-size:.86rem;color:var(--muted)}.member-themes,.member-achievements{padding-top:24px;margin-top:23px;border-top:1px solid var(--line)}.member-themes>h3,.member-achievements>h3{margin-top:0}.achievement-filters{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.achievement-card{position:relative;padding:21px 18px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);overflow-wrap:anywhere}.achievement-card.is-earned{border-color:color-mix(in srgb,var(--gold,#aa893b) 55%,var(--line));background:color-mix(in srgb,var(--gold,#aa893b) 7%,var(--surface-solid))}.achievement-mark{display:inline-grid;place-items:center;width:30px;height:30px;margin-bottom:9px;border-radius:50%;color:var(--red);background:var(--surface-solid);font-size:1.2rem}.achievement-card h4{font-size:.92rem;line-height:1.35;margin:0 0 7px}.achievement-card p{font-size:.8rem;line-height:1.55;margin:0 0 12px;color:var(--muted)}.achievement-card small{font-size:.72rem;font-weight:700;color:var(--muted)}.achievement-card.is-locked .achievement-mark{color:var(--muted)}.theme-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.theme-choice{display:grid;gap:7px;align-content:start;text-align:left;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--surface-2);color:var(--text);font:inherit;cursor:pointer;min-width:0}.theme-choice[aria-pressed=true]{outline:2px solid var(--red);outline-offset:1px}.theme-choice strong,.theme-choice small{padding:0 5px}.theme-choice small{font-size:.76rem;color:var(--muted)}.theme-choice:disabled{cursor:default}.theme-choice[data-locked=true] .theme-swatch{filter:saturate(.4);opacity:.6}.theme-swatch{display:block;height:78px;border-radius:6px;border:1px solid #0002;background:#f6f4ef;overflow:hidden}.theme-choice[data-preview=classic] .theme-swatch{background:radial-gradient(ellipse at 25% 45%,transparent 42%,#bd9b3c45 43%,transparent 45%),#f6f4ef}.theme-choice[data-preview=coding] .theme-swatch{background:repeating-linear-gradient(0deg,transparent 0 16px,#5afa9613 17px),linear-gradient(135deg,#071714,#102627);position:relative}.theme-choice[data-preview=coding] .theme-swatch:before{content:'> explore()  { }';position:absolute;left:14px;top:24px;color:#7ad4a7;font:14px ui-monospace,monospace}.theme-choice[data-preview=golden] .theme-swatch{background:radial-gradient(ellipse at 20% 20%,#f4dd8b 0,transparent 62%),linear-gradient(125deg,#472b0b,#9d6e21 54%,#f6d886)}.theme-choice[data-preview=blueflame] .theme-swatch{background:radial-gradient(ellipse at 20% 105%,#2dccf1 0,transparent 45%),radial-gradient(ellipse at 80% 100%,#4262dd 0,transparent 50%),linear-gradient(145deg,#07142c,#112653)}
/* Member directory. */
.member-search{display:flex;gap:10px;margin:22px 0 12px}.member-search label{flex:1;min-width:0}.community-main input,.community-main select,.community-main textarea{width:100%;font:inherit;padding:12px;background:var(--surface-2);color:var(--text);border:1px solid var(--line-strong);border-radius:7px}.community-main input:disabled{opacity:.6}.member-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.member-directory-card{display:flex;gap:13px;align-items:flex-start;padding:17px;border:1px solid var(--line);border-radius:10px;color:var(--text);text-decoration:none;background:var(--surface-2);min-width:0}.member-directory-card>div{min-width:0}.member-directory-card:hover{border-color:var(--red);box-shadow:0 4px 15px #00000008}.member-directory-card h3{font-size:.95rem;margin:1px 0 6px;overflow-wrap:anywhere}.member-directory-card p{font-size:.78rem;line-height:1.5;color:var(--muted);margin:0 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.member-directory-card small{font-size:.73rem;font-weight:700;color:var(--red)}.community-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;border-top:1px solid var(--line);padding-top:16px;font-size:.8rem}.community-pagination>a{padding:8px 0;font-weight:700;min-height:36px}.community-pagination>span{color:var(--muted)}
/* Plain-text forum with ownership controls and deliberate deletion. */
.forum-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}.forum-category-link{display:flex;flex-direction:column;gap:5px;padding:17px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);font-weight:750;font-size:.9rem;text-decoration:none}.forum-category-link small{font-size:.76rem;font-weight:400;color:var(--muted);line-height:1.5}.forum-category-link[aria-current=page]{border-color:var(--red);box-shadow:inset 3px 0 var(--red)}.forum-category-link:hover{border-color:var(--red)}.forum-thread-list>h3,.forum-open-thread>h3{font-size:1.5rem;margin:20px 0 8px;overflow-wrap:anywhere}.forum-thread-list>p{color:var(--muted);font-size:.88rem}.forum-create{border:1px solid var(--line);border-radius:9px;background:var(--surface-2);margin:22px 0}.forum-create>summary{cursor:pointer;padding:16px;font-weight:750}.forum-create[open]>summary{border-bottom:1px solid var(--line)}.forum-composer{margin:20px 0}.forum-create>.forum-composer{margin:0;padding:20px}.forum-composer fieldset{padding:0;margin:0;border:0;display:grid;gap:15px;min-width:0}.forum-composer legend{font-size:1rem;font-weight:750;margin-bottom:17px}.forum-composer label{display:grid;gap:7px;font-size:.87rem;font-weight:700}.forum-composer textarea{resize:vertical;min-height:150px;line-height:1.6}.forum-composer small{font-size:.75rem;color:var(--muted)}.forum-composer button[type=submit]{justify-self:start}.forum-form-status,#forum-action-status,#feedback-status{font-size:.86rem;line-height:1.6;overflow-wrap:anywhere}.forum-thread-preview{padding:22px 0;border-top:1px solid var(--line)}.forum-thread-preview>h4{font-size:1.07rem;line-height:1.4;margin:0 0 12px;overflow-wrap:anywhere}.forum-thread-preview>h4 a{text-decoration:none}.forum-thread-preview>h4 a:hover{text-decoration:underline}.forum-thread-preview>p{font-size:.86rem;margin:14px 0 10px;overflow-wrap:anywhere}.forum-thread-preview>small{font-size:.75rem;color:var(--muted)}.forum-author{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:.81rem}.forum-author>a{font-weight:750;text-decoration:none}.forum-author small{color:var(--muted);font-size:.74rem}.forum-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;margin:22px 0}.forum-post-actions{display:flex;gap:14px;flex-wrap:wrap;font-size:.78rem}.forum-edit,.forum-delete{max-width:100%}.forum-edit>summary,.forum-delete>summary{cursor:pointer;font-weight:700;padding:6px 0;color:var(--muted)}.forum-edit[open]{flex:1 0 100%}.forum-delete[open]{flex:1 0 100%;padding:15px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}.forum-delete[open] summary{color:var(--red)}.forum-delete>.community-quiet{margin-right:8px}.is-danger{color:var(--red)}.forum-replies{padding-top:26px;margin-top:26px;border-top:1px solid var(--line)}.forum-replies>h4{font-size:1.05rem}.forum-reply{padding:21px 0;border-bottom:1px solid var(--line)}.forum-reply:last-of-type{border-bottom:0}.forum-empty{padding:24px 0;color:var(--muted)}
/* Existing score plots and private feedback remain available. */
.community-chart{margin-top:28px;border-top:1px solid var(--line);padding-top:24px;overflow-x:auto}.community-chart svg{display:block;width:100%;min-width:500px;height:auto;overflow:visible}.community-chart svg text{fill:var(--muted);font:17px system-ui}.chart-grid{stroke:var(--line)}.chart-bar{fill:var(--red);opacity:.8}.chart-bell{fill:none;stroke:var(--text);stroke-width:2.5;stroke-dasharray:6 4}.community-chart p{font-size:.85rem;color:var(--muted)}.community-chart details{overflow-x:auto}.community-chart table{width:100%;text-align:left;font-size:.85rem}.community-chart th,.community-chart td{padding:8px;border-bottom:1px solid var(--line)}#community-feedback-fields{border:0;padding:0;display:grid;gap:16px;margin-top:20px}#community-feedback label{display:grid;gap:7px;font-size:.9rem;font-weight:700}#community-feedback textarea{resize:vertical}#community-feedback fieldset:disabled{opacity:.65}#feedback-inbox article{padding:20px 0;border-top:1px solid var(--line)}#feedback-inbox p{white-space:pre-wrap;overflow-wrap:anywhere}.community-card a:focus-visible,.community-card button:focus-visible,.community-jump a:focus-visible,.community-card input:focus-visible,.community-card select:focus-visible,.community-card textarea:focus-visible,.community-card summary:focus-visible{outline:3px solid var(--gold,#b08a3c);outline-offset:3px}
@media(max-width:1080px){.community-layout{grid-template-columns:230px minmax(0,1fr);gap:20px}.community-card{padding:24px}.member-directory{grid-template-columns:1fr}.community-profile .member-progress-label{align-items:flex-start;flex-direction:column;gap:3px}}
@media(max-width:850px){.community-layout{grid-template-columns:1fr}.community-profile{position:static}.community-profile #community-user{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:17px;align-items:center}.community-profile #community-user>.member-avatar{grid-column:1;grid-row:1/3;margin:0}.community-profile #community-user>h3,.community-profile #community-user>p{grid-column:2;margin:3px 0}.community-profile #community-profile-shortcuts{grid-template-columns:minmax(0,1fr) auto;align-items:center}.community-profile .member-progress-label{flex-direction:row}.community-profile>hr,.community-profile>p.community-caption,.community-profile>a:last-child{display:none}.member-directory{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.community-hero{padding-top:2.1rem}.community-hero h1{font-size:2.3rem}.community-jump{gap:6px}.community-jump a{padding:8px 12px;font-size:.76rem}.community-card{padding:21px 17px}.community-section-head{flex-direction:column;gap:3px}.community-section-head>.community-quiet{align-self:flex-start}.community-totals{gap:10px}.community-totals>div{padding:16px 13px}.community-totals strong{font-size:2.3rem}.community-totals span{font-size:.72rem}.community-status-row{align-items:flex-start;flex-direction:column;gap:10px}.community-links{gap:12px}.community-profile #community-profile-shortcuts{grid-template-columns:1fr}.member-profile-identity{gap:14px;align-items:flex-start}.member-profile-identity h3{font-size:1.2rem}.member-profile-identity .member-avatar{--avatar-size:64px!important}.member-progress{padding:15px}.member-progress-label strong{font-size:1.3rem}.member-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.member-metrics>div{padding:13px}.member-search{align-items:stretch;flex-direction:column}.member-search>button{align-self:flex-start}.member-directory{grid-template-columns:1fr}.achievement-grid{grid-template-columns:1fr}.achievement-card{padding:18px}.theme-choice-grid{gap:9px}.theme-swatch{height:64px}.theme-choice strong{font-size:.86rem}.theme-choice small{font-size:.71rem}.forum-categories{grid-template-columns:1fr}.forum-category-link{padding:13px 15px}.forum-composer button[type=submit]{width:100%}.forum-author small{flex-basis:100%;margin-left:45px}.forum-author .member-avatar{flex-basis:36px}.forum-create>.forum-composer{padding:16px}.community-pagination{gap:7px;font-size:.76rem}.community-profile .member-progress-label{flex-direction:row}}
@media(prefers-reduced-motion:reduce){.community-card,.community-card *{scroll-behavior:auto!important}}

.progression-breakdown{width:100%;border-collapse:collapse;margin:18px 0;font-size:.84rem}.progression-breakdown caption{text-align:left;font-weight:700;padding:0 0 9px}.progression-breakdown th,.progression-breakdown td{padding:10px 9px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere}.progression-breakdown th:last-child,.progression-breakdown td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}

/* Focused Community views keep a single task in reach. */
.community-hero { padding-block: 32px 25px; }
.community-hero .eyebrow { margin-bottom: 9px; }
.community-hero h1 { margin: 0 0 10px; font-size: clamp(2.15rem, 4vw, 3.15rem); line-height: 1.12; }
.community-hero .lead { margin-bottom: 0; max-width: 690px; font-size: 1.05rem; }
.community-navigation-wrap {
  position: sticky;
  top: 68px;
  z-index: 45;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.community-jump { flex-wrap: nowrap; gap: 5px; margin-block: 0; padding-block: 9px; overflow-x: auto; scrollbar-width: thin; }
.community-jump a { gap: 8px; flex: 0 0 auto; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: .86rem; line-height: 1.25; }
.community-jump a > span[aria-hidden] { font-size: 1.15rem; line-height: 1; }
.community-jump a:hover { background: var(--surface-solid); border-color: var(--line); color: var(--text); }
.community-jump a[aria-current="page"] { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.community-layout { padding-top: 26px; grid-template-columns: 245px minmax(0, 1fr); gap: 24px; }
.community-profile { top: 154px; padding: 24px; }
.community-profile h2 { font-size: 1.35rem; margin-bottom: 18px; }
.community-profile #community-user > .member-avatar { margin-top: 0; }
.community-profile #community-user > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.community-profile .community-caption { font-size: .8rem; }
.community-profile .community-privacy-link { color: var(--muted); font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.community-main { gap: 22px; min-height: 470px; }
.community-card { scroll-margin-top: 155px; }
.community-card h2 { font-size: clamp(1.5rem, 2.5vw, 1.95rem); line-height: 1.25; margin-bottom: 14px; }
.community-card > .eyebrow { margin-bottom: 10px; }
.community-card .community-section-head { margin-bottom: 14px; }
.community-section-head .eyebrow { margin-bottom: 9px; }
.community-section-head h2 { margin-bottom: 0; }
.community-caption { line-height: 1.55; font-size: .83rem; }
.community-card [role="status"]:empty { display: none; }
.community-card [role="status"] { font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
.community-card [aria-busy="true"] { cursor: progress; }
.community-quiet { min-height: 42px; font-family: var(--font); font-size: .8rem; }
.community-quiet:disabled { opacity: .65; }
.community-quiet[aria-pressed="true"]:hover { color: #fff; }
.community-start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-block: 25px 30px; }
.community-start-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); text-decoration: none; }
.community-start-card > span[aria-hidden] { grid-column: 1; grid-row: 1 / 4; color: var(--red); font-size: 1.5rem; line-height: 1.25; }
.community-start-card > strong { grid-column: 2; font-size: .94rem; line-height: 1.4; }
.community-start-card > small { grid-column: 2; font-size: .8rem; line-height: 1.6; color: var(--muted); }
.community-start-card .community-start-action { grid-column: 2; margin-top: 10px; color: var(--red); font-size: .77rem; font-weight: 750; }
.community-start-card:hover { border-color: var(--red); background: color-mix(in srgb, var(--surface-solid) 70%, var(--surface-2)); }
.community-start-card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.community-overview-divider { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 27px; }
.community-overview-divider .eyebrow { margin: 0 0 8px; }
.community-overview-divider h3 { margin: 0; font-size: 1.15rem; }
.community-overview-divider > button { flex: none; }
.community-totals { margin-top: 22px; }
.community-totals > div { padding: 18px; }
.community-totals strong { font-size: 2.35rem; }
.community-totals span { display: block; margin-top: 6px; color: var(--muted); line-height: 1.5; }
.community-links { gap: 12px 20px; padding-top: 17px; border-top: 1px solid var(--line); font-size: .83rem; }
.community-links a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.community-status-row p { line-height: 1.55; }
.member-directory-card { border-radius: 10px; padding: 18px; }
.member-directory-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.member-directory-card p { font-size: .81rem; }
.member-directory-card small { display: inline-block; font-size: .75rem; }
.community-pagination button, .community-pagination a { min-height: 42px; }
.community-empty, .community-state, .profile-empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.community-state a, .community-empty a { color: var(--red); font-weight: 700; }
.community-card [data-state="error"], .community-card [role="alert"] { padding: 12px 15px; border-left: 3px solid var(--danger); background: color-mix(in srgb, var(--danger) 7%, var(--surface-solid)); color: var(--text); border-radius: 0 6px 6px 0; }

/* Profile sections make achievements and appearance available without a long wall of cards. */
.profile-workspace { min-width: 0; }
.profile-tabs { display: flex; gap: 5px; padding: 7px; margin-block: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); overflow-x: auto; scrollbar-width: thin; }
.profile-tab { flex: 0 0 auto; border: 1px solid transparent; border-radius: 7px; padding: 10px 15px; min-height: 44px; background: transparent; color: var(--muted); font: 750 .84rem var(--font); cursor: pointer; }
.profile-tab:hover { color: var(--text); background: var(--surface-solid); }
.profile-tab[aria-selected="true"] { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.profile-panel { min-width: 0; scroll-margin-top: 160px; }
.profile-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px 15px; margin-block: 8px 17px; }
.profile-section-heading h3, h3.profile-section-heading { margin-top: 0; font-size: 1.12rem; line-height: 1.4; }
.profile-section-heading p { margin: 0; font-size: .83rem; color: var(--muted); }
.profile-next-goals { display: grid; gap: 12px; margin: 18px 0 25px; }
.profile-goal { padding: 19px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; min-width: 0; overflow-wrap: anywhere; }
.profile-goal h4 { margin: 0 0 7px; font-size: .94rem; line-height: 1.4; }
.profile-goal p { font-size: .83rem; color: var(--muted); margin: 0 0 12px; }
.profile-goal small { display: block; margin-top: 8px; color: var(--muted); font-size: .76rem; }
.profile-goal a { display: inline-flex; align-items: center; min-height: 40px; margin-top: 9px; color: var(--red); font-size: .81rem; font-weight: 750; }
.profile-goal a:hover { text-decoration: underline; }
.profile-goal progress { display: block; width: 100%; height: 9px; border: 0; border-radius: 8px; overflow: hidden; background: var(--line); accent-color: var(--red); }
.profile-goal progress::-webkit-progress-bar { background: var(--line); border-radius: 8px; }
.profile-goal progress::-webkit-progress-value { background: var(--red); border-radius: 8px; }
.profile-goal progress::-moz-progress-bar { background: var(--red); border-radius: 8px; }
.profile-badge-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 23px; padding: 0; list-style: none; }
.profile-badge-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 7px; background: color-mix(in srgb, var(--gold) 8%, var(--surface-solid)); padding: 9px 12px; font-size: .78rem; font-weight: 650; line-height: 1.4; }
.achievement-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(145px, .55fr); gap: 12px; align-items: end; margin-block: 20px 14px; }
.achievement-toolbar label { display: grid; gap: 6px; font-size: .8rem; font-weight: 700; min-width: 0; }
.achievement-filter-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 14px; }
.achievement-result-count { color: var(--muted); font-size: .83rem; margin-block: 15px; }
.member-achievements, .member-themes { margin-top: 0; padding-top: 0; border-top: 0; }
.achievement-card { padding: 19px; }
.achievement-card h4 { font-size: .95rem; }
.achievement-card p { font-size: .83rem; }
.profile-appearance-status:not(:empty) { padding: 12px 15px; background: var(--surface-2); border-left: 3px solid var(--red); border-radius: 0 6px 6px 0; }
.profile-theme-unlock { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.compact-profile-meta { color: var(--muted); font-size: .8rem; line-height: 1.5; margin-block: 9px; }
.compact-profile-next { color: var(--red); font-size: .8rem; line-height: 1.55; font-weight: 700; }
.member-profile-identity { margin-top: 10px; margin-bottom: 22px; }
.member-metrics { margin-block: 0 22px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.member-metrics > div { padding: 15px; background: var(--surface-solid); }
.progression-guide { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 0; }
.progression-guide summary { min-height: 42px; padding-top: 7px; }
.progression-breakdown { font-size: .83rem; }

/* Discussions retain large text targets and concise category navigation. */
.forum-categories { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-block: 23px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.forum-category-link { padding: 13px; border-radius: 8px; font-size: .83rem; line-height: 1.4; }
.forum-category-link small { font-size: .74rem; }
.forum-category-link[aria-current="page"] { background: color-mix(in srgb, var(--red) 6%, var(--surface-solid)); }
.forum-thread-preview { margin-top: 13px; padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-solid); }
.forum-thread-preview:hover { border-color: var(--line-strong); }
.forum-thread-preview h4 { font-size: 1rem; }
.forum-thread-preview > p { color: var(--muted); font-size: .85rem; }
.forum-author small { line-height: 1.5; }
.forum-create { margin-top: 20px; }
.forum-create > summary { min-height: 48px; }
.forum-open-thread > h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.3; }
.forum-post-actions > details > summary { min-height: 42px; padding-block: 10px; }
.forum-reply { padding: 22px 0; }
.forum-composer label { font-size: .85rem; }
.forum-form-status, #feedback-status { margin-bottom: 0; }
.forum-draft-note { color: var(--muted); font-size: .78rem; line-height: 1.55; margin-block: 7px 0; }
.forum-character-count { display: block; color: var(--muted); font-size: .75rem; line-height: 1.5; text-align: right; font-variant-numeric: tabular-nums; margin-top: 5px; }
.forum-composer-actions, .forum-read-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.forum-read-actions { justify-content: space-between; margin-block: 15px 20px; }
.forum-result-note { color: var(--muted); font-size: .83rem; line-height: 1.6; margin-block: 10px 20px; }
.community-card :is(a, button, input, select, textarea, summary):focus-visible, .community-jump a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 1080px) {
  .community-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .community-profile { padding: 21px; }
  .community-card { padding: 24px; }
  .profile-summary-grid { grid-template-columns: 1fr; }
  .community-start-card { padding: 16px; }
}
@media (max-width: 850px) {
  .community-layout { grid-template-columns: 1fr; }
  .community-profile { position: static; padding: 22px; }
  .community-profile > .eyebrow, .community-profile > h2 { display: none; }
  .community-profile #community-user > p { -webkit-line-clamp: 2; }
  .community-profile #community-profile-shortcuts { grid-template-columns: minmax(0, 1fr) auto; }
  .community-profile .button { width: auto; min-height: 42px; padding-block: 9px; margin-top: 16px; }
  .community-card { scroll-margin-top: 150px; }
  .profile-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .community-hero { padding-block: 25px 22px; }
  .community-hero h1 { font-size: 2.2rem; }
  .community-hero .lead { font-size: .95rem; }
  .community-navigation-wrap { top: 68px; }
  .community-jump { gap: 3px; padding-block: 8px; }
  .community-jump a { padding: 10px 12px; min-height: 44px; font-size: .8rem; }
  .community-layout { padding-top: 18px; gap: 18px; padding-bottom: 50px; }
  .community-card { padding: 21px 18px; border-radius: 11px; }
  .community-profile { padding: 18px; }
  .community-profile #community-profile-shortcuts { grid-template-columns: 1fr; gap: 12px; margin-top: 15px; }
  .community-start-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .community-start-card { gap: 4px 12px; padding: 16px; }
  .community-start-card .community-start-action { margin-top: 6px; }
  .community-overview-divider { flex-direction: column; align-items: flex-start; gap: 14px; }
  .community-totals { gap: 10px; margin-top: 18px; }
  .community-totals > div { padding: 15px 12px; }
  .community-totals strong { font-size: 2rem; }
  .community-totals span { font-size: .77rem; }
  .community-links { gap: 13px; flex-direction: column; }
  .community-links a { min-height: 36px; display: inline-flex; align-items: center; }
  .profile-tabs { padding: 5px; margin-block: 20px; }
  .profile-tab { padding-inline: 13px; font-size: .8rem; }
  .profile-summary-grid { grid-template-columns: 1fr; }
  .profile-goal { padding: 17px; }
  .member-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .achievement-toolbar { grid-template-columns: 1fr; }
  .achievement-grid { grid-template-columns: 1fr; }
  .achievement-filter-bar > button { flex: 1 0 auto; }
  .profile-badge-chip { font-size: .76rem; padding: 8px 10px; }
  .theme-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forum-categories { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 15px; }
  .forum-category-link { flex: 0 0 155px; min-height: 90px; padding: 12px; }
  .forum-category-link small { font-size: .73rem; }
  .forum-thread-preview { padding: 17px 14px; }
  .forum-author { gap: 8px; }
  .forum-message { font-size: .93rem; }
}

/* The mobile account card is a compact companion to the persistent profile link. */
@media (max-width: 850px) {
  .community-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 14px;
    padding: 16px 18px;
  }
  .community-profile #community-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .community-profile #community-user > .member-avatar { --avatar-size: 40px !important; margin: 0; }
  .community-profile #community-user > h3 { min-width: 0; margin: 0; font-size: .98rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .community-profile #community-user > h3 + p { display: none; }
  .community-profile > #community-account-link { justify-self: end; margin: 0; min-height: 38px; padding: 8px 11px; font-size: .76rem; line-height: 1.3; }
  .community-profile #community-profile-shortcuts { grid-column: 1 / -1; display: block; margin: 0; }
  .community-profile #community-profile-shortcuts:empty { display: none; }
  .community-profile .compact-profile-meta,
  .community-profile .compact-profile-next,
  .community-profile .compact-profile-progress > .text-link,
  .community-profile .member-progress > small { display: none; }
  .community-profile .member-progress { padding: 10px 12px; margin: 0; }
  .community-profile .member-progress-label { flex-direction: row; align-items: center; gap: 10px; }
  .community-profile .member-progress-label strong { font-size: 1rem; }
  .community-profile .member-progress-label span { font-size: .78rem; }
  .community-profile .member-progress progress { height: 7px; margin-top: 8px; }
  .community-profile:has(#community-user > p:only-child) { grid-template-columns: 1fr; }
  .community-profile #community-user > p:only-child { margin: 0; font-size: .84rem; line-height: 1.6; }
  .community-profile:has(#community-user > p:only-child) > #community-account-link { justify-self: start; }
}

/* Community search and discussions: consistent controls, visible context. */
.member-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(145px, .5fr) auto; gap: 12px; align-items: end; }
.member-search label { display: grid; gap: 6px; min-width: 0; font-size: .8rem; font-weight: 700; }
.member-search input, .member-search select { width: 100%; min-height: 46px; }
.member-search > .community-quiet { justify-self: start; }
.forum-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .6fr) auto; gap: 12px; align-items: end; margin-block: 22px; }
.forum-search label { display: grid; min-width: 0; gap: 6px; font-size: .8rem; font-weight: 700; }
.forum-search :is(input, select) { width: 100%; min-height: 46px; }
.forum-search > a { justify-self: start; }
.forum-category-count { display: block; color: var(--muted); font-size: .72rem; font-weight: 650; margin-top: 9px; }
.forum-thread-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: .76rem; }
.forum-thread-meta strong { padding: 5px 9px; border-radius: 20px; background: var(--surface-2); color: var(--text); font-size: .74rem; }
.forum-permalink { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; }
.forum-reply { scroll-margin-top: 165px; }
.forum-reply.is-linked-reply { padding-inline: 18px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 10%, var(--surface-solid)); outline: 2px solid color-mix(in srgb, var(--gold) 60%, var(--line)); }
.forum-reply:focus { outline: 2px solid var(--gold); outline-offset: 4px; }
.community-layout { padding-bottom: 90px; }
@media (max-width: 700px) {
  .member-search, .forum-search { grid-template-columns: minmax(0, 1fr) minmax(130px, .8fr); }
  .member-search > button, .forum-search > button { grid-column: 1 / -1; width: 100%; }
  .member-search > .community-quiet { grid-column: auto; width: auto; }
}
@media (max-width: 540px) {
  .community-jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; overflow: visible; padding-block: 8px; }
  .community-jump a { justify-content: center; min-width: 0; min-height: 40px; padding: 8px 5px; font-size: .76rem; }
  .community-jump a span { display: none; }
  .community-card, .forum-reply, .profile-panel { scroll-margin-top: 185px; }
  .forum-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .member-search, .forum-search { grid-template-columns: 1fr; }
  .member-search > button, .forum-search > button { grid-column: auto; }
  .forum-search label, .member-search label { font-size: .8rem; }
  .forum-thread-preview { padding: 16px; }
}

.forum-thread-list > h3, .forum-open-thread > h3 { scroll-margin-top: 165px; }
@media (max-width: 540px) { .forum-thread-list > h3, .forum-open-thread > h3 { scroll-margin-top: 185px; } }

.community-forum[data-discussion-open="true"] .forum-introduction { display: none; }

/* Private goals and focused discussion state. */
.community-overview-goals { margin-block: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.community-overview-goals[hidden] { display: none; }
.community-goals-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.community-goals-heading h3 { margin: 0; font-size: 1.1rem; }
.community-goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.community-goal-card { display: grid; gap: 12px; min-width: 0; padding: 16px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.community-goal-card strong { font-size: .88rem; line-height: 1.5; }
.community-goal-card small { color: var(--muted); font-size: .73rem; }
.community-goal-card progress { width: 100%; height: 8px; accent-color: var(--red); }
.community-goal-card:hover { border-color: var(--red); }
.forum-view-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 18px; }
.forum-view-filters a { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; }
.forum-view-filters a[aria-current="page"] { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.forum-thread-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.forum-thread-badges:empty { display: none; }
.forum-status-badge { display: inline-flex; align-items: center; border: 1px solid var(--line); padding: 4px 9px; border-radius: 20px; font-size: .72rem; font-weight: 750; }
.forum-status-badge.is-resolved { color: var(--red); background: color-mix(in srgb, var(--red) 7%, var(--surface-solid)); }
.forum-status-badge.is-closed { color: var(--muted); background: var(--surface-2); }
.forum-lifecycle { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding-block: 15px; border-block: 1px solid var(--line); margin-block: 18px; }
.forum-lifecycle > p { flex-basis: 100%; margin: 0; }
.forum-lifecycle > p:empty { display: none; }
.forum-locked-notice { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.forum-locked-notice h4 { margin: 0 0 9px; }
.forum-locked-notice p { color: var(--muted); font-size: .85rem; }
.forum-locked-notice summary { min-height: 44px; padding-block: 12px; cursor: pointer; }
.forum-locked-notice textarea { display: block; width: 100%; margin-block: 12px; }
@media (max-width: 540px) {
  .community-overview-goals { padding: 16px; }
  .community-goal-grid { grid-template-columns: 1fr; }
  .forum-view-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forum-view-filters a { justify-content: center; padding: 9px 6px; font-size: .76rem; }
  .forum-lifecycle > button { width: 100%; min-height: 44px; }
}

.forum-retained-draft { flex-basis: 100%; width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 12px 16px; }
.forum-retained-draft summary { cursor: pointer; min-height: 40px; padding-block: 9px; font-size: .85rem; font-weight: 700; }
.forum-retained-draft :is(input, textarea) { display: block; width: 100%; margin-block: 12px; }
.forum-retained-draft p { font-size: .8rem; color: var(--muted); }

/* A single discussion list can be narrowed without losing its place. */
.forum-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-block: 20px; padding-bottom: 17px; }
.forum-category-link { min-height: 0; padding: 12px; }
.forum-category-count { margin-top: 5px; font-size: .68rem; font-weight: 500; }
.forum-view-filters a { gap: 8px; justify-content: space-between; }
.forum-filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; padding: 2px 6px; border-radius: 20px; background: var(--surface-2); color: var(--text); font-size: .72rem; font-variant-numeric: tabular-nums; }
.forum-view-filters a[aria-current="page"] .forum-filter-count { background: rgb(255 255 255 / .18); color: inherit; }
.forum-category-tag { display: inline-flex; align-items: center; min-height: 32px; margin-bottom: 6px; color: var(--red); font-size: .76rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.forum-open-thread > .forum-category-tag { margin-top: 6px; }
.forum-open-thread > h3 { margin-top: 8px; }
.forum-thread-list > h3 + p { max-width: 65ch; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.forum-thread-list .forum-result-note { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.forum-thread-preview .forum-thread-meta { margin-top: 12px; }
@media (max-width: 540px) {
  .forum-category-link { padding: 10px 8px; font-size: .74rem; }
  .forum-category-count { font-size: .65rem; line-height: 1.5; }
  .forum-view-filters a { font-size: .74rem; gap: 5px; padding-inline: 9px; }
  .forum-filter-count { min-width: 20px; padding-inline: 5px; }
}

/* A classic message board: square panels, shaded headings and compact rows. */
body.community-classic { --board-head: #496c8f; --board-line: #a9b9c8; --board-panel: #fff; --board-pale: #e9eff5; --board-alt: #f4f7fa; --board-link: #244e78; }
html[data-theme="dark"] body.community-classic { --board-head: #294766; --board-line: #465c72; --board-panel: #172332; --board-pale: #203348; --board-alt: #1c2a3b; --board-link: #a6ccef; }
.community-classic [hidden] { display: none !important; }
.community-classic .community-hero { padding-block: 28px 22px; }
.community-classic .community-hero h1 { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.035em; margin-block: 7px 12px; }
.community-classic .community-hero .lead { font-size: .96rem; }
.community-classic .community-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; padding-top: 20px; font-family: Tahoma, Verdana, Arial, sans-serif; font-size: .86rem; }
.community-classic .community-main { gap: 18px; }
.community-classic .community-card { padding: 19px; border: 1px solid var(--board-line); border-radius: 0; background: var(--board-panel); box-shadow: 2px 2px 0 color-mix(in srgb, var(--board-line) 22%, transparent); }
.community-classic .community-card h2 { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 1.4rem; letter-spacing: -.025em; }
.community-classic .community-profile { padding: 16px; top: 132px; }
.community-classic .community-profile .member-progress-label strong { font-size: 1.1rem; white-space: nowrap; }
.community-classic .community-profile .member-progress-label span { font-size: .74rem; white-space: nowrap; }
.community-classic .community-profile h3 { font-size: 1.06rem; }
.community-classic .community-profile p { font-size: .8rem; }
.community-classic .community-navigation-wrap { background: var(--board-panel); border-block: 1px solid var(--board-line); }
.community-classic .community-jump { gap: 3px; padding-block: 7px; }
.community-classic .community-jump a { border: 1px solid var(--board-line); border-radius: 0; min-height: 37px; padding: 8px 15px; font: 700 .8rem Tahoma, Verdana, Arial, sans-serif; background: linear-gradient(var(--board-panel), var(--board-pale)); }
.community-classic .community-jump a[aria-current="page"] { color: #fff; border-color: var(--board-head); background: var(--board-head); }
.community-classic :is(.community-quiet, .button, .member-directory-card, .community-start-card, .community-totals > div, .community-overview-goals, .community-goal-card, .forum-category-link, .forum-status-badge, .forum-view-filters a, .forum-filter-count, .forum-create, .forum-locked-notice, .forum-retained-draft, .community-empty) { border-radius: 0; }
.community-classic :is(.community-quiet, .button) { font-family: Tahoma, Verdana, Arial, sans-serif; min-height: 35px; padding: 8px 12px; box-shadow: inset 1px 1px 0 rgb(255 255 255 / .18); }
.community-classic .button-primary { background: var(--board-head); border-color: var(--board-head); color: #fff; }
.community-classic .community-main :is(input, select, textarea) { border-radius: 0; padding: 10px; border-color: var(--board-line); background: var(--board-panel); }
.community-classic .community-card p { line-height: 1.65; }
.community-classic .community-start-grid { gap: 9px; }
.community-classic .community-start-card { padding: 15px; background: var(--board-alt); border-color: var(--board-line); }
.community-classic .community-start-card:hover { transform: none; }
.community-classic .member-directory-card { background: var(--board-alt); padding: 14px; border-color: var(--board-line); }
.community-classic .community-overview-goals { background: var(--board-pale); }
.community-classic .community-totals > div { background: var(--board-alt); }
.community-classic .community-forum { padding: 16px; }
.community-classic .community-forum > .community-section-head { margin: -16px -16px 18px; padding: 12px 15px; color: #fff; background: linear-gradient(color-mix(in srgb, var(--board-head) 85%, white), var(--board-head)); border-bottom: 1px solid var(--board-line); align-items: center; }
.community-classic .community-forum > .community-section-head h2 { margin: 0; color: #fff; font-size: 1.25rem; }
.community-classic .community-forum > .community-section-head .eyebrow { color: #e4edf5; letter-spacing: .08em; font-size: .66rem; margin-bottom: 5px; }
.community-classic .community-forum > .community-section-head button { background: rgb(255 255 255 / .12); color: #fff; border-color: #b8cbdd; font-size: .74rem; }
.community-classic .forum-introduction { margin-block: 10px; font-size: .82rem; }
.community-classic .forum-welcome { margin-bottom: 12px; border-bottom: 1px solid var(--board-line); }
.community-classic .forum-welcome > summary { min-height: 34px; padding-block: 8px; color: var(--board-link); font-size: .75rem; font-weight: 700; cursor: pointer; }
.community-classic .community-forum[data-discussion-open="true"] .forum-welcome { display: none; }
.community-classic .forum-categories { border: 1px solid var(--board-line); gap: 1px; padding: 0; background: var(--board-line); margin-block: 17px; }
.community-classic .forum-category-link { background: var(--board-pale); border: 0; padding: 11px; font-size: .8rem; color: var(--board-link); }
.community-classic .forum-category-link[aria-current="page"] { background: var(--board-panel); box-shadow: inset 3px 0 var(--board-head); }
.community-classic .forum-category-count { font-size: .66rem; }
.community-classic .forum-thread-list > h3, .community-classic .forum-open-thread > h3 { margin: 19px 0 10px; padding: 10px 12px; border: 1px solid var(--board-line); background: var(--board-pale); font-size: 1.05rem; line-height: 1.5; }
.community-classic .forum-thread-list > h3 + p { font-size: .8rem; }
.community-classic .forum-view-filters { margin-block: 13px; gap: 5px; }
.community-classic .forum-view-filters a { min-height: 34px; padding: 7px 10px; font-size: .75rem; }
.community-classic .forum-view-filters a[aria-current="page"] { background: var(--board-head); border-color: var(--board-head); }
.community-classic .forum-filter-count { font-size: .66rem; padding: 1px 4px; min-width: 20px; }
.community-classic .forum-search { margin-block: 15px; gap: 9px; }
.community-classic .forum-search :is(input, select) { min-height: 37px; }
.community-classic .forum-create { border: 1px solid var(--board-line); background: var(--board-alt); margin-block: 14px; padding: 0 13px; }
.community-classic .forum-create > summary { min-height: 41px; padding-block: 12px; font-size: .83rem; font-weight: 700; cursor: pointer; }
.community-classic .forum-result-note { margin-block: 13px; font-size: .73rem; }
.forum-table-wrap { width: 100%; min-width: 0; overflow-x: auto; }
.community-classic .forum-topic-table { width: 100%; border-collapse: collapse; table-layout: fixed; border: 1px solid var(--board-line); font-size: .79rem; }
.forum-topic-table > caption { text-align: left; font-size: .72rem; padding-bottom: 8px; color: var(--muted); }
.community-classic .forum-topic-table th { text-align: left; padding: 9px; background: var(--board-head); color: #fff; font-size: .73rem; border: 1px solid var(--board-line); }
.community-classic .forum-topic-table td { padding: 11px 10px; background: var(--board-panel); border: 1px solid var(--board-line); vertical-align: top; overflow-wrap: anywhere; }
.community-classic .forum-topic-table tr:nth-child(even) td { background: var(--board-alt); }
.forum-topic-title { width: auto; }
.forum-topic-author { width: 20%; }
.forum-topic-count { width: 70px; text-align: center !important; }
.forum-topic-latest { width: 22%; }
.community-classic .forum-topic-table .forum-thread-preview { margin: 0; border: 0; border-radius: 0; padding: 0; }
.community-classic .forum-topic-table h4 { margin: 3px 0 7px; font-size: .88rem; line-height: 1.5; }
.community-classic .forum-topic-table h4 a { color: var(--board-link); text-decoration: underline; text-underline-offset: 2px; }
.forum-topic-table td > small { display: block; font-size: .66rem; line-height: 1.6; color: var(--muted); margin-top: 5px; }
.forum-topic-summary { margin: 7px 0 0; font-size: .72rem !important; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.community-classic .forum-topic-table .forum-category-tag { min-height: 22px; font-size: .65rem; margin: 0; }
.community-classic .forum-status-badge { padding: 2px 5px; font-size: .64rem; }
.forum-topic-mobilemeta { display: none; }
.forum-topic-latest > a { display: inline-block; margin-top: 8px; font-size: .69rem; }
.community-classic .forum-post { border: 1px solid var(--board-line); margin-block: 16px; padding: 0; border-radius: 0; overflow: hidden; }
.forum-post-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 12px; border-bottom: 1px solid var(--board-line); background: var(--board-pale); font-size: .72rem; }
.forum-post-header > small { color: var(--muted); font-size: .68rem; }
.forum-post-header .forum-permalink { margin-left: auto; min-height: 26px; font-size: .66rem; }
.forum-post-grid { display: grid; grid-template-columns: 125px minmax(0, 1fr); }
.forum-post-member { min-width: 0; padding: 15px 10px; background: var(--board-alt); border-right: 1px solid var(--board-line); display: flex; align-items: center; flex-direction: column; gap: 10px; overflow-wrap: anywhere; text-align: center; font-size: .8rem; font-weight: 700; }
.forum-post-member .member-avatar { border-radius: 0; }
.forum-post-member .forum-member-profile { font-size: .65rem; font-weight: 400; }
.forum-post-body { min-width: 0; padding: 17px 15px 12px; }
.community-classic .forum-message { margin: 0 0 17px; font: .85rem/1.7 Tahoma, Verdana, Arial, sans-serif; overflow-wrap: anywhere; }
.forum-rich-message { white-space: pre-wrap; }
.forum-rich-message blockquote { margin: 12px 0; padding: 12px 14px; background: var(--board-alt); border: 1px solid var(--board-line); border-left: 4px solid var(--board-head); font-size: .82rem; }
.forum-rich-message cite { display: block; font-style: normal; font-weight: 700; margin-bottom: 8px; font-size: .74rem; }
.forum-rich-message pre { margin: 12px 0; padding: 14px; max-width: 100%; overflow: auto; white-space: pre; border: 1px solid var(--board-line); background: var(--board-alt); font: .77rem/1.7 Consolas, monospace; }
.forum-rich-message :is(ul, ol) { padding-left: 25px; margin-block: 10px; }
.forum-rich-message a { color: var(--board-link); text-decoration: underline; }
.forum-rich-message hr { border: 0; border-top: 1px solid var(--board-line); margin-block: 15px; }
.forum-post-actions { border-top: 1px dotted var(--board-line); padding-top: 9px; align-items: flex-start; }
.community-classic .forum-post-actions > details > summary { min-height: 35px; padding: 8px; cursor: pointer; border: 1px solid var(--board-line); background: var(--board-alt); font-size: .73rem; }
.forum-post-actions > details[open] { flex: 1 0 100%; min-width: 0; }
.forum-post-actions .forum-quote { margin-left: auto; }
.community-classic .forum-composer { margin-block: 13px; }
.community-classic .forum-composer fieldset { min-width: 0; padding: 0; border: 0; }
.community-classic .forum-composer legend { display: block; width: 100%; margin-bottom: 12px; font-size: .87rem; font-weight: 700; }
.community-classic .forum-composer label { font-size: .77rem; margin-bottom: 9px; }
.forum-editor { min-width: 0; border: 1px solid var(--board-line); background: var(--board-panel); margin-block: 5px 10px; }
.forum-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 6px; background: var(--board-pale); border-bottom: 1px solid var(--board-line); }
.forum-editor-toolbar button, .forum-editor-link button, .forum-editor-file button { min-height: 31px; padding: 5px 9px; border: 1px solid var(--board-line); background: linear-gradient(var(--board-panel), var(--board-pale)); color: var(--text); font: 700 .72rem Tahoma, Verdana, Arial, sans-serif; border-radius: 0; cursor: pointer; }
.forum-editor-toolbar button:hover, .forum-editor-toolbar button[aria-pressed="true"] { background: var(--board-head); color: #fff; }
.forum-editor-toolbar button[data-format="b"] { font-weight: 900; }
.forum-editor-toolbar button[data-format="i"] { font-style: italic; }
.forum-editor-toolbar button[data-format="u"] { text-decoration: underline; }
.forum-editor-toolbar button[data-format="s"] { text-decoration: line-through; }
.community-classic .forum-editor > textarea { display: block; width: 100%; border: 0; min-height: 180px; padding: 13px; font: .84rem/1.65 Tahoma, Verdana, Arial, sans-serif; resize: vertical; }
.forum-editor-link { display: flex; flex-wrap: wrap; gap: 7px; padding: 9px; border-bottom: 1px solid var(--board-line); }
.community-classic .forum-editor-link > input { flex: 1 1 200px; width: auto; min-width: 0; padding: 7px; }
.forum-editor-help { display: block; border-top: 1px solid var(--board-line); padding: 8px 10px; font-size: .66rem; line-height: 1.6; color: var(--muted); }
.forum-editor-status { font-size: .73rem; margin: 0; padding: 0 10px; }
.forum-editor-status:not(:empty) { padding-block: 9px; }
.forum-editor-files:empty { display: none; }
.forum-editor-file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--board-line); background: var(--board-alt); }
.forum-editor-file > span { flex: 1 1 170px; min-width: 0; overflow-wrap: anywhere; font-size: .71rem; }
.forum-editor-preview { padding: 14px; border-top: 3px double var(--board-line); }
.forum-editor-preview:before { content: 'POST PREVIEW'; display: block; margin-bottom: 12px; font-size: .66rem; font-weight: 700; color: var(--muted); }
.forum-attachment { margin: 15px 0; padding: 9px; border: 1px solid var(--board-line); background: var(--board-alt); max-width: 100%; white-space: normal; }
.forum-attachment :is(img, video) { display: block; max-width: 100%; max-height: 500px; height: auto; object-fit: contain; background: #14202b; }
.forum-attachment video { width: 100%; max-width: 640px; min-height: 180px; }
.forum-attachment audio { display: block; width: 100%; max-width: 480px; }
.forum-attachment figcaption { margin-top: 8px; overflow-wrap: anywhere; font-size: .7rem; line-height: 1.6; color: var(--muted); }
.forum-editor[data-drag-over="true"] { outline: 3px solid var(--board-head); outline-offset: 2px; }
@media (max-width: 850px) {
  .community-classic .community-layout { grid-template-columns: 1fr; }
  .community-classic .community-profile { padding: 13px 16px; }
  .community-classic .community-card { scroll-margin-top: 150px; }
}
@media (max-width: 700px) {
  .forum-topic-table .forum-topic-author, .forum-topic-table .forum-topic-latest { display: none; }
  .forum-topic-mobilemeta { display: block; margin-top: 9px; font-size: .65rem; color: var(--muted); }
  .forum-topic-mobilemeta a { font-weight: 700; }
  .forum-post-grid { grid-template-columns: 95px minmax(0, 1fr); }
  .forum-post-member { font-size: .74rem; }
  .forum-post-body { padding: 13px 11px; }
}
@media (max-width: 540px) {
  .community-classic .community-hero { padding-block: 22px 18px; }
  .community-classic .community-jump a { padding: 8px 4px; min-height: 38px; font-size: .72rem; }
  .community-classic .community-layout { font-size: .82rem; }
  .community-classic .community-card { padding: 14px; }
  .community-classic .community-forum { padding: 12px; }
  .community-classic .community-forum > .community-section-head { margin: -12px -12px 15px; padding: 11px 12px; gap: 7px; }
  .community-classic .community-forum > .community-section-head h2 { font-size: 1.08rem; }
  .community-classic .community-forum > .community-section-head button { padding: 7px; font-size: .68rem; }
  .community-classic .forum-category-link { padding: 9px 7px; font-size: .72rem; }
  .community-classic .forum-category-count { font-size: .62rem; }
  .community-classic .forum-view-filters a { padding: 8px 6px; font-size: .7rem; }
  .community-classic .forum-topic-table td { padding: 10px 8px; }
  .community-classic .forum-topic-table h4 { font-size: .83rem; }
  .forum-topic-count { width: 54px; }
  .community-classic .forum-post { overflow: visible; }
  .forum-post-grid { grid-template-columns: 1fr; }
  .forum-post-member { flex-direction: row; gap: 8px; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--board-line); padding: 9px 11px; text-align: left; }
  .forum-post-member .member-avatar { --avatar-size: 32px !important; font-size: 1rem; }
  .forum-post-member .forum-member-profile { margin-left: auto; }
  .forum-post-header { padding: 8px 10px; gap: 5px 10px; }
  .forum-post-header .forum-permalink { margin-left: 0; }
  .forum-editor-toolbar button { min-height: 37px; padding-inline: 9px; }
  .community-classic .forum-composer-actions .button { min-height: 41px; }
  .community-classic .forum-thread-list > h3, .community-classic .forum-open-thread > h3 { font-size: .97rem; }
}

/* The resource subforum is the final full-width row of the category board. */
.community-classic .forum-categories>.forum-resources-entrance{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 18px;align-items:center;padding:14px 16px;min-height:76px;background:linear-gradient(var(--board-pale),var(--board-alt));color:var(--board-link);border-top:1px solid var(--board-line);text-decoration:none}
.forum-resources-entrance>strong{font-size:.94rem}.forum-resources-scope{font-size:.73rem;font-weight:700}.forum-resources-description{grid-column:1/-1;display:block;font-size:.72rem;font-weight:400;color:var(--muted)}
.community-classic .forum-categories>.forum-resources-entrance:hover{background:var(--board-panel);box-shadow:inset 3px 0 var(--board-head)}.forum-resources-entrance:focus-visible{outline:3px solid var(--board-head);outline-offset:-3px}
@media(max-width:540px){.community-classic .forum-categories>.forum-resources-entrance{grid-template-columns:1fr;gap:5px;padding:12px}.forum-resources-scope{font-size:.68rem}.forum-resources-description{font-size:.69rem;line-height:1.5}}

.profile-resource-trust{border:1px solid var(--line);padding:16px;margin:16px 0;background:var(--surface-2);min-width:0}.profile-resource-trust h4{margin:0 0 8px;font-size:.9rem}.profile-resource-trust strong{font-size:.95rem;overflow-wrap:anywhere}.profile-resource-trust p{margin:8px 0}.profile-resource-trust.is-compact{padding:12px;font-size:.76rem}.profile-resource-trust.is-compact h4{font-size:.78rem}.profile-resource-trust.is-compact strong{font-size:.78rem}
