:root {
  --paper: #f7f4ec;
  --paper-2: #fffdf8;
  --paper-3: #efeade;
  --ink: #18212e;
  --muted: #667080;
  --faint: #8d95a0;
  --line: rgba(24, 33, 46, 0.14);
  --line-heavy: rgba(24, 33, 46, 0.27);
  --cyan: #29c9e7;
  --cyan-dark: #057f9d;
  --cyan-wash: rgba(41, 201, 231, 0.15);
  --orange: #f25124;
  --orange-wash: rgba(242, 81, 36, 0.13);
  --yellow: #ffc83d;
  --green: #2aa668;
  --red: #c9412b;
  --shadow: 0 22px 60px rgba(39, 45, 56, 0.13);
  --deep-shadow: 0 35px 95px rgba(35, 41, 52, 0.17);
  --max: 1280px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0c1118;
  --paper-2: #121923;
  --paper-3: #19222e;
  --ink: #f3f4ef;
  --muted: #a3acb9;
  --faint: #747f8f;
  --line: rgba(255, 255, 255, 0.11);
  --line-heavy: rgba(255, 255, 255, 0.2);
  --cyan: #42d9ef;
  --cyan-dark: #72e5f5;
  --cyan-wash: rgba(66, 217, 239, 0.12);
  --orange: #ff6133;
  --orange-wash: rgba(255, 97, 51, 0.12);
  --yellow: #ffd15c;
  --green: #5edc94;
  --red: #ff765d;
  --shadow: 0 22px 68px rgba(0, 0, 0, 0.31);
  --deep-shadow: 0 38px 100px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 28%, var(--orange-wash), transparent 25rem),
    radial-gradient(circle at 86% 18%, var(--cyan-wash), transparent 30rem),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header,
.results-header,
.site-footer,
.home-main,
.results-tabs,
.results-main {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px dashed var(--line-heavy);
}

.header-brand {
  display: flex;
  align-items: center;
  width: 205px;
  min-height: 48px;
  padding: 5px 9px;
  border-radius: 10px;
  background: #fff;
  transform: rotate(-1deg);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.header-brand:hover {
  box-shadow: 4px 4px 0 var(--cyan);
  transform: rotate(0deg) translateY(-1px);
}

.header-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.header-nav,
.results-header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-nav > a,
.results-header-actions > a {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.header-nav > a::after,
.results-header-actions > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 3px;
  border-radius: 80% 20% 75% 30%;
  background: var(--orange);
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left;
  transition: transform 160ms ease;
}

.header-nav > a:hover,
.results-header-actions > a:hover {
  color: var(--ink);
}

.header-nav > a:hover::after,
.results-header-actions > a:hover::after {
  transform: scaleX(1) rotate(-1deg);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-heavy);
  border-radius: 50% 44% 48% 42%;
  background: var(--paper-2);
  cursor: pointer;
  transform: rotate(-3deg);
  transition: transform 160ms ease, background 160ms ease;
}

.theme-toggle:hover {
  background: var(--yellow);
  transform: rotate(4deg) scale(1.05);
}

.theme-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.theme-icon::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper-2);
}

:root[data-theme="dark"] .theme-icon::after {
  display: none;
}

:root[data-theme="dark"] .theme-icon {
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 209, 92, 0.6);
}

.header-brand:focus-visible,
.header-nav a:focus-visible,
.theme-toggle:focus-visible,
.quick-links a:focus-visible,
.site-footer a:focus-visible,
.results-tabs :is(a, button):focus-visible,
.answer-actions button:focus-visible,
.answer-error button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

/* Home */

.home-page::before,
.home-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

.home-page::before {
  top: 18%;
  left: -90px;
  width: 230px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.13;
  transform: rotate(-15deg);
}

.home-page::after {
  right: -70px;
  bottom: 20%;
  width: 180px;
  height: 180px;
  border: 25px solid var(--cyan);
  border-radius: 47% 53% 44% 56%;
  opacity: 0.11;
  transform: rotate(20deg);
}

