/* Home ATF critical subset of proto.css. Full file still loads asynchronously. */

/* proto.css 14-377 */
:root {
  /* —— Brand —— */
  --fo-orange: #F58220;
  --fo-orange-dark: #E06D10;
  --fo-orange-light: #FFF4EB;
  --fo-blue: #4A90E2;
  --fo-blue-dark: #357ABD;
  --fo-blue-light: #E8F3FF;
  --fo-navy: #0F172A;

  /* —— Neutrals —— */
  --neutral-0: #FFFFFF;
  --neutral-50: #FAFBFC;
  --neutral-100: #F4F6F8;
  --neutral-200: #E8ECF0;
  --neutral-300: #D5DCE3;
  --neutral-400: #9AA3B0;
  --neutral-500: #6B7280;
  --neutral-600: #4B5563;
  --neutral-700: #374151;
  --neutral-800: #1A1A1A;
  --neutral-900: #0F172A;

  /* —— Surfaces —— */
  --fo-bg: var(--neutral-50);
  --fo-surface: var(--neutral-0);
  --bg-page-base: #f5f8fb;
  --bg-page:
    radial-gradient(ellipse 60% 35% at 100% 0%, rgba(74, 144, 226, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 30%, rgba(245, 130, 32, 0.05), transparent 45%),
    var(--bg-page-base);
  --bg-page-alt: var(--neutral-0);
  --bg-muted: var(--neutral-100);

  /* —— Text / border —— */
  --fo-text: var(--neutral-800);
  --fo-text-muted: var(--neutral-500);
  --fo-border: var(--neutral-200);
  --border-strong: var(--neutral-300);

  /* —— Semantic —— */
  --fo-success: #1F9D55;
  --fo-success-light: #ECFDF3;
  --fo-danger: #C0392B;
  --fo-danger-light: #FDECEA;
  --fo-warning: #C47B16;
  --fo-warning-light: #FFF6E8;
  --fo-info: var(--fo-blue);
  --fo-info-light: var(--fo-blue-light);

  /* Semantic aliases — orange = convert, blue = navigate */
  --color-action: var(--fo-orange);
  --color-action-dark: var(--fo-orange-dark);
  --color-nav: var(--fo-blue);
  --color-nav-dark: var(--fo-blue-dark);
  --color-primary: var(--fo-orange);
  --color-secondary: var(--fo-blue);
  --color-text: var(--fo-text);
  --color-muted: var(--fo-text-muted);
  --color-surface: var(--fo-surface);
  --color-bg: var(--fo-bg);
  --color-border: var(--fo-border);
  --color-success: var(--fo-success);
  --color-danger: var(--fo-danger);
  --color-warning: var(--fo-warning);
  --color-info: var(--fo-info);

  /* —— Typography —— */
  --fo-font: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --fo-font-display: var(--fo-font);
  --text-xs: 0.75rem;      /* 12 */
  --text-sm: 0.8125rem;    /* 13 */
  --text-base: 0.9375rem;  /* 15 */
  --text-md: 1rem;         /* 16 */
  --text-lg: 1.125rem;     /* 18 */
  --text-xl: 1.25rem;      /* 20 */
  --text-2xl: 1.5rem;      /* 24 */
  --text-3xl: 1.875rem;    /* 30 */
  --text-4xl: 2.25rem;     /* 36 */
  --text-section: clamp(1.3rem, 2.5vw, 1.65rem);
  --text-display: clamp(1.75rem, 4vw, 2.65rem);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --leading-tight: 1.25;
  --leading-snug: 1.4;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  --tracking-tight: -0.02em;
  --tracking-display: -0.03em;

  /* —— Spacing (8px grid) —— */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 88px;
  --section-y: clamp(40px, 6vw, 72px);
  --section-y-tight: clamp(32px, 4vw, 48px);
  --section-gap: var(--space-5);

  /* —— Radius —— */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-control: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;
  --fo-radius: 12px;
  --fo-radius-lg: var(--radius-xl);

  /* —— Shadows (restrained; keep existing card hover values) —— */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 8px 28px rgba(15, 23, 42, 0.08);
  --shadow-elevated: 0 20px 40px rgba(15, 23, 42, 0.12);
  --fo-shadow: var(--shadow-card);

  /* —— Focus / motion —— */
  --focus-color: var(--fo-blue);
  --focus-color-action: var(--fo-orange);
  --focus-ring: 0 0 0 3px rgba(74, 144, 226, 0.28);
  --focus-ring-action: 0 0 0 3px rgba(245, 130, 32, 0.28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --duration: 0.25s;
  --duration-fast: 0.15s;

  /* —— Controls —— */
  --control-height: 48px;
  --control-height-sm: 40px;
  --control-height-lg: 52px;
  --control-pad-x: 14px;
  --control-bg: var(--neutral-50);
  --control-bg-focus: var(--neutral-0);

  /* —— Layout —— */
  --fo-header: 72px;
  --container: 1180px;
  --container-wide: 1320px;
  --container-narrow: 760px;
  --container-pad: clamp(20px, 4vw, 40px);
  --fo-max: var(--container);

  /* Breakpoint reference (custom properties are not valid in @media) */
  --bp-sm: 480px;
  --bp-md: 720px;
  --bp-lg: 900px;
  --bp-xl: 1200px;
  --bp-2xl: 1440px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fo-font);
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  background: var(--bg-page);
  color: var(--fo-text);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 {
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--fo-navy);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--duration-fast);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}
#main-content:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }



