/* Census-only styles: the underlying site's components and variables are unchanged. */
.ixg-census-dialog {
  box-sizing: border-box;
  width: min(1440px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line, rgba(36, 50, 68, .16));
  border-top: 4px solid var(--gold, #e9bb45);
  border-radius: 3px;
  color: var(--ink, #243244);
  background: var(--white, #fff);
  box-shadow: 0 24px 100px rgba(36, 50, 68, .28);
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.6;
  overscroll-behavior: contain;
}

.ixg-census-dialog::backdrop {
  background: rgba(20, 37, 55, .7);
}

.ixg-census-dialog *,
.ixg-census-dialog *::before,
.ixg-census-dialog *::after {
  box-sizing: border-box;
}

.ixg-census-dialog [hidden] {
  display: none !important;
}

.ixg-census-dialog .ixg-census-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 54px);
  max-height: calc(100dvh - 54px);
  min-width: 0;
}

.ixg-census-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 30px 20px;
  border-bottom: 1px solid var(--line, rgba(36, 50, 68, .16));
  background: var(--paper, #f5f7fa);
}

.ixg-census-heading > div {
  min-width: 0;
}

.ixg-census-kicker {
  margin: 0 0 8px;
  color: var(--blue, #2f6fa9);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .15em;
}

.ixg-census-dialog h2 {
  margin: 0;
  color: var(--ink, #243244);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(29px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.ixg-census-dialog h3 {
  margin: 0 0 9px;
  color: var(--ink, #243244);
  font-family: var(--serif, Georgia, serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}

.ixg-census-dialog .ixg-census-content {
  min-width: 0;
  padding: 22px 30px 26px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ixg-census-intro {
  max-width: 1000px;
  margin: 0 0 14px;
  color: var(--ink-soft, #596675);
  font-size: 13px;
}

.ixg-census-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 12px;
}

.ixg-census-template-link {
  color: var(--blue-dark, #1c4f78);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ixg-census-template-link:hover {
  color: var(--blue, #2f6fa9);
}

.ixg-census-hint {
  margin: 0 0 12px;
  color: var(--ink-soft, #596675);
  font-size: 11px;
  line-height: 1.7;
}

.ixg-census-form {
  min-width: 0;
  margin: 0;
}

.ixg-census-dialog .ixg-census-sheet {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: min(52vh, 560px);
  max-height: min(52dvh, 560px);
  overflow: auto;
  border: 1px solid var(--line, rgba(36, 50, 68, .16));
  background: var(--white, #fff);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.ixg-census-sheet-loading {
  margin: 0;
  padding: 28px 18px;
  color: var(--ink-soft, #596675);
  font-size: 13px;
}

.ixg-census-sheet > .ixg-census-button {
  margin: 0 18px 20px;
}

.ixg-census-dialog .ixg-census-table {
  table-layout: fixed;
  max-width: none;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink, #243244);
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 12px;
  line-height: 1.3;
}

.ixg-census-table th,
.ixg-census-table td {
  height: 24px;
  padding: 0;
  border: 0;
  border-right: 1px solid rgba(36, 50, 68, .1);
  vertical-align: middle;
  font-weight: 400;
  text-align: left;
}

.ixg-census-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 49px;
  padding: 8px 6px;
  color: var(--blue-dark, #1c4f78);
  background: var(--white, #fff);
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 0 rgba(47, 111, 169, .25);
}

.ixg-census-table .ixg-census-border-top {
  border-top: 1px solid #4f81bd;
}

.ixg-census-table .ixg-census-border-bottom {
  border-bottom: 1px solid #4f81bd;
}

.ixg-census-table .ixg-census-readonly {
  padding: 3px 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ixg-census-table .ixg-census-legend {
  color: var(--blue-dark, #1c4f78);
}

.ixg-census-table .ixg-census-row-spacer td {
  height: 9px;
}

.ixg-census-dialog .ixg-census-cell-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 33px;
  margin: 0;
  padding: 7px 6px;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--ink, #243244);
  background: transparent;
  font: inherit;
  font-weight: inherit;
  text-align: inherit;
  line-height: 1.35;
}

.ixg-census-cell-input::placeholder {
  color: #606d7a;
  opacity: 1;
  font-weight: 400;
}

.ixg-census-cell-input:hover:not([readonly]) {
  border-color: rgba(47, 111, 169, .35);
}

.ixg-census-dialog .ixg-census-cell-input:focus {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--blue, #2f6fa9);
  outline-offset: -2px;
  background: var(--white, #fff);
}

.ixg-census-contact {
  min-width: 0;
  margin-top: 24px;
  padding-top: 23px;
  border-top: 1px solid var(--line, rgba(36, 50, 68, .16));
}

.ixg-census-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 15px 0 17px;
}

.ixg-census-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.ixg-census-field label {
  color: var(--ink, #243244);
  font-size: 11px;
  font-weight: 700;
}

.ixg-census-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line, rgba(36, 50, 68, .16));
  border-radius: 0;
  color: var(--ink, #243244);
  background: var(--white, #fff);
  font: inherit;
  font-size: 13px;
}

.ixg-census-privacy {
  margin: 0 0 15px;
  padding: 14px 16px;
  border-left: 2px solid var(--gold, #e9bb45);
  color: var(--ink-soft, #596675);
  background: var(--gold-pale, #fff5d8);
  font-size: 11px;
  line-height: 1.75;
}

.ixg-census-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--ink, #243244);
  font-size: 12px;
  line-height: 1.65;
  cursor: pointer;
}

.ixg-census-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--blue, #2f6fa9);
}

.ixg-census-honeypot,
.ixg-census-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.ixg-census-availability {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 15px;
  padding: 12px 15px;
  color: var(--ink-soft, #596675);
  background: var(--blue-pale, #e2ebf4);
  font-size: 11px;
}

.ixg-census-availability p {
  flex: 1 1 380px;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.ixg-census-actions {
  min-width: 0;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line, rgba(36, 50, 68, .16));
}

.ixg-census-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.ixg-census-dialog .ixg-census-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid var(--blue, #2f6fa9);
  border-radius: 2px;
  color: var(--blue-dark, #1c4f78);
  background: var(--white, #fff);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: normal;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.ixg-census-dialog .ixg-census-button:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: var(--blue-dark, #1c4f78);
  background: var(--blue-pale, #e2ebf4);
}

.ixg-census-dialog .ixg-census-button-primary {
  border-color: var(--gold, #e9bb45);
  color: var(--ink, #243244);
  background: var(--gold, #e9bb45);
}

.ixg-census-dialog .ixg-census-button-primary:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: var(--gold-hover, #d8a82b);
  background: var(--gold-hover, #d8a82b);
}

.ixg-census-dialog .ixg-census-button-quiet {
  min-height: 36px;
  padding: 7px 10px;
  border-color: transparent;
  color: var(--blue-dark, #1c4f78);
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ixg-census-dialog .ixg-census-close {
  flex: 0 0 auto;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-color: var(--line, rgba(36, 50, 68, .16));
  color: var(--ink, #243244);
  background: var(--white, #fff);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}

.ixg-census-dialog .ixg-census-button:disabled,
.ixg-census-dialog .ixg-census-button[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
}

.ixg-census-dialog :focus-visible {
  outline: 3px solid var(--blue, #2f6fa9);
  outline-offset: 3px;
}

.ixg-census-dialog #ixg-census-title:focus {
  outline-offset: 5px;
}

.ixg-census-dialog [aria-invalid="true"] {
  outline: 2px solid #a4382c;
  outline-offset: -2px;
  border-color: #a4382c;
}

.ixg-census-dialog input[readonly] {
  cursor: progress;
}

.ixg-census-message {
  margin: 15px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft, #596675);
  font-size: 12px;
  line-height: 1.75;
}

.ixg-census-message:empty {
  display: none;
}

.ixg-census-message[data-kind="error"] {
  padding: 12px 15px;
  border-left: 2px solid #a4382c;
  color: #7c291f;
  background: #fff2ef;
}

.ixg-census-message[data-kind="success"] {
  padding: 12px 15px;
  border-left: 2px solid var(--blue, #2f6fa9);
  color: var(--blue-dark, #1c4f78);
  background: var(--blue-pale, #e2ebf4);
}

.ixg-census-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--blue-dark, #1c4f78);
  font-size: 12px;
}

.ixg-census-spinner {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border: 2px solid var(--blue-pale, #e2ebf4);
  border-top-color: var(--blue, #2f6fa9);
  border-radius: 50%;
  animation: ixg-census-spin .8s linear infinite;
}

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

@media (max-width: 760px) {
  .ixg-census-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .ixg-census-dialog .ixg-census-shell {
    max-height: calc(100vh - 26px);
    max-height: calc(100dvh - 26px);
  }

  .ixg-census-heading {
    gap: 12px;
    padding: 18px 16px 15px;
  }

  .ixg-census-dialog .ixg-census-content {
    padding: 17px 16px 20px;
  }

  .ixg-census-contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ixg-census-dialog .ixg-census-sheet {
    max-height: 45vh;
    max-height: 45dvh;
  }

  .ixg-census-action-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .ixg-census-action-buttons .ixg-census-button {
    width: 100%;
    min-height: 46px;
  }

  .ixg-census-privacy {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ixg-census-dialog .ixg-census-button {
    transition: none;
  }

  .ixg-census-spinner {
    animation: none;
  }
}