.home-main {
  padding: clamp(58px, 8vw, 105px) 0 78px;
}

.search-hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.ai-sticker {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 -9px 22%;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px 4px 9px 5px;
  color: #101820;
  background: var(--yellow);
  box-shadow: 4px 5px 0 var(--ink);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.ai-sticker span {
  color: var(--orange);
  font-size: 14px;
}

.hero-brand-board {
  position: relative;
  width: min(100%, 420px);
  padding: clamp(12px, 2vw, 22px);
  border: 2px solid var(--ink);
  border-radius: 14px 8px 16px 9px;
  background: #fff;
  box-shadow: 10px 12px 0 var(--cyan), 12px 14px 0 var(--ink);
  transform: rotate(-0.7deg);
}

.hero-brand-board::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -25px;
  width: 72px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.85;
  transform: rotate(-7deg);
}

.board-tape {
  position: absolute;
  z-index: 2;
  top: -18px;
  width: 88px;
  height: 30px;
  background: rgba(255, 205, 78, 0.72);
  clip-path: polygon(4% 8%, 97% 0, 93% 92%, 0 100%);
}

.board-tape-left {
  left: 8%;
  transform: rotate(-8deg);
}

.board-tape-right {
  right: 8%;
  transform: rotate(7deg);
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
}

.search-hero h1 {
  margin: 48px 0 0;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", ui-sans-serif, sans-serif;
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.search-hero h1 span {
  position: relative;
  color: var(--orange);
}

.search-hero h1 span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 5px;
  border-radius: 60% 40% 65% 35%;
  background: var(--cyan);
  transform: rotate(-1deg);
}

.hero-copy {
  max-width: 700px;
  margin: 25px auto 31px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}

.hero-search,
.results-search-form {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.hero-search {
  width: min(100%, 820px);
  min-height: 74px;
  padding: 8px 8px 8px 60px;
  border-radius: 21px 15px 22px 16px;
  box-shadow: 7px 8px 0 var(--ink), var(--shadow);
  transform: rotate(0.15deg);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.hero-search:focus-within {
  box-shadow: 7px 8px 0 var(--cyan), 9px 10px 0 var(--ink), var(--shadow);
  transform: translateY(-2px) rotate(-0.1deg);
}

.search-glyph {
  position: absolute;
  left: 23px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--muted);
  border-radius: 50% 45% 52% 48%;
}

.search-glyph::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -5px;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--muted);
  transform: rotate(46deg);
}

.hero-search textarea {
  flex: 1;
  min-width: 0;
  min-height: 35px;
  max-height: 112px;
  padding: 5px 17px 5px 0;
  overflow-y: auto;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
  line-height: 1.45;
}

.hero-search textarea::placeholder,
.results-search-form input::placeholder,
.weather-search input::placeholder {
  color: var(--faint);
}

.hero-search button,
.results-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  color: #101820;
  background: var(--cyan);
  font-weight: 950;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.hero-search button {
  min-width: 126px;
  height: 54px;
  border-radius: 14px 10px 15px 10px;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-search button:hover,
.results-search-form button:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
}

.hero-search button:focus-visible,
.results-search-form button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.button-arrow {
  font-size: 20px;
}

.search-promise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 17px 0 0;
  color: var(--faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.promise-dot,
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent), 0 0 9px color-mix(in srgb, var(--green) 65%, transparent);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  width: min(100%, 820px);
  margin-top: 45px;
}

.quick-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-heavy);
  border-radius: 14px 9px 15px 10px;
  background: color-mix(in srgb, var(--paper-2) 90%, transparent);
  box-shadow: 3px 3px 0 var(--line-heavy);
  text-align: left;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.quick-links a:nth-child(even) {
  transform: rotate(0.6deg);
}

.quick-links a:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.quick-links a:hover {
  border-color: var(--ink);
  box-shadow: 4px 5px 0 var(--cyan);
  transform: translateY(-3px) rotate(0deg);
}

