@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #fafaf7;
  --field: #ffffff;
  --ink: #22221f;
  --secondary: #62625a;
  --border: #85857a;
  --divider: #d9d9d0;
  --action: #e3c54f;
  --action-hover: #d6b537;
  --action-ink: #22221f;
  --action-border: #715a08;
  --focus: #715a08;
  --quiet-hover: #ecece5;
  --selected: #f4edcf;
  --error: #a43e36;
  --shadow: #22221f0c;
  --dialog-shadow: #22221f24;
  --backdrop: #18181340;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #1d1d1a;
    --field: #252521;
    --ink: #f6f6ee;
    --secondary: #b9b9ae;
    --border: #8d8d80;
    --divider: #45453d;
    --focus: #e3c54f;
    --quiet-hover: #33332d;
    --selected: #383320;
    --error: #f2b28e;
    --shadow: #00000020;
    --dialog-shadow: #00000055;
    --backdrop: #00000040;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

html:has(.info-dialog[open]) {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

button,
input,
select,
textarea,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
  flex-shrink: 0;
}

#wtd-app {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-right: var(--safe-right);
  padding-left: var(--safe-left);
}

.skip-link {
  position: absolute;
  z-index: 50;
  top: 12px;
  left: 16px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--field);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 76px;
  gap: 8px 24px;
  padding: calc(16px + var(--safe-top)) 32px 16px;
}

.preview-notice {
  margin: 0;
  padding: 0 16px;
  color: var(--secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}

.site-header nav,
.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}

.site-header button,
.site-header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  font-size: 0.875rem;
  line-height: 1.428571;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.site-header button:hover,
.site-header a:hover {
  background: var(--quiet-hover);
}

.site-header .join-button,
.site-header [data-action="join"],
.site-header [id*="join"],
.site-header .account-entry {
  border-color: var(--border);
  padding-right: 16px;
  padding-left: 16px;
}

.main {
  width: calc(100% - 64px);
  max-width: 45rem;
  margin-right: auto;
  margin-left: auto;
  padding-top: 32px;
  padding-bottom: 88px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.brand-group {
  width: 100%;
  text-align: center;
}

.brand-group h1 {
  margin: 0 auto;
  line-height: 1;
}

.wordmark {
  display: block;
  width: 26.25rem;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  color: var(--ink);
}

.wordmark-svg {
  display: block;
  width: 100%;
  height: auto;
}

.slogan {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.444444;
}

.description {
  max-width: 35rem;
  margin: 8px auto 0;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.search-section {
  width: 100%;
  margin-top: 32px;
}

.search-form {
  position: relative;
  margin: 0;
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.428571;
}

.search-row {
  display: flex;
  align-items: center;
  min-height: 4rem;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--field);
  box-shadow: 0 5px 16px var(--shadow);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.search-row:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px var(--page), 0 0 0 5px var(--focus);
}

.input-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 3rem;
  gap: 12px;
  padding-left: 10px;
  flex: 1;
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--secondary);
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 1.125rem;
  line-height: 1.444444;
  appearance: none;
}

.input-wrap input::placeholder {
  opacity: 1;
  color: var(--secondary);
}

.input-wrap input::-webkit-search-cancel-button,
.input-wrap input::-webkit-search-decoration {
  appearance: none;
}

.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  color: var(--secondary);
  background: transparent;
  flex-shrink: 0;
  transition: color 140ms ease, background-color 140ms ease;
}

.search-clear:hover {
  color: var(--ink);
  background: var(--quiet-hover);
}

.search-clear svg {
  width: 18px;
  height: 18px;
}

.search-submit,
.wd-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--action-ink);
  background: var(--action);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  transition: background-color 140ms ease, transform 140ms ease;
}

.search-submit {
  width: 7rem;
  border-color: var(--action-border);
  flex-shrink: 0;
}

.search-status {
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.428571;
  overflow-wrap: anywhere;
}

.search-status:empty {
  margin: 0;
}

.search-submit:hover,
.wd-primary-button:hover {
  background: var(--action-hover);
}

.search-submit:active,
.wd-primary-button:active {
  transform: translateY(1px);
  transition-duration: 120ms;
}

