/* qdPM site and archive styles */
:root {
  --qdpm-ink: #132238;
  --qdpm-muted: #5f6f82;
  --qdpm-blue: #096aa5;
  --qdpm-blue-dark: #06436f;
  --qdpm-cyan: #19a7ce;
  --qdpm-sky: #e9f6fb;
  --qdpm-line: #dce6ee;
  --qdpm-surface: #ffffff;
  --qdpm-bg: #f4f7fa;
  --qdpm-shadow: 0 18px 50px rgba(21, 54, 79, .10);
  --qdpm-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--qdpm-ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(25, 167, 206, .10), transparent 28rem),
    radial-gradient(circle at 92% 38%, rgba(9, 106, 165, .07), transparent 34rem),
    var(--qdpm-bg);
  font: 16px/1.65 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--qdpm-blue); text-underline-offset: 3px; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
a:hover { color: var(--qdpm-blue-dark); }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1.05em; }
h1, h2, h3, h4 { color: var(--qdpm-ink); font-weight: 750; line-height: 1.15; letter-spacing: -.025em; }
h1 { margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3.3rem); }
h2 { margin: 34px 0 16px; font-size: clamp(1.35rem, 2.4vw, 2rem); }
h3 { margin: 26px 0 12px; font-size: 1.2rem; }
::selection { color: #fff; background: var(--qdpm-blue); }

#skip-link { position: absolute; z-index: 100; }
#skip-link a { position: fixed; top: -80px; left: 16px; padding: 10px 14px; border-radius: 10px; color: #fff; background: var(--qdpm-blue-dark); }
#skip-link a:focus { top: 12px; }

#page-wrapper,
#footer .section,
.region-page-closure {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
#page { width: 100%; }

#main-wrapper { margin: 28px 0 0; padding: 0; background: transparent; }
#main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  width: 100%;
  padding: 0;
}
.no-sidebars #main { grid-template-columns: minmax(0, 1fr); }
#content,
.no-sidebars #content,
.sidebar-second #content {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
#content > .section,
#content .section {
  min-width: 0;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid rgba(220, 230, 238, .9);
  border-radius: var(--qdpm-radius);
  background: var(--qdpm-surface);
  box-shadow: 0 12px 36px rgba(27, 57, 80, .07);
}
.front #content > .section { padding: clamp(28px, 5vw, 64px); }
.breadcrumb { margin: -4px 0 18px; color: #8391a0; font-size: .85rem; }
.breadcrumb a { color: #6d7f91; text-decoration: none; }
#content-area { font-size: 1rem; }
#content-area > :first-child { margin-top: 0; }
.node .content > :last-child { margin-bottom: 0; }

/* Feature listing and article content */
#content-area > .view-features .view-content > .item-list > ul,
.page-features #content-area .view-content > .item-list > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}
#content-area > .view-features .view-content > .item-list > ul > li,
.page-features #content-area .view-content > .item-list > ul > li {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--qdpm-line);
  border-radius: 16px;
  list-style: none;
  background: #fbfdfe;
}
.views-field-title a { font-weight: 750; text-decoration: none; }
.views-field-teaser { margin-top: 8px; color: var(--qdpm-muted); }
.views-field-teaser p { margin: 0; }
.node .content img { border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 52, 75, .12); }
.node .content ul,
.node .content ol { padding-left: 1.35rem; }
.node .content li { margin-bottom: .55em; }
blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--qdpm-cyan); border-radius: 0 12px 12px 0; color: #40586c; background: var(--qdpm-sky); }
code { padding: .18em .4em; border-radius: 6px; background: #edf3f7; }
pre { max-width: 100%; overflow: auto; padding: 18px; border-radius: 14px; background: #14283b; color: #eaf6fb; }
table { width: 100%; margin: 24px 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--qdpm-line); border-radius: 14px; }
th, td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--qdpm-line); text-align: left; }
th { color: var(--qdpm-blue-dark); background: var(--qdpm-sky); }
tr:last-child td { border-bottom: 0; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid #cbd9e3;
  border-radius: 10px;
  color: var(--qdpm-ink);
  background: #fff;
  font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(25, 167, 206, .18); border-color: var(--qdpm-cyan); }

