:root {
  color-scheme: light;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f8f9fa;
  --text: #202124;
  --muted: #5f6368;
  --subtle: #70757a;
  --line: #dadce0;
  --line-soft: #ebedef;
  --blue: #1a73e8;
  --blue-hover: #1558b0;
  --green: #188038;
  --chip: #f1f3f4;
  --shadow: 0 1px 6px rgba(32, 33, 36, 0.22);
  --shadow-strong: 0 2px 12px rgba(32, 33, 36, 0.24);
  --content-width: 1180px;
  --results-width: 690px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #202124;
  --surface: #303134;
  --surface-muted: #292a2d;
  --text: #e8eaed;
  --muted: #bdc1c6;
  --subtle: #9aa0a6;
  --line: #5f6368;
  --line-soft: #3c4043;
  --blue: #8ab4f8;
  --blue-hover: #aecbfa;
  --green: #81c995;
  --chip: #303134;
  --shadow: 0 1px 6px rgba(0, 0, 0, 0.48);
  --shadow-strong: 0 2px 14px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transition: background-color 160ms ease, color 160ms ease;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--surface-muted);
  color: var(--text);
  outline: none;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 22px;
}

.site-header__links,
.site-footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header__links a,
.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-header__links {
  font-size: 13px;
}

.site-header__links a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.home-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.home-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 104px;
}

.home-brand {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}

.brand-logo {
  display: block;
  width: min(292px, 68vw);
  height: auto;
  margin: 0;
  filter: drop-shadow(0 4px 10px rgba(32, 33, 36, 0.16));
}

.brand-mode-label {
  position: absolute;
  right: 4px;
  bottom: -7px;
  color: var(--blue);
  font-size: 16px;
  letter-spacing: 0.01em;
}

.search-shell {
  width: min(584px, 100%);
}

.search-combobox {
  position: relative;
  width: 100%;
}

.search-box {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.search-box:hover,
.search-box:focus-within {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.search-box[aria-expanded="true"] {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.suggestions-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  overflow: hidden;
  padding: 8px 0;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.suggestions-panel[hidden] {
  display: none;
}

.suggestion-option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.suggestion-option:hover,
.suggestion-option.is-active {
  background: var(--surface-muted);
}

.suggestion-option__icon {
  width: 18px;
  color: var(--subtle);
  font-size: 19px;
  text-align: center;
}

.search-box__icon {
  flex: 0 0 auto;
  color: var(--subtle);
}

.search-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.search-input::placeholder {
  color: var(--subtle);
}

.clear-search {
  display: none;
}

.clear-search.is-visible {
  display: inline-grid;
}

.search-submit {
  color: var(--blue);
}

.search-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.search-action {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
}

.search-action:hover,
.search-action:focus-visible {
  border-color: var(--line);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  outline: none;
}

.popular-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
}

.popular-searches__label {
  margin-right: 4px;
  font-size: 13px;
}

.query-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface);
  color: var(--blue);
  text-decoration: none;
}

.query-chip:hover,
.query-chip:focus-visible {
  border-color: var(--line);
  background: var(--surface-muted);
  outline: none;
}

.site-footer {
  background: var(--surface-muted);
  color: var(--muted);
}

.site-footer__region,
.site-footer__row {
  min-height: 46px;
  padding: 12px 30px;
}

.site-footer__region {
  border-bottom: 1px solid var(--line-soft);
}

.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.results-page {
  min-height: 100vh;
}

.results-header {
  border-bottom: 1px solid var(--line-soft);
  background: var(--page);
}

.results-header__main {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 28px;
  padding: 14px 28px 10px;
}

.results-logo {
  width: 112px;
  height: auto;
  flex: 0 0 auto;
}

.results-search {
  width: min(690px, calc(100vw - 260px));
}

.results-search .suggestions-panel,
.content-header__search .suggestions-panel {
  top: calc(100% + 5px);
}

.results-search .search-box {
  min-height: 46px;
  box-shadow: var(--shadow);
  border-color: transparent;
}

