/* Design tokens and base document styles --------------------------------- */
:root {
  --section-heading-gap: 0.75rem;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f4f7fb;
  color: #1f2937;
}
.required-asterisk { color: #dc2626; margin-left:0.35rem; font-weight:700; }
header {
  background: #2563eb;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Restricted administration entry --------------------------------------- */
.admin-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 0, rgba(37, 99, 235, 0.14), transparent 38rem),
    #eef3f9;
}
.admin-header {
  position: static;
}
.admin-area-label {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-main {
  display: grid;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 4.5rem);
  margin: 0;
  padding: 2rem 1rem;
  box-sizing: border-box;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.admin-login-card {
  width: min(100%, 27rem);
  padding: 2rem;
  box-sizing: border-box;
  border: 1px solid #d8e2ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(30, 50, 80, 0.12);
  text-align: left;
}
.admin-lock {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: 1.6rem;
  font-weight: 700;
}
.admin-eyebrow {
  margin: 0 0 0.35rem;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-login-card h2 {
  margin: 0;
  color: #17253a;
  font-size: 1.8rem;
}
.admin-login-intro {
  margin: 0.6rem 0 1.4rem;
  color: #526782;
}
.admin-login-card form {
  display: grid;
  gap: 0.55rem;
}
.admin-login-card label {
  margin-top: 0.5rem;
  color: #25364d;
  font-size: 0.86rem;
  font-weight: 700;
}
.admin-login-card input {
  width: 100%;
  box-sizing: border-box;
}
.admin-sign-in-button {
  width: 100%;
  margin-top: 1rem;
  border: 0;
  cursor: pointer;
}
.admin-login-status {
  min-height: 1.25rem;
  margin: 0.25rem 0 0;
  color: #92400e;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}
.admin-setup-note {
  margin: 1.25rem 0 0;
  padding: 0.85rem;
  border-radius: 9px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.45;
}
.admin-return-link {
  display: block;
  margin-top: 1rem;
  color: #526782;
  font-size: 0.8rem;
  text-align: center;
}
@media (max-width: 520px) {
  .admin-header {
    padding: 0.8rem 1rem;
  }
  .admin-login-card {
    padding: 1.4rem;
  }
}
main {
  max-width: 1200px;
  margin: 1.5rem auto;
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}
h1 {
  margin: 0;
  font-size: 1.65rem;
}
.home-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.brand-logo {
  --brand-spacing: 0.42em;
  display: inline-flex;
  align-items: center;
  gap: var(--brand-spacing);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}
.brand-e {
  display: inline-flex;
  width: 0.64em;
  height: 0.68em;
  flex-direction: column;
  justify-content: space-between;
}
.brand-e i {
  display: block;
  width: 100%;
  height: 0.09em;
  border-radius: 999px;
  background: currentColor;
}
.brand-tail {
  margin-right: calc(var(--brand-spacing) * -1);
  letter-spacing: var(--brand-spacing);
}
.home-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 4px;
  border-radius: 4px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  min-height: 2.4rem;
  padding: 0.55rem 0.9rem;
  box-sizing: border-box;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: bold;
}
.cta-button:hover {
  background: #1d4ed8;
}
/* Homepage --------------------------------------------------------------- */
.home-hero {
  max-width: 980px;
  margin: 0 auto 2.25rem;
}
.home-hero h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  white-space: nowrap;
}
html[lang="nl"] .home-hero h2,
html[lang="fr"] .home-hero h2 {
  font-size: clamp(1.7rem, 3.7vw, 2.25rem);
}
html[lang="de"] .home-hero h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
}
.home-hero p {
  margin: 0;
  color: #64748b;
  font-size: 1.05rem;
}
.home-actions {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(17rem, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
  text-align: center;
}
.home-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 13rem;
  padding: 1.65rem;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}