.quick-links img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px 7px 11px 7px;
  object-fit: cover;
  background: #fff;
}

.quick-links span,
.quick-links strong,
.quick-links small {
  display: block;
  min-width: 0;
}

.quick-links strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.quick-links small {
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Weather */

.weather-panel {
  position: relative;
  width: min(100%, 820px);
  margin: 56px auto 0;
  padding: 13px;
  border: 2px solid var(--ink);
  border-radius: 18px 12px 20px 13px;
  background: var(--paper-2);
  box-shadow: 6px 7px 0 var(--orange), 8px 9px 0 var(--ink);
  transform: rotate(-0.25deg);
}

.weather-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 7px 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.weather-label small {
  color: var(--faint);
  font-size: 8px;
}

.weather-panel-main {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 96px;
  padding: 12px 13px;
  overflow: hidden;
  border: 1px dashed var(--line-heavy);
  border-radius: 13px 9px 14px 10px;
  background:
    linear-gradient(120deg, var(--cyan-wash), transparent 46%),
    var(--paper-3);
}

.weather-panel-main::after {
  content: "";
  position: absolute;
  right: 17%;
  bottom: -34px;
  width: 130px;
  height: 50px;
  border-radius: 50%;
  background: var(--orange-wash);
  transform: rotate(-8deg);
}

.weather-visual {
  position: relative;
  width: 78px;
  height: 66px;
  transform: scale(0.92);
}

.weather-sun {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 34px;
  height: 34px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--orange);
  animation: weather-float 4s ease-in-out infinite;
}

.weather-cloud {
  position: absolute;
  left: 4px;
  bottom: 11px;
  width: 64px;
  height: 29px;
  border: 3px solid var(--ink);
  border-radius: 22px 25px 17px 18px;
  background: var(--paper-2);
}

.weather-cloud::before,
.weather-cloud::after {
  content: "";
  position: absolute;
  border: 3px solid var(--ink);
  border-bottom: 0;
  background: var(--paper-2);
}

.weather-cloud::before {
  left: 10px;
  top: -24px;
  width: 31px;
  height: 28px;
  border-radius: 50% 50% 0 0;
}

.weather-cloud::after {
  right: 4px;
  top: -15px;
  width: 23px;
  height: 19px;
  border-radius: 50% 50% 0 0;
}

.weather-cloud-small {
  display: none;
}

.weather-rain,
.weather-snow,
.weather-flash {
  position: absolute;
  z-index: 3;
  display: none;
}

.weather-rain {
  left: 22px;
  bottom: 0;
  width: 4px;
  height: 14px;
  border-radius: 4px;
  background: var(--cyan);
  box-shadow: 18px 2px 0 var(--cyan), 35px -2px 0 var(--cyan);
  animation: weather-rain 0.8s linear infinite;
}

.weather-snow {
  left: 20px;
  bottom: 0;
  color: var(--cyan);
  font-size: 22px;
}

.weather-snow::before { content: "✦  ·  ✦"; }

.weather-flash {
  left: 35px;
  bottom: -2px;
  width: 15px;
  height: 27px;
  background: var(--yellow);
  clip-path: polygon(45% 0, 100% 0, 63% 38%, 95% 38%, 20% 100%, 39% 51%, 0 51%);
  filter: drop-shadow(2px 2px 0 var(--ink));
}

.weather-panel[data-weather="clear"] .weather-cloud { opacity: 0.25; transform: translateX(-8px) scale(0.82); }
.weather-panel[data-weather="clear"] .weather-sun { right: 18px; width: 42px; height: 42px; }
.weather-panel[data-weather="rain"] .weather-rain,
.weather-panel[data-weather="storm"] .weather-rain,
.weather-panel[data-weather="snow"] .weather-snow,
.weather-panel[data-weather="storm"] .weather-flash { display: block; }
.weather-panel[data-weather="rain"] .weather-sun,
.weather-panel[data-weather="snow"] .weather-sun,
.weather-panel[data-weather="storm"] .weather-sun,
.weather-panel[data-weather="fog"] .weather-sun { opacity: 0.25; }

