:root {
  --taste-ink: #0b1f33;
  --taste-ink-soft: #1f3a56;
  --taste-paper: #f3f6f8;
  --taste-panel: #ffffff;
  --taste-line: #c9d3dc;
  --taste-muted: #52677b;
  --taste-red: #b83b32;
  --taste-green: #2e6855;
  --taste-shadow: 0 14px 34px rgba(11, 31, 51, .08);
}

* { box-sizing: border-box; }

html { background: var(--taste-paper); }

body {
  background: var(--taste-paper) !important;
  color: var(--taste-ink) !important;
  font-family: "Noto Sans", system-ui, sans-serif !important;
  letter-spacing: .005em;
}

body::before {
  content: "";
  display: block;
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  background: var(--taste-red);
  z-index: 100;
  pointer-events: none;
}

nav,
header {
  background: var(--taste-ink) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.2) !important;
  box-shadow: 0 8px 24px rgba(11, 31, 51, .12);
}

nav > div,
header > div {
  min-height: 72px !important;
}

nav > div > div:first-child,
header > div > div:first-child {
  color: #fff !important;
  letter-spacing: -.02em;
}

nav a,
header a,
nav button,
header button {
  color: #e5edf4 !important;
  font-weight: 700 !important;
  letter-spacing: .035em;
  opacity: 1 !important;
}

nav a:hover,
header a:hover,
nav button:hover,
header button:hover {
  color: #fff !important;
}

nav a.text-on-surface-variant,
header a.text-on-surface-variant {
  color: #d9e5ee !important;
}

nav button.text-primary,
header button.text-primary {
  color: #fff !important;
}

nav button,
header button {
  border-color: rgba(255,255,255,.55) !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: transparent !important;
  text-indent: 0 !important;
}

h1,
h2,
h3,
h4 {
  color: var(--taste-ink) !important;
  letter-spacing: -.035em;
}

p,
li,
label,
span {
  color: inherit;
}

