html.auth-check-pending body {
  visibility: hidden;
}

body[data-page="legislation-observatory"] {
  --pa-ink: #10233f;
  --pa-ink-soft: #40516b;
  --pa-muted: #68778c;
  --pa-line: #dce4ee;
  --pa-line-strong: #c8d3e1;
  --pa-surface: #ffffff;
  --pa-surface-soft: #f6f8fb;
  --pa-surface-blue: #f1f6ff;
  --pa-navy: #12396b;
  --pa-blue: #2368d8;
  --pa-blue-dark: #164fae;
  --pa-cyan: #0b91b6;
  --pa-green: #16805f;
  --pa-amber: #9b6519;
  --pa-red: #b43e47;
  --pa-radius: 16px;
  --pa-shadow: 0 12px 34px rgba(25, 50, 82, .09), 0 2px 8px rgba(25, 50, 82, .04);
  margin: 0;
  min-height: 100vh;
  color: var(--pa-ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(63, 126, 208, .08), transparent 25rem),
    #f3f6fa;
  font-family: Inter, "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page="legislation-observatory"] *,
body[data-page="legislation-observatory"] *::before,
body[data-page="legislation-observatory"] *::after {
  box-sizing: border-box;
}

body[data-page="legislation-observatory"] .topbar {
  position: sticky;
  top: 0;
  z-index: 80;
}

.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;
}

.pa-main {
  min-width: 0;
}

.pa-page {
  width: min(1800px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.pa-header {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  min-height: 148px;
  padding: 25px 30px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background:
    linear-gradient(107deg, rgba(8, 31, 63, .98) 0%, rgba(13, 61, 111, .96) 55%, rgba(23, 102, 154, .9) 100%);
  box-shadow: 0 16px 45px rgba(15, 46, 84, .2);
}

.pa-header-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 38%;
  opacity: .34;
  background:
    linear-gradient(90deg, #103b70 0%, transparent 36%),
    url("landing-background.svg") center 45% / cover no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}

.pa-header-copy {
  position: relative;
  max-width: 760px;
}

.pa-eyebrow {
  margin: 0 0 6px;
  color: var(--pa-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.pa-header .pa-eyebrow {
  color: #7ed9f4;
}

.pa-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.pa-header-copy > p:last-child {
  max-width: 660px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.5;
}

.pa-header-status {
  display: grid;
  justify-items: end;
  gap: 4px;
  max-width: 360px;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

#loStatus[data-kind="error"] {
  color: #ffd1d1;
}

.pa-command-shell {
  position: sticky;
  z-index: 60;
  top: 55px;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid rgba(200, 211, 225, .9);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(24, 50, 82, .1);
  backdrop-filter: blur(16px);
}

.pa-command-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto minmax(154px, auto) auto auto;
  gap: 8px;
  align-items: center;
}

.pa-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 11px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.pa-search:focus-within {
  border-color: var(--pa-blue);
  box-shadow: 0 0 0 3px rgba(35, 104, 216, .13);
}

.pa-search svg {
  flex: 0 0 auto;
  width: 18px;
  color: var(--pa-muted);
}

.pa-search input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--pa-ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.pa-search input::placeholder {
  color: #8794a6;
}

.pa-btn,
.pa-icon-btn,
.pa-back-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 10px;
  color: var(--pa-ink-soft);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
}

.pa-btn {
  padding: 0 13px;
}

.pa-btn:hover,
.pa-icon-btn:hover {
  border-color: #9db4d0;
  color: var(--pa-blue-dark);
  background: var(--pa-surface-blue);
}

.pa-btn:active,
.pa-icon-btn:active {
  transform: translateY(1px);
}

.pa-btn:focus-visible,
.pa-icon-btn:focus-visible,
.pa-back-btn:focus-visible,
.pa-dossier-card:focus-visible,
.pa-tab:focus-visible,
.pa-link-card:focus-visible {
  outline: 3px solid rgba(35, 104, 216, .25);
  outline-offset: 2px;
}

.pa-btn svg,
.pa-icon-btn svg,
.pa-back-btn svg {
  width: 16px;
  height: 16px;
}

.pa-btn-primary {
  border-color: var(--pa-blue);
  color: #fff;
  background: var(--pa-blue);
  box-shadow: 0 5px 15px rgba(35, 104, 216, .2);
}

.pa-btn-primary:hover {
  border-color: var(--pa-blue-dark);
  color: #fff;
  background: var(--pa-blue-dark);
}

.pa-btn-quiet {
  border-color: transparent;
  background: transparent;
}

.pa-btn[disabled],
.pa-icon-btn[disabled] {
  opacity: .5;
  cursor: wait;
}

.pa-count,
.pa-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--pa-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.pa-sort select,
.pa-filter-fields input,
.pa-filter-fields select,
.pa-date-grid input {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 10px;
  outline: none;
  color: var(--pa-ink);
  background: #fff;
  font: inherit;
  font-size: 12px;
}

.pa-sort select:focus,
.pa-filter-fields input:focus,
.pa-filter-fields select:focus,
.pa-date-grid input:focus {
  border-color: var(--pa-blue);
  box-shadow: 0 0 0 3px rgba(35, 104, 216, .12);
}

.pa-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pa-active-filters:not(:empty) {
  padding: 9px 2px 0;
}

.pa-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid #cbdcf3;
  border-radius: 999px;
  color: #315f99;
  background: #f2f7fe;
  font-size: 10px;
  font-weight: 700;
}

.pa-filter-panel {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 0;
  width: min(620px, calc(100vw - 40px));
  padding: 19px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(19, 46, 78, .2);
}

.pa-filter-head,
.pa-dialog-head,
.pa-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pa-filter-head h2,
.pa-dialog-head h2 {
  margin: 0;
  color: var(--pa-ink);
  font-size: 19px;
  letter-spacing: -.02em;
}

.pa-icon-btn {
  flex: 0 0 auto;
  width: 36px;
  min-height: 36px;
  padding: 0;
}

.pa-filter-fields {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 11px;
  margin-top: 18px;
}

.pa-filter-fields label,
.pa-date-grid label {
  display: grid;
  gap: 6px;
  color: var(--pa-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pa-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--pa-line);
}

.pa-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 66px;
  margin-top: 14px;
  padding: 9px 16px;
  border: 1px solid var(--pa-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
}

.pa-results-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pa-results-copy strong {
  overflow: hidden;
  color: var(--pa-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-results-copy span {
  color: var(--pa-muted);
  font-size: 11px;
}

.pa-kpis {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  margin: 0;
}

.pa-kpis > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 7px;
  min-width: 94px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--pa-surface-soft);
}

.pa-kpis dt {
  color: var(--pa-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pa-kpis dd {
  margin: 0;
  color: var(--pa-navy);
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 700;
}

.pa-workspace {
  display: grid;
  grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
  min-height: 590px;
  height: calc(100dvh - 324px);
  margin-top: 14px;
  transition: grid-template-columns .2s ease;
}

.pa-workspace.is-list-collapsed {
  grid-template-columns: 58px minmax(0, 1fr);
}

.pa-list-pane,
.pa-detail-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--pa-line-strong);
  border-radius: var(--pa-radius);
  background: var(--pa-surface);
  box-shadow: var(--pa-shadow);
}

.pa-list-pane,
.pa-detail-pane {
  flex-direction: column;
}

.pa-pane-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-height: 65px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--pa-line);
  background: #fbfcfe;
}

