/* Public shell and content surfaces. */
body:not(.admin-page) {
  --surface: #fff;
  --card: #fff;
  --ink: #101b2e;
  --muted: #526174;
  --line: #dce2e9;
  --blue: #086d91;
  --teal: #0aa4bd;
  --shadow: 0 4px 18px #10233c0b;
  --portal-shell-navy: #0b1c34;
  --portal-shell-navy-2: #122843;
  --portal-shell-line: #dce2e9;
  --portal-shell-blue: #0aa4bd;
}
body:not(.admin-page) .topbar { background: #0b1c34; color: #fff; box-shadow: none; }
body:not(.admin-page) .portal-brand-icon { box-shadow: none; }
body:not(.admin-page) .portal-search,
body:not(.admin-page) .portal-search:focus-within { background: #fff; border-color: #dce2e9; }
body:not(.admin-page) .portal-search input { color: var(--ink); }
body:not(.admin-page) .portal-search kbd { background: #eef2f5; color: var(--muted); }
body:not(.admin-page) .portal-search-results,
body:not(.admin-page) .main-nav .nav-children { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
body:not(.admin-page) .portal-search-result,
body:not(.admin-page) .main-nav .nav-children a { color: var(--ink); }
body:not(.admin-page) .portal-search-result:hover,
body:not(.admin-page) .main-nav .nav-children a:hover,
body:not(.admin-page) .main-nav .nav-children a.active { color: #075c78; background: #eaf5f8; }
body:not(.admin-page) .portal-search-result small { color: var(--muted); }
body:not(.admin-page) .portal-public-workspace > .sidebar { background: #f7f9fb; color: var(--ink); border-color: var(--line); scrollbar-color: #c3ceda transparent; }
body:not(.admin-page) .portal-public-workspace > .sidebar::-webkit-scrollbar-thumb { background: #c3ceda; }
body:not(.admin-page) .site-sidebar .nav-link,
body:not(.admin-page) .site-sidebar .nav-children .nav-link { color: var(--ink); padding-inline: 10px; }
body:not(.admin-page) .site-sidebar .nav-row:hover,
body:not(.admin-page) .site-sidebar .nav-item.open > .nav-row,
body:not(.admin-page) .site-sidebar .nav-item.active-branch > .nav-row { background: #eaf1f5; box-shadow: none; }
body:not(.admin-page) .site-sidebar .nav-link.active,
body:not(.admin-page) .site-sidebar .nav-link:hover,
body:not(.admin-page) .site-sidebar .nav-expand:hover { color: #075c78; background: #e3f1f6; box-shadow: none; }
body:not(.admin-page) .site-sidebar .nav-expand { color: var(--muted); }
body:not(.admin-page) .site-sidebar .nav-children { border-color: var(--line); margin-left: 11px; }
body:not(.admin-page) .site-sidebar :is(.nav-icon,.nav-dot) { display: none; }
body:not(.admin-page) .portal-footer { color: var(--muted); background: #f7f9fb; border-color: var(--line); }
body:not(.admin-page) .portal-footer :is(p,a) { color: var(--muted); }
body:not(.admin-page) .portal-footer a:hover { color: var(--blue); }
body:not(.admin-page) .portal-public-workspace > .workspace-main { padding: clamp(14px, 2.5vw, 30px); }
body:not(.admin-page) :is(.hero,.section-hero,.tools-hub-hero,.library-hero,.home-content-showcase) {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  border-color: var(--line);
}
body:not(.admin-page) :is(.hero,.section-hero,.tools-hub-hero,.library-hero) :is(h1,h2) { color: var(--ink); }
body:not(.admin-page) :is(.hero,.section-hero,.tools-hub-hero,.library-hero) :is(.lead,.eyebrow) { color: var(--muted); }
body:not(.admin-page) :is(.section-hero,.home-content-showcase)::before,
body:not(.admin-page) :is(.section-hero,.home-content-showcase)::after,
body:not(.admin-page) :is(.section-hero-art,.section-hero-dot,.section-hero-rule,.section-category-icon,.section-category-arrow),
#content-view > .eyebrow { display: none; }
body:not(.admin-page) .section-hero { grid-template-columns: 1fr; min-height: 0; }
body:not(.admin-page) .section-child-card,
body:not(.admin-page) .section-child-card:hover { display: block; min-height: 0; background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
body:not(.admin-page) .section-child-card::before,
body:not(.admin-page) .section-child-card::after,
body:not(.admin-page) .section-category-copy small { display: none; }
body:not(.admin-page) .hh-managed .hh-card {
  --hh-background: #fff !important;
  --hh-background-end: #fff !important;
  --hh-ink: #101b2e !important;
  --hh-muted: #526174 !important;
  --hh-accent: #086d91 !important;
  --hh-button-bg: #0b1c34 !important;
  --hh-button-ink: #fff !important;
  box-shadow: none;
}
body:not(.admin-page) .home-hero[hidden],
body:not(.admin-page) .home-content-showcase[hidden] { display: none; }
body:not(.admin-page) .home-content-showcase { padding: 0; border: 0; overflow: visible; }
.publication-date { display: block; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.home-feed-section { margin-bottom: 24px; }
.home-feed-section > :is(h1,h2), .home-section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.2;
}
.home-feed-section > :is(h1,h2)::after, .home-section-heading h2::after {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 6px;
  background: var(--teal);
}
.editorial-feature { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 10px; }
.editorial-feature-1 { grid-template-columns: minmax(0, 1fr); }
.editorial-feature-3 .editorial-card:first-child { grid-row: span 2; }
.editorial-grid, .home-content-showcase .home-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.editorial-card { min-width: 0; display: flex; flex-direction: column; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.editorial-card:hover { border-color: var(--blue); color: var(--blue); }
.editorial-card img { width: 100%; aspect-ratio: 2.45; min-height: 0; object-fit: cover; border-radius: 4px; background: #f2f5f8; }
.editorial-feature .editorial-card:first-child img { flex: 1; aspect-ratio: 2.3; }
.editorial-card-copy { padding: 6px 6px 4px; }
.editorial-card-copy :is(h2,h3) { margin: 0 0 3px; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.editorial-feature .editorial-card:first-child :is(h2,h3) { font-size: clamp(1rem, 2vw, 1.4rem); }
@media (max-width: 720px) {
  .editorial-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-feature .editorial-card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .editorial-feature-2 .editorial-card:nth-child(2) { grid-column: 1 / -1; }
  .editorial-grid, .home-content-showcase .home-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 940px) {
  body:not(.admin-page) .portal-header-compact .main-nav { background: #0b1c34; }
  body:not(.admin-page) .main-nav .nav-children { background: #fff; }
}
body:not(.admin-page) .ca-promo {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}
body:not(.admin-page) .ca-promo :is(h2,h3,p,.ca-promo-label,.ca-promo-features) { color: var(--ink); }
body:not(.admin-page) .ca-promo .ca-promo-step { background: #f7f9fb; border-color: var(--line); }
body:not(.admin-page) .library-hero p { color: var(--muted); }
@media (max-width: 480px) {
  body:not(.admin-page) .portal-header-main { gap: 6px; }
  body:not(.admin-page) .portal-header-controls { gap: 4px; }
}

.review-archive-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.review-archive-heading h1 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.2; }
.review-archive-heading h1::after { content: ''; display: block; width: 42px; height: 3px; margin-top: 6px; background: var(--teal); }
.review-archive-heading a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

/* DP_PRODUCT_PHOTO_FIT_V1 */
[data-home-editorial] > .home-feed-section:first-child .editorial-card img {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: clamp(4px, 1vw, 10px);
}

#section-content > .home-feed-section .editorial-card > img {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: clamp(116px, 17vw, 160px);
  aspect-ratio: auto;
  object-fit: scale-down !important;
  object-position: center;
  padding: 12px;
  background: #fff;
}

html.dp-product-review #content-view img.content-cover,
html.dp-product-review #section-content img.content-cover,
html.dp-product-review :is(#content-view, #section-content) .content-body img {
  box-sizing: border-box;
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 360px) !important;
  max-height: min(260px, 50vh) !important;
  margin: 18px auto 24px;
  object-fit: contain !important;
  padding: 8px;
  background: #fff;
}
/* END DP_PRODUCT_PHOTO_FIT_V1 */
