/* PMC Pilot shared presentation. Load after legacy and platform styles.
   Retains the existing brand and font families; readiness is supplied by data, not CSS. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

body.pmc-unified {
  --pmc-ink: #172e46;
  --pmc-muted: #53667a;
  --pmc-line: #d8e1e8;
  --pmc-paper: #f7fafc;
  --pmc-surface: #fff;
  --pmc-blue: #1959a6;
  --pmc-teal: #096e68;
  --pmc-mint: #77d3c5;
  --pmc-width: 1240px;
  --pmc-font: 'DM Sans', Arial, sans-serif;
  --pmc-heading: Manrope, Arial, sans-serif;
  --pmc-radius: 3px;
  --ink: var(--pmc-ink);
  --muted: var(--pmc-muted);
  --line: var(--pmc-line);
  --paper: var(--pmc-paper);
  --blue: var(--pmc-blue);
  --teal: var(--pmc-teal);
  color: var(--pmc-ink);
  background: var(--pmc-paper);
  margin: 0;
  font: 400 17px/1.65 var(--pmc-font);
}
body.pmc-unified *, body.pmc-unified *::before, body.pmc-unified *::after {box-sizing: border-box;}
body.pmc-unified [hidden] {display: none !important;}
body.pmc-unified .sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
body.pmc-unified .v2-hero > div > .v2-actions {margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:12px;}
@media(max-width:680px){body.pmc-unified .v2-hero > div > .v2-actions {grid-template-columns:1fr;}}
body.pmc-unified :is(h1,h2,h3,h4) {
  color: var(--pmc-ink);
  font-family: var(--pmc-heading);
  letter-spacing: -.035em;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}
body.pmc-unified :is(h1,h2,h3) {text-wrap: balance;}
body.pmc-unified h1 {font-weight: 650; line-height: 1.15;}
body.pmc-unified h2 {font-weight: 600; line-height: 1.22;}
body.pmc-unified h3 {font-weight: 650; line-height: 1.3;}
body.pmc-unified a {text-underline-offset: .2em;}
body.pmc-unified :is(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid var(--pmc-blue);
  outline-offset: 4px;
}
body.pmc-unified :is(.wrap,.v2-wrap,.pmc-container) {
  width: 100%; max-width: var(--pmc-width); margin-inline: auto; padding-inline: 24px;
}
body.pmc-unified :is(.preview,.v2-top) {
  background: var(--pmc-ink); color: #fff; font-size: 14px; line-height: 1.6; padding: 10px 24px;
}

/* One shell, including a compact native disclosure on small screens. */
body.pmc-unified .pmc-header {
  width: 100%; max-width: var(--pmc-width); margin: 0 auto; padding: 24px;
  min-height: 96px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px 24px; border-bottom: 1px solid var(--pmc-line);
}
body.pmc-unified .v2-wrap > .pmc-header {padding-inline: 0;}
body.pmc-unified .pmc-brand {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
  font: 500 24px/1.2 var(--pmc-heading); letter-spacing: -.04em;
  color: var(--pmc-ink); text-decoration: none; white-space: nowrap;
}
body.pmc-unified .pmc-brand :is(img,svg) {display: block; width: 38px; height: 38px; flex: 0 0 38px;}
body.pmc-unified .pmc-brand :is(b,strong) {font-weight: 750;}
body.pmc-unified .pmc-header .pmc-nav {
  display: flex; align-items: center; justify-content: center; gap: 8px 20px;
  flex-wrap: wrap; margin: 0; padding: 0; min-width: 0;
}
body.pmc-unified .pmc-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0;
  color: var(--pmc-ink); font-size: 16px; line-height: 1.45; text-decoration: none;
  border-bottom: 2px solid transparent;
}
body.pmc-unified .pmc-nav a:hover {color: var(--pmc-blue); border-bottom-color: var(--pmc-line);}
body.pmc-unified .pmc-nav a[aria-current] {color: var(--pmc-blue); border-bottom-color: var(--pmc-blue); font-weight: 700;}
body.pmc-unified .pmc-language {display: flex; align-items: center; flex: 0 1 auto; margin: 0; gap: 8px;}
body.pmc-unified .pmc-header select {
  font: 400 16px/1.4 var(--pmc-font); color: var(--pmc-ink); background: #fff;
  min-height: 44px; width: auto; max-width: 178px; padding: 9px 12px; margin: 0;
  border: 1px solid var(--pmc-line); border-radius: var(--pmc-radius);
}
body.pmc-unified .pmc-menu {display: none;}
body.pmc-unified .pmc-footer {
  max-width: var(--pmc-width); width: 100%; margin: 0 auto; padding: 32px 24px;
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
  gap: 16px 28px; border-top: 1px solid var(--pmc-line);
  color: var(--pmc-muted); font: 400 15px/1.7 var(--pmc-font);
}
body.pmc-unified .v2-wrap > .pmc-footer {padding-inline: 0;}
body.pmc-unified .pmc-footer :is(p,nav) {margin: 0;}
body.pmc-unified .pmc-footer nav {display: flex; gap: 8px 20px; flex-wrap: wrap;}
body.pmc-unified .pmc-footer a {color: var(--pmc-ink); padding-block: 5px; overflow-wrap: anywhere;}