a,
button,
input,
textarea {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

button:active,
a:active {
  transform: translateY(1px);
}

input,
textarea {
  border-radius: 0 !important;
  border-color: var(--taste-line) !important;
  background: #fbfcfd !important;
  color: var(--taste-ink) !important;
}

input:focus,
textarea:focus {
  border-color: var(--taste-ink) !important;
  box-shadow: 0 0 0 2px rgba(11,31,51,.14) !important;
  outline: none !important;
}

.bg-primary,
.bg-primary-container {
  background: var(--taste-ink) !important;
}

.text-primary,
.text-on-surface,
.text-on-surface-variant {
  color: var(--taste-ink) !important;
}

.text-on-surface-variant {
  color: var(--taste-muted) !important;
}

.border-primary,
.border-outline,
.border-outline-variant {
  border-color: var(--taste-line) !important;
}

.rounded,
.rounded-lg,
.rounded-xl,
.rounded-DEFAULT,
.rounded-full {
  border-radius: 0 !important;
}

.shadow-sm,
.shadow-md,
.shadow-[0_4px_20px_rgba(4,22,50,0.02)],
.shadow-[0_8px_30px_rgba(4,22,50,0.04)] {
  box-shadow: var(--taste-shadow) !important;
}

body:has(#email-action) main > section:first-of-type {
  background: var(--taste-ink) !important;
  color: #fff !important;
  border-bottom: 8px solid var(--taste-red);
  padding-top: 88px !important;
  padding-bottom: 88px !important;
}

body:has(#email-action) main > section:first-of-type h1,
body:has(#email-action) main > section:first-of-type h2 {
  color: #fff !important;
}

body:has(#email-action) main > section:first-of-type p {
  color: #cbd8e4 !important;
  max-width: 58ch;
}

body:has(#email-action) main > section:first-of-type a {
  background: var(--taste-red) !important;
  color: #fff !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

body:has(#email-action) main > section:first-of-type > div > div:last-child > div {
  background: #f8fafc !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  border-radius: 0 !important;
  box-shadow: 18px 18px 0 rgba(255,255,255,.08) !important;
}

body:has(#email-action) main > section:nth-of-type(2) {
  padding-top: 28px;
  padding-bottom: 12px;
}

body:has(#email-action) main > section:nth-of-type(2) > div > div {
  background: var(--taste-panel) !important;
  border: 0 !important;
  border-left: 4px solid var(--taste-ink) !important;
  border-radius: 0 !important;
  box-shadow: var(--taste-shadow) !important;
}

body:has(#email-action) main > section:nth-of-type(2) > div > div:nth-child(1) {
  border-left-color: var(--taste-red) !important;
}

body:has(#email-action) main > section:nth-of-type(2) > div > div:nth-child(2) {
  border-left-color: var(--taste-ink-soft) !important;
}

body:has(#email-action) main > section:nth-of-type(2) > div > div:nth-child(3) {
  border-left-color: var(--taste-green) !important;
}

body:has(#email-action) #email-action {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--taste-line) !important;
  border-radius: 0 !important;
  padding-top: 72px !important;
}

body:has(#email-action) #email-action > div {
  background: var(--taste-panel) !important;
  border: 1px solid var(--taste-line) !important;
  border-top: 5px solid var(--taste-red) !important;
  border-radius: 0 !important;
  box-shadow: var(--taste-shadow) !important;
}

body:has(#email-action) #email-action h3,
body:has(#email-action) main > section:nth-of-type(4) h3 {
  font-weight: 900 !important;
  letter-spacing: -.05em;
}

body:has(#email-action) #email-action textarea {
  min-height: 320px;
  line-height: 1.7;
}

body:has(#email-action) #email-action button[data-email] {
  background: var(--taste-ink) !important;
  border-color: var(--taste-ink) !important;
  border-radius: 0 !important;
}

body:has(#email-action) #email-action button[data-copy] {
  border-radius: 0 !important;
  border-color: var(--taste-ink) !important;
}

body:has(#email-action) main > section:nth-of-type(4) {
  border-top: 1px solid var(--taste-line);
  padding-top: 72px;
}

body:has(#email-action) main > section:nth-of-type(4) > div > div:last-child > div {
  background: var(--taste-panel) !important;
  border: 1px solid var(--taste-line) !important;
  border-top: 3px solid var(--taste-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body:has(#email-action) main > section:nth-of-type(4) > div > div:last-child > div:first-child {
  border-top-color: var(--taste-red) !important;
}

body:has(#email-action) main > section:nth-of-type(4) > div > div:last-child > div:hover {
  box-shadow: var(--taste-shadow) !important;
  transform: translateY(-2px);
}

body:has(#email-action) main > section:nth-of-type(4) [data-route] {
  cursor: pointer;
}

body:not(:has(#email-action)) main > section:first-child {
  position: relative;
}

body:not(:has(#email-action)) main > section:first-child h1 {
  border-left: 6px solid var(--taste-red);
  padding-left: 20px;
  font-weight: 900 !important;
}

body:not(:has(#email-action)) main > section:nth-child(2) > div > div,
body:not(:has(#email-action)) main > section:nth-child(2) > div > section,
body:not(:has(#email-action)) main > section:nth-child(2) > section {
  border-radius: 0 !important;
}

body:not(:has(#email-action)) main > section:nth-child(2) [class*="bg-surface-container-lowest"],
body:not(:has(#email-action)) main > section:nth-child(2) [class*="bg-surface-container"] {
  background: var(--taste-panel) !important;
  border-color: var(--taste-line) !important;
  box-shadow: var(--taste-shadow) !important;
}

body:not(:has(#email-action)) main > section:nth-child(2) [class*="bg-surface-container-lowest"]:first-child,
body:not(:has(#email-action)) main > section:nth-child(2) [class*="bg-surface-container"]:first-child {
  border-top: 4px solid var(--taste-red) !important;
}

body:not(:has(#email-action)) main textarea {
  min-height: 360px;
  line-height: 1.75;
}

body:not(:has(#email-action)) main button[data-email] {
  background: var(--taste-ink) !important;
  border-color: var(--taste-ink) !important;
  border-radius: 0 !important;
}

body:not(:has(#email-action)) main button[data-copy],
body:not(:has(#email-action)) main button[data-official-petition] {
  border-radius: 0 !important;
  border-color: var(--taste-ink) !important;
}

body:not(:has(#email-action)) main > section:last-of-type {
  border-top: 1px solid var(--taste-line) !important;
}

body:not(:has(#email-action)) footer,
body:has(#email-action) footer {
  background: var(--taste-ink) !important;
  color: #dbe5ee !important;
  border-top: 5px solid var(--taste-red) !important;
}

body:not(:has(#email-action)) footer *,
body:has(#email-action) footer * {
  color: inherit !important;
}

@media (max-width: 767px) {
  body::before { height: 3px; }
  nav > div,
  header > div { min-height: 64px !important; }
  body:has(#email-action) main > section:first-of-type {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  body:has(#email-action) main > section:first-of-type h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem) !important;
    line-height: .98 !important;
  }
  body:has(#email-action) main > section:first-of-type > div > div:last-child > div {
    box-shadow: 10px 10px 0 rgba(255,255,255,.08) !important;
  }
  body:has(#email-action) #email-action {
    padding-top: 48px !important;
  }
  body:not(:has(#email-action)) main > section:first-child h1 {
    padding-left: 14px;
    border-left-width: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
