/* Experimental community analytics, isolated from moderation and quiz styles. */
.community-overview { margin-bottom: 36px; }
.community-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin: 0 0 20px; }
.community-section-head h2, .community-period h2 { margin: 6px 0; font: 700 28px/1.15 Georgia, serif; letter-spacing: -.025em; }
.community-section-head p:not(.eyebrow), .community-period p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.community-beta { display: inline-block; padding: 5px 9px; border: 1px solid #ddc898; border-radius: 7px; background: #f7edd5; color: #73551e; font: 700 11px/1.3 "Trebuchet MS", sans-serif; letter-spacing: 0; text-transform: none; vertical-align: middle; }
.community-section-head .community-beta { margin-left: 7px; }
.community-month-form { display: flex; align-items: end; gap: 9px; }
.community-month-form label { display: grid; gap: 6px; margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.community-month-form select { width: 184px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel); font-size: 14px; text-transform: none; }
.community-month-form .button { min-height: 44px; font-size: 13px; }
.community-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.community-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.community-card:hover { border-color: #759b88; box-shadow: 0 8px 25px #1f5b4712; }
.community-card:focus-visible, .community-tabs a:focus-visible, .community-cohorts a:focus-visible, .community-history-bars a:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.community-card.is-ready { border-color: #a6c0af; background: linear-gradient(135deg, #edf5ed, #fffdf7); }
.community-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.community-number { font: 700 17px/1 Georgia, serif; color: #71897a; }
.community-status { font-size: 11px; line-height: 1.3; text-align: right; color: #68756f; }
.is-ready .community-status { color: var(--forest); }
.community-english { display: block; font-size: 11px; font-weight: 700; letter-spacing: .035em; color: var(--teal); }
.community-card h3 { margin: 0 0 14px; font: 700 24px/1.2 Georgia, serif; letter-spacing: -.02em; color: var(--forest-deep); overflow-wrap: anywhere; }
.community-card p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.community-card p.community-card-question { margin: 0 0 10px; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.4; }
.community-page .topbar > div { min-width: 0; }
.community-page .topbar h1 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.15; overflow-wrap: anywhere; }
.community-card-value { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-bottom: 24px; }
.community-card-value strong { font: 700 44px/1 Georgia, serif; color: var(--forest-deep); }
.community-card-value span { max-width: 140px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.community-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid #e0e5da; font-size: 11px; color: var(--muted); }
.community-card-foot b { color: var(--forest); }
.community-caption { margin: 13px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.community-back { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0 10px; font-size: 13px; color: var(--forest); }
.community-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.community-tabs a { min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; }
.community-tabs b, .community-tabs span { display: block; }
.community-tabs b { font-size: 14px; line-height: 1.4; color: var(--forest-deep); overflow-wrap: anywhere; }
.community-tabs span { margin-top: 7px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.community-tabs a[aria-current] { border-color: #9cbca8; background: #e3eee2; color: var(--forest-deep); }
.community-period { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin: 0 0 24px; }
.community-period .eyebrow { margin: 0; }
.community-month-controls { display: flex; align-items: end; gap: 9px; }
.community-month-arrow { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 18px; }
.community-month-arrow.is-disabled { opacity: .35; }
.community-growth-hero { display: grid; grid-template-columns: 1.05fr .55fr 1fr; align-items: center; gap: 30px; padding: 32px; border-radius: 22px; background: linear-gradient(115deg, #173f33, #245642); color: #fffdf7; }
.community-growth-hero .community-english { color: #bad7c4; }
.community-growth-hero h2 { margin: 10px 0; font: 700 34px/1.1 Georgia, serif; }
.community-growth-hero p { margin: 0; font-size: 14px; line-height: 1.6; color: #d2e2d6; }
.community-hero-period { display: block; margin-top: 20px; font-size: 11px; line-height: 1.5; color: #c1d4c7; }
.community-hero-value { text-align: center; }
.community-hero-value strong { display: block; font: 700 clamp(50px, 5vw, 78px)/1 Georgia, serif; color: #f1ce83; }
.community-hero-value > span { display: block; margin-top: 12px; color: #d2e2d6; font-size: 13px; }
.community-retention-hero .community-hero-value strong { font-size: clamp(36px, 4.5vw, 64px); white-space: nowrap; }
.community-card-value.community-retention-card { flex-wrap: wrap; }
.community-retention-card strong { font-size: 38px; white-space: nowrap; }
.community-rule { border-left: 1px solid #65806a; padding-left: 30px; }
.community-rule > b { display: block; margin-bottom: 12px; color: #f1ce83; font: 700 21px/1.2 Georgia, serif; }
.community-rule > span { font-size: 14px; line-height: 1.65; }
.community-rule small { display: block; margin-top: 12px; font-size: 12px; line-height: 1.55; color: #c1d4c7; }
.community-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 24px; }
.community-kpis article { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.community-kpis span { display: block; font-size: 13px; color: var(--muted); }
.community-kpis strong { display: block; margin: 12px 0; font: 700 35px/1 Georgia, serif; }
.community-kpis small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.community-kpis.community-retention-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.community-notice { margin: 14px 0 24px; padding: 16px 20px; color: #715622; border: 1px solid #dfcd9f; border-radius: 12px; background: #faf3e2; font-size: 14px; line-height: 1.5; }
.community-detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; margin-bottom: 24px; }
.community-detail-grid .panel h2 { font-size: 23px; }
.community-history > p, .community-quality p, .community-quality li { font-size: 13px; line-height: 1.6; color: var(--muted); }
.community-history-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding-top: 22px; }
.community-history-bars a { min-width: 0; text-align: center; padding: 10px 6px; border-radius: 10px; }
.community-history-bars a:hover, .community-history-bars .is-selected { background: #edf2e8; }
.community-history-bars strong { font: 700 20px/1 Georgia, serif; color: var(--forest); }
.community-bar-track { height: 122px; margin: 12px 0; display: flex; align-items: end; border-bottom: 1px solid #bbc9bb; }
.community-bar-track i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: #8cb09a; }
.is-selected .community-bar-track i { background: var(--forest); }
.community-history-bars a > span:last-child { font-size: 11px; color: var(--muted); white-space: nowrap; }
.community-retention-base { display: block; margin: 0 0 7px; font-size: 11px; color: var(--muted); }
.community-quality h2 { margin: 8px 0 12px; font-family: Georgia, serif; }
.community-quality ul { margin: 0; padding-left: 18px; }
.community-quality li + li { margin-top: 8px; }
.community-quality-warning { color: #896021 !important; margin-bottom: 0; }
.community-members .community-section-head { margin-bottom: 16px; }
.community-members .community-section-head h2 { font-size: 26px; }
.community-cohorts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.community-cohorts a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.community-cohorts b { font-size: 12px; }
.community-cohorts a[aria-current] { background: var(--forest); border-color: var(--forest); color: white; }
.community-table-wrap { max-width: 100%; overflow-x: auto; }
.community-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.community-table th { text-align: left; font-size: 11px; line-height: 1.5; color: var(--muted); font-weight: 700; }
.community-table th, .community-table td { padding: 14px 12px; border-bottom: 1px solid #e6e2d8; vertical-align: middle; }
.community-table th:first-child, .community-table td:first-child { padding-left: 0; }
.community-table td:first-child { max-width: 240px; overflow-wrap: anywhere; }
.community-table small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.community-table a { display: inline-block; min-height: 44px; padding: 5px 0; color: var(--forest); }
.community-member-status { display: inline-block; padding: 7px 9px; border-radius: 8px; font-size: 11px; background: #f1eee5; }
.community-member-status.entered { color: #24523c; background: #e2eedf; }
.community-member-status.kept { color: #375e69; background: #e4eef0; }
.community-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 20px; }
.community-pagination > span { font-size: 12px; color: var(--muted); }
.community-pagination > div { display: flex; gap: 8px; }
.community-pagination .button { min-height: 44px; font-size: 13px; }
.community-empty { padding: 36px 15px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; background: #faf8f1; }
.community-empty > b { font: 700 23px/1.3 Georgia, serif; }
.community-empty p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.community-placeholder { max-width: 1000px; margin: 0 auto; padding: 40px; }
.depth-hero { margin-top: 0; }
.depth-method { margin: 0 0 24px; padding: 0 24px; }
.depth-method > summary, .depth-transcript > summary { cursor: pointer; min-height: 48px; padding: 15px 0; font-weight: 700; font-size: 14px; }
.depth-method p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.depth-method > div { padding-bottom: 8px; }
.depth-results { padding: 28px; }
.depth-episodes { display: grid; gap: 12px; margin-top: 22px; }
.depth-episode { border: 1px solid var(--line); border-radius: 15px; background: #fffdf8; scroll-margin-top: 20px; }
.depth-episode[hidden] { display: none; }
.depth-episode > summary { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 18px; align-items: center; gap: 16px; padding: 22px; cursor: pointer; list-style: none; }
.depth-episode > summary::-webkit-details-marker { display: none; }
.depth-episode > summary:hover { background: #f1f5ed; border-radius: 15px; }
.depth-episode summary:focus-visible, .depth-filters a:focus-visible { outline: 3px solid #2c7462; outline-offset: 3px; }
.depth-date { color: var(--forest); font-size: 15px; font-weight: 700; }
.depth-date small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.depth-topic { min-width: 0; overflow-wrap: anywhere; }
.depth-topic > b { display: block; font-size: 16px; line-height: 1.4; }
.depth-topic > span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.depth-verdict { font-size: 11px; border-radius: 20px; padding: 7px 10px; white-space: nowrap; background: #f0eee8; color: #555e54; }
.depth-verdict.confirmed { background: #e0eee1; color: #24523c; }
.depth-verdict.uncertain { background: #f9edc9; color: #6c541b; }
.depth-chevron { color: var(--muted); font-size: 20px; }
.depth-episode[open] > summary .depth-chevron { transform: rotate(180deg); }
.depth-episode-body { border-top: 1px solid var(--line); padding: 22px; }
.depth-reason { border-left: 3px solid #91b69c; padding-left: 17px; }
.depth-reason > b { font-size: 14px; }
.depth-reason p { font-size: 14px; line-height: 1.7; margin: 8px 0; }
.depth-reason > span, .depth-legend { font-size: 12px; color: var(--muted); line-height: 1.6; }
.depth-source-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
.depth-source-actions .button { min-height: 44px; font-size: 12px; }
.depth-segment { display: grid; gap: 5px; background: #edf4ec; border-radius: 10px; padding: 14px; font-size: 13px; }
.depth-segment > span { font-size: 12px; color: var(--muted); }
.depth-transcript { border-top: 1px solid var(--line); margin-top: 20px; }
.depth-message { margin-top: 12px; padding: 16px; border: 1px solid #e3e3d8; border-radius: 12px; background: #f8f7f2; }
.depth-message.is-cm { background: #edf4ec; border-color: #c6d7c5; }
.depth-message header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 13px; overflow-wrap: anywhere; }
.depth-message header > span { color: var(--muted); font-size: 11px; }
.depth-message header > a { margin-left: auto; font-size: 11px; padding: 8px 0; color: var(--forest); }
.depth-message-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; }
.depth-reply { display: inline-block; padding: 6px 0 10px; font-size: 11px; color: var(--muted); }
.depth-media { font-size: 12px; color: var(--muted); font-style: italic; }
.depth-message footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.depth-message footer > span { padding: 4px 7px; background: #e7eade; color: #415947; border-radius: 5px; font-size: 10px; }
@media (max-width: 600px) {
    .depth-results { padding: 20px 14px; }
    .depth-episode > summary { grid-template-columns: 42px minmax(0, 1fr) 16px; gap: 10px; padding: 15px; }
    .depth-topic > b { font-size: 14px; }
    .depth-verdict { grid-column: 2; justify-self: start; }
    .depth-chevron { grid-column: 3; grid-row: 1; }
    .depth-episode-body { padding: 16px 12px; }
    .depth-message { padding: 12px; }
    .depth-message header > a { flex-basis: 100%; margin-left: 0; }
    .depth-message header > a, .depth-reply { min-height: 44px; display: inline-flex; align-items: center; }
    .depth-method { padding: 0 18px; }
    .depth-provenance .soft-badge { white-space: normal; }
}
.community-placeholder .community-english { margin-top: 25px; }
.community-placeholder h2 { margin: 8px 0 14px; font: 700 36px/1.15 Georgia, serif; }
.community-placeholder-description { max-width: 650px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.community-placeholder-value { margin: 30px 0; padding: 25px; border: 1px dashed #cdd9cb; border-radius: 14px; background: #f5f7ef; font: 700 60px/1 Georgia, serif; color: #6c8c74; text-align: center; }
.community-placeholder-value span { display: block; margin-top: 15px; color: var(--muted); font: 14px/1.5 "Trebuchet MS", sans-serif; }
.community-placeholder-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.community-placeholder-notes h3 { font-size: 15px; }
.community-placeholder-notes p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.community-placeholder > .button { margin-top: 25px; min-height: 44px; font-size: 13px; }
@media (max-width: 1300px) {
    .community-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .community-card h3 { font-size: 26px; }
    .community-card p { max-width: 350px; }
    .community-growth-hero { grid-template-columns: 1fr .55fr; }
    .community-rule { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #65806a; padding: 22px 0 0; }
    .community-rule > span br { display: none; }
    .community-detail-grid { grid-template-columns: 1fr; }
    .community-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .community-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.community-snapshot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 16px 0 22px; }
.community-snapshot p { margin: 0; color: var(--ink); font-size: 14px; }
.community-snapshot p span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.community-snapshot .button { min-height: 44px; }
@media (max-width: 600px) {
    .community-card-grid { grid-template-columns: 1fr; }
    .community-section-head h2 { font-size: 26px; }
    .community-section-head .eyebrow { line-height: 2; }
    .community-section-head .community-beta { margin-left: 0; }
    .community-card { padding: 22px; }
    .community-card-top { margin-bottom: 18px; }
    .community-month-controls { width: 100%; gap: 7px; }
    .community-month-controls .community-month-form { flex: 1; min-width: 0; flex-wrap: wrap; }
    .community-month-controls .community-month-form label, .community-month-controls .community-month-form select { width: 100%; min-width: 0; }
    .community-month-controls .community-month-form .button { width: 100%; }
    .community-month-arrow { align-self: center; }
    .community-tabs a { padding: 13px 10px; }
    .community-tabs b { font-size: 13px; }
    .community-tabs span { font-size: 11px; line-height: 1.4; }
    .community-growth-hero { padding: 23px; gap: 22px 12px; }
    .community-growth-hero h2 { font-size: 26px; }
    .community-growth-hero p { font-size: 13px; }
    .community-hero-value strong { font-size: 50px; }
    .community-kpis { gap: 9px; }
    .community-kpis article { padding: 16px; }
    .community-kpis span { font-size: 12px; line-height: 1.5; }
    .community-kpis small { font-size: 11px; }
    .community-detail-grid .panel, .community-members { padding: 20px 16px; }
    .community-history-bars { gap: 4px; }
    .community-history-bars a { padding: 10px 2px; }
    .community-history-bars a > span:last-child { font-size: 9px; }
    .community-table { min-width: 710px; }
    .community-cohorts a { flex: 1 0 45%; justify-content: space-between; font-size: 12px; padding: 8px; }
    .community-placeholder { padding: 25px 20px; }
    .community-placeholder h2 { font-size: 30px; }
    .community-placeholder-notes { grid-template-columns: 1fr; gap: 0; }
    .community-retention-hero { grid-template-columns: 1fr; }
    .community-retention-hero .community-hero-value { text-align: left; }
    .community-retention-hero .community-hero-value strong { font-size: 52px; }
    .community-kpis.community-retention-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .community-retention-kpis article:last-child { grid-column: 1 / -1; }
    .community-retention-history .community-history-bars strong { font-size: 13px; white-space: nowrap; }
    .community-retention-base { font-size: 9px; }
}
