@layer reset, base, layout, components, states;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { color-scheme: light; scroll-behavior: smooth; }
  body, h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
  ul, ol { margin: 0; padding: 0; }
  img { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; }
  address { font-style: normal; }
}

@layer base {
  :root {
    --bcn-primary: #2F1747;
    --bcn-accent: #FF5C35;
    --bcn-soft: #F3D24F;
    --bcn-bg: #F7F4F8;
    --bcn-paper: #FFFFFF;
    --bcn-text: #17131B;
    --bcn-muted: #655E6A;
    --bcn-line: #BFB7C3;
    --bcn-display: 'Archivo SemiCondensed', 'Arial Narrow', Arial, sans-serif;
    --bcn-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    --shell: min(100% - 40px, 1240px);
    --rule: 1px solid var(--bcn-line);
  }
  body { min-width: 320px; overflow-x: hidden; background: var(--bcn-bg); color: var(--bcn-text); font-family: var(--bcn-body); font-size: 1.0625rem; line-height: 1.55; text-rendering: optimizeLegibility; }
  h1, h2, h3 { font-family: var(--bcn-display); font-weight: 800; line-height: .94; text-wrap: balance; }
  h1 { font-size: clamp(3rem, 7vw, 6.8rem); letter-spacing: -.055em; }
  h2 { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.04em; }
  h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -.02em; }
  a { color: inherit; text-decoration-thickness: .09em; text-underline-offset: .18em; }
  button { border: 0; cursor: pointer; }
  .shell { width: var(--shell); margin-inline: auto; }
  .eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .11em; line-height: 1.2; text-transform: uppercase; }
  .prose { max-width: 68ch; }
  .prose > * + * { margin-top: 1em; }
  .prose h2, .prose h3 { margin-top: 1.8em; padding-top: .45em; border-top: 3px solid var(--bcn-accent); }
  .prose ul, .prose ol { padding-left: 1.2em; }
  .prose--large { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; }
  .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: fixed; z-index: 100; left: 1rem; top: 1rem; transform: translateY(-200%); background: var(--bcn-soft); color: var(--bcn-text); padding: .75rem 1rem; font-weight: 800; }
  .skip-link:focus { transform: none; }
}

