/* R192 public reading/content families. Server-authored copy and media are
   left in the document; this stylesheet only changes their presentation. */
body.pf-portal-r192[data-portal-family="home"],
body.pf-portal-r192[data-portal-family="content"],
body.pf-portal-r192[data-portal-family="resource"],
body.pf-portal-r192[data-portal-family="article"],
body.pf-portal-r192[data-portal-family="community"],
body.pf-portal-r192[data-portal-family="auth"],
body.pf-portal-r192[data-portal-family="download"] {
  --content-shell: min(1240px, calc(100% - 40px));
}
body.pf-portal-r192[data-portal-family="home"] .hp191-section,
body.pf-portal-r192[data-portal-family="content"] #main,
body.pf-portal-r192[data-portal-family="resource"] #main,
body.pf-portal-r192[data-portal-family="article"] #main,
body.pf-portal-r192[data-portal-family="community"] #main,
body.pf-portal-r192[data-portal-family="auth"] #main,
body.pf-portal-r192[data-portal-family="download"] #main {
  min-width: 0;
}

/* Resource catalog and detail pages. */
body.pf-portal-r192[data-portal-family="resource"] .pf-resource-detail,
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-library,
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-catalog {
  color: var(--r192-text);
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-library {
  width: var(--content-shell);
  margin-inline: auto;
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-library .gk-resource-catalog {
  width: auto;
  margin-inline: 0;
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--r192-line);
  border-radius: 12px;
  background: var(--r192-surface);
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-toolbar :is(input, select) {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9ceda;
  border-radius: 8px;
  background: var(--r192-surface);
  color: var(--r192-text);
  font-size: 16px;
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--r192-line);
  border-radius: 12px;
  background: var(--r192-surface);
  box-shadow: 0 8px 20px rgb(23 27 45 / 5%);
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-card :is(h3, p) { overflow-wrap: anywhere; }
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-card h3 {
  margin: 8px 0;
  color: var(--r192-text);
  font-size: 18px;
  line-height: 1.45;
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-card p,
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-details,
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-restricted {
  color: var(--r192-muted);
  line-height: 1.7;
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-actions :is(a, button) { min-height: 44px; }
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-card [hidden] { display: none !important; }

/* Resource cards lead with the title, followed by one wrapping metadata band.
   Keep this catalog-only so the resource detail reading view is unchanged. */
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-library [data-gk-resources] .gk-resource-card .gk-resource-index {
  display: none;
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-library [data-gk-resources] .gk-resource-card .gk-resource-badges.gk-resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 6px 0 10px;
  align-items: center;
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-library [data-gk-resources] .gk-resource-card .gk-resource-meta span {
  min-height: 0;
  max-width: 100%;
  padding: 2px 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-library [data-gk-resources] .gk-resource-meta .is-reviewed {
  color: #087b82;
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-library [data-gk-resources] .gk-resource-meta .is-restricted {
  color: #9a5a00;
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-library [data-gk-resources] .gk-resource-meta .is-pending,
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-library [data-gk-resources] .gk-resource-meta .is-rejected {
  color: var(--r192-muted);
}
body.pf-portal-r192[data-portal-family="resource"] .gk-resource-library [data-gk-resources] .gk-resource-card h3 {
  margin-top: 0;
  font-weight: 600;
}

/* The resource hub is a catalog, so keep its authored heading and controls
   above the first real card without changing the detail-page reading layout. */
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-shell {
  padding-block: 14px 20px;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-heading {
  margin-bottom: 16px;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-heading .gk-eyebrow {
  display: none;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-heading h2 {
  max-width: 42ch;
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-heading .gk-lead {
  max-width: 76ch;
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-resource-catalog {
  margin-top: 8px;
  padding: 14px;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-resource-toolbar {
  gap: 8px;
  padding: 10px 12px;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-resource-filters {
  gap: 6px;
  margin: 8px 0 6px;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-filter-status {
  margin: 6px 0 8px;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-compare-bar:not(.is-active) {
  display: none !important;
  margin: 0 !important;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-resource-catalog:not(:has([data-gk-compare-pick]:checked)) .gk-compare-bar {
  display: none !important;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-resource-grid {
  gap: 12px;
  margin-top: 0;
}

/* Keep both category controls backed by the same real entry list: chips are
   the quick desktop scan, while the native select remains the compact mobile
   control. The client updates both counts from the current keyword matches. */
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-resource-filters {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 6px;
  padding: 0;
  overflow: visible;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-resource-filters button {
  min-height: 44px;
  padding: 8px 13px;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-resource-filters button[hidden] {
  display: none !important;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-category-select {
  display: none;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library > .gk-shell {
  padding-block: 8px 18px;
}

/* Resource discovery uses a narrow desktop directory and a full-width result
   area. The same controls collapse to the native select below tablet width. */
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-browse {
  display: grid;
  grid-template-columns: minmax(180px, 200px) minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-browse .gk-resource-toolbar {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-categories {
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid var(--r192-line);
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-categories .gk-resource-filters {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-categories .gk-resource-filters button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--r192-line);
  border-radius: 8px;
  background: var(--r192-surface);
  color: var(--r192-text);
  text-align: left;
  font: inherit;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-categories .gk-resource-filters button[hidden] {
  display: none !important;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-categories .gk-resource-filters button[aria-pressed="true"] {
  border-color: var(--r192-accent);
  background: var(--r192-accent);
  color: #fff;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-results {
  min-width: 0;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-results .gk-resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* The actual product hero is separate from the CMS resource heading. Keep
   authored navigation, title, lead and actions visible while removing the
   inherited oversized vertical padding. */
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact {
  min-height: 0 !important;
  padding-top: calc(var(--pf-header-height, 64px) + 16px) !important;
  padding-bottom: 12px !important;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact .pf-product-shell {
  padding-block: 0 !important;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact .pf-product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 18px;
  align-items: end;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact.is-text-only .pf-product-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  width: 100%;
  max-width: none;
  align-items: end;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact.is-text-only .pf-product-hero-copy > nav {
  grid-column: 1 / -1;
  margin: 0 0 2px;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact.is-text-only .pf-product-eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact .pf-product-hero-copy h1 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  max-width: 28ch;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact .pf-product-lead {
  grid-column: 1;
  grid-row: 3;
  max-width: 76ch;
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 1.45;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact .pf-product-actions {
  grid-column: 2;
  grid-row: 2 / 4;
  justify-content: flex-end;
  margin: 0;
}

/* Editorial/article prose: a readable measure with an optional native TOC. */
body.pf-portal-r192[data-portal-family="article"] .co-article {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  color: var(--r192-text);
}
body.pf-portal-r192[data-portal-family="article"] .pf-editorial-section,
body.pf-portal-r192[data-portal-family="content"] .pf-editorial-section {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  padding-inline: 24px;
  color: var(--r192-text);
}
/* A bounded reading shell must never inherit viewport-wide gutters. */
body.pf-portal-r192:is([data-portal-family="article"], [data-portal-family="content"]) .pf-editorial-items {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
body.pf-portal-r192:is([data-portal-family="article"], [data-portal-family="content"]) .pf-editorial-item {
  min-width: 0;
}
body.pf-portal-r192:is([data-portal-family="article"], [data-portal-family="content"]) .is-link_grid .pf-editorial-item {
  padding: 20px;
}
body.pf-portal-r192 .pf-search-page-r200 { width: min(900px, calc(100% - 32px)); margin: 32px auto 56px; }
@media (max-width: 760px) {
  body.pf-portal-r192:is([data-portal-family="article"], [data-portal-family="content"]) .pf-editorial-section { padding-inline: 16px; }
}
body.pf-portal-r192[data-portal-family="article"] .co-prose,
body.pf-portal-r192[data-portal-family="content"] .co-prose,
body.pf-portal-r192[data-portal-family="article"] .pf-editorial-section,
body.pf-portal-r192[data-portal-family="content"] .pf-editorial-section {
  color: var(--r192-text);
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
body.pf-portal-r192[data-portal-family="article"] .co-prose p,
body.pf-portal-r192[data-portal-family="content"] .co-prose p { margin-block: 0 1em; }
body.pf-portal-r192[data-portal-family="article"] .pf-article-reading-nav {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto 20px;
}
body.pf-portal-r192[data-portal-family="article"] :is(.pf-article-reading-nav details, .pf-article-reading-nav.pf-article-reading-return a) {
  border-color: var(--r192-line);
  border-radius: 8px;
  background: var(--r192-surface);
  color: var(--r192-text);
}
body.pf-portal-r192[data-portal-family="article"] .pf-article-reading-nav summary { min-height: 44px; padding: 10px 12px; }

/* Community remains a three-region information layout on wide screens. */
body.pf-portal-r192[data-portal-family="community"] .co-main {
  width: var(--content-shell);
  margin-inline: auto;
  padding: calc(var(--pf-header-height, 64px) + 20px) 0 60px;
  color: var(--r192-text);
}
body.pf-portal-r192[data-portal-family="community"] .co-community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
  align-items: start;
}
body.pf-portal-r192[data-portal-family="community"] .co-community-layout > * { min-width: 0; }
body.pf-portal-r192[data-portal-family="community"] :is(.co-sidebar, .co-rightbar, .co-feed, .co-topic-column) { min-width: 0; }
body.pf-portal-r192[data-portal-family="community"] .co-sidebar,
body.pf-portal-r192[data-portal-family="community"] .co-rightbar { color: var(--r192-muted); }
body.pf-portal-r192[data-portal-family="community"] :is(.co-panel, .co-compose, .co-circle-card, .co-industry-picker, .co-side-section .co-panel) {
  border: 1px solid var(--r192-line);
  border-radius: 12px;
  background: var(--r192-surface);
  color: var(--r192-text);
}
body.pf-portal-r192[data-portal-family="community"] .co-feed > article {
  padding: 20px 0;
  border-bottom: 1px solid var(--r192-line);
}
body.pf-portal-r192[data-portal-family="community"] :is(.co-main h1, .co-main h2, .co-main h3, .co-feed h3, .co-side-section h2, .co-circle-card h2) { color: var(--r192-text); }
body.pf-portal-r192[data-portal-family="community"] :is(.co-main p, .co-excerpt, .co-meta, .co-feed-head p, .co-side-section, .co-circle-card > p) { color: var(--r192-muted); }
body.pf-portal-r192[data-portal-family="community"] :is(.co-button, .co-compose button, .co-search button) {
  min-height: 44px;
  border: 1px solid var(--r192-accent);
  border-radius: 8px;
  background: var(--r192-accent);
  color: #fff;
}
body.pf-portal-r192[data-portal-family="community"] .co-main :is(input:not([type="checkbox"]), select, textarea) {
  min-height: 44px;
  border: 1px solid #c9ceda;
  border-radius: 8px;
  background: var(--r192-surface);
  color: var(--r192-text);
  font-size: 16px;
}

/* The community renderer is a light information portal even though the
   shipped community sheets still carry their older dark defaults. Keep the
   feed and side rail as distinct reading cards on wide screens. */
@media (min-width: 761px) {
  body.pf-portal-r192[data-portal-family="community"] .co-main .co-toolbar {
    gap: 16px;
    padding-block: 12px 16px;
    margin-bottom: 8px;
  }
  body.pf-portal-r192[data-portal-family="community"] .co-main .co-modes {
    padding-bottom: 8px;
    margin-bottom: 12px;
  }
  body.pf-portal-r192[data-portal-family="community"] .co-topic-column {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--r192-line);
    border-radius: 12px;
    background: var(--r192-surface);
  }
  body.pf-portal-r192[data-portal-family="community"] .co-topic-column .co-feed-head {
    margin-bottom: 10px;
  }
  body.pf-portal-r192[data-portal-family="community"] .co-topic-column .co-filters {
    padding-block: 8px;
    margin-bottom: 8px;
  }
  body.pf-portal-r192[data-portal-family="community"] .co-feed {
    background: var(--r192-surface);
  }
  body.pf-portal-r192[data-portal-family="community"] .co-feed > article {
    padding: 18px 0;
    border-bottom-color: var(--r192-line);
    background: var(--r192-surface);
  }
  body.pf-portal-r192[data-portal-family="community"] .co-rightbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  body.pf-portal-r192[data-portal-family="community"] .co-rightbar .co-side-section {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--r192-line);
    border-radius: 12px;
    background: var(--r192-surface);
    color: var(--r192-text);
  }
}

/* Native compare dialogs must remain readable and contained on a narrow
   viewport; the page itself should never become the horizontal scroller. */
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-compare-dialog {
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - var(--pf-header-height, 64px) - 24px);
  overflow: auto;
  color: var(--r192-text);
  background: var(--r192-surface);
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-compare-dialog :is(h2, h3, p, dt, dd, th, td, a, button) {
  color: var(--r192-text);
  overflow-wrap: anywhere;
}
body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-compare-dialog :is(.gk-compare-remove, a, button) {
  min-height: 44px;
}

/* Auth entry is deliberately content-first: the old character film is not
   needed for a sign-in/register task. */
body.pf-portal-r192[data-portal-family="auth"] .pf-access-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  width: min(1040px, calc(100% - 40px));
  min-height: calc(100dvh - 110px);
  margin-inline: auto;
  padding: 144px 20px 60px;
}
body.pf-portal-r192[data-portal-family="auth"] .pf-access-film { display: none; }
body.pf-portal-r192[data-portal-family="auth"] .pf-access-intro,
body.pf-portal-r192[data-portal-family="auth"] .pf-auth-panel {
  min-width: 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--r192-line);
  border-radius: 12px;
  background: var(--r192-surface);
}
body.pf-portal-r192[data-portal-family="auth"] .pf-access-intro p { color: var(--r192-muted); line-height: 1.7; }
body.pf-portal-r192[data-portal-family="auth"] .pf-auth-panel :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9ceda;
  border-radius: 8px;
  background: var(--r192-surface);
  color: var(--r192-text);
  font-size: 16px;
}
body.pf-portal-r192[data-portal-family="auth"] .pf-auth-panel button,
body.pf-portal-r192[data-portal-family="auth"] .pf-auth-panel .pf-button { min-height: 44px; }

/* App/download cards use the real release metadata without changing links. */
body.pf-portal-r192[data-portal-family="download"] #main,
body.pf-portal-r192[data-portal-family="download"] .pf-app-release {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
}
body.pf-portal-r192[data-portal-family="download"] .pf-app-release {
  padding: 24px;
  border: 1px solid var(--r192-line);
  border-radius: 12px;
  background: var(--r192-surface);
}
body.pf-portal-r192[data-portal-family="download"] .pf-app-release-meta,
body.pf-portal-r192[data-portal-family="download"] .pf-app-hash { color: var(--r192-muted); line-height: 1.7; }
body.pf-portal-r192[data-portal-family="download"] .pf-app-release :is(a, button, summary) { min-height: 44px; }

/* Message/error pages stay content-first even when the renderer emits only
   a semantic status panel. This belongs to the content sheet because that is
   the family that loads it. */
body.pf-portal-r192[data-portal-family="content"] .portal-status-panel {
  width: min(720px, calc(100% - 40px));
  margin: calc(var(--pf-header-height, 64px) + 32px) auto 56px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--r192-line);
  border-radius: 12px;
  background: var(--r192-surface);
  color: var(--r192-text);
  text-align: center;
}
body.pf-portal-r192[data-portal-family="content"] :is(.portal-status-panel h1, .portal-status-panel h2) {
  margin: 0 0 10px;
  color: var(--r192-text);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}
body.pf-portal-r192[data-portal-family="content"] .portal-status-panel p {
  margin: 0 auto 18px;
  max-width: 60ch;
  color: var(--r192-muted);
  line-height: 1.7;
}
body.pf-portal-r192[data-portal-family="content"] .portal-status-panel :is(a, button, .button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--r192-accent);
  border-radius: 8px;
  background: var(--r192-accent);
  color: #fff;
  text-decoration: none;
}

/* CMS-authored media is an ordinary reading element: keep its safe source,
   aspect ratio and controls while allowing it to fit every content column. */
body.pf-portal-r192[data-portal-family="content"] .portal-cms-media,
body.pf-portal-r192[data-portal-family="resource"] .portal-cms-media,
body.pf-portal-r192[data-portal-family="article"] .portal-cms-media,
body.pf-portal-r192[data-portal-family="community"] .portal-cms-media,
body.pf-portal-r192[data-portal-family="download"] .portal-cms-media {
  width: 100%;
  max-width: 100%;
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid var(--r192-line);
  border-radius: 12px;
  background: var(--r192-surface);
}
body.pf-portal-r192[data-portal-family="content"] .portal-cms-media :is(img, video),
body.pf-portal-r192[data-portal-family="resource"] .portal-cms-media :is(img, video),
body.pf-portal-r192[data-portal-family="article"] .portal-cms-media :is(img, video),
body.pf-portal-r192[data-portal-family="community"] .portal-cms-media :is(img, video),
body.pf-portal-r192[data-portal-family="download"] .portal-cms-media :is(img, video) {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1050px) {
  body.pf-portal-r192[data-portal-family="community"] .co-community-layout { grid-template-columns: minmax(0, 1fr) 220px; }
  body.pf-portal-r192[data-portal-family="community"] .co-rightbar { grid-column: 2; }
  body.pf-portal-r192[data-portal-family="resource"] .gk-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body.pf-portal-r192[data-portal-family="resource"] .gk-resource-library,
  body.pf-portal-r192[data-portal-family="article"] .co-article,
  body.pf-portal-r192[data-portal-family="article"] .pf-editorial-section,
  body.pf-portal-r192[data-portal-family="article"] .pf-article-reading-nav,
  body.pf-portal-r192[data-portal-family="download"] :is(#main, .pf-app-release) { width: calc(100% - 24px); }
  body.pf-portal-r192[data-portal-family="resource"] .gk-resource-toolbar { grid-template-columns: minmax(0, 1fr); }
  body.pf-portal-r192[data-portal-family="resource"] .gk-resource-grid { grid-template-columns: minmax(0, 1fr); }
  body.pf-portal-r192[data-portal-family="community"] .co-main { width: calc(100% - 24px); padding: calc(var(--pf-header-height, 112px) + 20px) 0 42px; }
  body.pf-portal-r192[data-portal-family="community"] .co-community-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.pf-portal-r192[data-portal-family="community"] .co-rightbar { grid-column: 1; }
  body.pf-portal-r192[data-portal-family="community"] .co-sidebar { overflow-x: auto; }
  body.pf-portal-r192[data-portal-family="auth"] .pf-access-shell { grid-template-columns: minmax(0, 1fr); width: calc(100% - 24px); min-height: 0; padding: 136px 0 42px; }
  body.pf-portal-r192[data-portal-family="auth"] .pf-access-intro,
  body.pf-portal-r192[data-portal-family="auth"] .pf-auth-panel { padding: 20px; }
}
@media (max-width: 640px) {
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-resource-catalog { padding: 10px; }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-heading { margin-bottom: 12px; }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-heading h2 {
    font-size: 18px;
    line-height: 1.35;
  }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-heading .gk-lead {
    display: none;
  }
  /* Keep one catalog panel on a narrow screen; the controls remain fully
     usable without adding a second white frame inside it. */
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-resource-toolbar {
    padding: 0;
    border: 0;
    background: transparent;
  }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-resource-filters {
    display: none;
  }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-category-select {
    display: block;
  }
}
@media (max-width: 999px) {
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-browse {
    grid-template-columns: minmax(0, 1fr);
  }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-categories {
    display: none;
  }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] #resource-library .gk-category-select {
    display: block;
  }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-results .gk-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-browse .gk-resource-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .gk-catalog-results .gk-resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact .pf-product-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact.is-text-only .pf-product-hero-copy {
    grid-template-columns: minmax(0, 1fr);
  }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact .pf-product-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
  body.pf-portal-r192.pf-inner-r192.pf-resource-hub[data-portal-family="resource"] .pf-product-hero.is-compact .pf-product-hero-copy :is(h1, .pf-product-lead) {
    grid-row: auto;
  }
}

/* R198 mobile service readability: the AI service cards have enough room as
   a single stack, but not as two narrow columns. Keep the desktop two-column
   presentation and give facts a stable label/value split on phones. */
@media (max-width: 700px) {
  body.pf-portal-r192.pf-inner-r192.pf-product-suite[data-portal-family="content"] #ai-path .pf-product-path-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.pf-portal-r192.pf-inner-r192.pf-product-suite[data-portal-family="content"] #ai-path .pf-product-facts div {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 8px;
    min-width: 0;
  }
  body.pf-portal-r192.pf-inner-r192.pf-product-suite[data-portal-family="content"] #ai-path .pf-product-facts dd {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  body.pf-portal-r192[data-portal-family="home"] .hp191-facts div {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
  }
  body.pf-portal-r192[data-portal-family="home"] .hp191-facts dd {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 390px) {
  body.pf-portal-r192[data-portal-family="article"] :is(.co-prose, .pf-editorial-section) { font-size: 15px; }
}
@media (prefers-color-scheme: dark) {
  body.pf-portal-r192[data-portal-family="home"],
  body.pf-portal-r192[data-portal-family="content"],
  body.pf-portal-r192[data-portal-family="resource"],
  body.pf-portal-r192[data-portal-family="article"],
  body.pf-portal-r192[data-portal-family="community"],
  body.pf-portal-r192[data-portal-family="auth"],
  body.pf-portal-r192[data-portal-family="download"] { color-scheme: light; }
}

/* R195 article/readability repair. The legacy enterprise sheet intentionally
   uses pale text for cinematic media; ordinary light editorial sections need
   a dark ink contract instead. Keep has-media sections on their authored
   dark treatment. */
body.pf-portal-r192.pf-public-suite[data-portal-family="article"] :is(.pf-editorial-section:not(.has-media), .co-article, .co-prose, .pf-article-reading-nav) :is(h1, h2, h3, h4, p, li, dt, dd, summary) {
  color: var(--r192-text);
}
body.pf-portal-r192.pf-public-suite[data-portal-family="article"] .pf-editorial-section:not(.has-media) .pf-editorial-item h3 {
  color: var(--r192-text);
  font-weight: 650;
  text-wrap: pretty;
}
body.pf-portal-r192.pf-public-suite[data-portal-family="article"] :is(.pf-editorial-section:not(.has-media), .co-article, .co-prose, .pf-article-reading-nav) :is(a:not(.pf-button):not(.pf-product-button):not(.gk-button):not(.co-button), .pf-text-link:not(.pf-button):not(.pf-product-button):not(.gk-button):not(.co-button)) {
  color: var(--r192-accent-strong);
  text-decoration-color: currentColor;
}
body.pf-portal-r192.pf-public-suite[data-portal-family="article"] :is(.pf-editorial-section:not(.has-media), .co-article, .co-prose, .pf-article-reading-nav) :is(a:not(.pf-button):not(.pf-product-button):not(.gk-button):not(.co-button), .pf-text-link:not(.pf-button):not(.pf-product-button):not(.gk-button):not(.co-button)):hover {
  color: #342da4;
}
body.pf-portal-r192.pf-public-suite[data-portal-family="content"] .pf-editorial-section:not(.has-media) :is(h1, h2, h3, h4, p, li, dt, dd) {
  color: var(--r192-text);
}
body.pf-portal-r192.pf-public-suite[data-portal-family="content"] .pf-editorial-section:not(.has-media) :is(a:not(.pf-button):not(.pf-product-button):not(.gk-button):not(.co-button), .pf-text-link:not(.pf-button):not(.pf-product-button):not(.gk-button):not(.co-button)) {
  color: var(--r192-accent-strong);
}
body.pf-portal-r192.pf-public-suite[data-portal-family="resource"] .pf-editorial-section:not(.has-media) :is(h1, h2, h3, h4, p, li, dt, dd) {
  color: var(--r192-text);
}
body.pf-portal-r192.pf-public-suite[data-portal-family="resource"] .pf-editorial-section:not(.has-media) .pf-editorial-item h3 {
  color: var(--r192-text);
  font-weight: 650;
  text-wrap: pretty;
}
body.pf-portal-r192.pf-public-suite[data-portal-family="resource"] .pf-editorial-section:not(.has-media) :is(a:not(.pf-button):not(.pf-product-button):not(.gk-button):not(.co-button), .pf-text-link:not(.pf-button):not(.pf-product-button):not(.gk-button):not(.co-button)) {
  color: var(--r192-accent-strong);
}
body.pf-portal-r192.pf-public-suite[data-portal-family="article"] .pf-editorial-section:not(.has-media).is-link_grid .pf-editorial-item,
body.pf-portal-r192.pf-public-suite[data-portal-family="content"] .pf-editorial-section:not(.has-media).is-link_grid .pf-editorial-item,
body.pf-portal-r192.pf-public-suite[data-portal-family="resource"] .pf-editorial-section:not(.has-media).is-link_grid .pf-editorial-item {
  border: 1px solid var(--r192-line);
  border-radius: 12px;
  background: var(--r192-surface);
}

/* Keep the public contribution guidance and consent copy readable against
   the light resource surface; the submission fields and legal text remain
   unchanged. */
body.pf-portal-r192.pf-public-suite[data-portal-family="resource"] .gk-contribute :is(.gk-contribute-boundary, .gk-contribute-guide p, .gk-contribution-consents label) {
  color: var(--r192-muted);
}
body.pf-portal-r192.pf-public-suite[data-portal-family="resource"] .gk-contribute :is(.gk-contribute-guide strong, .gk-contribute-guide h3) {
  color: var(--r192-text);
}
body.pf-portal-r192.pf-public-suite[data-portal-family="resource"] .gk-contribute .gk-contribution-consents a {
  color: var(--r192-accent-strong);
}

/* The homepage embeds the reset calendar inside the light portal. Its
   standalone sheet supplies dark defaults, so replace only its scoped tokens
   and pressed/hover states here; the disclosure and calendar behavior stay
   native. */
body.pf-portal-r192.pf-public-suite[data-portal-family="home"] .fw-reset-home-wrap .fw-reset {
  --rs-bg: #fff;
  --rs-line: #dfe2ea;
  --rs-muted: #596174;
  --rs-text: #171b2d;
  --rs-accent: #4a41ca;
  color: var(--rs-text);
  background: var(--rs-bg);
}
body.pf-portal-r192.pf-public-suite[data-portal-family="home"] .fw-reset-home-wrap .fw-reset :is(a, .fw-reset-eyebrow, .fw-reset-event-status, .fw-reset-fold > summary) {
  color: var(--rs-accent);
}
body.pf-portal-r192.pf-public-suite[data-portal-family="home"] .fw-reset-home-wrap .fw-reset button:hover {
  background: #efefff;
  border-color: var(--rs-accent);
}
body.pf-portal-r192.pf-public-suite[data-portal-family="home"] .fw-reset-home-wrap .fw-reset button[aria-pressed="true"] {
  background: var(--rs-accent);
  color: #fff;
  border-color: var(--rs-accent);
}
body.pf-portal-r192.pf-public-suite[data-portal-family="home"] .fw-reset-home-wrap .fw-reset .fw-reset-days .fw-reset-has-event {
  background: #efefff;
  color: var(--rs-accent);
}
body.pf-portal-r192.pf-public-suite[data-portal-family="home"] .fw-reset-home-wrap noscript {
  color: var(--rs-muted);
}
