@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Lato:wght@300;400;700&display=swap');

:root {
  --ay-bg: #edf2f8;
  --ay-surface: #ffffff;
  --ay-ink: #172033;
  --ay-blue: #2563eb;
  --ay-blue-dark: #1d4ed8;
  --ay-blue-deep: #163b8c;
  --ay-blue-light: #dbeafe;
  --ay-muted: #667085;
  --ay-border: #dfe6ef;
  --ay-highlight: #f3f6ff;
  --ay-rust: #c85d31;
  --ay-green: #157347;
  --ay-green-light: #e8f6ee;

  --ay-font-display: 'Nunito', sans-serif;
  --ay-font-body: 'Lato', sans-serif;

  --ay-radius-sm: 10px;
  --ay-radius-md: 14px;
  --ay-radius-lg: 20px;
  --ay-radius-xl: 28px;
  --ay-radius-pill: 999px;

  --ay-shadow: 0 4px 18px rgba(28, 45, 77, 0.09);
  --ay-shadow-lg: 0 18px 48px rgba(22, 46, 93, 0.16);
  --ay-blue-shadow: 0 10px 24px rgba(37, 99, 235, 0.26);

  --ay-content-width: 760px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--ay-bg);
  color: var(--ay-ink);
  font-family: var(--ay-font-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.ay-display {
  font-family: var(--ay-font-display);
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.ay-page-shell {
  width: min(100%, var(--ay-content-width));
  margin: 0 auto;
  padding: 20px 16px 80px;
}

.ay-card {
  background: var(--ay-surface);
  border: 1px solid rgba(223, 230, 239, 0.78);
  border-radius: var(--ay-radius-lg);
  box-shadow: var(--ay-shadow);
}

.ay-primary-action {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, var(--ay-blue-dark) 100%);
  box-shadow: var(--ay-blue-shadow);
}

.ay-muted {
  color: var(--ay-muted);
}

/* Legacy splash helpers retained for older pages. */
.ay-splash-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ay-blue);
}

.ay-splash-text {
  margin: 0;
  color: #ffffff;
  font-family: var(--ay-font-display);
  font-size: clamp(40px, 10vw, 48px);
  font-weight: 900;
  line-height: 1;
}

/* Landing page */
.ay-home-page {
  background:
    radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.18), transparent 34rem),
    linear-gradient(180deg, #e9f1fb 0, var(--ay-bg) 27rem, var(--ay-bg) 100%);
}

.ay-home-shell {
  width: min(100%, var(--ay-content-width));
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px max(38px, env(safe-area-inset-bottom));
}

.ay-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 16px;
}

