/* Akvaryum Topluluğu · shared orange/blue palette. Presentation only. */
:root{--community-ink:#17335b;--community-muted:#53677f;--community-blue:#1d63c4;--community-blue-deep:#113f82;--community-blue-soft:#eaf3ff;--community-orange:#ff8b32;--community-orange-ink:#472207;--community-orange-deep:#9a4314;--community-orange-soft:#fff0df;--community-border:#d6e4f5;--community-bg:#f3f8ff;--v4-ink:var(--community-ink);--v4-muted:var(--community-muted);--v4-teal:var(--community-blue);--v4-border:var(--community-border);--v4-bg:var(--community-bg)}
body.community-v4,body.teacher-community-page,body.community-surface{color:var(--community-ink);background:radial-gradient(ellipse at 0 0,#fff2e5 0,transparent 48rem),var(--community-bg)}
:is(.community-v4,.teacher-community-page,.community-surface) :focus-visible{outline:3px solid var(--community-blue);outline-offset:4px}
:is(.community-v4,.teacher-community-page) :is(input,select,textarea),.community-surface :is(.participation-grid,.conversation,.practice-controls) :is(input,select,textarea){accent-color:var(--community-blue);color:var(--community-ink)}
:is(.community-v4,.teacher-community-page) :is(input,select,textarea):focus,.community-surface :is(.participation-grid,.conversation,.practice-controls) :is(input,select,textarea):focus{border-color:var(--community-blue)}
:is(.community-v4,.teacher-community-page) :is(h1,h2,h3),.community-surface :is(.intro,.participation-grid,.practice-intro,.space-grid) :is(h1,h2,h3){color:var(--community-ink)}
/* Familiar navigation, with blue as the stable orientation colour. */
.community-v4 .v4-header.site-header,.teacher-community-page .community-header,.community-surface>header{background:#fff;border-bottom-color:var(--community-border);box-shadow:inset 0 3px var(--community-orange),0 4px 18px #1d63c406}
.community-v4 .brand,.community-surface .brand,.teacher-community-page .community-brand{color:var(--community-blue-deep)}
.community-v4 .brand em,.community-surface .brand span,.teacher-community-page .community-brand em{color:var(--community-blue)}
.community-v4 :is(.v4-header-nav a,.v4-nav-group nav>a,.v4-nav-extra nav>a),.teacher-community-page .community-header nav button,.community-surface header nav a{color:var(--community-muted)}
.community-v4 :is(.v4-header-nav a[aria-current],.v4-header-nav a:hover,.v4-nav-group nav>a[aria-current],.v4-nav-extra nav>a[aria-current]),.teacher-community-page :is(.community-header nav button[aria-pressed=true],.community-sidebar button[aria-pressed=true]){color:var(--community-blue-deep);background:var(--community-blue-soft);box-shadow:inset 0 -2px var(--community-orange)}
.community-v4 :is(.v4-nav-group nav>a:hover,.v4-nav-extra nav>a:hover){color:var(--community-blue);background:#fff}
.community-v4 :is(.v4-nav-label,.v4-grades small,.v4-account small,.breadcrumbs),.teacher-community-page :is(.community-sidebar small,.community-presence-status){color:var(--community-muted)}
.community-v4 .v4-account-avatar,.teacher-community-page .community-account-avatar,.community-surface :is(.participation-avatar,.participation-account){background:var(--community-blue-soft);border-color:var(--community-border);color:var(--community-blue-deep)}
.community-v4 :is(.tone-teal,.tone-blue,.tone-purple){background:var(--community-blue-soft);color:var(--community-blue)}
.community-v4 :is(.tone-pink,.tone-amber){background:var(--community-orange-soft);color:var(--community-orange-deep)}
.community-v4 :is(.v4-grades a[aria-current],.v4-quick-classes a:hover,.d5-class-strip a:nth-of-type(2n)){background:var(--community-blue-soft);border-color:#9fc4f2;color:var(--community-blue-deep)}
.community-v4 .d5-class-strip a:nth-of-type(2n+1){background:var(--community-orange-soft);border-color:#f7d0ac;color:var(--community-orange-deep)}
.community-v4 :is(.v4-grades a:hover,.d5-class-strip a:hover){border-color:var(--community-blue)}
.community-v4 .v4-side-app,.teacher-community-page .community-return{color:var(--community-blue-deep);background:var(--community-blue-soft);border-color:var(--community-border)}
/* Orange is reserved for useful actions; dark text keeps it readable. */
.community-v4 :is(.v4-header-write,.button:not(.secondary),.platform-search button),.teacher-community-page :is(.community-new-share,.tc-primary),.community-surface :is(.primary,.conversation form button){background:var(--community-orange);border-color:var(--community-orange);color:var(--community-orange-ink)!important;box-shadow:0 3px 10px #ff8b321a}
.community-v4 :is(.v4-header-write,.button:not(.secondary),.platform-search button):hover,.teacher-community-page :is(.community-new-share,.tc-primary):hover,.community-surface :is(.primary,.conversation form button):hover{background:#ff9b4f;border-color:#ff9b4f}
.community-v4 :is(.button.secondary,.v4-text-link,.v4-comment-shortcut),.teacher-community-page :is(.tc-links a,.tc-tabs button,.community-results a),.community-surface :is(header,footer,.participation-grid,.practice-intro,.space-grid) a{color:var(--community-blue)}
.community-v4 :is(.button.secondary,.v4-comment-shortcut){background:var(--community-blue-soft);border-color:var(--community-border)}
.community-v4 :is(.platform-search,.library-filters),.teacher-community-page :is(.community-search,.tc-profile-address){background:#f6faff;border-color:var(--community-border)}
/* Airy banners and dense resource shelves share the same two accent families. */
.community-v4 :is(.v4-banner,.d5-banner,.hero,.page-intro,.csocial-hero,.cpack-hero),.community-surface .practice-intro{background:linear-gradient(115deg,#e5f1ff 0%,#f2f7ff 58%,#fff0df 100%);border-color:var(--community-border)}
.community-v4 :is(.v4-kicker,.eyebrow,.v4-banner-copy p,.d5-banner p,.page-intro p),.community-surface :is(.eyebrow,.intro>span,.practice-intro>span){color:var(--community-blue-deep)}
.community-v4 :is(.v4-floating-note,.d5-latest>header,.d5-grade-shelf>header,.d5-library-shelf>header){background:var(--community-blue-soft);border-color:var(--community-border);color:var(--community-blue-deep)}
.community-v4 :is(.d5-topic-panel>header,.d5-school-menu>header){background:var(--community-orange-soft);color:var(--community-orange-deep);border-color:#f7d0ac}
.community-v4 :is(.d5-shortcuts>a:nth-child(2n+1),.v4-quick-classes a){background:var(--community-blue-soft);color:var(--community-blue-deep)}
.community-v4 .d5-shortcuts>a:nth-child(2n){background:var(--community-orange-soft);color:var(--community-orange-deep)}
.community-v4 :is(.resource-section h2,.section-title,.v4-rail-heading,.d5-topic-panel h2,.d5-school-menu h2){color:var(--community-blue-deep)}
.community-v4 :is(.card,.resource-detail,.community-discussion,.d5-latest,.d5-topic-panel,.d5-grade-shelf,.d5-library-shelf,.d5-school-menu,.v4-rail-card,.v4-compose-prompt),.teacher-community-page :is(.community-card,.tc-section,.tc-hero,.community-presence),.community-surface :is(.card,.space-grid>aside,.conversation){border-color:var(--community-border)}
.community-v4 :is(.v4-daily-card,.v4-aquarium-card){background:linear-gradient(145deg,#eaf3ff,#fff4e8);border-color:var(--community-border);color:var(--community-blue-deep)}
.community-v4 :is(.v4-daily-card p,.v4-aquarium-card p,.v4-rail-footnote){color:var(--community-muted)}
.community-v4 :is(.v4-daily-card a,.v4-aquarium-card a,.d5-latest>header>a,.d5-grade-shelf>header>a,.d5-library-shelf>header>a){color:var(--community-blue-deep)}
/* Profiles: honour personal cover images and explicitly selected cover themes. */
.teacher-community-page :is(.tc-section h3,.tc-person h2,.tc-person small:first-child),.community-v4 .p6-profile>.detail h2{color:var(--community-blue-deep)}
.teacher-community-page .tc-section,.community-v4 .p6-profile>.detail{background:#fff;border-color:var(--community-border)}
.teacher-community-page :is(.tc-tabs button[aria-pressed=true],.tc-media-editor),.teacher-community-page .p6-media-editor{background:var(--community-blue-soft);border-color:var(--community-border);color:var(--community-blue-deep)}
.p6-ranking{background:linear-gradient(145deg,#fff,#edf5ff);border-color:var(--community-border);box-shadow:0 8px 25px #1d63c408}
.p6-rank-head>span{background:linear-gradient(145deg,#ffe8cc,#ffb66d);color:#86400c}
.p6-rank-head h2{color:var(--community-blue-deep)}
.p6-rank-head small,.p6-rank-description,.p6-rank-note,.p6-ranking [data-ranking-status]{color:var(--community-muted)}
.p6-ranking li a{color:var(--community-ink)}.p6-rank-avatar{background:var(--community-blue-soft);color:var(--community-blue-deep)}
.p6-ranking li small{background:var(--community-orange-soft);color:var(--community-orange-deep)}
.p6-position{color:var(--community-muted)}.p6-ranking li:first-child .p6-position{color:var(--community-orange-deep)}
.p6-ranking :is(.p6-rank-link,button){color:var(--community-blue);border-color:#a8c8ee}
/* Signed-in publishing, chat and study lobby; no rules target course internals. */
.community-surface .editor{border-top-color:var(--community-orange)}
.community-surface :is(.tips,.participation-grid .tips){background:linear-gradient(145deg,#eaf3ff,#fff3e6);border-color:var(--community-border)}
.community-surface .notice{background:var(--community-blue-soft);border-left-color:var(--community-blue)}
.community-surface :is(.hint,.tips ul,.participation-counter,.participation-mobile-submit>span,.conversation form small,.practice-units small,[data-practice-status]){color:var(--community-muted)}
.community-surface :is(.participation-file-status,.participation-pdf){color:var(--community-blue-deep)}
.community-surface button[aria-pressed=true]{color:var(--community-blue-deep);background:var(--community-blue-soft);border-color:#9fc4f2}
.community-surface .conversation li{background:var(--community-blue-soft)}
.community-surface .conversation li.mine{background:var(--community-orange-soft)}
.community-surface .practice-units button{border-color:var(--community-border);color:var(--community-ink);border-top:4px solid #71aaf0}
.community-surface .practice-units button:nth-child(2n){border-top-color:var(--community-orange)}
.community-surface .practice-units button:hover{background:var(--community-blue-soft);border-color:var(--community-blue)}
.community-surface :is([data-practice-more],[data-practice-retry]){background:var(--community-blue);color:#fff;border-color:var(--community-blue)}
.community-surface .memory-notice{background:var(--community-orange-soft);border-color:#f7d0ac;color:var(--community-orange-ink)}
/* Mobile and footer accents keep existing sizing, scrolling and stacking. */
.community-v4 .v4-bottom-nav{background:#fff;border-top-color:var(--community-border)}
.community-v4 .v4-bottom-nav>a,.community-v4 .v4-bottom-nav>button{color:var(--community-muted)}
.community-v4 .v4-bottom-nav .v4-bottom-create{background:var(--community-orange);color:var(--community-orange-ink)}
.community-v4 .v4-footer.site-footer{background:#e7f1ff;border-color:var(--community-border);color:var(--community-blue-deep)}
.community-v4 .v4-footer :is(nav b,nav a,.brand b){color:var(--community-blue-deep)}
.community-v4 .v4-footer :is(p,.v4-footer-note){color:var(--community-muted)}
.teacher-community-page :is(.community-footer a,.community-footer),.community-surface>footer{color:var(--community-muted)}
.community-v4 .v4-pulse,.teacher-community-page .c5-workspace-intro{background:linear-gradient(130deg,#e5f1ff,#fff3e6);border-color:var(--community-border)}
.community-v4 .v4-pulse :is(p,small){color:var(--community-muted)}
.community-v4 .v4-pulse .v4-pulse-number{color:var(--community-blue)}
.teacher-community-page :is(.community-primary,.community-search button){background:var(--community-orange);border-color:var(--community-orange);color:var(--community-orange-ink)}
.teacher-community-page :is(.community-eyebrow,.c5-side-card h2,.c5-side-card>a,.c5-workspace-intro h2,.c5-footer>a,.c5-footer nav a){color:var(--community-blue-deep)}
.teacher-community-page :is(.c5-side-card p,.c5-workspace-intro p,.c5-footer>p){color:var(--community-muted)}
.teacher-community-page .c5-resource-tiles a:nth-child(2n+1){background:var(--community-blue-soft);color:var(--community-blue-deep)}
.teacher-community-page .c5-resource-tiles a:nth-child(2n){background:var(--community-orange-soft);color:var(--community-orange-deep)}
.teacher-community-page .community-left button[aria-pressed=true]{background:var(--community-blue-soft);color:var(--community-blue-deep);border-color:var(--community-border)}
.p6-profile .profile-head>.mark,.teacher-community-page .tc-person>.tc-avatar{background:var(--community-blue-soft);color:var(--community-blue-deep)}
.p6-cover[data-cover-style=ocean],.p6-profile[data-cover-style=ocean]>.p6-cover,[data-cover-style=ocean]>.p6-cover{background:radial-gradient(ellipse at 85% 10%,#80c5ff80,transparent 45%),linear-gradient(125deg,#113f82,#1d63c4 55%,#7ebafd)}
.community-v4 :is(.csocial-start,.csocial-english,.cpack-downloads){background:linear-gradient(115deg,#e5f1ff,#fff0df);border-color:var(--community-border)}
.community-v4 :is(.csocial-start>div>span,.csocial-english>span,.csocial-start nav a,.csocial-tool b,.cpack-school-index .text-link,.d5-latest>footer a,.d5-topic-panel>footer a){color:var(--community-blue-deep)}
.community-v4 .csocial-start p,.community-v4 .csocial-cards p{color:var(--community-muted)}
.community-v4 .csocial-start nav a{border-color:var(--community-border)}
.community-v4 .csocial-start nav a:first-child{background:var(--community-orange);color:var(--community-orange-ink);border-color:var(--community-orange)}
.community-v4 .csocial-tool{border-top-color:#71aaf0}.community-v4 .csocial-tool:nth-child(2n){border-top-color:var(--community-orange)}
.community-v4 .cpack-pdf-badge{background:var(--community-blue-soft);color:var(--community-blue-deep);border-color:#b9d3f2}
@media print{body.community-v4,body.teacher-community-page,body.community-surface{background:#fff;color:#172b46}.community-v4 :is(.resource-detail,.card){background:#fff;color:#172b46;box-shadow:none}}

/* The legacy profile editor uses element-qualified primary buttons. */
.teacher-community-page .teacher-center-modal .tc-primary{background:var(--community-orange);border-color:var(--community-orange);color:var(--community-orange-ink)}
.teacher-community-page .teacher-center-modal .tc-primary:hover{background:#ff9b4f;border-color:#ff9b4f}

/* Emoji shortcuts sit below the sticky toolbar, so content/sidebars keep their offsets. */
.community-category-band{background:linear-gradient(105deg,#e6f1ff,#f7faff 52%,#fff0df);border-bottom:1px solid #d6e4f5;padding:12px max(16px,calc((100vw - 1560px)/2));color:#17335b}
.community-category-list{max-width:1560px;margin:auto;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px}
.community-category-list>a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:9px 10px;border:1px solid #c8ddf8;border-radius:12px;background:#fff;color:#113f82!important;text-decoration:none;font-size:12px;font-weight:700;line-height:1.4;box-shadow:0 2px 5px #1d63c405;transition:background .16s,border-color .16s,transform .16s;min-width:0;text-align:center}
.community-category-list>a:nth-child(2n){background:#fff7ee;border-color:#f6d7b8;color:#8c3d10!important}
.community-category-emoji{font-size:21px;line-height:1;flex-shrink:0}
.community-category-list>a:hover{background:#e6f1ff;border-color:#83b4f1;transform:translateY(-2px)}
.community-category-list>a:nth-child(2n):hover{background:#ffe8ce;border-color:#efac6b}
.community-category-list>a[aria-current=page]{background:#ff8b32;color:#472207!important;border-color:#ef7b21;box-shadow:0 3px 10px #ff8b3220}
.community-category-list>a:focus-visible{outline:3px solid #1d63c4;outline-offset:3px}
.community-v4 .v4-header-nav a,.teacher-community-page .community-header nav button{white-space:nowrap}
@media(max-width:1100px){.community-category-list{grid-template-columns:repeat(5,minmax(0,1fr))}.community-category-band{padding:10px 16px}}
@media(max-width:760px){.community-category-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.community-category-band{padding:10px 14px}.community-category-list>a{flex-direction:column;gap:5px;padding:7px 4px;min-height:59px;font-size:11.5px;border-radius:10px}.community-category-emoji{font-size:21px}}
@media(prefers-reduced-motion:reduce){.community-category-list>a{transition:none;transform:none!important}}
@media print{.community-category-band{display:none!important}}