.weather-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  text-align: left;
}

.weather-temp {
  flex: 0 0 auto;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 45px;
  letter-spacing: -0.08em;
  line-height: 1;
}

.weather-text,
.weather-location,
.weather-condition {
  display: block;
  min-width: 0;
}

.weather-location {
  overflow: hidden;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-condition {
  color: var(--muted);
  font-size: 10px;
}

.weather-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 7px;
}

.weather-icon-button,
.weather-search-submit {
  display: grid;
  place-items: center;
  height: 36px;
  border: 1px solid var(--line-heavy);
  color: var(--ink);
  background: var(--paper-2);
  font-weight: 900;
  cursor: pointer;
}

.weather-icon-button {
  width: 36px;
  border-radius: 11px 7px 11px 7px;
  font-size: 18px;
}

.weather-icon-button:hover,
.weather-search-submit:hover {
  border-color: var(--ink);
  background: var(--yellow);
}

.weather-search {
  display: flex;
  gap: 8px;
  padding: 10px 4px 1px;
}

.weather-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line-heavy);
  border-radius: 10px 7px 10px 7px;
  outline: 0;
  color: var(--ink);
  background: var(--paper-2);
}

.weather-search input:focus {
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 3px var(--cyan-wash);
}

.weather-search-submit {
  width: 48px;
  border-radius: 10px 7px 10px 7px;
  font-size: 10px;
}

.weather-suggestions {
  display: grid;
  gap: 4px;
  padding: 9px 4px 0;
}

.weather-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--paper-2);
  text-align: left;
  cursor: pointer;
}

.weather-suggestion:hover,
.weather-suggestion:focus {
  border-color: var(--cyan-dark);
  background: var(--cyan-wash);
}

.weather-suggestion-place {
  font-size: 11px;
  font-weight: 800;
}

.weather-suggestion-region {
  color: var(--faint);
  font-size: 9px;
}

.weather-status {
  display: block;
  min-height: 13px;
  padding: 7px 6px 0;
  color: var(--faint);
  font-size: 8px;
  text-align: left;
}

.weather-panel.is-error .weather-status {
  color: var(--red) !important;
}

/* Shared footer */

.site-footer {
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  align-items: center;
  gap: 30px;
  min-height: 126px;
  padding: 22px 0;
  border-top: 1px dashed var(--line-heavy);
}

.powered-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.powered-lockup img {
  width: 54px;
  height: 54px;
  border: 2px solid var(--ink);
  border-radius: 15px 9px 16px 10px;
  object-fit: cover;
  box-shadow: 3px 3px 0 var(--cyan);
  transform: rotate(-2deg);
}

.site-footer > nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.site-footer > nav a:hover {
  color: var(--orange);
}

.privacy-lockup {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.privacy-lockup img {
  width: 52px;
  height: 52px;
}

/* Results */

.results-page {
  background:
    linear-gradient(90deg, transparent 49.95%, var(--line) 50%, transparent 50.05%) 0 0 / 42px 42px,
    linear-gradient(transparent 49.95%, var(--line) 50%, transparent 50.05%) 0 0 / 42px 42px,
    radial-gradient(circle at 18% 8%, var(--orange-wash), transparent 26rem),
    radial-gradient(circle at 86% 9%, var(--cyan-wash), transparent 30rem),
    var(--paper);
}

.results-header {
  display: grid;
  grid-template-columns: 210px minmax(300px, 700px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 91px;
}

.results-brand {
  display: flex;
  align-items: center;
  width: 196px;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 9px 5px 10px 6px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--cyan);
  transform: rotate(-0.7deg);
}

.results-brand img {
  display: block;
  width: 100%;
}

.results-search-form {
  width: 100%;
  height: 52px;
  padding: 5px 5px 5px 47px;
  border-radius: 15px 10px 16px 11px;
  box-shadow: 4px 5px 0 var(--ink), var(--shadow);
}

.results-search-form:focus-within {
  box-shadow: 4px 5px 0 var(--cyan), 6px 7px 0 var(--ink), var(--shadow);
}

.results-search-form .search-glyph {
  left: 17px;
  width: 15px;
  height: 15px;
  border-width: 2px;
}

.results-search-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.results-search-form button {
  height: 38px;
  padding: 0 15px;
  border-radius: 10px 7px 11px 8px;
  font-size: 10px;
}

.results-header-actions {
  gap: 14px;
}

.results-nav-shell {
  border-top: 1px dashed var(--line-heavy);
  border-bottom: 1px dashed var(--line-heavy);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
}

.results-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 52px;
}

