/* Accessible workflow controls layered over the existing navy and gold design. */
.demo-notice { margin: 18px 0; padding: 12px 16px; border: 1px solid #e7c980; border-radius: 8px; background: #fff8e6; color: #634715; font-size: .9rem; line-height: 1.5; }
.cal-account-note { margin: 16px 0; padding: 12px 14px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; color: #1e3a5f; font-size: .9rem; line-height: 1.5; }
.cal-account-note a { text-decoration: underline; font-weight: 600; }
.cal-vote-control { min-width: 0; margin: 10px 0; padding: 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; color: #0e2a47; }
.cal-vote-total { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; font-size: .95rem; }
.cal-vote-total strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.cal-thumb-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.cal-vote-form { margin: 0; }
.cal-vote-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; width: 100%; padding: 9px 12px; border: 1px solid #0369a1; border-radius: 8px; background: #fff; color: #075985; font: inherit; font-weight: 700; cursor: pointer; }
.cal-vote-button[aria-pressed="true"] { background: #e0f2fe; border-color: #0284c7; }
.cal-vote-button:hover { background: #eff6ff; }
.cal-vote-button:disabled { cursor: progress; opacity: .65; }
.cal-vote-login { display: inline-block; min-height: 44px; padding: 8px 0; color: #075985; font-weight: 700; text-decoration: underline; }
.cal-vote-note, .cal-vote-feedback { margin: 4px 0 0; font-size: .8rem; line-height: 1.5; }
.cal-vote-feedback:empty { display: none; }
.cal-publication-controls form { margin: 12px 0; }
.cal-delete-profile { padding-top: 18px; border-top: 1px solid #e5e7eb; }
.cal-profile-status { margin-top: 12px !important; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid #c99124; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 500; top: 8px; left: 8px; transform: translateY(-160%); background: #fff; color: #0e2a47; padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header__inner { gap: 16px; padding-left: 16px; padding-right: 16px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 18px; }
.site-nav a { margin-left: 0; }
.logout-form { display: inline; margin: 0; }
.logout-form button { border: 0; padding: 0; background: transparent; color: #dbeafe; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; overflow-wrap: anywhere; }
.logout-form button:hover { color: #fff; text-decoration: underline; }
.atl-decoration { display: contents; }
.add-to-list-bar:focus-within { outline: 3px solid #e8bb61; outline-offset: 3px; z-index: 1; }
.add-to-list-bar input:checked ~ .atl-decoration .atl-check { background: #7dd3fc; border-color: #7dd3fc; color: #0a1628; }
.add-to-list-bar input:checked ~ .atl-decoration .atl-check::after { content: "✓"; }
.cal-vote-stat, .cal-vote-stat:hover { cursor: default; transform: none; }
.cal-review-note { display: block; margin-top: 8px; font-size: .78rem; line-height: 1.45; font-weight: 500; }
.pc-contact, .pc-c-data, .pc-main, .pc-info { min-width: 0; }
.pc-c-value { overflow-wrap: anywhere; }
.has-selection { padding-bottom: 110px; }
.cal-selection-status { color: #0e2a47; font-weight: 600; }
.cal-selection-status:empty { display: none; }
.cal-table-scroll { width: 100%; overflow-x: auto; border: 1px solid #d1d5db; border-radius: 10px; margin: 16px 0; -webkit-overflow-scrolling: touch; }
.cal-table-scroll .admin-table { margin: 0; min-width: 620px; }
.cal-table-scroll:focus-visible { outline-offset: 2px; }
.cal-table-scroll .actions { min-width: 190px; }
.attr-row > input { min-width: 0; }
button[aria-busy="true"] { cursor: progress; opacity: .7; }
.sel-bar { border-radius: 16px; max-width: calc(100% - 24px); width: max-content; }
.sel-bar__count { white-space: nowrap; }
.sel-bar button { min-height: 44px; }
.sel-bar .btn-dark { color: #fff; }
.cal-dialog {
  color: #1f2937; background: #fff; border: 1px solid #cbd5e1; border-radius: 16px;
  width: min(620px, calc(100% - 24px)); max-width: 620px; max-height: calc(100dvh - 32px);
  padding: 24px; box-shadow: 0 24px 70px rgba(10,22,40,.35); overflow: auto;
}
.cal-dialog::backdrop { background: rgba(10,22,40,.72); }
.cal-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cal-dialog h2 { margin: 0; color: #0e2a47; font-size: 1.35rem; }
.cal-dialog label { display: block; font-weight: 600; margin: 14px 0 5px; }
.cal-dialog input:not([type="hidden"]), .cal-dialog textarea, .cal-dialog select {
  width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #94a3b8; border-radius: 7px;
  color: #1f2937; background: #fff; font: inherit;
}
.cal-dialog textarea { resize: vertical; }
.cal-dialog fieldset { min-width: 0; margin: 18px 0; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; }
.cal-dialog legend { font-weight: 700; padding: 0 5px; color: #0e2a47; }
.cal-dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; margin-top: 18px; }
.cal-dialog button { min-height: 42px; }
.cal-dialog button:disabled { opacity: .65; cursor: wait; }
.cal-dialog .link-result { align-items: stretch; }
.cal-dialog .link-result input { width: 0; }
.cal-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cal-selected-candidates { list-style: none; margin: 0; padding: 0; }
.cal-selected-candidates li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.cal-selected-candidates li + li { border-top: 1px solid #e5e7eb; }
.cal-selected-candidates li span { overflow-wrap: anywhere; }
.cal-selected-candidates button { flex-shrink: 0; }
.cal-copy-status { position: fixed; z-index: 250; left: 50%; bottom: 20px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; background: #0e2a47; color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: 0 8px 28px rgba(10,22,40,.25); }
.cal-copy-status:empty { display: none; }
.has-selection .cal-copy-status { bottom: 110px; }
.copy-failed { color: #9b1c1c; }
.cal-copy-status.copy-failed { background: #7f1d1d; color: #fff; }
@media (max-width: 700px) {
  .attr-row { grid-template-columns: minmax(0, 1fr); gap: 8px; border-bottom: 1px solid #d1d5db; padding-bottom: 14px; margin-bottom: 14px; }
  .attr-row > button { justify-self: start; min-height: 44px; }
  .site-header__inner { align-items: flex-start; flex-direction: column; }
  .site-nav { justify-content: flex-start; gap: 12px 16px; }
  .site-nav a, .logout-form button { display: inline-block; padding: 5px 0; }
  .filters { align-items: stretch; }
  .filters > input, .filters > select { width: 100%; min-width: 0; }
  .filters .checkbox-row { min-height: 44px; }
  .filters .checkbox-row input { min-width: 0; width: 18px; }
  .sel-bar { width: calc(100% - 24px); gap: 8px; flex-wrap: wrap; padding: 12px; bottom: 10px; }
  .sel-bar__count { flex: 1 1 auto; font-size: .88rem; }
  .sel-bar #openBuild { flex: 1 1 100%; }
  .has-selection { padding-bottom: 160px; }
  .has-selection .cal-copy-status { bottom: 150px; }
  .cal-dialog { padding: 18px; max-height: calc(100dvh - 20px); }
  .cal-dialog .link-result { flex-wrap: wrap; }
  .cal-dialog .link-result input { width: 100%; flex: 1 1 100%; }
  .cal-dialog .link-result button { width: 100%; }
  .cal-dialog-actions > * { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