.suggestions {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(20rem, 50svh);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  background: var(--field);
  box-shadow: 0 12px 28px var(--dialog-shadow);
}

.wd-suggestion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  overflow-wrap: anywhere;
  transition: background-color 140ms ease;
}

.wd-suggestion:hover,
.wd-suggestion[aria-selected="true"] {
  background: var(--quiet-hover);
}

.wd-suggestion-name {
  font-weight: 600;
}

.wd-suggestion-detail {
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

.shortcuts {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
}

.shortcuts button,
.shortcuts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  font-size: 0.9375rem;
  line-height: 1.466667;
  text-decoration: none;
  transition: background-color 140ms ease;
}

.shortcuts button:hover,
.shortcuts a:hover {
  background: var(--quiet-hover);
}

.shortcuts svg {
  width: 18px;
  height: 18px;
}

.reassurance {
  margin: 20px 0 0;
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.428571;
  text-align: center;
}

.reassurance p {
  margin: 0;
}

.reassurance p + p {
  margin-top: 4px;
}

.inline-link {
  position: relative;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  vertical-align: baseline;
}

.inline-link:hover {
  color: var(--ink);
}

.no-script {
  margin: 20px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--divider);
  color: var(--secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 64px;
  gap: 4px 28px;
  padding: 12px 32px calc(12px + var(--safe-bottom));
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.428571;
}

.site-footer p {
  margin: 0;
}

.site-footer nav,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.site-footer button,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 0;
  border: 0;
  color: var(--secondary);
  background: transparent;
  font-size: 0.875rem;
  line-height: 1.428571;
  text-decoration: none;
}

.site-footer button:hover,
.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

#wtd-app.has-workspace .main {
  justify-content: flex-start;
  padding-top: 20px;
  padding-bottom: 48px;
}

#wtd-app.has-workspace .wordmark {
  width: 13.125rem;
}

#wtd-app.has-workspace .slogan,
#wtd-app.has-workspace .description {
  display: none;
}

#wtd-app.has-workspace .search-section {
  margin-top: 28px;
}

.workspace {
  width: 100%;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  overflow-wrap: anywhere;
}

.workspace:not([hidden]),
.info-dialog[open] {
  animation: wtd-panel-reveal 160ms ease-out both;
}

.wd-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.workspace h2,
.info-dialog h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.333333;
}

.workspace h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.wd-kicker,
.wd-result-type {
  display: block;
  margin: 0 0 6px;
  color: var(--secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.wd-muted,
.wd-results-meta,
.wd-result-detail,
.wd-detail-meta {
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.wd-result-list,
.wd-giving-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.wd-result-row,
.wd-giving-item {
  border-top: 1px solid var(--divider);
}

.wd-result-main {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 22px 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  overflow-wrap: anywhere;
}

.wd-result-main:hover .wd-result-name {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.wd-result-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.wd-result-detail,
.wd-result-description {
  display: block;
  margin-top: 6px;
}

.wd-result-description,
.wd-detail-description {
  max-width: 40rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.wd-detail-description {
  margin: 16px 0 0;
}

.wd-empty-state,
.wd-error-state {
  padding: 16px 0;
}

.wd-empty-state p,
.wd-error-state p {
  max-width: 35rem;
  margin: 12px 0 0;
}

.wd-inline-actions,
.wd-giving-actions,
.wd-dialog-actions,
.wd-account-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
}

.wd-secondary-button,
.wd-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  line-height: 1.4;
  transition: background-color 140ms ease;
}

.wd-secondary-button:hover,
.wd-text-button:hover {
  background: var(--quiet-hover);
}

.wd-text-button {
  padding-right: 8px;
  padding-left: 8px;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wd-text-button[aria-pressed="true"] {
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;
}

.wd-demo-note {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--border);
  color: var(--secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.wd-support-form,
.wd-edit-form {
  max-width: 35rem;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--divider);
}

.wd-support-form > h3 {
  margin-bottom: 18px;
}

.wd-field {
  display: block;
  margin-bottom: 22px;
}

.wd-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.wd-amount-input {
  width: 100%;
  max-width: 12.5rem;
  min-height: 3rem;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink);
  background: var(--field);
  font-size: 1.125rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.wd-frequency {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.wd-frequency legend {
  margin-bottom: 8px;
  padding: 0;
  font-weight: 600;
}

.wd-frequency-choice {
  display: inline-flex;
  align-items: center;
  flex: 1 1 11rem;
  min-height: 3rem;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}

.wd-frequency-choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--selected);
}

.wd-frequency-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--focus);
  flex-shrink: 0;
}

.wd-fee-summary {
  display: block;
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
  font-size: 1rem;
  line-height: 1.5;
}

.wd-fee-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 5px 0;
}