.results-tabs :is(button, a) {
  position: relative;
  padding: 9px 13px;
  border: 0;
  border-radius: 8px 5px 9px 6px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.results-tabs :is(button, a):hover {
  color: var(--ink);
  background: var(--paper-3);
}

.results-tabs button.is-active {
  border: 1px solid var(--ink);
  color: #101820;
  background: var(--yellow);
  box-shadow: 2px 3px 0 var(--ink);
  transform: rotate(-0.5deg);
}

.results-main {
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(500px, 1.08fr);
  align-items: start;
  gap: clamp(35px, 5vw, 68px);
  min-height: calc(100vh - 255px);
  padding: 51px 0 80px;
}

.answer-column,
.web-column {
  min-width: 0;
}

.answer-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 12px -3px;
  padding: 8px 13px 10px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 10px 6px 0 0;
  color: #101820;
  background: var(--yellow);
  box-shadow: 5px 0 0 var(--ink);
  transform: rotate(-0.4deg);
}

.answer-ribbon span {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.answer-ribbon small {
  font-size: 8px;
  font-weight: 700;
}

.ai-answer-card {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 19px 12px 21px 13px;
  background: var(--paper-2);
  box-shadow: 8px 9px 0 var(--cyan), 10px 11px 0 var(--ink), var(--deep-shadow);
  transform: rotate(0.1deg);
}

.ai-answer-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -38px;
  width: 120px;
  height: 70px;
  border: 13px solid var(--orange);
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

.answer-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px 16px;
  border-bottom: 1px dashed var(--line-heavy);
  background: var(--paper-3);
}

.answer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.answer-brand img {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 14px 8px 14px 8px;
  object-fit: cover;
  box-shadow: 3px 3px 0 var(--orange);
  transform: rotate(-3deg);
}

.answer-brand p,
.answer-brand strong,
.answer-brand small {
  display: block;
  margin: 0;
}

.answer-brand strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.answer-brand small {
  color: var(--muted);
  font-size: 9px;
}

.answer-brand .live-dot {
  width: 5px;
  height: 5px;
  margin-right: 5px;
  box-shadow: 0 0 7px var(--green);
  vertical-align: 1px;
}

.answer-actions {
  display: flex;
  gap: 7px;
}

.answer-actions button {
  padding: 7px 10px;
  border: 1px solid var(--line-heavy);
  border-radius: 8px 5px 8px 5px;
  color: var(--muted);
  background: var(--paper-2);
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.answer-actions button:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--yellow);
}

.answer-loading {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 390px;
  padding: 54px 34px 38px;
  text-align: center;
}

.brain-loader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 92px;
  height: 82px;
  margin-bottom: 25px;
  border: 3px solid var(--ink);
  border-radius: 48% 44% 46% 41%;
  color: #101820;
  background: var(--cyan);
  box-shadow: 6px 7px 0 var(--orange), 8px 9px 0 var(--ink);
  font-family: "Arial Rounded MT Bold", sans-serif;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.09em;
  transform: rotate(-3deg);
  animation: brain-think 2s ease-in-out infinite;
}

.brain-loader i {
  position: absolute;
  top: -19px;
  right: 7px;
  width: 25px;
  height: 25px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 200, 61, 0.55);
}

.answer-loading > strong {
  margin-bottom: 8px;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 17px;
}

