/* DATA OVEN consent controls, versioned for deployment cache safety. */
.do-cookie-banner {
  position: fixed;
  z-index: 920;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-top: 1px solid rgba(11, 13, 16, .14);
  background: #fffaf1;
  padding: .8rem max(1rem, calc((100vw - 90rem) / 2));
  color: #0b0d10;
  box-shadow: 0 -12px 38px rgba(11, 13, 16, .12);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.do-cookie-banner[hidden] { display: none !important; }
.do-cookie-banner p {
  max-width: 63rem;
  margin: 0;
  color: rgba(11, 13, 16, .72);
  font-size: .74rem;
  line-height: 1.55;
}
.do-cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .55rem;
}
.do-cookie-button {
  min-height: 44px;
  border: 1px solid rgba(11, 13, 16, .22);
  border-radius: 5px;
  padding: .65rem .9rem;
  background: #fff;
  color: #0b0d10;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.do-cookie-button:hover { transform: translateY(-1px); }
.do-cookie-button:focus-visible,
.do-cookie-settings:focus-visible,
.do-cookie-policy-link:focus-visible {
  outline: 3px solid rgba(255, 90, 0, .3);
  outline-offset: 2px;
}
.do-cookie-button--accept {
  border-color: #ff5a00;
  background: #ff5a00;
  color: #fff;
}
.do-cookie-button--accept:hover { border-color: #d94d00; background: #d94d00; }
.do-cookie-button--settings,
.do-cookie-button--necessary,
.do-cookie-button--save { background: transparent; }
.do-cookie-button--settings:hover,
.do-cookie-button--necessary:hover,
.do-cookie-button--save:hover { border-color: #ff5a00; background: #fff3e8; }
.do-cookie-settings {
  position: fixed;
  z-index: 650;
  left: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(11, 13, 16, .16);
  border-radius: 5px;
  padding: 0;
  background: #fffaf1;
  color: #ff5a00;
  box-shadow: 0 12px 34px rgba(11, 13, 16, .16);
  cursor: pointer;
  font: 800 .68rem/1 Inter, system-ui, sans-serif;
}
.do-cookie-settings:hover { background: #fff3dc; }
.do-cookie-settings svg { width: 1.3rem; height: 1.3rem; }

.do-cookie-preferences {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(4, 5, 7, .74);
  padding: 1rem;
  font-family: Inter, system-ui, sans-serif;
}
.do-cookie-preferences[hidden] { display: none !important; }
.do-cookie-preferences__card {
  width: min(34rem, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border: 1px solid rgba(255, 90, 0, .3);
  border-radius: 8px;
  background: #fffaf1;
  padding: 1rem;
  color: #0b0d10;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .45);
}
.do-cookie-preferences__card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.do-cookie-preferences__card > header small {
  color: #c64900;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.do-cookie-preferences__card h2 { margin: .15rem 0 0; font-size: 1.35rem; }
.do-cookie-preferences__card > header button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(11, 13, 16, .12);
  background: transparent;
  font-size: 1.4rem;
}
.do-cookie-preferences__card > p {
  margin: .8rem 0;
  color: rgba(11, 13, 16, .64);
  font-size: .75rem;
  line-height: 1.6;
}
.do-cookie-choice {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(11, 13, 16, .1);
  padding: .8rem 0;
}
.do-cookie-choice span { display: flex; flex-direction: column; }
.do-cookie-choice b { font-size: .8rem; }
.do-cookie-choice small {
  max-width: 25rem;
  margin-top: .18rem;
  color: rgba(11, 13, 16, .55);
  font-size: .65rem;
  line-height: 1.45;
}
.do-cookie-choice strong { flex: 0 0 auto; color: #167348; font-size: .7rem; }
.do-cookie-choice input { flex: 0 0 auto; width: 1.4rem; height: 1.4rem; accent-color: #ff5a00; }
.do-cookie-category-note {
  border: 1px solid rgba(11, 13, 16, .08);
  background: #fff;
  padding: .65rem;
  font-size: .65rem !important;
}
.do-cookie-preferences__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem;
  margin-top: .85rem;
}
.do-cookie-policy-link {
  display: inline-block;
  margin-top: .85rem;
  color: #c64900;
  font-size: .68rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.do-cookie-preferences-open { overflow: hidden; }
.do-cookie-toast {
  position: fixed;
  z-index: 1001;
  left: 50%;
  bottom: 4.5rem;
  max-width: calc(100vw - 2rem);
  transform: translateX(-50%);
  border-radius: 5px;
  background: #0b0d10;
  padding: .7rem 1rem;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
  font: 700 .72rem/1.4 Inter, system-ui, sans-serif;
  text-align: center;
}

body:has(.do-cookie-banner:not([hidden])) .project-form-shell { padding-bottom: 6.5rem; }
body:has(.do-cookie-banner:not([hidden])) .advisor-launcher { bottom: 7.5rem; }

@media (min-width: 768px) and (max-width: 1100px) {
  body:has(.do-cookie-banner:not([hidden])) .advisor-launcher { bottom: 11rem; }
}

@media (max-width: 767px) {
  .do-cookie-banner {
    display: grid;
    gap: .65rem;
    padding: .75rem max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
  }
  .do-cookie-banner p { max-width: none; font-size: .68rem; line-height: 1.48; }
  .do-cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .do-cookie-banner__actions .do-cookie-button { width: 100%; }
  .do-cookie-preferences { padding: .6rem; }
  .do-cookie-preferences__card { max-height: calc(100dvh - 1.2rem); padding: .85rem; }
  .do-cookie-preferences__actions { grid-template-columns: 1fr; }
  .do-cookie-settings {
    left: max(.75rem, env(safe-area-inset-left));
    bottom: max(.75rem, env(safe-area-inset-bottom));
  }
  body:has(.do-cookie-banner:not([hidden])) .advisor-launcher { bottom: 10rem; }
  body:has(.do-cookie-banner:not([hidden])) .project-form-shell { padding-bottom: 11.5rem; }
  body:has(.project-form-shell input:focus) .do-cookie-settings,
  body:has(.project-form-shell textarea:focus) .do-cookie-settings,
  body:has(.project-form-shell select:focus) .do-cookie-settings {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 390px) {
  body:has(.do-cookie-banner:not([hidden])) .advisor-launcher { bottom: 12rem; }
  body:has(.do-cookie-banner:not([hidden])) .project-form-shell { padding-bottom: 13.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .do-cookie-button { transition: none; }
}

.static-page article { width: 100%; max-width: 42rem; }
.static-page article h2 { margin: 2rem 0 .65rem; font-size: 1.25rem; line-height: 1.3; }
.static-page article p { margin: .7rem 0 !important; }
.static-page article a { color: #d94f00; text-underline-offset: 3px; }