.ay-home-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.ay-home-brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(145deg, #3b82f6, #1746b3);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.28);
  font-family: var(--ay-font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.ay-home-brand-name,
.ay-home-brand-tagline {
  display: block;
}

.ay-home-brand-name {
  overflow: hidden;
  color: var(--ay-ink);
  font-family: var(--ay-font-display);
  font-size: clamp(15px, 4.3vw, 19px);
  font-weight: 800;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ay-home-brand-name strong {
  color: var(--ay-blue);
  font-weight: 900;
}

.ay-home-brand-tagline {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ay-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ay-uk-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #cbdaf5;
  border-radius: var(--ay-radius-pill);
  color: var(--ay-blue-deep);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--ay-font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.ay-home-hero {
  min-height: 310px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(26px, 6vw, 44px);
  border-radius: var(--ay-radius-xl);
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 17%, rgba(255, 255, 255, 0.2) 0 4%, transparent 4.3%),
    radial-gradient(circle at 76% 25%, rgba(255, 255, 255, 0.12) 0 11%, transparent 11.4%),
    linear-gradient(142deg, #102b67 0%, #1d4ed8 54%, #5595f5 100%);
  box-shadow: 0 22px 55px rgba(30, 64, 175, 0.24);
}

.ay-home-hero::before,
.ay-home-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ay-home-hero::before {
  width: 230px;
  height: 230px;
  top: -104px;
  right: -48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.045), 0 0 0 80px rgba(255, 255, 255, 0.025);
}

.ay-home-hero::after {
  width: 260px;
  height: 260px;
  bottom: -208px;
  left: -90px;
  background: rgba(6, 23, 58, 0.2);
}

.ay-home-hero-copy {
  max-width: 570px;
  position: relative;
  z-index: 2;
}

.ay-home-eyebrow,
.ay-section-kicker {
  margin: 0;
  font-family: var(--ay-font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.ay-home-eyebrow {
  margin-bottom: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.ay-home-hero h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(35px, 9vw, 58px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 0.98;
  text-wrap: balance;
}

.ay-home-intro {
  max-width: 590px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(15px, 3.8vw, 17px);
  line-height: 1.55;
}

.ay-home-hero-stamp {
  width: 116px;
  height: 116px;
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(8, 30, 79, 0.2);
  font-family: var(--ay-font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: rotate(7deg);
  backdrop-filter: blur(8px);
}

.ay-home-hero-stamp strong {
  margin: 2px 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.ay-location-card {
  position: relative;
  z-index: 5;
  margin: -34px 14px 26px;
  padding: clamp(20px, 5vw, 28px);
  border-radius: 24px;
  box-shadow: var(--ay-shadow-lg);
}

.ay-location-heading,
.ay-home-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ay-section-kicker {
  margin-bottom: 5px;
  color: var(--ay-blue);
}

.ay-location-heading h2,
.ay-home-section-heading h2 {
  margin: 0;
  color: var(--ay-ink);
  font-size: clamp(24px, 6vw, 33px);
  font-weight: 900;
  letter-spacing: -0.9px;
  line-height: 1.05;
}

.ay-location-lock {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ay-blue);
  background: var(--ay-blue-light);
}

.ay-location-lock svg,
.ay-location-button svg,
.ay-location-input-wrap > svg,
.ay-saved-location-pin svg,
.ay-feature-art svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ay-location-lock svg {
  width: 19px;
  height: 19px;
}

.ay-location-copy {
  margin: 13px 0 20px;
  color: var(--ay-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ay-location-button {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 17px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.ay-location-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.ay-location-button:active {
  transform: scale(0.985);
}

.ay-location-button:disabled,
.ay-find-button:disabled,
.ay-location-input:disabled {
  cursor: wait;
  opacity: 0.66;
}

.ay-location-button svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.ay-location-button span,
.ay-location-button strong,
.ay-location-button small {
  display: block;
}

.ay-location-button strong {
  font-family: var(--ay-font-display);
  font-size: 16px;
  font-weight: 900;
}

.ay-location-button small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}

.ay-location-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.ay-location-divider::before,
.ay-location-divider::after {
  height: 1px;
  flex: 1;
  content: '';
  background: var(--ay-border);
}

.ay-location-label {
  display: block;
  margin: 0 0 7px 2px;
  color: var(--ay-ink);
  font-family: var(--ay-font-display);
  font-size: 12px;
  font-weight: 900;
}

.ay-location-search-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.ay-location-input-wrap {
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ay-border);
  border-radius: 15px;
  background: #f7f9fc;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.ay-location-input-wrap:focus-within {
  border-color: var(--ay-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.ay-location-input-wrap > svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-left: 14px;
  color: #8b95a7;
}

.ay-location-input {
  width: 100%;
  min-width: 0;
  padding: 14px 36px 14px 10px;
  border: 0;
  outline: 0;
  color: var(--ay-ink);
  background: transparent;
  font-size: 15px;
}

.ay-location-input::placeholder {
  color: #98a2b3;
}

.ay-location-input::-webkit-search-cancel-button {
  display: none;
}

.ay-clear-input {
  width: 30px;
  height: 30px;
  position: absolute;
  right: 5px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #667085;
  background: transparent;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.ay-find-button {
  min-width: 72px;
  padding: 0 17px;
  border: 0;
  border-radius: 15px;
  color: #ffffff;
  background: var(--ay-ink);
  cursor: pointer;
  font-family: var(--ay-font-display);
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.16s ease, background 0.16s ease;
}

.ay-find-button:hover {
  background: #263247;
}

.ay-find-button:active {
  transform: scale(0.97);
}

.ay-location-help {
  margin: 8px 2px 0;
  color: var(--ay-muted);
  font-size: 11px;
  line-height: 1.4;
}

.ay-location-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 81px;
  overflow: hidden;
  border: 1px solid var(--ay-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--ay-shadow-lg);
}

.ay-location-suggestion {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  color: var(--ay-ink);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.ay-location-suggestion:last-child {
  border-bottom: 0;
}

.ay-location-suggestion:hover,
.ay-location-suggestion:focus-visible {
  background: var(--ay-highlight);
}

.ay-location-suggestion-pin {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ay-blue);
  background: var(--ay-blue-light);
  font-size: 23px;
  line-height: 1;
}

.ay-location-suggestion > span:last-child,
.ay-location-suggestion strong,
.ay-location-suggestion small {
  min-width: 0;
  display: block;
}

.ay-location-suggestion strong {
  overflow: hidden;
  font-family: var(--ay-font-display);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ay-location-suggestion small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ay-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ay-location-status {
  display: none;
  margin-top: 13px;
  padding: 11px 13px;
  border-radius: 12px;
  color: var(--ay-green);
  background: var(--ay-green-light);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.ay-location-status.visible {
  display: block;
}

.ay-location-status.error {
  color: #a84424;
  background: #fff1eb;
}

.ay-location-status.loading::before {
  width: 11px;
  height: 11px;
  display: inline-block;
  margin-right: 8px;
  border: 2px solid rgba(21, 115, 71, 0.24);
  border-top-color: currentColor;
  border-radius: 50%;
  content: '';
  vertical-align: -1px;
  animation: aySpin 0.7s linear infinite;
}

@keyframes aySpin {
  to { transform: rotate(360deg); }
}

.ay-saved-location {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cfe8da;
  border-radius: 17px;
  background: linear-gradient(135deg, #f3fbf6, #eaf7f0);
}

.ay-saved-location-pin {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--ay-green);
  background: #d8f0e2;
}

.ay-saved-location-pin svg {
  width: 21px;
  height: 21px;
}

.ay-saved-location-copy,
.ay-saved-location-copy small,
.ay-saved-location-copy strong,
.ay-saved-location-copy span {
  min-width: 0;
  display: block;
}

.ay-saved-location-copy small {
  margin-bottom: 2px;
  color: var(--ay-green);
  font-family: var(--ay-font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ay-saved-location-copy strong {
  overflow: hidden;
  color: var(--ay-ink);
  font-family: var(--ay-font-display);
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ay-saved-location-copy span {
  margin-top: 1px;
  overflow: hidden;
  color: var(--ay-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ay-text-button {
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--ay-blue);
  background: transparent;
  cursor: pointer;
  font-family: var(--ay-font-display);
  font-size: 12px;
  font-weight: 900;
}

.ay-text-button:hover {
  background: rgba(37, 99, 235, 0.08);
}

.ay-home-section {
  padding: 4px 2px 0;
}

.ay-home-section-heading {
  margin-bottom: 14px;
  align-items: flex-end;
}

.ay-section-location-note {
  max-width: 310px;
  margin: 0 0 2px;
  color: var(--ay-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.ay-feature-grid {
  display: grid;
  gap: 12px;
}

.ay-feature-card {
  min-height: 158px;
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ay-border);
  border-radius: 22px;
  color: var(--ay-ink);
  background: #ffffff;
  box-shadow: var(--ay-shadow);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.ay-feature-card-weather:hover {
  border-color: #a9c5fa;
  box-shadow: 0 12px 32px rgba(38, 73, 135, 0.15);
  transform: translateY(-2px);
}

.ay-feature-card-weather:active {
  transform: scale(0.99);
}

.ay-feature-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ay-feature-art::before,
.ay-feature-art::after {
  position: absolute;
  border-radius: 50%;
  content: '';
}

.ay-feature-art::before {
  width: 110px;
  height: 110px;
  right: 15px;
  bottom: -42px;
  background: rgba(255, 255, 255, 0.18);
}

.ay-feature-art::after {
  width: 60px;
  height: 60px;
  top: -21px;
  left: -19px;
  background: rgba(255, 255, 255, 0.12);
}

.ay-feature-art svg {
  width: 57px;
  height: 57px;
  position: relative;
  z-index: 2;
  stroke-width: 2.4;
}

.ay-feature-card-weather .ay-feature-art {
  color: #ffffff;
  background: linear-gradient(145deg, #2f75e9, #1744a9);
}

.ay-feature-card-petrol .ay-feature-art {
  color: #92400e;
  background: linear-gradient(145deg, #fde68a, #f6b94b);
}

.ay-feature-card-dogs .ay-feature-art {
  color: #7c3e24;
  background: linear-gradient(145deg, #f5c8ae, #eaa47f);
}

.ay-feature-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 18px 18px 17px;
}

.ay-feature-content > strong {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--ay-font-display);
  font-size: clamp(21px, 5vw, 27px);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.05;
}

.ay-feature-content > span:not(.ay-live-badge):not(.ay-coming-badge):not(.ay-feature-link-text) {
  color: var(--ay-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ay-live-badge,
.ay-coming-badge {
  padding: 4px 7px;
  border-radius: var(--ay-radius-pill);
  font-family: var(--ay-font-display);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.9px;
  line-height: 1;
  text-transform: uppercase;
}

.ay-live-badge {
  color: #146c43;
  background: #dcf5e7;
}

.ay-live-badge::before {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: #18a65b;
  content: '';
}

.ay-coming-badge {
  color: #7a5a12;
  background: #f8edc7;
}

.ay-feature-link-text {
  margin-top: 10px;
  color: var(--ay-blue);
  font-family: var(--ay-font-display);
  font-size: 12px;
  font-weight: 900;
}

.ay-feature-card-coming {
  cursor: default;
}

.ay-feature-card-coming .ay-feature-link-text {
  color: #8a7443;
}

.ay-home-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 17px;
}

.ay-home-note-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--ay-blue);
  background: var(--ay-blue-light);
  font-family: var(--ay-font-display);
  font-size: 14px;
  font-weight: 900;
}

.ay-home-note p {
  margin: 0;
  color: var(--ay-muted);
  font-size: 12px;
  line-height: 1.55;
}

.ay-home-note strong {
  color: var(--ay-ink);
}

.ay-home-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 4px 2px;
  color: #8b95a7;
  font-size: 10px;
}

@media (min-width: 680px) {
  .ay-home-shell {
    padding-top: 22px;
  }

  .ay-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ay-feature-card-weather {
    grid-column: 1 / -1;
    grid-template-columns: 145px minmax(0, 1fr);
  }

  .ay-feature-card-coming {
    min-height: 235px;
    grid-template-columns: 1fr;
    grid-template-rows: 92px minmax(0, 1fr);
  }

  .ay-feature-card-coming .ay-feature-content {
    justify-content: flex-start;
  }

  .ay-feature-card-coming .ay-feature-art::before {
    right: 28%;
    bottom: -72px;
  }
}

@media (max-width: 600px) {
  .ay-home-hero {
    min-height: 365px;
    padding-top: 108px;
  }

  .ay-home-hero-stamp {
    width: 92px;
    height: 92px;
    top: 18px;
    right: 18px;
    font-size: 7px;
  }

  .ay-home-hero-stamp strong {
    font-size: 13px;
  }

  .ay-location-card {
    margin-left: 8px;
    margin-right: 8px;
  }

  .ay-home-section-heading {
    display: block;
  }

  .ay-section-location-note {
    max-width: none;
    margin-top: 7px;
    text-align: left;
  }
}

@media (max-width: 430px) {
  .ay-home-brand-tagline {
    display: none;
  }

  .ay-home-brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .ay-home-hero {
    min-height: 390px;
    border-radius: 24px;
  }

  .ay-home-hero h1 {
    letter-spacing: -1.4px;
  }

  .ay-location-search-wrap {
    grid-template-columns: minmax(0, 1fr) 66px;
    gap: 7px;
  }

  .ay-location-suggestions {
    right: 73px;
  }

  .ay-find-button {
    min-width: 66px;
    padding: 0 12px;
  }

  .ay-feature-card {
    min-height: 170px;
    grid-template-columns: 91px minmax(0, 1fr);
  }

  .ay-feature-art svg {
    width: 48px;
    height: 48px;
  }

  .ay-feature-content {
    padding-left: 15px;
  }

  .ay-home-footer {
    display: block;
    line-height: 1.6;
  }

  .ay-home-footer span {
    display: block;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Shared feature-page shell */
.ay-weather-page {
  --bg: var(--ay-bg);
  --card: var(--ay-surface);
  --ink: var(--ay-ink);
  --blue: var(--ay-blue);
  --blue-dark: var(--ay-blue-dark);
  --blue-light: var(--ay-blue-light);
  --mid: var(--ay-muted);
  --border: var(--ay-border);
  --highlight: var(--ay-highlight);
  --rust: var(--ay-rust);
  --shadow: var(--ay-shadow);
  --shadow-lg: var(--ay-shadow-lg);
  background:
    radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.18), transparent 34rem),
    linear-gradient(180deg, #e9f1fb 0, var(--ay-bg) 27rem, var(--ay-bg) 100%);
  color: var(--ay-ink);
  font-family: var(--ay-font-body);
}

.ay-weather-page .ay-weather-shell {
  width: min(100%, var(--ay-content-width));
  max-width: var(--ay-content-width);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px max(46px, env(safe-area-inset-bottom));
}

.ay-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 4px 2px 16px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ay-site-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.ay-site-brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(145deg, #3b82f6, #1746b3);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.28);
  font-family: var(--ay-font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.ay-site-brand-copy,
.ay-site-brand-name,
.ay-site-brand-tagline {
  display: block;
}

.ay-site-brand-name {
  overflow: hidden;
  color: var(--ay-ink);
  font-family: var(--ay-font-display);
  font-size: clamp(15px, 4.3vw, 19px);
  font-weight: 800;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ay-site-brand-name strong {
  color: var(--ay-blue);
  font-weight: 900;
}

.ay-site-brand-tagline {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ay-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.ay-weather-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 14px;
  padding: 10px 13px;
  border: 1px solid rgba(223, 230, 239, 0.88);
  border-radius: var(--ay-radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 3px 12px rgba(28, 45, 77, 0.06);
  font-family: var(--ay-font-display);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.ay-weather-home-link {
  color: var(--ay-blue);
  text-decoration: none;
}

.ay-weather-section-label {
  color: var(--ay-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ay-weather-page .search-card.ay-card {
  border-color: rgba(223, 230, 239, 0.78);
  border-radius: var(--ay-radius-lg);
  box-shadow: var(--ay-shadow);
}

.ay-site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 4px 2px;
  color: #8b95a7;
  font-size: 10px;
}

@media (max-width: 430px) {
  .ay-site-brand-tagline {
    display: none;
  }

  .ay-site-brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .ay-site-header-actions {
    gap: 7px;
  }

  .ay-weather-clock {
    min-width: 41px;
    font-size: 14px;
  }

  .ay-site-footer {
    display: block;
    line-height: 1.6;
  }

  .ay-site-footer span {
    display: block;
  }
}

/* Weather location component */
.ay-weather-location-card {
  position: relative;
  z-index: 20;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(223, 230, 239, 0.78);
  border-radius: var(--ay-radius-lg);
  background: var(--ay-surface);
  box-shadow: var(--ay-shadow);
}

.ay-weather-location-card .ay-saved-location {
  min-height: 82px;
}

.ay-weather-location-card .ay-location-button {
  border: 0;
}

.ay-weather-location-card .ay-location-suggestions {
  z-index: 120;
}

@media (max-width: 430px) {
  .ay-weather-location-card {
    padding: 14px;
  }

  .ay-weather-location-card .ay-saved-location {
    gap: 10px;
    padding: 12px;
  }

  .ay-weather-location-card .ay-saved-location-pin {
    width: 40px;
    height: 40px;
  }
}
