/* ==========================================================================
   /amazon-auto-geolocation (Site 6): the page's own sections, on top of the
   Landing 6 kit (css/the25-landing6.css). Every rule is scoped under
   .l6-page--geolocation. Markup: landing-pages/amazon-auto-geolocation-6.php.
   Behaviour: js/the25-site6-geolocation.js (arrivals board).

   The base rules are the finished state; html.ag-motion (set by the JS when
   motion is allowed) adds the flip-in and the cycling highlight.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero: proof line + the arrivals board
   -------------------------------------------------------------------------- */
.l6-page--geolocation .ag-partner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
}

.l6-page--geolocation .ag-partner:hover {
    color: #fff;
    text-decoration: underline;
}

.l6-page--geolocation .ag-partner img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: #fff;
}

.l6-page--geolocation .l6-hero .l6-proof p {
    display: grid;
}

/* The keyword H1 is long: one step smaller than the kit's display size */
.l6-page--geolocation .l6-hero .l6-display {
    font-size: clamp(2.4rem, 3.9vw, 4rem);
}

/* Flags in the strip under the hero: 4:3, with a hairline for white flags */
.l6-page--geolocation .l6-apps-row--to li img {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px var(--l6-line);
    object-fit: cover;
}

/* Links in dark tile headings stay white */
.l6-page--geolocation .l6-tile--dark h3 a {
    color: #fff;
    text-decoration: none;
}

.l6-page--geolocation .l6-tile--dark h3 a:hover {
    text-decoration: underline;
}

.l6-page--geolocation .ag-board {
    justify-self: center;
    width: min(100%, 560px);
}

.l6-page--geolocation .ag-board-frame {
    position: relative;
    padding: 20px 20px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background:
        radial-gradient(60% 40% at 80% 0%, rgba(9, 103, 242, 0.35), transparent 70%),
        #0a1536;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.04);
    color: #fff;
    perspective: 900px;
}

.l6-page--geolocation .ag-board-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    padding-right: 76px;
}

.l6-page--geolocation .ag-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--l6-mint);
    box-shadow: 0 0 0 4px rgba(94, 224, 160, 0.18);
}

.l6-page--geolocation .ag-board-head b {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.02rem;
}

.l6-page--geolocation .ag-board-head small {
    flex-basis: 100%;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.l6-page--geolocation .ag-board-product {
    position: absolute;
    top: -22px;
    right: 18px;
    width: 70px;
    height: auto;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45));
}

.l6-page--geolocation .ag-board-cols,
.l6-page--geolocation .ag-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 8px;
    align-items: center;
}

.l6-page--geolocation .ag-board-cols {
    margin: 16px 0 8px;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.l6-page--geolocation .ag-rows {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.l6-page--geolocation .ag-row {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 300ms ease, border-color 300ms ease;
}

.l6-page--geolocation .ag-row.is-hot {
    border-color: rgba(94, 168, 255, 0.5);
    background: rgba(94, 168, 255, 0.14);
}

.l6-page--geolocation .ag-who {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    min-width: 0;
}

.l6-page--geolocation .ag-who img {
    width: 22px;
    height: 16px;
    flex: none;
    border-radius: 3px;
    object-fit: cover;
}

.l6-page--geolocation .ag-who b {
    font-size: 0.86rem;
}

.l6-page--geolocation .ag-who small {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 198, 107, 0.16);
    color: var(--l6-amber);
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
}

.l6-page--geolocation .ag-flap {
    position: relative;
    display: block;
    min-width: 0;
    padding: 6px 8px;
    overflow: hidden;
    border-radius: 6px;
    background: #050d24;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    color: #f2f5fa;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* the split line across a flap */
.l6-page--geolocation .ag-flap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.55);
}

.l6-page--geolocation .ag-flap--tag {
    color: var(--l6-amber);
}

.l6-page--geolocation .ag-flap--tag i {
    margin-right: 6px;
    font-size: 0.6rem;
}

.l6-page--geolocation .ag-board-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    margin-top: 14px;
}

.l6-page--geolocation .ag-board-foot > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.l6-page--geolocation .ag-board-foot img {
    width: 18px;
    height: 18px;
}

.l6-page--geolocation .ag-board-foot .l6-sample {
    margin-top: 0 !important;
}

/* Motion: rows flip in once, then the highlighted row's flaps re-flip */
.ag-motion .l6-page--geolocation .ag-board:not(.is-in) .ag-row {
    opacity: 0;
    transform: rotateX(-80deg);
}

.ag-motion .l6-page--geolocation .ag-board .ag-row {
    transform-origin: 50% 0;
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 300ms ease, border-color 300ms ease;
    transition-delay: calc(var(--i) * 110ms), calc(var(--i) * 110ms), 0s, 0s;
}