.wd-fee-summary dt,
.wd-fee-summary dd {
  margin: 0;
}

.wd-fee-summary dd {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.wd-fee-summary .wd-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
  color: var(--ink);
  font-weight: 600;
}

.wd-form-error {
  margin: 12px 0;
  color: var(--error);
  font-size: 1rem;
  line-height: 1.5;
}

.wd-form-error:empty {
  margin: 0;
}

.wd-confirmation {
  margin: 18px 0;
  padding-left: 14px;
  border-left: 3px solid var(--ink);
}

.wd-giving-item {
  padding: 22px 0;
}

.wd-giving-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.wd-status-label {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.info-dialog {
  width: calc(100% - 32px);
  max-width: 35rem;
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--ink);
  background: var(--field);
  box-shadow: 0 18px 60px var(--dialog-shadow);
  font: inherit;
}

.info-dialog::backdrop {
  background: var(--backdrop);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dialog-header h2 {
  min-width: 0;
  margin-top: 6px;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  color: var(--secondary);
  background: transparent;
  transition: background-color 140ms ease;
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--quiet-hover);
}

.dialog-close svg {
  width: 20px;
  height: 20px;
}

.dialog-body,
.wd-info-content {
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dialog-body p,
.wd-info-content p {
  margin: 0 0 16px;
}

.dialog-body p:last-child,
.wd-info-content p:last-child {
  margin-bottom: 0;
}

.wd-info-list {
  margin: 0;
  padding-left: 22px;
}

.wd-info-list li + li {
  margin-top: 12px;
}

.wd-receipt {
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
}

/* A single opacity reveal leaves the lettering sharp and the layout completely still. */
#wtd-app.is-arriving > :is(.site-header, .main, .site-footer) {
  animation: wtd-home-fallback 1400ms cubic-bezier(.4, 0, .2, 1) both;
}

#wtd-app.is-arriving[data-opening="pending"] > :is(.site-header, .main, .site-footer) {
  animation: none;
  opacity: 0;
}

