/* One shared navigation moves between the desktop header and mobile/rail host. */
.citizen-desktop-sidebar {display:none!important;}
.citizen-desktop-toolbar {display:none;}
.citizen-desktop-release,.citizen-release-tooltip,.citizen-desktop-city,.citizen-desktop-navigation,.citizen-mobile-search {display:none;}
.bottom a:is([data-search-nav],[href="#buscar"]) {display:none!important;}
.bottom a[hidden] {display:none!important;}
html[data-navigation-layout="bottom"] .bottom {grid-template-columns:repeat(var(--navigation-columns,3),minmax(0,1fr));}
.citizen-desktop-logo {display:flex;align-items:center;min-width:0;}
.citizen-desktop-logo img {display:block;width:100%;height:46px;object-fit:contain;}
.citizen-desktop-toolbar .sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
.citizen-desktop-toolbar a:focus-visible,.citizen-desktop-search:focus-within {outline:3px solid #1764b0;outline-offset:3px;}
.citizen-desktop-search {display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:48px;padding-left:14px;border:1px solid #7890a6;border-radius:12px;background:#fff;}
.citizen-desktop-search input {width:100%;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:16px;color:#082947;}
.citizen-desktop-search.is-applied-query input {font-weight:700;}
.citizen-desktop-search > .icon {flex-shrink:0;font-size:20px;color:#082947;}
.citizen-desktop-search button {display:grid;place-items:center;flex-shrink:0;width:48px;height:46px;border:0;border-radius:11px;background:var(--orange);color:#fff;cursor:pointer;}
.citizen-desktop-search button .icon {color:inherit;font-size:22px;}
/* Other mobile routes retain a visible search destination after removing its duplicate tab. */
@media(max-width:1023px){
 .frame > .citizen-desktop-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:21;min-height:68px;padding:10px 16px;border-bottom:1px solid #d9e5ef;background:#fff;}
 .citizen-desktop-brand {width:154px;min-width:0;}
 .citizen-desktop-toolbar .citizen-desktop-search {display:none;}
 .citizen-mobile-search {display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border-radius:12px;color:var(--orange);}
 .citizen-mobile-search .icon {font-size:25px;}
}
.frame > .sticky-head,.frame > .top {display:none!important;}
.frame:has(> .citizen-desktop-toolbar) :is(.account-family-brand,.account-visitor-brand-row > img,.help-screen .help-logo,.access-logo-wrap) {display:none;}
@media(min-width:1024px){
  :root {--desktop-sidebar:0px;--desktop-toolbar:104px;--desktop-edge:#d9e5ef;background:#f8fbfe;}
  html {scroll-padding-block:calc(var(--desktop-toolbar) + 16px) 24px;}
  body {padding-left:0;padding-top:var(--desktop-toolbar);}
  .frame {width:100%;max-width:1720px;min-height:calc(100dvh - var(--desktop-toolbar));margin:0 auto;box-shadow:none;background:#f8fbfe;}
  .frame > * {--u:1px;}
  .frame > .sticky-head,.frame > .top {display:none!important;}
  .frame > .citizen-desktop-toolbar {display:flex;align-items:center;gap:24px;position:fixed;inset:0 0 auto;z-index:22;height:var(--desktop-toolbar);padding:8px max(24px,calc((100vw - 1640px)/2));border-bottom:1px solid var(--desktop-edge);background:#fff;box-shadow:0 2px 8px #0d355b0a;}
  .citizen-desktop-brand {display:flex;position:relative;align-items:center;flex-shrink:0;width:260px;}
  html[data-navigation-layout="desktop"] .citizen-desktop-logo {width:100%;}
  html[data-navigation-layout="desktop"] .citizen-desktop-logo img {height:80px;}
  html[data-navigation-layout="desktop"] .citizen-release-tooltip {display:block;position:absolute;top:calc(100% + 8px);left:0;z-index:30;min-width:210px;padding:12px 16px;border:1px solid #d9e5ef;border-radius:12px;background:#fff;box-shadow:0 6px 20px #08294b20;visibility:hidden;opacity:0;pointer-events:none;}
  html[data-navigation-layout="desktop"] .citizen-release-tooltip::before {content:'';position:absolute;inset:-8px 0 auto;height:8px;}
  html[data-navigation-layout="desktop"] .citizen-desktop-brand:is(:hover,:focus-within) .citizen-release-tooltip {visibility:visible;opacity:1;pointer-events:auto;}
  html[data-navigation-layout="desktop"] .citizen-desktop-brand[data-release-tooltip-dismissed] .citizen-release-tooltip {visibility:hidden;opacity:0;pointer-events:none;}
  html[data-navigation-layout="desktop"] .citizen-desktop-release {display:flex;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:0;width:auto;min-height:0;margin:0;padding:0;border:0;text-align:left;color:#001728;font-size:11px;line-height:1.5;font-weight:400;opacity:.6;}
  .citizen-desktop-search {max-width:680px;margin:0 auto;}
  html[data-navigation-layout="desktop"] .citizen-desktop-navigation {display:block;flex-shrink:0;}
  .citizen-desktop-navigation > .bottom {position:static;inset:auto;display:flex;align-items:center;gap:4px;min-height:0;width:auto;height:auto;margin:0;padding:0;border-radius:0;background:transparent;box-shadow:none;}
  .citizen-desktop-navigation > .bottom a {display:flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:auto;min-width:76px;min-height:60px;padding:8px 10px;border-radius:12px;color:#082947;font-size:13px;font-weight:650;line-height:1.3;text-align:center;letter-spacing:0;}
  .citizen-desktop-navigation > .bottom a[aria-current="page"] {background:var(--orange);color:#fff;}
  .citizen-desktop-navigation > .bottom .icon {font-size:22px;color:inherit;}
  .citizen-desktop-navigation > .bottom .notification-icon {height:22px;}
  .citizen-desktop-navigation > .bottom .badge {min-width:18px;height:18px;font-size:10px;}
  .citizen-desktop-navigation > .bottom a:focus-visible {outline:3px solid #1764b0;outline-offset:2px;}
  html[data-navigation-layout="desktop"] .search-app .search-results-body > .result-filters:not([hidden]) {top:calc(var(--desktop-toolbar) + 16px);max-height:calc(100dvh - var(--desktop-toolbar) - 32px);}
  html[data-navigation-layout="desktop"] .frame > .ride-global-strip {left:0;right:0;bottom:16px;width:min(calc(100% - 32px),831px);}
  .preview-offline {position:relative;z-index:13;}
  /* Home: magazine rhythm from the reference, with real empty sections omitted. */
  html[data-citizen-home] #home {display:grid;gap:20px;padding:18px 24px 30px;background:linear-gradient(110deg,#f3f9ff,#e5f2ff);}
  #home > .citizen-links,#home > .campaigns,#home > .moments,#home [data-home-categories],#home .home-mobile-brand {display:none!important;}
  #home .home-mobile-intro {display:grid;gap:16px;}
  #home .home-primary-nav {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:12px 0;border:1px solid #fff;border-radius:18px;background:linear-gradient(130deg,#fff,#e4f0ff);box-shadow:0 2px 5px #0c355821;}
  #home .home-primary-nav a {display:flex;flex-direction:column;align-items:center;gap:6px;min-height:60px;justify-content:center;font-size:17px;font-weight:850;}
  #home .home-primary-nav a + a {border-left:1px solid #aec7e1;}
  #home .home-primary-nav .icon {font-size:31px;color:var(--orange);}
  #home .home-moment-banner {display:flex;position:relative;isolation:isolate;overflow:hidden;min-height:164px;border:1px solid #d5e5f5;border-radius:18px;background:#fff;box-shadow:0 2px 5px #0c355821;}
  #home .home-moment-banner > div {z-index:1;padding:18px 22px;width:67%;background:linear-gradient(90deg,#fff 65%,#ffffff00);}
  #home .home-moment-banner label {font-size:15px;}
  #home .home-moment-banner select {max-width:165px;margin-left:12px;border:1px solid #a4bdd6;border-radius:20px;padding:5px 10px;background:#f7fbff;color:#082947;font:700 14px Inter,sans-serif;}
  #home .home-moment-banner h2 {margin:7px 0 13px;font-size:30px;letter-spacing:-.04em;}
  #home .home-moment-banner a {display:inline-flex;border-radius:25px;padding:9px 20px;color:#fff;background:var(--orange);font-size:18px;font-weight:700;}
  #home .home-moment-banner img {position:absolute;inset:0 0 0 auto;width:52%;height:100%;object-fit:cover;}
  #home .section-head {padding:0;margin:0 0 13px;gap:12px;}
  #home .section-head h2 {gap:10px;font-size:27px;letter-spacing:-.035em;}
  #home .section-head h2 .icon {font-size:32px;color:var(--orange);}
  #home .section-head a {color:var(--orange);font-size:15px;font-weight:750;}
  #home .offer-grid,#home .photo-grid,#home .photo-grid.listing-grid,#home .company-track {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;padding:0;overflow:visible;}
  #home .offer,#home .price-card,#home .company {display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border:1px solid #cbdff2;border-radius:13px;padding:0 0 12px;background:linear-gradient(130deg,#fff,#edf6ff);color:#082947;box-shadow:0 2px 4px #123f6420;text-align:left;}
  #home .home-catalog-photo {width:100%;height:auto;aspect-ratio:1.5;border-radius:0;background:#e4edf6;}
  #home .home-catalog-photo img {width:100%;height:100%;object-fit:cover;}
  #home .home-catalog-photo > .icon {font-size:38px;color:#8097ad;}
  /* Identity cards are compact; product and classified photography keeps its own cover ratio. */
  #home .company-track {grid-template-columns:repeat(2,minmax(0,1fr));}
  #home .company {display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:12px;padding:12px;min-height:94px;}
  #home .company .home-catalog-photo {width:96px;height:68px;aspect-ratio:auto;border-radius:8px;}
  #home .company .home-catalog-photo img {object-fit:contain;}
  #home .company-track .company strong {margin:0;font-size:16px;overflow-wrap:anywhere;}
  #home [data-home-services] .price-card {display:grid;grid-template-columns:64px minmax(0,1fr);align-content:center;gap:5px 12px;padding:12px;min-height:96px;}
  #home [data-home-services] .price-card .home-catalog-photo {grid-column:1;grid-row:1/span 3;width:64px;height:64px;aspect-ratio:auto;margin:0;border-radius:12px;}
  #home [data-home-services] .price-card .home-catalog-photo img {object-fit:contain;}
  #home [data-home-services] .price-card > :is(strong,small) {grid-column:2;margin:0;overflow-wrap:anywhere;}
  #home [data-home-services] .price-card[data-home-provider-avatar] .home-catalog-photo {border-radius:50%;}
  #home [data-home-services] .price-card[data-home-provider-avatar] .home-catalog-photo img {object-fit:cover;}
  #home .offer-copy {display:grid;gap:5px;padding:10px 11px 0;}
  #home .offer h3,#home .price-card strong,#home .company strong {padding:0;font-size:17px;font-weight:800;line-height:1.18;letter-spacing:-.025em;text-align:left;}
  #home .price-card strong,#home .company strong,#home .price-card > small {margin:9px 11px 0;}
  #home .price-card > span {font-size:21px;margin:5px 11px 0;color:var(--orange);}
  #home .offer-price {font-size:23px;color:var(--orange);}
  #home .offer small,#home .company small {font-size:13px;}
  #home .home-continuation {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px;}
  #home .home-continuation > .home-block:nth-child(-n+2),#home .home-continuation > .home-block[aria-label="Utilidades da Cidade"],#home .city-banner,#home .home-back-top {grid-column:1/-1;}
  #home .home-continuation > .home-block[aria-label="Serviços publicados"],#home .home-continuation > .home-service-categories {grid-column:1/-1;}
  #home .home-continuation > .home-block:not(:nth-child(-n+2)),#home .fair {padding:15px;border:1px solid #cbdff2;border-radius:17px;background:linear-gradient(130deg,#fff,#e8f3ff);box-shadow:0 2px 4px #123f641c;}
  #home .home-continuation > .home-block:not(:nth-child(-n+2)) .section-head h2 {font-size:23px;}
  #home .home-continuation > .home-block:not(:nth-child(-n+2)) .section-head a {font-size:13px;}
  #home .home-continuation > .home-block:not(:nth-child(-n+2)) .photo-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  #home .home-continuation > .home-block[aria-label="Serviços publicados"] .photo-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  #home .tile-grid {gap:9px;}
  #home .mini-tile {min-height:96px;padding:10px 5px;border:1px solid #d1e1f0;border-radius:12px;background:linear-gradient(130deg,#fff,#eaf4ff);box-shadow:0 2px 3px #123f6414;}
  #home .mini-tile strong {font-size:15px;line-height:1.18;}
  #home .mini-tile small {font-size:12px;line-height:1.25;}
  #home .mini-tile .icon {font-size:34px;color:var(--orange);}
  #home .home-official-categories {display:flex;flex-wrap:wrap;gap:9px;}
  #home .home-official-categories a {display:flex;align-items:center;gap:7px;min-height:47px;padding:9px 13px;border:1px solid #cbdff2;border-radius:10px;background:#fff;box-shadow:0 2px 4px #123f6417;font-size:14px;font-weight:750;}
  #home .home-official-categories .icon {font-size:24px;color:var(--orange);}
  #home .home-city-news {display:block;}
  #home .home-city-story {display:grid;grid-template-columns:36% 1fr;gap:18px;overflow:hidden;background:#fff;border:1px solid #cbdff2;border-radius:15px;}
  #home .home-city-story img {width:100%;height:128px;object-fit:cover;}
  #home .home-city-story > span {align-self:center;padding:15px 15px 15px 0;}
  #home .home-city-story strong {display:block;font-size:24px;line-height:1.2;}
  #home .home-city-story small {display:block;margin-top:12px;font-size:14px;}
  #home .home-media-shortcuts {display:none;}
  #home .home-visual-discovery:not([hidden]) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
  #home .home-visual-discovery a {display:grid;grid-template-columns:112px minmax(0,1fr) 24px;align-items:center;gap:16px;min-width:0;min-height:104px;padding:12px;border:1px solid #cbdff2;border-radius:14px;background:linear-gradient(130deg,#fff,#edf6ff);color:#082947;box-shadow:0 2px 4px #123f6420;}
  #home .home-visual-discovery img {width:112px;height:78px;object-fit:cover;border-radius:9px;}
  #home .home-visual-discovery a > span:not(.icon) {font-size:19px;font-weight:800;line-height:1.2;overflow-wrap:anywhere;}
  #home .home-visual-discovery .icon {color:var(--orange);font-size:20px;}
  #home .fair-banner {min-height:230px;border-radius:12px;}
  #home .fair-banner h2 {font-size:28px;}
  #home .fair-banner strong {font-size:25px;}
  #home .fair-banner p {font-size:14px;}
  #home .fair-footer {padding:12px 0 0;gap:8px;background:transparent;}
  #home .fair-footer > span {font-size:12px;}
  #home .green-cta,#home .game-banner a {background:var(--orange);color:#fff;font-size:13px;border-radius:20px;}
  #home .delivery-card {grid-template-columns:44% 1fr;box-shadow:none;}
  #home .delivery-card h3 {font-size:23px;}
  #home .delivery-card p {font-size:14px;}
  #home .game-banner {min-height:210px;}
  #home .game-banner h3 {font-size:28px;}
  #home .city-banner {min-height:164px;padding:35px 25px 35px 36%;}
  #home .city-banner h2 {font-size:34px;}
  #home .city-banner p {font-size:19px;}
  #home .home-back-top {display:block;justify-self:center;padding:9px 19px;border:2px solid var(--orange);border-radius:24px;background:#fff;font-size:16px;font-weight:750;}
  /* Every destination shares the desktop shell, while its own controls stay intact. */
  .frame > main:not(#home):not([hidden]) {min-height:calc(100dvh - var(--desktop-toolbar));padding-bottom:28px;}
  .frame > main:not(#home) {font-size:16px;}
  .frame .flow-hero,.frame .order-hero,.frame .notification-hero {min-height:105px;padding:20px 28px;}
  .frame .flow-hero.has-cover {min-height:150px;}
  .frame .flow-hero h1 {font-size:31px;overflow-wrap:normal;}
  .frame .flow-content {gap:17px;padding:22px 28px 30px;}
  .frame .flow-card {padding:18px;border-radius:14px;}
  .frame .flow-form {width:100%;max-width:780px;gap:14px;}
  .frame .flow-form :is(input:not([type=radio],[type=checkbox]),select,textarea) {min-height:45px;font-size:16px;}
  .frame .flow-button {min-height:43px;padding:10px 17px;}
  .frame .identity-flow {max-width:650px;}
  .frame .search-overview-hero {min-height:230px;padding:26px 30px;}
  .frame .search-overview-brand {display:none;}
  .frame .search-overview-hero h1 {font-size:35px;max-width:none;}
  .frame .search-section {margin:24px 28px;}
  .frame .search-segment-grid {grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;}
  .frame .search-category-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;}
  .frame .search-category-content {padding:22px 28px;background:linear-gradient(110deg,#f3f9ff,#e5f2ff);}
  .frame :is(.search-category-screen,.search-results-screen) {background:linear-gradient(110deg,#f3f9ff,#e5f2ff);min-height:calc(100dvh - var(--desktop-toolbar));}
  .frame .results-cards.is-grid {--result-columns:3;}
  .frame .results-cards:not(.is-grid) {max-width:1080px;margin-inline:auto;}
  .frame .commerce-detail {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:24px;}
  .frame .commerce-detail > .commerce-gallery {grid-column:1;grid-row:1;min-width:0;}
  .frame .commerce-detail .commerce-gallery .commerce-picture {height:clamp(280px,30vw,440px);aspect-ratio:auto;display:block;}
  .frame .commerce-detail-copy {grid-column:2;grid-row:1;min-width:0;}
  .frame .commerce-products.commerce-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
  .frame .account-banner {display:none;}
  .frame .account-banner-row {display:none;}
  .frame .account-shell {max-width:1180px;margin:24px auto;border-radius:18px;}
  .frame .account-title {padding:24px;min-height:115px;}
  .frame .account-title h1 {font-size:32px;}
  .frame .account-title p {font-size:16px;}
  .frame .account-title > span {width:56px;font-size:30px;}
  .frame .account-start {display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:24px;padding:24px;border-radius:0;}
  .frame .account-start > .account-extra {grid-column:1/-1;}
  .frame .account-row {min-height:76px;padding:12px;gap:12px;}
  .frame .account-row strong {font-size:17px;}
  .frame .account-row small {font-size:14px;}
  .frame .account-symbol {width:44px;height:44px;border-radius:12px;font-size:25px;}
  .frame .account-action {font-size:16px;}
  .frame .account-guest {padding:0;}
  .frame .account-guest h2 {font-size:25px;}
  .frame .account-access-cover {min-height:160px;}
  .frame .account-body,.frame .notify-content,.frame .order-content {width:100%;max-width:1100px;margin-inline:auto;padding:24px;}
  /* Navigation/maps keep their established geometry; only center them in wide workspaces. */
  html:is([data-citizen-flow="ride"],[data-citizen-flow="mobility-live"]) .flow-content {max-width:1100px;margin-inline:auto;width:100%;}
}
@media(min-width:1280px){#home .company-track,#home .home-continuation > .home-block[aria-label="Serviços publicados"] .photo-grid {grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(min-width:1500px){:root {--desktop-sidebar:228px;} #home .section-head h2 {font-size:30px;} .frame .search-segment-grid {grid-template-columns:repeat(6,minmax(0,1fr));}}

/* Compact orientation rail uses the existing navbar and keeps every destination scrollable. */
html[data-navigation-layout="rail"] {scroll-padding-inline-start:calc(var(--navigation-rail-width,88px) + env(safe-area-inset-left));scroll-padding-block:16px;}
html[data-navigation-layout="rail"] body {padding-left:calc(var(--navigation-rail-width,88px) + env(safe-area-inset-left));}
/* At desktop width, Search moves its query controls into this toolbar. Keep it in a short rail viewport too. */
html[data-navigation-layout="rail"] .citizen-desktop-sidebar {display:none;}
html[data-navigation-layout="rail"] .frame > .bottom {
  position:fixed;inset:0 auto 0 0;width:calc(var(--navigation-rail-width,88px) + env(safe-area-inset-left));height:100dvh;max-height:100dvh;min-height:0;
  display:grid;grid-template-columns:minmax(0,1fr);align-content:start;align-items:start;justify-items:stretch;gap:6px;margin:0;
  padding:calc(8px + env(safe-area-inset-top)) 6px calc(8px + env(safe-area-inset-bottom)) calc(6px + env(safe-area-inset-left));
  border-radius:0;background:linear-gradient(130deg,#00254e,#043062);box-shadow:2px 0 9px #08294b26;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;z-index:22;
}
html[data-navigation-layout="rail"] .frame > .bottom a {
  display:grid;place-content:center;justify-content:stretch;justify-items:center;gap:4px;width:100%;min-width:0;min-height:max(3.5rem,var(--navigation-target-min,44px));padding:6px 2px;border-radius:12px;
  font-size:.6875rem;line-height:1.2;font-weight:650;text-align:center;white-space:normal;overflow-wrap:anywhere;letter-spacing:0;color:#e3eaff;
}
html[data-navigation-layout="rail"] .frame > .bottom a[aria-current="page"] {width:100%;background:var(--orange);color:#fff;font-weight:800;}
html[data-navigation-layout="rail"] .frame > .bottom a[data-navbar-hidden] {display:none;}
html[data-navigation-layout="rail"] .frame > .bottom .icon {font-size:1.5rem;color:inherit;}
html[data-navigation-layout="rail"] .frame > .bottom .notification-icon {height:1.5rem;}
html[data-navigation-layout="rail"] .frame > .bottom .badge {min-width:16px;height:16px;font-size:10px;}
html[data-navigation-layout="rail"] .frame > #home {padding-bottom:24px;}
html[data-navigation-layout="rail"] .frame > .ride-global-strip {left:calc(var(--navigation-rail-width,88px) + env(safe-area-inset-left));right:0;width:min(calc(100% - var(--navigation-rail-width,88px) - env(safe-area-inset-left) - 22px),831px);}
/* The rail can leave less space than a phone's full viewport. Reflow Home shortcuts
   by their available container width instead of shrinking or clipping their labels. */
@container (max-width:320px){
  html[data-navigation-layout="rail"] #home :is(.home-primary-nav,.home-media-shortcuts,.tile-grid){grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (min-width:1024px) {
  html[data-navigation-layout="desktop"] body:has(#account-app:not([hidden]),#flows-app[data-account-layout]:not([hidden])) .citizen-desktop-toolbar { display:flex; }
  .frame #account-app .account-shell { margin-top:24px; }
  .frame .account-shell > :is(ped-offline-status,ped-release-footer) {
    width:calc(50% - 36px);
    margin-left:calc(50% + 12px);
    margin-right:24px;
    box-sizing:border-box;
  }
  .frame .account-shell > ped-release-footer { justify-content:flex-start; text-align:left; }
}
/* Connected desktop areas: independent columns avoid empty grid rows. Mobile keeps its original DOM. */
@media (min-width:1024px) {
 html[data-navigation-layout="desktop"] #home.home-is-connected {gap:12px;padding:12px 16px 20px;}
 #home.home-is-connected .home-desktop-layout {display:grid;grid-template-columns:minmax(0,2.15fr) minmax(260px,1fr);gap:14px;align-items:start;}
 #home.home-is-connected.home-is-sparse .home-desktop-layout {grid-template-columns:1fr;}
 #home.home-is-connected.home-is-sparse :is(.home-desktop-primary,.home-desktop-secondary) {grid-template-columns:repeat(2,minmax(0,1fr));}
 #home.home-is-connected.home-is-sparse [data-home-area="transport"] {grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));}
 #home.home-is-connected :is(.home-desktop-primary,.home-desktop-secondary) {display:grid;gap:14px;min-width:0;align-content:start;}
 #home.home-is-connected .home-connected-area {display:grid;gap:12px;min-width:0;padding:12px;border:1px solid #cbdff2;border-radius:14px;background:#ffffffa8;}
 #home.home-is-connected .home-connected-area:not(:has(> section:not([hidden]),> footer,> .home-catalog-quota:not([hidden]))) {display:none;}
 #home.home-is-connected .home-connected-area > :is(section,footer) {min-width:0;grid-column:auto;margin:0;}
 #home.home-is-connected .home-connected-area > :is(.home-block,.fair) {padding:0;border:0;background:none;box-shadow:none;}
 #home.home-is-connected [data-home-area="editorial"] {gap:18px;}
 #home.home-is-connected.home-is-sparse [data-home-area="editorial"] {grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;}
 #home.home-is-connected.home-is-sparse [data-home-area="editorial"] .home-editorial-discovery {grid-column:1/-1;}
 #home.home-is-connected.home-is-sparse [data-home-area="editorial"] .home-editorial-track {grid-template-columns:repeat(3,minmax(0,1fr));}
 #home.home-is-connected [data-home-area="editorial"] .home-moment-banner {min-height:160px;}
 #home.home-is-connected [data-home-area="editorial"] .home-moment-banner > div {display:grid;gap:8px;width:100%;padding:14px;background:linear-gradient(90deg,#fff 48%,#ffffffbb);}
 #home.home-is-connected [data-home-area="editorial"] .home-moment-banner label {font-size:14px;}
 #home.home-is-connected [data-home-area="editorial"] .home-moment-banner select {min-height:44px;max-width:100%;margin:0;font-size:14px;}
 #home.home-is-connected [data-home-area="editorial"] .home-moment-banner h2 {font-size:22px;line-height:1.2;}
 #home.home-is-connected [data-home-area="editorial"] .home-moment-banner a {justify-self:start;min-height:44px;align-items:center;}
 #home.home-is-connected [data-home-area="editorial"] .fair-footer {grid-template-columns:repeat(2,minmax(0,1fr));font-size:13px;}
 #home.home-is-connected [data-home-area="editorial"] .fair-footer > span {font-size:13px;}
 #home.home-is-connected [data-home-area="editorial"] .fair-footer .green-cta {grid-column:1/-1;justify-self:end;min-height:44px;display:inline-flex;align-items:center;font-size:14px;padding:8px 12px;}
 #home.home-is-connected [data-home-area="editorial"] .event-grid {grid-template-columns:1fr;gap:10px;}
 #home.home-is-connected [data-home-area="editorial"] .event-grid a {display:grid;grid-template-columns:38% minmax(0,1fr);height:auto;min-height:108px;}
 #home.home-is-connected [data-home-area="editorial"] .event-grid img {height:100%;aspect-ratio:auto;}
 #home.home-is-connected [data-home-area="editorial"] .event-grid strong {font-size:17px;}
 #home.home-is-connected [data-home-area="editorial"] .event-grid small {font-size:13px;line-height:1.35;}
 #home.home-is-connected [data-home-area="editorial"] .home-city-story {grid-template-columns:38% minmax(0,1fr);gap:10px;}
 #home.home-is-connected [data-home-area="editorial"] .home-city-story strong {font-size:17px;}
 #home.home-is-connected [data-home-area="editorial"] .home-city-story small {font-size:13px;line-height:1.35;}
 #home.home-is-connected .home-editorial-track {display:grid;gap:10px;}
 #home.home-is-connected .home-editorial-track a {display:grid;grid-template-columns:86px minmax(0,1fr);min-height:104px;overflow:hidden;border:1px solid #cbdff2;border-radius:12px;background:#fff;}
 #home.home-is-connected .home-editorial-track img {width:100%;height:100%;object-fit:cover;}
 #home.home-is-connected .home-editorial-track a > span {display:grid;align-content:center;gap:6px;min-width:0;padding:12px;}
 #home.home-is-connected .home-editorial-track strong {font-size:16px;line-height:1.2;overflow-wrap:anywhere;}
 #home.home-is-connected .home-editorial-track small {font-size:13px;line-height:1.35;}
 #home.home-is-connected .home-continuation {display:contents;}
 #home.home-is-connected .section-head {margin-bottom:8px;gap:7px;}
 #home.home-is-connected .section-head h2 {font-size:21px;gap:7px;}
 #home.home-is-connected .section-head h2 .icon {font-size:25px;}
 #home.home-is-connected .section-head a {font-size:12px;}
 #home.home-is-connected .home-primary-nav {padding:6px 0;}
 #home.home-is-connected .home-primary-nav a {min-height:48px;font-size:15px;gap:4px;}
 #home.home-is-connected .home-primary-nav .icon {font-size:25px;}
 #home.home-is-connected .home-mobile-intro {gap:10px;}
 #home.home-is-connected .home-moment-banner {min-height:126px;}
 #home.home-is-connected .home-moment-banner > div {padding:12px 18px;}
 #home.home-is-connected .home-moment-banner h2 {font-size:25px;margin:5px 0 8px;}
 #home.home-is-connected .home-moment-banner a {padding:7px 15px;font-size:15px;}
 #home.home-is-connected .company-track {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 #home.home-is-connected .company {grid-template-columns:72px minmax(0,1fr);gap:8px;min-height:70px;padding:8px;}
 #home.home-is-connected .company .home-catalog-photo {width:72px;height:48px;}
 #home.home-is-connected .company strong {font-size:14px;}
 #home.home-is-connected .company.professional {display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;min-height:80px;padding:10px;}
 #home.home-is-connected .company.professional .home-catalog-photo {width:56px;height:56px;aspect-ratio:auto;border-radius:50%;grid-row:1/span 3;}
 #home.home-is-connected .company.professional .home-catalog-photo img {object-fit:cover;}
 #home.home-is-connected .company.professional > :is(strong,small,span:not(.home-catalog-photo)) {grid-column:2;margin:0;}
 #home.home-is-connected :is(.offer-grid,.home-desktop-primary .photo-grid) {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
 #home.home-is-connected [data-home-services] .photo-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 #home.home-is-connected [data-home-services] .price-card {grid-template-columns:48px minmax(0,1fr);gap:4px 8px;min-height:78px;padding:8px;}
 #home.home-is-connected [data-home-services] .home-catalog-photo {width:48px;height:48px;}
 #home.home-is-connected .price-card strong {font-size:14px;}
 #home.home-is-connected .price-card > span:not(.home-catalog-photo) {font-size:18px;}
 #home.home-is-connected .price-card > .home-catalog-photo {margin:0;aspect-ratio:1.7;}
 #home.home-is-connected .home-official-categories {gap:6px;}
 #home.home-is-connected .home-official-categories a {min-height:40px;padding:6px 9px;font-size:12px;gap:5px;}
 #home.home-is-connected .home-official-categories .icon {font-size:20px;}
 #home.home-is-connected .home-db-segments:not([hidden]) {display:block;}
 #home.home-is-connected .home-db-segments .home-official-categories {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:360px;overflow:auto;}
 #home.home-is-connected .home-desktop-secondary .section-head h2 {font-size:18px;}
 #home.home-is-connected .home-city-story {grid-template-columns:96px minmax(0,1fr);gap:10px;}
 #home.home-is-connected .home-city-story img {height:100%;min-height:92px;}
 #home.home-is-connected .home-city-story > span {padding:9px 8px 9px 0;}
 #home.home-is-connected .home-city-story strong {font-size:16px;}
 #home.home-is-connected .home-city-story small {font-size:11px;margin-top:5px;}
 #home.home-is-connected .fair-banner {height:136px;min-height:0;}
 #home.home-is-connected .fair-banner h2 {font-size:20px;}
 #home.home-is-connected .fair-banner strong {font-size:19px;}
 #home.home-is-connected .fair-banner p {font-size:11px;}
 #home.home-is-connected .fair-footer {padding:8px 0 0;gap:6px;font-size:10px;}
 #home.home-is-connected .fair-footer .green-cta {font-size:10px;padding:6px 8px;}
 #home.home-is-connected .home-desktop-secondary :is(.tile-grid,.event-grid) {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
 #home.home-is-connected .home-desktop-secondary .mini-tile {min-height:66px;padding:7px 4px;gap:5px;}
 #home.home-is-connected .home-desktop-secondary .mini-tile strong {font-size:12px;}
 #home.home-is-connected .home-desktop-secondary .mini-tile small {font-size:10px;}
 #home.home-is-connected .home-desktop-secondary .mini-tile .icon {font-size:24px;}
 #home.home-is-connected .home-desktop-secondary .event-grid a {height:140px;min-height:0;}
 #home.home-is-connected .home-desktop-secondary .event-grid strong {font-size:16px;}
 #home.home-is-connected .home-desktop-secondary .event-grid small {font-size:11px;}
 #home.home-is-connected .home-desktop-secondary .game-banner {height:115px;min-height:0;}
 #home.home-is-connected .home-desktop-secondary .game-banner h3 {font-size:18px;}
 #home.home-is-connected .home-desktop-secondary .city-banner {height:auto;min-height:110px;padding:12px 12px 12px 36%;}
 #home.home-is-connected .home-desktop-secondary .city-banner h2 {font-size:16px;line-height:1.15;margin:0;}
 #home.home-is-connected .home-desktop-secondary .city-banner p {font-size:11px;line-height:1.3;margin:4px 0 0;}
 #home.home-is-connected .home-desktop-secondary .city-banner img {width:32%;}
 #home.home-is-connected .home-desktop-secondary .city-banner .icon {display:none;}
 #home.home-is-connected .home-back-top {margin:0 auto;}
}
@media (min-width:1800px) {
 #home.home-is-connected .company-track {grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (min-width:1024px) {
 #home.home-is-connected [data-home-area="transport"] {grid-template-columns:repeat(2,minmax(0,1fr));}
 #home.home-is-connected [data-home-area="transport"] .section-head h2 {font-size:18px;}
 #home.home-is-connected [data-home-area="transport"] .tile-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
 #home.home-is-connected [data-home-area="transport"] .mini-tile {min-height:66px;padding:7px 4px;}
 #home.home-is-connected [data-home-area="transport"] .mini-tile strong {font-size:12px;}
 #home.home-is-connected [data-home-area="transport"] .mini-tile small {font-size:10px;}
 #home.home-is-connected [data-home-area="transport"] .mini-tile .icon {font-size:24px;}
 #home.home-is-connected [data-home-area="transport"] .delivery-card {grid-template-columns:80px minmax(0,1fr);min-height:138px;}
 #home.home-is-connected [data-home-area="transport"] .delivery-card > img {width:80px;height:138px;}
 #home.home-is-connected [data-home-area="transport"] .delivery-card > div {padding:10px;}
 #home.home-is-connected [data-home-area="transport"] .delivery-card h3 {font-size:17px;}
 #home.home-is-connected [data-home-area="transport"] .delivery-card p {font-size:12px;}
}
@media (min-width:1024px) {
 #home.home-is-connected .offer-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 #home.home-is-connected [data-home-products] .photo-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (min-width:1280px) {
 #home.home-is-connected [data-home-products] .photo-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
}

/* Header dimensions do not inherit the retired sidebar width on large screens. */
html[data-navigation-layout="desktop"] {--desktop-sidebar:0px;}
html:is([data-navigation-layout="bottom"],[data-navigation-layout="rail"]) .frame > .bottom a[aria-current="page"] {background:var(--orange);color:#fff;}
/* Access screens used to suppress the retired toolbar; the shared navigation/search stays reachable. */
html[data-navigation-layout] body:has(#flows-app[data-access-layout]:not([hidden]),#flows-app:not([hidden]) [data-access-screen]) .frame > .citizen-desktop-toolbar {display:flex;}
@media(min-width:1024px) and (max-width:1199px){.frame > .citizen-desktop-toolbar {gap:16px;padding-inline:20px;}.citizen-desktop-brand {width:220px;}.citizen-desktop-navigation > .bottom a {min-width:70px;padding-inline:7px;}}

/* One compact header owns the same navigation; the JSON bottom option remains reversible. */
html[data-navigation-layout="bottom"] {scroll-padding-block:calc(var(--citizen-header-height,68px) + 8px) 16px;}
html[data-navigation-layout="bottom"] body {padding-left:0;padding-top:0;}
html[data-navigation-layout="bottom"] .frame > .citizen-desktop-toolbar {display:grid!important;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:4px 8px;position:sticky;inset:0 0 auto;height:auto;min-height:60px;padding:8px 12px;}
html[data-navigation-layout="bottom"] .citizen-desktop-brand {grid-column:1;grid-row:1;width:154px;min-width:0;}
html[data-navigation-layout="bottom"] .citizen-desktop-logo img {height:40px;}
html[data-navigation-layout="bottom"] .citizen-desktop-toolbar .citizen-desktop-search {display:none;}
html[data-navigation-layout="bottom"] .citizen-mobile-search {display:grid;grid-column:2;grid-row:1;width:44px;height:44px;}
html[data-navigation-layout="bottom"][data-compact-navigation="header"] .frame > .citizen-desktop-toolbar {grid-template-columns:minmax(0,1fr) auto;gap:clamp(8px,calc(8px + (100vw - 320px)/16),12px);padding-inline:6px;}
html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-desktop-brand {width:100%;max-width:176px;}
html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-desktop-logo img {height:48px;}
html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-mobile-search {display:none;}
html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-desktop-navigation {display:block;grid-column:2;grid-row:1;min-width:0;justify-self:end;}
html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-desktop-navigation > .bottom {position:static;inset:auto;display:grid;grid-template-columns:repeat(var(--navigation-columns,3),clamp(44px,calc(44px + (100vw - 320px)/10),52px));align-items:center;gap:clamp(4px,calc(4px + (100vw - 320px)/15),10px);width:max-content;height:auto;min-height:0;margin:0;padding:0;border-radius:0;background:transparent;box-shadow:none;}
html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-desktop-navigation > .bottom a {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;width:100%;height:48px;min-height:48px;padding:3px;border-radius:10px;color:#082947;font-size:11px;line-height:1.2;letter-spacing:0;}
html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-desktop-navigation > .bottom a[aria-current="page"] {background:var(--orange);color:#fff;}
html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-desktop-navigation > .bottom .icon {font-size:22px;color:inherit;}
html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-desktop-navigation > .bottom .notification-icon {height:22px;}
html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-desktop-navigation > .bottom .badge {min-width:16px;height:16px;font-size:10px;}
html[data-citizen-home][data-navigation-layout="bottom"][data-compact-navigation="header"] #home.home-is-magazine {padding-bottom:32px;}
@media(min-width:640px){
 html[data-navigation-layout="bottom"][data-compact-navigation="header"] .frame > .citizen-desktop-toolbar {grid-template-columns:minmax(100px,1fr) auto;gap:8px;}
 html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-desktop-navigation > .bottom {width:max-content;grid-template-columns:repeat(var(--navigation-columns,3),64px);gap:4px;}
}
@media(min-width:640px){
 html[data-navigation-layout="bottom"][data-compact-navigation] .frame > .citizen-desktop-toolbar {grid-template-columns:154px minmax(0,1fr) auto;gap:12px;}
 html[data-navigation-layout="bottom"] .citizen-desktop-toolbar .citizen-desktop-search {display:flex!important;grid-column:2;grid-row:1;width:100%;}
 html[data-navigation-layout="bottom"] .citizen-desktop-toolbar .unified-refresh {grid-column:3;grid-row:1;}
 html[data-navigation-layout="bottom"] .citizen-mobile-search {display:none;}
 html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-desktop-navigation {grid-column:3;grid-row:1;}
 html[data-navigation-layout="bottom"][data-compact-navigation="header"] .frame > .citizen-desktop-toolbar:has(> .unified-refresh) {grid-template-columns:154px minmax(0,1fr) 40px auto;}
 html[data-navigation-layout="bottom"][data-compact-navigation="header"] .citizen-desktop-toolbar:has(> .unified-refresh) .citizen-desktop-navigation {grid-column:4;}
}

/* Home alone expands its desktop header alongside the large magazine. */
@media(min-width:1601px) {
 html[data-citizen-home][data-navigation-layout="desktop"]:has(#home:not([hidden])) {--home-lg:calc(100vw / 1600);--desktop-toolbar:calc(104 * var(--home-lg));}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .frame > .citizen-desktop-toolbar {gap:calc(24 * var(--home-lg));padding:calc(8 * var(--home-lg)) calc(32 * var(--home-lg));}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .citizen-desktop-brand {width:calc(260 * var(--home-lg));}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .citizen-desktop-logo img {height:calc(80 * var(--home-lg));}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .citizen-desktop-search {max-width:calc(680 * var(--home-lg));min-height:calc(48 * var(--home-lg));gap:calc(10 * var(--home-lg));padding-left:calc(14 * var(--home-lg));border-radius:calc(12 * var(--home-lg));}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .citizen-desktop-search input {font-size:clamp(1rem,calc(.5rem + 8 * var(--home-lg)),2.5rem);}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .citizen-desktop-search > .icon {font-size:calc(20 * var(--home-lg));}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .citizen-desktop-search button {width:calc(48 * var(--home-lg));height:calc(46 * var(--home-lg));border-radius:calc(11 * var(--home-lg));}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .citizen-desktop-search button .icon {font-size:calc(22 * var(--home-lg));}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .citizen-desktop-navigation > .bottom {gap:calc(4 * var(--home-lg));}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .citizen-desktop-navigation > .bottom a {min-width:calc(76 * var(--home-lg));min-height:calc(60 * var(--home-lg));padding:calc(8 * var(--home-lg)) calc(10 * var(--home-lg));gap:calc(7 * var(--home-lg));border-radius:calc(12 * var(--home-lg));font-size:clamp(.8125rem,calc(.40625rem + 6.5 * var(--home-lg)),2rem);}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .citizen-desktop-navigation > .bottom .icon {font-size:calc(22 * var(--home-lg));}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .citizen-desktop-navigation > .bottom .notification-icon {height:calc(22 * var(--home-lg));}
 html[data-citizen-home][data-navigation-layout="desktop"] body:has(#home:not([hidden])) .citizen-desktop-navigation > .bottom .badge {min-width:calc(18 * var(--home-lg));height:calc(18 * var(--home-lg));font-size:clamp(.625rem,calc(.3125rem + 5 * var(--home-lg)),1.5625rem);}
}