.answer-loading > p {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.answer-loading-lines {
  display: grid;
  gap: 9px;
  width: min(100%, 370px);
  margin-top: 35px;
}

.answer-loading-lines span {
  height: 9px;
  overflow: hidden;
  border-radius: 20px 8px 20px 8px;
  background:
    linear-gradient(100deg, transparent 20%, var(--cyan-wash) 45%, transparent 70%) 0 0 / 260% 100%,
    var(--paper-3);
  animation: answer-shimmer 1.5s linear infinite;
}

.answer-loading-lines span:nth-child(2) { width: 88%; }
.answer-loading-lines span:nth-child(3) { width: 64%; }

.answer-error {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 390px;
  padding: 52px 34px;
  text-align: center;
}

.answer-error img {
  width: 92px;
  height: 92px;
  margin-bottom: 20px;
}

.answer-error strong {
  margin-bottom: 9px;
  font-size: 17px;
}

.answer-error p {
  max-width: 360px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.answer-error button {
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px 6px 11px 7px;
  color: #101820;
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.answer-result {
  padding: clamp(24px, 4vw, 38px);
}

.answer-question {
  margin: 0 0 26px;
  padding: 13px 15px;
  border-left: 5px solid var(--orange);
  border-radius: 0 9px 9px 0;
  background: var(--orange-wash);
}

.answer-question span,
.answer-question strong {
  display: block;
}

.answer-question span {
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.answer-question strong {
  font-size: 12px;
  line-height: 1.5;
}

.ai-answer-content {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.75;
}

.ai-answer-content > :first-child { margin-top: 0; }
.ai-answer-content > :last-child { margin-bottom: 0; }

.ai-answer-content h2,
.ai-answer-content h3,
.ai-answer-content h4 {
  margin: 27px 0 10px;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.ai-answer-content h2 { font-size: 19px; }
.ai-answer-content h3 { font-size: 16px; }
.ai-answer-content h4 { font-size: 14px; }

.ai-answer-content p {
  margin: 0 0 16px;
}

.ai-answer-content ul,
.ai-answer-content ol {
  margin: 0 0 18px;
  padding-left: 23px;
}

.ai-answer-content li {
  margin-bottom: 7px;
  padding-left: 3px;
}

.ai-answer-content li::marker {
  color: var(--orange);
  font-weight: 900;
}

.ai-answer-content a {
  color: var(--cyan-dark);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--cyan) 55%, transparent);
  text-underline-offset: 3px;
}

.ai-answer-content code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-3);
  font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.answer-sources {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-heavy);
}

.sources-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.sources-heading strong {
  font-size: 11px;
}

.sources-heading span {
  color: var(--orange);
  font-size: 15px;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.source-list a {
  display: block;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line-heavy);
  border-radius: 10px 6px 11px 7px;
  background: var(--paper-3);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.source-list a:hover {
  border-color: var(--ink);
  box-shadow: 2px 3px 0 var(--cyan);
  transform: translateY(-1px);
}

.source-list strong,
.source-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-list strong {
  margin-bottom: 4px;
  font-size: 10px;
}

.source-list small {
  color: var(--faint);
  font-size: 8px;
}

.answer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 27px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 8px;
}

.answer-meta [data-answer-remaining]:not(:empty) {
  color: var(--green);
  font-weight: 850;
}

.web-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 67px;
  margin-bottom: 16px;
}

.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.web-section-heading h2 {
  margin: 0;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.045em;
}

.result-query-label {
  max-width: 230px;
  overflow: hidden;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px 5px 8px 5px;
  color: var(--faint);
  background: var(--paper-2);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-results-shell {
  position: relative;
  min-height: 410px;
}

.web-results-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  gap: 14px;
  align-content: start;
  padding-top: 4px;
  background: var(--paper);
}