@layer layout {
  .site-header { position: relative; z-index: 20; background: var(--bcn-bg); border-bottom: 2px solid var(--bcn-primary); }
  .site-header__inner { min-height: 72px; display: flex; align-items: stretch; justify-content: space-between; gap: 2rem; }
  .brand { display: inline-flex; align-items: stretch; min-width: 158px; text-decoration: none; font-family: var(--bcn-display); font-size: 1.75rem; font-weight: 900; line-height: 1; }
  .brand span { display: grid; place-items: center; padding: .65rem .75rem; }
  .brand__bcn { background: var(--bcn-primary); color: white; }
  .brand__tria { position: relative; background: var(--bcn-accent); color: var(--bcn-text); clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px); }
  .primary-nav { display: flex; align-items: stretch; flex-wrap: wrap; justify-content: flex-end; }
  .primary-nav a { display: grid; place-items: center; min-height: 44px; padding: .75rem 1rem; border-left: var(--rule); font-size: .9rem; font-weight: 700; text-decoration: none; }
  .primary-nav .business-nav-cta { background: var(--bcn-soft); color: var(--bcn-text); }
  .site-footer { margin-top: 5rem; padding: 2.5rem 0 3rem; background: var(--bcn-primary); color: white; }
  .site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
  .site-footer nav { display: grid; align-content: start; gap: .65rem; }
  .site-footer a { width: fit-content; }
  .brand--footer { margin-bottom: 1rem; }
  .site-footer__location { color: var(--bcn-soft); font-weight: 700; }

  .home-crossing { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr); align-items: stretch; border-inline: 1px solid var(--bcn-primary); }
  .home-search-panel { min-height: 430px; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5rem); background: var(--bcn-primary); color: white; }
  .home-search-panel h1 { max-width: 8ch; margin: .4rem 0 2rem; }
  .home-city-window { overflow: hidden; background: var(--bcn-primary); }
  .home-city-window img { width: 100%; height: 100%; object-fit: cover; }
  .home-city-window--lead { min-height: 430px; clip-path: polygon(32px 0, 100% 0, 100% 100%, 0 100%, 0 32px); }
  .home-decisions { display: grid; grid-template-columns: 7fr 5fr; grid-template-areas: 'categories middle' 'rankings rankings' 'last last'; border-inline: 1px solid var(--bcn-primary); }
  .street-index { grid-area: categories; padding: 3rem; }
  .home-city-window--middle { grid-area: middle; min-height: 480px; }
  .ranking-board { grid-area: rankings; display: grid; grid-template-columns: 4fr 8fr; background: var(--bcn-primary); color: white; }
  .home-city-window--last { grid-area: last; height: clamp(180px, 25vw, 340px); border-top: 1px solid var(--bcn-primary); }
  .section-heading { display: grid; gap: 1rem; margin-bottom: 2rem; }
  .section-heading--dark { align-content: start; margin: 0; padding: 3rem; border-right: 1px solid rgba(255,255,255,.4); }
  .text-link { width: fit-content; font-weight: 800; }

  .ranking-hero { display: grid; grid-template-columns: 7fr 5fr; min-height: 480px; border-inline: 1px solid var(--bcn-primary); }
  .ranking-hero__copy { padding: clamp(2rem, 5vw, 4.5rem); background: var(--bcn-primary); color: white; }
  .ranking-hero__copy h1 { margin: .5rem 0 2rem; }
  .ranking-intro { font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
  .ranking-hero__media { min-height: 340px; overflow: hidden; clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%, 0 34px); }
  .ranking-hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .ranking-hero__no-image { height: 100%; display: grid; place-content: center; background: var(--bcn-soft); color: var(--bcn-primary); font-family: var(--bcn-display); font-size: clamp(3rem, 8vw, 8rem); font-weight: 900; line-height: .72; text-transform: uppercase; }
  .ordered-results { border-inline: 1px solid var(--bcn-primary); }
  .ordered-results > ol { list-style: none; }
  .ordinal-record { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-bottom: 2px solid var(--bcn-primary); container-type: inline-size; }
  .ordinal-record__number { padding: 2rem .75rem; border-right: 2px solid var(--bcn-primary); color: var(--bcn-accent); font-family: var(--bcn-display); font-size: clamp(3rem, 6vw, 6rem); font-weight: 900; font-variant-numeric: tabular-nums; line-height: .8; }
  .ordinal-record__body { min-width: 0; padding: clamp(1.5rem, 4vw, 3.5rem); }
  .ordinal-record__identity { display: flex; justify-content: space-between; align-items: start; gap: 1.5rem; margin-bottom: 1.5rem; }
  .ordinal-record__identity > div { min-width: 0; flex: 1 1 auto; }
  .ordinal-record__identity h2 { max-width: min(28ch, 100%); overflow-wrap: anywhere; }
  .ordinal-record__identity > .rating { flex: 0 0 auto; }
  .business-category { margin-bottom: .45rem; color: var(--bcn-muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .ordinal-record__grid { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 2rem; }
  .ordinal-record__grid:has(.ordinal-record__content:only-child) { grid-template-columns: 1fr; }
  .business-image { min-height: 220px; overflow: hidden; }
  .business-image img { width: 100%; height: 100%; object-fit: cover; }
  .ordinal-record__facts { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.75rem; padding-top: 1rem; border-top: var(--rule); font-size: .95rem; }
  .ordinal-record__facts address { flex: 1 1 300px; }
  .profile-link { margin-left: auto; font-weight: 800; }
  .ranking-guidance { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; border-inline: 1px solid var(--bcn-primary); }
  .methodology-note, .guide-section { grid-column: 2 / 12; padding: clamp(2rem, 5vw, 4rem) 0; border-bottom: 2px solid var(--bcn-primary); }
  .methodology-note { font-size: 1.2rem; border-left: 8px solid var(--bcn-accent); padding-left: 2rem; }
  .guide-section > h2 { max-width: 16ch; margin-bottom: 2rem; }
  .guide-section--map > .map-section { margin: 0; padding: 0; border: 0; }
  .guide-section--map .section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
  .guide-section--map .section-label { margin: 0 0 .35rem; color: var(--bcn-accent); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
  .guide-section--map .section-heading-row h2 { max-width: 16ch; }
  .guide-section--map .map-copy { max-width: 72ch; margin-bottom: 1.25rem; }
  .guide-section--map .map-embed { position: relative; min-height: 320px; overflow: hidden; border: 2px solid var(--bcn-primary); background: var(--bcn-surface); }
  .guide-section--map .map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }
  .guide-section--map .map-note { margin: .75rem 0 0; color: var(--bcn-muted); font-size: .84rem; }
  .service-register { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--bcn-primary); }
  .service-register article { padding: 1.5rem; border-right: var(--rule); border-bottom: var(--rule); }
  .service-register article:nth-child(even) { border-right: 0; }
  .service-register h3 { margin-bottom: .75rem; }
  .guide-section--choose > ol { list-style: none; counter-reset: choose; }
  .guide-section--choose li { counter-increment: choose; display: grid; grid-template-columns: 58px 1fr; gap: 1rem; padding: 1.25rem 0; border-top: var(--rule); }
  .guide-section--choose li::before { content: counter(choose, decimal-leading-zero); color: var(--bcn-accent); font-family: var(--bcn-display); font-size: 2rem; font-weight: 900; }
  .faq-register details { border-top: var(--rule); }
  .faq-register summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-family: var(--bcn-display); font-size: 1.35rem; font-weight: 800; }
  .faq-register details .prose { padding: 0 0 1.5rem; }

  .business-profile { border-inline: 1px solid var(--bcn-primary); }
  .business-facade { display: grid; grid-template-columns: 7fr 5fr; min-height: 420px; background: var(--bcn-primary); color: white; }
  .business-facade__title { align-self: end; padding: clamp(2rem, 5vw, 4rem); }
  .business-facade__title h1 { max-width: 13ch; }
  .business-facade__title p { margin-bottom: .75rem; color: var(--bcn-soft); font-weight: 800; }
  .business-facade figure { overflow: hidden; clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%, 0 34px); }
  .business-facade img { width: 100%; height: 100%; object-fit: cover; }
  .profile-layout { display: grid; grid-template-columns: 8fr 4fr; }
  .profile-main { padding: clamp(2rem, 5vw, 4rem); }
  .profile-description > .eyebrow { margin-bottom: 1rem; }
  .profile-facts { border-left: 2px solid var(--bcn-primary); }
  .profile-facts section { padding: 2rem; border-bottom: 2px solid var(--bcn-primary); }
  .profile-facts h2 { margin-bottom: 1.25rem; font-size: 1.7rem; }
  .fact-line { display: grid; gap: .2rem; padding: .8rem 0; border-top: var(--rule); }
  .fact-line > span { color: var(--bcn-muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
  .map-link { display: inline-block; margin-top: 1rem; font-weight: 800; }
  .profile-reviews { margin-top: 3rem; padding: 2rem 0 2rem 1.5rem; border-left: 8px solid var(--bcn-accent); }
  .review-count { margin-top: .5rem; }
  .profile-plus { min-height: 1px; border-top: 2px solid var(--bcn-primary); }
  .profile-plus:has(.plus-register) { display: grid; grid-template-columns: 4fr 8fr; padding: clamp(2rem, 5vw, 4rem); background: var(--bcn-soft); }
  .plus-register > div { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--bcn-text); }
  .plus-register dt { font-weight: 800; text-transform: capitalize; }

  .compact-heading { display: grid; grid-template-columns: 4fr 8fr; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border-inline: 1px solid var(--bcn-primary); border-bottom: 2px solid var(--bcn-primary); }
  .compact-heading .eyebrow { grid-column: 1 / -1; }
  .category-crossing { border-inline: 1px solid var(--bcn-primary); }
  .category-crossing ol, .category-rankings ol { list-style: none; }
  .category-crossing li { display: grid; grid-template-columns: 72px minmax(120px, 2fr) minmax(0, 7fr); min-height: 150px; border-bottom: 2px solid var(--bcn-primary); }
  .category-crossing__number { display: grid; place-items: center; border-right: 1px solid var(--bcn-primary); color: var(--bcn-accent); font-family: var(--bcn-display); font-size: 2rem; font-weight: 900; }
  .category-crossing figure { min-width: 0; overflow: hidden; border-right: 1px solid var(--bcn-primary); }
  .category-crossing figure img { width: 100%; height: 100%; object-fit: cover; }
  .category-crossing__body { min-width: 0; display: grid; align-content: center; padding: 1.5rem 2rem; }
  .category-crossing__body > a, .category-crossing__body > .gated-item { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--bcn-display); font-size: clamp(1.6rem, 3vw, 3rem); font-weight: 800; line-height: 1; text-decoration: none; }
  .category-crossing__intro { margin-top: .75rem; }

  .category-page { display: grid; grid-template-columns: 4fr 8fr; border-inline: 1px solid var(--bcn-primary); }
  .category-plate { align-self: start; padding: clamp(2rem, 4vw, 3.5rem); background: var(--bcn-primary); color: white; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%); }
  .category-plate h1 { margin: .5rem 0 2rem; font-size: clamp(3rem, 6vw, 6rem); }
  .category-rankings { border-left: 2px solid var(--bcn-primary); }
  .category-rankings li { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 5fr); min-height: 180px; border-bottom: 2px solid var(--bcn-primary); }
  .category-rankings figure { overflow: hidden; }
  .category-rankings figure img { width: 100%; height: 100%; object-fit: cover; }
  .category-rankings__body { display: grid; align-content: center; padding: 1.5rem 2rem; }
  .category-rankings__number { color: var(--bcn-accent); font-family: var(--bcn-display); font-size: 1.3rem; font-weight: 900; }
  .category-rankings__body > a, .category-rankings__body > .gated-item { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--bcn-display); font-size: clamp(1.5rem, 3vw, 2.7rem); font-weight: 800; line-height: 1; text-decoration: none; }

  .commercial-portal { display: grid; grid-template-columns: 5fr 7fr; min-height: 650px; border-inline: 1px solid var(--bcn-primary); }
  .commercial-shutter { position: relative; display: grid; align-content: end; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); background: var(--bcn-primary); color: white; }
  .commercial-shutter::before { content: ''; position: absolute; inset: 0; opacity: .24; background: repeating-linear-gradient(to bottom, transparent 0 24px, white 25px 26px); }
  .commercial-shutter > * { position: relative; }
  .commercial-shutter h1 { margin-top: .5rem; font-size: clamp(4rem, 9vw, 9rem); }
  .commercial-shutter h1 span:last-child { color: var(--bcn-accent); }
  .commercial-shutter__place { color: var(--bcn-soft); font-weight: 800; }
  .commercial-counter { display: grid; align-content: center; padding: clamp(2rem, 6vw, 5rem); }
  .commercial-action { font-size: 1.15rem; }
  .commercial-account { margin-top: 2rem; padding: 1.25rem; border-block: 2px solid var(--bcn-primary); background: var(--bcn-soft); }
  .commercial-data > div { padding: 1rem 0; border-top: var(--rule); }
  .commercial-data dt { font-weight: 800; text-transform: capitalize; }

  .trust-heading { padding: clamp(1.75rem, 3.5vw, 3rem) 0; background: var(--bcn-primary); color: white; }
  .trust-heading h1 { max-width: 13ch; margin-top: .5rem; }
  .trust-body { display: grid; grid-template-columns: repeat(12, 1fr); padding-block: clamp(1.75rem, 3vw, 2.5rem); }
  .trust-document { grid-column: 3 / 10; font-size: 1.12rem; }
  .trust-document a { font-weight: 700; text-decoration: underline; }
  .trust-contact { background: var(--bcn-soft); color: var(--bcn-text); }
  .trust-contact .shell { min-height: 110px; display: flex; align-items: center; }
  .trust-contact a { font-family: var(--bcn-display); font-size: clamp(1.8rem, 4vw, 3.5rem); font-weight: 900; }
  .trust-document > section { padding-block: 1rem; border-bottom: var(--rule); }
  .trust-document > section:first-child { padding-top: 0; }
  .trust-document > section h2 { margin-top: 0; margin-bottom: .65rem; }
  .contact-panel { max-width: 760px; }
  .contact-form { display: grid; gap: 1rem; margin-top: 1.2rem; }
  .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .contact-form label { display: grid; gap: .35rem; font-weight: 700; }
  .contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 2px solid var(--bcn-primary); border-radius: 0; padding: .75rem; background: white; color: var(--bcn-text); }
  .contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--bcn-accent); outline-offset: 1px; }
  .privacy-check { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; }
  .privacy-check input { width: 1.15rem; margin-top: .2rem; }
  .contact-honeypot { position: absolute; left: -10000px; }
  .contact-submit { justify-self: start; padding: .8rem 1.15rem; background: var(--bcn-accent); color: var(--bcn-text); font-weight: 900; }
  .contact-status { min-height: 1.5rem; }
}

