/* Community Hub 12.1.7 — FINAL Navy / Slate / Teal dark palette layer.
   Intentionally loaded after all legacy feature styles, including 11.1 Vibrant Graphite.
   CSS only: does not change scrolling, overlays, navigation behavior or events. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:#09131e; --white:#232f40; --ink:#f1f5fa; --muted:#b7c6d7;
  --line:#40516a; --green:#1fc4be; --navy:#142235;
  --hcm-bg:#09131e; --hcm-surface:#222e40; --hcm-surface-2:#2b384d;
  --hcm-line:#40516a; --hcm-text:#f1f5fa; --hcm-muted:#b7c6d7;
  --hcm-accent:#1fc4be; --hcm-teal:#32c8d1;
  --hcm-amber:#f0be66; --hcm-violet:#b1a0ff; --hcm-coral:#ff818d;
  --hcm-site-background:#09131e;--hcm-site-surface:#222e40;
  --hcm-site-surface-2:#2b384d;--hcm-site-edge:#40516a;
  --hcm-site-accent:#1fc4be;--hcm-site-teal:#32c8d1;
}
html[data-theme="dark"] body:not(.hcm972-messenger-page){
  background:radial-gradient(ellipse at top right,rgba(29,85,134,.14),transparent 45%),
             linear-gradient(115deg,#0b1520,#111a27 58%,#0d1a26)!important;
  color:#f1f5fa!important;
}
html[data-theme="dark"] body.hcm972-messenger-page{background:#0b1520!important;color:#f1f5fa!important}
/* Global chrome, surface palette and base color system */
html[data-theme="dark"] :is(.sidebar,.topbar,.hcm948-mobile-brand,.mobile-bottom-nav,.mobile-create-sheet,.hcm61-admin-menu,.hcm61-admin-home){
  background:linear-gradient(150deg,#1c293b,#172232)!important;
  border-color:#374b62!important;
  color:#f1f5fa!important;
}
html[data-theme="dark"] :is(.panel,.card,.post,.post-card,.feed-card,.stat,.stats-card,.listing,.listing-card,.event-card,.directory-card,.group-card,.notification-card,.home-box,.profile-card,.adminrow,.marketcard,.marketplace-card,.calendar-shell,.modal,.dialog,.threadlist,.feed-composer,.composer,.standard,.empty,.hcm94-widget,.hcm94-explore,.hcm94-numbers,.hcm94-quick,.hcm942-side>section,.hcm942-inline,.hcm-ribbon,.hcm94-post-scroll,.hcm94-feed .post,.hcm94-feed .post-card){
  background:#222e40!important;background-image:linear-gradient(155deg,#263348,#1d293b)!important;
  border-color:#3c5069!important;color:#f1f5fa!important;
  box-shadow:0 8px 24px rgba(2,8,17,.16)!important;
}
html[data-theme="dark"] :is(.hcm94-widget,.hcm942-side>section,.hcm942-inline){border:1px solid #40546d!important}
html[data-theme="dark"] :is(.hcm94-explore,.hcm94-numbers,.hcm94-quick,.hcm94-widget.hcm94-explore,.hcm94-widget.hcm94-numbers,.hcm94-widget.hcm94-quick,.hcm942-left section,.hcm942-right section){
 background:#222e40!important;background-image:linear-gradient(150deg,#28354a,#202c3e)!important;border-color:#425670!important;
}
html[data-theme="dark"] :is(.hcm94-widget-head,.hcm94-widget h2,.hcm94-widget h3,.hcm94-numbers strong,.hcm94-quick h2,.hcm94-explore h2,.hcm94-feed-header h2,.hcm94-feed h2,.hcm94-titlebar h1){color:#f1f5fa!important}
html[data-theme="dark"] :is(.hcm94-explore,.hcm94-quick) a,
html[data-theme="dark"] :is(.hcm94-shortcuts a,.hcm94-quick a,.hcm94-explore a,.hcm94-widget a:not(.primary),.hcm94-numbers>div,.hcm94-quick>a){
  background:#2c3a50!important;background-image:linear-gradient(160deg,#304159,#26364b)!important;
  border-color:#4a607a!important;color:#dce8f5!important;
}
html[data-theme="dark"] :is(.hcm94-explore,.hcm94-quick) a:hover,
html[data-theme="dark"] :is(.hcm94-shortcuts a,.hcm94-quick a,.hcm94-explore a):hover{
  background:#36536b!important;border-color:#53cbd2!important;color:#fff!important;
}
html[data-theme="dark"] :is(.hcm94-cover,.hcm94-cover.has-cover){border-color:#3e5670!important}
html[data-theme="dark"] .hcm94-cover:not(.has-cover){background:linear-gradient(135deg,#17283a,#192f46 60%,#122234)!important}
html[data-theme="dark"] .hcm94-cover-shade{background:linear-gradient(90deg,rgba(5,12,23,.82),rgba(8,17,29,.38) 55%,rgba(6,15,26,.13))!important}
html[data-theme="dark"] .hcm94-cover-actions :is(a,.hcm94-cover-cta){border-color:#6ac7cd!important}
html[data-theme="dark"] .hcm94-cover-cta{background:linear-gradient(135deg,#1fc4be,#168a9a)!important;color:#071b24!important}
html[data-theme="dark"] .hcm94-cover-cta :is(span,small,strong){color:#071b24!important}
html[data-theme="dark"] :is(.hcm94-title-spark,.hcm94-eyebrow,.hcm94-cover-tag,.hcm94-feed-live,.hcm942-inline-kicker,.hcm94-feed-header .hcm94-eyebrow,.hcm94-widget-head>span){color:#68dadd!important}
html[data-theme="dark"] :is(.hcm94-feed .composer,.hcm94-composer,.hcm945-post-form,.feed-post-scroll .post,.feed-post-scroll .post-card){
  background:#222e40!important;background-image:linear-gradient(155deg,#28354a,#222e40)!important;border-color:#465c74!important;
}
html[data-theme="dark"] :is(.hcm94-composer textarea,.hcm945-post-form textarea,.hcm948-quick-composer button[data-hcm948-compose],textarea,input:not([type=checkbox]):not([type=radio]),select){
  background-color:#172334!important;color:#f0f5fb!important;border-color:#4a5e75!important;
}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#aebed0!important;opacity:1}
html[data-theme="dark"] :is(.hcm94-feed-sort>a,.feed-sort>a,.hcm94-feed-sort a,.hcm94-quick .smallbtn,.hcm945-addmedia,.hcm948-photo-shortcut){
  background:#304158!important;background-image:linear-gradient(160deg,#32445e,#28384e)!important;
  border:1px solid #526b81!important;color:#edf5ff!important;
}
html[data-theme="dark"] :is(.hcm94-feed-sort>a,.feed-sort>a,.hcm94-feed-sort a):is(.hcm94-selected,.active,[aria-current=page]){
  background:linear-gradient(135deg,#1d9d9c,#187e98)!important;border-color:#5ad6d8!important;color:#fff!important;
}
html[data-theme="dark"] :is(.primary,button.primary,a.primary,.btn-primary,input[type=submit].primary,.hcm119-main-action){
  background:#158d95!important;background-image:linear-gradient(135deg,#1baba7,#148994)!important;
  border-color:#37cbd1!important;color:#f9ffff!important;
}
html[data-theme="dark"] :is(.primary,button.primary,a.primary,.btn-primary,input[type=submit].primary,.hcm119-main-action):hover{background:#24b8b4!important;background-image:linear-gradient(135deg,#28c9c1,#209eae)!important}
html[data-theme="dark"] :is(button,.smallbtn,.chip,.post-more>summary):not(.primary):not(.btn-primary):not(.stage-button){
  background:#2c3b52!important;border-color:#465c75!important;color:#f1f5fa!important;
}
html[data-theme="dark"] :is(.navlink.active,.hcm61-admin-menu a.active,.mobile-tab.current){
  background:#226a80!important;background-image:linear-gradient(160deg,#266e84,#184f69)!important;border-color:#2daab4!important;color:#fff!important;
}
html[data-theme="dark"] .navlink:hover{background:#2d445c!important;color:#dff8ff!important}
html[data-theme="dark"] :is(.mobile-bottom-nav,.mobile-nav,.bottom-nav){background:#1b293b!important;border-color:#3a4d63!important}
html[data-theme="dark"] :is(.mobile-create-trigger,.hcm948-story-plus){background:#168f95!important;background-image:linear-gradient(150deg,#23aeb1,#157b91)!important;border-color:#3fc6c9!important;color:#fff!important}
html[data-theme="dark"] :is(.hcm948-story,.hcm948-create-story,.hcm948-story-scene,.hcm948-story-strip,.hcm948-quick-composer){background-color:#253449!important;border-color:#425970!important;color:#eef5ff!important}
html[data-theme="dark"] :is(.hcm94-numbers span,.hcm94-widget span,.hcm94-widget small,.hcm94-quick small,.hcm942-inline p,.muted,.meta,.pagehead p){color:#b8c8d9!important}
html[data-theme="dark"] :is(.hcm94-numbers strong,.hcm94-widget strong,.hcm942-inline h3,.hcm94-feed h2){color:#f1f5fa!important}
/* Social/editor/administrative surfaces: palette only; keep layout and functionality untouched. */
html[data-theme="dark"] :is(.hcm119-hero,.hcm119-profile .hcm119-edit-card,.hcm119-profile .hcm119-cover-card,.hcm119-profile .hcm119-settings-card,.hcm112-public-card,.hcm112-profile-card,.hcm12-profile-panel,.hcm12-connection-panel,.hcm61-admin-home,.hcm61-admin-brand,.hcm61-admin-menu,.membercard,.membergrid .panel,.groups .panel,.marketplace .panel,.events .panel,.notifications .panel){
  background:#243246!important;background-image:linear-gradient(160deg,#2a394e,#202c40)!important;border-color:#435b75!important;color:#f1f5fa!important;
}
html[data-theme="dark"] :is(.hcm119-cover:not([style*="background-image"]),.hcm112-cover:not([style*="background-image"])){background:linear-gradient(120deg,#1a405f,#234d67 50%,#3b4774)!important}
html[data-theme="dark"] :is(.hcm119-avatar,.hcm112-avatar){border-color:#243246!important}
html[data-theme="dark"] :is(.hcm-comment-sheet,.hcm-sheet-header,.hcm-sheet-compose,.hcm-sheet-tools,.hcm9711-action-sheet,.hcm9711-edit-modal form,.post-more-menu){
  background:#233248!important;border-color:#405872!important;color:#f1f5fa!important;
}
html[data-theme="dark"] table{color:#f1f5fa!important}
html[data-theme="dark"] th{background:#2e4057!important;color:#f1f5fa!important}
html[data-theme="dark"] tr:nth-child(even) td{background:#26364a!important}
html[data-theme="dark"] :is(.calendar-toolbar,.cal-cell,.event-date,.dateblock){background:#24394f!important;border-color:#435c74!important;color:#e6f5ff!important}
/* Keep the publication/page canvas bright for printing and design work. */
html[data-theme="dark"] :is(.nl-page,.newsletter-page,.hcm103-page,.hcm-newsletter-paper,.hcm103-canvas,.hcm103-page-sheet){background:#fff!important;background-image:none!important;color:#263749!important}
html[data-theme="dark"] :is(.nl-page,.newsletter-page,.hcm103-page,.hcm-newsletter-paper,.hcm103-canvas,.hcm103-page-sheet) :is(p,small,strong,h1,h2,h3,h4){color:inherit}
/* Preserve the newer Messenger wallpaper and bubble colors; only outer UI follows new palette. */
html[data-theme="dark"] body.hcm972-messenger-page :is(.hcm976-chat-inbox,.hcm976-chat-head,.hcm976-chat-stage){border-color:#37526c!important}
html[data-theme="dark"] body.hcm972-messenger-page .hcm976-message-history{background-color:#091420!important}
@media(max-width:780px){
 html[data-theme="dark"] :is(.hcm94-widget,.hcm942-side>section,.panel,.card){box-shadow:0 6px 18px rgba(3,11,20,.18)!important}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme="dark"] *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
