/* Polar Hub — D / editorial narrative. Shared by both language versions.
   Outdoor orange with dark button labels and a readable text shade.
   Existing content, image crops with editorial meaning and anchor IDs survive.
   Remove polarhub-design-d.php to roll back this visual layer. */
body.ph-design-d {
  --d-ink: #101b26;
  --d-navy: #0b2545;
  --d-paper: #fff;
  --d-ivory: #f7f8f9;
  --d-line: #dce3e8;
  --d-muted: #5b6b76;
  --d-accent: #ff6b00;
  --d-accent-hover: #e85d00;
  --d-accent-text: #c24b00;
  --d-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --d-sans: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --d-ease: cubic-bezier(.16, 1, .3, 1);
  background: var(--d-paper);
  color: var(--d-ink);
  font-family: var(--d-sans);
  -webkit-font-smoothing: antialiased;
}
html[lang^="en"] body.ph-design-d { --d-serif: Georgia, "Times New Roman", serif; }
.ph-design-d :is(.ph-home, .ph-about, .ph-antarctica) {
  --ph-ink: var(--d-ink);
  --ph-muted: var(--d-muted);
  --ph-link: var(--d-ink);
  --ph-rule: var(--d-line);
  --ph-ice: var(--d-ivory);
  --ph-dark: var(--d-ink);
  --ph-accent: var(--d-accent);
  font-family: var(--d-sans);
  line-height: 1.9;
}
.ph-design-d :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--d-serif) !important;
  letter-spacing: .02em;
  text-shadow: none !important;
  overflow-wrap: break-word;
}
.ph-design-d :is(h1,h2,h3,h4,h5,h6) :is(a,span) { font-family: inherit !important; }
.ph-design-d :is(.ph-wrap, .ph-about .ph-wrap, .h-section-boxed-container, .ph-eic-wrap) {
  width: min(1240px, calc(100% - 80px));
  max-width: 1240px;
  margin-inline: auto;
}
.ph-design-d :is(a, button, summary, input, textarea, select):focus-visible {
  outline: 2px solid var(--d-accent);
  outline-offset: 5px;
}
.ph-design-d :is(.h-hero, .ph-action, .page-footer) :is(a, button):focus-visible {
  outline-color: #fff;
}

/* Quiet, legible navigation, including the existing language menu and drawer. */
.ph-design-d .h-navigation {
  padding-block: 0 !important;
  background: rgba(16, 27, 38, .94) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}
.ph-design-d .h-navigation .h-section-grid-container { padding-block: 14px !important; }
.ph-design-d .h-navigation :is(.h-logo__image, .h-logo__alt-image) {
  min-width: 132px; max-width: 160px;
}
.ph-design-d .h-menu-horizontal > .colibri-menu > li > a {
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: .08em;
}
.ph-design-d .h-menu-horizontal a { text-shadow: none !important; }
.ph-design-d .h-menu-horizontal .colibri-menu > li > a {
  color: #fff !important;
  background-color: transparent !important;
}
.ph-design-d .h-menu-horizontal .colibri-menu > li::before,
.ph-design-d .h-menu-horizontal .colibri-menu > li::after {
  background-color: var(--d-accent) !important;
}
.ph-design-d .h-hamburger-button {
  border-radius: 0; box-shadow: none; background: transparent;
}
.ph-design-d .h-navigation .ph-lang-switch .ph-lang-btn {
  background: transparent; color: #fff; border: 1px solid #ffffff70; border-radius: 0;
  min-height: 40px;
}
.ph-design-d .ph-lang-switch .ph-lang-menu { border-radius: 0; border-color: var(--d-line); }
.ph-design-d .offscreen-content .ph-lang-switch .ph-lang-static a.is-current { border-color: var(--d-accent); }
.ph-design-d .ph-lang-switch .ph-lang-menu a.is-current::after { color: var(--d-accent); }