.results-header__tools {
  display: flex;
  margin-left: auto;
  align-items: center;
}

.results-tabs {
  display: flex;
  max-width: var(--content-width);
  padding-left: 168px;
  gap: 28px;
}

.results-tab {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
}

.results-tab[aria-current="page"] {
  color: var(--blue);
}

.results-tab[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--blue);
  content: "";
}

.results-layout {
  max-width: var(--content-width);
  padding: 18px 24px 48px 168px;
}

.results-column {
  width: min(var(--results-width), 100%);
}

.results-layout--profile {
  display: grid;
  max-width: 1320px;
  grid-template-columns: minmax(0, var(--results-width)) minmax(300px, 380px);
  gap: 48px;
}

.business-profile {
  position: sticky;
  top: 20px;
  overflow: hidden;
  align-self: start;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(32, 33, 36, 0.08);
}

.business-profile__banner {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 188px;
  place-items: center;
  background: linear-gradient(135deg, var(--surface-muted), var(--chip));
}

.business-profile__banner img {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-profile__banner::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  content: "";
}

.business-profile__banner-mark {
  color: var(--subtle);
  font-size: 64px;
  font-weight: 700;
}

.business-profile__source-label {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.business-profile__body {
  padding: 20px;
}

.business-profile__identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.business-profile__avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.business-profile__eyebrow,
.business-profile__category,
.business-profile__description,
.business-profile__note {
  margin: 0;
}

.business-profile__eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-profile h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.business-profile__category,
.business-profile__description,
.business-profile__note {
  color: var(--muted);
}

.business-profile__category {
  font-size: 12px;
}

.business-profile__description {
  margin-top: 16px;
  line-height: 1.55;
}

.business-profile__actions {
  display: grid;
  margin-top: 18px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.business-profile__actions a {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
}

.business-profile__primary {
  background: var(--blue);
  color: #fff;
}

.business-profile__secondary {
  border: 1px solid var(--line);
  color: var(--blue);
}

.business-profile__access {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.business-profile__access h3 {
  margin: 0 0 9px;
  font-size: 14px;
}

.business-profile__links {
  display: grid;
  gap: 2px;
}

.business-profile__links a {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: var(--blue);
  font-size: 13px;
  text-decoration: none;
}

.business-profile__links a:hover,
.business-profile__links a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.business-profile__links a span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-profile__note {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.45;
}

.results-layout--images {
  max-width: 1440px;
  padding-right: 32px;
}

.results-column--images {
  width: 100%;
}

.results-meta {
  margin-bottom: 22px;
  color: var(--subtle);
  font-size: 13px;
}

.result-card {
  margin-bottom: 30px;
}

.result-source {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 4px;
}

.result-favicon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.result-domain {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.result-url {
  display: block;
  max-width: 560px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-title {
  display: inline-block;
  margin: 3px 0 5px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
}

.result-title:hover,
.result-title:focus-visible {
  color: var(--blue-hover);
  text-decoration: underline;
  outline: none;
}

.result-snippet {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.image-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 28px 16px;
}

.image-result {
  min-width: 0;
}

.image-result__link {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.image-result__media {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-muted);
}

.image-result__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.image-result__link:hover .image-result__media img,
.image-result__link:focus-visible .image-result__media img {
  transform: scale(1.025);
}

.image-result__link:focus-visible {
  border-radius: 12px;
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.image-result__fallback {
  position: absolute;
  color: var(--subtle);
  font-size: 32px;
}

.image-result__title,
.image-result__source {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-result__title {
  margin-top: 9px;
  font-size: 14px;
}

.image-result__source {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 12px;
}

.image-result.is-broken .image-result__media {
  border: 1px solid var(--line-soft);
}

.search-state {
  padding: 42px 0;
}

.search-state__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--blue);
}

.search-state h1 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
}

.search-state p {
  max-width: 560px;
  margin: 0 0 22px;
  color: var(--muted);
}

.related-searches {
  margin-top: 42px;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}

.related-searches h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 400;
}

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

.related-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 24px;
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.related-item:hover,
.related-item:focus-visible {
  text-decoration: underline;
  outline: none;
}

.pagination {
  display: flex;
  margin: 42px 0 10px;
  align-items: flex-end;
  gap: 5px;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 34px;
  min-height: 38px;
  place-items: center;
  border-radius: 4px;
  color: var(--blue);
  text-decoration: none;
}

.pagination a:hover,
.pagination a:focus-visible {
  background: var(--surface-muted);
  outline: none;
}

.pagination .is-current {
  color: var(--text);
  font-weight: 700;
}

.pagination .is-disabled,
.pagination .ellipsis {
  color: var(--subtle);
}

.content-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 26px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--page) 94%, transparent);
  backdrop-filter: blur(10px);
}

