/* Only the directory: the reader keeps its existing layout and lighter images. */
/* The bar is Explore's (section-bar.js, history-profile.css): a chip per
   period, and the country picker and the search as tools on its right. It
   sticks under the top bar, as wide as the page's padding allows. */
.deep-directory .deep-list-head p { margin-bottom: 20px; }
.deep-directory-top { display: contents; }
/* The note that the voices speak English for now (directory.js `soon`). */
.deep-directory-soon { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin: 0 0 24px; padding: 10px 18px 10px 10px; border-radius: 22px; background: var(--surf); color: var(--muted); font-size: 15px; line-height: 1.4; }
.deep-directory-soon strong { color: var(--text); font-weight: 650; }
.deep-directory-soon > span:first-child { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: var(--bg); }
.deep-directory-soon svg { width: 18px; height: 18px; }
.deep-directory .jump-bar { --jump-top: var(--site-nav-h, 56px); --jump-gutter: clamp(16px, 4vw, 40px); }
.deep-directory .jump-tool svg { width: 17px; height: 17px; flex: none; }
.deep-place-picker { position: relative; }
.deep-place-picker summary { list-style: none; }
.deep-place-picker summary::-webkit-details-marker { display: none; }
.deep-place-picker summary svg:last-child { width: 14px; height: 14px; color: var(--muted); }
.deep-place-picker[open] summary { background: var(--text); color: var(--bg); }
.deep-place-picker[open] summary svg:last-child { color: inherit; transform: rotate(180deg); }
.deep-search { width: 15rem; padding-right: 0.5rem; cursor: text; }
.deep-search svg { color: var(--muted); }
.deep-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--text); font: 500 14px var(--font); outline: none; }
.deep-search input::placeholder { color: var(--muted); font-weight: 400; }
.deep-search:focus-within { background: var(--bg); box-shadow: inset 0 0 0 2px var(--text); }
.deep-place-menu label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.deep-place-menu input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--sep, var(--line)); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; }
.deep-place-menu { position: absolute; z-index: 8; top: calc(100% + 8px); right: 0; width: min(340px, calc(100vw - 32px)); box-sizing: border-box; padding: 14px; border: 1px solid var(--sep, var(--line)); border-radius: 14px; background: var(--bg); color: var(--text); box-shadow: var(--sh); }
.deep-place-options { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; }
.deep-place-options h3 { margin: 16px 10px 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.deep-place-options button { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.deep-place-options button:hover { background: var(--surf); }
.deep-place-options button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.deep-place-options button span { font-variant-numeric: tabular-nums; }
.deep-directory-reset { min-height: 42px; padding: 10px 15px; border: 0; border-radius: 999px; color: var(--text); font: 500 14px var(--font); cursor: pointer; }
.deep-directory-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.deep-directory-summary p { margin: 0; color: var(--muted); font-size: 14px; }
.deep-directory-summary:has(p:empty) { margin-bottom: 0; }
.deep-directory-reset { background: none; text-decoration: underline; text-underline-offset: 4px; }
.deep-directory-results { display: block; }
/* A period's heading reads as a section of Explore's does. */
.deep-directory-group { margin-bottom: clamp(40px, 5vw, 56px); scroll-margin-top: calc(var(--site-nav-h, 56px) + var(--jump-h) + 12px); }
.deep-directory-group h2 { margin: 0 0 20px; font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; }
.deep-directory .deep-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.deep-directory .deep-cover strong { font-size: clamp(21px, 1.9vw, 26px); }
.deep-directory .deep-cover .deep-geography { font-size: 12px; line-height: 1.4; color: rgb(255 255 255 / 90%); }
/* The card's own words, a short trailer ending on a question, open under
   the title only when the pointer rests on the card (or the keyboard is on
   it), so the list stays pictures and titles. A deeper shade comes with them. */
.deep-directory .deep-cover::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg, rgb(8 12 12 / 62%), transparent 70%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.deep-directory .deep-cover > span { z-index: 2; }
.deep-directory .deep-cover-lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; max-height: 0; margin-top: -8px; opacity: 0; font-size: 13.5px; line-height: 1.4; color: rgb(255 255 255 / 90%); text-wrap: pretty; transition: max-height 0.35s cubic-bezier(.2,.7,.2,1), margin-top 0.35s cubic-bezier(.2,.7,.2,1), opacity 0.25s ease; }
@media (hover: hover) {
  .deep-directory .deep-cover:hover::before { opacity: 1; }
  .deep-directory .deep-cover:hover .deep-cover-lead { max-height: 8em; margin-top: 0; opacity: 1; }
}
.deep-directory .deep-cover:focus-visible::before { opacity: 1; }
.deep-directory .deep-cover:focus-visible .deep-cover-lead { max-height: 8em; margin-top: 0; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .deep-directory .deep-cover-lead, .deep-directory .deep-cover::before { transition: none; } }
.deep-directory-empty { padding: 24px 0 48px; }
.deep-directory-empty h2 { margin-bottom: 8px; }
.deep-directory-empty p { color: var(--muted); }
.deep-directory :is(input, summary, button, a):focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.deep-directory .deep-search input:focus-visible { outline: none; }
@media (max-width: 1000px) { .deep-directory .deep-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  /* A phone puts the tools on a line of their own under the chips. */
  .deep-directory .jump-bar { flex-wrap: wrap; row-gap: 8px; padding-block: 8px; }
  .deep-directory .jump-chips { flex-basis: 100%; }
  .deep-directory .jump-tools { flex: 1 1 100%; min-width: 0; }
  .deep-search { flex: 1; width: auto; min-width: 0; }
  .deep-directory .deep-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .deep-directory .deep-cover > span { padding: 13px; gap: 6px; }
  .deep-directory .deep-cover-lead { margin-top: -6px; }
  .deep-directory .deep-cover strong { font-size: 20px; }
  .deep-directory .deep-cover small { font-size: 10px; }
  .deep-directory .deep-cover .deep-geography { font-size: 11px; }
}
@media (max-width: 390px) { .deep-directory .deep-cards { grid-template-columns: 1fr; } }
/* Told with a recorded voice (Listen): headphones in the cover's corner, frosted glass as the map's controls are.
   An <i>, so the cover's rule for its text block (> span) leaves it alone. */
.deep-directory .deep-cover-voice { font-style: normal; position: absolute; z-index: 2; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: 999px; background: rgb(255 255 255 / 70%); color: #1c1c1e; -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 4px rgb(0 0 0 / 16%); pointer-events: none; }
.deep-directory .deep-cover-voice svg { width: 16px; height: 16px; }
.deep-directory .deep-cover-voice b { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