/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--fo-header);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fo-border);
  width: 100%;
  max-width: 100%;
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1440px;
  width: 100%;
  min-width: 0;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  box-sizing: border-box;
}
.header__start {
  display: flex;
  align-items: center;
  gap: 72px;
  flex-shrink: 0;
}
.header__end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-inline-start: auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; flex-shrink: 0;
}
.brand__img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand__img--sm {
  width: 36px;
  height: 36px;
}
.brand__mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(145deg, var(--fo-blue), var(--fo-blue-dark));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px rgba(74,144,226,0.3);
}
.brand__mark svg { width: 18px; height: 18px; }
.footer .brand__img {
  width: 36px;
  height: 36px;
}
.nav {
  display: flex; align-items: center; gap: 4px 18px;
  font-size: 0.9rem; font-weight: 500; color: var(--fo-text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav a {
  padding: 6px 0; position: relative; transition: color var(--duration-fast);
  flex-shrink: 0; white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: var(--fo-text); }
.nav a.is-active::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0;
  height: 2px; background: var(--fo-orange); border-radius: 2px;
}
.header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-search,
.header-search__field,
.header-search__toggle,
.header__actions .locale,
.header__actions .header-icon,
.header__actions .user-chip,
.header__actions .menu-btn,
.header__actions > .btn {
  height: var(--control-height-sm);
  min-height: var(--control-height-sm);
  box-sizing: border-box;
  border-radius: var(--radius-control);
}
.header__actions > .btn.btn--sm { padding-block: 0; }
.header-menu { position: relative; display: flex; align-items: center; height: var(--control-height-sm); }
.header-menu > summary { list-style: none; cursor: pointer; }
.header-menu > summary::-webkit-details-marker { display: none; }
.header-menu__trigger { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 40px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--fo-border); border-radius: 10px; background: #fff; color: var(--fo-text-muted); font-size: .78rem; font-weight: 700; transition: background .15s, border-color .15s; }
.header-menu__trigger:hover, .header-menu[open] > .header-menu__trigger { background: var(--fo-bg); border-color: #cbd7e5; color: var(--fo-text); }
.header-menu__panel { position: absolute; z-index: 80; top: calc(100% + 9px); inset-inline-end: 0; min-width: 180px; padding: 6px; border: 1px solid var(--fo-border); border-radius: 13px; background: #fff; box-shadow: 0 16px 38px rgba(15,23,42,.14); }
.header-menu__panel a { display: flex; align-items: center; min-height: 38px; padding: 7px 10px; border-radius: 9px; color: var(--fo-text-muted); font-size: .82rem; font-weight: 600; }
.header-menu__panel a:hover, .header-menu__panel a.is-active { background: var(--fo-blue-light); color: var(--fo-blue-dark); }
.header-menu__panel a.is-danger { margin-top: 5px; padding-top: 9px; border-top: 1px solid var(--fo-border); border-radius: 0 0 9px 9px; color: var(--fo-danger); }
.header-menu__panel a.is-danger:hover { background: #fdecea; color: #a93226; }
.header-menu__panel form { margin: 0; }
.header-menu__panel button.is-danger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  margin-top: 5px;
  padding: 9px 10px 7px;
  border: 0;
  border-top: 1px solid var(--fo-border);
  border-radius: 0 0 9px 9px;
  background: none;
  color: var(--fo-danger);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.header-menu__panel button.is-danger:hover { background: #fdecea; color: #a93226; }
.header-menu__panel--compact { min-width: 132px; display: grid; gap: 5px; }
.header-menu__panel--compact a { border: 1px solid transparent; }
.header-menu__panel--compact a + a { margin-top: 0; }
.header-menu__panel--compact a.is-active { border-color: rgba(74,144,226,.22); }
.header .locale {
  display: flex; border: 1px solid var(--fo-border); border-radius: var(--radius-control);
  overflow: hidden; font-size: 0.75rem; font-weight: 600;
  flex-shrink: 0;
  align-self: center;
  height: var(--control-height-sm);
  box-sizing: border-box;
  line-height: 1;
}
.header .locale a {
  padding: 0 10px;
  height: 100%;
  min-height: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: var(--fo-text);
  text-decoration: none;
  background: #fff;
}
.header .locale a.is-active { background: var(--fo-orange); color: #fff; }
.menu-btn {
  display: none;
  width: var(--control-height-sm);
  height: var(--control-height-sm);
  padding: 0;
  border: 1px solid var(--fo-border);
  border-radius: var(--radius-control);
  background: #fff;
  cursor: pointer;
  color: var(--fo-text);
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  grid-template: 1fr / 1fr;
}
.menu-btn > .fo-icon { grid-area: 1 / 1; }
.menu-btn .fo-icon[hidden] { display: none !important; }
.menu-btn svg { width: 20px; height: 20px; display: block; }
.menu-btn:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

/* proto.css 389-501 — mobile header drawer (hidden until open) */
.mobile-nav[hidden] { display: none !important; }
.mobile-nav:not([hidden]) {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  z-index: 70;
  overflow: hidden;
  overscroll-behavior: none;
}
.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
  opacity: 0;
  touch-action: none;
  transition: opacity 0.2s ease;
}
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav__backdrop:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: -3px;
}
.mobile-nav__panel {
  position: absolute;
  inset-block-start: var(--fo-header);
  inset-block-end: 0;
  inset-inline-end: 0;
  width: min(88vw, 360px);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.2s ease;
}
html[dir="rtl"] .mobile-nav__panel {
  transform: translate3d(-100%, 0, 0);
}
.mobile-nav.is-open .mobile-nav__panel,
html[dir="rtl"] .mobile-nav.is-open .mobile-nav__panel {
  transform: translate3d(0, 0, 0);
}
.mobile-nav__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 16px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-nav__group {
  display: flex;
  flex-direction: column;
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--fo-border);
}
.mobile-nav__group:last-child { border-bottom: none; }
.mobile-nav__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fo-text-muted);
  padding: 8px 4px 4px;
  letter-spacing: 0.04em;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fo-text);
}
.mobile-nav form { margin: 0; }
.mobile-nav__logout {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #c0392b;
  text-align: start;
  cursor: pointer;
}
.mobile-nav a:hover,
.mobile-nav .mobile-nav__logout:hover { background: var(--bg-muted); }
.mobile-nav a.is-active {
  background: var(--fo-blue-light);
  color: var(--fo-blue-dark);
}
.mobile-nav a:focus-visible,
.mobile-nav .mobile-nav__logout:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}
.mobile-nav__foot {
  flex-shrink: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--fo-border);
}
@media (min-width: 721px) {
  .mobile-nav__foot { display: none; }
}
html.nav-open {
  overflow: visible;
  overscroll-behavior: none;
  touch-action: none;
}
html.nav-open .mobile-nav__body {
  touch-action: pan-y;
}
body.nav-locked {
  overflow: hidden;
  overscroll-behavior: none;
}
html.nav-open .header {
  position: sticky;
  top: 0;
  z-index: 80;
}