.content-header__logo {
  width: 104px;
}

.content-header__search {
  width: min(520px, 55vw);
}

.content-header__search .search-box {
  min-height: 42px;
}

.content-header__nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 18px;
}

.content-header__nav a {
  color: var(--muted);
  text-decoration: none;
}

.content-header__nav a:hover,
.content-header__nav a[aria-current="page"] {
  color: var(--blue);
}

.content-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.content-hero {
  margin-bottom: 42px;
}

.content-eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-hero h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.content-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface);
}

.content-card h2,
.content-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
}

.content-card p {
  margin: 0;
  color: var(--muted);
}

.content-card__link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  text-decoration: none;
}

.content-card__link:hover {
  text-decoration: underline;
}

.content-section {
  margin-top: 48px;
}

.content-section h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 500;
}

.content-section p,
.content-section li {
  color: var(--muted);
  font-size: 16px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 22px;
  text-decoration: none;
}

.primary-link {
  background: var(--blue);
  color: #fff;
}

.secondary-link {
  border: 1px solid var(--line);
  color: var(--blue);
}

.primary-link:hover,
.secondary-link:hover {
  filter: brightness(0.96);
}

@media (max-width: 800px) {
  .site-header {
    padding: 6px 12px;
  }

  .site-header__links a:first-child {
    display: none;
  }

  .home-main {
    justify-content: flex-start;
    padding-top: 14vh;
  }

  .search-actions {
    display: none;
  }

  .results-header__main {
    display: grid;
    grid-template-columns: 86px 1fr 40px;
    gap: 10px;
    padding: 10px 12px;
  }

  .results-logo {
    width: 82px;
  }

  .results-search {
    width: 100%;
    min-width: 0;
  }

  .results-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 18px;
  }

  .results-layout {
    padding: 16px 18px 40px;
  }

  .results-layout--profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .business-profile {
    position: static;
  }

  .results-layout--images {
    padding-right: 18px;
  }

  .image-results {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 22px 12px;
  }

  .result-card {
    margin-bottom: 26px;
  }

  .result-title {
    font-size: 19px;
  }

  .related-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-header {
    display: grid;
    grid-template-columns: 88px 1fr 40px;
    gap: 10px;
    padding: 10px 12px;
  }

  .content-header__logo {
    width: 84px;
  }

  .content-header__search {
    width: 100%;
  }

  .content-header__nav {
    display: none;
  }

  .site-footer__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1150px) and (min-width: 801px) {
  .results-layout--profile {
    grid-template-columns: minmax(0, var(--results-width));
  }

  .business-profile {
    position: static;
  }
}

@media (max-width: 520px) {
  .home-main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand-logo {
    width: min(265px, 74vw);
  }

  .brand-mode-label {
    font-size: 14px;
  }

  .image-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 10px;
  }

  .popular-searches__label {
    width: 100%;
    text-align: center;
  }

  .results-header__main,
  .content-header {
    grid-template-columns: 72px 1fr 38px;
  }

  .results-logo,
  .content-header__logo {
    width: 68px;
  }

  .results-search .search-box,
  .content-header__search .search-box {
    padding: 0 8px 0 12px;
  }

  .results-search .search-submit,
  .content-header__search .search-submit {
    display: none;
  }

  .site-footer__region,
  .site-footer__row {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-footer__links {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}

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