#wtd-app.is-opening > :is(.site-header, .main, .site-footer) {
  animation: wtd-home-arrive 1400ms cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes wtd-home-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wtd-home-fallback {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wtd-panel-reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .site-header {
    padding-right: 24px;
    padding-left: 24px;
  }

  .main {
    width: calc(100% - 48px);
    padding-top: 28px;
    padding-bottom: 64px;
  }

  .site-footer {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 64px;
    padding: calc(10px + var(--safe-top)) 16px 10px;
    gap: 8px 14px;
  }

  .site-header nav,
  .header-actions {
    gap: 8px;
  }

  .site-header button,
  .site-header a {
    padding-right: 9px;
    padding-left: 9px;
  }

  .main {
    width: calc(100% - 32px);
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .wordmark {
    width: 17.5rem;
  }

  .slogan {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .description {
    max-width: 28rem;
    margin-top: 8px;
    font-size: 1rem;
  }

  .search-section {
    margin-top: 24px;
  }

  .search-row {
    min-height: 3.5rem;
    padding: 3px;
    border-radius: 12px;
  }

  .input-wrap {
    min-height: 44px;
    gap: 10px;
    padding-left: 10px;
  }

  .input-wrap input {
    min-height: 44px;
    font-size: 1.125rem;
    line-height: 1.444444;
  }

  .shortcuts {
    gap: 6px 6px;
    margin-top: 20px;
  }

  .shortcuts button,
  .shortcuts a {
    gap: 7px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .site-footer {
    justify-content: center;
    min-height: 64px;
    padding: 10px 16px calc(10px + var(--safe-bottom));
    text-align: center;
  }

  .site-footer nav,
  .footer-links {
    justify-content: center;
    gap: 4px 20px;
  }

  .site-footer p {
    width: 100%;
  }

  #wtd-app.has-workspace .wordmark {
    width: 12.5rem;
  }

  #wtd-app.has-workspace .search-section {
    margin-top: 22px;
  }

  .workspace {
    margin-top: 28px;
    padding-top: 20px;
  }

  .workspace h2,
  .info-dialog h2 {
    font-size: 1.5rem;
  }

  .info-dialog {
    padding: 20px;
  }
}

@media (max-width: 479px) {
  .main {
    width: calc(100% - 32px);
  }

  .search-row {
    flex-wrap: wrap;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 8px;
  }

  .search-row:focus-within {
    border-color: transparent;
    box-shadow: none;
  }

  .input-wrap {
    width: 100%;
    min-height: 3.5rem;
    flex-basis: 100%;
    gap: 10px;
    padding: 5px 8px 5px 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--field);
    box-shadow: 0 5px 16px var(--shadow);
    transition: border-color 140ms ease, box-shadow 140ms ease;
  }

  .input-wrap:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 2px var(--page), 0 0 0 5px var(--focus);
  }

  .search-submit {
    width: 100%;
    min-height: 3rem;
    border-radius: 12px;
  }

  .shortcuts {
    gap: 4px 0;
  }

  .shortcuts button,
  .shortcuts a {
    flex: 1 1 30%;
    flex-direction: column;
    padding: 9px 4px;
    text-align: center;
  }

  .wd-frequency-choice {
    flex-basis: 100%;
  }

  .wd-dialog-actions > button,
  .wd-account-options > button {
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .preview-notice {
    width: 100%;
  }

  .site-header nav,
  .header-actions {
    margin-left: auto;
  }

  .main {
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .input-wrap {
    padding-left: 13px;
    gap: 8px;
  }

  .site-footer nav,
  .footer-links {
    gap: 4px 16px;
  }

}

@media (max-height: 650px) and (min-width: 601px) {
  .main {
    justify-content: flex-start;
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .search-section {
    margin-top: 26px;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .site-header {
    min-height: 64px;
    padding-top: calc(8px + var(--safe-top));
    padding-bottom: 8px;
  }

  .main {
    justify-content: flex-start;
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .wordmark {
    width: 17.5rem;
  }

  .slogan {
    margin-top: 12px;
    font-size: 1rem;
  }

  .description {
    margin-top: 8px;
  }

  .search-section {
    margin-top: 22px;
  }

  .shortcuts {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  #wtd-app.is-arriving .wordmark,
  #wtd-app.is-arriving .slogan,
  #wtd-app.is-arriving .description {
    clip-path: none;
    opacity: 1;
    transform: none;
  }

  #wtd-app.is-arriving > :is(.site-header, .main, .site-footer) {
    opacity: 1 !important;
  }
}

@media (forced-colors: active) {
  :root {
    --page: Canvas;
    --field: Canvas;
    --ink: CanvasText;
    --secondary: CanvasText;
    --border: CanvasText;
    --divider: CanvasText;
    --action: ButtonFace;
    --action-hover: ButtonFace;
    --action-ink: ButtonText;
    --action-border: ButtonText;
    --focus: Highlight;
    --quiet-hover: Canvas;
    --selected: Canvas;
    --error: CanvasText;
    --shadow: transparent;
    --dialog-shadow: transparent;
  }

  .search-submit,
  .wd-primary-button {
    border-color: ButtonText;
  }

  .search-row,
  .input-wrap,
  .suggestions,
  .info-dialog {
    box-shadow: none;
  }

  .search-row:focus-within {
    outline: 3px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }

  .wd-suggestion[aria-selected="true"],
  .wd-frequency-choice:has(input:checked) {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }

  .wordmark {
    forced-color-adjust: auto;
  }
}

@media (forced-colors: active) and (max-width: 479px) {
  .search-row:focus-within {
    outline: none;
  }

  .input-wrap:focus-within {
    border-color: Highlight;
    outline: 3px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }
}

/* A search homepage: the identity, search, and three entry points form one
   small composition. The writing-surface pattern belongs to the background. */
:root {
  --page: #fafafa;
  --field: #ffffff;
  --ink: #242424;
  --secondary: #626262;
  --border: #858585;
  --divider: #dedede;
  --action: #242424;
  --action-hover: #080808;
  --action-ink: #ffffff;
  --action-border: #242424;
  --focus: #181818;
  --quiet-hover: #f0f0f0;
  --selected: #e5e5e5;
  --paper-dot: #bcbcbc5c;
  --brand-ink: #242424;
  --error: #404040;
  --shadow: #0000000c;
  --dialog-shadow: #00000026;
  --backdrop: #00000040;
}

#wtd-app {
  position: relative;
  background-image: radial-gradient(circle, var(--paper-dot) .65px, transparent .85px);
  background-size: 24px 24px;
}

#wtd-app::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 43%, var(--page) 0%, transparent 76%);
}

#wtd-app > * {
  position: relative;
}

