/* Polacy Preston — calmer, lighter navy surfaces and accessible contrast.
   Deliberately last in the cascade, following earlier seasonal and design CSS.
   No changes to application behaviour, session state or permissions. */
:root {
  --pp6-night: #1a3045;
  --pp6-panel: #294960;
  --pp6-soft: #31556b;
  --pp6-muted: #dce9f3;
  --pp6-line: rgba(180, 218, 235, .29);
}
/* Gently brighten the whole portal background, keeping a clear dark identity. */
body.pp-v6-unified.portal,
body.pp-v6-unified.pp-themed-subpage,
body.pp-v6-unified.pp-community-page,
body.pp-v6-unified.pp-partner-body,
body.pp-v6-unified.pp-ad-studio-body,
body.pp-v6-unified:not(.portal):not(.pp-themed-subpage):not(.pp-community-page) {
  background:
    radial-gradient(ellipse 72% 520px at 50% 22%, rgba(60, 120, 158, .34), transparent 86%),
    linear-gradient(180deg, #213b52 0%, #28455d 48%, #1b334a 100%) !important;
  background-attachment: fixed !important;
}
body.pp-v6-unified.portal[data-pp-page="home"] {
  background:
    radial-gradient(ellipse 72% 580px at 48% 24%, rgba(52,125,163,.34), transparent 88%),
    linear-gradient(180deg,#1a3049 0%,#23445f 50%,#192f48 100%) !important;
}
/* Slightly brighter navy cards on the main page without turning sections white. */
body.pp-v6-unified.portal[data-pp-page="home"] :is(
  .pp-dash-welcome,.pp-home-carousel,.pp-local-hub,.pp-local-home,
  .pp-dash-content .pp-dash-block:first-child,.pp-tiles>.pp-tile
) {
  background:linear-gradient(150deg,#30536c 0%,#234158 100%) !important;
  border-color:rgba(173,213,237,.29) !important;
}
body.pp-v6-unified.portal[data-pp-page="home"] :is(
  .pp-dash-welcome,.pp-home-carousel,.pp-local-hub,.pp-local-home,
  .pp-dash-content .pp-dash-block:first-child,.pp-tiles>.pp-tile
) :is(h1,h2,h3,strong,b) {color:#f7fbff !important;}
body.pp-v6-unified.portal[data-pp-page="home"] :is(
  .pp-dash-welcome,.pp-home-carousel,.pp-local-hub,.pp-local-home,
  .pp-dash-content .pp-dash-block:first-child,.pp-tiles>.pp-tile
) :is(p,small) {color:#dae8f3 !important;}
/* All social-feed cards: a single restrained, readable navy instead of black or white. */
body.pp-v6-unified.pp-community-page :is(.pp-widget,.pp-post-card),
body.pp-v6-unified.pp-community-page[data-pp-season] :is(.pp-widget,.pp-post-card) {
  background:linear-gradient(150deg,#30536d,#27465e 68%,#234158) !important;
  color:#f4f9ff !important;
  border:1px solid rgba(173,214,234,.30) !important;
  box-shadow:0 12px 24px rgba(8,26,45,.17) !important;
}
/* Critical: post excerpts are div elements, so prior rules targeting only paragraphs missed them. */
body.pp-v6-unified.pp-community-page .pp-post-card .pp-post-body,
body.pp-v6-unified.pp-community-page .pp-post-card .pp-post-body.is-preview,
body.pp-v6-unified.pp-community-page[data-pp-season] .pp-post-card .pp-post-body,
body.pp-v6-unified.pp-community-page[data-pp-season] .pp-post-card .pp-post-body.is-preview {
  color:#ecf5fb !important;
  -webkit-text-fill-color:#ecf5fb !important;
  opacity:1 !important;
  font-weight:500 !important;
  font-size:14px !important;
  line-height:1.68 !important;
  text-shadow:none !important;
}
body.pp-v6-unified.pp-community-page .pp-post-card .pp-post-title,
body.pp-v6-unified.pp-community-page .pp-post-card .pp-post-head strong,
body.pp-v6-unified.pp-community-page[data-pp-season] .pp-post-card .pp-post-title,
body.pp-v6-unified.pp-community-page[data-pp-season] .pp-post-card .pp-post-head strong {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.pp-v6-unified.pp-community-page .pp-post-card :is(.pp-post-head small,.pp-post-counts),
body.pp-v6-unified.pp-community-page[data-pp-season] .pp-post-card :is(.pp-post-head small,.pp-post-counts) {
  color:#c8e0ee !important;
  -webkit-text-fill-color:#c8e0ee !important;
  opacity:1 !important;
}
body.pp-v6-unified.pp-community-page .pp-post-card .pp-post-counts {
  border-bottom:1px solid rgba(181,221,239,.3) !important;
}
/* Explicit styles for action pills defeat inherited white-on-white button rules. */
body.pp-v6-unified.pp-community-page .pp-post-card .pp-post-actions .pp-action-pill,
body.pp-v6-unified.pp-community-page[data-pp-season] .pp-post-card .pp-post-actions .pp-action-pill {
  background:#1a3953 !important;
  color:#f3faff !important;
  -webkit-text-fill-color:#f3faff !important;
  border:1px solid rgba(172,215,239,.44) !important;
  box-shadow:0 4px 12px rgba(9,27,49,.18) !important;
}
body.pp-v6-unified.pp-community-page .pp-post-card .pp-post-actions .pp-action-pill :is(span,b,strong),
body.pp-v6-unified.pp-community-page[data-pp-season] .pp-post-card .pp-post-actions .pp-action-pill :is(span,b,strong) {
  color:inherit !important;
  -webkit-text-fill-color:inherit !important;
}
body.pp-v6-unified.pp-community-page .pp-post-card .pp-post-actions .pp-action-pill.is-primary,
body.pp-v6-unified.pp-community-page[data-pp-season] .pp-post-card .pp-post-actions .pp-action-pill.is-primary {
  background:linear-gradient(120deg,#207eaf,#155b89) !important;
  color:white !important;
  -webkit-text-fill-color:white !important;
  border-color:#549ccc !important;
}
body.pp-v6-unified.pp-community-page .pp-post-card .pp-post-actions .pp-action-pill.is-active,
body.pp-v6-unified.pp-community-page[data-pp-season] .pp-post-card .pp-post-actions .pp-action-pill.is-active {
  background:#5d314e !important;
  color:#ffe5ef !important;
  -webkit-text-fill-color:#ffe5ef !important;
  border-color:#d795b5 !important;
}
body.pp-v6-unified.pp-community-page .pp-post-card .pp-post-actions .pp-action-pill:hover {
  background:#285b7a !important;
  border-color:#9ed7f3 !important;
}
body.pp-v6-unified.pp-community-page .pp-post-card .pp-comments,
body.pp-v6-unified.pp-community-page[data-pp-season] .pp-post-card .pp-comments {
  background:#214159 !important;
  color:#f0f8fc !important;
  border-color:rgba(181,221,239,.27) !important;
}
body.pp-v6-unified.pp-community-page .pp-post-card .pp-comment,
body.pp-v6-unified.pp-community-page .pp-post-card .pp-comment span {
  color:#e5f1fa !important;
  border-color:rgba(181,221,239,.20) !important;
}
body.pp-v6-unified.pp-community-page .pp-post-card .pp-comment-form input {
  background:#f8fbff !important;
  color:#193851 !important;
  -webkit-text-fill-color:#193851 !important;
}
body.pp-v6-unified.pp-community-page .pp-post-card .pp-comment-form button {
  background:#1576a3 !important;
  color:#fff !important;
}
/* Feed filter chips (outside cards) also readable on the slightly brighter background. */
body.pp-v6-unified.pp-community-page .pp-feed-bar h2{color:#f8fcff!important}
body.pp-v6-unified.pp-community-page .pp-feed-bar .pp-filter {
  background:#24425b !important;
  color:#eaf4fc !important;
  border-color:rgba(176,214,235,.43) !important;
}
body.pp-v6-unified.pp-community-page .pp-feed-bar .pp-filter[aria-pressed=true] {
  background:#1e719d !important;
  color:white !important;
}
/* Keep form fields on the whole site bright enough to see and dark enough to read. */
body.pp-v6-unified :is(input:not([type=checkbox]):not([type=radio]),textarea,select)::placeholder {
  color:#667d95;
  opacity:1;
}
@media(prefers-reduced-motion:reduce){
  body.pp-v6-unified.pp-community-page .pp-post-card .pp-post-actions .pp-action-pill{transition:none!important}
}

@media(max-width:720px){
  body.pp-v6-unified{background-attachment:scroll!important}
  body.pp-v6-unified.pp-community-page .pp-post-card .pp-post-body.is-preview{font-size:13.5px!important}
}