.web-results-loading span {
  display: block;
  height: 125px;
  border: 1px solid var(--line-heavy);
  border-radius: 15px 9px 16px 10px;
  background:
    linear-gradient(100deg, transparent 25%, var(--paper-3) 44%, transparent 63%) 0 0 / 300% 100%,
    var(--paper-2);
  animation: answer-shimmer 1.8s linear infinite;
}

/* Google Programmable Search */
.gsc-control-cse,
.gsc-control-cse .gsc-table-result {
  font-family: inherit !important;
}

.gsc-control-cse {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.gsc-result-info,
.gcsc-find-more-on-google,
.gcsc-more-maybe-branding-root,
.gcsc-branding {
  color: var(--faint) !important;
}

.gsc-webResult.gsc-result,
.gsc-results .gsc-imageResult {
  margin: 0 0 13px !important;
  padding: 18px !important;
  border: 1px solid var(--line-heavy) !important;
  border-radius: 15px 9px 16px 10px !important;
  background: var(--paper-2) !important;
  box-shadow: 3px 4px 0 var(--line) !important;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.gsc-webResult.gsc-result:nth-child(even) {
  transform: rotate(0.12deg);
}

.gsc-webResult.gsc-result:hover {
  border-color: var(--ink) !important;
  box-shadow: 4px 5px 0 var(--cyan) !important;
  transform: translateY(-2px) rotate(0deg);
}

.gs-webResult.gs-result a.gs-title,
.gs-webResult.gs-result a.gs-title b,
.gsc-cursor-page {
  color: var(--ink) !important;
}

.gs-webResult .gs-snippet,
.gs-fileFormatType,
.gsc-table-result,
.gsc-url-top,
.gsc-thumbnail-inside {
  color: var(--muted) !important;
}

.gs-webResult div.gs-visibleUrl,
.gs-imageResult div.gs-visibleUrl {
  color: var(--cyan-dark) !important;
}

.gsc-cursor-box {
  margin: 24px 0 !important;
  border: 0 !important;
}

.gsc-cursor-page {
  display: inline-grid !important;
  place-items: center;
  min-width: 34px;
  height: 34px;
  margin-right: 6px !important;
  border: 1px solid var(--line-heavy) !important;
  border-radius: 8px 5px 8px 5px;
  background: var(--paper-2) !important;
  text-decoration: none !important;
}

.gsc-cursor-current-page {
  border-color: var(--ink) !important;
  color: #101820 !important;
  background: var(--yellow) !important;
  box-shadow: 2px 2px 0 var(--ink);
}

.gs-no-results-result .gs-snippet,
.gs-error-result .gs-snippet {
  border: 1px solid var(--line-heavy) !important;
  border-radius: 12px;
  color: var(--muted) !important;
  background: var(--paper-2) !important;
}

.results-footer {
  grid-template-columns: 190px 1fr auto;
}

.results-footer > p {
  margin: 0;
  color: var(--faint);
  font-size: 8px;
  text-align: center;
}

body.is-submitting [data-search-form] button {
  pointer-events: none;
  opacity: 0.7;
}

@keyframes brain-think {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-5px); }
}

@keyframes answer-shimmer {
  to { background-position: -150% 0, 0 0; }
}

@keyframes weather-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

@keyframes weather-rain {
  from { transform: translateY(-5px); opacity: 0.35; }
  to { transform: translateY(7px); opacity: 1; }
}

@media (max-width: 1020px) {
  .results-header {
    grid-template-columns: 170px minmax(280px, 1fr) auto;
  }

  .results-brand {
    width: 160px;
  }

  .results-main {
    grid-template-columns: minmax(340px, 0.88fr) minmax(430px, 1.12fr);
    gap: 34px;
  }

  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header,
  .results-header,
  .site-footer,
  .home-main,
  .results-tabs,
  .results-main {
    width: min(calc(100% - 32px), var(--max));
  }

  .header-nav a:nth-child(3) {
    display: none;
  }

  .results-header {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 13px;
  }

  .results-brand {
    width: 46px;
    height: 46px;
    padding: 4px;
    overflow: hidden;
    border-radius: 13px 8px 13px 8px;
    background: #101820;
  }

  .results-brand img {
    width: 115px;
    max-width: none;
    height: 36px;
    object-fit: cover;
    object-position: left;
  }

  .results-header-actions > a {
    display: none;
  }

  .results-main {
    grid-template-columns: 1fr;
  }

  .results-page:not(.show-web-only) .web-column {
    padding-top: 23px;
    border-top: 1px dashed var(--line-heavy);
  }

  .site-footer {
    grid-template-columns: auto 1fr;
  }

  .privacy-lockup {
    display: none;
  }
}