/* Retain the existing cover video/photo; align the story to a common left edge. */
.ph-design-d .h-hero {
  min-height: 580px !important;
  padding-block: 130px 80px !important;
  align-items: flex-end !important;
}
.ph-design-d:is(.page-id-67, .page-id-1401) .h-hero {
  min-height: min(920px, 92svh) !important;
  padding-bottom: 90px !important;
}
.ph-design-d .h-hero .h-section-grid-container {
  position: relative;
  z-index: 1;
  padding-top: 48px !important;
}
.ph-design-d .h-hero > .background-wrapper::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,20,30,.25), rgba(11,20,30,.2) 32%, rgba(10,17,25,.85));
  pointer-events: none;
}
.ph-design-d-inner .h-hero {
  background: linear-gradient(180deg, #0b141e55, #0a1119cc), url('polarhub-design-d-cover.jpg') center 45% / cover;
}
.ph-design-d-inner .h-hero > .background-wrapper { display: none; }
.ph-design-d .h-hero .h-column { flex-basis: 100% !important; max-width: 100% !important; }
.ph-design-d .h-hero .h-column__inner { padding-inline: 0 !important; }
.ph-design-d .h-hero :is(.h-heading, .h-heading__outer, .h-text, .h-column__content) { text-align: left !important; }
.ph-design-d .h-hero h1 {
  text-align: left !important;
  letter-spacing: .02em !important;
  max-width: 16em;
  margin: 0 0 24px;
  color: #fff !important;
  font-size: clamp(38px, 5.2vw, 76px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
.ph-design-d .h-hero .ph-hero-english {
  color: #e2e6e9; font-size: 17px !important; letter-spacing: .18em !important;
}
.ph-design-d .ph-hero-position {
  max-width: 46em; margin: 22px 0 0; padding: 0;
  color: #e2e6e9; font-size: 16px; text-align: left; text-wrap: pretty;
}
.ph-design-d .ph-hero-cta { justify-content: flex-start; gap: 16px; margin-top: 32px; }
.ph-design-d :is(.ph-cta, .ph-button, .h-button, .ph-eic-btn) {
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 48px;
  padding: 14px 28px;
  font-family: var(--d-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.6;
  transition: background .25s, color .25s, border-color .25s;
}
.ph-design-d :is(.ph-cta-primary, .ph-home .ph-button, .ph-antarctica .ph-button, .h-button, .ph-eic-btn) {
  background: var(--d-accent) !important; border-color: var(--d-accent) !important; color: var(--d-ink) !important;
}
.ph-design-d :is(.ph-cta-primary, .ph-home .ph-button, .ph-antarctica .ph-button, .h-button, .ph-eic-btn):hover {
  background: var(--d-accent-hover) !important; border-color: var(--d-accent-hover) !important;
  color: var(--d-ink) !important; transform: none;
}
.ph-design-d .ph-cta-ghost { border: 1px solid #ffffff80; background: transparent; color: #fff !important; }
.ph-design-d .ph-cta-ghost:hover { background: #ffffff18; transform: none; }

/* Section rhythm and the orange hairline are the common D visual signature. */
.ph-design-d :is(.ph-section, .ph-about .ph-section, .ph-eic-sec) { padding-block: 100px; }
.ph-design-d :is(.ph-section-head, .ph-about .ph-section-head) {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px; align-items: end; margin-bottom: 56px;
}
.ph-design-d :is(.ph-home, .ph-about, .ph-antarctica) h2,
.ph-design-d .ph-eic-h2 {
  font-size: clamp(30px, 3.3vw, 46px); line-height: 1.4; font-weight: 700;
}
.ph-design-d .ph-section-head h2::before,
.ph-design-d .ph-eic-h2::before {
  content: ""; display: block; width: 34px; height: 1px;
  margin-bottom: 24px; background: var(--d-accent);
}
.ph-design-d .ph-section-head .ph-section-intro { margin: 0; font-size: 14px; line-height: 1.9; }
.ph-design-d .ph-impact { padding: 36px 0; background: #fff; }
.ph-design-d .ph-impact-list { gap: 32px; }
.ph-design-d .ph-impact-list dt { margin-bottom: 12px; letter-spacing: .18em; }
.ph-design-d .ph-impact-list strong {
  display: block; margin-bottom: 6px; font-family: var(--d-serif); font-size: clamp(23px, 2.3vw, 34px); font-weight: 600;
}
.ph-design-d .ph-business-grid { gap: 48px; }
.ph-design-d .ph-business-card { padding-top: 28px; grid-template-columns: 26px minmax(0,1fr); }
.ph-design-d .ph-business-icon { color: var(--d-accent); width: 23px; height: 23px; }
.ph-design-d .ph-business-card h3 { font-size: 25px; }
.ph-design-d .ph-business-card:hover { border-color: var(--d-accent); }
.ph-design-d .ph-business-card p { font-size: 15px; }
.ph-design-d .ph-flagships { background: var(--d-ivory); }
.ph-design-d .ph-flagship-grid { gap: 64px; }
.ph-design-d .ph-project-card > a { overflow: hidden; }
.ph-design-d .ph-project-card img { aspect-ratio: 4 / 3; transition: transform .8s var(--d-ease); }
.ph-design-d .ph-project-card > a:hover img { transform: scale(1.025); }
.ph-design-d .ph-project-copy { padding-top: 30px; }
.ph-design-d .ph-record-tag { color: var(--d-accent-text); letter-spacing: .16em; font-size: 12px; }
.ph-design-d .ph-project-copy h3 { margin-block: 14px 18px; font-size: clamp(26px, 2.7vw, 36px); }
.ph-design-d .ph-project-copy p { font-size: 15px; }
.ph-design-d .ph-watch { margin-top: 56px; padding-top: 36px; border-color: var(--d-line); }
.ph-design-d .ph-watch h3 { font-size: 26px; }
.ph-design-d .ph-news-card { padding-block: 32px; }
.ph-design-d .ph-news-copy { column-gap: 48px; grid-template-columns: 150px minmax(0, 1fr); }
.ph-design-d .ph-home .ph-news-category { font-size: 12px; letter-spacing: .14em; }
.ph-design-d .ph-news-copy h3 { font-size: 24px; }
.ph-design-d .ph-news-copy > p:not(.ph-news-category) { font-size: 15px; }
.ph-design-d :is(.ph-news-copy, .ph-project-copy, .ph-watch) h3 a:hover { color: var(--d-accent-text); }
.ph-design-d .ph-home .ph-action {
  padding: 110px 0; background: linear-gradient(150deg, var(--d-navy), var(--d-ink)); text-align: center;
}
.ph-design-d .ph-action .ph-wrap { display: flex; flex-direction: column; gap: 34px; }
.ph-design-d .ph-home .ph-action h2 { max-width: 24em; margin-inline: auto; text-align: center; font-size: clamp(30px,3.4vw,44px); }
.ph-design-d .ph-home .ph-action p { margin: 24px auto 0; font-size: 15px; }

/* About: publication-style profiles, a dark mission spread, restrained timeline. */
.ph-design-d .ph-about-lead { max-width: 48em; font-family: var(--d-serif); font-size: 21px; line-height: 2; }
.ph-design-d .ph-about-facts { padding-block: 30px; margin-bottom: 48px; }
.ph-design-d .ph-about-facts dt { letter-spacing: .12em; }
.ph-design-d .ph-about-facts dd { font-family: var(--d-serif); font-size: 17px; }
.ph-design-d .ph-about-mission { background: var(--d-ink); }
.ph-design-d .ph-about-mission :is(h2,h3) { color: #fff; }
.ph-design-d .ph-about-mission-card { border-color: #ffffff35; padding-top: 30px; }
.ph-design-d .ph-about-mission-card p { color: #d5dde3; }
.ph-design-d .ph-about-mission .ph-about-paths-label { color: #d5dde3; }
.ph-design-d .ph-about .ph-about-paths a {
  min-height: 44px; border-radius: 0; background: transparent; border-color: #ffffff60; color: #fff;
}
.ph-design-d .ph-about .ph-about-paths a:hover { border-color: #fff; }
.ph-design-d .ph-about .ph-about-sub { border-left-width: 2px; padding-left: 20px; font-size: 27px; }
.ph-design-d .ph-about .ph-group-title { margin-top: 44px; letter-spacing: .16em; }
.ph-design-d .ph-founder-grid { gap: 48px; }
.ph-design-d .ph-founder-card {
  grid-template-columns: 140px minmax(0,1fr); gap: 24px; padding: 28px 0;
  border: 0; border-top: 1px solid var(--d-line); border-radius: 0; box-shadow: none;
}
.ph-design-d .ph-founder-photo img { width: 140px; height: 180px; border-radius: 0; }
.ph-design-d .ph-founder-copy h4 { font-size: 27px; }
.ph-design-d .ph-founder-copy .ph-founder-role { color: var(--d-accent-text); margin-block: 12px 18px; }
.ph-design-d .ph-member { border: 0; border-top: 1px solid var(--d-line); padding: 24px 0; border-radius: 0; }
.ph-design-d .ph-grid { gap: 12px 36px; }
.ph-design-d .ph-member b { font-family: var(--d-serif); font-size: 22px; }
.ph-design-d .ph-timeline::before { width: 1px; margin-left: -.5px; background: var(--d-line); }
.ph-design-d .ph-timeline li > div { border-radius: 0; box-shadow: none; padding: 28px; }
.ph-design-d .ph-timeline li > div:hover { transform: none; border-color: var(--d-accent); box-shadow: none; }
.ph-design-d .ph-timeline li.is-lit::before { box-shadow: 0 0 0 4px #ff6b0015; }
.ph-design-d .ph-about .ph-timeline .ph-tl-year { color: var(--d-ink); font-family: var(--d-serif); }
.ph-design-d .ph-about .ph-timeline .ph-tl-mon { color: var(--d-accent-text); }
.ph-design-d .ph-about :is(.ph-member i, .ph-ambassador i, .ph-honor-year, .ph-map-region h3) { color: var(--d-accent-text); }
.ph-design-d .ph-honor-list { gap: 0 40px; }
.ph-design-d .ph-honor-list li { border-bottom: 1px solid var(--d-line); padding: 20px 0; }
.ph-design-d .ph-honor-list li::before { display: none; }

/* Project storytelling. Keep the Everest photograph uncropped and without text. */
.ph-design-d .ph-antarctica { background: #fff; padding-block: 90px; }
.ph-design-d .ph-antarctica .ph-wrap { max-width: 960px; }
.ph-design-d .ph-antarctica .ph-project-hero { margin-block: 44px; }
.ph-design-d:is(.page-id-83,.page-id-1407) .ph-eic-hero { background: var(--d-ivory); padding-bottom: 64px; }
.ph-design-d:is(.page-id-83,.page-id-1407) .ph-eic-hero-inner { max-width: 1240px; width: calc(100% - 80px); padding-block: 64px 40px; }
.ph-design-d:is(.page-id-83,.page-id-1407) .ph-eic-h1 { font-size: clamp(34px,4.4vw,62px); line-height: 1.35; color: var(--d-ink) !important; }
.ph-design-d:is(.page-id-83,.page-id-1407) .ph-eic-kicker { color: var(--d-accent-text); letter-spacing: .14em; }
.ph-design-d :is(.ph-eic-card, .ph-eic-stat, .ph-eic-media a, .ph-eic-gallery img) { border-radius: 0; box-shadow: none; }
.ph-design-d .ph-eic-card { border-color: var(--d-line); }
.ph-design-d .ph-eic-stat b { font-family: var(--d-serif); }

/* Builder pages (climate, projects, partners, contact) share the same type scale.
   Image-backed section colors remain with the original content for contrast. */
.ph-design-d #content .h-heading :is(h2,h3) { font-weight: 600 !important; line-height: 1.45 !important; }
.ph-design-d #content .h-heading h2 { font-size: clamp(29px,3.2vw,44px) !important; }
.ph-design-d #content .h-heading h3 { font-size: clamp(24px,2.5vw,34px) !important; }
.ph-design-d #content .h-heading :is(h4,h5,h6) { font-size: clamp(21px,2vw,28px) !important; line-height: 1.5 !important; }
.ph-design-d #content .h-text { font-family: var(--d-sans); line-height: 1.9; }
.ph-design-d #content [style*="color: rgb(6, 140, 203)"] { color: var(--d-accent-text) !important; }
.ph-design-d #content .h-section { padding-top: 90px; padding-bottom: 90px; }
.ph-design-d #content .h-separator { border-color: var(--d-line) !important; }

/* Legal text, existing account links and language controls stay accessible. */
.ph-design-d .ph-home-footer { padding-block: 32px; background: var(--d-ink); }
.ph-design-d .page-footer, .ph-design-d #copyright { background: var(--d-ink) !important; }
/* The old fixed/parallax footer falls behind the page in full-page captures.
   Keep legal details in normal document flow on every viewport. */
.ph-design-d .page-footer.h-footer-parallax { position: relative !important; z-index: 0; }
.ph-design-d .h-footer-parallax-content-class { margin-bottom: 0 !important; box-shadow: none !important; }
.ph-design-d #copyright { border-top: 1px solid #ffffff20; padding-block: 24px !important; }
.ph-design-d #copyright .h-global-transition-all { color: #c4ced6 !important; font-size: 12px; }
.ph-design-d .ph-socials { gap: 8px 32px; }
.ph-design-d .ph-footer-legal { margin-top: 16px; padding-top: 20px; }

@media (max-width: 1000px) {
  .ph-design-d :is(.ph-wrap, .ph-about .ph-wrap, .h-section-boxed-container, .ph-eic-wrap) { width: calc(100% - 48px); }
  .ph-design-d :is(.ph-section-head, .ph-about .ph-section-head) { gap: 24px; }
  .ph-design-d :is(.ph-section, .ph-about .ph-section, .ph-eic-sec) { padding-block: 76px; }
  .ph-design-d .ph-impact-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ph-design-d .ph-impact-list > div:nth-child(2) { border-right: 0; }
  .ph-design-d .ph-flagship-grid, .ph-design-d .ph-business-grid { gap: 28px; }
  .ph-design-d .ph-founder-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ph-design-d :is(.ph-wrap, .ph-about .ph-wrap, .h-section-boxed-container, .ph-eic-wrap) { width: calc(100% - 40px); }
  .ph-design-d .h-navigation .h-section-grid-container { width: calc(100% - 32px); padding-block: 10px !important; }
  .ph-design-d .h-hero { min-height: 430px !important; padding-block: 100px 56px !important; }
  .ph-design-d:is(.page-id-67,.page-id-1401) .h-hero { min-height: 82svh !important; padding-bottom: 56px !important; }
  .ph-design-d .h-hero h1 { font-size: clamp(34px,8.4vw,52px) !important; line-height: 1.4 !important; }
  .ph-design-d .h-hero .ph-hero-english { font-size: 13px !important; letter-spacing: .12em !important; }
  .ph-design-d .ph-hero-position { font-size: 14px; line-height: 1.9; }
  .ph-design-d .ph-hero-cta { align-items: stretch; }
  .ph-design-d .ph-hero-cta .ph-cta { padding: 12px 18px; font-size: 13px; max-width: 100%; }
  .ph-design-d :is(.ph-section, .ph-about .ph-section, .ph-eic-sec) { padding-block: 64px; }
  .ph-design-d :is(.ph-section-head, .ph-about .ph-section-head) { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .ph-design-d .ph-impact-list { gap: 24px 16px; }
  .ph-design-d .ph-impact-list strong { font-size: 24px; }
  .ph-design-d .ph-business-grid, .ph-design-d .ph-flagship-grid { grid-template-columns: 1fr; gap: 36px; }
  .ph-design-d .ph-business-grid { gap: 0; }
  .ph-design-d .ph-watch { margin-top: 40px; }
  .ph-design-d .ph-news-copy { display: flex; gap: 0; }
  .ph-design-d .ph-news-copy h3 { font-size: 23px; }
  .ph-design-d .ph-home .ph-action { padding-block: 76px; }
  .ph-design-d .ph-about-lead { font-size: 18px; }
  .ph-design-d .ph-founder-card { grid-template-columns: 110px minmax(0,1fr); gap: 20px; }
  .ph-design-d .ph-founder-photo img { width: 110px; height: 146px; }
  .ph-design-d .ph-timeline li > div { padding: 22px 18px; }
  .ph-design-d .ph-timeline li::after { width: 24px; }
  .ph-design-d #content .h-section { padding-block: 60px; }
  .ph-design-d:is(.page-id-83,.page-id-1407) .ph-eic-hero-inner { width: calc(100% - 40px); padding-block: 40px 28px; }
  .ph-design-d .ph-antarctica { padding-block: 60px; }
}
@media (max-width: 420px) {
  .ph-design-d .ph-founder-card { grid-template-columns: 1fr; }
  .ph-design-d .ph-founder-photo img { width: 140px; height: 180px; }
  .ph-design-d .ph-hero-cta .ph-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-design-d *, .ph-design-d *::before, .ph-design-d *::after {
    scroll-behavior: auto !important; transition: none !important; animation: none !important;
  }
}
