/* ==========================================================================
   DMF Vietnam — PA3 V4.2 Complete System Stylesheet (P08–P30 · K04..K13)
   Ngôn ngữ thiết kế: Contemporary Editorial (N16 / T05 — Roboto Condensed + Inter)
   Tuân thủ AQC-01 .. AQC-08 (A-DIRECTION.md & 01-VISUAL-INTERACTION-SPEC.md)
   ========================================================================== */

.pa3-v4-page {
  background: var(--aud-ivory, #f5f1e8);
  color: var(--aud-navy, #08283b);
  font-family: var(--sans, 'Inter', sans-serif);
  min-height: 100vh;
  overflow-x: clip;
}

.pa3-v4-page .aud-v4-header-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}

.pa3-v4-page .aud-v4-header-links a {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--aud-ink, #16324a);
  text-decoration: none;
}

.pa3-v4-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pa3-v4-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--aud-line-strong, #b8c2b0);
  background: var(--aud-surface, #fbf9f4);
  color: var(--aud-navy, #08283b);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.pa3-v4-search-trigger:hover {
  border-color: var(--aud-navy, #08283b);
  background: #fff;
}

.pa3-v5-kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--aud-sage-field, #e8ede0);
  border: 1px solid var(--aud-line, #d3dacb);
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--aud-navy, #08283b);
}

/* --- Subbar Pills & Footer Columns --- */
.pa3-v4-page .aud-v4-role-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

.pa3-v4-page .aud-v4-role-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--aud-line, #d3dacb);
  background: var(--aud-surface, #fbf9f4);
  color: var(--aud-ink, #16324a);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pa3-v4-page .aud-v4-role-tab:hover {
  border-color: var(--aud-navy, #08283b);
  background: #fff;
}

.pa3-v4-page .aud-v4-role-tab.is-active {
  background: var(--aud-navy, #08283b);
  border-color: var(--aud-navy, #08283b);
  color: var(--aud-ivory, #f5f1e8);
}

/* --- Hero & Split Editorial Hero (AQC-03) --- */
.pa3-v4-hero {
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--aud-line, #d3dacb);
  background: linear-gradient(180deg, #fbf9f4 0%, #f5f1e8 100%);
}

.pa3-v4-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 40px;
  align-items: center;
}

.pa3-v4-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--aud-muted, #51646e);
  margin-bottom: 16px;
}

.pa3-v4-breadcrumb a {
  color: var(--aud-ink, #16324a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pa3-v4-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pa3-v4-code-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--aud-navy, #08283b);
  color: var(--aud-ivory, #f5f1e8);
  font-family: var(--display, 'Roboto Condensed', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pa3-v4-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--aud-sage-field, #e8ede0);
  border: 1px solid var(--aud-line, #d3dacb);
  color: var(--aud-ink, #16324a);
  font-size: 11px;
  font-weight: 600;
}

.pa3-v4-demo-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fef6e6;
  border: 1px solid #d7b16a;
  color: #6b4908;
  font-size: 11px;
  font-weight: 700;
}

.pa3-v4-hero h1 {
  font-family: var(--display, 'Roboto Condensed', sans-serif);
  font-size: clamp(34px, 4.3vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--aud-navy, #08283b);
  margin: 0 0 16px;
  max-width: 24ch;
}

.pa3-v4-hero-lead {
  font-size: clamp(16px, 1.45vw, 18.5px);
  line-height: 1.64;
  color: var(--aud-ink, #16324a);
  max-width: 66ch;
  margin: 0 0 24px;
}

.pa3-v4-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pa3-v4-hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--aud-line, #d3dacb);
}

.pa3-v4-hero-highlights[data-cols="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pa3-v4-highlight-box {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--aud-line, #d3dacb);
  border-radius: 12px;
  padding: 13px 15px;
}

.pa3-v4-highlight-box span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aud-gold, #b68d40);
  margin-bottom: 4px;
}

.pa3-v4-highlight-box strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--aud-navy, #08283b);
}

/* --- Editorial Hero Visual Frame (N16 Organic Curve + Warm Bloom like P03/P09) --- */
.pa3-v4-hero-visual {
  position: relative;
}

.pa3-v4-hero-visual .aud-v4-hero-art.pa3-v4-hero-frame {
  position: relative;
  margin: 0;
  height: 495px;
  border-radius: 4px 96px 4px 32px;
  overflow: hidden;
  border: 1px solid var(--aud-line-strong, #b8c2b0);
  background: var(--aud-navy, #08283b);
  box-shadow: 0 24px 48px rgba(8, 40, 59, 0.11);
}

.pa3-v4-hero-visual .aud-v4-hero-art.pa3-v4-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}

.pa3-v4-hero-visual .aud-v4-hero-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 2;
  color: #ffffff;
  font-family: var(--display, 'Roboto Condensed', sans-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.18;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}

.pa3-v4-hero-visual .aud-v4-hero-caption small {
  display: block;
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde68a;
  margin-bottom: 6px;
}

.pa3-v4-policy-seal {
  padding: 28px;
  border-radius: 20px;
  background: var(--aud-surface, #fbf9f4);
  border: 1.5px solid var(--aud-navy, #08283b);
  box-shadow: 0 16px 36px rgba(8, 40, 59, 0.06);
}

.pa3-v4-policy-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aud-gold, #b68d40);
  margin-bottom: 8px;
}

.pa3-v4-policy-seal h3 {
  font-family: var(--display, 'Roboto Condensed', sans-serif);
  font-size: 24px;
  line-height: 1.2;
  color: var(--aud-navy, #08283b);
  margin: 0 0 14px;
}

/* --- Notice & Boundary Banner --- */
.pa3-v4-notice {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--aud-sage-field, #e8ede0);
  border-left: 4px solid var(--aud-gold, #b68d40);
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--aud-navy, #08283b);
}

.pa3-v4-notice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Section Containers & Grids (AQC-01.3 & AQC-02.2) --- */
.pa3-v4-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--aud-line, #d3dacb);
}

.pa3-v4-section-alt {
  background: var(--aud-surface, #fbf9f4);
}

.pa3-v4-section-sage {
  background: var(--aud-sage-field, #e8ede0);
}

.pa3-v4-section-head {
  margin-bottom: 30px;
}

.pa3-v4-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--aud-sage-deep, #556e5f);
  margin-bottom: 10px;
}

.pa3-v4-kicker::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--aud-gold, #b68d40);
}

.pa3-v4-section-head h2 {
  font-family: var(--display, 'Roboto Condensed', sans-serif);
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--aud-navy, #08283b);
  margin: 0 0 10px;
}

.pa3-v4-section-head p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--aud-muted, #51646e);
  max-width: 68ch;
  margin: 0;
}

.pa3-v4-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pa3-v4-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* --- Editorial Cards & Card Media (AQC-05.1) --- */
.pa3-v4-card {
  background: #fff;
  border: 1px solid var(--aud-line, #d3dacb);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(8, 40, 59, 0.045);
  transition: border-color 0.22s, box-shadow 0.22s;
}

.pa3-v4-card:hover {
  border-color: var(--aud-line-strong, #b8c2b0);
  box-shadow: 0 12px 30px rgba(8, 40, 59, 0.075);
}

.pa3-v4-card-media {
  margin: -26px -26px 16px;
  border-radius: 17px 17px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--aud-navy, #08283b);
  border-bottom: 1px solid var(--aud-line, #d3dacb);
  position: relative;
}

.pa3-v4-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pa3-v4-card:hover .pa3-v4-card-media img {
  transform: scale(1.025);
}

.pa3-v4-card h3 {
  font-family: var(--display, 'Roboto Condensed', sans-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 8px;
  color: var(--aud-navy, #08283b);
}

.pa3-v4-card p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--aud-ink, #16324a);
  margin: 0;
}

.pa3-v4-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pa3-v4-checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--aud-ink, #16324a);
}

.pa3-v4-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--aud-blue, #0757b8);
  font-weight: 700;
}

/* --- V06 Interactive SVG Sector Map (P10) --- */
.pa3-v4-sector-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.pa3-v4-sector-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--aud-line-strong, #b8c2b0);
  background: var(--aud-surface, #fbf9f4);
  color: var(--aud-navy, #08283b);
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.pa3-v4-sector-node:hover {
  border-color: var(--aud-navy, #08283b);
  background: #fff;
}

.pa3-v4-sector-node.is-active {
  background: var(--aud-navy, #08283b);
  border-color: var(--aud-navy, #08283b);
  color: var(--aud-ivory, #f5f1e8);
}

.pa3-v4-sector-node svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.pa3-v4-sector-node strong {
  font-family: var(--display, 'Roboto Condensed', sans-serif);
  font-size: 17px;
  line-height: 1.2;
}

.pa3-v4-sector-node span {
  font-size: 12px;
  opacity: 0.86;
}

/* --- V04 Editorial Dossier Sheet (P19) --- */
.pa3-v4-dossier {
  background: #fbf9f4;
  border: 2px solid var(--aud-navy, #08283b);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 14px 36px rgba(8, 40, 59, 0.07);
}

.pa3-v4-dossier-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--aud-line-strong, #b8c2b0);
}

.pa3-v4-dossier-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid #b68d40;
  background: #fef6e6;
  color: #6b4908;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Filter Toolbar (P08, P10, P16, P17) --- */
.pa3-v4-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  padding: 22px;
  border-radius: 16px;
  background: var(--aud-surface, #fbf9f4);
  border: 1px solid var(--aud-line, #d3dacb);
  margin-bottom: 26px;
}

.pa3-v4-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pa3-v4-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--aud-navy, #08283b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pa3-v4-field select,
.pa3-v4-field input,
.pa3-v4-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--aud-line-strong, #b8c2b0);
  background: #fff;
  color: var(--aud-navy, #08283b);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pa3-v4-field select:focus-visible,
.pa3-v4-field input:focus-visible,
.pa3-v4-field textarea:focus-visible {
  outline: none;
  border-color: var(--aud-blue, #0757b8);
  box-shadow: 0 0 0 3px rgba(7, 87, 184, 0.16);
}

.pa3-v4-field textarea {
  min-height: 96px;
  resize: vertical;
}

/* --- Status Pills (P08 Class Schedule) --- */
.pa3-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.pa3-status-open {
  background: #e3f4e8;
  color: #145a32;
}

.pa3-status-planned {
  background: #e8f0fe;
  color: #0b488c;
}

.pa3-status-full {
  background: #fce8e6;
  color: #8c1d18;
}

.pa3-status-updating {
  background: #fef6e6;
  color: #6b4908;
}

/* --- Comparison Matrix Table (P16 & P20) --- */
.pa3-v4-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--aud-line, #d3dacb);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 40, 59, 0.04);
}

.pa3-v4-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pa3-v4-table th,
.pa3-v4-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--aud-line, #d3dacb);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.58;
}

.pa3-v4-table th {
  background: var(--aud-sage-field, #e8ede0);
  font-weight: 700;
  color: var(--aud-navy, #08283b);
}

/* --- Footer Columns --- */
.pa3-v4-page .aud-v4-footer {
  padding: 56px 0 40px;
  background: var(--aud-surface, #fbf9f4);
  border-top: 1px solid var(--aud-line, #d3dacb);
}

.pa3-v4-page .aud-v4-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.pa3-v4-page .aud-v4-footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pa3-v4-page .aud-v4-footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--aud-muted, #51646e);
  margin: 10px 0 0;
}

.pa3-v4-page .aud-v4-footer-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aud-navy, #08283b);
  margin-bottom: 4px;
}

.pa3-v4-page .aud-v4-footer-grid a {
  font-size: 13px;
  color: var(--aud-ink, #16324a);
  text-decoration: none;
}

.pa3-v4-page .aud-v4-footer-grid a:hover {
  color: var(--aud-blue, #0757b8);
  text-decoration: underline;
}

.pa3-v4-page .aud-v4-contact-strip > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pa3-v4-page .aud-v4-contact-strip span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aud-muted, #51646e);
}

.pa3-v4-page .aud-v4-contact-strip a,
.pa3-v4-page .aud-v4-contact-strip strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--aud-navy, #08283b);
}

/* --- Global Search Modal (C03) --- */
.pa3-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 40, 59, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 16px 24px;
}

.pa3-search-dialog {
  width: 100%;
  max-width: 720px;
  max-height: 82vh;
  background: var(--aud-surface, #fbf9f4);
  border: 1px solid var(--aud-line-strong, #b8c2b0);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(8, 40, 59, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pa3-search-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--aud-line, #d3dacb);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pa3-search-head input {
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--aud-navy, #08283b);
  background: #fff;
  font-size: 15px;
  color: var(--aud-navy, #08283b);
}

.pa3-search-results {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pa3-search-item {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--aud-line, #d3dacb);
  text-decoration: none;
  color: var(--aud-navy, #08283b);
  transition: border-color 0.2s, transform 0.15s;
}

.pa3-search-item:hover {
  border-color: var(--aud-blue, #0757b8);
}

.pa3-search-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--aud-sage-deep, #556e5f);
  margin-bottom: 4px;
}

.pa3-search-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.pa3-search-item p {
  margin: 0;
  font-size: 13px;
  color: var(--aud-muted, #51646e);
}

/* --- Print-Friendly Plan Sheet (V04 on P19) --- */
@media print {
  .aud-v4-header,
  .aud-v4-subbar,
  .pa3-no-print,
  .aud-v4-closing,
  .aud-v4-footer {
    display: none !important;
  }
  .pa3-v4-page {
    background: #fff !important;
    color: #000 !important;
  }
  .pa3-v4-card,
  .pa3-v4-dossier {
    box-shadow: none !important;
    border: 1px solid #999 !important;
    break-inside: avoid;
  }
}

/* --- Responsive Tablet & Mobile Rules (AQC-06.2 & AQC-08.1) --- */
@media (max-width: 1023px) {
  .pa3-v4-page .aud-v4-header-links {
    display: none;
  }
  .pa3-v4-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pa3-v4-sector-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .pa3-v4-grid-2,
  .pa3-v4-grid-3,
  .pa3-v4-hero-highlights,
  .pa3-v4-sector-map,
  .pa3-v4-page .aud-v4-footer-grid {
    grid-template-columns: 1fr;
  }
  .pa3-v4-hero {
    padding: 32px 0 28px;
  }
  .pa3-v4-section {
    padding: 36px 0;
  }
  .pa3-v4-card {
    padding: 20px;
  }
  .pa3-v4-card-media {
    margin: -20px -20px 14px;
  }
  .pa3-v4-dossier {
    padding: 20px;
  }
  .pa3-v4-page .aud-v4-header-inner {
    flex-wrap: wrap;
    gap: 8px 10px;
    min-height: 60px;
    padding: 10px 0;
  }
  .pa3-v4-page .aud-v4-brand {
    width: 96px;
  }
  .pa3-v4-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
  }
  .pa3-v5-tactile-toggle {
    min-height: 36px;
    padding: 0 9px;
    font-size: 11.5px;
  }
  .pa3-v4-search-trigger {
    min-height: 36px;
    padding: 0 10px;
    font-size: 11.5px;
    gap: 5px;
  }
  .pa3-v5-kbd {
    display: none;
  }
  .pa3-v4-page .aud-v4-header-cta {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 11.5px;
    line-height: 1.25;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 560px) {
  .pa3-v4-page .aud-v4-header-inner {
    justify-content: space-between;
  }
  .pa3-v4-header-actions {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px;
    width: 100%;
  }
  .pa3-v4-header-actions .pa3-v5-tactile-toggle {
    justify-content: center;
  }
  .pa3-v4-header-actions .pa3-v4-search-trigger {
    justify-content: center;
  }
  .pa3-v4-page .aud-v4-header-cta {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ==========================================================================
   PA3 DISPLAY ENGINE V4.5 — Zero-JS Native Compositor Presentation
   (View Transitions API · Scroll-Driven Animations · @starting-style ·
    Editorial Text-Wrap Balance/Pretty & Tabular-Nums · OKLCH & Content-Visibility)
   ========================================================================== */

/* --- 1. V4.5-VT: Native View Transitions API (SPA & Cross-Document MPA) --- */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 180ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }

  .pa3-v4-page .aud-v4-header {
    view-transition-name: pa3-global-header;
  }

  .pa3-v4-page .aud-v4-subbar {
    view-transition-name: pa3-global-subbar;
  }

  .pa3-v4-hero-frame {
    view-transition-name: pa3-editorial-hero-frame;
  }
}

/* --- 2. V4.5-SDA: CSS Scroll-Driven Animations (Compositor Thread 120fps) --- */
.pa3-v4-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 160;
  background: rgba(8, 40, 59, 0.08);
  pointer-events: none;
}

.pa3-v4-reading-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0757b8 0%, #d97706 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .pa3-v4-reading-progress-bar {
      animation: pa3-reading-scroll-progress auto linear forwards;
      animation-timeline: scroll(root);
    }
  }
}

@keyframes pa3-reading-scroll-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Scroll-linked subtle card elevation for non-policy pages (PI-01 Section 4/6) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pa3-v4-page:not([data-archetype*="K13"])
      .pa3-v4-section
      + .pa3-v4-section
      .pa3-v4-card {
      animation: pa3-card-view-enter linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 18%;
    }
  }
}

@keyframes pa3-card-view-enter {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}

/* --- 3. V4.5-START: @starting-style & allow-discrete for Dialogs & Notices --- */
@media (prefers-reduced-motion: no-preference) {
  .pa3-search-backdrop {
    transition:
      opacity 180ms cubic-bezier(0.22, 1, 0.36, 1),
      display 180ms allow-discrete;
  }

  .pa3-search-dialog {
    transition:
      opacity 180ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .pa3-v4-notice[role="status"] {
    transition:
      opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  @starting-style {
    .pa3-search-backdrop {
      opacity: 0;
    }

    .pa3-search-dialog {
      opacity: 0;
      transform: translateY(-8px) scale(0.985);
    }

    .pa3-v4-notice[role="status"] {
      opacity: 0;
      transform: translateY(6px);
    }
  }
}

/* --- 4. V4.5-TYPO: Editorial Text-Wrap Balance/Pretty & Tabular Numerals --- */
.pa3-v4-hero h1,
.pa3-v4-section-head h2,
.pa3-v4-card h3,
.aud-v4-closing-copy h2,
.pa3-v4-dossier-header h2 {
  text-wrap: balance;
}

.pa3-v4-hero-lead,
.pa3-v4-section-head p,
.pa3-v4-card p,
.pa3-v4-checklist li,
.aud-v4-closing-copy p {
  text-wrap: pretty;
}

.pa3-v4-table,
.pa3-v4-highlight-box strong,
.pa3-v4-code-pill,
.pa3-v4-meta-pill,
.pa3-v4-dossier-stamp,
.aud-v4-contact-strip,
[data-class-code],
[data-estimate-group],
[data-plan-sheet] {
  font-variant-numeric: tabular-nums lining-nums;
}

/* --- 5. V4.5-PERF: OKLCH Wide-Gamut Surface Blending --- */
@supports (color: color-mix(in oklch, #08283b, #fbf9f4)) {
  .pa3-v4-page .aud-v4-header {
    background: color-mix(in oklch, var(--aud-bg, #f4f1ea) 92%, transparent);
  }

  .pa3-v4-sector-node.is-active,
  .pa3-v4-sector-node:hover {
    background: color-mix(in oklch, #ffffff 88%, #fef3c7 12%);
  }

  .pa3-v4-card:focus-within {
    border-color: color-mix(in oklch, var(--aud-navy, #08283b) 65%, #0757b8 35%);
  }
}

/* ==========================================================================
   PA3 SHOWCASE ENGINE V5.0 (REV 5.2) — Museum-Grade Interactive Presentation
   (1. V5.0-SPATIAL 3D Perspective Tilt & Cursor Spotlight
    2. V5.0-ATLAS Cartographic Germany Map & Telemetry Dossier
    3. V5.0-VOICE Integrated Redemittel & 36-Bar Organic Waveform Studio
    4. V5.0-DAY24 Dual-Timezone Horizon Deck & 5-Stage Connected Scrubber
    5. V5.0-BLUEPRINT Bauhaus Technical X-Ray & Telemetry Ribbon
    6. V5.0-CMDK Command Palette ⌘K & Tactile Audio Controls)
   ========================================================================== */

/* --- 1. V5.0-SPATIAL: 3D Perspective Tilt & Radial Cursor Spotlight --- */
.pa3-v4-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pa3-v4-page:not([data-archetype*="K13"]) .pa3-v4-card.is-spatial-active {
    transform: perspective(1200px) rotateX(var(--tilt-y, 0deg))
      rotateY(var(--tilt-x, 0deg)) translateY(-2px);
    border-color: rgba(182, 141, 64, 0.62);
    box-shadow: 0 20px 42px rgba(8, 40, 59, 0.1);
  }

  .pa3-v4-page:not([data-archetype*="K13"]) .pa3-v4-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
      440px circle at var(--spot-x, 50%) var(--spot-y, 50%),
      rgba(245, 158, 11, 0.1),
      rgba(7, 87, 184, 0.04) 40%,
      transparent 72%
    );
    opacity: 0;
    transition: opacity 220ms ease;
    z-index: 0;
  }

  .pa3-v4-page:not([data-archetype*="K13"]) .pa3-v4-card.is-spatial-active::before {
    opacity: 1;
  }

  .pa3-v4-card > * {
    position: relative;
    z-index: 1;
  }
}

/* --- 2. V5.0-ATLAS: Swiss Editorial Cartographic Plate (Warm Archival Vellum) --- */
.pa3-v5-atlas {
  margin-bottom: 32px;
  padding: 28px;
  border-radius: 16px;
  background: #faf8f2;
  border: 1px solid #d8d1c2;
  color: #142d42;
  box-shadow: 0 14px 36px rgba(20, 45, 66, 0.06);
}

.pa3-v5-atlas-telemetry {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: #f4f0e6;
  border: 1px solid #dfd9cc;
}

.pa3-v5-telemetry-endpoint {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pa3-v5-telemetry-endpoint.is-target {
  text-align: right;
}

.pa3-v5-telemetry-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6e27;
}

.pa3-v5-telemetry-endpoint strong {
  font-family: var(--display, 'Roboto Condensed', sans-serif);
  font-size: 18px;
  color: #142d42;
}

.pa3-v5-telemetry-endpoint small {
  font-size: 11.5px;
  color: #5a6b7c;
  font-variant-numeric: tabular-nums;
}

.pa3-v5-telemetry-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pa3-v5-telemetry-line {
  position: relative;
  width: 100%;
  height: 1px;
  background: #b37d28;
}

.pa3-v5-telemetry-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2px 10px;
  border-radius: 4px;
  background: #faf8f2;
  border: 1px solid #b37d28;
  color: #9a6e27;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pa3-v5-telemetry-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #5a6b7c;
  text-align: center;
}

.pa3-v5-atlas-grid {
  display: grid;
  grid-template-columns: 1.24fr 0.96fr;
  gap: 24px;
  align-items: stretch;
}

.pa3-v5-atlas-stage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 12px;
  background: #f4f0e6;
  border: 1px solid #dfd9cc;
}

.pa3-v5-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #dfd9cc;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5a6b7c;
}

.pa3-v5-stage-bar span:last-child {
  color: #9a6e27;
}

.pa3-v5-atlas-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- WebGL 3D Extruded Topographic Germany & 3D Globe Stage --- */
.pa3-v5-3d-stage-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pa3-v5-3d-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pa3-v5-3d-mode-tabs {
  display: inline-flex;
  background: #eae4d6;
  padding: 3px;
  border-radius: 7px;
  border: 1px solid #d5ccb8;
  gap: 3px;
}

.pa3-v5-3d-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5a6b7c;
  cursor: pointer;
  transition: all 160ms ease;
}

.pa3-v5-3d-tab.is-active {
  background: #142d42;
  color: #faf8f2;
  box-shadow: 0 2px 6px rgba(20, 45, 66, 0.16);
}

.pa3-v5-3d-cam-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.pa3-v5-3d-cam-btn {
  appearance: none;
  background: #fcfbf8;
  border: 1px solid #d5ccb8;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #142d42;
  cursor: pointer;
  transition: all 150ms ease;
}

.pa3-v5-3d-cam-btn:hover,
.pa3-v5-3d-cam-btn.is-active {
  background: #142d42;
  border-color: #142d42;
  color: #faf8f2;
}

.pa3-v5-3d-viewport {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d5ccb8;
  background:
    radial-gradient(circle at 50% 44%, #fbf9f3 0%, #efe9dc 62%, #e4dccb 100%);
  box-shadow: inset 0 2px 12px rgba(20, 45, 66, 0.06);
}

.pa3-v5-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.pa3-v5-cobe-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pa3-v5-cobe-canvas {
  width: 440px;
  height: 440px;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  cursor: grab;
}

.pa3-v5-cobe-canvas:active {
  cursor: grabbing;
}

.pa3-v5-3d-hud-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
  z-index: 3;
}

.pa3-v5-3d-hud-badge {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(20, 45, 66, 0.9);
  color: #faf8f2;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pa3-v5-3d-hud-raycast {
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(252, 251, 248, 0.92);
  border: 1px solid #d5ccb8;
  color: #7a5417;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pa3-v5-3d-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.pa3-v5-3d-pin,
.pa3-v5-maplibre-marker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(252, 251, 248, 0.94);
  border: 1px solid #cbbda4;
  color: #142d42;
  box-shadow: 0 4px 12px rgba(20, 45, 66, 0.14);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.pa3-v5-3d-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
}

.pa3-v5-3d-pin:hover,
.pa3-v5-3d-pin.is-active,
.pa3-v5-maplibre-marker:hover,
.pa3-v5-maplibre-marker.is-active {
  background: #142d42;
  border-color: #b37d28;
  color: #faf8f2;
  z-index: 5;
}

.pa3-v5-3d-pin-code {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(179, 125, 40, 0.16);
  color: #8f631d;
}

.pa3-v5-3d-pin.is-active .pa3-v5-3d-pin-code,
.pa3-v5-maplibre-marker.is-active .pa3-v5-3d-pin-code {
  background: #b37d28;
  color: #faf8f2;
}

.pa3-v5-3d-pin-name {
  font-size: 10.5px;
  font-weight: 700;
}

.pa3-v5-3d-origin-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: inline-flex;
  flex-direction: column;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(179, 125, 40, 0.95);
  border: 1px solid #8f631d;
  color: #faf8f2;
  box-shadow: 0 4px 12px rgba(20, 45, 66, 0.16);
  white-space: nowrap;
}

.pa3-v5-3d-origin-code {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.pa3-v5-3d-origin-label {
  font-size: 10px;
  font-weight: 700;
}

.pa3-v5-flight-arc {
  stroke-dasharray: 5 4;
  animation: pa3-v5-flight-flow 12s linear infinite;
}

@keyframes pa3-v5-flight-flow {
  from {
    stroke-dashoffset: 180;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.pa3-v5-pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: pa3-v5-radar-pulse 2.4s ease-out infinite;
}

@keyframes pa3-v5-radar-pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

.pa3-v5-region-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.pa3-v5-region-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 11px;
  border-radius: 6px;
  border: 1px solid #d8d1c2;
  background: #fcfbf8;
  color: #142d42;
  text-align: left;
  cursor: pointer;
  transition: all 180ms ease;
}

.pa3-v5-region-pill span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #766a56;
}

.pa3-v5-region-pill strong {
  font-size: 11.5px;
  font-weight: 700;
  color: #142d42;
}

.pa3-v5-region-pill.is-active,
.pa3-v5-region-pill:hover {
  background: #142d42;
  border-color: #142d42;
}

.pa3-v5-region-pill.is-active span,
.pa3-v5-region-pill:hover span {
  color: #d8c398;
}

.pa3-v5-region-pill.is-active strong,
.pa3-v5-region-pill:hover strong {
  color: #faf8f2;
}

.pa3-v5-atlas-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 12px;
  background: #fcfbf8;
  color: #142d42;
  border: 1px solid #dfd9cc;
}

.pa3-v5-atlas-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dfd9cc;
}

.pa3-v5-atlas-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a6e27;
}

.pa3-v5-atlas-code {
  padding: 2px 8px;
  border-radius: 4px;
  background: #142d42;
  color: #faf8f2;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pa3-v5-atlas-panel-head h4 {
  font-family: var(--display, 'Roboto Condensed', sans-serif);
  font-size: 27px;
  line-height: 1.1;
  margin: 0 0 6px;
  color: #142d42;
}

.pa3-v5-atlas-cities {
  font-size: 12.5px;
  font-weight: 600;
  color: #5a6b7c;
  margin: 0 0 14px;
}

.pa3-v5-atlas-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pa3-v5-atlas-metrics > div {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f0e6;
  border: 1px solid #dfd9cc;
}

.pa3-v5-atlas-metrics span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #766a56;
  margin-bottom: 3px;
}

.pa3-v5-atlas-metrics strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: #142d42;
}

.pa3-v5-atlas-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pa3-v5-atlas-specs > div {
  padding: 11px 13px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dfd9cc;
}

.pa3-v5-atlas-specs span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9a6e27;
  margin-bottom: 4px;
}

.pa3-v5-atlas-specs strong,
.pa3-v5-atlas-specs p {
  font-size: 13px;
  line-height: 1.52;
  color: #142d42;
  margin: 0;
}

.pa3-v5-atlas-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pa3-v5-atlas-note {
  font-size: 11.5px;
  line-height: 1.45;
  color: #5a6b7c;
}

/* --- 3. V5.0-VOICE: Dieter Rams / Braun Minimal Acoustic Deck (Warm Vellum) --- */
.pa3-v5-voice-studio {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #faf8f2;
  border: 1px solid #d8d1c2;
  color: #142d42;
}

.pa3-v5-voice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #dfd9cc;
}

.pa3-v5-voice-badge {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6e27;
  margin-bottom: 3px;
}

.pa3-v5-voice-sub {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #142d42;
}

.pa3-v5-voice-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pa3-v5-voice-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #142d42;
  background: #142d42;
  color: #faf8f2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.pa3-v5-voice-play-btn:hover {
  opacity: 0.9;
}

.pa3-v5-play-icon {
  font-size: 10px;
}

.pa3-v5-rate-group {
  display: inline-flex;
  padding: 2px;
  border-radius: 6px;
  background: #f4f0e6;
  border: 1px solid #d8d1c2;
}

.pa3-v5-voice-rate-btn {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  border: 0;
  background: transparent;
  color: #5a6b7c;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.pa3-v5-voice-rate-btn.is-active {
  background: #142d42;
  color: #faf8f2;
  font-weight: 700;
}

.pa3-v5-waveform {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fcfbf8;
  border: 1px solid #dfd9cc;
  margin-bottom: 12px;
}

.pa3-v5-wave-bar {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: rgba(20, 45, 66, 0.22);
  transition: height 160ms ease, background-color 160ms ease;
}

.pa3-v5-wave-bar.is-passed {
  background: #9a6e27;
}

.pa3-v5-wave-bar.is-active {
  background: #142d42;
}

.pa3-v5-voice-de {
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.72;
  color: #142d42 !important;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fcfbf8;
  border: 1px solid #dfd9cc;
  border-left: 3px solid #9a6e27;
}

.pa3-v5-voice-word {
  display: inline-block;
  padding: 0 2px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 140ms ease;
}

.pa3-v5-voice-word:hover {
  border-bottom-color: #d8c398;
}

.pa3-v5-voice-word.is-speaking-word {
  color: #142d42;
  border-bottom-color: #b37d28;
  background: rgba(179, 125, 40, 0.14);
  font-weight: 700;
}

.pa3-v5-voice-meta {
  padding-top: 10px;
  border-top: 1px solid #dfd9cc;
}

.pa3-v5-voice-vi,
.pa3-v5-voice-hint {
  font-size: 12.5px;
  line-height: 1.55;
  color: #5a6b7c !important;
  margin: 4px 0 0;
}

/* --- 4. V5.0-DAY24: Nomos Glashütte / Braun 24-Hour Horological Chronograph --- */
.pa3-v5-day24 {
  margin-top: 28px;
  padding: 28px;
  border-radius: 16px;
  background: #faf8f2;
  color: #142d42;
  border: 1px solid #d8d1c2;
  box-shadow: 0 14px 36px rgba(20, 45, 66, 0.06);
}

.pa3-v5-day24-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #dfd9cc;
}

.pa3-v5-day24-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6e27;
  margin-bottom: 6px;
}

.pa3-v5-day24-head h3 {
  font-family: var(--display, 'Roboto Condensed', sans-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  color: #142d42;
  margin: 0 0 6px;
}

.pa3-v5-day24-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: #5a6b7c !important;
  margin: 0;
}

.pa3-v5-day24-clocks {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.pa3-v5-clock-pill {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fcfbf8;
  border: 1px solid #d8d1c2;
  font-variant-numeric: tabular-nums;
}

.pa3-v5-clock-pill.is-vn {
  border-color: #b37d28;
}

.pa3-v5-clock-flag {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #766a56;
  margin-bottom: 4px;
}

.pa3-v5-clock-pill strong {
  display: block;
  font-family: var(--display, 'Roboto Condensed', sans-serif);
  font-size: 24px;
  line-height: 1.05;
  color: #142d42;
  margin-bottom: 3px;
}

.pa3-v5-clock-pill.is-vn strong {
  color: #9a6e27;
}

.pa3-v5-clock-pill small {
  display: block;
  font-size: 11px;
  color: #5a6b7c;
}

.pa3-v5-clock-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #9a6e27;
  font-weight: 700;
}

.pa3-v5-clock-bridge small {
  font-size: 10px;
  color: #766a56;
}

.pa3-v5-horizon-deck {
  padding: 14px 18px 18px;
  border-radius: 10px;
  background: #fcfbf8;
  border: 1px solid #dfd9cc;
  margin-bottom: 20px;
}

.pa3-v5-sky-svg {
  width: 100%;
  height: 56px;
  display: block;
  margin-bottom: 10px;
}

.pa3-v5-range-sr,
.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;
}

.pa3-v5-slot-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pa3-v5-slot-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #d8d1c2;
  background: #f7f4ec;
  color: #142d42;
  text-align: left;
  cursor: pointer;
  transition: all 180ms ease;
}

.pa3-v5-slot-step {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9a6e27;
}

.pa3-v5-slot-de {
  font-size: 13px;
  font-weight: 700;
  color: #142d42;
}

.pa3-v5-slot-vn {
  font-size: 11px;
  color: #5a6b7c;
}

.pa3-v5-slot-btn.is-active,
.pa3-v5-slot-btn:hover {
  background: #142d42;
  border-color: #142d42;
}

.pa3-v5-slot-btn.is-active .pa3-v5-slot-step,
.pa3-v5-slot-btn:hover .pa3-v5-slot-step {
  color: #d8c398;
}

.pa3-v5-slot-btn.is-active .pa3-v5-slot-de,
.pa3-v5-slot-btn:hover .pa3-v5-slot-de,
.pa3-v5-slot-btn.is-active .pa3-v5-slot-vn,
.pa3-v5-slot-btn:hover .pa3-v5-slot-vn {
  color: #faf8f2;
}

.pa3-v5-day24-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pa3-v5-day24-card {
  padding: 20px 22px;
  border-radius: 10px;
  background: #fcfbf8;
  color: #142d42;
  border: 1px solid #dfd9cc;
}

.pa3-v5-day24-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #dfd9cc;
}

.pa3-v5-day24-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #142d42;
}

.pa3-v5-day24-tag.is-vn {
  color: #9a6e27;
}

.pa3-v5-day24-loc {
  font-size: 11px;
  font-weight: 600;
  color: #5a6b7c;
}

.pa3-v5-conn-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid #d8d1c2;
  background: #f4f0e6;
  color: #142d42;
}

.pa3-v5-conn-badge.tone-golden {
  background: #faf3e0;
  border-color: #b37d28;
  color: #9a6e27;
}

.pa3-v5-day24-card h4 {
  font-family: var(--display, 'Roboto Condensed', sans-serif);
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 6px;
  color: #142d42;
}

.pa3-v5-day24-card p {
  font-size: 13.5px;
  line-height: 1.58;
  color: #334b5e !important;
  margin: 0;
}

/* --- 5. V5.0-BLUEPRINT: DIN ISO 128 Architectural Drafting Vellum Mode --- */
.pa3-v5-blueprint-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #142d42;
  background: #fcfbf8;
  color: #142d42;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 180ms ease;
}

.pa3-v5-blueprint-toggle.is-active {
  background: #142d42;
  border-color: #142d42;
  color: #faf8f2;
}

.pa3-v5-blueprint-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: #e9eff4;
  border: 1px solid #b8c7d4;
  color: #142d42;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pa3-v5-blueprint-strip span:first-child {
  color: #9a6e27;
}

.pa3-v4-dossier.is-blueprint-xray,
.pa3-v4-table-wrap.is-blueprint-xray {
  background-color: #eff3f6 !important;
  background-image:
    linear-gradient(rgba(20, 45, 66, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 45, 66, 0.065) 1px, transparent 1px),
    linear-gradient(rgba(20, 45, 66, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 45, 66, 0.025) 1px, transparent 1px) !important;
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px !important;
  border-color: #94a8b8 !important;
  color: #142d42 !important;
}

.pa3-v4-table-wrap.is-blueprint-xray {
  padding: 16px;
}

.pa3-v4-dossier.is-blueprint-xray .pa3-v4-card {
  background: rgba(252, 251, 248, 0.94) !important;
  border-color: #b8c7d4 !important;
}

.pa3-v4-dossier-stamp {
  animation: pa3-stamp-impact 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pa3-stamp-impact {
  0% {
    transform: scale(1.16);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- 6. V5.0-CMDK: Command Palette Quick Actions & Tactile Audio Pill --- */
.pa3-v5-tactile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--aud-line-strong, #b8c2b0);
  background: var(--aud-surface, #fbf9f4);
  color: var(--aud-navy, #08283b);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 180ms ease;
}

.pa3-v5-tactile-toggle:hover {
  border-color: var(--aud-navy, #08283b);
  background: #ffffff;
}

.pa3-v5-tactile-toggle.is-active {
  background: #fef3c7;
  border-color: #d97706;
  color: #78350f;
}

.pa3-v5-cmdk-quick {
  padding: 12px 20px;
  background: #f3efe6;
  border-bottom: 1px solid var(--aud-line, #d3dacb);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pa3-v5-cmdk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--aud-line-strong, #b8c2b0);
  color: var(--aud-navy, #08283b);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 150ms ease;
}

.pa3-v5-cmdk-chip:hover {
  background: var(--aud-navy, #08283b);
  color: #ffffff;
}

@media (max-width: 1023px) {
  .pa3-v5-atlas-telemetry,
  .pa3-v5-atlas-grid,
  .pa3-v5-day24-head,
  .pa3-v5-day24-cards {
    grid-template-columns: 1fr;
  }
  .pa3-v5-telemetry-endpoint.is-target {
    text-align: left;
  }
  .pa3-v5-slot-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pa3-v5-region-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pa3-v5-tactile-toggle span:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  .pa3-v5-slot-buttons,
  .pa3-v5-region-pills,
  .pa3-v5-atlas-metrics,
  .pa3-v5-day24-clocks,
  .pa3-v4-hero-highlights[data-cols="4"] {
    grid-template-columns: 1fr;
  }
}



