.home-spots-band { box-sizing: border-box; width: 100%; padding-top: 20px; padding-bottom: 8px; color: #0d2d5e; }
.home-spots-inner { width: 100%; max-width: 1360px; margin-inline: auto; }
.home-spots-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.home-spots-header h2 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.35; }
.home-spots-header a, .home-spots-header button { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; }
.home-spots-band a:focus-visible, .home-spots-band button:focus-visible, .home-spot-dialog :focus-visible { outline: 3px solid #0d2d5e; outline-offset: 3px; }
.home-top-box { min-width: 0; padding: 12px; border: 2px solid #d97706; border-radius: 18px; background: #fffaeb; }
.home-top-heading, .home-top-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.home-top-heading { color: #451a03; }
.home-top-heading h2 { overflow-wrap: anywhere; }
.home-top-desktop-title { display: none; }
.home-top-actions { gap: 16px; }
.home-top-actions a, .home-top-actions button { color: #92400e; }
.home-top-pill { display: inline-block; padding: 3px 8px; border-radius: 7px; background: #fcd34d; color: #451a03; font-size: 12px; font-weight: 800; white-space: nowrap; }
.home-top-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-top-grid > div { min-width: 0; }
.home-top-grid article { height: 100%; }
.home-top-grid article > a { border: 2px solid #d97706; }
.home-top-grid article > a > div:first-child { height: 120px; aspect-ratio: auto; flex: none; }
.home-top-grid article > a > p { overflow-wrap: anywhere; }
/* Include 70% of the 24px rail inset so cards occupy about 70% of its visible width. */
.home-urgent-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc(70% + 16.8px); gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; scrollbar-width: thin; padding: 6px 12px 8px; }
.home-urgent-grid > article { min-width: 0; scroll-snap-align: start; }
.home-top-box .paid-mark-top { background: #fcd34d; color: #451a03; font-size: 12px; font-weight: 800; }
.home-spots-band .paid-mark-urgent { background: #c42a26; color: #fff; font-size: 12px; font-weight: 800; }
[data-home-top-candidate]:nth-child(n+3) { display: none; }
.home-top-single .home-top-grid { grid-template-columns: minmax(0, 1fr); }
.home-top-single .home-top-grid article > a { display: grid; grid-template-columns: minmax(100px, 30%) minmax(0, 1fr); }
.home-top-single .home-top-grid article > a > p { grid-column: 2; }
.home-get-ad { display: none !important; }
.home-urgent-chip { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; min-height: 44px; padding: 0 14px; border: 1.5px solid #c42a26; border-radius: 24px; background: #fff; color: #c42a26; font-size: 14px; font-weight: 800; }
.home-urgent-chip > span { width: 8px; height: 8px; border-radius: 50%; background: #c42a26; }
.home-urgent-chip:focus-visible { outline: 3px solid #0d2d5e; outline-offset: 2px; }
.home-shops-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-shops-panel { box-sizing: border-box; padding: 16px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; }
.home-shop-card { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; min-width: 0; color: #0f172a; text-decoration: none; }
.home-shop-card:nth-child(n+5) { display: none; }
.home-shop-logo { display: grid; place-items: center; width: 52px; height: 52px; flex: none; overflow: hidden; border-radius: 14px; background: #e3f0ff; color: #0d2d5e; font-size: 20px; font-weight: 800; }
.home-shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.home-shop-detail { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.home-shop-detail strong { font-size: 15px; }
.home-shop-mark { border: 1.5px solid #0d2d5e; border-radius: 20px; padding: 1px 7px; color: #0d2d5e; font-size: 12px; font-weight: 700; }
.home-shop-business { background: #0d2d5e; color: #fff; }
.home-shop-area { font-size: 13px; color: #475569; }
.home-spot-dialog-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(13, 45, 94, .6); }
.home-spot-dialog-backdrop[hidden], [data-home-top-box][hidden], [data-home-top-candidate][hidden], #more article[hidden] { display: none !important; }
[x-ref="grid"] > article[hidden] { display: none !important; }
.home-spot-dialog { width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 24px; border-radius: 20px; background: #fff; color: #0f172a; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.home-spot-dialog h2 { font-size: 22px; font-weight: 800; color: #0d2d5e; }
.home-spot-dialog p { margin: 16px 0; font-size: 15px; line-height: 1.6; color: #475569; }
.home-spot-grabber { display: none; }
.home-spot-dialog a, .home-spot-dialog button { display: flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; margin-top: 12px; padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 800; }
.home-spot-dialog .home-spot-primary { background: #0d2d5e; color: #fff; }
.home-spot-dialog button { border: 1px solid #cbd5e1; }
@media (min-width: 768px) {
    .home-top-phone-title { display: none; }
    .home-top-desktop-title { display: inline; }
    [data-home-top-box] { padding-top: 16px; }
    .home-top-box { padding: 12px; }
    .home-top-box .home-spots-header { margin-bottom: 8px; }
    .home-top-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, calc((100% - 24px) / 3)), 1fr)); gap: 12px; }
    .home-top-grid article > a > div:first-child { height: 150px; }
    .home-top-grid article > a > div:nth-child(2) { padding-top: 8px; padding-bottom: 8px; }
    [data-home-top-candidate]:nth-child(3) { display: block; }
    .home-get-ad { display: inline-flex !important; }
    .home-urgent-grid { grid-auto-columns: minmax(0, 1fr); overflow: visible; padding: 0; scroll-padding-inline: 0; }
    .home-shops-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-shop-card:nth-child(n+5) { display: flex; }
}
[data-home-top-box].home-top-selected [data-home-top-candidate] { display: block; }

@media (max-width: 639px) {
    .home-top-box .home-spots-header { gap: 0 10px; margin-bottom: 8px; }
    .home-top-heading { gap: 6px; flex-wrap: nowrap; flex: 1 1 auto; }
    .home-top-heading h2 { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; line-height: 22px; }
    .home-top-heading .home-top-pill { padding-inline: 6px; }
    .home-top-actions { margin-left: auto; flex: 0 0 auto; }
    .home-top-actions a { font-size: 12px; }
    .home-spot-dialog-backdrop { align-items: flex-end; padding: 0; }
    .home-spot-dialog { max-width: none; max-height: 90dvh; padding: 12px 24px max(24px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
    .home-spot-grabber { display: block; width: 40px; height: 4px; margin: 0 auto 20px; border-radius: 999px; background: #cbd5e1; }
}