.ag-motion .l6-page--geolocation .ag-board.is-cycling .ag-row {
    transition-delay: 0s;
}

.ag-motion .l6-page--geolocation .ag-board.is-cycling .ag-row.is-hot .ag-flap {
    animation: ag-flip 460ms ease both;
}

.ag-motion .l6-page--geolocation .ag-board.is-cycling .ag-row.is-hot .ag-flap--tag {
    animation-delay: 120ms;
}

@keyframes ag-flip {
    0%   { transform: rotateX(0); }
    45%  { transform: rotateX(88deg); }
    55%  { transform: rotateX(-88deg); }
    100% { transform: rotateX(0); }
}

/* --------------------------------------------------------------------------
   3. Why: the detour, two lanes
   -------------------------------------------------------------------------- */
.l6-page--geolocation .ag-why > div > p + p {
    margin-top: 14px;
}

.l6-page--geolocation .ag-lanes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.l6-page--geolocation .ag-lane {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--l6-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(13, 27, 46, 0.07);
}

.l6-page--geolocation .ag-lane--bad {
    background: #fffafa;
    border-color: #f6d6d7;
}

.l6-page--geolocation .ag-lane--good {
    border-color: #bfe8d4;
}

.l6-page--geolocation .ag-lane-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.l6-page--geolocation .ag-lane--bad .ag-lane-label {
    background: var(--l6-stop-soft);
    color: #b4262b;
}

.l6-page--geolocation .ag-lane--good .ag-lane-label {
    background: var(--l6-go-soft);
    color: #0b6b45;
}

.l6-page--geolocation .ag-lane ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ag;
}

.l6-page--geolocation .ag-lane li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: var(--l6-ink);
    font-size: 0.9rem;
    line-height: 1.35;
}

.l6-page--geolocation .ag-lane li > img {
    width: 24px;
    height: auto;
    max-height: 24px;
    justify-self: center;
    border-radius: 3px;
}

.l6-page--geolocation .ag-lane li > i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--l6-haze);
    color: var(--l6-ink);
    font-size: 0.78rem;
}

.l6-page--geolocation .ag-lane-end {
    margin-top: auto !important;
    padding-top: 12px;
    border-top: 1px dashed var(--l6-line);
    color: var(--l6-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.l6-page--geolocation .ag-lane--bad .ag-lane-end {
    color: #b4262b;
}

.l6-page--geolocation .ag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff1d6;
    color: #8a5200;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.l6-page--geolocation .ag-chip i {
    font-size: 0.6rem;
}

/* --------------------------------------------------------------------------
   4. Router: flags as node icons
   -------------------------------------------------------------------------- */
.l6-page--geolocation .ag-router .l6-node img {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
}

.l6-page--geolocation .ag-router + .l6-steps {
    margin-top: 48px;
}

/* --------------------------------------------------------------------------
   5. Examples: the same product in three stores
   -------------------------------------------------------------------------- */
.l6-page--geolocation .l6-card > p + .l6-check-list {
    margin-top: 16px;
}

.l6-page--geolocation .ag-store {
    width: min(82%, 280px);
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(13, 27, 46, 0.14);
    color: var(--l6-ink);
}

.l6-page--geolocation .ag-store-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--l6-line);
    background: var(--l6-haze);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
}

.l6-page--geolocation .ag-store-flag {
    margin-left: auto;
    border-radius: 2px;
}

.l6-page--geolocation .ag-store-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.l6-page--geolocation .ag-store-body > img {
    width: 54px;
    height: 68px;
    object-fit: contain;
}

.l6-page--geolocation .ag-store-body > span {
    display: grid;
    gap: 3px;
    justify-items: start;
    line-height: 1.25;
}

.l6-page--geolocation .ag-store-body b {
    font-size: 0.86rem;
}

