/* The Citizen Home alone uses this mobile presentation; routes and data stay shared. */
@media (max-width: 1023px) {
  html[data-citizen-home] .frame > .sticky-head,
  html[data-citizen-home] .frame > .top { display: none; }

  html[data-citizen-home] #home {
    --home-ink: #071c43;
    --home-accent: #ff5900;
    --home-border: #d2e2f2;
    --home-card: linear-gradient(135deg, #fff 20%, #eef6ff);
    --home-shadow: 0 2px 5px #103c6420;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-width: 0;
    padding: 12px 12px calc(96px + env(safe-area-inset-bottom));
    color: var(--home-ink);
    background: linear-gradient(110deg, #f5faff, #e8f3ff);
  }
  html[data-citizen-home] #home > *,
  html[data-citizen-home] #home .home-continuation > * { min-width: 0; }
  html[data-citizen-home] #home .home-mobile-intro { display: grid; gap: 15px; }
  html[data-citizen-home] #home > .citizen-links,
  html[data-citizen-home] #home > .campaigns,
  html[data-citizen-home] #home > .moments,
  html[data-citizen-home] #home [data-home-categories] { display: none; }
  html[data-citizen-home] #home a:focus-visible,
  html[data-citizen-home] #home button:focus-visible { outline: 3px solid #0061bd; outline-offset: 3px; }

  html[data-citizen-home] #home .home-mobile-brand {
    display: flex; align-items: center; gap: 10px; min-height: 74px;
    padding: 4px 12px 4px 8px; border: 1px solid #fff; border-radius: 22px;
    background: var(--home-card); box-shadow: var(--home-shadow);
  }
  html[data-citizen-home] #home .home-mobile-brand img { display: block; width: min(60%, 245px); height: auto; object-fit: contain; }
  html[data-citizen-home] #home .home-mobile-brand > a:first-child { display: flex; flex-direction: column; flex: 1; gap: 5px; min-width: 0; }
  html[data-citizen-home] #home .home-mobile-brand > a:first-child img { width: 100%; max-height: 84px; object-position: left center; }
  html[data-citizen-home] #home .home-mobile-brand > a:first-child > span { font-size: 13px; font-weight: 750; }
  html[data-citizen-home] #home .home-mobile-brand > div { flex: 1; min-width: 0; }
  html[data-citizen-home] #home .home-mobile-brand strong { display: block; font-size: clamp(22px, 6vw, 34px); line-height: 1.1; color: var(--home-accent); }
  html[data-citizen-home] #home .home-mobile-brand p { margin-top: 4px; font-size: 13px; font-weight: 700; }
  html[data-citizen-home] #home .home-mobile-brand > a:last-child {
    display: grid; place-items: center; flex: 0 0 44px; min-height: 44px;
    margin-left: auto; border-left: 1px solid var(--home-border); color: var(--home-accent); font-size: 28px;
  }
  html[data-citizen-home] #home .home-primary-nav,
  html[data-citizen-home] #home .home-media-shortcuts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
    padding: 10px 3px; border: 1px solid #fff; border-radius: 15px;
    background: var(--home-card); box-shadow: var(--home-shadow);
  }
  html[data-citizen-home] #home .home-primary-nav a,
  html[data-citizen-home] #home .home-media-shortcuts a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; min-width: 0; min-height: 62px; padding: 3px 4px;
    text-align: center; font-size: clamp(12px, 3.1vw, 17px); font-weight: 800; line-height: 1.16;
  }
  html[data-citizen-home] #home .home-primary-nav a + a,
  html[data-citizen-home] #home .home-media-shortcuts a + a { border-left: 1px solid #c6d8ec; }
  html[data-citizen-home] #home .home-primary-nav .icon,
  html[data-citizen-home] #home .home-media-shortcuts .icon { color: var(--home-accent); font-size: clamp(27px, 7.5vw, 42px); }
  html[data-citizen-home] #home .home-media-shortcuts small { max-width: 11ch; font-size: 12px; font-weight: 450; line-height: 1.2; }

  html[data-citizen-home] #home .section-head { display: flex; align-items: center; gap: 8px; margin: 0 0 11px; padding: 0 2px; }
  html[data-citizen-home] #home .section-head h2 {
    flex: 1; min-width: 0; gap: 7px; font-size: clamp(18px, 4.8vw, 26px);
    font-weight: 850; line-height: 1.16; letter-spacing: -.035em; overflow-wrap: normal;
  }
  html[data-citizen-home] #home .section-head h2 .icon { flex: 0 0 25px; width: 25px; height: 27px; font-size: 25px; color: var(--home-accent); }
  html[data-citizen-home] #home .more-link { flex-shrink: 0; gap: 4px; color: #c84700; font-size: clamp(12px, 2.9vw, 16px); font-weight: 750; }
  html[data-citizen-home] #home .home-continuation { display: grid; gap: 23px; }

  html[data-citizen-home] #home .offer-grid,
  html[data-citizen-home] #home .photo-grid,
  html[data-citizen-home] #home .photo-grid.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html[data-citizen-home] #home .offer,
  html[data-citizen-home] #home .price-card {
    display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0 0 9px;
    border: 1px solid var(--home-border); border-radius: 14px; overflow: hidden;
    background: var(--home-card); box-shadow: var(--home-shadow); text-align: left;
  }
  html[data-citizen-home] #home .offer > .home-catalog-photo,
  html[data-citizen-home] #home .price-card > .home-catalog-photo,
  html[data-citizen-home] #home .price-card > img {
    flex: 0 0 auto; width: 100%; aspect-ratio: 1.45; min-height: 0; border-radius: 0;
  }
  html[data-citizen-home] #home .home-catalog-photo > .icon { font-size: 32px; color: #6d849e; }
  html[data-citizen-home] #home .offer-copy { display: flex; flex-direction: column; gap: 6px; padding: 9px 9px 0; }
  html[data-citizen-home] #home .offer h3,
  html[data-citizen-home] #home .price-card strong { padding: 0; font-size: clamp(14px, 3.75vw, 20px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
  html[data-citizen-home] #home .price-card strong,
  html[data-citizen-home] #home .price-card > span { margin: 8px 9px 0; }
  html[data-citizen-home] #home .offer-copy .price,
  html[data-citizen-home] #home .price-card > span { margin-top: 2px; color: #de4800; font-size: clamp(19px, 5.2vw, 27px); font-weight: 850; line-height: 1.15; letter-spacing: -.035em; }
  html[data-citizen-home] #home .offer-copy .price small,
  html[data-citizen-home] #home .price-card > span > small { font-size: 11px; font-weight: 600; line-height: 1.25; }
  html[data-citizen-home] #home .offer-action { min-height: 32px; margin: 1px 0 0; padding: 7px; background: #e8f1fa; color: #173a60; font-size: 12px; }
  html[data-citizen-home] #home .promotion { top: 7px; left: 7px; font-size: 11px; }
  html[data-citizen-home] #home .home-catalog-status { padding: 8px 0; color: #48617b; font-size: 13px; line-height: 1.35; }

  html[data-citizen-home] #home .company-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; overflow: visible; }
  html[data-citizen-home] #home .company {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; min-width: 0; min-height: 0; padding: 0 0 8px; overflow: hidden;
    border: 1px solid var(--home-border); border-radius: 12px; background: var(--home-card);
    color: var(--home-ink); box-shadow: var(--home-shadow);
  }
  html[data-citizen-home] #home .company .home-catalog-photo { width: 100%; aspect-ratio: 1.2; border-radius: 0; }
  html[data-citizen-home] #home .company strong { margin: 6px 6px 0; font-size: clamp(12px, 3.2vw, 16px); font-weight: 800; line-height: 1.15; text-align: left; letter-spacing: -.025em; }

  html[data-citizen-home] #home .tile-grid,
  html[data-citizen-home] #home .home-official-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  html[data-citizen-home] #home .mini-tile,
  html[data-citizen-home] #home .home-official-categories a {
    display: grid; align-content: center; justify-items: center; text-align: center;
    min-width: 0; min-height: 88px; gap: 7px; padding: 10px 4px; border: 1px solid var(--home-border);
    border-radius: 13px; background: var(--home-card); box-shadow: var(--home-shadow); line-height: 1.12;
  }
  html[data-citizen-home] #home .mini-tile strong { max-width: 100%; font-size: clamp(11px, 3.05vw, 16px); font-weight: 800; letter-spacing: -.025em; overflow-wrap: anywhere; }
  html[data-citizen-home] #home .home-official-categories a > span:last-child { max-width: 100%; font-size: clamp(11px, 3.05vw, 16px); font-weight: 800; letter-spacing: -.025em; overflow-wrap: anywhere; }
  html[data-citizen-home] #home .mini-tile small { font-size: 10px; line-height: 1.15; }
  html[data-citizen-home] #home .mini-tile .icon,
  html[data-citizen-home] #home .home-official-categories .icon { color: var(--home-accent); font-size: clamp(29px, 8vw, 44px); }

  html[data-citizen-home] #home .home-moment-banner,
  html[data-citizen-home] #home .fair,
  html[data-citizen-home] #home .delivery-card,
  html[data-citizen-home] #home .game-banner,
  html[data-citizen-home] #home .city-banner { overflow: hidden; border: 1px solid var(--home-border); border-radius: 16px; background: var(--home-card); box-shadow: var(--home-shadow); }
  html[data-citizen-home] #home .home-moment-banner { display: block; position: relative; isolation: isolate; min-height: 150px; padding: 13px; }
  html[data-citizen-home] #home .home-moment-banner > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 42%); align-items: center; gap: 7px 8px; }
  html[data-citizen-home] #home .home-moment-banner label { display: block; min-width: 0; max-width: none; font-size: 12px; line-height: 1.3; }
  html[data-citizen-home] #home .home-moment-banner img { position: absolute; inset: 0 0 0 auto; z-index: -2; width: 62%; height: 100%; object-fit: cover; object-position: right center; }
  html[data-citizen-home] #home .home-moment-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #fff 30%, #f6fbffed 44%, #f6fbff00 79%); }
  html[data-citizen-home] #home .home-moment-banner h2 { grid-column: 1 / -1; max-width: 70%; margin: 4px 0 5px; font-size: clamp(21px, 5.4vw, 30px); font-weight: 850; line-height: 1.08; letter-spacing: -.04em; }
  html[data-citizen-home] #home .home-moment-banner p { max-width: 70%; font-size: 12px; line-height: 1.3; }
  html[data-citizen-home] #home .home-moment-banner select { position: static; float: none; width: 100%; min-width: 0; max-width: 100%; border: 1px solid #aebfd3; border-radius: 20px; padding: 4px 8px; color: var(--home-ink); background: #fffffff2; font: inherit; font-size: 12px; }
  html[data-citizen-home] #home .home-moment-banner a { grid-column: 1 / -1; justify-self: start; }
  html[data-citizen-home] #home .home-moment-banner a,
  html[data-citizen-home] #home .green-cta,
  html[data-citizen-home] #home .game-banner a { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 8px 13px; border-radius: 30px; background: var(--home-accent); color: #fff; font-size: clamp(12px, 3.3vw, 17px); font-weight: 750; white-space: normal; line-height: 1.1; }
  html[data-citizen-home] #home .home-city-news { display: block; }
  html[data-citizen-home] #home .home-city-news > a { display: grid; grid-template-columns: 38% minmax(0, 1fr); min-height: 95px; overflow: hidden; border: 1px solid var(--home-border); border-radius: 14px; background: var(--home-card); box-shadow: var(--home-shadow); }
  html[data-citizen-home] #home .home-city-news .section-head > a { color: #c84700; font-size: 12px; font-weight: 750; white-space: nowrap; }
  html[data-citizen-home] #home .home-city-news img { width: 100%; height: 100%; object-fit: cover; }
  html[data-citizen-home] #home .home-city-news > a > div,
  html[data-citizen-home] #home .home-city-news > a > span { min-width: 0; padding: 10px; }
  html[data-citizen-home] #home .home-city-news h3,
  html[data-citizen-home] #home .home-city-story strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
  html[data-citizen-home] #home .home-city-news p,
  html[data-citizen-home] #home .home-city-news small { display: block; margin-top: 7px; font-size: 11px; color: #48617b; line-height: 1.3; }

  html[data-citizen-home] #home .fair-banner { display: grid; min-height: 220px; padding: 130px 12px 12px; background: #fff; color: var(--home-ink); }
  html[data-citizen-home] #home .fair-banner > img:first-child { inset: 0 0 auto; width: 100%; height: 125px; object-fit: cover; object-position: center 45%; mask-image: none; }
  html[data-citizen-home] #home .fair-banner > img:nth-child(2) { display: none; }
  html[data-citizen-home] #home .fair-banner > div { padding: 0; text-align: left; text-shadow: none; }
  html[data-citizen-home] #home .fair-banner h2 { font-size: 22px; line-height: 1.15; }
  html[data-citizen-home] #home .fair-banner strong { margin: 6px 0; font-size: 17px; line-height: 1.15; }
  html[data-citizen-home] #home .fair-banner p { font-size: 13px; }
  html[data-citizen-home] #home .fair-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 12px; background: transparent; }
  html[data-citizen-home] #home .fair-footer > span { font-size: 12px; line-height: 1.2; }
  html[data-citizen-home] #home .fair-footer > a { grid-column: 1 / -1; justify-self: end; }
  html[data-citizen-home] #home .event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html[data-citizen-home] #home .event-grid a { border: 1px solid var(--home-border); border-radius: 15px; background: var(--home-card); color: var(--home-ink); box-shadow: var(--home-shadow); }
  html[data-citizen-home] #home .event-grid img { aspect-ratio: 1.5; }
  html[data-citizen-home] #home .event-grid a > span { min-width: 0; padding: 9px; }
  html[data-citizen-home] #home .event-grid strong { font-size: 16px; line-height: 1.15; }
  html[data-citizen-home] #home .event-grid small { font-size: 12px; line-height: 1.25; }
  html[data-citizen-home] #home .delivery-card { grid-template-columns: 48% minmax(0, 1fr); }
  html[data-citizen-home] #home .delivery-card > div { padding: 12px; gap: 9px; }
  html[data-citizen-home] #home .delivery-card h3 { font-size: clamp(18px, 4.7vw, 25px); line-height: 1.12; }
  html[data-citizen-home] #home .delivery-card p { font-size: 12px; line-height: 1.3; }
  html[data-citizen-home] #home .game-banner { min-height: 140px; padding: 18px 12px 18px 50%; color: var(--home-ink); }
  html[data-citizen-home] #home .game-banner > img:first-child { display: none; }
  html[data-citizen-home] #home .game-banner > img:nth-child(2) { inset: 0 auto 0 0; width: 46%; object-fit: cover; mask-image: none; }
  html[data-citizen-home] #home .game-banner h3 { font-size: 20px; line-height: 1.12; }
  html[data-citizen-home] #home .city-banner { min-height: 230px; padding: 16px; align-items: start; color: var(--home-ink); }
  html[data-citizen-home] #home .city-banner img { inset: 0; width: 100%; height: 100%; object-position: center; mask-image: none; }
  html[data-citizen-home] #home .city-banner > div { position: relative; padding: 8px; border-radius: 10px; background: #ffffffde; }
  html[data-citizen-home] #home .city-banner h2 { font-size: clamp(23px, 6vw, 33px); line-height: 1.1; }
  html[data-citizen-home] #home .city-banner p { font-size: 12px; line-height: 1.3; }
  html[data-citizen-home] #home .city-banner > .icon { display: none; }
  html[data-citizen-home] #home .home-back-top { display: inline-flex; align-items: center; justify-content: center; justify-self: center; gap: 9px; min-height: 44px; padding: 9px 18px; border: 2px solid var(--home-accent); border-radius: 30px; background: #fff; color: var(--home-ink); font-size: 16px; font-weight: 800; }
  html[data-citizen-home] #home .home-back-top .icon { color: var(--home-accent); font-size: 22px; }
}
