/* Cookie consent for Google Ads (ADR 0093). "No cookies" and "Allow all"
   share one style and width: refusing must be as easy as accepting. The
   panel does not block the page and nothing loads before a choice. */
.consent {
  position: fixed;
  z-index: 50;
  right: var(--space-3);
  bottom: var(--space-3);
  left: var(--space-3);
  display: grid;
  gap: var(--space-3);
  max-height: calc(100vh - var(--space-6));
  overflow-y: auto;
  padding: var(--space-5);
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
  border: var(--size-hairline) solid var(--color-border-strong);
  border-top: var(--size-rule) solid var(--color-energy-solar);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.consent[hidden],
.consent-options[hidden],
.consent-actions [hidden] {
  display: none;
}
.consent-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
}
.consent-text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-secondary);
}
.consent-text a {
  color: var(--color-text-primary);
}
.consent-options {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-3) 0 0;
  border: 0;
  border-top: var(--size-hairline) solid var(--color-border);
}
.consent-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  font-size: var(--text-sm);
  line-height: 1.45;
  cursor: pointer;
}
.consent-option input {
  width: var(--size-icon);
  height: var(--size-icon);
  margin: var(--space-1) 0 0;
  accent-color: var(--color-bg-action);
}
.consent-option strong {
  display: block;
  color: var(--color-text-primary);
}
.consent-option span span {
  color: var(--color-text-secondary);
}
.consent-option:has(input:disabled) {
  cursor: default;
}
.consent-option:has(input:disabled) strong {
  color: var(--color-text-tertiary);
}
.consent-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}
.consent-actions .button {
  width: 100%;
}
.consent-choose {
  align-self: flex-start;
  min-height: var(--size-control);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
@media (min-width: 560px) {
  .consent {
    right: auto;
    bottom: var(--space-5);
    left: var(--space-5);
    width: min(var(--measure-lede), calc(100% - var(--space-10)));
    padding: var(--space-6);
  }
  .consent-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
  }
  .consent-actions .button {
    width: auto;
    min-width: var(--size-col-xs);
  }
  .consent-choose,
  .consent-save {
    margin-right: auto;
  }
  .consent-actions .consent-save {
    min-width: 0;
  }
}
.portal-footer-button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--color-text-secondary);
  text-align: left;
  cursor: pointer;
}
.portal-footer-button:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}
