/* poqui.app — the listen library (/listen, /it/ascolta), on top of site.css.
   No style of its own: site.css's tokens, cards, tags and type. This sheet only lays out what the
   text pages never had: the breadcrumb, the App Store badge beside its line, lists of places. */

/* the way back: City guides › Rome › Pantheon */
.crumbs { margin: 0 0 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; text-transform: uppercase; letter-spacing: .06em; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; display: inline-block; padding: 6px 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); padding: 6px 0; }

/* Apple's badge, at Apple's own proportions */
.badge { display: inline-flex; flex: none; height: 54px; border-radius: 9px; }
.badge img { height: 100%; width: auto; display: block; }

/* the one thing to do, near the top: the line, then the badge */
.listen-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 16px 20px; margin: 0 0 28px; }
.listen-cta p { flex: 1 1 260px; margin: 0; font: 500 16px/24px var(--sans); }
/* …and at the end, under the closing line */
.listen-end { margin: 56px 0 0; }
.listen-end .badge { margin-top: 16px; }

/* a story */
.story .page-head { margin-bottom: 24px; }
.page .story > h2:first-of-type { margin: 0 0 16px; }
.story-audio { display: block; width: 100%; margin: 0 0 20px; }
.story .kind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; }
.story .look { margin: 24px 0 0; }
.story .look .t-mono { margin: 0 0 6px; color: var(--teal); }

/* its sources */
/* site.css gives a text page's first h2 no top margin; inside a section of its own every h2 is a "first", and still needs its air */
.page section > h2:first-of-type { margin-top: 40px; }
.sources ul { list-style: none; padding: 0; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.sources .meta { white-space: nowrap; margin-left: 4px; }
.sources p.soft { font-size: 15px; line-height: 22px; }

/* lists you can press: the places of a city, the cities */
.places, .cities { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.places li, .cities li { margin: 0; min-width: 0; }
.places .card, .cities .card, .pager .card { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.places .card:hover, .cities .card:hover, .pager .card:hover { border-color: var(--ink); }
.places b, .cities b, .pager b { font: 600 20px/26px var(--display); font-variation-settings: "SOFT" 100; }
.places .card > span:not(.meta), .cities .card > span:not(.meta) { font: 400 15px/22px var(--sans); color: var(--ink-soft); text-wrap: pretty; }
.places .meta, .cities .meta { margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.places .meta:empty { display: none; }

/* before · next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 40px 0 0; }
.pager .card { min-width: 0; }
.pager .meta { text-transform: uppercase; letter-spacing: .06em; }
.pager b { font-size: 17px; line-height: 23px; overflow-wrap: anywhere; }
.pager__next { text-align: right; }

@media (min-width: 560px) {
  .places, .cities { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .listen-cta { padding: 18px 24px; }
}
@media print { .listen-cta, .listen-end, .pager, .crumbs { display: none; } }