@layer components {
  .crossing-search { position: relative; }
  .crossing-search label { display: block; margin-bottom: .5rem; font-size: .85rem; font-weight: 800; }
  .crossing-search__control { position: relative; display: grid; grid-template-columns: 1fr auto; background: white; color: var(--bcn-text); box-shadow: 0 0 0 2px transparent; transition: box-shadow 150ms ease; }
  .crossing-search__control::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--bcn-accent); transform: scaleX(0); transform-origin: left; transition: transform 150ms ease; pointer-events: none; }
  .crossing-search__control:focus-within { box-shadow: 0 0 0 3px var(--bcn-primary); }
  .crossing-search__control:focus-within::after { transform: scaleX(1); }
  .crossing-search input { min-width: 0; min-height: 66px; padding: .8rem 1rem; border: 0; border-radius: 0; outline: 0; background: white; color: var(--bcn-text); font-size: clamp(1.05rem, 2vw, 1.4rem); appearance: none; }
  .crossing-search input::-webkit-search-cancel-button { appearance: none; }
  .crossing-search button { min-width: 112px; padding: .75rem 1rem; border: 0; background: var(--bcn-accent); color: var(--bcn-text); clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px); font-weight: 900; }
  .crossing-search__options { position: absolute; z-index: 20; top: calc(100% - 1.5rem); left: 0; right: 0; max-height: min(360px, 52vh); overflow-y: auto; border: 3px solid var(--bcn-primary); border-top: 0; background: white; color: var(--bcn-text); box-shadow: 9px 9px 0 rgba(47, 23, 71, .22); }
  .crossing-search__options[hidden] { display: none; }
  .crossing-search__options a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: .7rem 1rem; border-top: 1px solid rgba(47, 23, 71, .18); color: inherit; font-weight: 750; text-decoration: none; }
  .crossing-search__options a:hover, .crossing-search__options a:focus-visible, .crossing-search__options a[aria-selected='true'] { outline: 0; background: var(--bcn-accent); }
  .search-status { min-height: 1.5em; margin-top: .5rem; font-size: .9rem; }
  .street-index__list { list-style: none; columns: 2; column-gap: 0; border-top: 2px solid var(--bcn-primary); }
  .street-index__list li { break-inside: avoid; border-bottom: var(--rule); }
  .street-index__list a, .street-index__list .gated-item { min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem .75rem; text-decoration: none; }
  .street-index__list a { font-weight: 700; }
  .gated-item { color: var(--bcn-muted); }
  .gated-item small { font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .ranking-board__list { list-style: none; }
  .ranking-board__list li { display: grid; grid-template-columns: minmax(0, 180px) 1fr; min-height: 108px; border-bottom: 1px solid rgba(255,255,255,.35); }
  .ranking-board__image { overflow: hidden; }
  .ranking-board__image img { width: 100%; height: 100%; object-fit: cover; }
  .ranking-board__copy { min-width: 0; display: grid; align-content: center; gap: .3rem; padding: 1rem 1.25rem; }
  .ranking-board__copy > a, .ranking-board__copy > .gated-item { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--bcn-display); font-size: clamp(1.2rem, 2.2vw, 2rem); font-weight: 800; line-height: 1; text-decoration: none; }
  .ranking-board__copy > small { color: #D9CEDF; }
  .rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-variant-numeric: tabular-nums; }
  .rating__stars { position: relative; display: inline-block; color: var(--bcn-line); letter-spacing: .08em; line-height: 1; }
  .rating__fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--bcn-soft); white-space: nowrap; }
  .rating--large { margin-top: .75rem; font-size: 1.45rem; }
  .decision-block { margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--bcn-primary); }
  .decision-block h2, .decision-block h3 { margin-bottom: .75rem; font-size: 1.25rem; }
  .decision-block ul { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; list-style: square inside; }
  .decision-block--best { border-color: var(--bcn-accent); }
  .practical-note { margin-top: 1.5rem; padding: 1rem; background: var(--bcn-soft); }
  .record-plus { margin-top: 1.5rem; padding: 1rem; border-left: 5px solid var(--bcn-soft); }
  .record-plus > dl > div, .nested-data > div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 1rem; padding: .5rem 0; border-top: var(--rule); }
  .record-plus dt, .nested-data dt { font-weight: 800; text-transform: capitalize; }
}