@media (max-width: 590px) {
  .site-header {
    min-height: 75px;
  }

  .header-brand {
    width: 160px;
  }

  .header-nav {
    gap: 12px;
  }

  .header-nav a:first-child,
  .header-nav a:nth-child(3) {
    display: none;
  }

  .home-main {
    padding-top: 59px;
  }

  .ai-sticker {
    margin-left: 0;
    font-size: 8px;
  }

  .hero-brand-board {
    padding: 9px;
    box-shadow: 6px 7px 0 var(--cyan), 8px 9px 0 var(--ink);
  }

  .board-tape {
    width: 58px;
    height: 23px;
  }

  .search-hero h1 {
    margin-top: 41px;
    font-size: clamp(31px, 10vw, 45px);
    line-height: 1.07;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero-search {
    min-height: 64px;
    padding: 7px 7px 7px 48px;
    border-radius: 17px 11px 18px 12px;
    box-shadow: 5px 6px 0 var(--ink), var(--shadow);
  }

  .hero-search .search-glyph {
    left: 18px;
    width: 15px;
    height: 15px;
    border-width: 2px;
  }

  .hero-search textarea {
    padding-right: 8px;
    font-size: 14px;
  }

  .hero-search button {
    min-width: 50px;
    width: 50px;
    height: 48px;
    padding: 0;
  }

  .hero-search button span:first-child,
  .results-search-form button span:first-child {
    display: none;
  }

  .search-promise {
    flex-wrap: wrap;
  }

  .quick-links {
    gap: 9px;
    margin-top: 38px;
  }

  .quick-links a {
    padding: 9px;
  }

  .quick-links img {
    width: 36px;
    height: 36px;
  }

  .weather-panel {
    margin-top: 45px;
    padding: 9px;
  }

  .weather-panel-main {
    grid-template-columns: 63px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 8px;
  }

  .weather-visual {
    transform: scale(0.72);
    transform-origin: left center;
  }

  .weather-copy {
    gap: 9px;
  }

  .weather-temp {
    font-size: 34px;
  }

  .weather-location {
    font-size: 10px;
  }

  .weather-actions {
    flex-direction: column;
  }

  .weather-icon-button {
    width: 30px;
    height: 30px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
    padding: 32px 0;
    text-align: center;
  }

  .site-footer > nav {
    flex-wrap: wrap;
  }

  .results-header {
    min-height: 76px;
  }

  .results-search-form button {
    width: 38px;
    padding: 0;
  }

  .results-nav-shell {
    overflow-x: auto;
  }

  .results-tabs {
    width: max-content;
    min-width: calc(100% - 32px);
    margin-left: 16px;
    padding-right: 16px;
  }

  .results-main {
    padding-top: 34px;
  }

  .answer-ribbon small {
    display: none;
  }

  .ai-answer-card {
    box-shadow: 5px 6px 0 var(--cyan), 7px 8px 0 var(--ink), var(--deep-shadow);
  }

  .answer-card-header {
    min-height: 68px;
    padding: 10px 12px;
  }

  .answer-brand img {
    width: 39px;
    height: 39px;
  }

  .answer-result {
    padding: 24px 19px;
  }

  .source-list {
    grid-template-columns: 1fr;
  }

  .answer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .web-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .result-query-label {
    max-width: 100%;
  }

  .gsc-webResult.gsc-result,
  .gsc-results .gsc-imageResult {
    padding: 14px !important;
  }
}

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