/* A scaled version of the app's AmendmentDetail pane. */
.product-body { grid-template-columns: 234px minmax(0, 1fr); min-height: 0; }
.detail-pane { --detail-for: #43a582; --detail-abstain: #e6bc60; --detail-against: #db7180; min-width: 0; position: relative; color: #202633; background: #fff; }
.detail-pane .icon { width: 13px; height: 13px; flex-shrink: 0; }
.detail-scroll { height: 610px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d9dfe8 transparent; padding: 24px 28px 28px; }
.detail-scroll:focus-visible { outline-offset: -3px; }
.detail-breadcrumb { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; color: #64748b; font-size: 10px; }
.detail-breadcrumb .icon { width: 10px; height: 10px; color: var(--navy); }
.detail-breadcrumb > span:last-child { color: #334155; font-weight: 500; }
.detail-header-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.detail-kind { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #64748b; }
.detail-pane .outcome-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; color: #b64153; border-color: #f0dce0; background: #fcf0f2; font-size: 9px; }
.detail-pane .outcome-badge .icon, .detail-outcome-label strong > span .icon { color: inherit; }
.detail-pane .outcome-badge .icon { width: 11px; height: 11px; stroke-width: 2.3; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.detail-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 28px; padding: 5px 7px; border: 1px solid #e2e8f0; border-radius: 5px; background: white; color: #475569; font-size: 9px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.detail-action:hover { background: #f8fafc; border-color: #cbd5e1; }
.detail-action .icon { width: 12px; height: 12px; }
.detail-sources { position: relative; }
.detail-sources summary { list-style: none; }
.detail-sources summary::-webkit-details-marker { display: none; }
.detail-chevron { transform: rotate(90deg); width: 10px !important; }
.detail-source-menu { position: absolute; top: calc(100% + 5px); left: 0; z-index: 6; width: 205px; padding: 5px; background: white; border: 1px solid #e2e8f0; border-radius: 6px; box-shadow: 0 8px 24px #20263316; }
.detail-source-menu > span { display: block; padding: 7px 8px; font-size: 9px; color: #64748b; }
.detail-source-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 8px; border-radius: 4px; font-size: 10px; color: var(--navy); }
.detail-source-menu a:hover { background: #f1f5f9; }
.detail-locale { display: flex; align-items: center; gap: 3px; border: 1px solid #e2e8f0; border-radius: 5px; min-height: 28px; padding: 3px 4px 3px 7px; }
.detail-locale .flag { width: 13px; height: 9px; }
.detail-locale label { display: flex; }
.detail-locale select { background: transparent; border: 0; font-size: 9px; color: #475569; cursor: pointer; padding: 2px 0; max-width: 86px; }
.detail-locale label:last-child { border-left: 1px solid #e2e8f0; padding-left: 4px; margin-left: 2px; }
.detail-title { font-size: 23px; font-weight: 700; letter-spacing: -.6px; line-height: 1.27; margin: 0; max-width: 690px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; font-size: 9px; color: #64748b; line-height: 1.5; }
.detail-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.detail-meta code, .detail-reference { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.detail-meta .icon { width: 12px; height: 12px; color: var(--navy); }
.detail-outcome { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; margin: 22px 0; padding: 20px; border: 1px solid #e2e8f0; border-radius: 9px; }
.detail-outcome-label { display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #e2e8f0; gap: 8px; }
.detail-outcome-label h3 { margin: 0; color: #64748b; font-size: 9px; font-weight: 500; }
.detail-outcome-label > strong { display: flex; align-items: center; gap: 7px; font-size: 19px; font-weight: 650; letter-spacing: -.4px; }
.detail-outcome-label strong > span { display: grid; place-items: center; background: #fcf0f2; color: #b64153; width: 22px; height: 22px; border-radius: 50%; }
.detail-outcome-label > span { font-size: 9px; color: #94a3b8; }
.detail-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.detail-total { display: flex; flex-direction: column; gap: 3px; }
.detail-total strong { font-size: 24px; line-height: 1.1; font-weight: 650; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.detail-total span { font-size: 9px; color: #64748b; }
.detail-total small { font-size: 8px; color: #94a3b8; }
.detail-for { color: #197354; } .detail-abstain { color: #89621d; } .detail-against { color: #b64153; }
.detail-overall-bar { display: flex; gap: 2px; overflow: hidden; height: 7px; border-radius: 3px; margin-top: 12px; }
.detail-overall-bar i { display: block; }
.detail-pane .for-color { background: var(--detail-for); }
.detail-pane .abstain-color { background: var(--detail-abstain); }
.detail-pane .against-color { background: var(--detail-against); }
.detail-outcome-data > p { font-size: 8px; color: #94a3b8; text-align: right; margin: 5px 0 0; }
.detail-comparison { border: 1px solid #e2e8f0; border-radius: 9px; overflow: hidden; }
.detail-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #e2e8f0; padding: 13px 18px; }
.detail-card-heading h3 { margin: 0; font-size: 12px; font-weight: 600; }
.detail-part-tabs, .detail-mode-tabs { display: flex; background: #f1f5f9; border: 1px solid #e2e8f0; padding: 2px; border-radius: 5px; }
.detail-part-tabs button, .detail-mode-tabs button { background: transparent; color: #64748b; border: 0; border-radius: 3px; padding: 5px 8px; font-size: 9px; white-space: nowrap; }
.detail-part-tabs button[aria-pressed="true"], .detail-mode-tabs button[aria-pressed="true"] { background: white; color: #334155; box-shadow: 0 1px 3px #20263312; font-weight: 600; }
.detail-proposal-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px 0; font-size: 10px; color: #64748b; }
.detail-proposal-heading > span:last-child { background: #202633; color: white; padding: 3px 6px; border-radius: 4px; font-size: 8px; }
.detail-amendment-text { padding: 15px 18px 18px; font-size: 12px; line-height: 1.95; font-weight: 600; font-style: italic; color: #334155; }
.detail-amendment-text mark { background: #fde68a; color: #334155; border-radius: 2px; padding: 0 2px; }
.detail-selected-passage { background: #fff1bf; box-decoration-break: clone; -webkit-box-decoration-break: clone; text-decoration: underline; text-decoration-color: #d2a640; text-underline-offset: 3px; border-radius: 2px; }
.detail-selected-passage mark { background: #f8d77b; }
.detail-original-note { margin: 0; padding: 11px 18px; border-top: 1px solid #e2e8f0; color: #94a3b8; font-size: 9px; line-height: 1.6; background: #fbfcfd; }
.detail-split-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 27px; color: #64748b; }
.detail-split-note .icon { margin-top: 2px; color: var(--navy); }
.detail-split-note p { font-size: 10px; line-height: 1.65; margin: 0; }
.detail-breakdown-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.detail-breakdown-heading h3 { font-size: 17px; font-weight: 650; letter-spacing: -.3px; margin: 0 0 5px; }
.detail-breakdown-heading p { margin: 0; font-size: 10px; color: #64748b; }
.detail-table-card { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.detail-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 12px; border-bottom: 1px solid #e2e8f0; background: #fcfdff; }
.detail-breakdown-tabs { display: flex; gap: 2px; min-width: 0; }
.detail-breakdown-tabs button { background: transparent; padding: 7px 9px; border: 0; border-radius: 4px; font-size: 9px; color: #64748b; font-weight: 500; white-space: nowrap; }
.detail-breakdown-tabs button[aria-selected="true"] { background: #edf1fb; color: #1e3a8a; font-weight: 600; }
.detail-table-country select { background: white; border: 1px solid #e2e8f0; border-radius: 4px; color: #64748b; padding: 5px; font-size: 9px; max-width: 98px; }
#demo-all-countries { font-size: 8px; color: #64748b; text-align: right; }
.detail-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 10px; }
.detail-table th { color: #64748b; background: #f8fafc; font-weight: 500; font-size: 8px; white-space: nowrap; }
.detail-table th, .detail-table td { padding: 12px 9px; text-align: right; border-bottom: 1px solid #eef2f6; font-variant-numeric: tabular-nums; }
.detail-table th:first-child, .detail-table td:first-child { text-align: left; width: 31%; padding-left: 14px; }
.detail-table th:nth-child(2), .detail-table td:nth-child(2) { text-align: left; width: 27%; }
.detail-table th:last-child, .detail-table td:last-child { width: 12%; padding-right: 14px; }
.detail-table tbody tr:last-child td { border-bottom: 0; }
.detail-table tbody tr:hover { background: #fafbfe; }
.detail-party-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.detail-party-name > span:last-child { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 500; }
.detail-party-avatar { display: grid; place-items: center; flex-shrink: 0; width: 23px; height: 23px; background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; border-radius: 5px; font-size: 8px; font-style: normal; font-weight: 600; }
.detail-vote-bar { display: flex; height: 8px; gap: 1px; border-radius: 2px; overflow: hidden; width: 100%; }
.detail-vote-bar i { display: block; flex-shrink: 0; transition: width .45s ease; }
.detail-mobile-bar { display: none; }
.detail-muted { color: #c4ccd8; }
.detail-participation { color: #475569; font-size: 9px; }
.detail-participation small { font-size: 8px; color: #94a3b8; }
.detail-table-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; padding: 12px 14px; border-top: 1px solid #e2e8f0; }
.detail-table-footer p { margin: 0; font-size: 8px; line-height: 1.6; color: #94a3b8; }
.detail-legend { display: flex; gap: 9px; font-size: 8px; color: #64748b; }
.detail-legend span { display: flex; align-items: center; gap: 4px; }
.detail-legend i { width: 6px; height: 6px; border-radius: 2px; }
.detail-source-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.detail-source-cards a { display: flex; align-items: center; gap: 9px; border: 1px solid #e2e8f0; border-radius: 7px; padding: 13px; font-size: 10px; color: var(--navy); }
.detail-source-cards a:hover { background: #f8fafc; }
.detail-source-cards a > .icon { color: var(--navy); }
.detail-source-cards a > .icon:last-child { margin-left: auto; width: 11px; height: 11px; }
.detail-source-cards small { display: block; margin-top: 5px; font-size: 8px; color: #94a3b8; }
.detail-decision-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; color: #94a3b8; margin: 17px 0 0; overflow-wrap: anywhere; }
.detail-demo-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 28px; border-top: 1px solid #e2e8f0; font-size: 9px; background: #fff; }
.detail-demo-footer > span { color: #94a3b8; }
.detail-demo-footer a { color: var(--navy); font-weight: 500; display: flex; align-items: center; gap: 5px; }
.detail-demo-footer a:hover { text-decoration: underline; }
.product-window[data-scene="1"] .detail-selected-passage { animation: highlight-in .9s ease-out; }
.product-window[data-scene="2"] .detail-table tbody tr { animation: row-in .5s both; animation-delay: calc(var(--row) * 45ms); }
@media (max-width: 1150px) {
  .product-body { grid-template-columns: 210px minmax(0, 1fr); }
  .detail-scroll { padding-inline: 22px; }
  .detail-actions { gap: 4px; }
  .detail-action { padding-inline: 6px; }
  .detail-outcome { grid-template-columns: 105px minmax(0, 1fr); gap: 15px; padding: 17px; }
  .detail-outcome-label > strong { font-size: 17px; }
}
@media (max-width: 860px) {
  .product-body { grid-template-columns: 178px minmax(0, 1fr); }
  .detail-scroll { padding: 20px 18px 24px; }
  .detail-title { font-size: 20px; }
  .detail-actions { width: 100%; }
  .detail-action { font-size: 8px; gap: 4px; }
  .detail-locale { margin-left: auto; }
  .detail-outcome { grid-template-columns: 95px minmax(0, 1fr); gap: 13px; padding: 15px; }
  .detail-outcome-label > strong { font-size: 15px; gap: 4px; }
  .detail-total strong { font-size: 22px; }
  .detail-table th:nth-child(2), .detail-table td:nth-child(2) { display: none; }
  .detail-table th:first-child, .detail-table td:first-child { width: 43%; }
  .detail-table th:last-child, .detail-table td:last-child { width: 16%; }
  .detail-table th, .detail-table td { padding-inline: 7px; }
  .detail-table th:first-child, .detail-table td:first-child { padding-left: 11px; }
  .detail-table th:last-child, .detail-table td:last-child { padding-right: 11px; }
  .detail-mobile-bar { display: flex; margin: 6px 0 0 31px; height: 5px; width: calc(100% - 31px); }
  .detail-source-cards { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .product-body { display: flex; }
  .detail-scroll { height: 575px; padding: 18px 15px 24px; }
  .detail-breadcrumb { margin-bottom: 17px; font-size: 9px; gap: 4px; }
  .detail-header-top { gap: 10px; margin-bottom: 12px; }
  .detail-kind { font-size: 9px; }
  .detail-actions { gap: 5px; }
  .detail-action { padding: 5px 7px; min-height: 28px; }
  .detail-actions > a.detail-action span { display: none; }
  .detail-title { font-size: 19px; line-height: 1.3; }
  .detail-meta { font-size: 8px; gap: 7px 10px; margin-top: 12px; }
  .detail-meta code, .detail-reference { font-size: 7px; }
  .detail-locale { padding-left: 5px; }
  .detail-locale select { font-size: 8px; max-width: 73px; }
  .detail-outcome { margin-block: 18px; padding: 13px; grid-template-columns: 85px minmax(0, 1fr); gap: 12px; }
  .detail-outcome-label > strong { font-size: 14px; }
  .detail-outcome-label strong > span { width: 19px; height: 19px; }
  .detail-total strong { font-size: 21px; }
  .detail-totals { gap: 5px; }
  .detail-card-heading { padding: 11px 13px; }
  .detail-card-heading h3 { font-size: 11px; }
  .detail-part-tabs button { padding: 5px 6px; font-size: 8px; }
  .detail-proposal-heading { padding-inline: 13px; }
  .detail-amendment-text { padding: 13px; font-size: 11px; line-height: 1.95; }
  .detail-original-note { padding: 10px 13px; font-size: 8px; }
  .detail-split-note p { font-size: 9px; }
  .detail-breakdown-heading h3 { font-size: 15px; }
  .detail-breakdown-heading p { font-size: 8px; }
  .detail-mode-tabs button { padding: 5px 7px; font-size: 8px; }
  .detail-table-toolbar { padding: 8px; gap: 4px; flex-wrap: wrap; }
  .detail-breakdown-tabs button { font-size: 8px; padding: 6px 7px; }
  .detail-table-country select { font-size: 8px; max-width: 83px; padding: 4px; }
  .detail-table { font-size: 9px; }
  .detail-table th { font-size: 7px; }
  .detail-table th, .detail-table td { padding: 11px 4px; }
  .detail-table th:first-child, .detail-table td:first-child { width: 43%; padding-left: 9px; }
  .detail-table th:last-child, .detail-table td:last-child { padding-right: 9px; }
  .detail-party-name { gap: 6px; }
  .detail-party-name > span:last-child { font-size: 8px; }
  .detail-party-avatar { width: 20px; height: 20px; font-size: 7px; }
  .detail-mobile-bar { margin-left: 26px; width: calc(100% - 26px); }
  .detail-participation { font-size: 8px; white-space: nowrap; }
  .detail-participation small { font-size: 7px; }
  .detail-table-footer { padding: 10px; }
  .detail-table-footer p, .detail-legend { font-size: 7px; }
  .detail-demo-footer { padding: 12px 15px; font-size: 8px; }
}