.home-action-card h3 {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.25rem;
}
.home-action-card p {
  flex: 1;
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}
.home-action-card .cta-button {
  margin-top: 1rem;
}
.home-action-card.secondary-card {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.home-action-card.secondary-card .cta-button {
  background: #e5e7eb;
  color: #111827;
}
.home-action-card.secondary-card .cta-button:hover {
  background: #d1d5db;
}
.coming-soon-sticker {
  position: absolute;
  top: 0.8rem;
  right: -0.45rem;
  padding: 0.45rem 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transform: rotate(2deg);
}
.home-action-card .disabled-cta,
.home-action-card .disabled-cta:hover {
  background: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
}
a[aria-disabled="true"] {
  cursor: not-allowed;
  text-decoration: none;
}
.primary-action-card {
  display: grid;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
  gap: 1.5rem;
  align-items: center;
  text-align: left;
}
.primary-action-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.primary-action-copy h3 {
  margin: 0.9rem 0 0.4rem;
}
.primary-action-copy p {
  flex: initial;
}
.primary-action-copy .cta-button {
  min-height: 3rem;
  padding: 0.72rem 1.25rem;
  background: #1d4ed8;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.primary-action-copy .cta-button::after {
  margin-left: 0.55rem;
  content: "\2192";
  font-size: 1.15em;
  line-height: 1;
}
.primary-action-copy .cta-button:hover {
  background: #1e40af;
  box-shadow: 0 11px 22px rgba(37, 99, 235, 0.36);
  transform: translateY(-2px);
}
.primary-action-copy .cta-button:active {
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.28);
  transform: translateY(0);
}
.primary-action-copy .cta-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}
.sample-report-preview {
  position: relative;
  container-type: inline-size;
  margin: 0;
  overflow: hidden;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}
.sample-report-preview img {
  display: block;
  width: 100%;
  height: auto;
}
.sample-report-brand {
  --brand-spacing: 0.38em;
  position: absolute;
  top: 6.2%;
  left: 7.6%;
  display: inline-flex;
  align-items: center;
  gap: var(--brand-spacing);
  color: #2563eb;
  font-size: clamp(0.35rem, 1.1cqw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}
.sample-report-sticker {
  position: absolute;
  top: 0.75rem;
  right: -0.35rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transform: rotate(2deg);
  transform-origin: center;
}
.secondary-card {
  justify-content: center;
}
.home-icon,
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: #dbeafe;
  color: #2563eb;
}
.home-icon svg,
.benefit-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}
.benefits-section {
  margin-top: 2.5rem;
  text-align: left;
}
.benefits-section > h2 {
  margin: 0 0 0.45rem;
  text-align: center;
}
.benefits-intro {
  max-width: 50rem;
  margin: 0 auto 1.35rem;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.benefit-card {
  padding: 1.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.benefit-card h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1rem;
}
.benefit-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}
.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.95fr);
  gap: 1.75rem;
  align-items: center;
  margin-top: 2.25rem;
  padding: 1.5rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  text-align: left;
}
.newsletter-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.newsletter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: #dbeafe;
  color: #2563eb;
}
.newsletter-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.newsletter-copy h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}
.newsletter-copy p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}
.newsletter-form {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.newsletter-form > label:first-child {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.newsletter-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}
.newsletter-input-row input {
  min-width: 0;
}
.newsletter-input-row .cta-button {
  margin: 0;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.75rem;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.4;
}
.newsletter-consent input {
  width: 1rem;
  min-height: 1rem;
  margin: 0.1rem 0 0;
}
.newsletter-frequency,
.newsletter-status {
  margin: 0.45rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
}
.newsletter-status {
  min-height: 1.1rem;
  color: #166534;
  font-weight: 700;
}
.newsletter-status.error {
  color: #b91c1c;
}
/* Planning and contribution workflows ----------------------------------- */
.workflow-card {
  margin-top: 0;
  padding: 1.25rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  font-size: 0.92rem;
  text-align: left;
}
.workflow-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.planner-intro {
  flex: 1;
  min-width: 0;
}
.planner-intro h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.planner-intro p {
  max-width: 48rem;
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}
.workflow-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.workflow-header #workflow-status {
  margin: 0;
  color: #475569;
}
.workflow-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.workflow-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.step-guidance {
  margin: 0 0 0.85rem;
  color: #64748b;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(160px, 1fr) 150px 105px auto;
  gap: 0.85rem;
  align-items: end;
}
.form-grid > div {
  min-width: 0;
}
.topic-field {
  position: relative;
}
.topic-options {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 30;
  width: 100%;
  max-height: 16rem;
  overflow-y: auto;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.topic-options.hidden {
  display: none;
}
.topic-option {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 0;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
}
.topic-option:hover,
.topic-option:focus {
  background: #eff6ff;
  outline: none;
}
.form-grid input {
  width: 100%;
  box-sizing: border-box;
}
.compact-input input {
  padding: 0.65rem;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: white;
  color: #2563eb;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}
.icon-button:hover {
  background: #eff6ff;
  transform: translateY(-1px);
}
.icon-button svg {
  width: 1rem;
  height: 1rem;
  display: block;
}
.add-row-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.add-row-button:hover {
  background: #1d4ed8;
}
.add-row-button:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}
.add-row-button svg {
  width: 1rem;
  height: 1rem;
}
.workflow-meta.hidden {
  display: none;
}
label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #374151;
}
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="number"], select {
  min-height: 2.55rem;
  padding: 0.62rem 0.7rem;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1f2937;
  font-family: inherit;
  font-size: 0.82rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}