/* Group color is identity, never a verification status. */
body.pmc-unified [data-group='A'] {--group-color: #096e68; --group-tint: #eaf4f2;}
body.pmc-unified [data-group='B'] {--group-color: #385b9c; --group-tint: #edf1f8;}
body.pmc-unified [data-group='C'] {--group-color: #8b652c; --group-tint: #faf4e8;}
body.pmc-unified [data-group='D'] {--group-color: #596596; --group-tint: #f0f1f8;}
body.pmc-unified [data-group='E'] {--group-color: #337c88; --group-tint: #eaf4f6;}
body.pmc-unified [data-group='F'] {--group-color: #805d6b; --group-tint: #f5eef1;}
body.pmc-unified .pmc-module-identity {display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-width: 0;}
body.pmc-unified .pmc-module-icon {
  width: 48px; height: 48px; flex: 0 0 48px; padding: 9px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--pmc-ink);
  background: var(--group-tint,#eaf4f2); border: 1px solid var(--pmc-line); border-radius: var(--pmc-radius);
}
body.pmc-unified img.pmc-module-icon {object-fit: contain;}
body.pmc-unified .pmc-module-icon :is(img,svg) {display: block; width: 28px; height: 28px; max-width: 100%;}
body.pmc-unified .pmc-module-meta {display: grid; gap: 2px; min-width: 0;}
body.pmc-unified :is(.pmc-group-tag,.pmc-module-code) {font-size: 14px; line-height: 1.5; color: var(--group-color,var(--pmc-teal)); font-weight: 700;}
body.pmc-unified .pmc-module-code {font-family: ui-monospace,Consolas,monospace;}
body.pmc-unified .pmc-group-tag {overflow-wrap: break-word;}
body.pmc-unified :is(.v2-card,.pmc-module-card) {
  min-width: 0; background: #fff; border: 1px solid var(--pmc-line);
  border-top: 4px solid var(--group-color,var(--pmc-teal)); border-radius: var(--pmc-radius);
  padding: 26px; display: flex; flex-direction: column;
}
body.pmc-unified :is(.v2-card,.pmc-module-card) h3 {font-size: 23px; line-height: 1.3; margin: 8px 0 14px;}
body.pmc-unified :is(.v2-card,.pmc-module-card) p {font-size: 16px; line-height: 1.7;}
body.pmc-unified :is(.v2-card,.pmc-module-card) > a:last-child {margin-top: auto; padding-top: 18px;}
body.pmc-unified .v2-groups {gap: 10px;}
body.pmc-unified .v2-groups a {font-size: 16px; min-height: 48px; display: inline-flex; align-items: center; background: #fff;}
body.pmc-unified :is(.v2-badge,.pmc-status) {
  display: inline-flex; align-items: center; align-self: flex-start; flex-wrap: wrap;
  gap: 6px; max-width: 100%; padding: 5px 9px; font: 600 14px/1.5 var(--pmc-font);
  letter-spacing: 0; color: #425c70; background: #edf3f7; border-radius: var(--pmc-radius);
}
body.pmc-unified .pmc-status[data-state='example'] {color: #194c87; background: #ecf3fb;}
body.pmc-unified .pmc-status[data-state='preparation'] {color: #72501e; background: #fff4df;}
body.pmc-unified .pmc-status[data-state='available'] {color: #076454; background: #e6f4ee;}

/* Shared controls preserve their native semantics and existing validation. */
body.pmc-unified :is(.button,.v2-button,button:not(.language-trigger)) {
  font-family: var(--pmc-font); font-size: 16px; line-height: 1.45; font-weight: 650;
  min-height: 48px; border-radius: var(--pmc-radius); white-space: normal;
}
body.pmc-unified :is(.button,.v2-button) {padding: 12px 20px; text-align: center;}
body.pmc-unified :is(.v2-button.primary,.v2 button.primary,.button.primary) {background: var(--pmc-blue); border-color: var(--pmc-blue); color: #fff;}
body.pmc-unified .hero-actions--pair > .button {min-height: 52px;}
body.pmc-unified :is(input,select,textarea) {font-family: var(--pmc-font); font-size: 16px; border-radius: var(--pmc-radius);}
body.pmc-unified :is(input,select):not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='range']):not([type='color']) {min-height: 48px;}
body.pmc-unified label {font-size: 16px; line-height: 1.5;}
body.pmc-unified textarea {line-height: 1.65;}
body.pmc-unified :is(.v2-notice,.agent-status,.learning-note) {font-size: 16px; line-height: 1.7;}
body.pmc-unified :is(.v2-lead,.learning-hero .intro) {line-height: 1.7;}
body.pmc-unified :is(.v2-art figcaption,.learning-hero figcaption) {font-size: 16px; line-height: 1.7;}
body.pmc-unified :is(.longread,.learning-article) p {font-size: 17px; line-height: 1.85;}
body.pmc-unified :is(.pm-contents,.learning-read,.pm-reading-links) a {font-size: 17px; line-height: 1.65;}
body.pmc-unified :is(.catalog-filters button,.catalog-search input) {font-size: 16px; line-height: 1.5;}
body.pmc-unified.v2 table {font-size: 16px;}
body.pmc-unified.v2 th {font-size: 15px;}
body.pmc-unified.v2 td small {font-size: 14px;}
body.pmc-unified .v2-summary strong {overflow-wrap: anywhere;}
body.pmc-unified :is(.v2-columns,.v2-grid,.related-documents,.guide-grid) > * {min-width: 0;}

/* Optional process graphic: readable text remains in HTML, not in a raster. */
body.pmc-unified .pmc-journey {list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px;}
body.pmc-unified .pmc-journey-step {min-width: 0; padding: 22px; border: 1px solid var(--pmc-line); border-top: 3px solid var(--group-color,var(--pmc-teal)); border-radius: var(--pmc-radius); background: #fff;}
body.pmc-unified .pmc-journey-step strong {display: block; font: 650 18px/1.4 var(--pmc-heading); margin: 10px 0;}
body.pmc-unified .pmc-journey-step p {font-size: 16px; margin: 0; line-height: 1.65;}
body.pmc-unified .pmc-output-preview {background: #fff; border: 1px solid var(--pmc-line); border-radius: var(--pmc-radius); padding: 24px; overflow: auto; max-width: 100%;}

/* Unified input preparation: bounded controls and readable source records. */
body.pmc-unified #unified-workspace {min-width: 0; width: 100%; margin-block: 28px 48px;}
body.pmc-unified #unified-workspace > .v2-panel {margin-block: 0 24px;}
body.pmc-unified #unified-workspace :is(.v2-panel,.v2-columns) {min-width: 0;}
body.pmc-unified #unified-workspace .v2-columns {align-items: start;}
body.pmc-unified #unified-workspace .v2-panel {border-radius: var(--pmc-radius); background: #fff;}
body.pmc-unified #uw-form {display: block; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;}
body.pmc-unified #unified-workspace label {display: block; margin: 18px 0 7px; color: var(--pmc-ink); font-size: 16px; line-height: 1.5; font-weight: 650; overflow-wrap: break-word;}
body.pmc-unified #unified-workspace :is(input,select,textarea):not([type='checkbox']):not([type='radio']):not([type='file']) {
  display: block; width: 100%; max-width: 100%; min-width: 0; padding: 11px 12px; margin: 0 0 18px;
  color: var(--pmc-ink); background: #fff; border: 1px solid #98aaba; border-radius: var(--pmc-radius);
  font: 400 16px/1.65 var(--pmc-font);
}
body.pmc-unified #unified-workspace select {overflow: hidden; text-overflow: ellipsis;}
body.pmc-unified #unified-workspace textarea {min-height: 112px; resize: vertical; overflow-wrap: anywhere;}
body.pmc-unified #unified-workspace textarea[rows='4'] {min-height: 148px;}
body.pmc-unified #unified-workspace details {max-width: 100%; margin: 20px 0; padding: 18px 20px; border: 1px solid var(--pmc-line); background: #f9fbfc; border-radius: var(--pmc-radius);}
body.pmc-unified #unified-workspace summary {min-height: 32px; font-size: 16px; line-height: 1.6; font-weight: 700; cursor: pointer; overflow-wrap: anywhere;}
body.pmc-unified #unified-workspace details[open] > summary {margin-bottom: 18px;}
body.pmc-unified #unified-workspace :is(p,li) {overflow-wrap: break-word;}
body.pmc-unified #unified-workspace .v2-actions {gap: 12px; margin-top: 20px; align-items: stretch;}
body.pmc-unified #unified-workspace .v2-actions > button {max-width: 100%;}
body.pmc-unified #unified-workspace button:disabled {cursor: not-allowed; color: #53667a; background: #edf1f4; border-color: #d8e1e8; box-shadow: none;}
body.pmc-unified #uw-sources {display: grid; grid-template-columns: 1fr; gap: 18px; margin-block: 22px;}
body.pmc-unified #unified-workspace #uw-sources .uw-source {margin: 0; padding: 24px; background: #fff; border-left: 3px solid var(--group-color,var(--pmc-teal));}
body.pmc-unified #unified-workspace fieldset {min-width: 0; margin: 20px 0; padding: 10px 16px 14px; border: 1px solid var(--pmc-line);}
body.pmc-unified #unified-workspace legend {max-width: 100%; padding-inline: 7px; font-size: 16px; line-height: 1.5; font-weight: 650; white-space: normal;}
body.pmc-unified #unified-workspace .uw-check {display: flex; align-items: flex-start; gap: 9px; min-height: 44px; padding: 9px 0; margin: 0; font-weight: 400;}
body.pmc-unified #unified-workspace .uw-check input[type='checkbox'] {display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 4px 0 0; padding: 0; accent-color: var(--pmc-blue);}
body.pmc-unified #uw-result {scroll-margin-top: 24px; border-left: 3px solid #8b652c;}
body.pmc-unified #uw-save {font-size: 15px; min-height: 1.6em; margin: 14px 0 0;}

@media (max-width: 900px) {
  body.pmc-unified #unified-workspace .v2-columns {grid-template-columns: 1fr; gap: 20px;}
}

@media (max-width: 1080px) {
  body.pmc-unified .pmc-header {gap: 16px 20px;}
  body.pmc-unified .pmc-header > .pmc-nav {order: 3; flex-basis: 100%; justify-content: flex-start;}
}
@media (max-width: 760px) {
  body.pmc-unified .pmc-header {padding: 20px; min-height: 0; gap: 12px;}
  body.pmc-unified .pmc-brand {font-size: 22px;}
  body.pmc-unified .pmc-header > .pmc-nav {display: none;}
  body.pmc-unified .pmc-header .pmc-language {margin-inline-start: auto;}
  body.pmc-unified .pmc-header select {max-width: 145px; padding: 9px 8px; font-size: 16px;}
  body.pmc-unified .pmc-menu {display: block; flex: 1 0 100%; width: 100%; padding: 0; margin: 0; border: 0; background: transparent;}
  body.pmc-unified .pmc-menu > summary {cursor: pointer; min-height: 44px; padding: 10px 12px; font-size: 16px; font-weight: 650; border: 1px solid var(--pmc-line); background: #fff; border-radius: var(--pmc-radius);}
  body.pmc-unified .pmc-menu .pmc-nav {display: grid; grid-template-columns: 1fr; gap: 0; padding: 8px 12px; margin-top: 8px; border: 1px solid var(--pmc-line); background: #fff;}
  body.pmc-unified .pmc-menu:not([open]) > :not(summary) {display: none;}
  body.pmc-unified .pmc-menu .pmc-nav a {min-height: 48px; width: 100%; justify-content: flex-start;}
  body.pmc-unified .pmc-journey {grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px;}
  body.pmc-unified .pmc-journey-step {padding: 18px;}
}
@media (max-width: 680px) {
  body.pmc-unified :is(.wrap,.v2-wrap,.pmc-container) {padding-inline: 20px;}
  body.pmc-unified :is(.preview,.v2-top) {font-size: 14px; padding: 10px 20px;}
  body.pmc-unified .pmc-footer {padding: 28px 20px; display: block;}
  body.pmc-unified .pmc-footer nav {margin-top: 12px;}
  body.pmc-unified :is(.v2-card,.pmc-module-card) {padding: 22px;}
  body.pmc-unified :is(.v2-card,.pmc-module-card) h3 {font-size: 22px;}
  body.pmc-unified .v2-hero {padding-block: 32px;}
  body.pmc-unified :is(.learning-hero,.hero) {padding-top: 32px;}
  body.pmc-unified :is(.longread,.learning-article) p {font-size: 17px; line-height: 1.8;}
  body.pmc-unified .pmc-output-preview {padding: 18px;}
  body.pmc-unified #unified-workspace {margin-top: 24px;}
  body.pmc-unified #unified-workspace #uw-sources .uw-source {padding: 18px;}
  body.pmc-unified #unified-workspace details {padding: 16px;}
  body.pmc-unified #unified-workspace .v2-actions > * {width: 100%; flex: 1 1 100%;}
}
@media (max-width: 380px) {
  body.pmc-unified .pmc-brand {font-size: 21px;}
  body.pmc-unified .pmc-header .pmc-language {flex: 1 0 100%; margin-inline-start: 0;}
  body.pmc-unified .pmc-header select {max-width: none; width: 100%;}
  body.pmc-unified .pmc-journey {grid-template-columns: 1fr;}
}
@media (prefers-reduced-motion: reduce) {
  body.pmc-unified *, body.pmc-unified *::before, body.pmc-unified *::after {scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important;}
}
@media (forced-colors: active) {
  body.pmc-unified :is(.pmc-module-icon,.pmc-status,.v2-badge,.pmc-journey-step) {border: 1px solid CanvasText;}
  body.pmc-unified :is(.v2-card,.pmc-module-card) {border-top-color: CanvasText;}
  body.pmc-unified :is(a,button,input,select,textarea,summary):focus-visible {outline-color: Highlight;}
}
