/* Lime & Dine web app (app/): laid out like the mobile app (an Ionic app: Roboto, white
   bars, primary blue #3880ff). On a phone it fills the screen; wider, it's a phone-width
   column in the middle of the page. */

:root {
    --app-width:   480px;
    --app-primary: #3880ff;
    --app-text:    #222;
    --app-muted:   #6b6b6b;
    --app-link:    #1a56db;
    --app-bar:     64px;
    --app-tabbar:  72px;
    --app-outside: #ffffff;
    --app-splash:  #141b1d;
}

*, *::before, *::after { box-sizing: border-box; }
.ic { display: inline-block; line-height: 1; }
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--app-text);
    background: var(--app-outside);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

a { color: inherit; }

.app {
    position: relative;
    max-width: var(--app-width);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: #fff;
}

.app--tabbar { padding-bottom: calc(var(--app-tabbar) + env(safe-area-inset-bottom)); }

@media (min-width: 520px) {
    .app { box-shadow: 0 0 24px rgba(0, 0, 0, 0.08); }
}

/* ── Splash (home, once a visit) ── */
.splash { display: none; }

.splash-on .splash {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--app-splash);
    transition: opacity 0.35s ease, visibility 0.35s;
}

.splash img {
    width: 42vw;
    max-width: 190px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

.splash-off .splash { opacity: 0; visibility: hidden; }

/* ── Top bar ── */
.bar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: calc(var(--app-bar) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 4px 0;
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    background: #fff;
}

.bar__logo {
    justify-self: center;
    min-width: 0;
}

.bar__logo img {
    display: block;
    height: 46px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    color: #424242;
    text-decoration: none;
    font-size: 17px;
}

.bar__btn .ic { font-size: 23px; width: 28px; text-align: center; flex: none; }
.bar__btn--blue { color: var(--app-primary); }
.bar__btn--blue .ic { font-size: 26px; width: 32px; text-align: center; }

/* The calendar's "‹ Back" */
.bar__btn--chevron { color: var(--app-primary); justify-content: flex-start; white-space: nowrap; }
.bar__btn--chevron .ic { font-size: 26px; width: 32px; text-align: center; margin-right: -4px; }
.bar__btn--chevron span { display: none; }

@media (min-width: 400px) {
    .bar:has(.bar__btn--chevron span) { grid-template-columns: 80px 1fr 80px; }
    .bar__btn--chevron span { display: inline; }
}

/* A category's bar: back arrow and the name in the category's colour */
.bar--title {
    grid-template-columns: 56px 1fr;
    gap: 8px;
    padding-right: 16px;
}

.bar__title {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Home: the edition's banner and the tiles ── */
.banner {
    display: grid;
    grid-template-columns: 46% 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 14px 12px;
    background: #ebebeb;
    color: #111;
    text-decoration: none;
    border-bottom: 4px solid #fff;
}

.banner__cover {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transform: rotate(-6deg);
    box-shadow: 6px 8px 16px rgba(0, 0, 0, 0.3);
}

.banner__text {
    text-align: right;
    font-size: clamp(13px, 4vw, 17px);
    line-height: 1.2;
    text-transform: uppercase;
}

.banner__text strong {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(17px, 5.4vw, 23px);
    font-weight: 700;
}

.tiles { display: flex; flex-direction: column; }

.tile {
    aspect-ratio: 1000 / 372;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: var(--tile);
    color: #fff;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.tile:hover, .tile:focus-visible { filter: brightness(1.08); }
.tile:active { filter: brightness(0.92); }

.tile__title {
    font-weight: 500;
    font-size: clamp(1.4rem, 6.2vw, 1.85rem);
    letter-spacing: 0.01em;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ── Round pictures ── */
.avatar {
    flex: none;
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.avatar--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9d9d9;
    color: #fff;
}

.avatar--empty .ic { font-size: 24px; }

/* No picture yet: the initials, on the category's colour (white on a coloured bar or list) */
.avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--av, #8a8a8a);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.list .avatar--initials,
.detail-bar .avatar--initials { background: #fff; color: var(--av, #555); }

/* ── A category's list ── */
.list { background: var(--cat); min-height: calc(100dvh - var(--app-bar) - var(--app-tabbar)); }

.list__item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 80px;
    padding: 12px 16px 12px 6px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.list__item:hover { background: rgba(255, 255, 255, 0.08); }
.list__item .avatar { align-self: flex-start; }

.list__text { display: flex; flex-direction: column; min-width: 0; }
.list__name { font-size: 19px; font-weight: 700; line-height: 1.2; }
.list__place { font-size: 14px; line-height: 1.3; margin-top: 2px; }

/* "Open now" and the distance under a listing's name */
.list__meta:empty { display: none; }
.list__meta, .list__dist { font-size: 13px; margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.list__meta::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.list__meta.is-open::before { background: #9dffb0; opacity: 1; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.list__dist { font-weight: 500; }

/* List / Map and Near me (once listings have map positions) */
.listbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.12);
}

.seg { display: flex; background: rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 3px; }

.seg__btn, .listbar__near {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    font: 500 14px/1 'Roboto', system-ui, sans-serif;
    color: #fff;
    background: none;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.seg__btn .ic, .listbar__near .ic { font-size: 15px; width: 18px; text-align: center; }
.seg__btn.is-on { background: #fff; color: var(--cat); }
.listbar__near { background: rgba(255, 255, 255, 0.18); }
.listbar__near.is-on { background: #fff; color: var(--cat); }
.listbar__near.is-busy .ic { animation: ld-spin 1s linear infinite; }
@keyframes ld-spin { to { transform: rotate(360deg); } }

.listmap { height: calc(100dvh - var(--app-bar) - var(--app-tabbar) - 58px); min-height: 320px; background: #e5e3df; }
.mappop { display: grid; gap: 2px; color: #111; text-decoration: none; font: 15px/1.3 'Roboto', sans-serif; }
.mappop span { color: var(--app-primary); font-size: 13px; }

/* ── A listing ── */
.detail-bar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 92px;
    padding: 18px 16px 18px 12px;
    color: #fff;
    border-bottom: 10px solid #fff;
    box-shadow: 0 1px 0 #eee;
}

.detail-bar__name {
    flex: 1;
    min-width: 0;
    margin: 4px 0 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

/* Save (heart) and Share */
.actions { display: flex; gap: 6px; flex: none; }

.actions__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
}

.actions__btn .ic { font-size: 20px; width: 24px; text-align: center; display: block; }
.actions__on { display: none; }
.actions__btn[aria-pressed="true"] .actions__on { display: block; }
.actions__btn[aria-pressed="true"] .actions__off { display: none; }
.actions__btn:active { transform: scale(0.92); }

.card__head { display: flex; align-items: flex-start; gap: 12px; }
.card__head .card__title { flex: 1; }
.card__head .actions__btn { background: #f1f1f3; color: #555; }
.card__head .actions__btn[aria-pressed="true"] { color: #e6007e; }

/* Open now and the hours */
.open { padding: 20px 18px 0; }

.open__now {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    background: #f1f1f3;
}

.open__now:empty { display: none; }
.open__now.is-open { background: #e3f5e7; color: #1d7a35; }
.open__now.is-closed { background: #fdecea; color: #a52714; }

.hours { border-collapse: collapse; width: 100%; font-size: 15px; }
.hours th { text-align: left; font-weight: 400; padding: 5px 0; }
.hours td { text-align: right; color: var(--app-muted); padding: 5px 0; }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--app-text); }

.detail-text--soon { color: var(--app-muted); font-size: 16px; padding-bottom: 24px; }

.advert { display: block; width: 100%; height: auto; }

/* The big picture on a listing or an event; until there is one, a card with the name */
.photo { display: block; width: 100%; height: auto; }

.photo--card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    padding: 20px;
    color: #fff;
    background: var(--card);
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.24), transparent 42%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px),
        linear-gradient(160deg, var(--card), color-mix(in srgb, var(--card) 62%, #000));
}

.photo__label {
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}

.photo__initials {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-58%);
    font-size: clamp(110px, 38vw, 180px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    opacity: 0.14;
    pointer-events: none;
}

.photo__title { position: relative; font-size: clamp(22px, 6.4vw, 28px); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.photo__sub { position: relative; font-size: 15px; opacity: 0.9; }
.card .photo--card { aspect-ratio: 16 / 9; }

.detail-text {
    margin: 0;
    padding: 28px 18px 8px;
    font-size: 17px;
    line-height: 1.4;
}

.contacts { margin: 16px 0 24px; padding: 0 22px; font-size: 15px; }
.contacts div { display: flex; gap: 6px; margin: 0 0 14px; }
.contacts dt { flex: none; }
.contacts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.contacts a { color: var(--app-link); }

.map {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
    background: #e5e3df;
}

/* With no signal, in place of the map */
.map-off { margin: 0 18px 24px; padding: 16px 18px; border-radius: 12px; background: #f1f1f3; color: var(--app-muted); font-size: 15px; }

/* The round Call / Directions / Website / Email buttons under a place's picture */
.quick { display: flex; justify-content: space-around; gap: 8px; padding: 18px 12px 6px; border-bottom: 1px solid #eee; }

.quick__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 64px;
    color: var(--app-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding-bottom: 12px;
}

.quick__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8f0ff;
}

.quick__icon .ic { font-size: 20px; width: 24px; text-align: center; }
.quick__btn:active .quick__icon { background: #d3e2ff; }

/* How to reach a place: icon, what, the value; the whole row is the link */
.reach-wrap { padding: 8px 0 20px; }
.reach-title { margin: 0; padding: 16px 18px 6px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--app-muted); }
.reach { list-style: none; margin: 0; padding: 0; }

.reach__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px 10px 18px;
    color: var(--app-text);
    text-decoration: none;
}

.reach__row:hover { background: #fafafa; }
.reach__row:active { background: #f1f1f3; }

.reach__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cat, var(--app-primary));
    color: #fff;
}

.reach__icon .ic { font-size: 17px; width: 21px; text-align: center; }
.reach__row--facebook .reach__icon { background: #1877f2; }
.reach__row--instagram .reach__icon { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.reach__text { flex: 1; min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid #eee; padding: 4px 0 12px; }
.reach li:last-child .reach__text { border-bottom: 0; }
.reach__text small { font-size: 12px; color: var(--app-muted); }
.reach__text span { font-size: 16px; color: var(--app-link); overflow-wrap: anywhere; }
.reach__go { flex: none; color: #bbb; }
.reach__go .ic { font-size: 16px; width: 20px; text-align: center; transform: scaleX(-1); display: block; }

/* ── Tab bar ── */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 10;
    width: 100%;
    max-width: var(--app-width);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(var(--tabs), 1fr);
    height: calc(var(--app-tabbar) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #e6e6e6;
}

.tabbar__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
}

.tabbar__tab .ic { font-size: 26px; width: 32px; text-align: center; }
.tabbar__tab:hover { color: #222; }
.tabbar__tab.is-off { opacity: 0.35; }

/* The app's own tab bar: Home, Search, Calendar, Saved */
.tabbar__ico { position: relative; display: inline-flex; }
.badge {
    position: absolute;
    top: -6px;
    left: calc(100% - 10px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e6007e;
    color: #fff;
    font: 700 11px/18px 'Roboto', system-ui, sans-serif;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.badge--dot { min-width: 0; width: 10px; height: 10px; padding: 0; top: -2px; left: calc(100% - 6px); background: #1fa9d0; }
.badge--saved { background: #e6007e; }
.bar__btn--bell { position: relative; }
.bar__btn--bell .badge { top: 10px; left: calc(50% + 6px); }
.tabbar--main .tabbar__tab { font-size: 12px; }
.tabbar--main .tabbar__tab .ic { font-size: 23px; width: 28px; text-align: center; }
.tabbar--main .tabbar__tab.is-on { color: var(--app-primary); }

/* ── Limin' Calendar ── */
.week {
    display: grid;
    grid-template-columns: 24px repeat(7, 1fr) 24px;
    align-items: center;
    padding: 10px 0 8px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.week__nav { display: flex; justify-content: center; color: #9e9e9e; }
.week__nav .ic { font-size: 18px; width: 22px; text-align: center; }
.week__nav--next .ic { transform: scaleX(-1); }

.week__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    color: #555;
    text-decoration: none;
}

.week__letter { font-size: 26px; font-weight: 500; }
.week__date { font-size: 13px; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; }
.week__day.is-on { color: var(--app-primary); }
.week__day.is-on .week__date { background: var(--app-primary); color: #fff; }
.week__day.is-today:not(.is-on) .week__date { box-shadow: inset 0 0 0 1px var(--app-primary); }
.week__dot { width: 6px; height: 6px; border-radius: 50%; }
.week__day.has-events .week__dot { background: #1fa9d0; }

/* Coming up */
.week__label--soon { padding-top: 22px; font-weight: 400; }
.soon { padding: 4px 0 16px; }

.soon__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
    color: #111;
    text-decoration: none;
}

.soon__date {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 54px;
    padding: 6px 0;
    border-radius: 10px;
    background: #e8f6fb;
    color: #0f7c9b;
    line-height: 1.1;
}

.soon__date b { font-size: 22px; }
.soon__date small { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.soon__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.soon__text strong { font-size: 18px; }
.soon__text span { font-size: 14px; color: var(--app-muted); }

.week__label {
    margin: 0;
    padding: 14px 18px 0;
    font-size: 13px;
    color: var(--app-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.events { padding-left: 18px; }

.events__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 18px 16px 0;
    border-bottom: 1px solid #ddd;
    color: #111;
    text-decoration: none;
    font-size: 17px;
}

.events__item strong { font-size: 19px; }
.events__item small { font-size: 14px; color: var(--app-muted); }

.empty { padding: 24px 18px; color: var(--app-muted); }
.empty a { color: var(--app-link); }

/* ── An event ── */
.venue {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
    color: #111;
    text-decoration: none;
}

.venue__name {
    flex: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid #ddd;
}

.card {
    margin: 8px 12px 24px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card__img { display: block; width: 100%; height: auto; }
.card__body { padding: 20px 20px 24px; }
.card__title { margin: 0 0 6px; font-size: 26px; font-weight: 500; }
.card__date { margin: 0 0 14px; font-size: 14px; color: var(--app-muted); }
.card__text { margin: 0; font-size: 17px; line-height: 1.65; color: #666; }

/* ── Home: search, results, the install card, the editions link ── */
.search { padding: 4px 12px 12px; }

.search__box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 6px 0 14px;
    border-radius: 12px;
    background: #f1f1f3;
    color: var(--app-muted);
}

.search__box:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--app-primary); }
.search__box > .ic { font-size: 18px; width: 22px; text-align: center; flex: none; }

.search__box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    font: 17px 'Roboto', system-ui, sans-serif;
    color: var(--app-text);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.search__box input::-webkit-search-cancel-button { display: none; }

.search__clear {
    display: flex;
    border: 0;
    background: none;
    padding: 8px;
    color: var(--app-muted);
    cursor: pointer;
}

.search__clear .ic { font-size: 16px; width: 20px; text-align: center; }

.results { padding-bottom: 16px; }

.results__group {
    margin: 0;
    padding: 16px 16px 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-muted);
}

.results mark { background: #fff1a8; color: inherit; border-radius: 2px; }

/* A plain row on white (search results, saved) */
.row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    color: #111;
    text-decoration: none;
}

.row:hover { background: #fafafa; }
.row .avatar { width: 48px; height: 48px; font-size: 17px; }
.row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row__text strong { font-size: 17px; font-weight: 500; }
.row__text span { font-size: 14px; color: var(--app-muted); }
.row__meta:empty { display: none; }
.row__meta.is-open { color: #1d7a35 !important; font-weight: 500; }

.install {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 4px 12px;
    align-items: center;
    margin: 0 12px 12px;
    padding: 14px;
    border-radius: 14px;
    background: var(--app-splash);
    color: #fff;
}

.install[hidden] { display: none; }
.install img { border-radius: 11px; grid-row: span 1; }
.install__text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #c3c9cb; }
.install__text strong { font-size: 16px; color: #fff; }
.install__btns { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

.install__btns button {
    border: 0;
    border-radius: 999px;
    padding: 9px 18px;
    font: 500 15px 'Roboto', sans-serif;
    cursor: pointer;
}

.install__no { background: none; color: #c3c9cb; }
.install__go { background: #e94e1b; color: #fff; }

.shelf-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 4px solid #fff;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.shelf-link .ic { font-size: 18px; width: 22px; text-align: center; color: #e94e1b; }
.shelf-link span { flex: 1; }
.shelf-link .ic:last-child { transform: scaleX(-1); color: #999; }

/* ── Saved ── */
.saved__title { margin: 0; padding: 4px 16px 8px; font-size: 26px; font-weight: 500; }
.saved .empty .ic { font-size: 15px; width: 18px; text-align: center; vertical-align: -3px; color: #e6007e; }

/* ── The editions ── */
.shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 22px 16px;
    padding: 16px 16px 28px;
}

.shelf__item { margin: 0; display: grid; gap: 8px; }
.shelf__item a { display: block; }

.shelf__item img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 7;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    background: #eee;
}

.shelf__item figcaption { font-size: 15px; }
.shelf__new { background: #e94e1b; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }

/* ── A short message at the bottom ── */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--app-tabbar) + env(safe-area-inset-bottom) + 14px);
    z-index: 50;
    max-width: calc(100% - 32px);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(20, 27, 29, 0.94);
    color: #fff;
    font-size: 15px;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    overflow-wrap: anywhere;
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--app-primary); outline-offset: 2px; }
/* The search box draws its own ring (.search__box:focus-within), so not the input's too */
.search__box input:focus, .search__box input:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .toast, .listbar__near.is-busy .ic { transition: none; animation: none; } }