/* Sidebar */
.region-sidebar-second {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
}
.region-sidebar-second > .section { padding: 0; }
.region-sidebar-second .block {
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid var(--qdpm-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 24px rgba(27, 57, 80, .06);
}
.region-sidebar-second .block h2 { margin: 0 0 14px; font-size: 1.05rem; }
.region-sidebar-second .block p:last-child { margin-bottom: 0; }
.region-sidebar-second .item-list ul { margin: 0; padding: 0; list-style: none; }
.region-sidebar-second .item-list li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--qdpm-line); }
.region-sidebar-second .item-list li:last-child { border-bottom: 0; }
.region-sidebar-second .views-field-title a { font-size: .9rem; }
.alert { padding: 16px !important; border: 0 !important; border-radius: 12px !important; }
.alert-info { color: #164b69 !important; background: var(--qdpm-sky) !important; }

/* Messages and footer */
.messages, .archive-demo-note {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid #c5e5ef;
  border-radius: 12px;
  color: #275670;
  background: #eef9fc;
}
#footer { margin: 34px 0 0; padding: 0 0 34px; background: transparent; }
#footer .section { padding: 24px 4px; border-top: 1px solid #d5e1e8; color: #718092; }
#footer-message { font-size: .9rem; }
.region-page-closure { min-height: 0; }

/* Demo application: make the historic UI cleaner without altering its behavior. */
.archive-demo-banner { border-radius: 14px !important; box-shadow: 0 12px 30px rgba(20, 52, 75, .12); }

@media (max-width: 980px) {
  #main { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
}

@media (max-width: 760px) {
  #page-wrapper, #footer .section, .region-page-closure { width: min(100% - 24px, 680px); }
  #main, .no-sidebars #main { display: block; }
  #content > .section, #content .section, .front #content > .section { padding: 26px 20px; border-radius: 18px; }
  .region-sidebar-second { margin-top: 18px; }
  #content-area > .view-features .view-content > .item-list > ul,
  .page-features #content-area .view-content > .item-list > ul { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}

@media (max-width: 430px) {
  h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Shared layout for restored site pages. */
#page-wrapper #page {
  font-size: 1rem;
  line-height: 1.6;
}

#page-wrapper #main {
  grid-template-columns: minmax(0, 1fr);
}

#page-wrapper #main:has(> .region-sidebar-second) {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  align-items: start;
}

#page-wrapper #content > .section > h1 {
  max-width: 28ch;
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

#page-wrapper #content > .section {
  overflow-wrap: anywhere;
}

#page-wrapper #content-area {
  padding-right: 0;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
}

#content-area > .node > .content {
  max-width: 70ch;
}

#content-area > .node > .content > p {
  margin: 0 0 1em;
}

#content-area > .node > .content > p:last-child {
  margin-bottom: 0;
}

#page-wrapper #content-area img {
  max-width: 100%;
  height: auto;
}

#page-wrapper #content-area table {
  max-width: 100%;
}

#page-wrapper .region-sidebar-second {
  font-size: .9375rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#page-wrapper .region-sidebar-second #block-block-13,
#page-wrapper .region-sidebar-second .block:has(> .content:empty) {
  display: none;
}

#page-wrapper :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--qdpm-blue);
  outline-offset: 3px;
}

/* Archived demo pages share the public site's colors, spacing and form styles. */
body#yahoo-com {
  font: 1rem/1.55 Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--qdpm-ink);
  background: var(--qdpm-bg);
}

#yahoo-com #header-wrap,
#yahoo-com #footer-wrap {
  background: transparent;
  color: var(--qdpm-ink);
}

#yahoo-com #header,
#yahoo-com #center,
#yahoo-com #footer {
  width: min(1180px, calc(100% - 24px));
  margin-inline: auto;
  padding: clamp(16px, 4vw, 36px);
}

#yahoo-com #header {
  min-height: auto;
}

#yahoo-com #logo-section {
  padding: 0;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
}

#yahoo-com #center {
  border-color: var(--qdpm-line);
  border-radius: var(--qdpm-radius);
  box-shadow: var(--qdpm-shadow);
  overflow: auto;
}

#yahoo-com #center-wrap {
  padding: 4px 0 24px;
}

#yahoo-com #top-menu {
  position: static;
}

#yahoo-com #top-menu a,
#yahoo-com #main-menu a {
  color: var(--qdpm-blue-dark);
}

#yahoo-com .shadow-top {
  display: none;
}

#yahoo-com #footer {
  background: transparent;
  color: var(--qdpm-muted);
}

#yahoo-com h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  overflow-wrap: anywhere;
}

#yahoo-com .formTable :is(input, textarea, select) {
  max-width: 100%;
}

#yahoo-com .formTable :is(th, td) {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  #page-wrapper #main:has(> .region-sidebar-second) {
    grid-template-columns: minmax(0, 1fr);
  }

  #page-wrapper #content,
  #page-wrapper #main > .region-sidebar-second {
    min-width: 0;
    width: 100%;
    margin-inline: 0;
  }
}