.calculated-input {
  background: #f3f4f6 !important;
  color: #475569;
}
button:focus-visible,
.cta-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}
table#items-table th, table#items-table td {
  padding: 0.58rem 0.5rem !important;
  border: 1px solid #e6eef6;
  font-size: 0.8rem;
  vertical-align: middle;
}
table#items-table {
  min-width: 68rem;
  table-layout: fixed;
}
table#items-table th:nth-child(1) { width: 12%; }
table#items-table th:nth-child(2) { width: 25%; }
table#items-table th:nth-child(3) { width: 14%; }
table#items-table th:nth-child(4) { width: 13%; }
table#items-table th:nth-child(5) { width: 10%; }
table#items-table th:nth-child(6),
table#items-table th:nth-child(7) { width: 10%; }
table#items-table th:nth-child(8) { width: 6%; }
table#items-table td:nth-child(-n+4) {
  overflow-wrap: anywhere;
}
table#items-table th:nth-child(n+5),
table#items-table td:nth-child(n+5) {
  white-space: nowrap;
}
table#items-table thead tr {
  background: #f1f5f9;
}
table#items-table tfoot {
  background: #eaf2ff;
  font-weight: 700;
}
table#items-table tfoot.hidden {
  display: none;
}
.table-number-input {
  width: 100%;
  min-width: 5.4rem;
  min-height: 2.5rem !important;
  padding: 0.5rem !important;
  font-size: 0.8rem !important;
}
.row-label-input {
  min-width: 7rem;
}
.table-scroll {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}
.table-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0.75rem 0;
}
.table-search {
  width: min(100%, 20rem);
  min-height: 2.25rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
}
.sortable-header {
  cursor: pointer;
  user-select: none;
}
.sortable-header::after {
  margin-left: 0.35rem;
  color: #7890ad;
  content: "\2195";
  font-size: 0.78rem;
}
.sortable-header[aria-sort="ascending"]::after {
  color: #2563eb;
  content: "\2191";
}
.sortable-header[aria-sort="descending"]::after {
  color: #2563eb;
  content: "\2193";
}
.sortable-header:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #526782;
}
.table-pagination label {
  margin: 0;
}
.page-size-select {
  width: auto;
  min-width: 4rem;
  min-height: 2rem;
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  font-size: 0.78rem;
}
.page-status {
  min-width: 5.5rem;
  text-align: center;
}
.pagination-button {
  display: inline-grid;
  width: 2rem;
  min-height: 2rem;
  padding: 0;
  place-items: center;
  border: 1px solid #cbd8e8;
  border-radius: 50%;
  background: #fff;
  color: #2563eb;
  font-size: 1.15rem;
  cursor: pointer;
}
.pagination-button:hover:not(:disabled) {
  background: #eff6ff;
}
.pagination-button:disabled {
  color: #94a3b8;
  cursor: default;
  opacity: 0.65;
}
@media (max-width: 600px) {
  .table-pagination {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .page-status {
    margin-left: auto;
  }
}
table#items-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f5f9;
}
.overview-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  column-gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
}
.overview-title {
  margin: 0;
  font-size: 1.1rem;
}
.overview-heading {
  display: grid;
  justify-items: start;
  gap: 0.25rem;
  margin: 0;
}
.overview-heading .step-guidance {
  margin: 0;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.35;
}
.overview-section > .table-toolbar {
  align-self: start;
  margin: 0;
}
.overview-section > .table-toolbar .table-search {
  width: 100%;
}
.overview-section > .table-scroll,
.overview-section > .table-pagination {
  grid-column: 1 / -1;
}
.overview-section > .table-scroll {
  margin-top: var(--section-heading-gap);
}
.entry-section {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
}
.entry-title {
  margin: 0 0 var(--section-heading-gap);
  font-size: 1.1rem;
}
.overview-section > .overview-title {
  margin-bottom: var(--section-heading-gap);
}
.project-field {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(145px, 0.7fr) minmax(220px, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e6eef6;
}
.project-field input,
.project-field select {
  width: 100%;
  margin-top: 0.5rem;
}
.region-label-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.region-label-row label {
  margin-bottom: 0;
}
.info-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 1px solid #93c5fd;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font: 700 0.75rem/1 inherit;
  cursor: pointer;
}
.info-tooltip {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 35;
  width: min(22rem, 80vw);
  padding: 0.7rem 0.8rem;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  font-size: 0.82rem;
  line-height: 1.4;
}
.info-tooltip.hidden {
  display: none;
}
.info-help:hover + .info-tooltip,
.info-help:focus-visible + .info-tooltip {
  display: block;
}
/* Report and feedback modal --------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
}
.modal-backdrop.hidden {
  display: none;
}
.finalize-modal {
  width: min(100%, 32rem);
  padding: 1.5rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  text-align: left;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.modal-header h2 {
  margin: 0;
}
.modal-close {
  border: 0;
  background: transparent;
  color: #475569;
  cursor: pointer;
  font-size: 1.5rem;
}
.download-report-button {
  width: 100%;
  margin-top: 1rem;
}
.rating-section {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}
.rating-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.rating-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  min-height: 2.65rem;
  padding: 0 !important;
  font-weight: 700;
}
.rating-button[aria-pressed="true"] {
  background: #2563eb;
  color: #fff;
}
.rating-scale-labels {
  display: flex;
  justify-content: space-between;
  width: min(100%, 29.65rem);
  margin: 0.35rem auto 0;
  color: #64748b;
  font-size: 0.72rem;
}
.rating-message {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  color: #166534;
  text-align: center;
}
.finalize-next-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}
.finalize-next-actions .secondary-button {
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
}
.finalize-new-plan-button {
  background: #eaf2ff;
  color: #1d4ed8;
}
.workflow-card.hidden {
  display: none;
}
.contribution-section.hidden {
  display: none;
}
.contribution-section {
  padding: 1.25rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  text-align: left;
}
.contribution-header {
  flex: 1;
  min-width: 0;
}
.contribution-header h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.contribution-header p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}
.contributor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
}
.contributor-grid input,
.contributor-grid select {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.55rem 0.65rem;
}
.contributor-grid label {
  margin-bottom: 0.25rem;
}
.contributor-grid .hidden {
  display: none;
}
.region-multiselect {
  position: relative;
}
.region-multiselect-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
}
.region-multiselect-trigger:hover {
  border-color: #93c5fd;
}
.region-multiselect-trigger[aria-expanded="true"] {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.region-multiselect-options {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 40;
  width: 100%;
  max-height: 16rem;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.region-multiselect-toolbar {
  position: sticky;
  top: -0.35rem;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: -0.35rem -0.35rem 0.2rem;
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.region-toolbar-button {
  min-height: 1.8rem;
  padding: 0.25rem 0.55rem;
  border: 0;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
}
.region-toolbar-button:hover:not(:disabled) {
  background: #dbeafe;
}
.region-toolbar-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
.region-toolbar-button:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: default;
}
.region-multiselect-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 7px;
  color: #1f2937;
  cursor: pointer;
  font-size: 0.88rem;
}
.region-multiselect-option:hover {
  background: #eff6ff;
}
.region-multiselect-option input {
  width: 1rem;
  min-height: auto;
  height: 1rem;
  margin: 0;
  padding: 0;
  accent-color: #2563eb;
}
.contribution-entry-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px 120px auto;
  gap: 0.85rem;
  align-items: end;
}
.contribution-entry-grid > div {
  min-width: 0;
}
.contribution-entry-grid input {
  width: 100%;
}
#contribution-unit {
  background: #f3f4f6;
}
.contribution-status {
  min-height: 1.25rem;
  margin: 0.65rem 0 0;
  color: #dc2626;
  font-size: 0.78rem;
  text-align: right;
}
.contribution-status.success {
  color: #166534;
}
#submit-contributions.hidden {
  display: none;
}
#contribution-table th,
#contribution-table td {
  padding: 0.7rem 0.65rem;
  border: 1px solid #e6eef6;
  font-size: 0.88rem;
  text-align: left;
}
#contribution-table thead {
  background: #f1f5f9;
}
.contribution-estimate-input {
  width: 100%;
  max-width: 7rem;
}
.contribution-section .workflow-actions {
  position: static;
  background: transparent;
}
.intro-section.hidden {
  display: none;
}
.workflow-step {
  display: none;
}
.workflow-step.active {
  display: block;
}
.workflow-actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding-bottom: 0.25rem;
  background: #f8fbff;
}
.report-status {
  order: 2;
  max-width: 34rem;
  margin: 0;
  color: #dc2626;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
}
.report-status[data-state="ready"] {
  display: none;
}
.empty-overview {
  padding: 1.5rem !important;
  color: #64748b;
  text-align: center;
}
.secondary-button {
  min-height: 2.4rem;
  padding: 0.55rem 0.9rem;
  box-sizing: border-box;
  border: none;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.secondary-button:hover {
  background: #d1d5db;
}
#next-step {
  order: 1;
  padding: 0.55rem 0.9rem;
  background: #2563eb;
  color: white;
  font-size: 0.9rem;
}
#next-step:hover {
  background: #1d4ed8;
}
#next-step:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}
/* Responsive layouts ----------------------------------------------------- */
@media (max-width: 980px) {
  .home-actions {
    grid-template-columns: 1fr;
  }
  .home-action-card.secondary-card {
    min-height: 10rem;
  }
}
@media (max-width: 760px) {
  header {
    padding: 0.7rem 1rem;
  }
  main {
    margin: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workflow-card {
    padding: 1rem;
  }
  .home-hero h2 {
    white-space: normal;
  }
  .workflow-page-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.9rem;
  }
  .workflow-page-header .workflow-meta {
    justify-content: flex-start;
  }
  .entry-section,
  .overview-section {
    padding: 0.85rem;
  }
  .project-field {
    grid-template-columns: 1fr;
  }
  .contributor-grid,
  .contribution-entry-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-actions {
    grid-template-columns: 1fr;
  }
  .primary-action-card {
    grid-template-columns: 1fr;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .newsletter-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
@media (max-width: 520px) {
  header h1 {
    font-size: 1.35rem;
  }
  .brand-logo {
    --brand-spacing: 0.34em;
    font-size: 1rem;
  }
  .finalize-next-actions {
    grid-template-columns: 1fr;
  }
  .header-controls {
    gap: 0.4rem;
  }
  .country-selector {
    max-width: 7.5rem;
  }
  .overview-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
  .overview-section {
    grid-template-columns: 1fr;
  }
  .overview-section > .table-toolbar {
    grid-column: 1;
    margin-top: 0.75rem;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-input-row {
    grid-template-columns: 1fr;
  }
  .home-hero {
    margin-bottom: 1.5rem;
  }
  .benefits-section {
    margin-top: 2rem;
  }
  .home-action-card {
    min-height: auto;
  }
  .overview-heading .step-guidance {
    text-align: left;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid > div:nth-child(1),
  .form-grid > div:nth-child(2),
  .form-grid > div:nth-child(5) {
    grid-column: 1 / -1;
  }
  .contributor-grid,
  .contribution-entry-grid {
    grid-template-columns: 1fr;
  }
  .add-row-button {
    width: 100%;
  }
  .workflow-actions {
    align-items: stretch;
  }
  .report-status {
    width: 100%;
    text-align: center;
  }
  #next-step {
    width: 100%;
  }
  .table-scroll {
    max-height: 18rem;
  }
  table#items-table {
    min-width: 46rem;
  }
  .finalize-modal {
    padding: 1.1rem;
  }
  footer {
    padding: 1.25rem 1rem;
  }
}
@media (max-width: 420px) {
  header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .header-controls {
    width: 100%;
    justify-content: space-between;
  }
  .country-selector {
    max-width: 8.5rem;
  }
  main {
    margin: 0.5rem;
    padding: 0.5rem;
  }
  .workflow-card {
    padding: 0.75rem;
  }
}
/* Header controls -------------------------------------------------------- */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin: 0;
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.country-selector {
  width: 12rem;
  height: 2.4rem;
  min-height: 2.4rem;
  padding: 0.3rem 1.9rem 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 0.82rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lang-switcher [data-lang] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: white;
  cursor: pointer;
}
.lang-switcher [data-lang].active {
  background: white;
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.lang-switcher [data-lang][hidden] {
  display: none;
}
.lang-switcher [data-lang] svg {
  display: block;
  width: 1.15rem;
  height: auto;
}
/* Footer ----------------------------------------------------------------- */
footer {
  margin-top: 2rem;
  padding: 2rem 2rem 1.25rem;
  border-top: 1px solid #dbeafe;
  background: #f8fafc;
  color: #374151;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 1.15fr 0.75fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.875rem;
}
.footer-section h3 {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: 0.95rem;
}
.footer-section p {
  margin: 0;
  line-height: 1.55;
}
.footer-links {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-section p + .footer-links {
  margin-top: 0.75rem;
}
.footer-links a {
  color: #2563eb;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.footer-bottom {
  max-width: 1200px;
  margin: 1.75rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #dbe3ef;
  color: #64748b;
  font-size: 0.8rem;
}
.footer-bottom p {
  margin: 0;
}
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
