/* Community Hub v12.2.17 — light-mode contrast and surface audit.
   Scoped to html[data-theme="light"] so dark mode is unchanged.
   Loaded after ALL existing CSS, including the Story override. Layout, scroll,
   media, dynamic colours and UI behaviour remain owned by existing components. */
html[data-theme="light"]{
 color-scheme:light;
 --bg:#f2f6f9;--white:#fff;--ink:#1a3043;--muted:#4a6074;
 --line:#c9d6e2;--green:#086e70;--navy:#e8eff5;
 --hcm-bg:#f2f6f9;--hcm-surface:#fff;--hcm-surface-2:#f3f7fa;
 --hcm-line:#c9d6e2;--hcm-text:#1a3043;--hcm-muted:#4a6074;
 --hcm-accent:#087978;--hcm-teal:#087978;
 --hcm-site-background:#f2f6f9;--hcm-site-surface:#fff;
 --hcm-site-surface-2:#f3f7fa;--hcm-site-edge:#c9d6e2;
 --hcm-site-accent:#087978;--hcm-site-teal:#087978;
}
html[data-theme="light"] body{background:#f2f6f9!important;color:#1a3043!important}
html[data-theme="light"] :is(.layout,.mainwrap,.content,.workspace,.homegrid,.feed-workspace){color:#1a3043}
/* Chrome: top bar, sidebar, mobile nav and navigation drawers. */
html[data-theme="light"] :is(.topbar,.sidebar,.hcm948-mobile-brand,.mobile-bottom-nav,.mobile-nav,.bottom-nav,.mobile-bottom-bar,.hcm-mobile-bottom-nav,.mobile-create-sheet,.hcm61-admin-menu,.hcm61-admin-home){
 background:#fff!important;background-image:none!important;border-color:#c8d6e1!important;color:#1a3043!important;
}
html[data-theme="light"] :is(.breadcrumb,.sidebar .brand,.mobile-bottom-nav a,.mobile-bottom-nav button,.navlink,.navico,.mobilemenu,.topnotification,.hcm-theme-switcher select){color:#29475c!important}
html[data-theme="light"] :is(.navlink:hover,.mobile-bottom-nav a:hover){background:#e9f4f4!important;color:#075d63!important}
html[data-theme="light"] :is(.navlink.active,.mobile-bottom-nav .active,.mobile-bottom-nav [aria-current="page"],.mobile-tab.current,.hcm61-admin-menu a.active){background:#d5eeee!important;color:#075c61!important;border-color:#6bbdb9!important}
/* General content surfaces across the site. Avoid media/photo containers. */
html[data-theme="light"] :is(.panel,.card,.post,.post-card,.feed-card,.stat,.stats-card,.listing,.listing-card,.event-card,.directory-card,.membercard,.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,.hcm61-admin-brand,.hcm61-admin-home,.hcm-ribbon,.hcm94-feed .post,.hcm94-feed .post-card){
 background-color:#fff!important;background-image:none!important;border-color:#cbd8e3!important;color:#1a3043!important;
 box-shadow:0 5px 20px rgba(31,59,85,.06)!important;
}
html[data-theme="light"] :is(.hcm94-explore,.hcm94-quick) a,
html[data-theme="light"] :is(.hcm94-shortcuts a,.hcm94-quick a,.hcm94-widget a.smallbtn,.hcm94-numbers>div,.hcm94-quick>a){background:#eff5f9!important;background-image:none!important;border-color:#c1d0dd!important;color:#234558!important}
html[data-theme="light"] :is(h1,h2,h3,h4,h5,h6,.title,.cardtitle,.page-title,.postauthor,.post-author,.hcm94-widget-head,.hcm94-feed-header h2,.hcm94-titlebar h1){color:#163247!important}
html[data-theme="light"] :is(p,small,.muted,.meta,.postmeta,.eyebrow,.subtitle,.text-muted,.secondary,.pagehead p,.hcm94-widget small,.hcm942-inline p){color:#496173}
html[data-theme="light"] :is(.hcm94-eyebrow,.hcm942-inline-kicker,.hcm119-kicker,.hcm112-side-kicker){color:#086c70!important}
html[data-theme="light"] :is(.panel,.card,.post,.post-card,.feed-card,.hcm94-widget,.hcm119-edit-card,.hcm119-settings-card,.hcm119-cover-card) :is(h1,h2,h3,h4,h5,h6,strong,legend,label){color:#193448}
html[data-theme="light"] :is(.panel,.card,.post,.post-card,.feed-card,.hcm94-widget) :is(p,small,.muted,.meta,.postmeta){color:#486172}
/* Profile: prior hard-coded pale text inherited from the dark palette. */
html[data-theme="light"] .hcm119-profile{color:#193448!important}
html[data-theme="light"] .hcm119-title{color:#193448!important}
html[data-theme="light"] .hcm119-title h1{color:#112e40!important;opacity:1!important}
html[data-theme="light"] .hcm119-title p{color:#4b6071!important;opacity:1!important}
html[data-theme="light"] .hcm119-title .hcm119-kicker{color:#087477!important;opacity:1!important}
html[data-theme="light"] .hcm119-outline{color:#0b5e68!important;background:#fff!important;border-color:#61979c!important}
html[data-theme="light"] .hcm119-outline:hover{background:#e8f7f5!important;color:#094f59!important}
html[data-theme="light"] .hcm119-profile :is(.hcm119-edit-card,.hcm119-cover-card,.hcm119-settings-card){background:#fff!important;background-image:none!important;color:#193448!important;border-color:#c4d5e0!important}
html[data-theme="light"] .hcm119-profile :is(.hcm119-card-head h2,.hcm119-settings-card h2,.hcm119-edit-card label,.hcm119-settings-card label){color:#163448!important}
html[data-theme="light"] .hcm119-profile :is(.hcm119-card-head p,.hcm119-settings-card p,.hcm119-bio){color:#445e6e!important}
/* The profile image header deliberately remains dark; keep white text on it. */
html[data-theme="light"] .hcm119-hero{background:#223e38!important;color:#fff!important;border-color:#a9c7d1!important}
html[data-theme="light"] .hcm119-identity :is(h2,p,.hcm119-kicker),html[data-theme="light"] .hcm119-hero .hcm119-bio{color:#fff!important}
html[data-theme="light"] .hcm119-main-action{background:#076e70!important;color:#fff!important;border-color:#066063!important}
html[data-theme="light"] :is(.hcm112-complete-card,.hcm112-public-card,.hcm112-profile-card,.hcm12-profile-panel,.hcm12-connection-panel){background:#fff!important;background-image:none!important;border-color:#cbd8e3!important;color:#193448!important}
html[data-theme="light"] .hcm112-complete-card :is(h2,p,small,.hcm112-steps-count,.hcm112-gauge-note){color:#29485b!important}
/* Forms and upload controls. Don't target checkbox/radio or content editable canvas. */
html[data-theme="light"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),textarea,select,.search,.search input,.filepick){background-color:#fff!important;background-image:none!important;border-color:#aebfce!important;color:#173447!important}
html[data-theme="light"] :is(input,textarea)::placeholder{color:#667c8a!important;opacity:1}
html[data-theme="light"] :is(input,textarea,select):focus-visible{outline:2px solid #138382!important;outline-offset:2px;border-color:#138382!important}
html[data-theme="light"] :is(button,.smallbtn,.chip,.post-more>summary):not(.primary):not(.btn-primary):not(.stage-button):not(.hcm948-story-plus):not(.hcm1229-create-story):not(.hcm949-member-story){background:#eff5f8!important;background-image:none!important;border-color:#b8ccda!important;color:#234458!important}
html[data-theme="light"] :is(.primary,.btn-primary,button[type="submit"],.hcm119-main-action){background:#087779!important;background-image:none!important;border-color:#08676a!important;color:#fff!important}
html[data-theme="light"] :is(.primary,.btn-primary,button[type="submit"],.hcm119-main-action):hover{background:#075e63!important;color:#fff!important}
html[data-theme="light"] :is(a,button,input,textarea,select):focus-visible{outline:2px solid #057c83;outline-offset:2px}
/* Feeds, discussions, comments and modal sheets. */
html[data-theme="light"] :is(.hcm-comment-sheet,.hcm-sheet-header,.hcm-sheet-compose,.hcm-sheet-tools,.hcm-sheet-list,.hcm9711-action-sheet,.post-more-menu,.hcm9711-edit-modal form,.hcm94-composer,.hcm945-post-form){background:#fff!important;background-image:none!important;color:#193448!important;border-color:#cbd8e3!important}
html[data-theme="light"] :is(.comment,.comment-body,.comment-bubble,.hcm-sheet-list .comment){background:#f1f6f9!important;color:#193448!important;border-color:#d1dee7!important}
html[data-theme="light"] :is(.hcm94-feed-sort a,.feed-sort>a,.hcm945-addmedia,.hcm948-photo-shortcut){background:#eff5f9!important;background-image:none!important;border-color:#bed0df!important;color:#23475c!important}
html[data-theme="light"] :is(.hcm94-feed-sort a,.feed-sort>a):is(.hcm94-selected,.active,[aria-current="page"]){background:#d2eeec!important;border-color:#58aaa8!important;color:#095b62!important}
/* Inbox / Messenger: retain user-selected wallpaper and message bubble appearance. */
html[data-theme="light"] :is(.hcm976-chat-inbox,.hcm976-chat-head,.hcm976-chat-stage,.conversation,.threadlist,.hcm976-community-messenger){border-color:#c7d6e1!important;color:#183548!important}
html[data-theme="light"] :is(.conversation-list,.threadlist,.hcm976-chat-inbox,.hcm976-chat-head){background:#fff!important;color:#183548!important}
html[data-theme="light"] .bubblemsg:not(.mine){background:#edf3f8!important;color:#1c384b!important}
/* Calendar, marketplace, directory, events, volunteer, moderation and admin tables. */
html[data-theme="light"] :is(.calendar-toolbar,.cal-cell,.cal-weekday,.event-date,.dateblock,.hcm61-admin-menu){background:#f1f6f9!important;border-color:#cbd8e3!important;color:#21445a!important}
html[data-theme="light"] :is(table,th,td){border-color:#cbd8e3!important;color:#203c50!important}
html[data-theme="light"] th{background:#e6eff5!important;color:#17384b!important}
html[data-theme="light"] tr:nth-child(even) td{background:#f3f7fa!important}
html[data-theme="light"] :is(.filters,.adminrow,.notification-card,.notice,.alert){border-color:#c8d7e2!important}
/* Preserve illustration/photo story tiles and cover artwork. Only text-free labels receive overrides. */
html[data-theme="light"] :is(.hcm948-story-strip,.hcm948-story-scene,.hcm949-member-story,.hcm1229-create-story){color:#fff}
html[data-theme="light"] .hcm948-story-strip :is(.hcm949-member-story,.hcm1229-create-story) :is(.hcm949-story-name,.hcm948-story-label){color:#fff!important}
/* Clearly legible notifications and neutral badges. */
html[data-theme="light"] :is(.count,.badge,.status,.hub83-top-bell){border-color:#c4d5e0}
@media(max-width:800px){
 html[data-theme="light"] :is(.hcm948-mobile-brand,.mobile-bottom-nav,.mobile-create-sheet){box-shadow:0 3px 12px rgba(18,46,68,.12)!important}
}