.pa-pane-head h2 {
  margin: 0;
  color: var(--pa-ink);
  font-size: 14px;
  line-height: 1.2;
}

.pa-workspace.is-list-collapsed .pa-list-pane .pa-pane-head {
  justify-content: center;
  padding: 12px 6px;
}

.pa-workspace.is-list-collapsed .pa-list-pane .pa-pane-head > div,
.pa-workspace.is-list-collapsed .pa-list {
  display: none;
}

.pa-workspace.is-list-collapsed #loListToggle svg {
  transform: rotate(180deg);
}

.pa-list,
.pa-detail {
  min-height: 0;
  overflow: auto;
  scrollbar-color: #c3cfdd transparent;
  scrollbar-width: thin;
}

.pa-list {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 10px;
  background: #f8fafc;
}

.pa-detail {
  flex: 1 1 auto;
  background: #fff;
}

.pa-detail-head {
  min-height: 65px;
}

.pa-detail-head > div {
  min-width: 0;
}

.pa-detail-meta {
  overflow: hidden;
  max-width: 42%;
  color: var(--pa-muted);
  font-size: 10px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-back-btn {
  display: none;
  min-height: 36px;
  padding: 0 9px;
}

.pa-dossier-card {
  appearance: none;
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  color: var(--pa-ink);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 176px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.pa-dossier-card:hover {
  border-color: #9db9da;
  box-shadow: 0 9px 24px rgba(25, 57, 94, .1);
  transform: translateY(-1px);
}

.pa-dossier-card[aria-current="true"] {
  border-color: #72a1df;
  background: linear-gradient(105deg, #f3f8ff, #fff 78%);
  box-shadow: inset 3px 0 0 var(--pa-blue), 0 8px 22px rgba(25, 57, 94, .09);
}

.pa-card-top,
.pa-card-meta,
.pa-card-stats,
.pa-stage-line,
.pa-title-row,
.pa-detail-actions,
.pa-chip-row,
.pa-person-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pa-card-top {
  justify-content: space-between;
}

.pa-reference {
  overflow: hidden;
  color: var(--pa-blue-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-signal {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* A status, not an alert. */
.pa-signal-neutral {
  border-color: var(--ma-page-line-strong, #d3dbd7);
  color: var(--ma-page-muted, #566861);
  background: var(--ma-surface-soft, #f6f8f7);
}

.pa-signal-high {
  border-color: #efc1c5;
  color: #a52e3b;
  background: #fff1f2;
}

.pa-signal-active {
  border-color: #b9d5cf;
  color: #117058;
  background: #edf9f5;
}

.pa-signal-watch {
  border-color: #e7d5ae;
  color: #8b5a16;
  background: #fff8e9;
}

.pa-card-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #142a46;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pa-card-meta {
  flex-wrap: wrap;
  color: var(--pa-muted);
  font-size: 10px;
}

.pa-card-meta span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-card-meta span + span::before {
  content: "·";
  margin-right: 7px;
  color: #aab5c2;
}

.pa-card-milestone {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding-top: 7px;
  border-top: 1px solid #edf1f5;
  color: var(--pa-ink-soft);
  font-size: 10px;
  line-height: 1.35;
}

.pa-card-milestone svg {
  width: 14px;
  height: 14px;
  color: var(--pa-cyan);
}

.pa-card-stats {
  color: var(--pa-muted);
  font-size: 9px;
}

.pa-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pa-card-stats span + span {
  padding-left: 7px;
  border-left: 1px solid var(--pa-line);
}

.pa-card-stats svg {
  width: 12px;
  height: 12px;
}

.pa-load-more {
  width: 100%;
  margin-top: 2px;
}

.pa-list-sentinel {
  height: 1px;
}

.pa-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #eaf0f6;
}

.pa-skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .68), transparent);
  animation: pa-shimmer 1.25s infinite;
}

.pa-list-skeleton {
  height: 146px;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
}

.pa-empty-state,
.pa-error-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 320px;
  padding: 40px 22px;
  color: var(--pa-muted);
  text-align: center;
}

.pa-empty-state h3,
.pa-error-state h3 {
  margin: 15px 0 5px;
  color: var(--pa-ink);
  font-size: 17px;
}

.pa-empty-state p,
.pa-error-state p {
  max-width: 430px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.pa-empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: var(--pa-blue);
  background: #edf4fd;
}

.pa-empty-icon svg {
  width: 25px;
  height: 25px;
}

.pa-detail-body {
  min-width: 0;
}

.pa-detail-hero {
  position: relative;
  padding: 22px 24px 18px;
  overflow: hidden;
  border-bottom: 1px solid var(--pa-line);
  background: linear-gradient(118deg, #f1f6fc, #fff 70%);
}

.pa-detail-hero::after {
  position: absolute;
  inset: auto -60px -100px auto;
  width: 230px;
  height: 230px;
  border: 42px solid rgba(35, 104, 216, .045);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.pa-detail-hero .pa-reference {
  font-size: 11px;
}

.pa-detail-title {
  max-width: 1050px;
  margin: 8px 0 10px;
  color: #102844;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.16;
  letter-spacing: -.03em;
}

.pa-detail-subtitle {
  max-width: 960px;
  margin: 0;
  color: var(--pa-ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.pa-chip-row {
  flex-wrap: wrap;
  margin-top: 14px;
}

.pa-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid #d6e0ec;
  border-radius: 999px;
  color: #4b6079;
  background: rgba(255, 255, 255, .8);
  font-size: 9px;
  font-weight: 700;
}

.pa-chip-blue {
  border-color: #c0d7f4;
  color: #235d9f;
  background: #f2f7fe;
}

.pa-detail-actions {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  margin-top: 17px;
}

.pa-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 9px;
  color: var(--pa-blue-dark);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.pa-action-link:first-child {
  border-color: var(--pa-blue);
  color: #fff;
  background: var(--pa-blue);
}

.pa-action-link svg {
  width: 14px;
  height: 14px;
}

.pa-stage-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 14px 24px;
  border-bottom: 1px solid var(--pa-line);
  background: #fbfcfe;
  list-style: none;
}

.pa-stage-track li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #8a98aa;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.pa-stage-track li::before {
  position: relative;
  z-index: 2;
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid #c7d1dd;
  border-radius: 50%;
  content: "";
  background: #fff;
}

.pa-stage-track li:not(:first-child)::after {
  position: absolute;
  top: 4px;
  right: 50%;
  width: 100%;
  height: 2px;
  content: "";
  background: #dce4ec;
}

.pa-stage-track li.is-done,
.pa-stage-track li.is-current {
  color: var(--pa-blue-dark);
}

.pa-stage-track li.is-done::before,
.pa-stage-track li.is-current::before {
  border-color: var(--pa-blue);
  background: var(--pa-blue);
  box-shadow: 0 0 0 4px rgba(35, 104, 216, .1);
}

.pa-stage-track li.is-done::after,
.pa-stage-track li.is-current::after {
  background: var(--pa-blue);
}

.pa-tabs {
  position: sticky;
  z-index: 8;
  top: 0;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 16px;
  border-bottom: 1px solid var(--pa-line);
  background: var(--ma-surface-raised, #fff);
  scrollbar-width: none;
}

.pa-tabs::-webkit-scrollbar {
  display: none;
}

.pa-tab {
  appearance: none;
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 10px;
  border: 0;
  color: var(--pa-muted);
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.pa-tab::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  content: "";
  background: transparent;
}

.pa-tab[aria-selected="true"] {
  color: var(--pa-blue-dark);
}

.pa-tab[aria-selected="true"]::after {
  background: var(--pa-blue);
}

.pa-tab-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #53677f;
  background: #edf1f5;
  font-size: 8px;
}

.pa-tab[aria-selected="true"] .pa-tab-count {
  color: #fff;
  background: var(--pa-blue);
}

.pa-tab-panel {
  padding: 20px 24px 30px;
}

.pa-section-title {
  margin: 0 0 4px;
  color: var(--pa-ink);
  font-size: 15px;
  letter-spacing: -.015em;
}

.pa-section-copy {
  margin: 0 0 15px;
  color: var(--pa-muted);
  font-size: 11px;
  line-height: 1.5;
}

.pa-content-card,
.pa-person-card,
.pa-document-group,
.pa-timeline-item,
.pa-vote-card,
.pa-amendment-card,
.pa-news-card {
  min-width: 0;
  border: 1px solid var(--pa-line);
  border-radius: 12px;
  background: #fff;
}


.pa-person-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--pa-blue-dark);
  background: #eaf2fd;
}

.pa-content-card strong {
  display: block;
  font-size: 11px;
}

.pa-content-card p {
  display: block;
  margin-top: 3px;
  color: var(--pa-muted);
  font-size: 9px;
  line-height: 1.4;
}

.pa-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.pa-content-card {
  padding: 15px;
}

.pa-content-card p {
  font-size: 11px;
}

.pa-fact-list {
  display: grid;
  gap: 0;
  margin: 7px 0 0;
}

.pa-fact-list > div {
  display: grid;
  grid-template-columns: minmax(90px, .45fr) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #edf1f5;
}

.pa-fact-list dt {
  color: var(--pa-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.pa-fact-list dd {
  min-width: 0;
  margin: 0;
  color: var(--pa-ink);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.pa-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.pa-person-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 13px;
}

.pa-person-avatar {
  width: 42px;
  height: 42px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.pa-person-card h4,
.pa-document-group h4,
.pa-timeline-item h4,
.pa-amendment-card h4,
.pa-news-card h4 {
  margin: 0;
  color: var(--pa-ink);
  font-size: 11px;
  line-height: 1.35;
}

.pa-person-card p,
.pa-document-group p,
.pa-timeline-item p,
.pa-vote-card p,
.pa-amendment-card p,
.pa-news-card p {
  margin: 4px 0 0;
  color: var(--pa-muted);
  font-size: 9px;
  line-height: 1.45;
}

.pa-person-meta {
  flex-wrap: wrap;
  margin-top: 7px;
}

.pa-text-link {
  color: var(--pa-blue-dark);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.pa-document-stack,
.pa-timeline,
.pa-amendment-list,
.pa-news-list {
  display: grid;
  gap: 10px;
}

.pa-document-group {
  padding: 14px;
}

.pa-document-links {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.pa-link-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--pa-blue-dark);
  background: var(--pa-surface-soft);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

.pa-link-card:hover {
  background: #edf4fd;
}

.pa-link-card svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.pa-timeline {
  position: relative;
  padding-left: 16px;
}

.pa-timeline::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: 2px;
  content: "";
  background: #dce5ef;
}

.pa-timeline-item {
  position: relative;
  padding: 12px 14px;
}

.pa-timeline-item::before {
  position: absolute;
  top: 15px;
  left: -15px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  content: "";
  background: var(--pa-blue);
  box-shadow: 0 0 0 2px #b8cce4;
}

.pa-date {
  color: var(--pa-blue-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.pa-vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.pa-vote-card,
.pa-amendment-card,
.pa-news-card {
  padding: 14px;
}

.pa-vote-score {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.pa-vote-score span {
  flex: 1;
  padding: 5px;
  border-radius: 6px;
  color: var(--pa-ink);
  background: var(--pa-surface-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  text-align: center;
}

.pa-diff {
  overflow: auto;
  margin-top: 10px;
  padding: 11px;
  border-radius: 8px;
  color: var(--pa-ink-soft);
  background: #f7f9fb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.pa-diff ins {
  color: #08694e;
  background: #dff6ed;
  text-decoration: none;
}

.pa-diff del {
  color: #9a3340;
  background: #fdebed;
}

.pa-loading-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 220px;
  padding: 44px 20px;
  color: var(--pa-muted);
  font-size: 11px;
}

.pa-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #dce6f2;
  border-top-color: var(--pa-blue);
  border-radius: 50%;
  animation: pa-spin .8s linear infinite;
}

.pa-dialog {
  width: min(510px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--pa-ink);
  background: transparent;
  box-shadow: 0 28px 80px rgba(10, 30, 54, .32);
}

.pa-dialog::backdrop {
  background: rgba(10, 28, 50, .58);
  backdrop-filter: blur(4px);
}

.pa-dialog-card {
  padding: 22px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 18px;
  background: #fff;
}

.pa-dialog-copy {
  margin: 16px 0;
  color: var(--pa-muted);
  font-size: 11px;
  line-height: 1.55;
}

.pa-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pa-dialog-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--pa-muted);
  font-size: 10px;
}

.pa-dialog-status[data-kind="error"] {
  color: var(--pa-red);
}

.pa-dialog-actions {
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--pa-line);
}

@keyframes pa-shimmer {
  100% { transform: translateX(100%); }
}

@keyframes pa-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1199px) {
  .pa-page {
    width: min(100% - 28px, 1500px);
  }

  .pa-command-row {
    grid-template-columns: minmax(220px, 1fr) auto auto minmax(145px, auto) auto;
  }

  .pa-admin-only {
    grid-column: auto;
  }

  .pa-workspace {
    grid-template-columns: minmax(300px, 338px) minmax(0, 1fr);
  }

  .pa-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  .pa-page {
    width: min(100% - 24px, 850px);
    padding-top: 14px;
  }

  .pa-header {
    min-height: 132px;
    padding: 21px;
  }

  .pa-header-status {
    display: none;
  }

  .pa-command-shell {
    top: 52px;
  }

  .pa-command-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .pa-sort {
    grid-column: 1 / 2;
  }

  .pa-sort select {
    height: 38px;
  }

  .pa-btn-quiet {
    min-height: 38px;
  }

  .pa-admin-only {
    grid-column: auto;
    min-height: 38px;
  }

  .pa-results-summary {
    align-items: flex-start;
  }

  .pa-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pa-workspace,
  .pa-workspace.is-list-collapsed {
    display: block;
    min-height: 520px;
    height: auto;
  }

  .pa-list-pane,
  .pa-detail-pane {
    min-height: 520px;
    overflow: visible;
  }

  .pa-list,
  .pa-detail {
    overflow: visible;
  }

  .pa-detail-pane {
    display: none;
  }

  .pa-workspace.is-detail-mode .pa-list-pane {
    display: none;
  }

  .pa-workspace.is-detail-mode .pa-detail-pane {
    display: flex;
  }

  .pa-back-btn {
    display: inline-flex;
  }

  .pa-detail-head {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .pa-detail-head > div {
    flex: 1 1 200px;
  }

  .pa-detail-meta {
    display: none;
  }

  .pa-desktop-only {
    display: none;
  }

  .pa-filter-backdrop:not([hidden]) {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: block;
    background: rgba(12, 31, 54, .55);
    backdrop-filter: blur(3px);
  }

  .pa-filter-panel {
    position: fixed;
    z-index: 91;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(82dvh, 620px);
    overflow: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -20px 60px rgba(12, 31, 54, .25);
  }

  .pa-filter-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .pa-page {
    width: calc(100% - 18px);
    padding-bottom: 24px;
  }

  .pa-header {
    min-height: 122px;
    padding: 18px;
    border-radius: 16px;
  }

  .pa-header-art {
    inset-left: 20%;
    opacity: .24;
  }

  .pa-header h1 {
    font-size: 29px;
  }

  .pa-header-copy > p:last-child {
    font-size: 11px;
  }

  .pa-command-shell {
    margin-top: 9px;
    padding: 8px;
    border-radius: 13px;
  }

  .pa-command-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .pa-search {
    height: 40px;
  }

  #loLoadBtn {
    width: 42px;
    padding: 0;
  }

  #loLoadBtn span {
    display: none;
  }

  #loFilterBtn {
    grid-column: 1 / 2;
  }

  .pa-sort {
    grid-column: 2 / 3;
    min-width: 132px;
  }

  #loResetBtn {
    grid-column: 1 / 2;
  }

  #loOpenSyncBtn {
    grid-column: 2 / 3;
  }

  .pa-results-summary {
    display: block;
    min-height: 0;
    margin-top: 9px;
    padding: 12px;
  }

  .pa-results-copy span {
    display: none;
  }

  .pa-kpis {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 10px;
  }

  .pa-kpis > div {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    min-width: 0;
    gap: 2px;
    padding: 6px 3px;
  }

  .pa-workspace {
    min-height: 480px;
    margin-top: 9px;
  }

  .pa-list-pane,
  .pa-detail-pane {
    min-height: 480px;
    border-radius: 13px;
  }

  .pa-pane-head {
    min-height: 58px;
    padding: 10px 12px;
  }

  .pa-list {
    padding: 8px;
  }

  .pa-dossier-card {
    padding: 12px;
  }

  .pa-detail-hero {
    padding: 18px 16px 15px;
  }

  .pa-detail-title {
    font-size: 21px;
  }

  .pa-stage-track {
    padding: 13px 14px;
  }

  .pa-stage-track li {
    font-size: 8px;
  }

  .pa-tabs {
    padding: 0 7px;
  }

  .pa-tab {
    min-height: 45px;
    padding: 0 8px;
  }

  .pa-tab-panel {
    padding: 17px 14px 24px;
  }

  .pa-card-grid,
  .pa-vote-grid {
    grid-template-columns: 1fr;
  }

  .pa-date-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="legislation-observatory"] *,
  body[data-page="legislation-observatory"] *::before,
  body[data-page="legislation-observatory"] *::after {
    scroll-behavior: auto;
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
  }
}