#wtd-app > .notebook-field {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#wtd-app.has-notebook-field {
  background-image: none;
}

#wtd-app.has-notebook-field::before {
  background-image: none;
}

#wtd-app.has-notebook-field > .notebook-field {
  display: block;
}

.site-header, .main, .site-footer {
  z-index: 1;
}

#wtd-app > .skip-link {
  position: absolute;
}

#wtd-app > .info-dialog {
  position: fixed;
  inset: 0;
  height: fit-content;
}

.site-header {
  justify-content: flex-end;
  gap: 8px 12px;
}

.site-header #account-entry {
  border: 0;
  border-radius: 999px;
  background: var(--quiet-hover);
  padding: 8px 16px;
}

.main {
  max-width: 40rem;
  padding-top: 24px;
  /* Keep the approved composition above centre after removing the footer. */
  padding-bottom: 184px;
}

.brand-group .wordmark {
  width: 22.5rem;
  max-width: 100%;
  color: var(--brand-ink);
}

.search-section {
  margin-top: 40px;
}

.search-row {
  flex-wrap: wrap;
  justify-content: flex-end;
  border-radius: 2rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.input-wrap {
  flex: 1 1 8rem;
}

.search-submit {
  width: 6rem;
  border-radius: 999px;
}

.shortcuts {
  gap: 8px 10px;
  margin-top: 24px;
}

.shortcuts button {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--quiet-hover);
  font-size: .9375rem;
}

.shortcuts button:hover {
  background: var(--selected);
}

.reassurance {
  display: none;
}

.site-footer {
  justify-content: center;
  gap: 0 28px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.site-footer .preview-notice {
  flex-basis: 100%;
  font-size: .75rem;
  line-height: 1.5;
  text-align: center;
}

#wtd-app.has-workspace .search-label {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
  margin: 0 0 8px;
}

@media (max-width: 600px) {
  .main {
    width: calc(100% - 32px);
    padding-top: 20px;
    padding-bottom: 168px;
  }
  .brand-group .wordmark {
    width: 17.5rem;
  }
  .search-section {
    margin-top: 32px;
  }
  .shortcuts {
    gap: 8px;
    margin-top: 20px;
  }
  .shortcuts button {
    padding: 8px 12px;
  }
  .site-footer {
    gap: 0 20px;
  }
}