.l6-page--geolocation .ag-store-body small {
    color: var(--l6-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.l6-page--geolocation .ag-chip--sm {
    font-size: 0.68rem;
}

.l6-page--geolocation .l6-card-tag .ag-tag-flag {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   6. The 23 stores (navy panel)
   -------------------------------------------------------------------------- */
.l6-page--geolocation .ag-stores-panel {
    padding: clamp(26px, 4vw, 52px);
    border-radius: 28px;
    background:
        radial-gradient(45% 60% at 90% 0%, rgba(9, 103, 242, 0.35), transparent 70%),
        radial-gradient(35% 50% at 0% 100%, rgba(94, 224, 160, 0.12), transparent 70%),
        var(--l6-navy);
    color: rgba(255, 255, 255, 0.74);
}

.l6-page--geolocation .ag-stores-panel .l6-h2 {
    color: #fff;
}

.l6-page--geolocation .ag-stores-panel .l6-eyebrow {
    color: rgba(255, 255, 255, 0.62);
}

.l6-page--geolocation .ag-stores-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
    margin-bottom: 30px;
}

.l6-page--geolocation .ag-stores-head > div {
    max-width: 40rem;
}

.l6-page--geolocation .ag-stores-count {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 260px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.l6-page--geolocation .ag-stores-count b {
    color: var(--l6-mint);
    font-family: var(--l6-display);
    font-size: 3.4rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

.l6-page--geolocation .ag-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.l6-page--geolocation .ag-store-grid li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.l6-page--geolocation .ag-store-grid img {
    width: 24px;
    height: 18px;
    flex: none;
    border-radius: 3px;
    object-fit: cover;
}

.l6-page--geolocation .ag-store-grid span {
    display: grid;
    min-width: 0;
    line-height: 1.3;
}

.l6-page--geolocation .ag-store-grid b {
    color: #fff;
    font-size: 0.9rem;
}

.l6-page--geolocation .ag-store-grid small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.6);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.l6-page--geolocation .ag-stores-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px !important;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.94rem;
    line-height: 1.55;
}

.l6-page--geolocation .ag-stores-note i {
    margin-top: 4px;
    color: var(--l6-amber);
}

.l6-page--geolocation .ag-stores-note b {
    color: #fff;
}

.l6-page--geolocation .ag-stores-note a {
    color: var(--l6-link-on-dark);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Fallback map (masonry of store cards)
   -------------------------------------------------------------------------- */
.l6-page--geolocation .ag-fb-grid {
    columns: 3 280px;
    column-gap: 18px;
}

.l6-page--geolocation .ag-fb-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid var(--l6-line);
    border-radius: 20px;
    background: var(--l6-haze);
    break-inside: avoid;
}

.l6-page--geolocation .ag-fb-to {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px !important;
    color: var(--l6-ink);
}

.l6-page--geolocation .ag-fb-to img {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
}

.l6-page--geolocation .ag-fb-to b {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.98rem;
}

.l6-page--geolocation .ag-fb-to small {
    margin-left: auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: #fff;
    color: var(--l6-muted);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.l6-page--geolocation .ag-fb-from {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.l6-page--geolocation .ag-fb-from li {
    padding: 4px 10px;
    border: 1px solid var(--l6-line);
    border-radius: 999px;
    background: #fff;
    color: var(--l6-ink);
    font-size: 0.82rem;
}

.l6-page--geolocation .ag-fb-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 52rem;
    margin-top: 4px !important;
    color: var(--l6-muted);
    font-size: 0.9rem;
}

.l6-page--geolocation .ag-fb-note i {
    margin-top: 4px;
    color: var(--l6-blue);
}

/* --------------------------------------------------------------------------
   8. Setup: four steps + the real settings screen
   -------------------------------------------------------------------------- */
.l6-page--geolocation .ag-steps {
    display: grid;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.l6-page--geolocation .ag-steps > li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--l6-line);
}

.l6-page--geolocation .ag-steps > li:last-child {
    border-bottom: 1px solid var(--l6-line);
}

.l6-page--geolocation .ag-steps-n {
    color: var(--l6-blue);
    font-family: var(--l6-display);
    font-size: 2rem;
    line-height: 1;
}

.l6-page--geolocation .ag-steps h3 {
    margin: 0 0 4px;
    font-family: var(--l6-text);
    font-size: 1.05rem;
    font-weight: 700;
}

.l6-page--geolocation .ag-steps p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.l6-page--geolocation .ag-tip {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px !important;
    padding: 8px 12px;
    border-radius: 10px;
    background: #e8f1ff;
    color: var(--l6-blue-deep);
    font-size: 0.88rem !important;
}

.l6-page--geolocation .ag-tip i {
    margin-top: 3px;
}

.l6-page--geolocation .ag-tip--ok {
    background: var(--l6-go-soft);
    color: #0b6b45;
}

.l6-page--geolocation .ag-shot {
    margin: 0;
}

.l6-page--geolocation .ag-shell {
    overflow: hidden;
    border: 1px solid var(--l6-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(13, 27, 46, 0.14);
}

.l6-page--geolocation .ag-shell-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--l6-line);
    background: var(--l6-haze);
}

.l6-page--geolocation .ag-shell-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d4dbe6;
}

.l6-page--geolocation .ag-shell-bar b {
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--l6-muted);
    font-size: 0.74rem;
    font-weight: 400;
}

.l6-page--geolocation .ag-shell img {
    display: block;
    width: 100%;
    height: auto;
}

.l6-page--geolocation .ag-shot figcaption {
    margin-top: 12px;
    color: var(--l6-muted);
    font-size: 0.8rem;
    text-align: right;
}

/* --------------------------------------------------------------------------
   9. Bento visuals
   -------------------------------------------------------------------------- */