/* OEIL dossiers / Upcoming switch above the list (aria-pressed buttons, not role=tab: the global
   tab styles in styles.css are !important and would restyle it as an underlined tab) */
.pa-view-toggle {
  display: inline-flex;
  gap: 2px;
  margin-top: 8px;
  padding: 3px;
  border: 1px solid var(--pa-line);
  border-radius: 999px;
  background: var(--pa-surface-soft);
}

.pa-view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pa-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.pa-view-toggle button[aria-pressed="true"] {
  background: var(--pa-surface);
  color: var(--pa-blue-dark);
  box-shadow: 0 1px 3px rgba(25, 50, 82, .12);
}

.pa-view-toggle button:focus-visible {
  outline: 2px solid var(--pa-blue);
  outline-offset: 2px;
}

/* Data sources line (CC BY 4.0 attribution for EP Open Data) */
.pa-sources {
  margin: 18px 0 8px;
  font-size: 11.5px;
  color: var(--pa-muted);
  text-align: center;
}

.pa-sources a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── House-style pass (mandate-atlas-ui) ───────────────────────────────────────────────
   Compact light page header instead of the dark navy hero (its dark-on-navy title was
   unreadable and it read as "toy"); same tokens as the rest of the app. */
.pa-header {
  min-height: 0;
  padding: 14px 2px 4px;
  align-items: flex-end;
  color: var(--ma-page-ink, #16211d);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pa-header-art {
  display: none;
}

.pa-header .pa-eyebrow {
  color: var(--ma-action-strong, #1859cc);
}

body .pa-header h1 {
  color: var(--ma-page-ink, #16211d) !important;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -.02em;
}

.pa-header-copy > p:last-child {
  margin-top: 6px;
  color: var(--ma-page-muted, #566861);
  font-size: 13.5px;
}

.pa-header-status {
  color: var(--ma-page-faint, #71817b);
}

/* A count badge that says nothing stays hidden ([hidden] lost to display:inline-grid). */
.pa-count[hidden] {
  display: none !important;
}

/* Tabs: no empty pill, zero counts muted. */
.pa-tab-count:empty {
  display: none;
}

.pa-tab-count.is-zero {
  opacity: .45;
}

/* Detail: the dossier title is shown once (in the hero), no decorative ring. */
@media (min-width: 900px) {
  .pa-detail-head {
    display: none;
  }
}

.pa-detail-hero::after {
  display: none;
}

.pa-detail-hero {
  background: var(--ma-surface-raised, #fff);
}

.pa-detail-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.015em;
}

/* Motion: quick, ease-out, nothing on high-frequency actions. */
.pa-dossier-card,
.pa-btn,
.pa-view-toggle button {
  transition: background-color .18s cubic-bezier(.22, 1, .36, 1), border-color .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .pa-dossier-card,
  .pa-btn,
  .pa-view-toggle button {
    transition: none;
  }
}

/* Procedure-type chips above the list */
.pa-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 4px;
}

.pa-type-filter[hidden] {
  display: none;
}

.pa-type-filter button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--ma-page-line-strong, rgba(81, 101, 93, .22));
  border-radius: 999px;
  background: var(--ma-surface-raised, #fff);
  color: var(--ma-page-muted, #566861);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .18s cubic-bezier(.22, 1, .36, 1), color .18s cubic-bezier(.22, 1, .36, 1);
}

.pa-type-filter button span {
  color: var(--ma-page-faint, #71817b);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.pa-type-filter button[aria-pressed="true"] {
  border-color: var(--ma-action, #276ef1);
  background: var(--ma-action-soft, rgba(39, 110, 241, .12));
  color: var(--ma-action-strong, #1859cc);
}

.pa-type-filter button:focus-visible {
  outline: 2px solid var(--ma-action, #276ef1);
  outline-offset: 2px;
}

/* The search input sits inside the bordered .pa-search label: the app-wide input styles drew a
   second box inside it (and shrank it on phones). */
body[data-page] .pa-search input[type="search"],
body[data-page] .pa-search input[type="search"]:focus {
  flex: 1 1 auto;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 639px) {
  /* First dossier above the fold: the four totals are secondary on a phone. */
  .pa-kpis {
    display: none;
  }
}

@media (max-width: 639px) {
  /* Search gets the full first row (with its button); filters/sort and reset/sync share the next. */
  .pa-command-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  }

  .pa-command-row .pa-search {
    grid-column: 1 / 3;
  }

  .pa-command-row #loLoadBtn {
    grid-column: 3 / 4;
  }

  .pa-command-row #loFilterBtn,
  .pa-command-row #loResetBtn {
    grid-column: 1 / 2;
  }

  .pa-command-row .pa-sort,
  .pa-command-row #loOpenSyncBtn {
    grid-column: 2 / 4;
  }
}

/* ── Second pass: readability, collapsed rail, light motion ─────────────────────────────
   The base sheet set many labels at 8–10px. This block sets a single readable scale
   (nothing under 11px), stronger ink for secondary text, and short ease-out motion. */
body[data-page="legislation-observatory"] {
  --pa-ease: cubic-bezier(.22, 1, .36, 1);
  --pa-ink: var(--ma-page-ink, #16211d);
  --pa-ink-soft: #3a4a44;
  --pa-muted: var(--ma-page-muted, #566861);
  --pa-blue: var(--ma-action, #276ef1);
  --pa-blue-dark: var(--ma-action-strong, #1859cc);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.pa-eyebrow { font-size: 11px; letter-spacing: .08em; }

/* Results summary */
.pa-results-copy strong { font-size: 14.5px; }
.pa-results-copy span { font-size: 12.5px; }
.pa-kpis dt { font-size: 10.5px; letter-spacing: .06em; }
.pa-kpis dd { font-size: 16px; }

/* List pane */
.pa-pane-head h2 { font-size: 15px; font-weight: 600; }
.pa-pane-head .pa-eyebrow { margin-bottom: 2px; }
.pa-type-filter button { font-size: 12.5px; padding: 5px 11px; }
.pa-type-filter button span { font-size: 11.5px; }

.pa-list { gap: 8px; padding: 10px 10px 14px; }

.pa-dossier-card {
  position: relative;
  padding: 14px 16px 13px;
  border-radius: 12px;
  transition:
    border-color .18s var(--pa-ease),
    box-shadow .18s var(--pa-ease),
    transform .18s var(--pa-ease),
    background-color .18s var(--pa-ease);
}

/* Selected card: a quiet accent bar instead of a heavy outline. */
.pa-dossier-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ma-action, #276ef1);
  transform: scaleY(0);
  transition: transform .22s var(--pa-ease);
}

.pa-dossier-card[aria-current="true"]::before { transform: scaleY(1); }

.pa-dossier-card[aria-current="true"] {
  border-color: rgba(39, 110, 241, .45);
  background: #f7faff;
  box-shadow: 0 6px 18px rgba(24, 89, 204, .08);
}

.pa-reference {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

.pa-signal { font-size: 10.5px; padding: 3px 8px; letter-spacing: .04em; }

.pa-card-title {
  margin-top: 6px;
  color: var(--pa-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.005em;
}

.pa-card-milestone {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--pa-ink-soft);
}

.pa-card-stats { font-size: 12px; color: var(--pa-muted); gap: 12px; }
.pa-card-stats svg { width: 14px; height: 14px; }

/* Collapsed list: a clean rail (toggle + vertical label), nothing truncated. */
.pa-rail { display: none; }

.pa-workspace.is-list-collapsed .pa-type-filter,
.pa-workspace.is-list-collapsed .pa-view-toggle {
  display: none !important;
}

.pa-workspace.is-list-collapsed .pa-list-pane .pa-pane-head {
  min-height: 0;
  padding: 10px 0;
  border-bottom: 0;
  background: transparent;
}

.pa-workspace.is-list-collapsed .pa-rail {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 0 16px;
  border: 0;
  background: transparent;
  color: var(--pa-muted);
  font: inherit;
  cursor: pointer;
  transition: color .18s var(--pa-ease), background-color .18s var(--pa-ease);
}

.pa-workspace.is-list-collapsed .pa-rail:hover {
  color: var(--ma-action-strong, #1859cc);
  background: rgba(39, 110, 241, .05);
}

.pa-rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
}

.pa-rail-count {
  min-width: 26px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--ma-action-soft, rgba(39, 110, 241, .12));
  color: var(--ma-action-strong, #1859cc);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.pa-rail-count:empty { display: none; }

.pa-workspace {
  transition: grid-template-columns .26s var(--pa-ease);
}

.pa-workspace.is-list-collapsed {
  grid-template-columns: 52px minmax(0, 1fr);
}

/* Detail */
.pa-detail-hero { padding: 24px 28px 20px; }
.pa-detail-hero .pa-reference { font-size: 12px; }
.pa-detail-title { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.pa-detail-subtitle { font-size: 13.5px; color: var(--pa-ink-soft); margin-top: 6px; }
.pa-chip { font-size: 11.5px; padding: 3px 9px; font-weight: 600; }

.pa-action-link {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: var(--ma-radius, 8px);
  transition: background-color .18s var(--pa-ease), border-color .18s var(--pa-ease), transform .12s var(--pa-ease);
}

.pa-action-link:active,
.pa-btn:active,
.pa-dossier-card:active {
  transform: scale(.985);
}

.pa-stage-track { padding: 16px 28px; }
.pa-stage-track li { font-size: 11.5px; }

/* Status line for procedures without the 4-step track: same inset as the hero. */
.pa-stage-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 28px;
  border-top: 1px solid var(--pa-line);
  border-bottom: 1px solid var(--pa-line);
  background: var(--ma-surface-soft, #f6f8f7);
  color: var(--pa-ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.pa-stage-note svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--pa-muted);
}

.pa-stage-note strong { color: var(--pa-ink); font-weight: 600; }

.pa-tabs { padding: 0 20px; }
.pa-tab { font-size: 13.5px; padding: 0 12px; font-weight: 500; }
.pa-tab[aria-selected="true"] { font-weight: 600; }
.pa-tab-count { font-size: 11px; min-width: 20px; padding: 0 6px; }

.pa-tab-panel { padding: 24px 28px 32px; }
.pa-section-title { font-size: 16px; font-weight: 600; }
.pa-section-copy { font-size: 13px; line-height: 1.5; color: var(--pa-muted); }

.pa-content-card { padding: 18px 20px; border-radius: 12px; }
.pa-content-card h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--pa-ink); }
.pa-content-card p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
.pa-fact-list > div { padding: 9px 0; }
.pa-fact-list dt { font-size: 11px; letter-spacing: .05em; }
.pa-fact-list dd { font-size: 13.5px; }

.pa-sources { font-size: 12px; }

/* Motion: content changes fade in; hover lifts only on pointer devices. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes pa-rise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes pa-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .pa-detail-body { animation: pa-rise .26s var(--pa-ease) both; }
  .pa-tab-panel:not([hidden]) { animation: pa-fade .18s var(--pa-ease) both; }
  .pa-filter-panel:not([hidden]) { animation: pa-rise .22s var(--pa-ease) both; }
  .pa-workspace.is-list-collapsed .pa-rail { animation: pa-fade .2s .08s var(--pa-ease) both; }

  @media (hover: hover) {
    .pa-dossier-card:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 22px rgba(22, 33, 29, .08);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-workspace,
  .pa-dossier-card,
  .pa-dossier-card::before,
  .pa-action-link,
  .pa-rail {
    transition: none;
  }
}

@media (max-width: 639px) {
  .pa-detail-hero { padding: 18px 16px 16px; }
  .pa-stage-note { padding: 11px 16px; }
  .pa-stage-track { padding: 13px 14px; }
  .pa-stage-track li { font-size: 10.5px; }
  .pa-tabs { padding: 0 8px; }
  .pa-tab-panel { padding: 18px 16px 26px; }
}


/* Dossier graph (Overview tab) */
.pa-graph-wrap {
  position: relative;
  margin-top: 12px;
  border: 1px solid var(--pa-line);
  border-radius: 12px;
  background: var(--ma-surface, #fbfcfd);
  overflow: hidden;
}
.pa-graph-canvas { height: 460px; width: 100%; }
.pa-graph-legend {
  position: absolute;
  top: 10px;
  right: 10px;
  pointer-events: none;
}
.pa-graph-legend .ng-legend { padding: 10px 12px !important; gap: 6px !important; box-shadow: var(--ma-shadow-quiet, none); }
.pa-graph-caption { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--pa-muted); }
.pa-graph-fallback { padding: 24px; margin: 0; font-size: 13px; color: var(--pa-muted); }
.pa-graph-selection-title { display: block; margin-bottom: 8px; font-size: 14px !important; font-weight: 600; color: var(--pa-ink); line-height: 1.35; }
#paGraphSelection .pa-text-link {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--pa-blue-dark);
  cursor: pointer;
}
#paGraphSelection .pa-text-link:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .pa-graph-canvas { height: 520px; }
  .pa-graph-legend { position: static; padding: 0 10px 10px; }
}


.pa-stage-note { align-items: flex-start; }
.pa-stage-note svg { margin-top: 2px; }

@media (max-width: 899px) {
  /* The hero already carries the title: the mobile bar only needs the way back. */
  .pa-detail-head > div,
  .pa-detail-head .pa-detail-meta {
    display: none;
  }

  .pa-detail-head {
    min-height: 0;
    padding: 10px 12px;
  }
}

/* The search card used to stick under the topbar and slide over the page header and the
   dossier on scroll; the list and detail panes scroll on their own, so it stays in flow. */
.pa-command-shell {
  position: relative;
  top: auto;
  backdrop-filter: none;
  background: var(--ma-surface-raised, #fff);
}

/* Dossier cards fit the list: they were sized by their content (about 460 px) inside a ~380 px
   list, so titles were cut on the right and phones scrolled sideways. */
.pa-list .pa-dossier-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.pa-dossier-card .pa-card-top { flex-wrap: wrap; min-width: 0; }
.pa-dossier-card .pa-reference,
.pa-dossier-card .pa-card-title { min-width: 0; overflow-wrap: anywhere; white-space: normal; }

/* Amendment documents: the committee files the amendments come from, with official PDF links. */
/* Amendment Atlas card (amendment-atlas.html): on the file's landing under the stage track, and in
   the Amendments tab. Light surface and a piece of the landing drawing, like the dossier hero. */
#loAtlasSlot:empty { display: none; }
#loAtlasSlot { padding: 14px 24px 2px; }
.pa-atlas-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  margin: 0 0 14px; padding: 16px 20px; border: 1px solid var(--ma-page-line, rgba(81, 101, 93, .13)); border-radius: 14px;
  background: linear-gradient(118deg, #f1f6fc, #fff 72%); box-shadow: var(--ma-shadow-quiet, 0 1px 2px rgba(21, 33, 28, .06)); }
.pa-atlas-cta-art { width: 96px; mix-blend-mode: multiply; }
.pa-atlas-cta-copy { min-width: 0; display: grid; gap: 4px; }
.pa-atlas-cta-kicker { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ma-action-strong, #1859cc); }
.pa-atlas-cta-copy h3 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ma-page-ink, #16211d); }
.pa-atlas-cta-copy p { margin: 0; max-width: 78ch; font-size: 13px; line-height: 1.5; color: var(--ma-page-muted, #566861); }
.pa-atlas-cta-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.pa-atlas-cta-facts li { padding: 2px 9px; border-radius: 999px; background: var(--ma-action-soft, rgba(39, 110, 241, .1)); color: var(--ma-action-strong, #1859cc); font-size: 12px; font-weight: 600; }
.pa-atlas-cta-go { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--ma-radius, 8px); background: var(--ma-action-strong, #1859cc);
  color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .18s cubic-bezier(.22, 1, .36, 1); }
.pa-atlas-cta-go:hover { background: var(--ma-action, #276ef1); }
.pa-atlas-cta-go:focus-visible { outline: 3px solid var(--ma-action-soft, rgba(39, 110, 241, .3)); outline-offset: 2px; }
.pa-atlas-cta-go svg { width: 15px; height: 15px; }
.pa-atlas-cta-actions { display: grid; gap: 7px; justify-items: stretch; }
.pa-atlas-cta-go { justify-content: center; }
.pa-atlas-cta-file { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--ma-action-strong, #1859cc); border-radius: var(--ma-radius, 8px); background: transparent; color: var(--ma-action-strong, #1859cc); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pa-atlas-cta-file:hover { background: var(--ma-action-soft, rgba(39, 110, 241, .1)); }
.pa-atlas-cta-file svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  #loAtlasSlot { padding: 12px 16px 0; }
  .pa-atlas-cta { grid-template-columns: minmax(0, 1fr); }
  .pa-atlas-cta-art { display: none; }
  .pa-atlas-cta-actions { justify-self: start; }
}

.pa-am-docs {
  margin: 4px 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--ma-page-line, rgba(81, 101, 93, 0.13));
  border-radius: 12px;
  background: var(--ma-surface, #fbfcfd);
}
.pa-am-docs-head h4 { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--ma-page-ink); }
.pa-am-docs-head p { margin: 4px 0 10px; max-width: 70ch; font-size: 0.8125rem; line-height: 1.5; color: var(--ma-page-muted); }
.pa-am-docs-list { list-style: none; margin: 0; padding: 0; display: grid; }
.pa-am-docs-list li {
  display: grid;
  grid-template-columns: minmax(9.5em, auto) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 14px;
  padding: 9px 0;
  border-top: 1px solid var(--ma-page-line, rgba(81, 101, 93, 0.13));
}
.pa-am-docs-list li:first-child { border-top: 0; }
.pa-am-doc-code { font-family: var(--font-mono, monospace); font-size: 0.8125rem; color: var(--ma-page-ink); }
.pa-am-doc-meta { min-width: 0; font-size: 0.8125rem; color: var(--ma-page-muted); }
.pa-am-doc-links { display: inline-flex; gap: 12px; }
.pa-am-doc-links a { font-size: 0.8125rem; font-weight: 600; color: var(--ma-action-strong, #1859cc); text-decoration: none; }
.pa-am-doc-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pa-am-doc-links a:focus-visible { outline: 2px solid var(--ma-action, #276ef1); outline-offset: 2px; border-radius: 3px; }
@media (max-width: 639px) {
  .pa-am-docs-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .pa-am-doc-meta { grid-column: 1 / -1; grid-row: 2; }
}

/* ── Upcoming dossier detail (Legislative Train files without an OEIL procedure) ── */
.pa-upcoming-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: start;
}
.pa-upcoming-grid .pa-section-title { margin: 0 0 10px; }
.pa-upcoming-copy {
  max-width: 70ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pa-ink-soft, var(--pa-ink));
}
.pa-upcoming-empty { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--pa-muted); }
.pa-upcoming-sources {
  max-width: 70ch;
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid #edf1f5;
  font-size: 12px;
  line-height: 1.5;
  color: var(--pa-muted);
  overflow-wrap: anywhere;
}
.pa-upcoming-sources span { font-weight: 600; color: var(--pa-ink); margin-right: 4px; }
.pa-upcoming-facts { padding-left: 24px; border-left: 1px solid #edf1f5; }
.pa-upcoming-facts .pa-fact-list { margin: 0; }
.pa-upcoming-facts .pa-fact-list > div {
  grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
  align-items: baseline;
}
.pa-upcoming-facts .pa-fact-list dt { white-space: normal; }
@media (max-width: 1100px) {
  .pa-upcoming-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pa-upcoming-facts { padding-left: 0; border-left: 0; }
}
@media (max-width: 639px) {
  .pa-upcoming-facts .pa-fact-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Loading with the Mandate Atlas globe (atlasLoading in legislation-observatory.js): the globe
   floats inside a slowly turning orbit, with the outline of the content that is on its way. */
.pa-atlas-loading {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 40px 20px 32px;
  color: var(--pa-muted);
  text-align: center;
}
.pa-atlas-loading--detail { min-height: 360px; align-content: center; }
.pa-atlas-loading strong { margin-top: 8px; color: var(--pa-ink); font-size: 14px; font-weight: 600; }
.pa-atlas-loading > span:not([class]) { font-size: 12px; }
.pa-atlas-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
}
.pa-atlas-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(20, 94, 168, .28);
  border-top-color: #d99a22;
  border-radius: 50%;
  animation: pa-spin 6s linear infinite;
}
.pa-atlas-mark img {
  width: 76px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(20, 94, 168, .2));
  animation: pa-atlas-float 2.4s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
.pa-atlas-lines { display: grid; gap: 8px; width: min(420px, 100%); margin-top: 18px; justify-items: start; }
.pa-atlas-lines i {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #edf3fa 0%, #dfe9f5 50%, #edf3fa 100%);
  background-size: 200% 100%;
  animation: pa-atlas-shimmer 1.4s ease-in-out infinite;
}
.pa-atlas-loading--panel .pa-atlas-mark { width: 80px; height: 80px; }
.pa-atlas-loading--panel .pa-atlas-mark img { width: 58px; }
@keyframes pa-atlas-float { from { transform: translateY(2px); } to { transform: translateY(-4px); } }
@keyframes pa-atlas-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .pa-atlas-mark::before, .pa-atlas-mark img, .pa-atlas-lines i { animation: none; }
}

.pa-empty-globe { width: 92px; height: auto; opacity: .9; filter: drop-shadow(0 8px 16px rgba(20, 94, 168, .16)); }

/* Pieces of the landing illustration (landing-background.svg), cut out with CSS only: each
   .pa-art--X shows one region (x, y, w, h in the 1536×1024 drawing) at the element's size, with
   soft edges. Decorative: always aria-hidden. */
.pa-art {
  display: block;
  flex: none;
  background: url("landing-background.svg") no-repeat;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.pa-art--dossier { aspect-ratio: 140 / 135; background-size: 1097.14% auto; background-position: 40.47% 31.72%; }
.pa-art--trajectory { aspect-ratio: 220 / 172; background-size: 698.18% auto; background-position: 45.97% 77.70%; }
.pa-art--evidence { aspect-ratio: 250 / 185; background-size: 614.40% auto; background-position: 77.76% 77.71%; }
.pa-art--votemap { aspect-ratio: 125 / 102; background-size: 1228.80% auto; background-position: 80.44% 45.34%; }
.pa-art--signals { aspect-ratio: 215 / 165; background-size: 714.42% auto; background-position: 90.23% 63.21%; }
.pa-art--lens { aspect-ratio: 150 / 152; background-size: 1024.00% auto; background-position: 32.61% 55.96%; }
.pa-art--core { aspect-ratio: 720 / 560; background-size: 213.33% auto; background-position: 68.63% 53.88%; }

/* Dossier hero: the heart of the drawing (hemicycle, MANDATE label, dossier sheet) on the right */
.pa-detail-hero > .pa-art--core {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 270px;
  transform: translateY(-50%);
  opacity: .6;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 55% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 55% 50%, #000 45%, transparent 100%);
}
.pa-detail-hero > :not(.pa-art) { position: relative; }
@media (min-width: 1200px) {
  .pa-detail-hero.has-art { padding-right: 290px; }
}
@media (max-width: 1199px) {
  .pa-detail-hero > .pa-art--core { display: none; }
}

/* Brief sections: a small piece of the drawing beside the title */
.pa-brief-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pa-brief-section-head .pa-section-title { margin: 0; }
.pa-brief-section-head .pa-art {
  height: 64px;
  margin: -10px 0 -8px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 74%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 74%, transparent 100%);
}
@media (max-width: 640px) {
  .pa-brief-section-head .pa-art { height: 48px; }
}

/* Committee a key player holds the role in (IMCO; a joint committee's shadow: their own seat) */
.pa-cm-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 6px;
  margin: 0 4px 0 2px;
  border-radius: 5px;
  border: 1px solid #b9d3cb;
  background: #eef7f4;
  color: #145e4f;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
  vertical-align: 1px;
  white-space: nowrap;
}
.pa-person-meta .pa-cm-badge { min-height: 26px; margin: 0; border-radius: 999px; padding: 3px 9px; font-size: 11px; }

/* Committee tab: final committee votes by roll call, and the plenary vote on the same text */
.pa-cv-card { margin: 0 0 16px; padding: 16px 18px; border: 1px solid #d6e0ec; border-radius: 12px; background: #fff; }
.pa-cv-card.is-opinion { background: #fbfcfd; }
.pa-cv-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.pa-cv-head h4 { margin: 0; font-size: 15px; line-height: 1.4; }
.pa-cv-head p { margin: 2px 0 0; font-size: 12.5px; }
.pa-cv-total { display: flex; gap: 6px; flex: none; }
.pa-cv-total span { min-width: 40px; padding: 4px 8px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.pa-cv-total .is-for { background: #e7f5ee; color: #11724f; }
.pa-cv-total .is-against { background: #fbeaea; color: #b42f2b; }
.pa-cv-total .is-abstain { background: #f1f3f5; color: #5b6b78; }
.pa-cv-groups { display: grid; gap: 5px; margin-top: 12px; }
.pa-cv-legend { display: flex; gap: 14px; font-size: 11.5px; color: #5b6b78; margin-bottom: 2px; }
.pa-cv-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.pa-cv-group { display: grid; grid-template-columns: 100px minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: 12.5px; }
.pa-cv-gname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-cv-bar { display: flex; height: 12px; border-radius: 3px; overflow: hidden; background: #f1f3f5; }
.pa-cv-bar i, .pa-cv-legend i.is-for, .pa-cv-legend i.is-against, .pa-cv-legend i.is-abstain { display: block; }
.pa-cv-bar .is-for, .pa-cv-legend .is-for { background: #2f9e6f; }
.pa-cv-bar .is-against, .pa-cv-legend .is-against { background: #d4504b; }
.pa-cv-bar .is-abstain, .pa-cv-legend .is-abstain { background: #b6c0c8; }
.pa-cv-legend i { display: inline-block; }
.pa-cv-nums { text-align: right; color: #5b6b78; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa-cv-plenary { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f5f8fc; }
.pa-cv-plenary h5 { margin: 0 0 6px; font-size: 13px; }
.pa-cv-consistency { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 13px; }
.pa-cv-consistency .is-hot b, .pa-cv-move.is-hot { color: #b42f2b; }
.pa-cv-changed { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.pa-cv-changed li { margin-bottom: 3px; }
.pa-cv-move { font-weight: 600; margin-left: 4px; }
.pa-cv-note { margin: 10px 0 0; font-size: 12.5px; color: #5b6b78; }
.pa-cv-names { margin-top: 10px; font-size: 12.5px; }
.pa-cv-names > summary { cursor: pointer; color: #235d9f; font-weight: 600; }
.pa-cv-names p { margin: 6px 0 0; line-height: 1.6; }
.pa-cv-src { margin: 10px 0 0; font-size: 11.5px; color: #8a98a6; }
@media (max-width: 640px) {
  .pa-cv-head { flex-direction: column; }
  .pa-cv-group { grid-template-columns: 76px minmax(0, 1fr) 70px; }
}

/* Provisional dates (ITRE timetable): orange dot, dashed card edge, own tag — they can still move */
.pa-timeline-item.is-provisional { border-left: 2px dashed #f97316; background: #fff7ed; border-radius: 8px; }
.pa-timeline-item.is-provisional::before { background: #f97316; box-shadow: 0 0 0 2px #fed7aa; }
.pa-timeline-item.is-provisional .pa-date { color: #c2410c; }
body[data-page] .pa-brief-tag.is-provisional { background: #fff1e6; color: #c2410c; border: 1px dashed #f97316; }

/* Council tab: member states' votes (legislation-observatory.js, renderCouncilVote) */
.pa-council-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; list-style: none; margin: 12px 0 8px; padding: 0; }
.pa-council-grid li { display: flex; align-items: center; justify-content: center; height: 28px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; cursor: default; }
.pa-council-grid .is-yes { background: #e7f5ee; color: #11724f; box-shadow: inset 0 0 0 1px rgba(47,158,111,.35); }
.pa-council-grid .is-no { background: #d4504b; color: #fff; }
.pa-council-grid .is-abstain { background: #b6c0c8; color: #1f2b33; }
.pa-council-grid .is-not_participating { background: #fff; color: #8a97a1; box-shadow: inset 0 0 0 1px #c9d1d7; border: 1px dashed #c9d1d7; }
.pa-cv-legend .is-out { background: #fff; box-shadow: inset 0 0 0 1px #b6c0c8; }
.pa-council-lines { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; display: grid; gap: 3px; }
.pa-council-lines b { margin-right: 6px; }
.pa-council-card .pa-cv-legend { flex-wrap: wrap; }
.pa-council-card .pa-cv-legend i[class] { display: inline-block; }

/* Committees on this file */
.pa-cf { margin: 12px 0 0; padding: 16px 18px; border: 1px solid var(--ma-line, rgba(83, 103, 94, .2)); border-radius: 14px; background: #fff; color: var(--ma-page-ink, #16211d); }
.pa-cf-faint { color: var(--ma-page-muted, #566861); }
.pa-cf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.pa-cf-head h3 { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ma-page-ink, #16211d); }
.pa-cf-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--ma-page-muted, #566861); }
.pa-cf-shared { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ma-action-strong, #1859cc); text-decoration: none; }
.pa-cf-shared:hover { text-decoration: underline; text-underline-offset: 2px; }
.pa-cf-shared svg { width: 14px; height: 14px; }
.pa-cf-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(130px, .9fr) minmax(170px, 1.1fr) minmax(220px, 1.4fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--ma-line, rgba(83, 103, 94, .2)); font-size: 13px; line-height: 1.4; }
.pa-cf-who, .pa-cf-people, .pa-cf-stand, .pa-cf-steps { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pa-cf-code { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--ma-page-ink, #16211d); }
.pa-cf-row.is-lead .pa-cf-role { font-weight: 600; color: var(--ma-action-strong, #1859cc); }
.pa-cf-moving { padding: 0 7px; border-radius: 999px; background: var(--ma-action-soft, rgba(39, 110, 241, .1)); color: var(--ma-action-strong, #1859cc); font-size: 11px; font-weight: 600; }
.pa-cf-docs { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 12.5px; }
.pa-cf-docs a { color: var(--ma-action-strong, #1859cc); text-decoration: none; }
.pa-cf-docs a:hover { text-decoration: underline; text-underline-offset: 2px; }
.pa-cf-steps small { display: inline-block; width: 30px; color: var(--ma-page-muted, #566861); font-size: 11.5px; }
.pa-cf-date { font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) {
  .pa-cf-row { grid-template-columns: minmax(0, 1fr); gap: 5px; }
}