@media (max-width: 479px) {
  .search-row {
    flex-wrap: wrap;
    min-height: 4rem;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 2rem;
    background: var(--field);
    box-shadow: 0 2px 8px var(--shadow);
    gap: 6px;
  }
  .search-row:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px var(--page), 0 0 0 6px var(--focus);
  }
  .input-wrap {
    width: auto;
    flex-basis: 8rem;
    min-height: 44px;
    gap: 8px;
    padding: 0 0 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .input-wrap:focus-within {
    box-shadow: none;
  }
  .input-wrap input {
    font-size: 1rem;
  }
  .search-submit {
    width: 5rem;
    min-height: 3rem;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .9375rem;
  }
  .suggestions {
    top: calc(100% + 8px);
  }
  .shortcuts button {
    flex: 0 1 auto;
    padding: 8px 12px;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .main {
    justify-content: flex-start;
    padding-top: 20px;
    padding-bottom: 32px;
  }
  .brand-group .wordmark {
    width: 17.5rem;
  }
  .search-section {
    margin-top: 24px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1e1e1e;
    --field: #282828;
    --ink: #f5f5f5;
    --secondary: #bdbdbd;
    --border: #949494;
    --divider: #444444;
    --action: #f2f2f2;
    --action-hover: #ffffff;
    --action-ink: #202020;
    --action-border: #f2f2f2;
    --focus: #f2f2f2;
    --quiet-hover: #303030;
    --selected: #3a3a3a;
    --paper-dot: #8f8f8f30;
    --brand-ink: #f5f5f5;
    --error: #ededed;
    --shadow: #00000020;
    --dialog-shadow: #00000055;
    --backdrop: #00000066;
  }
}

@media (forced-colors: active) {
  :root {
    --page: Canvas;
    --field: Canvas;
    --ink: CanvasText;
    --secondary: CanvasText;
    --border: CanvasText;
    --action: ButtonFace;
    --action-hover: ButtonFace;
    --action-ink: ButtonText;
    --action-border: ButtonText;
    --focus: Highlight;
    --quiet-hover: Canvas;
    --selected: Canvas;
    --brand-ink: CanvasText;
  }
  #wtd-app, #wtd-app::before { background-image: none; }
  #wtd-app.is-arriving > :is(.site-header, .main, .site-footer) {
    opacity: 1 !important;
    animation: none !important;
  }
  .shortcuts button { border: 1px solid ButtonText; }
}

/* Preserve the approved shortcut response. */
#wtd-app .shortcuts button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#wtd-app .shortcuts button {
  transition: background-color 160ms ease, transform 220ms cubic-bezier(.2, .75, .3, 1.15), box-shadow 220ms ease;
}

#wtd-app .shortcuts button:active {
  transform: translateY(1px);
  transition-duration: 90ms;
}

.wd-ink-bloom {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: currentColor;
  pointer-events: none;
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  #wtd-app .shortcuts button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 7px var(--shadow);
  }
  #wtd-app .shortcuts button:hover:active {
    transform: translateY(1px);
    transition-duration: 90ms;
  }
}

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  #wtd-app :is(.search-submit, .shortcuts button, #account-entry, .search-icon) {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  #wtd-app .wd-ink-bloom {
    display: none !important;
    animation: none !important;
  }
}

/* Google/Chromium's AI Mode edge-glow geometry and tracking, rendered in
   grayscale. Copyright 2025 The Chromium Authors; see LICENSE.chromium.
   Source and retained motion constants are recorded in MOTION-SOURCES.md. */
.wd-google-control {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 999px;
  isolation: isolate;
  --wd-mask-angle: -167deg;
  --wd-gradient-angle: -142deg;
}

.wd-google-control > button {
  position: relative;
  z-index: 1;
}

#wtd-app .search-submit {
  transition: background-color 50ms;
}

#wtd-app .search-submit:active {
  transform: none;
  transition-duration: 50ms;
}

.wd-google-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: .6;
  filter: grayscale(1);
}

.wd-glow-plate {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(.2, 0, 0, 1);
}

.is-glow-hovering .wd-glow-plate { opacity: 1; }

.wd-glow-blur {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  overflow: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: blur(4px);
}

.wd-glow-sharp { filter: blur(1px); }

.wd-glow-mask {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  scale: 4 1.5;
  mask-image: conic-gradient(from var(--wd-mask-angle), transparent 0%, transparent 50%, black 68%, black 75%, transparent 89%, transparent 100%), conic-gradient(from var(--wd-mask-angle), black 30%, transparent 50%, black 70%);
  mask-composite: intersect;
}