@media (max-width: 760px) {
  #page-wrapper #content-area table {
    display: block;
    overflow-x: auto;
  }
}

/* Product site */
:root {
  --qdpm-ink: #11243b;
  --qdpm-muted: #465d73;
  --qdpm-blue: #075fa8;
  --qdpm-blue-dark: #064575;
  --qdpm-cyan: #257bc1;
  --qdpm-sky: #e8f4ff;
  --qdpm-line: #dbe6f1;
  --qdpm-bg: #f5f8fc;
  --qdpm-radius: 24px;
  --qdpm-shadow: 0 18px 50px #12345416;
  --qdpm-font: Inter, "Segoe UI", system-ui, sans-serif;
}

body {
  color: var(--qdpm-ink);
  background: var(--qdpm-bg);
  font-family: var(--qdpm-font);
}

#page-wrapper, #footer .section, .region-page-closure {
  width: min(1240px, calc(100% - 48px));
}

#header.product-header {
  min-height: 0;
  margin: 18px 0 16px;
  border: 1px solid var(--qdpm-line);
  border-radius: 18px;
  background: #fff;
}

.product-header > .header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 10px clamp(15px, 2.4vw, 28px);
}

.product-logo {
  display: block;
  flex: none;
}

.product-logo img {
  display: block;
  width: 102px;
  height: auto;
}

.product-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.product-nav a, .product-mobile summary {
  display: block;
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--qdpm-ink);
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}

.product-nav a:hover,
.product-nav a[aria-current],
.product-mobile summary:hover {
  background: var(--qdpm-sky);
  color: var(--qdpm-blue-dark);
}

.product-mobile { display: none; }