/* proto.css 507-586 */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fo-text);
  --btn-border: transparent;
  --btn-hover-bg: var(--bg-muted);
  --btn-focus: var(--focus-color-action);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height-sm);
  padding: 10px 18px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-control);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform var(--duration-fast), background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast), box-shadow var(--duration-fast), opacity var(--duration-fast);
}
.btn:hover { background: var(--btn-hover-bg); color: var(--btn-fg); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: 2px solid var(--btn-focus);
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"],
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn--primary,
.btn--orange {
  --btn-bg: var(--fo-orange);
  --btn-fg: #fff;
  --btn-border: transparent;
  --btn-hover-bg: var(--fo-orange-dark);
  --btn-focus: var(--focus-color-action);
}
.btn--secondary,
.btn--ghost {
  --btn-bg: var(--fo-surface);
  --btn-fg: var(--fo-text);
  --btn-border: var(--fo-border);
  --btn-hover-bg: var(--bg-muted);
  --btn-focus: var(--focus-color);
}
.btn--tertiary,
.btn--link,
.btn--text {
  --btn-bg: transparent;
  --btn-fg: var(--fo-text-muted);
  --btn-border: transparent;
  --btn-hover-bg: transparent;
  --btn-focus: var(--focus-color);
  min-height: auto;
  padding: 8px 6px;
  font-size: var(--text-sm);
}
.btn--tertiary:hover,
.btn--link:hover,
.btn--text:hover { color: var(--fo-blue-dark); }

.btn--white {
  --btn-bg: #fff;
  --btn-fg: var(--fo-blue-dark);
  --btn-border: transparent;
  --btn-hover-bg: var(--fo-blue-light);
  --btn-focus: var(--focus-color);
}

.btn--sm { min-height: 36px; padding: 8px 14px; font-size: var(--text-sm); }

/* proto.css 1053-1128 */
/* Hero — centered composition so content doesn’t hug the RTL edge */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 36, 0.45) 0%, rgba(10, 18, 36, 0.55) 40%, rgba(10, 18, 36, 0.82) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 56px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__kicker {
  display: inline-block; font-size: .85rem; font-weight: 500; opacity: .95;
  margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1);
}
.hero__title {
  font-size: clamp(1.85rem, 4.5vw, 2.85rem); font-weight: 700;
  line-height: 1.35;
  max-width: 18ch;
  margin: 0 auto 14px;
  text-wrap: balance;
}
.hero__lead {
  font-size: clamp(.95rem, 2vw, 1.12rem); opacity: .92;
  max-width: 34ch;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.compass {
  display: grid; grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.38fr) minmax(0, 0.24fr); gap: 8px;
  background: #fff; border-radius: 16px; padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  width: min(100%, 880px);
  min-height: 76px;
  margin-inline: auto;
  text-align: start;
  align-items: stretch;
  box-sizing: border-box;
}
.compass--sticky {
  box-shadow: var(--fo-shadow);
  border: 1px solid var(--fo-border);
  width: 100%;
  max-width: none;
}
.compass__field {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; border-radius: 10px; background: var(--fo-bg); min-width: 0;
}
.compass__label { font-size: .72rem; font-weight: 600; color: var(--fo-text-muted); }
.compass__field input, .compass__field select {
  border: none; background: transparent; color: var(--fo-text);
  outline: none; font-weight: 500; width: 100%; min-height: 28px;
}
.compass__submit {
  background: var(--fo-orange); color: #fff; border: none; border-radius: 12px;
  padding: 0 22px; font-weight: 700; font-size: 1rem; cursor: pointer;
  min-height: 56px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.compass__submit svg { width: 18px; height: 18px; flex-shrink: 0; }
.compass__submit:hover { background: var(--fo-orange-dark); }

/* proto.css 2582-2755 */
.auth-slot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-icon {
  position: relative;
  width: var(--control-height-sm);
  height: var(--control-height-sm);
  border-radius: var(--radius-control);
  border: 1px solid var(--fo-border);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--fo-orange);
  background: #fff;
  transition: background .15s, border-color .15s;
}
.header-favorite__count { position: absolute; top: -5px; inset-inline-start: -5px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: var(--fo-orange); color: #fff; font-size: .62rem; font-weight: 700; line-height: 1; direction: ltr; unicode-bidi: isolate; }
.header-favorite__count[hidden] { display: none; }
.header-icon:hover {
  background: var(--fo-orange-light);
  border-color: #f5d5b0;
}
.header-icon:focus-visible {
  background: var(--fo-orange-light);
  border-color: #f5d5b0;
}
.header-search {
  display: flex;
  align-items: center;
  flex: 0 0 280px;
  width: 280px;
  max-width: 280px;
  min-width: 240px;
  height: var(--control-height-sm);
  padding: 0;
  border: none;
  background: transparent;
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
}
.header-search__toggle { display: none; }
.header-search__field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: var(--control-height-sm);
  padding-inline-start: 10px;
  padding-inline-end: 4px;
  border: 1px solid var(--fo-border);
  border-radius: var(--radius-control);
  background: #fff;
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.header-search:focus,
.header-search:focus-visible {
  outline: none;
  box-shadow: none;
}
.header-search__field:focus-within {
  outline: none;
  background: #fff;
  border-color: var(--fo-border);
  box-shadow: none;
}
.header-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--fo-text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.header-search__input:focus,
.header-search__input:focus-visible {
  outline: none;
  box-shadow: none;
}
.header-search__input::placeholder {
  color: var(--fo-text-muted);
  font-weight: 400;
}
.header-search__btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--fo-orange);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.header-search__btn:hover,
.header-search__btn:focus,
.header-search__btn:focus-visible {
  outline: none;
  box-shadow: none;
  background: #f4f6f8;
}
.header-search .fo-icon { width: 18px; height: 18px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--control-height-sm);
  max-height: var(--control-height-sm);
  overflow: hidden;
  box-sizing: border-box;
  padding-block: 3px;
  padding-inline-start: 3px;
  padding-inline-end: 8px;
  margin: 0;
  border: 1px solid var(--fo-border);
  border-radius: var(--radius-control);
  background: #fff;
  max-width: 210px;
  transition: border-color .15s, background .15s;
}
.user-chip__chevron { margin-inline-start: 2px; color: var(--fo-text-muted); font-size: .72rem; transition: transform .18s ease; }
.user-menu[open] .user-chip__chevron { transform: rotate(180deg); }
.user-menu__panel { min-width: 190px; }
.user-chip:hover {
  border-color: var(--fo-blue);
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.15);
}
.user-chip__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8eef5;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}
.user-chip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-chip__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  min-width: 0;
}
.user-chip__name {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip__sub {
  font-size: 0.68rem;
  color: var(--fo-text-muted);
  font-weight: 500;
}
.mobile-nav__account {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--fo-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav__hello {
  font-size: 0.88rem;
  color: var(--fo-text-muted);
  padding: 8px 4px 4px;
}
.mobile-nav__account a[data-logout] {
  color: #c0392b;
}

/* proto.css 3422-3435 */
/* Shared icon glyph */
.fo-icon {
  display: inline-grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}
.fo-icon[hidden] { display: none !important; }
.fo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* proto.css 3511-3516 */
:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

.header-icon .fo-icon { width: 18px; height: 18px; }

/* proto.css 3316-3420 */
@media (max-width: 720px) {
  .header__actions .btn--ghost,
  .header__actions .btn--secondary,
  .header__actions .btn--primary,
  .header__actions .btn--link { display: none; }
  .user-chip__meta { display: none; }
  .user-chip__chevron { display: none; }
  .user-chip { padding: 4px; width: 40px; max-width: 40px; border-radius: 10px; }
  .compass { grid-template-columns: 1fr; }
  .compass__submit { width: 100%; min-height: 48px; }
  .cats, .places, .why { grid-template-columns: 1fr; }
  .partner, .app-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .partner__text, .app-band__text { max-width: none; }
  .store-btns { justify-content: center; }
  .store-badges { justify-content: center; }
  .hero__title { max-width: 14ch; }
  .hero__inner { padding: 40px 0 36px; }
  .hero { min-height: min(90vh, 640px); align-items: flex-end; }
}

@media (max-width: 1200px) {
  .header .nav { display: none; }
  .header .menu-btn { display: grid; place-items: center; }
  .header-search {
    flex: 0 1 220px;
    width: 220px;
    min-width: 180px;
    max-width: 220px;
  }
}
@media (max-width: 900px) {
  .header__inner { gap: 12px; }
  .header__start, .header__end { min-width: 0; }
  html { overflow-x: clip; }
  .header-search {
    position: static;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
  }
  .header-search__toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--fo-border);
    border-radius: 10px;
    background: #fff;
    color: var(--fo-orange);
    cursor: pointer;
    outline: none;
    box-shadow: none;
  }
  .header-search__toggle:hover,
  .header-search__toggle:focus-visible,
  .header-search.is-open .header-search__toggle {
    outline: none;
    border-color: var(--fo-border);
    background: #f4f6f8;
    box-shadow: none;
  }
  .header-search__field {
    display: none;
  }
  .header-search.is-open .header-search__field {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: var(--container-pad);
    z-index: 55;
    width: auto;
    height: 44px;
    margin: 0;
    padding-inline-start: 10px;
    padding-inline-end: 4px;
    border: 1px solid var(--fo-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }
  .header.is-search-open::after {
    content: "";
    position: absolute;
    top: 100%;
    inset-inline: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--fo-border);
    z-index: 54;
    pointer-events: none;
  }
  .header-search.is-open .header-search__field:focus-within {
    border-color: var(--fo-border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }
  .header-search.is-open .header-search__input {
    font-size: 16px;
    height: 40px;
  }
}
@media (max-width: 400px) {
  .header .brand { font-size: 0; gap: 0; }
}