.wd-glow-sharp .wd-glow-mask {
  mask-image: conic-gradient(from var(--wd-mask-angle), transparent 0%, transparent 62%, black 82%, transparent 89%, transparent 100%), conic-gradient(from var(--wd-mask-angle), black 30%, transparent 50%, black 70%);
}

.wd-glow-gradient {
  position: absolute;
  inset: 0;
  inset-block-start: 50%;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  translate: 0 -50%;
  rotate: var(--wd-gradient-angle);
  backface-visibility: hidden;
  transform: translateZ(0);
  /* These are Google's stops, desaturated by the enclosing layer. */
  background: conic-gradient(#3186ff 34%, #9378ff 37%, #f96bd6 39%, #fc413d 41%, #fc413d 48%, #ff6b2b 50%, #fec700 52%, #ffdb0f 56%, #88de42 58%, #0ebc5f 61%, #0ebc5f 65%, #2eaab2 70%, #00a9bb 72%, #3186ff 73%, #3186ff 83%, #3186ff 100%);
}

@media (prefers-color-scheme: dark) {
  .wd-google-glow { opacity: .9; }
}

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .wd-google-glow { display: none; }
  #wtd-app .wd-google-control > button { transition: none; }
}

/* Search uses the Chrome new-tab energy layers from the supplied recording.
   A pale face leaves the moving edge visible; only the decoration is blurred. */
#wtd-app .wd-search-submit-control .search-submit {
  border-color: transparent;
  background: var(--quiet-hover);
  color: var(--ink);
  font-weight: 500;
  transition: background-color 400ms cubic-bezier(.2, 0, 0, 1);
}

#wtd-app .wd-search-submit-control .search-submit:hover {
  background: var(--selected);
}

#wtd-app .wd-search-submit-control .search-submit:active {
  background: var(--quiet-hover);
}

.wd-search-submit-control .wd-google-glow { opacity: .7; }
.wd-search-submit-control .wd-glow-plate { inset: 2px; }
.wd-search-submit-control .wd-glow-blur { inset: -4px; }
.wd-search-submit-control .wd-glow-sharp { inset: 0; }

.wd-search-submit-control .wd-glow-mask {
  scale: 5.2 1.95;
  mask-image: conic-gradient(from var(--wd-mask-angle), transparent 0%, transparent 44%, black 62%, black 81%, transparent 95%, transparent 100%);
}

.wd-search-submit-control .wd-glow-sharp .wd-glow-mask {
  mask-image: conic-gradient(from var(--wd-mask-angle), transparent 0%, transparent 58%, black 78%, black 85%, transparent 93%, transparent 100%);
}

/* The same edge response now surrounds the magnifier. Its stroke remains
   stationary, as it does in the reference recording. No new tab stop. */
.wd-search-lens-control {
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  cursor: text;
}

.wd-search-lens-control .wd-google-glow {
  inset: -6px;
  opacity: .7;
}

.search-lens-face {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--field);
}

.wd-search-lens-control .wd-glow-blur { inset: -3px; }
.wd-search-lens-control .wd-glow-sharp { inset: 0; }
.wd-search-lens-control .wd-glow-mask {
  scale: 1.7;
  mask-image: conic-gradient(from var(--wd-mask-angle), transparent 0%, transparent 44%, black 62%, black 81%, transparent 95%, transparent 100%);
}
.wd-search-lens-control .wd-glow-sharp .wd-glow-mask {
  mask-image: conic-gradient(from var(--wd-mask-angle), transparent 0%, transparent 58%, black 78%, black 85%, transparent 93%, transparent 100%);
}

.search-row {
  transition: border-color 200ms cubic-bezier(.2, 0, 0, 1), box-shadow 200ms cubic-bezier(.2, 0, 0, 1);
}

.search-row:hover,
.search-row:focus-within {
  border-color: var(--border);
  box-shadow: 0 3px 12px var(--shadow);
}

.search-row:has(#query:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  .wd-search-submit-control .wd-google-glow { opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
  #wtd-app .wd-search-submit-control .search-submit,
  .search-row { transition: none; }
}

@media (forced-colors: active) {
  #wtd-app .wd-search-submit-control .search-submit {
    border-color: ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }
  .search-row { transition: none; }
}