.l6-page--geolocation .ag-tile-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px !important;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.l6-page--geolocation .ag-tile-note img {
    border-radius: 2px;
}

.l6-page--geolocation .ag-stamp {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.l6-page--geolocation .ag-stamp code {
    max-width: 100%;
    padding: 8px 10px;
    overflow-wrap: anywhere;
    border-radius: 9px;
    background: var(--l6-haze);
    color: var(--l6-ink);
    font-size: 0.78rem;
}

.l6-page--geolocation .ag-stamp mark {
    padding: 0 2px;
    border-radius: 4px;
    background: #fff1d6;
    color: #8a5200;
    font-weight: 700;
}

.l6-page--geolocation .ag-stamp > i {
    margin-left: 18px;
    color: var(--l6-blue);
    font-size: 0.8rem;
}

.l6-page--geolocation .ag-countries {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.l6-page--geolocation .ag-countries li {
    display: grid;
    grid-template-columns: 18px 2.2em minmax(0, 1fr) 2.8em;
    gap: 10px;
    align-items: center;
    color: var(--l6-ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.l6-page--geolocation .ag-countries img {
    border-radius: 2px;
}

.l6-page--geolocation .ag-countries i {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--l6-blue) var(--w), var(--l6-haze) var(--w));
}

.l6-page--geolocation .ag-countries b {
    text-align: right;
}

.l6-page--geolocation .ag-tools-strip .l6-tools a {
    gap: 12px;
    padding: 11px 16px;
    text-align: left;
}

.l6-page--geolocation .ag-tools-strip .l6-tools a > i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.l6-page--geolocation .ag-tools-strip .l6-tools a > span {
    display: grid;
    gap: 1px;
}

.l6-page--geolocation .ag-tools-strip .l6-tools small {
    max-width: 22em;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 400;
}

.l6-page--geolocation .ag-tools-strip h3 {
    max-width: 240px;
}

/* --------------------------------------------------------------------------
   12. Related pages
   -------------------------------------------------------------------------- */
.l6-page--geolocation .ag-xl-pixels {
    width: 70%;
}

.l6-page--geolocation .ag-xl-pixels span {
    background: #fff;
    box-shadow: 0 8px 18px rgba(13, 27, 46, 0.08);
}

.l6-page--geolocation .ag-xl-preview {
    width: 74%;
    background: #fff;
    box-shadow: 0 14px 28px rgba(13, 27, 46, 0.12);
}

.l6-page--geolocation .ag-xl-preview .l6-preview-img {
    height: 64px;
}

.l6-page--geolocation .ag-xl-ico {
    color: var(--l6-blue);
    font-size: 1rem;
}

.l6-page--geolocation .ag-xl-tag {
    color: #8a5200;
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .l6-page--geolocation .ag-board {
        width: min(100%, 560px);
    }

    .l6-page--geolocation .ag-shot {
        width: min(100%, 680px);
        margin-inline: auto;
    }
}

@media (max-width: 640px) {
    .l6-page--geolocation .ag-board-frame {
        padding: 16px 12px 14px;
        border-radius: 22px;
    }

    .l6-page--geolocation .ag-board-product {
        width: 56px;
        top: -18px;
        right: 12px;
    }

    .l6-page--geolocation .ag-board-cols {
        display: none;
    }

    .l6-page--geolocation .ag-board-head {
        margin-bottom: 12px;
    }

    .l6-page--geolocation .ag-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 6px 8px;
    }

    .l6-page--geolocation .ag-who {
        grid-column: 1 / -1;
    }

    /* Five shoppers are enough on a phone: keep the fallbacks, drop Austin and Toronto */
    .l6-page--geolocation .ag-row:nth-child(4),
    .l6-page--geolocation .ag-row:nth-child(5) {
        display: none;
    }

    .l6-page--geolocation .ag-fb-card {
        margin-bottom: 12px;
        padding: 14px;
    }

    .l6-page--geolocation .ag-flap {
        font-size: 0.72rem;
    }

    .l6-page--geolocation .ag-lanes {
        grid-template-columns: minmax(0, 1fr);
    }

    .l6-page--geolocation .ag-stores-count b {
        font-size: 2.8rem;
    }

    .l6-page--geolocation .ag-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .l6-page--geolocation .ag-store-grid li {
        gap: 8px;
        padding: 10px;
    }

    .l6-page--geolocation .ag-store-grid b {
        font-size: 0.82rem;
    }

    .l6-page--geolocation .ag-store-grid small {
        font-size: 0.68rem;
    }

    .l6-page--geolocation .ag-shot figcaption {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .l6-page--geolocation .ag-row,
    .l6-page--geolocation .ag-flap {
        animation: none !important;
        transition: none !important;
    }
}