@layer states {
  a, button, input, summary { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
  a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 4px solid var(--bcn-accent); outline-offset: 3px; }
  .primary-nav a:hover, .primary-nav a:focus-visible { background: var(--bcn-soft); color: var(--bcn-text); }
  .primary-nav .business-nav-cta:hover, .primary-nav .business-nav-cta:focus-visible { background: var(--bcn-accent); }
  .street-index__list a:hover, .street-index__list a:focus-visible { background: var(--bcn-primary); color: white; }
  .ranking-board__copy > a:hover, .ranking-board__copy > a:focus-visible { color: var(--bcn-soft); }
  .ordinal-record:focus-within .ordinal-record__number, .ordinal-record:hover .ordinal-record__number { background: var(--bcn-accent); color: var(--bcn-text); }
  .category-crossing li:focus-within, .category-crossing li:hover, .category-rankings li:focus-within, .category-rankings li:hover { background: var(--bcn-soft); }
  .is-gated { background: #ECE8EE; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 24px, 760px); }
  .site-header__inner { min-height: 64px; }
  .primary-nav { overflow-x: auto; flex-wrap: nowrap; justify-content: start; scrollbar-width: thin; }
  .primary-nav a { flex: 0 0 auto; padding-inline: .75rem; }
  .home-crossing { grid-template-columns: 1fr; }
  .home-search-panel { min-height: 360px; }
  .home-city-window--lead { min-height: 220px; clip-path: none; }
  .home-decisions { grid-template-columns: 1fr; grid-template-areas: 'categories' 'middle' 'rankings' 'last'; }
  .home-city-window--middle { min-height: 220px; max-height: 300px; }
  .ranking-board { grid-template-columns: 1fr; }
  .section-heading--dark { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.4); }
  .ranking-hero { grid-template-columns: 1fr; min-height: 0; }
  .ranking-hero__media { min-height: 230px; max-height: 330px; clip-path: none; }
  .ordinal-record { grid-template-columns: 72px minmax(0,1fr); }
  .ordinal-record__number { padding: 1.5rem .5rem; }
  .ordinal-record__grid { grid-template-columns: 1fr; }
  .business-image { max-height: 340px; }
  .ranking-guidance { display: block; }
  .methodology-note, .guide-section { margin-inline: 1.5rem; }
  .business-facade { grid-template-columns: 1fr; min-height: 0; }
  .business-facade figure { order: -1; min-height: 280px; max-height: 420px; clip-path: none; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-facts { border-left: 0; border-top: 2px solid var(--bcn-primary); }
  .profile-plus:has(.plus-register) { grid-template-columns: 1fr; gap: 2rem; }
  .compact-heading { grid-template-columns: 1fr; }
  .category-page { grid-template-columns: 1fr; }
  .category-plate { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }
  .category-rankings { border-left: 0; }
  .commercial-portal { grid-template-columns: 1fr; min-height: 0; }
  .commercial-shutter { min-height: 280px; }
  .trust-document { grid-column: 2 / 12; }
}

@media (max-width: 640px) {
  :root { --shell: 100%; }
  body { font-size: 1rem; }
  .site-header__inner { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr); }
  .brand { min-width: 132px; font-size: 1.45rem; }
  .brand span { padding: .55rem .6rem; }
  .primary-nav a { font-size: .8rem; border-left: 0; border-right: var(--rule); }
  .home-search-panel { min-height: 320px; padding: 1.5rem; }
  .home-search-panel h1 { max-width: 9ch; margin-bottom: 1.5rem; font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .crossing-search__control { grid-template-columns: 1fr; }
  .crossing-search button { min-height: 52px; clip-path: none; }
  .home-city-window--lead, .home-city-window--middle { min-height: 150px; max-height: 190px; }
  .home-city-window--last { height: 170px; }
  .street-index { padding: 2rem 1rem; }
  .street-index__list { columns: 1; }
  .street-index__list a, .street-index__list .gated-item { min-height: 48px; }
  .section-heading--dark { padding: 2rem 1rem; }
  .ranking-board__list li { grid-template-columns: 92px 1fr; min-height: 96px; }
  .ranking-hero__copy { padding: 2rem 1rem; }
  .ranking-hero__copy h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .ranking-hero__media { min-height: 180px; max-height: 240px; }
  .ordinal-record { grid-template-columns: 52px minmax(0,1fr); }
  .ordinal-record__number { padding: 1.25rem .3rem; font-size: 2.3rem; }
  .ordinal-record__body { padding: 1.25rem 1rem; }
  .ordinal-record__identity { display: grid; }
  .ordinal-record__identity h2 { max-width: none; font-size: 2rem; overflow-wrap: anywhere; }
  .business-image { min-height: 180px; max-height: 260px; }
  .ordinal-record__facts { display: grid; }
  .profile-link { margin-left: 0; }
  .methodology-note, .guide-section { margin-inline: 1rem; }
  .methodology-note { padding-left: 1rem; }
  .service-register { grid-template-columns: 1fr; }
  .service-register article { border-right: 0; }
  .business-facade figure { min-height: 220px; }
  .business-facade__title, .profile-main, .profile-facts section { padding: 1.5rem 1rem; }
  .business-facade__title h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .profile-plus:has(.plus-register) { padding: 2rem 1rem; }
  .plus-register > div, .record-plus > dl > div, .nested-data > div { grid-template-columns: 1fr; gap: .25rem; }
  .compact-heading { padding: 2rem 1rem; }
  .category-crossing li { grid-template-columns: 48px minmax(0,1fr); min-height: 108px; }
  .category-crossing figure { display: none; }
  .category-crossing__body { padding: 1rem; }
  .category-crossing__body > a, .category-crossing__body > .gated-item { font-size: 1.5rem; }
  .category-crossing__intro { font-size: .92rem; }
  .category-plate { padding: 2rem 1rem; }
  .category-plate h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .category-rankings li { grid-template-columns: 104px minmax(0,1fr); min-height: 132px; }
  .category-rankings__body { padding: 1rem; }
  .category-rankings__body > a, .category-rankings__body > .gated-item { font-size: 1.45rem; }
  .commercial-shutter { min-height: 220px; padding: 2rem 1rem; }
  .commercial-counter { padding: 2rem 1rem; }
  .trust-heading { padding: 2rem 1rem; }
  .trust-heading h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .trust-body { display: block; padding: 2rem 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-contact .shell { padding: 1rem; }
  .site-footer { margin-top: 3rem; padding-inline: 1rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

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