.product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.product-button--primary { color: #fff; background: var(--qdpm-blue); }
.product-button--primary:hover { color: #fff; background: var(--qdpm-blue-dark); }
#page-wrapper #content-area .product-button--primary { color: #fff; }
.product-button--bright { color: #073962; background: #fff; }
.product-button--bright:hover { color: #073962; background: #e4f4ff; }
.product-button--glass { color: #fff; border-color: #ffffff70; background: #ffffff15; }
.product-button--glass:hover { color: #fff; background: #ffffff30; }
.header-action { min-height: 42px; padding: 9px 15px; font-size: .94rem; white-space: nowrap; }

#main-wrapper.product-home { margin-top: 0; }
.product-hero {
  overflow: hidden;
  padding: clamp(48px, 7vw, 84px) clamp(12px, 5.6vw, 76px) 0;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(ellipse at 100% 95%, #057fbc 0%, transparent 60%),
    radial-gradient(ellipse at 3% 80%, #1363bf 0%, transparent 58%),
    linear-gradient(135deg, #082e57, #095093 75%);
}

.hero-copy { text-align: center; }
.product-label {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 6px 12px;
  border: 1px solid #ffffff45;
  border-radius: 999px;
  background: #ffffff12;
  font-size: .85rem;
  font-weight: 650;
}
.product-label > span { width: 7px; height: 7px; border-radius: 50%; background: #a1e6ff; }

.product-hero h1 {
  margin: 18px auto;
  color: #fff;
  font-size: clamp(2.05rem, 5.6vw, 4.75rem);
  font-weight: 780;
  line-height: 1.01;
  letter-spacing: -.057em;
  text-wrap: balance;
}
.product-hero p {
  max-width: 51ch;
  margin: 0 auto;
  color: #edf7ff;
  font-size: clamp(1rem, 2.1vw, 1.23rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product-hero .product-actions { justify-content: center; margin: 26px auto 40px; }
.product-hero a:focus-visible { outline-color: #fff !important; }

.product-preview {
  width: min(100%, 930px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffff95;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  color: var(--qdpm-ink);
  background: #fff;
  box-shadow: 0 -8px 75px #0626463d;
  text-align: left;
}
.preview-top, .preview-project-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.preview-top { min-height: 52px; padding: 8px 22px; border-bottom: 1px solid var(--qdpm-line); background: #edf5fc; }
.preview-top strong { display: flex; align-items: center; gap: 8px; }
.preview-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; background: #0767b6; font-size: .88rem; }
.preview-caption { color: var(--qdpm-muted); font-size: .8rem; white-space: nowrap; }
.preview-workspace { display: grid; grid-template-columns: 60px minmax(0, 1fr); }
.preview-rail { display: grid; align-content: start; gap: 12px; justify-items: center; padding: 18px 0; border-right: 1px solid var(--qdpm-line); color: #536b82; background: #f7fbff; font-size: 1.2rem; }
.preview-rail span { display: grid; place-items: center; width: 34px; height: 32px; }
.preview-rail-active { border-radius: 8px; color: #065691; background: #e2f1fe; }
.preview-project { min-width: 0; padding: 20px clamp(10px, 3vw, 34px) 22px; }
.preview-project-title strong { font-size: clamp(1.05rem, 2.2vw, 1.5rem); }
.preview-project-title > span { padding: 4px 10px; border-radius: 99px; color: #0a5085; background: #e3f2ff; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.preview-tabs { display: flex; gap: 18px; margin: 12px 0 8px; color: var(--qdpm-muted); font-size: .8rem; }
.preview-tabs span { padding-bottom: 6px; }
.preview-tab-active { border-bottom: 2px solid var(--qdpm-blue); color: var(--qdpm-blue-dark); font-weight: 700; }
.preview-plan { overflow: hidden; border: 1px solid var(--qdpm-line); border-radius: 10px; }
.preview-row { display: grid; grid-template-columns: minmax(0, 25%) minmax(0, 1fr); min-height: 40px; border-top: 1px solid var(--qdpm-line); font-size: .8rem; }
.preview-row > span { align-self: center; padding: 4px 10px; }
.preview-row > div {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  border-left: 1px solid var(--qdpm-line);
  background: repeating-linear-gradient(90deg, #fff 0 calc(100% / 12 - 1px), #e4edf5 calc(100% / 12 - 1px) calc(100% / 12));
}
.preview-row--head { min-height: 34px; border-top: 0; color: var(--qdpm-muted); background: #f4f8fc; }
.preview-row--head > div { grid-template-columns: repeat(3, minmax(0, 1fr)); background: transparent; text-align: center; }
.preview-bar { margin-inline: 3px; padding: 3px 4px; border-radius: 5px; font-size: .72rem; font-weight: 700; text-align: center; }
.preview-bar--sky { color: #125670; background: #d8f2fc; }
.preview-bar--blue { color: #155383; background: #d9eaff; }
.preview-bar--green { color: #245c48; background: #d6f4e5; }
.preview-bar--peach { color: #763c29; background: #ffeadc; }

.home-section { margin-top: clamp(42px, 7vw, 92px); }
.home-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.home-section h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); text-wrap: balance; }
.home-section-head > a { font-weight: 700; text-decoration: none; }
.home-section-head > a:hover { text-decoration: underline; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 210px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid #12345415;
  border-radius: 20px;
  color: var(--qdpm-ink);
  background: #e5f3ff;
  text-decoration: none;
}
.product-feature:hover { border-color: #5897ce; color: var(--qdpm-ink); transform: translateY(-3px); }
.product-feature--plan { background: #e9efff; }
.product-feature--reports { background: #e1f4fa; }
.product-feature--settings { background: #edf3fa; }
.feature-mark { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: auto; border-radius: 12px; background: #fff; color: var(--qdpm-blue-dark); font-size: 1.3rem; }
.product-feature h3 { margin: 4px 0 0; font-size: clamp(1.14rem, 1.8vw, 1.45rem); }
.product-feature p { margin: 0; color: #405970; font-size: .94rem; line-height: 1.5; }
.product-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 30px;
  padding: clamp(22px, 5vw, 55px);
  border-radius: 24px;
  background: #e8f4ff;
}
.product-start h2 { max-width: 23ch; }
.product-start p { margin: 12px 0 0; color: var(--qdpm-muted); }
.home-reading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-reading a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: space-between;
  gap: 12px;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--qdpm-line);
  border-radius: 16px;
  color: var(--qdpm-ink);
  background: #fff;
  text-decoration: none;
}
.home-reading a:hover { border-color: #5897ce; }
.home-reading a > span:first-of-type { grid-column: 1/-1; color: var(--qdpm-muted); font-size: .8rem; }
.home-reading a > span:last-child { color: var(--qdpm-blue); }

#page-wrapper #content > .section,
#page-wrapper .region-sidebar-second .block {
  border-color: var(--qdpm-line);
  box-shadow: none;
}
#page-wrapper #main-wrapper:not(.product-home) { margin-top: 20px; }
#page-wrapper #content > .section > h1 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4.5vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}
#page-wrapper #content-area { line-height: 1.7; }
#page-wrapper .breadcrumb { color: var(--qdpm-muted); }
#page-wrapper .breadcrumb a { color: var(--qdpm-blue); }
#page-wrapper #content-area :is(img, video, iframe) { max-width: 100%; }
#page-wrapper #content-area :is(pre, .blog-table) { max-width: 100%; }
#page-wrapper #content-area :is(table, pre) { scrollbar-color: #a2c2df #edf5fc; }
#page-wrapper #content-area :is(code, pre) { overflow-wrap: anywhere; }
#page-wrapper #content-area .form-item label { display: block; margin-bottom: 5px; }
#page-wrapper #content-area :is(input, select, textarea) { max-width: 100%; }

#footer.product-footer { margin: clamp(40px, 6vw, 76px) 0 0; padding: 0; background: #eaf1f8; }
#footer.product-footer .footer-inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 22px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 26px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--qdpm-ink); text-decoration: none; font-weight: 650; font-size: .94rem; }
.footer-nav a:hover { color: var(--qdpm-blue); text-decoration: underline; }
.product-footer #footer-message { margin: 21px 0 0; padding-top: 15px; border-top: 1px solid #d4e2ee; color: var(--qdpm-muted); }

@media (max-width: 920px) {
  .product-nav--desktop { display: none; }
  .product-mobile { display: block; }
  .product-mobile summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
  }
  .product-mobile summary::-webkit-details-marker { display: none; }
  .product-mobile summary::after { content: "▾"; }
  .product-mobile[open] summary::after { content: "▴"; }
  .product-mobile .product-nav {
    position: absolute;
    z-index: 20;
    inset: calc(100% + 6px) -1px auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
    border: 1px solid var(--qdpm-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--qdpm-shadow);
  }
  .header-action { margin-left: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  #page-wrapper, #footer.product-footer .footer-inner { width: calc(100% - 24px); }
  #header.product-header { margin-top: 10px; }
  .product-header > .header-inner { min-height: 58px; gap: 5px; padding: 8px 10px; }
  .product-logo img { width: 82px; }
  .product-mobile summary, .header-action { padding-inline: 8px; font-size: .84rem; }
  .product-hero { border-radius: 20px; }
  .hero-break { display: none; }
  .product-hero .product-actions { margin-bottom: 26px; }
  .product-hero .product-button { min-height: 45px; padding: 10px 12px; font-size: .875rem; }
  .preview-top { min-height: 42px; padding-inline: 10px; }
  .preview-workspace { display: block; }
  .preview-rail { display: none; }
  .preview-project { padding-block: 12px; }
  .preview-tabs { gap: 10px; font-size: .73rem; }
  .preview-row { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); min-height: 36px; font-size: .68rem; }
  .preview-row > span { padding-inline: 5px; }
  .preview-bar { font-size: .59rem; padding-inline: 1px; }
  .product-start { align-items: flex-start; flex-direction: column; }
  .home-reading { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 425px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .product-feature { min-height: 0; }
}

.product-archive-intro { max-width: 64ch; color: var(--qdpm-muted); }
.demo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.demo-gallery a { display: block; padding: 12px; border: 1px solid var(--qdpm-line); border-radius: 16px; color: var(--qdpm-ink); background: #f4f8fc; text-decoration: none; }
.demo-gallery a:hover { border-color: var(--qdpm-cyan); }
.demo-gallery img { display: block; width: 100%; aspect-ratio: 4/3; margin-bottom: 8px; border-radius: 8px; object-fit: cover; object-position: top; }
.demo-gallery strong { display: block; padding: 3px; }
@media (max-width: 520px) { .demo-gallery { grid-template-columns: minmax(0, 1fr); } }

.product-skip { position: fixed; z-index: 100; top: 10px; left: 12px; padding: 10px 16px; border-radius: 8px; color: #fff; background: var(--qdpm-blue-dark); transform: translateY(-150%); }
.product-skip:focus { transform: none; color: #fff; }

.product-logo img { filter: brightness(0) saturate(100%) invert(24%) sepia(96%) saturate(1354%) hue-rotate(178deg) brightness(88%) contrast(96%); }
.product-hero { padding-top: clamp(44px, 6vw, 68px); }
.product-hero .product-actions { margin-bottom: clamp(26px, 3vw, 36px); }
.blog-article-author > .blog-author-avatar { background: #edf3fa; object-position: center 22%; }

/* About qdPM */
#main-wrapper.about-page { margin-top: 30px; }

#page-wrapper .about-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 clamp(18px, 3vw, 30px);
}

.about-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 58px);
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--qdpm-line);
  border-radius: var(--qdpm-radius);
  background: linear-gradient(135deg, #e8f4ff, #f4f9fd 70%);
}

.about-intro h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.about-intro p {
  max-width: 62ch;
  color: var(--qdpm-muted);
  line-height: 1.63;
}

.about-intro .about-lead {
  margin-bottom: 16px;
  color: var(--qdpm-ink);
  font-size: clamp(1.18rem, 2.4vw, 1.48rem);
  font-weight: 600;
  line-height: 1.45;
  text-wrap: pretty;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-download {
  border-color: #b5cee5;
  color: var(--qdpm-blue-dark);
  background: #fff;
}

.about-download:hover { border-color: var(--qdpm-blue); }

.about-resources {
  padding: clamp(17px, 2.5vw, 28px);
  border: 1px solid var(--qdpm-line);
  border-radius: 18px;
  background: #fff;
}

.about-resources h2 { margin: 0 0 9px; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.about-resources ul, .about-team { margin: 0; padding: 0; list-style: none; }
.about-resources li + li { border-top: 1px solid var(--qdpm-line); }

.about-resources li a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  text-decoration: none;
}

.about-resources li a strong { display: block; color: var(--qdpm-ink); }
.about-resources li a:hover strong, .about-resources li a:focus-visible strong { color: var(--qdpm-blue); text-decoration: underline; }
.about-resources li a strong + span { display: block; color: var(--qdpm-muted); font-size: .88rem; line-height: 1.4; }

.about-resource-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 12px;
  border-top: 1px solid var(--qdpm-line);
  font-size: .92rem;
  font-weight: 650;
}

.about-section { margin-top: clamp(38px, 5vw, 66px); }
.about-section > h2 { margin: 0 0 18px; font-size: clamp(1.75rem, 3.5vw, 2.65rem); }
.about-feature-grid, .about-team { display: grid; gap: 14px; }
.about-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.about-feature, .about-team li {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--qdpm-line);
  border-radius: 18px;
  background: #fff;
}

.about-feature { display: flex; flex-direction: column; }
.about-feature p { flex: 1; color: var(--qdpm-muted); }
.about-feature h3, .about-team h3 { margin: 0 0 10px; font-size: clamp(1.1rem, 1.9vw, 1.4rem); }
.about-feature a { align-self: flex-start; font-weight: 650; }
.about-team p { margin-bottom: 5px; }
.about-team li > span { color: var(--qdpm-muted); font-size: .9rem; }

@media (max-width: 800px) {
  .about-overview { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 660px) {
  .about-feature-grid, .about-team { grid-template-columns: minmax(0, 1fr); }
  .about-overview { padding: 18px; }
  .about-actions .product-button { min-height: 44px; padding: 10px 12px; font-size: .88rem; }
}

/* Features page */
.capabilities-page { padding-top: 8px; }

.capabilities-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 70px);
  padding: clamp(24px, 4.5vw, 60px);
  border: 1px solid var(--qdpm-line);
  border-radius: var(--qdpm-radius);
  background: linear-gradient(130deg, #eaf5ff, #dcecfb 70%, #e0f3fa);
}

.capabilities-hero h1 {
  margin: 0 0 17px;
  font-size: clamp(2.35rem, 5.7vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.capabilities-hero p {
  max-width: 45ch;
  margin: 0;
  color: var(--qdpm-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.54;
}

.capabilities-example {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #cbdff0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--qdpm-shadow);
}

.capabilities-example figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  padding: clamp(12px, 2vw, 22px);
  border-bottom: 1px solid var(--qdpm-line);
  background: #f9fcff;
}

.capabilities-example figcaption strong { font-size: clamp(1.15rem, 2vw, 1.55rem); }
.capabilities-example figcaption span { color: var(--qdpm-muted); font-size: .85rem; }
.capabilities-example table { display: table; margin: 0; overflow: visible; border: 0; border-radius: 0; }
.capabilities-example :is(th, td) { padding: clamp(8px, 1.35vw, 16px); }
.capabilities-example tr:not(:last-child) td { border-bottom: 1px solid var(--qdpm-line); }
.capabilities-example th { background: #eff6fc; font-size: .9rem; }
.cap-status { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #edf2f7; color: #425871; font-size: .77rem; line-height: 1.25; }
.cap-status-done { background: #dff4ed; color: #1b5a48; }
.cap-status-progress { background: #e4f0ff; color: #164e81; }

.capabilities-section { margin-top: clamp(42px, 6vw, 82px); }
.capabilities-section > h2, .capabilities-start h2 { margin: 0 0 20px; font-size: clamp(1.7rem, 3.6vw, 2.9rem); letter-spacing: -.04em; }
.capabilities-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.capabilities-views article, .capability-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--qdpm-line);
  border-radius: 18px;
  background: #fff;
}

.capabilities-visual { display: grid; min-height: 146px; place-items: center; padding: 16px; background: #eaf4ff; }
.cap-visual-calendar { background: #e4f4f7; }
.cap-visual-gantt { background: #e9effa; }
.capabilities-visual > div { width: min(100%, 216px); padding: 14px; border: 1px solid #d4e2ef; border-radius: 12px; background: #fff; box-shadow: 0 7px 20px #12345410; }
.mini-list { display: grid; gap: 12px; }
.mini-list i { display: block; height: 10px; width: 86%; border-radius: 3px; background: linear-gradient(90deg, #4e99ce 0 10px, transparent 10px 19px, #dceafa 19px); }
.mini-list i:nth-child(2) { width: 69%; }
.mini-list i:nth-child(3) { width: 80%; }
.mini-calendar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; text-align: center; color: #234c69; font-size: .74rem; }
.mini-calendar span { padding: 2px 0; }
.mini-calendar span:nth-child(8), .mini-calendar span:nth-child(10) { border-radius: 5px; background: #d8eff9; font-weight: 700; }
.mini-gantt { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.mini-gantt i { height: 10px; border-radius: 4px; background: #8cc4ed; grid-column: 1 / 5; }
.mini-gantt i:nth-child(2) { grid-column: 3 / 7; background: #4e99ce; }
.mini-gantt i:nth-child(3) { grid-column: 5 / 9; background: #a9dccc; }

.cap-view-copy, .capability-card > a { padding: clamp(16px, 2.6vw, 26px); }
.cap-view-copy h3, .capability-card h4 { margin: 0 0 8px; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.cap-view-copy h3 a { color: var(--qdpm-blue-dark); text-decoration: none; }
.cap-view-copy h3 a:hover { text-decoration: underline; }
.cap-view-copy p, .capability-card p { margin: 0; color: var(--qdpm-muted); font-size: .95rem; }

.capabilities-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.capabilities-nav a { padding: 8px 13px; border: 1px solid var(--qdpm-line); border-radius: 999px; background: #fff; font-size: .91rem; font-weight: 650; text-decoration: none; }
.capabilities-nav a:hover { border-color: var(--qdpm-cyan); background: var(--qdpm-sky); }
.capability-group { margin-top: clamp(24px, 4vw, 44px); scroll-margin-top: 22px; }
.capability-group h3 { margin: 0 0 14px; font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.capability-card > a { display: block; height: 100%; color: var(--qdpm-ink); text-decoration: none; }
.capability-card:hover, .capability-card:focus-within { border-color: var(--qdpm-cyan); }
.capability-card a:focus-visible { outline-offset: -3px !important; }
.capability-card h4 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.capability-card h4 span { color: var(--qdpm-blue); }
.capability-card a:hover h4 { color: var(--qdpm-blue); }

.capabilities-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: clamp(40px, 6vw, 82px);
  padding: clamp(20px, 4vw, 52px);
  border: 1px solid var(--qdpm-line);
  border-radius: var(--qdpm-radius);
  background: #e9f5ff;
}
.capabilities-start h2 { max-width: 21ch; margin-bottom: 10px; }
.capabilities-start p { margin: 0; color: var(--qdpm-muted); }
.capabilities-start .about-actions { margin: 0; }

@media (max-width: 900px) {
  .capabilities-hero { grid-template-columns: minmax(0, 1fr); }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .capabilities-hero { padding: 16px; }
  .capabilities-views, .capability-grid { grid-template-columns: minmax(0, 1fr); }
  .capabilities-visual { min-height: 112px; }
  .capabilities-example td { font-size: .86rem; }
}

/* qdPM installation guide */
.installation-page { padding-top: 8px; }
.installation-page section[id] { scroll-margin-top: 20px; }

.install-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(22px, 4.6vw, 58px);
  border: 1px solid var(--qdpm-line);
  border-radius: var(--qdpm-radius);
  background: linear-gradient(135deg, #e7f3ff, #f5faff 80%);
}

.install-hero h1 { margin: 0 0 16px; font-size: clamp(2.3rem, 5.5vw, 4.4rem); line-height: 1.04; letter-spacing: -.05em; text-wrap: balance; }
.install-hero p { max-width: 48ch; margin: 0; color: var(--qdpm-muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.install-contents { padding: clamp(16px, 3vw, 26px); border: 1px solid var(--qdpm-line); border-radius: 18px; background: #fff; }
.install-contents h2 { margin: 0 0 8px; font-size: 1.25rem; }
.install-contents ul, .install-requirements { margin: 0; padding: 0; list-style: none; }
.install-contents li + li { border-top: 1px solid var(--qdpm-line); }
.install-contents a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-weight: 650; text-decoration: none; }
.install-contents a:hover { text-decoration: underline; }

.install-section { margin-top: clamp(40px, 6vw, 74px); }
.install-section > h2 { margin: 0 0 18px; font-size: clamp(1.75rem, 3.7vw, 2.75rem); }
.install-section-lead { max-width: 72ch; color: var(--qdpm-muted); }
.installation-page code { overflow-wrap: anywhere; }

.install-requirements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.install-requirements li, .install-timeline > li {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--qdpm-line);
  border-radius: 18px;
  background: #fff;
}
.install-requirements h3, .install-timeline h3 { margin: 0 0 8px; font-size: clamp(1.12rem, 2vw, 1.4rem); }
.install-requirements p, .install-timeline p { margin: 0; color: var(--qdpm-muted); }

.install-timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: setup-step; }
.install-timeline > li { counter-increment: setup-step; }
.install-timeline > li::before {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 0 13px;
  border-radius: 11px;
  color: var(--qdpm-blue-dark);
  background: var(--qdpm-sky);
  font-weight: 750;
  content: counter(setup-step);
}
.install-timeline ul { margin: 10px 0 0; padding-left: 20px; color: var(--qdpm-muted); }
.install-timeline p + p { margin-top: 10px; }
.install-example { display: grid; gap: 4px; justify-items: start; margin: 11px 0; }
.install-example:last-child { margin-bottom: 0; }
.install-example strong { color: var(--qdpm-muted); font-size: .87rem; }

.install-answers { display: grid; gap: 10px; }
.install-answers details { border: 1px solid var(--qdpm-line); border-radius: 14px; background: #fff; }
.install-answers summary { padding: 14px 19px; border-radius: 14px; color: var(--qdpm-blue-dark); font-weight: 700; cursor: pointer; }
.install-answers summary:hover { background: var(--qdpm-sky); }
.install-answers summary:focus-visible { outline-offset: -3px !important; }
.install-answers details > div { padding: 0 19px 16px; color: var(--qdpm-muted); }
.install-answers p { max-width: 78ch; margin: 0; }

@media (max-width: 760px) {
  .install-hero, .install-timeline, .install-requirements { grid-template-columns: minmax(0, 1fr); }
}

/* Reviews archive */
.reviews-page { padding-top: 8px; }

.reviews-intro {
  padding: clamp(22px, 4.5vw, 54px);
  border: 1px solid var(--qdpm-line);
  border-radius: var(--qdpm-radius);
  background: linear-gradient(135deg, var(--qdpm-sky), #f5faff 78%);
}

.reviews-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
  line-height: 1.07;
  letter-spacing: -.045em;
}

.reviews-intro p { max-width: 60ch; margin: 0; color: var(--qdpm-muted); font-size: clamp(1rem, 2vw, 1.2rem); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(18px, 3vw, 28px);
}

.review-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--qdpm-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 15px #1234540a;
  overflow-wrap: anywhere;
}

.review-card, .review-reply { scroll-margin-top: 1.25rem; }
.review-date { display: block; color: var(--qdpm-muted); font-size: .875rem; font-variant-numeric: tabular-nums; }

.review-card .review-text {
  flex: 1;
  margin: .65rem 0 1.2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--qdpm-ink);
  background: transparent;
}
.review-text p:last-child, .review-reply p:last-child { margin-bottom: 0; }

.review-author {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 14px;
  border-top: 1px solid var(--qdpm-line);
}

.review-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--qdpm-blue-dark);
  background: var(--qdpm-sky);
  font-size: .86rem;
  font-weight: 750;
}

.review-author h2 { margin: 0 0 3px; font-size: 1.03rem; line-height: 1.2; }
.review-author p { margin: 0; color: var(--qdpm-muted); font-size: .81rem; line-height: 1.3; }

.review-reply {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 11px;
  color: var(--qdpm-muted);
  background: var(--qdpm-bg);
  font-size: .92rem;
}
.review-reply summary { color: var(--qdpm-blue-dark); font-weight: 700; cursor: pointer; }
.review-reply .review-date { margin: .55rem 0 .35rem; }

@media (max-width: 720px) {
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
}

.home-reading-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--qdpm-sky);
  grid-column: 1 / -1;
}
