:root {
  color-scheme: light;
  --wg-bg: #f5f7fb;
  --wg-surface: #ffffff;
  --wg-text: #172036;
  --wg-muted: #5c667a;
  --wg-border: #d7ddea;
  --wg-accent: #2859d6;
  --wg-accent-dark: #1e43a4;
  --wg-danger: #a62828;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wg-bg);
  color: var(--wg-text);
}

a { color: var(--wg-accent-dark); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.wg-skip-link {
  position: fixed;
  z-index: 10;
  left: 1rem;
  top: -5rem;
  padding: .75rem 1rem;
  background: var(--wg-text);
  color: white;
}
.wg-skip-link:focus { top: 1rem; }

.wg-page {
  width: min(100% - 2rem, 74rem);
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.wg-brand,
.wg-context,
.wg-navigation,
main,
.wg-attribution {
  background: var(--wg-surface);
  border: 1px solid var(--wg-border);
}

.wg-brand {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  padding: .75rem 1rem;
  border-radius: .75rem .75rem 0 0;
}
.wg-brand p { margin: 0; font-size: 1.25rem; font-weight: 750; }
.wg-brand img { display: block; max-width: min(18rem, 100%); max-height: 3rem; object-fit: contain; }

.wg-context { padding: .65rem 1rem 0; border-top: 0; border-bottom: 0; }
.wg-context p { margin: 0; color: var(--wg-muted); font-size: .9rem; }

.wg-navigation { padding: .65rem 1rem; border-top: 0; }
.wg-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
}
.wg-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  border-radius: .45rem;
  text-decoration: none;
  font-weight: 650;
}
.wg-navigation a[aria-current="page"] { background: #e4ebff; color: #153a9a; }

main { padding: clamp(1rem, 3vw, 2rem); border-top: 0; }
h1 { margin-top: 0; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.15; }
h2 { margin-top: 2rem; font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
.wg-funnel-domain-hostname { overflow-wrap: anywhere; }
p, li, dd, dt, label, input, select, textarea, button { font-size: 1rem; }

section {
  margin-block: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--wg-border);
  border-radius: .6rem;
}

form { display: grid; gap: .85rem; max-width: 42rem; margin-block: 1rem; }
label { display: grid; gap: .3rem; font-weight: 650; }
input, select, textarea, button {
  min-height: 2.75rem;
  padding: .6rem .75rem;
  border: 1px solid #aab4c6;
  border-radius: .4rem;
  background: white;
  color: var(--wg-text);
}
textarea { min-height: 7rem; resize: vertical; }
button {
  width: fit-content;
  cursor: pointer;
  border-color: var(--wg-accent);
  background: var(--wg-accent);
  color: white;
  font-weight: 700;
}
button:hover { background: var(--wg-accent-dark); }

.wg-confirmation {
  max-width: 42rem;
  margin-block: 1rem;
  padding: .75rem;
  border: 1px solid #e8b0b0;
  border-radius: .5rem;
  background: #fff8f8;
}
.wg-confirmation summary { cursor: pointer; font-weight: 750; color: var(--wg-danger); }
.wg-confirmation form { margin-bottom: 0; }
.wg-confirmation button { background: var(--wg-danger); border-color: var(--wg-danger); }

[role="status"], [role="alert"] {
  padding: .8rem 1rem;
  border-left: .3rem solid var(--wg-accent);
  background: #edf2ff;
}
[role="alert"] { border-left-color: var(--wg-danger); background: #fff1f1; }

.wg-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem; border-bottom: 1px solid var(--wg-border); text-align: left; vertical-align: top; }
th { white-space: nowrap; }
dl { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr); gap: .55rem 1rem; }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
code { overflow-wrap: anywhere; }

.wg-support-details { margin-block: .75rem; }
.wg-support-details summary { color: var(--wg-muted); cursor: pointer; }

.wg-attribution {
  padding: .8rem 1rem;
  border-top: 0;
  border-radius: 0 0 .75rem .75rem;
  color: var(--wg-muted);
}

@media (max-width: 42rem) {
  .wg-page { width: min(100% - 1rem, 74rem); padding-top: .5rem; }
  .wg-navigation ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wg-navigation a { width: 100%; }
  main { padding: 1rem; }
  section { padding: .75rem; }
  dl { grid-template-columns: 1fr; gap: .15rem; }
  dd { margin-bottom: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
